aws_sdk_paymentcryptographydata/client/translate_pin_data.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`TranslatePinData`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`incoming_key_identifier(impl Into<String>)`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::incoming_key_identifier) / [`set_incoming_key_identifier(Option<String>)`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::set_incoming_key_identifier):<br>required: **true**<br><p>The <code>keyARN</code> of the encryption key under which incoming PIN block data is encrypted. This key type can be PEK or BDK.</p> <p>For dynamic keys, it is the <code>keyARN</code> of KEK of the TR-31 wrapped PEK. For ECDH, it is the <code>keyARN</code> of the asymmetric ECC key.</p><br>
/// - [`outgoing_key_identifier(impl Into<String>)`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::outgoing_key_identifier) / [`set_outgoing_key_identifier(Option<String>)`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::set_outgoing_key_identifier):<br>required: **true**<br><p>The <code>keyARN</code> of the encryption key for encrypting outgoing PIN block data. This key type can be PEK or BDK.</p> <p>For ECDH, it is the <code>keyARN</code> of the asymmetric ECC key.</p><br>
/// - [`incoming_translation_attributes(TranslationIsoFormats)`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::incoming_translation_attributes) / [`set_incoming_translation_attributes(Option<TranslationIsoFormats>)`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::set_incoming_translation_attributes):<br>required: **true**<br><p>The format of the incoming PIN block data for translation within Amazon Web Services Payment Cryptography.</p><br>
/// - [`outgoing_translation_attributes(TranslationIsoFormats)`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::outgoing_translation_attributes) / [`set_outgoing_translation_attributes(Option<TranslationIsoFormats>)`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::set_outgoing_translation_attributes):<br>required: **true**<br><p>The format of the outgoing PIN block data after translation by Amazon Web Services Payment Cryptography.</p><br>
/// - [`encrypted_pin_block(impl Into<String>)`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::encrypted_pin_block) / [`set_encrypted_pin_block(Option<String>)`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::set_encrypted_pin_block):<br>required: **true**<br><p>The encrypted PIN block data that Amazon Web Services Payment Cryptography translates.</p><br>
/// - [`incoming_dukpt_attributes(DukptDerivationAttributes)`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::incoming_dukpt_attributes) / [`set_incoming_dukpt_attributes(Option<DukptDerivationAttributes>)`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::set_incoming_dukpt_attributes):<br>required: **false**<br><p>The attributes and values to use for incoming DUKPT encryption key for PIN block translation.</p><br>
/// - [`outgoing_dukpt_attributes(DukptDerivationAttributes)`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::outgoing_dukpt_attributes) / [`set_outgoing_dukpt_attributes(Option<DukptDerivationAttributes>)`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::set_outgoing_dukpt_attributes):<br>required: **false**<br><p>The attributes and values to use for outgoing DUKPT encryption key after PIN block translation.</p><br>
/// - [`incoming_wrapped_key(WrappedKey)`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::incoming_wrapped_key) / [`set_incoming_wrapped_key(Option<WrappedKey>)`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::set_incoming_wrapped_key):<br>required: **false**<br><p>The WrappedKeyBlock containing the encryption key under which incoming PIN block data is encrypted.</p><br>
/// - [`outgoing_wrapped_key(WrappedKey)`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::outgoing_wrapped_key) / [`set_outgoing_wrapped_key(Option<WrappedKey>)`](crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::set_outgoing_wrapped_key):<br>required: **false**<br><p>The WrappedKeyBlock containing the encryption key for encrypting outgoing PIN block data.</p><br>
/// - On success, responds with [`TranslatePinDataOutput`](crate::operation::translate_pin_data::TranslatePinDataOutput) with field(s):
/// - [`pin_block(String)`](crate::operation::translate_pin_data::TranslatePinDataOutput::pin_block): <p>The outgoing encrypted PIN block data after translation.</p>
/// - [`key_arn(String)`](crate::operation::translate_pin_data::TranslatePinDataOutput::key_arn): <p>The <code>keyARN</code> of the encryption key that Amazon Web Services Payment Cryptography uses to encrypt outgoing PIN block data after translation.</p>
/// - [`key_check_value(String)`](crate::operation::translate_pin_data::TranslatePinDataOutput::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>
/// - On failure, responds with [`SdkError<TranslatePinDataError>`](crate::operation::translate_pin_data::TranslatePinDataError)
pub fn translate_pin_data(&self) -> crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder {
crate::operation::translate_pin_data::builders::TranslatePinDataFluentBuilder::new(self.handle.clone())
}
}