#[non_exhaustive]pub struct ImportKeyInputBuilder { /* private fields */ }
Expand description
A builder for ImportKeyInput
.
Implementations§
source§impl ImportKeyInputBuilder
impl ImportKeyInputBuilder
sourcepub fn key_material(self, input: ImportKeyMaterial) -> Self
pub fn key_material(self, input: ImportKeyMaterial) -> Self
The key or public key certificate type to use during key material import, for example TR-34 or RootCertificatePublicKey.
sourcepub fn set_key_material(self, input: Option<ImportKeyMaterial>) -> Self
pub fn set_key_material(self, input: Option<ImportKeyMaterial>) -> Self
The key or public key certificate type to use during key material import, for example TR-34 or RootCertificatePublicKey.
sourcepub fn get_key_material(&self) -> &Option<ImportKeyMaterial>
pub fn get_key_material(&self) -> &Option<ImportKeyMaterial>
The key or public key certificate type to use during key material import, for example TR-34 or RootCertificatePublicKey.
sourcepub fn key_check_value_algorithm(self, input: KeyCheckValueAlgorithm) -> Self
pub fn key_check_value_algorithm(self, input: KeyCheckValueAlgorithm) -> Self
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV) for DES and AES keys.
For DES key, the KCV is computed by encrypting 8 bytes, each with value '00', with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES key, the KCV is computed by encrypting 8 bytes, each with value '01', with the key to be checked and retaining the 3 highest order bytes of the encrypted result.
sourcepub fn set_key_check_value_algorithm(
self,
input: Option<KeyCheckValueAlgorithm>
) -> Self
pub fn set_key_check_value_algorithm( self, input: Option<KeyCheckValueAlgorithm> ) -> Self
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV) for DES and AES keys.
For DES key, the KCV is computed by encrypting 8 bytes, each with value '00', with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES key, the KCV is computed by encrypting 8 bytes, each with value '01', with the key to be checked and retaining the 3 highest order bytes of the encrypted result.
sourcepub fn get_key_check_value_algorithm(&self) -> &Option<KeyCheckValueAlgorithm>
pub fn get_key_check_value_algorithm(&self) -> &Option<KeyCheckValueAlgorithm>
The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV) for DES and AES keys.
For DES key, the KCV is computed by encrypting 8 bytes, each with value '00', with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES key, the KCV is computed by encrypting 8 bytes, each with value '01', with the key to be checked and retaining the 3 highest order bytes of the encrypted result.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Specifies whether import key is enabled.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
Specifies whether import key is enabled.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags to attach to the key. Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key.
You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. If you specify an existing tag key with a different tag value, Amazon Web Services Payment Cryptography replaces the current tag value with the specified one.
To use this parameter, you must have TagResource
permission.
Don't include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.
The tags to attach to the key. Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key.
You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. If you specify an existing tag key with a different tag value, Amazon Web Services Payment Cryptography replaces the current tag value with the specified one.
To use this parameter, you must have TagResource
permission.
Don't include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.
The tags to attach to the key. Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required, but the tag value can be an empty (null) string. You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key.
You can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. If you specify an existing tag key with a different tag value, Amazon Web Services Payment Cryptography replaces the current tag value with the specified one.
To use this parameter, you must have TagResource
permission.
Don't include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.
Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.
sourcepub fn build(self) -> Result<ImportKeyInput, BuildError>
pub fn build(self) -> Result<ImportKeyInput, BuildError>
Consumes the builder and constructs a ImportKeyInput
.
source§impl ImportKeyInputBuilder
impl ImportKeyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ImportKeyOutput, SdkError<ImportKeyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ImportKeyOutput, SdkError<ImportKeyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ImportKeyInputBuilder
impl Clone for ImportKeyInputBuilder
source§fn clone(&self) -> ImportKeyInputBuilder
fn clone(&self) -> ImportKeyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImportKeyInputBuilder
impl Debug for ImportKeyInputBuilder
source§impl Default for ImportKeyInputBuilder
impl Default for ImportKeyInputBuilder
source§fn default() -> ImportKeyInputBuilder
fn default() -> ImportKeyInputBuilder
source§impl PartialEq for ImportKeyInputBuilder
impl PartialEq for ImportKeyInputBuilder
source§fn eq(&self, other: &ImportKeyInputBuilder) -> bool
fn eq(&self, other: &ImportKeyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.