Struct aws_sdk_kms::operation::retire_grant::RetireGrantInput
source · #[non_exhaustive]pub struct RetireGrantInput {
pub grant_token: Option<String>,
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.grant_token: Option<String>
Identifies the grant to be retired. You can use a grant token to identify a new grant even before it has achieved eventual consistency.
Only the CreateGrant
operation returns a grant token. For details, see Grant token and Eventual consistency in the Key Management Service Developer Guide.
key_id: Option<String>
The key ARN KMS key associated with the grant. To find the key ARN, use the ListKeys
operation.
For example: arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab
grant_id: Option<String>
Identifies the grant to retire. To get the grant ID, use CreateGrant
, ListGrants
, or ListRetirableGrants
.
-
Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
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 RetireGrantInput
impl RetireGrantInput
sourcepub fn grant_token(&self) -> Option<&str>
pub fn grant_token(&self) -> Option<&str>
Identifies the grant to be retired. You can use a grant token to identify a new grant even before it has achieved eventual consistency.
Only the CreateGrant
operation returns a grant token. For details, see Grant token and Eventual consistency in the Key Management Service Developer Guide.
sourcepub fn key_id(&self) -> Option<&str>
pub fn key_id(&self) -> Option<&str>
The key ARN KMS key associated with the grant. To find the key ARN, use the ListKeys
operation.
For example: arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab
sourcepub fn grant_id(&self) -> Option<&str>
pub fn grant_id(&self) -> Option<&str>
Identifies the grant to retire. To get the grant ID, use CreateGrant
, ListGrants
, or ListRetirableGrants
.
-
Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
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 RetireGrantInput
impl RetireGrantInput
sourcepub fn builder() -> RetireGrantInputBuilder
pub fn builder() -> RetireGrantInputBuilder
Creates a new builder-style object to manufacture RetireGrantInput
.
Trait Implementations§
source§impl Clone for RetireGrantInput
impl Clone for RetireGrantInput
source§fn clone(&self) -> RetireGrantInput
fn clone(&self) -> RetireGrantInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RetireGrantInput
impl Debug for RetireGrantInput
source§impl PartialEq for RetireGrantInput
impl PartialEq for RetireGrantInput
source§fn eq(&self, other: &RetireGrantInput) -> bool
fn eq(&self, other: &RetireGrantInput) -> bool
self
and other
values to be equal, and is used
by ==
.