Struct aws_sdk_kms::operation::generate_data_key_pair::builders::GenerateDataKeyPairOutputBuilder
source · #[non_exhaustive]pub struct GenerateDataKeyPairOutputBuilder { /* private fields */ }
Expand description
A builder for GenerateDataKeyPairOutput
.
Implementations§
source§impl GenerateDataKeyPairOutputBuilder
impl GenerateDataKeyPairOutputBuilder
sourcepub fn private_key_ciphertext_blob(self, input: Blob) -> Self
pub fn private_key_ciphertext_blob(self, input: Blob) -> Self
The encrypted copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
sourcepub fn set_private_key_ciphertext_blob(self, input: Option<Blob>) -> Self
pub fn set_private_key_ciphertext_blob(self, input: Option<Blob>) -> Self
The encrypted copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
sourcepub fn get_private_key_ciphertext_blob(&self) -> &Option<Blob>
pub fn get_private_key_ciphertext_blob(&self) -> &Option<Blob>
The encrypted copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
sourcepub fn private_key_plaintext(self, input: Blob) -> Self
pub fn private_key_plaintext(self, input: Blob) -> Self
The plaintext copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
If the response includes the CiphertextForRecipient
field, the PrivateKeyPlaintext
field is null or empty.
sourcepub fn set_private_key_plaintext(self, input: Option<Blob>) -> Self
pub fn set_private_key_plaintext(self, input: Option<Blob>) -> Self
The plaintext copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
If the response includes the CiphertextForRecipient
field, the PrivateKeyPlaintext
field is null or empty.
sourcepub fn get_private_key_plaintext(&self) -> &Option<Blob>
pub fn get_private_key_plaintext(&self) -> &Option<Blob>
The plaintext copy of the private key. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
If the response includes the CiphertextForRecipient
field, the PrivateKeyPlaintext
field is null or empty.
sourcepub fn public_key(self, input: Blob) -> Self
pub fn public_key(self, input: Blob) -> Self
The public key (in plaintext). When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
sourcepub fn set_public_key(self, input: Option<Blob>) -> Self
pub fn set_public_key(self, input: Option<Blob>) -> Self
The public key (in plaintext). When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
sourcepub fn get_public_key(&self) -> &Option<Blob>
pub fn get_public_key(&self) -> &Option<Blob>
The public key (in plaintext). When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
The Amazon Resource Name (key ARN) of the KMS key that encrypted the private key.
sourcepub fn set_key_id(self, input: Option<String>) -> Self
pub fn set_key_id(self, input: Option<String>) -> Self
The Amazon Resource Name (key ARN) of the KMS key that encrypted the private key.
sourcepub fn get_key_id(&self) -> &Option<String>
pub fn get_key_id(&self) -> &Option<String>
The Amazon Resource Name (key ARN) of the KMS key that encrypted the private key.
sourcepub fn key_pair_spec(self, input: DataKeyPairSpec) -> Self
pub fn key_pair_spec(self, input: DataKeyPairSpec) -> Self
The type of data key pair that was generated.
sourcepub fn set_key_pair_spec(self, input: Option<DataKeyPairSpec>) -> Self
pub fn set_key_pair_spec(self, input: Option<DataKeyPairSpec>) -> Self
The type of data key pair that was generated.
sourcepub fn get_key_pair_spec(&self) -> &Option<DataKeyPairSpec>
pub fn get_key_pair_spec(&self) -> &Option<DataKeyPairSpec>
The type of data key pair that was generated.
sourcepub fn ciphertext_for_recipient(self, input: Blob) -> Self
pub fn ciphertext_for_recipient(self, input: Blob) -> Self
The plaintext private data key encrypted with the public key from the Nitro enclave. This ciphertext can be decrypted only by using a private key in the Nitro enclave.
This field is included in the response only when the Recipient
parameter in the request includes a valid attestation document from an Amazon Web Services Nitro enclave. For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.
sourcepub fn set_ciphertext_for_recipient(self, input: Option<Blob>) -> Self
pub fn set_ciphertext_for_recipient(self, input: Option<Blob>) -> Self
The plaintext private data key encrypted with the public key from the Nitro enclave. This ciphertext can be decrypted only by using a private key in the Nitro enclave.
This field is included in the response only when the Recipient
parameter in the request includes a valid attestation document from an Amazon Web Services Nitro enclave. For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.
sourcepub fn get_ciphertext_for_recipient(&self) -> &Option<Blob>
pub fn get_ciphertext_for_recipient(&self) -> &Option<Blob>
The plaintext private data key encrypted with the public key from the Nitro enclave. This ciphertext can be decrypted only by using a private key in the Nitro enclave.
This field is included in the response only when the Recipient
parameter in the request includes a valid attestation document from an Amazon Web Services Nitro enclave. For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.
sourcepub fn build(self) -> GenerateDataKeyPairOutput
pub fn build(self) -> GenerateDataKeyPairOutput
Consumes the builder and constructs a GenerateDataKeyPairOutput
.
Trait Implementations§
source§impl Clone for GenerateDataKeyPairOutputBuilder
impl Clone for GenerateDataKeyPairOutputBuilder
source§fn clone(&self) -> GenerateDataKeyPairOutputBuilder
fn clone(&self) -> GenerateDataKeyPairOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for GenerateDataKeyPairOutputBuilder
impl Default for GenerateDataKeyPairOutputBuilder
source§fn default() -> GenerateDataKeyPairOutputBuilder
fn default() -> GenerateDataKeyPairOutputBuilder
source§impl PartialEq for GenerateDataKeyPairOutputBuilder
impl PartialEq for GenerateDataKeyPairOutputBuilder
source§fn eq(&self, other: &GenerateDataKeyPairOutputBuilder) -> bool
fn eq(&self, other: &GenerateDataKeyPairOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.