Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Deletes the specified grant. You revoke a grant to terminate the permissions that the grant allows. For more information, see Retiring and revoking grants in the /Key Management Service Developer Guide/ .
When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until the grant is available throughout KMS. This state is known as eventual consistency. For details, see Eventual consistency in the /Key Management Service Developer Guide/ .
For detailed information about grants, including grant terminology, see Using grants in the /Key Management Service Developer Guide/ . For examples of working with grants in several programming languages, see Programming grants.
Cross-account use: Yes. To perform this operation on a KMS key in a
different Amazon Web Services account, specify the key ARN in the value
of the KeyId
parameter.
Required permissions: kms:RevokeGrant (key policy).
Related operations:
- CreateGrant
- ListGrants
- ListRetirableGrants
- RetireGrant
Synopsis
Creating a Request
data RevokeGrant Source #
See: newRevokeGrant
smart constructor.
RevokeGrant' | |
|
Instances
Create a value of RevokeGrant
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:keyId:RevokeGrant'
, revokeGrant_keyId
- A unique identifier for the KMS key associated with the grant. To get
the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.
Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN.
For example:
- Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
- Key ARN:
arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.
$sel:grantId:RevokeGrant'
, revokeGrant_grantId
- Identifies the grant to revoke. To get the grant ID, use CreateGrant,
ListGrants, or ListRetirableGrants.
Request Lenses
revokeGrant_keyId :: Lens' RevokeGrant Text Source #
A unique identifier for the KMS key associated with the grant. To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.
Specify the key ID or key ARN of the KMS key. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN.
For example:
- Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
- Key ARN:
arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.
revokeGrant_grantId :: Lens' RevokeGrant Text Source #
Identifies the grant to revoke. To get the grant ID, use CreateGrant, ListGrants, or ListRetirableGrants.
Destructuring the Response
data RevokeGrantResponse Source #
See: newRevokeGrantResponse
smart constructor.
Instances
Eq RevokeGrantResponse Source # | |
Defined in Amazonka.KMS.RevokeGrant (==) :: RevokeGrantResponse -> RevokeGrantResponse -> Bool # (/=) :: RevokeGrantResponse -> RevokeGrantResponse -> Bool # | |
Read RevokeGrantResponse Source # | |
Defined in Amazonka.KMS.RevokeGrant | |
Show RevokeGrantResponse Source # | |
Defined in Amazonka.KMS.RevokeGrant showsPrec :: Int -> RevokeGrantResponse -> ShowS # show :: RevokeGrantResponse -> String # showList :: [RevokeGrantResponse] -> ShowS # | |
Generic RevokeGrantResponse Source # | |
Defined in Amazonka.KMS.RevokeGrant type Rep RevokeGrantResponse :: Type -> Type # from :: RevokeGrantResponse -> Rep RevokeGrantResponse x # to :: Rep RevokeGrantResponse x -> RevokeGrantResponse # | |
NFData RevokeGrantResponse Source # | |
Defined in Amazonka.KMS.RevokeGrant rnf :: RevokeGrantResponse -> () # | |
type Rep RevokeGrantResponse Source # | |
newRevokeGrantResponse :: RevokeGrantResponse Source #
Create a value of RevokeGrantResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.