aws_sdk_paymentcryptographydata/client/re_encrypt_data.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ReEncryptData`](crate::operation::re_encrypt_data::builders::ReEncryptDataFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`incoming_key_identifier(impl Into<String>)`](crate::operation::re_encrypt_data::builders::ReEncryptDataFluentBuilder::incoming_key_identifier) / [`set_incoming_key_identifier(Option<String>)`](crate::operation::re_encrypt_data::builders::ReEncryptDataFluentBuilder::set_incoming_key_identifier):<br>required: **true**<br><p>The <code>keyARN</code> of the encryption key of incoming ciphertext data.</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>
/// - [`outgoing_key_identifier(impl Into<String>)`](crate::operation::re_encrypt_data::builders::ReEncryptDataFluentBuilder::outgoing_key_identifier) / [`set_outgoing_key_identifier(Option<String>)`](crate::operation::re_encrypt_data::builders::ReEncryptDataFluentBuilder::set_outgoing_key_identifier):<br>required: **true**<br><p>The <code>keyARN</code> of the encryption key of outgoing ciphertext data after encryption by Amazon Web Services Payment Cryptography.</p><br>
/// - [`cipher_text(impl Into<String>)`](crate::operation::re_encrypt_data::builders::ReEncryptDataFluentBuilder::cipher_text) / [`set_cipher_text(Option<String>)`](crate::operation::re_encrypt_data::builders::ReEncryptDataFluentBuilder::set_cipher_text):<br>required: **true**<br><p>Ciphertext to be encrypted. The minimum allowed length is 16 bytes and maximum allowed length is 4096 bytes.</p><br>
/// - [`incoming_encryption_attributes(ReEncryptionAttributes)`](crate::operation::re_encrypt_data::builders::ReEncryptDataFluentBuilder::incoming_encryption_attributes) / [`set_incoming_encryption_attributes(Option<ReEncryptionAttributes>)`](crate::operation::re_encrypt_data::builders::ReEncryptDataFluentBuilder::set_incoming_encryption_attributes):<br>required: **true**<br><p>The attributes and values for incoming ciphertext.</p><br>
/// - [`outgoing_encryption_attributes(ReEncryptionAttributes)`](crate::operation::re_encrypt_data::builders::ReEncryptDataFluentBuilder::outgoing_encryption_attributes) / [`set_outgoing_encryption_attributes(Option<ReEncryptionAttributes>)`](crate::operation::re_encrypt_data::builders::ReEncryptDataFluentBuilder::set_outgoing_encryption_attributes):<br>required: **true**<br><p>The attributes and values for outgoing ciphertext data after encryption by Amazon Web Services Payment Cryptography.</p><br>
/// - [`incoming_wrapped_key(WrappedKey)`](crate::operation::re_encrypt_data::builders::ReEncryptDataFluentBuilder::incoming_wrapped_key) / [`set_incoming_wrapped_key(Option<WrappedKey>)`](crate::operation::re_encrypt_data::builders::ReEncryptDataFluentBuilder::set_incoming_wrapped_key):<br>required: **false**<br><p>The WrappedKeyBlock containing the encryption key of incoming ciphertext data.</p><br>
/// - [`outgoing_wrapped_key(WrappedKey)`](crate::operation::re_encrypt_data::builders::ReEncryptDataFluentBuilder::outgoing_wrapped_key) / [`set_outgoing_wrapped_key(Option<WrappedKey>)`](crate::operation::re_encrypt_data::builders::ReEncryptDataFluentBuilder::set_outgoing_wrapped_key):<br>required: **false**<br><p>The WrappedKeyBlock containing the encryption key of outgoing ciphertext data after encryption by Amazon Web Services Payment Cryptography.</p><br>
/// - On success, responds with [`ReEncryptDataOutput`](crate::operation::re_encrypt_data::ReEncryptDataOutput) with field(s):
/// - [`key_arn(String)`](crate::operation::re_encrypt_data::ReEncryptDataOutput::key_arn): <p>The keyARN (Amazon Resource Name) of the encryption key that Amazon Web Services Payment Cryptography uses for plaintext encryption.</p>
/// - [`key_check_value(String)`](crate::operation::re_encrypt_data::ReEncryptDataOutput::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>
/// - [`cipher_text(String)`](crate::operation::re_encrypt_data::ReEncryptDataOutput::cipher_text): <p>The encrypted ciphertext.</p>
/// - On failure, responds with [`SdkError<ReEncryptDataError>`](crate::operation::re_encrypt_data::ReEncryptDataError)
pub fn re_encrypt_data(&self) -> crate::operation::re_encrypt_data::builders::ReEncryptDataFluentBuilder {
crate::operation::re_encrypt_data::builders::ReEncryptDataFluentBuilder::new(self.handle.clone())
}
}