aws_sdk_paymentcryptographydata/client/
generate_mac.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GenerateMac`](crate::operation::generate_mac::builders::GenerateMacFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`key_identifier(impl Into<String>)`](crate::operation::generate_mac::builders::GenerateMacFluentBuilder::key_identifier) / [`set_key_identifier(Option<String>)`](crate::operation::generate_mac::builders::GenerateMacFluentBuilder::set_key_identifier):<br>required: **true**<br><p>The <code>keyARN</code> of the MAC generation encryption key.</p><br>
7    ///   - [`message_data(impl Into<String>)`](crate::operation::generate_mac::builders::GenerateMacFluentBuilder::message_data) / [`set_message_data(Option<String>)`](crate::operation::generate_mac::builders::GenerateMacFluentBuilder::set_message_data):<br>required: **true**<br><p>The data for which a MAC is under generation. This value must be hexBinary.</p><br>
8    ///   - [`generation_attributes(MacAttributes)`](crate::operation::generate_mac::builders::GenerateMacFluentBuilder::generation_attributes) / [`set_generation_attributes(Option<MacAttributes>)`](crate::operation::generate_mac::builders::GenerateMacFluentBuilder::set_generation_attributes):<br>required: **true**<br><p>The attributes and data values to use for MAC generation within Amazon Web Services Payment Cryptography.</p><br>
9    ///   - [`mac_length(i32)`](crate::operation::generate_mac::builders::GenerateMacFluentBuilder::mac_length) / [`set_mac_length(Option<i32>)`](crate::operation::generate_mac::builders::GenerateMacFluentBuilder::set_mac_length):<br>required: **false**<br><p>The length of a MAC under generation.</p><br>
10    /// - On success, responds with [`GenerateMacOutput`](crate::operation::generate_mac::GenerateMacOutput) with field(s):
11    ///   - [`key_arn(String)`](crate::operation::generate_mac::GenerateMacOutput::key_arn): <p>The <code>keyARN</code> of the encryption key that Amazon Web Services Payment Cryptography uses for MAC generation.</p>
12    ///   - [`key_check_value(String)`](crate::operation::generate_mac::GenerateMacOutput::key_check_value): <p>The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given key have the same key or to detect that a key has changed.</p> <p>Amazon Web Services Payment Cryptography computes the KCV according to the CMAC specification.</p>
13    ///   - [`mac(String)`](crate::operation::generate_mac::GenerateMacOutput::mac): <p>The MAC cryptogram generated within Amazon Web Services Payment Cryptography.</p>
14    /// - On failure, responds with [`SdkError<GenerateMacError>`](crate::operation::generate_mac::GenerateMacError)
15    pub fn generate_mac(&self) -> crate::operation::generate_mac::builders::GenerateMacFluentBuilder {
16        crate::operation::generate_mac::builders::GenerateMacFluentBuilder::new(self.handle.clone())
17    }
18}