#[non_exhaustive]pub struct GenerateMacInputBuilder { /* private fields */ }
Expand description
A builder for GenerateMacInput
.
Implementations§
source§impl GenerateMacInputBuilder
impl GenerateMacInputBuilder
sourcepub fn message(self, input: Blob) -> Self
pub fn message(self, input: Blob) -> Self
The message to be hashed. Specify a message of up to 4,096 bytes.
GenerateMac
and VerifyMac
do not provide special handling for message digests. If you generate an HMAC for a hash digest of a message, you must verify the HMAC of the same hash digest.
sourcepub fn set_message(self, input: Option<Blob>) -> Self
pub fn set_message(self, input: Option<Blob>) -> Self
The message to be hashed. Specify a message of up to 4,096 bytes.
GenerateMac
and VerifyMac
do not provide special handling for message digests. If you generate an HMAC for a hash digest of a message, you must verify the HMAC of the same hash digest.
sourcepub fn get_message(&self) -> &Option<Blob>
pub fn get_message(&self) -> &Option<Blob>
The message to be hashed. Specify a message of up to 4,096 bytes.
GenerateMac
and VerifyMac
do not provide special handling for message digests. If you generate an HMAC for a hash digest of a message, you must verify the HMAC of the same hash digest.
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
The HMAC KMS key to use in the operation. The MAC algorithm computes the HMAC for the message and the key as described in RFC 2104.
To identify an HMAC KMS key, use the DescribeKey
operation and see the KeySpec
field in the response.
sourcepub fn set_key_id(self, input: Option<String>) -> Self
pub fn set_key_id(self, input: Option<String>) -> Self
The HMAC KMS key to use in the operation. The MAC algorithm computes the HMAC for the message and the key as described in RFC 2104.
To identify an HMAC KMS key, use the DescribeKey
operation and see the KeySpec
field in the response.
sourcepub fn get_key_id(&self) -> &Option<String>
pub fn get_key_id(&self) -> &Option<String>
The HMAC KMS key to use in the operation. The MAC algorithm computes the HMAC for the message and the key as described in RFC 2104.
To identify an HMAC KMS key, use the DescribeKey
operation and see the KeySpec
field in the response.
sourcepub fn mac_algorithm(self, input: MacAlgorithmSpec) -> Self
pub fn mac_algorithm(self, input: MacAlgorithmSpec) -> Self
The MAC algorithm used in the operation.
The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that your HMAC KMS key supports, use the DescribeKey
operation and see the MacAlgorithms
field in the DescribeKey
response.
sourcepub fn set_mac_algorithm(self, input: Option<MacAlgorithmSpec>) -> Self
pub fn set_mac_algorithm(self, input: Option<MacAlgorithmSpec>) -> Self
The MAC algorithm used in the operation.
The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that your HMAC KMS key supports, use the DescribeKey
operation and see the MacAlgorithms
field in the DescribeKey
response.
sourcepub fn get_mac_algorithm(&self) -> &Option<MacAlgorithmSpec>
pub fn get_mac_algorithm(&self) -> &Option<MacAlgorithmSpec>
The MAC algorithm used in the operation.
The algorithm must be compatible with the HMAC KMS key that you specify. To find the MAC algorithms that your HMAC KMS key supports, use the DescribeKey
operation and see the MacAlgorithms
field in the DescribeKey
response.
sourcepub fn grant_tokens(self, input: impl Into<String>) -> Self
pub fn grant_tokens(self, input: impl Into<String>) -> Self
Appends an item to grant_tokens
.
To override the contents of this collection use set_grant_tokens
.
A list of grant tokens.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
sourcepub fn set_grant_tokens(self, input: Option<Vec<String>>) -> Self
pub fn set_grant_tokens(self, input: Option<Vec<String>>) -> Self
A list of grant tokens.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
sourcepub fn get_grant_tokens(&self) -> &Option<Vec<String>>
pub fn get_grant_tokens(&self) -> &Option<Vec<String>>
A list of grant tokens.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
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<GenerateMacInput, BuildError>
pub fn build(self) -> Result<GenerateMacInput, BuildError>
Consumes the builder and constructs a GenerateMacInput
.
source§impl GenerateMacInputBuilder
impl GenerateMacInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GenerateMacOutput, SdkError<GenerateMacError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GenerateMacOutput, SdkError<GenerateMacError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GenerateMacInputBuilder
impl Clone for GenerateMacInputBuilder
source§fn clone(&self) -> GenerateMacInputBuilder
fn clone(&self) -> GenerateMacInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GenerateMacInputBuilder
impl Debug for GenerateMacInputBuilder
source§impl Default for GenerateMacInputBuilder
impl Default for GenerateMacInputBuilder
source§fn default() -> GenerateMacInputBuilder
fn default() -> GenerateMacInputBuilder
source§impl PartialEq for GenerateMacInputBuilder
impl PartialEq for GenerateMacInputBuilder
source§fn eq(&self, other: &GenerateMacInputBuilder) -> bool
fn eq(&self, other: &GenerateMacInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.