#[non_exhaustive]pub struct CreateKeyInputBuilder { /* private fields */ }
Expand description
A builder for CreateKeyInput
.
Implementations§
source§impl CreateKeyInputBuilder
impl CreateKeyInputBuilder
sourcepub fn key_attributes(self, input: KeyAttributes) -> Self
pub fn key_attributes(self, input: KeyAttributes) -> Self
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 set_key_attributes(self, input: Option<KeyAttributes>) -> Self
pub fn set_key_attributes(self, input: Option<KeyAttributes>) -> Self
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 get_key_attributes(&self) -> &Option<KeyAttributes>
pub fn get_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, 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 exportable(self, input: bool) -> Self
pub fn exportable(self, input: bool) -> Self
Specifies whether the key is exportable from the service.
sourcepub fn set_exportable(self, input: Option<bool>) -> Self
pub fn set_exportable(self, input: Option<bool>) -> Self
Specifies whether the key is exportable from the service.
sourcepub fn get_exportable(&self) -> &Option<bool>
pub fn get_exportable(&self) -> &Option<bool>
Specifies whether the key is exportable from the service.
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
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.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
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.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_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.
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.
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.
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.
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<CreateKeyInput, BuildError>
pub fn build(self) -> Result<CreateKeyInput, BuildError>
Consumes the builder and constructs a CreateKeyInput
.
source§impl CreateKeyInputBuilder
impl CreateKeyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateKeyOutput, SdkError<CreateKeyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateKeyOutput, SdkError<CreateKeyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateKeyInputBuilder
impl Clone for CreateKeyInputBuilder
source§fn clone(&self) -> CreateKeyInputBuilder
fn clone(&self) -> CreateKeyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateKeyInputBuilder
impl Debug for CreateKeyInputBuilder
source§impl Default for CreateKeyInputBuilder
impl Default for CreateKeyInputBuilder
source§fn default() -> CreateKeyInputBuilder
fn default() -> CreateKeyInputBuilder
source§impl PartialEq for CreateKeyInputBuilder
impl PartialEq for CreateKeyInputBuilder
source§fn eq(&self, other: &CreateKeyInputBuilder) -> bool
fn eq(&self, other: &CreateKeyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.