#[non_exhaustive]pub struct CreateAwsKmsRsaKeyringInput {
pub encryption_algorithm: Option<EncryptionAlgorithmSpec>,
pub grant_tokens: Option<Vec<String>>,
pub kms_client: Option<Client>,
pub kms_key_id: Option<String>,
pub public_key: Option<Blob>,
}Expand description
Inputs for creating a AWS KMS RSA Keyring.
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.encryption_algorithm: Option<EncryptionAlgorithmSpec>The RSA algorithm used to wrap and unwrap data keys.
grant_tokens: Option<Vec<String>>A list of grant tokens to be used when calling KMS.
kms_client: Option<Client>The KMS Client this Keyring will use to call KMS.
kms_key_id: Option<String>The ARN for the asymmetric AWS KMS Key for RSA responsible for wrapping and unwrapping data keys.
public_key: Option<Blob>The public RSA Key responsible for wrapping data keys, as a UTF8 encoded, PEM encoded X.509 SubjectPublicKeyInfo structure. This should be the public key as exported from KMS. If not specified, this Keyring cannot be used on encrypt.
Implementations§
Source§impl CreateAwsKmsRsaKeyringInput
impl CreateAwsKmsRsaKeyringInput
Sourcepub fn encryption_algorithm(&self) -> &Option<EncryptionAlgorithmSpec>
pub fn encryption_algorithm(&self) -> &Option<EncryptionAlgorithmSpec>
The RSA algorithm used to wrap and unwrap data keys.
Sourcepub fn grant_tokens(&self) -> &Option<Vec<String>>
pub fn grant_tokens(&self) -> &Option<Vec<String>>
A list of grant tokens to be used when calling KMS.
Sourcepub fn kms_client(&self) -> &Option<Client>
pub fn kms_client(&self) -> &Option<Client>
The KMS Client this Keyring will use to call KMS.
Sourcepub fn kms_key_id(&self) -> &Option<String>
pub fn kms_key_id(&self) -> &Option<String>
The ARN for the asymmetric AWS KMS Key for RSA responsible for wrapping and unwrapping data keys.
Sourcepub fn public_key(&self) -> &Option<Blob>
pub fn public_key(&self) -> &Option<Blob>
The public RSA Key responsible for wrapping data keys, as a UTF8 encoded, PEM encoded X.509 SubjectPublicKeyInfo structure. This should be the public key as exported from KMS. If not specified, this Keyring cannot be used on encrypt.
Source§impl CreateAwsKmsRsaKeyringInput
impl CreateAwsKmsRsaKeyringInput
Sourcepub fn builder() -> CreateAwsKmsRsaKeyringInputBuilder
pub fn builder() -> CreateAwsKmsRsaKeyringInputBuilder
Creates a new builder-style object to manufacture CreateAwsKmsRsaKeyringInput.
Trait Implementations§
Source§impl Clone for CreateAwsKmsRsaKeyringInput
impl Clone for CreateAwsKmsRsaKeyringInput
Source§fn clone(&self) -> CreateAwsKmsRsaKeyringInput
fn clone(&self) -> CreateAwsKmsRsaKeyringInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateAwsKmsRsaKeyringInput
impl Debug for CreateAwsKmsRsaKeyringInput
impl StructuralPartialEq for CreateAwsKmsRsaKeyringInput
Auto Trait Implementations§
impl Freeze for CreateAwsKmsRsaKeyringInput
impl !RefUnwindSafe for CreateAwsKmsRsaKeyringInput
impl Send for CreateAwsKmsRsaKeyringInput
impl Sync for CreateAwsKmsRsaKeyringInput
impl Unpin for CreateAwsKmsRsaKeyringInput
impl !UnwindSafe for CreateAwsKmsRsaKeyringInput
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