#[non_exhaustive]pub struct GenerateDataKeyOutputBuilder { /* private fields */ }
Expand description
A builder for GenerateDataKeyOutput
.
Implementations§
source§impl GenerateDataKeyOutputBuilder
impl GenerateDataKeyOutputBuilder
sourcepub fn ciphertext_blob(self, input: Blob) -> Self
pub fn ciphertext_blob(self, input: Blob) -> Self
The encrypted copy of the data 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_ciphertext_blob(self, input: Option<Blob>) -> Self
pub fn set_ciphertext_blob(self, input: Option<Blob>) -> Self
The encrypted copy of the data 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_ciphertext_blob(&self) -> &Option<Blob>
pub fn get_ciphertext_blob(&self) -> &Option<Blob>
The encrypted copy of the data 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 plaintext(self, input: Blob) -> Self
pub fn plaintext(self, input: Blob) -> Self
The plaintext data key. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded. Use this data key to encrypt your data outside of KMS. Then, remove it from memory as soon as possible.
If the response includes the CiphertextForRecipient
field, the Plaintext
field is null or empty.
sourcepub fn set_plaintext(self, input: Option<Blob>) -> Self
pub fn set_plaintext(self, input: Option<Blob>) -> Self
The plaintext data key. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded. Use this data key to encrypt your data outside of KMS. Then, remove it from memory as soon as possible.
If the response includes the CiphertextForRecipient
field, the Plaintext
field is null or empty.
sourcepub fn get_plaintext(&self) -> &Option<Blob>
pub fn get_plaintext(&self) -> &Option<Blob>
The plaintext data key. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded. Use this data key to encrypt your data outside of KMS. Then, remove it from memory as soon as possible.
If the response includes the CiphertextForRecipient
field, the Plaintext
field is null or empty.
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 data 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 data 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 data key.
sourcepub fn ciphertext_for_recipient(self, input: Blob) -> Self
pub fn ciphertext_for_recipient(self, input: Blob) -> Self
The plaintext 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 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 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) -> GenerateDataKeyOutput
pub fn build(self) -> GenerateDataKeyOutput
Consumes the builder and constructs a GenerateDataKeyOutput
.
Trait Implementations§
source§impl Clone for GenerateDataKeyOutputBuilder
impl Clone for GenerateDataKeyOutputBuilder
source§fn clone(&self) -> GenerateDataKeyOutputBuilder
fn clone(&self) -> GenerateDataKeyOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GenerateDataKeyOutputBuilder
impl Debug for GenerateDataKeyOutputBuilder
source§impl Default for GenerateDataKeyOutputBuilder
impl Default for GenerateDataKeyOutputBuilder
source§fn default() -> GenerateDataKeyOutputBuilder
fn default() -> GenerateDataKeyOutputBuilder
source§impl PartialEq for GenerateDataKeyOutputBuilder
impl PartialEq for GenerateDataKeyOutputBuilder
source§fn eq(&self, other: &GenerateDataKeyOutputBuilder) -> bool
fn eq(&self, other: &GenerateDataKeyOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.