#[non_exhaustive]pub struct GenerateDataKeyPairOutput {
pub private_key_ciphertext_blob: Option<Blob>,
pub private_key_plaintext: Option<Blob>,
pub public_key: Option<Blob>,
pub key_id: Option<String>,
pub key_pair_spec: Option<DataKeyPairSpec>,
pub ciphertext_for_recipient: Option<Blob>,
/* private fields */
}
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.private_key_ciphertext_blob: 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.
private_key_plaintext: 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.
public_key: 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.
key_id: Option<String>
The Amazon Resource Name (key ARN) of the KMS key that encrypted the private key.
key_pair_spec: Option<DataKeyPairSpec>
The type of data key pair that was generated.
ciphertext_for_recipient: 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.
Implementations§
source§impl GenerateDataKeyPairOutput
impl GenerateDataKeyPairOutput
sourcepub fn private_key_ciphertext_blob(&self) -> Option<&Blob>
pub fn 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) -> Option<&Blob>
pub fn 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) -> Option<&Blob>
pub fn 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) -> Option<&str>
pub fn key_id(&self) -> Option<&str>
The Amazon Resource Name (key ARN) of the KMS key that encrypted the private key.
sourcepub fn key_pair_spec(&self) -> Option<&DataKeyPairSpec>
pub fn key_pair_spec(&self) -> Option<&DataKeyPairSpec>
The type of data key pair that was generated.
sourcepub fn ciphertext_for_recipient(&self) -> Option<&Blob>
pub fn 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.
source§impl GenerateDataKeyPairOutput
impl GenerateDataKeyPairOutput
sourcepub fn builder() -> GenerateDataKeyPairOutputBuilder
pub fn builder() -> GenerateDataKeyPairOutputBuilder
Creates a new builder-style object to manufacture GenerateDataKeyPairOutput
.
Trait Implementations§
source§impl Clone for GenerateDataKeyPairOutput
impl Clone for GenerateDataKeyPairOutput
source§fn clone(&self) -> GenerateDataKeyPairOutput
fn clone(&self) -> GenerateDataKeyPairOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GenerateDataKeyPairOutput
impl Debug for GenerateDataKeyPairOutput
source§impl PartialEq for GenerateDataKeyPairOutput
impl PartialEq for GenerateDataKeyPairOutput
source§fn eq(&self, other: &GenerateDataKeyPairOutput) -> bool
fn eq(&self, other: &GenerateDataKeyPairOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GenerateDataKeyPairOutput
impl RequestId for GenerateDataKeyPairOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.