#[non_exhaustive]pub struct GenerateRandomInputBuilder { /* private fields */ }
Expand description
A builder for GenerateRandomInput
.
Implementations§
source§impl GenerateRandomInputBuilder
impl GenerateRandomInputBuilder
sourcepub fn number_of_bytes(self, input: i32) -> Self
pub fn number_of_bytes(self, input: i32) -> Self
The length of the random byte string. This parameter is required.
sourcepub fn set_number_of_bytes(self, input: Option<i32>) -> Self
pub fn set_number_of_bytes(self, input: Option<i32>) -> Self
The length of the random byte string. This parameter is required.
sourcepub fn get_number_of_bytes(&self) -> &Option<i32>
pub fn get_number_of_bytes(&self) -> &Option<i32>
The length of the random byte string. This parameter is required.
sourcepub fn custom_key_store_id(self, input: impl Into<String>) -> Self
pub fn custom_key_store_id(self, input: impl Into<String>) -> Self
Generates the random byte string in the CloudHSM cluster that is associated with the specified CloudHSM key store. To find the ID of a custom key store, use the DescribeCustomKeyStores
operation.
External key store IDs are not valid for this parameter. If you specify the ID of an external key store, GenerateRandom
throws an UnsupportedOperationException
.
sourcepub fn set_custom_key_store_id(self, input: Option<String>) -> Self
pub fn set_custom_key_store_id(self, input: Option<String>) -> Self
Generates the random byte string in the CloudHSM cluster that is associated with the specified CloudHSM key store. To find the ID of a custom key store, use the DescribeCustomKeyStores
operation.
External key store IDs are not valid for this parameter. If you specify the ID of an external key store, GenerateRandom
throws an UnsupportedOperationException
.
sourcepub fn get_custom_key_store_id(&self) -> &Option<String>
pub fn get_custom_key_store_id(&self) -> &Option<String>
Generates the random byte string in the CloudHSM cluster that is associated with the specified CloudHSM key store. To find the ID of a custom key store, use the DescribeCustomKeyStores
operation.
External key store IDs are not valid for this parameter. If you specify the ID of an external key store, GenerateRandom
throws an UnsupportedOperationException
.
sourcepub fn recipient(self, input: RecipientInfo) -> Self
pub fn recipient(self, input: RecipientInfo) -> Self
A signed attestation document from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's public key. The only valid encryption algorithm is RSAES_OAEP_SHA_256
.
This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this parameter, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK.
When you use this parameter, instead of returning plaintext bytes, KMS encrypts the plaintext bytes under the public key in the attestation document, and returns the resulting ciphertext in the CiphertextForRecipient
field in the response. This ciphertext can be decrypted only with the private key in the enclave. The Plaintext
field in the response is null or empty.
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_recipient(self, input: Option<RecipientInfo>) -> Self
pub fn set_recipient(self, input: Option<RecipientInfo>) -> Self
A signed attestation document from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's public key. The only valid encryption algorithm is RSAES_OAEP_SHA_256
.
This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this parameter, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK.
When you use this parameter, instead of returning plaintext bytes, KMS encrypts the plaintext bytes under the public key in the attestation document, and returns the resulting ciphertext in the CiphertextForRecipient
field in the response. This ciphertext can be decrypted only with the private key in the enclave. The Plaintext
field in the response is null or empty.
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_recipient(&self) -> &Option<RecipientInfo>
pub fn get_recipient(&self) -> &Option<RecipientInfo>
A signed attestation document from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's public key. The only valid encryption algorithm is RSAES_OAEP_SHA_256
.
This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this parameter, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK.
When you use this parameter, instead of returning plaintext bytes, KMS encrypts the plaintext bytes under the public key in the attestation document, and returns the resulting ciphertext in the CiphertextForRecipient
field in the response. This ciphertext can be decrypted only with the private key in the enclave. The Plaintext
field in the response is null or empty.
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) -> Result<GenerateRandomInput, BuildError>
pub fn build(self) -> Result<GenerateRandomInput, BuildError>
Consumes the builder and constructs a GenerateRandomInput
.
source§impl GenerateRandomInputBuilder
impl GenerateRandomInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GenerateRandomOutput, SdkError<GenerateRandomError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GenerateRandomOutput, SdkError<GenerateRandomError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GenerateRandomInputBuilder
impl Clone for GenerateRandomInputBuilder
source§fn clone(&self) -> GenerateRandomInputBuilder
fn clone(&self) -> GenerateRandomInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GenerateRandomInputBuilder
impl Debug for GenerateRandomInputBuilder
source§impl Default for GenerateRandomInputBuilder
impl Default for GenerateRandomInputBuilder
source§fn default() -> GenerateRandomInputBuilder
fn default() -> GenerateRandomInputBuilder
source§impl PartialEq for GenerateRandomInputBuilder
impl PartialEq for GenerateRandomInputBuilder
source§fn eq(&self, other: &GenerateRandomInputBuilder) -> bool
fn eq(&self, other: &GenerateRandomInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.