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