#[non_exhaustive]pub struct ImportKeyInput {
pub key_material: Option<ImportKeyMaterial>,
pub key_check_value_algorithm: Option<KeyCheckValueAlgorithm>,
pub enabled: Option<bool>,
pub tags: Option<Vec<Tag>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.key_material: Option<ImportKeyMaterial>
The key or public key certificate type to use during key material import, for example TR-34 or RootCertificatePublicKey.
key_check_value_algorithm: 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.
enabled: Option<bool>
Specifies whether import key is enabled.
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.
Implementations§
source§impl ImportKeyInput
impl ImportKeyInput
sourcepub fn key_material(&self) -> Option<&ImportKeyMaterial>
pub fn 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) -> Option<&KeyCheckValueAlgorithm>
pub fn 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.
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.
source§impl ImportKeyInput
impl ImportKeyInput
sourcepub fn builder() -> ImportKeyInputBuilder
pub fn builder() -> ImportKeyInputBuilder
Creates a new builder-style object to manufacture ImportKeyInput
.
Trait Implementations§
source§impl Clone for ImportKeyInput
impl Clone for ImportKeyInput
source§fn clone(&self) -> ImportKeyInput
fn clone(&self) -> ImportKeyInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImportKeyInput
impl Debug for ImportKeyInput
source§impl PartialEq for ImportKeyInput
impl PartialEq for ImportKeyInput
source§fn eq(&self, other: &ImportKeyInput) -> bool
fn eq(&self, other: &ImportKeyInput) -> bool
self
and other
values to be equal, and is used
by ==
.