class Amazonite::Kms::GrantListEntry

Overview

Contains information about a grant.

Included Modules

Defined in:

kms/grant_list_entry.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(key_id : String | Nil = nil, grant_id : String | Nil = nil, name : String | Nil = nil, creation_date : Time | Nil = nil, grantee_principal : String | Nil = nil, retiring_principal : String | Nil = nil, issuing_account : String | Nil = nil, operations : Array(GrantOperation) | Nil = nil, constraints : GrantConstraints | Nil = nil, grantee_service_principal : String | Nil = nil, retiring_service_principal : String | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def constraints : GrantConstraints | Nil #

The constraints on the grant, such as encryption context pairs or a SourceArn, that restrict the subsequent operations the grant allows.


[View source]
def constraints=(constraints : GrantConstraints | Nil) #

The constraints on the grant, such as encryption context pairs or a SourceArn, that restrict the subsequent operations the grant allows.


[View source]
def creation_date : Time | Nil #

The date and time when the grant was created.


[View source]
def creation_date=(creation_date : Time | Nil) #

The date and time when the grant was created.


[View source]
def grant_id : String | Nil #

The unique identifier for the grant.


[View source]
def grant_id=(grant_id : String | Nil) #

The unique identifier for the grant.


[View source]
def grantee_principal : String | Nil #

The identity that gets the permissions in the grant.

When a grant is created with the GranteePrincipal field, the ListGrants response usually contains the user or role designated as the grantee principal in the grant. However, if the grantee principal is an Amazon Web Services service, the GranteePrincipal field contains an Amazon Web Services service principal, which might correspond to several different grantee principals, such as an IAM user, IAM role, or Amazon Web Services account.


[View source]
def grantee_principal=(grantee_principal : String | Nil) #

The identity that gets the permissions in the grant.

When a grant is created with the GranteePrincipal field, the ListGrants response usually contains the user or role designated as the grantee principal in the grant. However, if the grantee principal is an Amazon Web Services service, the GranteePrincipal field contains an Amazon Web Services service principal, which might correspond to several different grantee principals, such as an IAM user, IAM role, or Amazon Web Services account.


[View source]
def grantee_service_principal : String | Nil #

The Amazon Web Services service principal that gets the permissions in the grant.


[View source]
def grantee_service_principal=(grantee_service_principal : String | Nil) #

The Amazon Web Services service principal that gets the permissions in the grant.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def issuing_account : String | Nil #

The Amazon Web Services account under which the grant was issued.


[View source]
def issuing_account=(issuing_account : String | Nil) #

The Amazon Web Services account under which the grant was issued.


[View source]
def key_id : String | Nil #

The unique identifier for the KMS key to which the grant applies.


[View source]
def key_id=(key_id : String | Nil) #

The unique identifier for the KMS key to which the grant applies.


[View source]
def name : String | Nil #

The friendly name that identifies the grant. If a name was provided in the CreateGrant request, that name is returned. Otherwise this value is null.


[View source]
def name=(name : String | Nil) #

The friendly name that identifies the grant. If a name was provided in the CreateGrant request, that name is returned. Otherwise this value is null.


[View source]
def operations : Array(GrantOperation) | Nil #

The list of operations permitted by the grant.


[View source]
def operations=(operations : Array(GrantOperation) | Nil) #

The list of operations permitted by the grant.


[View source]
def retiring_principal : String | Nil #

The principal that can retire the grant.


[View source]
def retiring_principal=(retiring_principal : String | Nil) #

The principal that can retire the grant.


[View source]
def retiring_service_principal : String | Nil #

The Amazon Web Services service principal that can retire the grant.


[View source]
def retiring_service_principal=(retiring_service_principal : String | Nil) #

The Amazon Web Services service principal that can retire the grant.


[View source]
def validate! : Nil #

[View source]