aws_sdk_paymentcryptographydata/client/
decrypt_data.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 [`DecryptData`](crate::operation::decrypt_data::builders::DecryptDataFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`key_identifier(impl Into<String>)`](crate::operation::decrypt_data::builders::DecryptDataFluentBuilder::key_identifier) / [`set_key_identifier(Option<String>)`](crate::operation::decrypt_data::builders::DecryptDataFluentBuilder::set_key_identifier):<br>required: **true**<br><p>The <code>keyARN</code> of the encryption key that Amazon Web Services Payment Cryptography uses for ciphertext decryption.</p> <p>When a WrappedKeyBlock is provided, this value will be the identifier to the key wrapping key. Otherwise, it is the key identifier used to perform the operation.</p><br>
7    ///   - [`cipher_text(impl Into<String>)`](crate::operation::decrypt_data::builders::DecryptDataFluentBuilder::cipher_text) / [`set_cipher_text(Option<String>)`](crate::operation::decrypt_data::builders::DecryptDataFluentBuilder::set_cipher_text):<br>required: **true**<br><p>The ciphertext to decrypt.</p><br>
8    ///   - [`decryption_attributes(EncryptionDecryptionAttributes)`](crate::operation::decrypt_data::builders::DecryptDataFluentBuilder::decryption_attributes) / [`set_decryption_attributes(Option<EncryptionDecryptionAttributes>)`](crate::operation::decrypt_data::builders::DecryptDataFluentBuilder::set_decryption_attributes):<br>required: **true**<br><p>The encryption key type and attributes for ciphertext decryption.</p><br>
9    ///   - [`wrapped_key(WrappedKey)`](crate::operation::decrypt_data::builders::DecryptDataFluentBuilder::wrapped_key) / [`set_wrapped_key(Option<WrappedKey>)`](crate::operation::decrypt_data::builders::DecryptDataFluentBuilder::set_wrapped_key):<br>required: **false**<br><p>The WrappedKeyBlock containing the encryption key for ciphertext decryption.</p><br>
10    /// - On success, responds with [`DecryptDataOutput`](crate::operation::decrypt_data::DecryptDataOutput) with field(s):
11    ///   - [`key_arn(String)`](crate::operation::decrypt_data::DecryptDataOutput::key_arn): <p>The <code>keyARN</code> of the encryption key that Amazon Web Services Payment Cryptography uses for ciphertext decryption.</p>
12    ///   - [`key_check_value(String)`](crate::operation::decrypt_data::DecryptDataOutput::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    ///   - [`plain_text(String)`](crate::operation::decrypt_data::DecryptDataOutput::plain_text): <p>The decrypted plaintext data in hexBinary format.</p>
14    /// - On failure, responds with [`SdkError<DecryptDataError>`](crate::operation::decrypt_data::DecryptDataError)
15    pub fn decrypt_data(&self) -> crate::operation::decrypt_data::builders::DecryptDataFluentBuilder {
16        crate::operation::decrypt_data::builders::DecryptDataFluentBuilder::new(self.handle.clone())
17    }
18}