#[non_exhaustive]pub struct CreateKeyInput {
pub key_attributes: Option<KeyAttributes>,
pub key_check_value_algorithm: Option<KeyCheckValueAlgorithm>,
pub exportable: Option<bool>,
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_attributes: Option<KeyAttributes>
The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.
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.
exportable: Option<bool>
Specifies whether the key is exportable from the service.
enabled: Option<bool>
Specifies whether to enable the key. If the key is enabled, it is activated for use within the service. If the key not enabled, then it is created but not activated. The default value 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.
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 CreateKeyInput
impl CreateKeyInput
sourcepub fn key_attributes(&self) -> Option<&KeyAttributes>
pub fn key_attributes(&self) -> Option<&KeyAttributes>
The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.
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.
sourcepub fn exportable(&self) -> Option<bool>
pub fn exportable(&self) -> Option<bool>
Specifies whether the key is exportable from the service.
sourcepub fn enabled(&self) -> Option<bool>
pub fn enabled(&self) -> Option<bool>
Specifies whether to enable the key. If the key is enabled, it is activated for use within the service. If the key not enabled, then it is created but not activated. The default value 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.
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 CreateKeyInput
impl CreateKeyInput
sourcepub fn builder() -> CreateKeyInputBuilder
pub fn builder() -> CreateKeyInputBuilder
Creates a new builder-style object to manufacture CreateKeyInput
.
Trait Implementations§
source§impl Clone for CreateKeyInput
impl Clone for CreateKeyInput
source§fn clone(&self) -> CreateKeyInput
fn clone(&self) -> CreateKeyInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateKeyInput
impl Debug for CreateKeyInput
source§impl PartialEq for CreateKeyInput
impl PartialEq for CreateKeyInput
source§fn eq(&self, other: &CreateKeyInput) -> bool
fn eq(&self, other: &CreateKeyInput) -> bool
self
and other
values to be equal, and is used
by ==
.