amazonka-kms-2.0: Amazon Key Management Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.KMS.Types.GrantListEntry

Description

 
Synopsis

Documentation

data GrantListEntry Source #

Contains information about a grant.

See: newGrantListEntry smart constructor.

Constructors

GrantListEntry' 

Fields

  • constraints :: Maybe GrantConstraints

    A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows.

  • creationDate :: Maybe POSIX

    The date and time when the grant was created.

  • grantId :: Maybe Text

    The unique identifier for the grant.

  • granteePrincipal :: Maybe Text

    The identity that gets the permissions in the grant.

    The GranteePrincipal field in the ListGrants response usually contains the user or role designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon Web Services service, the GranteePrincipal field contains the service principal, which might represent several different grantee principals.

  • issuingAccount :: Maybe Text

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

  • keyId :: Maybe Text

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

  • name :: Maybe Text

    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.

  • operations :: Maybe [GrantOperation]

    The list of operations permitted by the grant.

  • retiringPrincipal :: Maybe Text

    The principal that can retire the grant.

Instances

Instances details
FromJSON GrantListEntry Source # 
Instance details

Defined in Amazonka.KMS.Types.GrantListEntry

Generic GrantListEntry Source # 
Instance details

Defined in Amazonka.KMS.Types.GrantListEntry

Associated Types

type Rep GrantListEntry :: Type -> Type #

Read GrantListEntry Source # 
Instance details

Defined in Amazonka.KMS.Types.GrantListEntry

Show GrantListEntry Source # 
Instance details

Defined in Amazonka.KMS.Types.GrantListEntry

NFData GrantListEntry Source # 
Instance details

Defined in Amazonka.KMS.Types.GrantListEntry

Methods

rnf :: GrantListEntry -> () #

Eq GrantListEntry Source # 
Instance details

Defined in Amazonka.KMS.Types.GrantListEntry

Hashable GrantListEntry Source # 
Instance details

Defined in Amazonka.KMS.Types.GrantListEntry

type Rep GrantListEntry Source # 
Instance details

Defined in Amazonka.KMS.Types.GrantListEntry

newGrantListEntry :: GrantListEntry Source #

Create a value of GrantListEntry with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:constraints:GrantListEntry', grantListEntry_constraints - A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows.

$sel:creationDate:GrantListEntry', grantListEntry_creationDate - The date and time when the grant was created.

$sel:grantId:GrantListEntry', grantListEntry_grantId - The unique identifier for the grant.

$sel:granteePrincipal:GrantListEntry', grantListEntry_granteePrincipal - The identity that gets the permissions in the grant.

The GranteePrincipal field in the ListGrants response usually contains the user or role designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon Web Services service, the GranteePrincipal field contains the service principal, which might represent several different grantee principals.

$sel:issuingAccount:GrantListEntry', grantListEntry_issuingAccount - The Amazon Web Services account under which the grant was issued.

$sel:keyId:GrantListEntry', grantListEntry_keyId - The unique identifier for the KMS key to which the grant applies.

$sel:name:GrantListEntry', grantListEntry_name - 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.

$sel:operations:GrantListEntry', grantListEntry_operations - The list of operations permitted by the grant.

$sel:retiringPrincipal:GrantListEntry', grantListEntry_retiringPrincipal - The principal that can retire the grant.

grantListEntry_constraints :: Lens' GrantListEntry (Maybe GrantConstraints) Source #

A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows.

grantListEntry_creationDate :: Lens' GrantListEntry (Maybe UTCTime) Source #

The date and time when the grant was created.

grantListEntry_grantId :: Lens' GrantListEntry (Maybe Text) Source #

The unique identifier for the grant.

grantListEntry_granteePrincipal :: Lens' GrantListEntry (Maybe Text) Source #

The identity that gets the permissions in the grant.

The GranteePrincipal field in the ListGrants response usually contains the user or role designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon Web Services service, the GranteePrincipal field contains the service principal, which might represent several different grantee principals.

grantListEntry_issuingAccount :: Lens' GrantListEntry (Maybe Text) Source #

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

grantListEntry_keyId :: Lens' GrantListEntry (Maybe Text) Source #

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

grantListEntry_name :: Lens' GrantListEntry (Maybe Text) Source #

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.

grantListEntry_operations :: Lens' GrantListEntry (Maybe [GrantOperation]) Source #

The list of operations permitted by the grant.

grantListEntry_retiringPrincipal :: Lens' GrantListEntry (Maybe Text) Source #

The principal that can retire the grant.