pub struct KeyMetadata {
pub aws_account_id: Option<String>,
pub arn: Option<String>,
pub creation_date: Option<f64>,
pub deletion_date: Option<f64>,
pub description: Option<String>,
pub enabled: Option<bool>,
pub expiration_model: Option<String>,
pub key_id: String,
pub key_manager: Option<String>,
pub key_state: Option<String>,
pub key_usage: Option<String>,
pub origin: Option<String>,
pub valid_to: Option<f64>,
}
Contains metadata about a customer master key (CMK).
This data type is used as a response element for the CreateKey and DescribeKey operations.
The twelve-digit account ID of the AWS account that owns the CMK.
The date and time when the CMK was created.
The date and time after which AWS KMS deletes the CMK. This value is present only when KeyState
is PendingDeletion
, otherwise this value is omitted.
The description of the CMK.
Specifies whether the CMK is enabled. When KeyState
is Enabled
this value is true, otherwise it is false.
Specifies whether the CMK's key material expires. This value is present only when Origin
is EXTERNAL
, otherwise this value is omitted.
The globally unique identifier for the CMK.
The CMK's manager. CMKs are either customer managed or AWS managed. For more information about the difference, see Customer Master Keys in the AWS Key Management Service Developer Guide.
The cryptographic operations for which you can use the CMK. Currently the only allowed value is ENCRYPT_DECRYPT
, which means you can use the CMK for the Encrypt and Decrypt operations.
The source of the CMK's key material. When this value is AWS_KMS
, AWS KMS created the key material. When this value is EXTERNAL
, the key material was imported from your existing key management infrastructure or the CMK lacks key material.
The time at which the imported key material expires. When the key material expires, AWS KMS deletes the key material and the CMK becomes unusable. This value is present only for CMKs whose Origin
is EXTERNAL
and whose ExpirationModel
is KEY_MATERIAL_EXPIRES
, otherwise this value is omitted.
Performs copy-assignment from source
. Read more
Returns the "default value" for a type. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static