#[non_exhaustive]pub struct GenerateMacInput {
pub message: Option<Blob>,
pub key_id: Option<String>,
pub mac_algorithm: Option<MacAlgorithmSpec>,
pub grant_tokens: Option<Vec<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.message: 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.
key_id: 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.
mac_algorithm: 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.
grant_tokens: 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.
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 GenerateMacInput
impl GenerateMacInput
Sourcepub fn message(&self) -> Option<&Blob>
pub fn 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) -> Option<&str>
pub fn key_id(&self) -> Option<&str>
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) -> Option<&MacAlgorithmSpec>
pub fn 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) -> &[String]
pub fn grant_tokens(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .grant_tokens.is_none().
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 GenerateMacInput
impl GenerateMacInput
Sourcepub fn builder() -> GenerateMacInputBuilder
pub fn builder() -> GenerateMacInputBuilder
Creates a new builder-style object to manufacture GenerateMacInput.
Trait Implementations§
Source§impl Clone for GenerateMacInput
impl Clone for GenerateMacInput
Source§fn clone(&self) -> GenerateMacInput
fn clone(&self) -> GenerateMacInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GenerateMacInput
impl Debug for GenerateMacInput
Source§impl PartialEq for GenerateMacInput
impl PartialEq for GenerateMacInput
impl StructuralPartialEq for GenerateMacInput
Auto Trait Implementations§
impl Freeze for GenerateMacInput
impl RefUnwindSafe for GenerateMacInput
impl Send for GenerateMacInput
impl Sync for GenerateMacInput
impl Unpin for GenerateMacInput
impl UnwindSafe for GenerateMacInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more