Struct aws_sdk_kms::operation::revoke_grant::RevokeGrantInput
source · #[non_exhaustive]pub struct RevokeGrantInput {
pub key_id: Option<String>,
pub grant_id: Option<String>,
pub dry_run: Option<bool>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.key_id: Option<String>
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
.
grant_id: Option<String>
Identifies the grant to revoke. To get the grant ID, use CreateGrant
, ListGrants
, or ListRetirableGrants
.
dry_run: Option<bool>
Checks if your request will succeed. DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
Implementations§
source§impl RevokeGrantInput
impl RevokeGrantInput
sourcepub fn key_id(&self) -> Option<&str>
pub fn key_id(&self) -> Option<&str>
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
.
sourcepub fn grant_id(&self) -> Option<&str>
pub fn grant_id(&self) -> Option<&str>
Identifies the grant to revoke. To get the grant ID, use CreateGrant
, ListGrants
, or ListRetirableGrants
.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks if your request will succeed. DryRun
is an optional parameter.
To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
source§impl RevokeGrantInput
impl RevokeGrantInput
sourcepub fn builder() -> RevokeGrantInputBuilder
pub fn builder() -> RevokeGrantInputBuilder
Creates a new builder-style object to manufacture RevokeGrantInput
.
Trait Implementations§
source§impl Clone for RevokeGrantInput
impl Clone for RevokeGrantInput
source§fn clone(&self) -> RevokeGrantInput
fn clone(&self) -> RevokeGrantInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RevokeGrantInput
impl Debug for RevokeGrantInput
source§impl PartialEq for RevokeGrantInput
impl PartialEq for RevokeGrantInput
source§fn eq(&self, other: &RevokeGrantInput) -> bool
fn eq(&self, other: &RevokeGrantInput) -> bool
self
and other
values to be equal, and is used
by ==
.