#[non_exhaustive]pub struct GenerateRandomOutput {
pub plaintext: Option<Blob>,
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.plaintext: Option<Blob>
The random byte string. 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 Plaintext
field is null or empty.
ciphertext_for_recipient: Option<Blob>
The plaintext random bytes 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 GenerateRandomOutput
impl GenerateRandomOutput
sourcepub fn plaintext(&self) -> Option<&Blob>
pub fn plaintext(&self) -> Option<&Blob>
The random byte string. 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 Plaintext
field is null or empty.
sourcepub fn ciphertext_for_recipient(&self) -> Option<&Blob>
pub fn ciphertext_for_recipient(&self) -> Option<&Blob>
The plaintext random bytes 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 GenerateRandomOutput
impl GenerateRandomOutput
sourcepub fn builder() -> GenerateRandomOutputBuilder
pub fn builder() -> GenerateRandomOutputBuilder
Creates a new builder-style object to manufacture GenerateRandomOutput
.
Trait Implementations§
source§impl Clone for GenerateRandomOutput
impl Clone for GenerateRandomOutput
source§fn clone(&self) -> GenerateRandomOutput
fn clone(&self) -> GenerateRandomOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GenerateRandomOutput
impl Debug for GenerateRandomOutput
source§impl PartialEq for GenerateRandomOutput
impl PartialEq for GenerateRandomOutput
source§fn eq(&self, other: &GenerateRandomOutput) -> bool
fn eq(&self, other: &GenerateRandomOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GenerateRandomOutput
impl RequestId for GenerateRandomOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.