aws_sdk_paymentcryptography/client/
get_parameters_for_import.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 [`GetParametersForImport`](crate::operation::get_parameters_for_import::builders::GetParametersForImportFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`key_material_type(KeyMaterialType)`](crate::operation::get_parameters_for_import::builders::GetParametersForImportFluentBuilder::key_material_type) / [`set_key_material_type(Option<KeyMaterialType>)`](crate::operation::get_parameters_for_import::builders::GetParametersForImportFluentBuilder::set_key_material_type):<br>required: **true**<br><p>The method to use for key material import. Import token is only required for TR-34 WrappedKeyBlock (<code>TR34_KEY_BLOCK</code>) and RSA WrappedKeyCryptogram (<code>KEY_CRYPTOGRAM</code>).</p> <p>Import token is not required for TR-31, root public key cerificate or trusted public key certificate.</p><br>
7    ///   - [`wrapping_key_algorithm(KeyAlgorithm)`](crate::operation::get_parameters_for_import::builders::GetParametersForImportFluentBuilder::wrapping_key_algorithm) / [`set_wrapping_key_algorithm(Option<KeyAlgorithm>)`](crate::operation::get_parameters_for_import::builders::GetParametersForImportFluentBuilder::set_wrapping_key_algorithm):<br>required: **true**<br><p>The wrapping key algorithm to generate a wrapping key certificate. This certificate wraps the key under import.</p> <p>At this time, <code>RSA_2048</code> is the allowed algorithm for TR-34 WrappedKeyBlock import. Additionally, <code>RSA_2048</code>, <code>RSA_3072</code>, <code>RSA_4096</code> are the allowed algorithms for RSA WrappedKeyCryptogram import.</p><br>
8    /// - On success, responds with [`GetParametersForImportOutput`](crate::operation::get_parameters_for_import::GetParametersForImportOutput) with field(s):
9    ///   - [`wrapping_key_certificate(String)`](crate::operation::get_parameters_for_import::GetParametersForImportOutput::wrapping_key_certificate): <p>The wrapping key certificate in PEM format (base64 encoded) of the wrapping key for use within the TR-34 key block. The certificate expires in 30 days.</p>
10    ///   - [`wrapping_key_certificate_chain(String)`](crate::operation::get_parameters_for_import::GetParametersForImportOutput::wrapping_key_certificate_chain): <p>The Amazon Web Services Payment Cryptography root certificate authority (CA) that signed the wrapping key certificate in PEM format (base64 encoded).</p>
11    ///   - [`wrapping_key_algorithm(KeyAlgorithm)`](crate::operation::get_parameters_for_import::GetParametersForImportOutput::wrapping_key_algorithm): <p>The algorithm of the wrapping key for use within TR-34 WrappedKeyBlock or RSA WrappedKeyCryptogram.</p>
12    ///   - [`import_token(String)`](crate::operation::get_parameters_for_import::GetParametersForImportOutput::import_token): <p>The import token to initiate key import into Amazon Web Services Payment Cryptography. The import token expires after 30 days. You can use the same import token to import multiple keys to the same service account.</p>
13    ///   - [`parameters_valid_until_timestamp(DateTime)`](crate::operation::get_parameters_for_import::GetParametersForImportOutput::parameters_valid_until_timestamp): <p>The validity period of the import token.</p>
14    /// - On failure, responds with [`SdkError<GetParametersForImportError>`](crate::operation::get_parameters_for_import::GetParametersForImportError)
15    pub fn get_parameters_for_import(&self) -> crate::operation::get_parameters_for_import::builders::GetParametersForImportFluentBuilder {
16        crate::operation::get_parameters_for_import::builders::GetParametersForImportFluentBuilder::new(self.handle.clone())
17    }
18}