#[non_exhaustive]pub struct RetireGrantInputBuilder { /* private fields */ }
Expand description
A builder for RetireGrantInput
.
Implementations§
source§impl RetireGrantInputBuilder
impl RetireGrantInputBuilder
sourcepub fn grant_token(self, input: impl Into<String>) -> Self
pub fn grant_token(self, input: impl Into<String>) -> Self
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 set_grant_token(self, input: Option<String>) -> Self
pub fn set_grant_token(self, input: Option<String>) -> Self
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 get_grant_token(&self) -> &Option<String>
pub fn get_grant_token(&self) -> &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.
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
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 set_key_id(self, input: Option<String>) -> Self
pub fn set_key_id(self, input: Option<String>) -> Self
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 get_key_id(&self) -> &Option<String>
pub fn get_key_id(&self) -> &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
sourcepub fn grant_id(self, input: impl Into<String>) -> Self
pub fn grant_id(self, input: impl Into<String>) -> Self
Identifies the grant to retire. To get the grant ID, use CreateGrant
, ListGrants
, or ListRetirableGrants
.
-
Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
sourcepub fn set_grant_id(self, input: Option<String>) -> Self
pub fn set_grant_id(self, input: Option<String>) -> Self
Identifies the grant to retire. To get the grant ID, use CreateGrant
, ListGrants
, or ListRetirableGrants
.
-
Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
sourcepub fn get_grant_id(&self) -> &Option<String>
pub fn get_grant_id(&self) -> &Option<String>
Identifies the grant to retire. To get the grant ID, use CreateGrant
, ListGrants
, or ListRetirableGrants
.
-
Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
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.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
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.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_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.
sourcepub fn build(self) -> Result<RetireGrantInput, BuildError>
pub fn build(self) -> Result<RetireGrantInput, BuildError>
Consumes the builder and constructs a RetireGrantInput
.
source§impl RetireGrantInputBuilder
impl RetireGrantInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<RetireGrantOutput, SdkError<RetireGrantError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<RetireGrantOutput, SdkError<RetireGrantError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for RetireGrantInputBuilder
impl Clone for RetireGrantInputBuilder
source§fn clone(&self) -> RetireGrantInputBuilder
fn clone(&self) -> RetireGrantInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RetireGrantInputBuilder
impl Debug for RetireGrantInputBuilder
source§impl Default for RetireGrantInputBuilder
impl Default for RetireGrantInputBuilder
source§fn default() -> RetireGrantInputBuilder
fn default() -> RetireGrantInputBuilder
source§impl PartialEq for RetireGrantInputBuilder
impl PartialEq for RetireGrantInputBuilder
source§fn eq(&self, other: &RetireGrantInputBuilder) -> bool
fn eq(&self, other: &RetireGrantInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.