Struct aws_sdk_securityhub::model::AwsKmsKeyDetails
source · [−]#[non_exhaustive]pub struct AwsKmsKeyDetails {
pub aws_account_id: Option<String>,
pub creation_date: f64,
pub key_id: Option<String>,
pub key_manager: Option<String>,
pub key_state: Option<String>,
pub origin: Option<String>,
pub description: Option<String>,
pub key_rotation_status: bool,
}Expand description
Contains metadata about an KMS key.
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.aws_account_id: Option<String>The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
creation_date: f64Indicates when the KMS key was created.
Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z.
key_id: Option<String>The globally unique identifier for the KMS key.
key_manager: Option<String>The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or Amazon Web Services managed.
key_state: Option<String>The state of the KMS key.
origin: Option<String>The source of the KMS key material.
When this value is AWS_KMS, KMS created the key material.
When this value is EXTERNAL, the key material was imported from your existing key management infrastructure or the KMS key lacks key material.
When this value is AWS_CLOUDHSM, the key material was created in the CloudHSM cluster associated with a custom key store.
description: Option<String>A description of the key.
key_rotation_status: boolWhether the key has key rotation enabled.
Implementations
sourceimpl AwsKmsKeyDetails
impl AwsKmsKeyDetails
sourcepub fn aws_account_id(&self) -> Option<&str>
pub fn aws_account_id(&self) -> Option<&str>
The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.
sourcepub fn creation_date(&self) -> f64
pub fn creation_date(&self) -> f64
Indicates when the KMS key was created.
Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z.
sourcepub fn key_manager(&self) -> Option<&str>
pub fn key_manager(&self) -> Option<&str>
The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or Amazon Web Services managed.
sourcepub fn origin(&self) -> Option<&str>
pub fn origin(&self) -> Option<&str>
The source of the KMS key material.
When this value is AWS_KMS, KMS created the key material.
When this value is EXTERNAL, the key material was imported from your existing key management infrastructure or the KMS key lacks key material.
When this value is AWS_CLOUDHSM, the key material was created in the CloudHSM cluster associated with a custom key store.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the key.
sourcepub fn key_rotation_status(&self) -> bool
pub fn key_rotation_status(&self) -> bool
Whether the key has key rotation enabled.
sourceimpl AwsKmsKeyDetails
impl AwsKmsKeyDetails
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AwsKmsKeyDetails
Trait Implementations
sourceimpl Clone for AwsKmsKeyDetails
impl Clone for AwsKmsKeyDetails
sourcefn clone(&self) -> AwsKmsKeyDetails
fn clone(&self) -> AwsKmsKeyDetails
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AwsKmsKeyDetails
impl Debug for AwsKmsKeyDetails
sourceimpl PartialEq<AwsKmsKeyDetails> for AwsKmsKeyDetails
impl PartialEq<AwsKmsKeyDetails> for AwsKmsKeyDetails
sourcefn eq(&self, other: &AwsKmsKeyDetails) -> bool
fn eq(&self, other: &AwsKmsKeyDetails) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AwsKmsKeyDetails) -> bool
fn ne(&self, other: &AwsKmsKeyDetails) -> bool
This method tests for !=.
impl StructuralPartialEq for AwsKmsKeyDetails
Auto Trait Implementations
impl RefUnwindSafe for AwsKmsKeyDetails
impl Send for AwsKmsKeyDetails
impl Sync for AwsKmsKeyDetails
impl Unpin for AwsKmsKeyDetails
impl UnwindSafe for AwsKmsKeyDetails
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more