Struct aws_sdk_kms::input::GenerateMacInput
source · [−]#[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>>,
}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.
Implementations
sourceimpl GenerateMacInput
impl GenerateMacInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GenerateMac, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GenerateMac, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<GenerateMac>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GenerateMacInput
sourceimpl 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) -> Option<&[String]>
pub fn grant_tokens(&self) -> Option<&[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.
Trait Implementations
sourceimpl Clone for GenerateMacInput
impl Clone for GenerateMacInput
sourcefn clone(&self) -> GenerateMacInput
fn clone(&self) -> GenerateMacInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for GenerateMacInput
impl Debug for GenerateMacInput
sourceimpl PartialEq<GenerateMacInput> for GenerateMacInput
impl PartialEq<GenerateMacInput> for GenerateMacInput
sourcefn eq(&self, other: &GenerateMacInput) -> bool
fn eq(&self, other: &GenerateMacInput) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &GenerateMacInput) -> bool
fn ne(&self, other: &GenerateMacInput) -> bool
This method tests for !=.
impl StructuralPartialEq for GenerateMacInput
Auto Trait Implementations
impl RefUnwindSafe for GenerateMacInput
impl Send for GenerateMacInput
impl Sync for GenerateMacInput
impl Unpin for GenerateMacInput
impl UnwindSafe for GenerateMacInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more