1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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><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><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 tranlation 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 tranlation 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 tranlation.</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>
    /// - 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 ougoing encrypted PIN block data after tranlation.</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. Amazon Web Services Payment Cryptography calculates the KCV by using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result to the first 3 bytes, or 6 hex digits, of the resulting cryptogram.</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())
    }
}