#[non_exhaustive]pub struct DeriveSharedSecretOutputBuilder { /* private fields */ }
Expand description
A builder for DeriveSharedSecretOutput
.
Implementations§
Sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
Identifies the KMS key used to derive the shared secret.
Sourcepub fn set_key_id(self, input: Option<String>) -> Self
pub fn set_key_id(self, input: Option<String>) -> Self
Identifies the KMS key used to derive the shared secret.
Sourcepub fn get_key_id(&self) -> &Option<String>
pub fn get_key_id(&self) -> &Option<String>
Identifies the KMS key used to derive the shared secret.
The raw secret derived from the specified key agreement algorithm, private key in the asymmetric KMS key, and your peer's public key.
If the response includes the CiphertextForRecipient
field, the SharedSecret
field is null or empty.
The raw secret derived from the specified key agreement algorithm, private key in the asymmetric KMS key, and your peer's public key.
If the response includes the CiphertextForRecipient
field, the SharedSecret
field is null or empty.
The raw secret derived from the specified key agreement algorithm, private key in the asymmetric KMS key, and your peer's public key.
If the response includes the CiphertextForRecipient
field, the SharedSecret
field is null or empty.
Sourcepub fn ciphertext_for_recipient(self, input: Blob) -> Self
pub fn ciphertext_for_recipient(self, input: Blob) -> Self
The plaintext shared secret encrypted with the public key in the attestation document.
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 shared secret encrypted with the public key in the attestation document.
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 shared secret encrypted with the public key in the attestation document.
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 key_agreement_algorithm(self, input: KeyAgreementAlgorithmSpec) -> Self
pub fn key_agreement_algorithm(self, input: KeyAgreementAlgorithmSpec) -> Self
Identifies the key agreement algorithm used to derive the shared secret.
Sourcepub fn set_key_agreement_algorithm(
self,
input: Option<KeyAgreementAlgorithmSpec>,
) -> Self
pub fn set_key_agreement_algorithm( self, input: Option<KeyAgreementAlgorithmSpec>, ) -> Self
Identifies the key agreement algorithm used to derive the shared secret.
Sourcepub fn get_key_agreement_algorithm(&self) -> &Option<KeyAgreementAlgorithmSpec>
pub fn get_key_agreement_algorithm(&self) -> &Option<KeyAgreementAlgorithmSpec>
Identifies the key agreement algorithm used to derive the shared secret.
Sourcepub fn key_origin(self, input: OriginType) -> Self
pub fn key_origin(self, input: OriginType) -> Self
The source of the key material for the specified KMS key.
When this value is AWS_KMS
, KMS created the key material. When this value is EXTERNAL
, the key material was imported or the KMS key doesn't have any key material.
The only valid values for DeriveSharedSecret are AWS_KMS
and EXTERNAL
. DeriveSharedSecret does not support KMS keys with a KeyOrigin
value of AWS_CLOUDHSM
or EXTERNAL_KEY_STORE
.
Sourcepub fn set_key_origin(self, input: Option<OriginType>) -> Self
pub fn set_key_origin(self, input: Option<OriginType>) -> Self
The source of the key material for the specified KMS key.
When this value is AWS_KMS
, KMS created the key material. When this value is EXTERNAL
, the key material was imported or the KMS key doesn't have any key material.
The only valid values for DeriveSharedSecret are AWS_KMS
and EXTERNAL
. DeriveSharedSecret does not support KMS keys with a KeyOrigin
value of AWS_CLOUDHSM
or EXTERNAL_KEY_STORE
.
Sourcepub fn get_key_origin(&self) -> &Option<OriginType>
pub fn get_key_origin(&self) -> &Option<OriginType>
The source of the key material for the specified KMS key.
When this value is AWS_KMS
, KMS created the key material. When this value is EXTERNAL
, the key material was imported or the KMS key doesn't have any key material.
The only valid values for DeriveSharedSecret are AWS_KMS
and EXTERNAL
. DeriveSharedSecret does not support KMS keys with a KeyOrigin
value of AWS_CLOUDHSM
or EXTERNAL_KEY_STORE
.
Sourcepub fn build(self) -> DeriveSharedSecretOutput
pub fn build(self) -> DeriveSharedSecretOutput
Consumes the builder and constructs a DeriveSharedSecretOutput
.
Trait Implementations§
Source§fn clone(&self) -> DeriveSharedSecretOutputBuilder
fn clone(&self) -> DeriveSharedSecretOutputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§fn default() -> DeriveSharedSecretOutputBuilder
fn default() -> DeriveSharedSecretOutputBuilder
Source§fn eq(&self, other: &DeriveSharedSecretOutputBuilder) -> bool
fn eq(&self, other: &DeriveSharedSecretOutputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more