Class: Aws::KMS::Types::KeyMetadata

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-kms/types.rb

Overview

Contains metadata about a customer master key (CMK).

This data type is used as a response element for the CreateKey and DescribeKey operations.

Instance Attribute Summary collapse

Instance Attribute Details

#arnString

The Amazon Resource Name (ARN) of the CMK. For examples, see [AWS Key Management Service (AWS KMS)] in the Example ARNs section of the *AWS General Reference*.

[1]: docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms

Returns:

  • (String)


1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
# File 'lib/aws-sdk-kms/types.rb', line 1893

class KeyMetadata < Struct.new(
  :aws_account_id,
  :key_id,
  :arn,
  :creation_date,
  :enabled,
  :description,
  :key_usage,
  :key_state,
  :deletion_date,
  :valid_to,
  :origin,
  :custom_key_store_id,
  :cloud_hsm_cluster_id,
  :expiration_model,
  :key_manager)
  include Aws::Structure
end

#aws_account_idString

The twelve-digit account ID of the AWS account that owns the CMK.

Returns:

  • (String)


1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
# File 'lib/aws-sdk-kms/types.rb', line 1893

class KeyMetadata < Struct.new(
  :aws_account_id,
  :key_id,
  :arn,
  :creation_date,
  :enabled,
  :description,
  :key_usage,
  :key_state,
  :deletion_date,
  :valid_to,
  :origin,
  :custom_key_store_id,
  :cloud_hsm_cluster_id,
  :expiration_model,
  :key_manager)
  include Aws::Structure
end

#cloud_hsm_cluster_idString

The cluster ID of the AWS CloudHSM cluster that contains the key material for the CMK. When you create a CMK in a [custom key store], AWS KMS creates the key material for the CMK in the associated AWS CloudHSM cluster. This value is present only when the CMK is created in a custom key store.

[1]: docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html

Returns:

  • (String)


1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
# File 'lib/aws-sdk-kms/types.rb', line 1893

class KeyMetadata < Struct.new(
  :aws_account_id,
  :key_id,
  :arn,
  :creation_date,
  :enabled,
  :description,
  :key_usage,
  :key_state,
  :deletion_date,
  :valid_to,
  :origin,
  :custom_key_store_id,
  :cloud_hsm_cluster_id,
  :expiration_model,
  :key_manager)
  include Aws::Structure
end

#creation_dateTime

The date and time when the CMK was created.

Returns:

  • (Time)


1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
# File 'lib/aws-sdk-kms/types.rb', line 1893

class KeyMetadata < Struct.new(
  :aws_account_id,
  :key_id,
  :arn,
  :creation_date,
  :enabled,
  :description,
  :key_usage,
  :key_state,
  :deletion_date,
  :valid_to,
  :origin,
  :custom_key_store_id,
  :cloud_hsm_cluster_id,
  :expiration_model,
  :key_manager)
  include Aws::Structure
end

#custom_key_store_idString

A unique identifier for the [custom key store] that contains the CMK. This value is present only when the CMK is created in a custom key store.

[1]: docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html

Returns:

  • (String)


1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
# File 'lib/aws-sdk-kms/types.rb', line 1893

class KeyMetadata < Struct.new(
  :aws_account_id,
  :key_id,
  :arn,
  :creation_date,
  :enabled,
  :description,
  :key_usage,
  :key_state,
  :deletion_date,
  :valid_to,
  :origin,
  :custom_key_store_id,
  :cloud_hsm_cluster_id,
  :expiration_model,
  :key_manager)
  include Aws::Structure
end

#deletion_dateTime

The date and time after which AWS KMS deletes the CMK. This value is present only when ‘KeyState` is `PendingDeletion`.

Returns:

  • (Time)


1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
# File 'lib/aws-sdk-kms/types.rb', line 1893

class KeyMetadata < Struct.new(
  :aws_account_id,
  :key_id,
  :arn,
  :creation_date,
  :enabled,
  :description,
  :key_usage,
  :key_state,
  :deletion_date,
  :valid_to,
  :origin,
  :custom_key_store_id,
  :cloud_hsm_cluster_id,
  :expiration_model,
  :key_manager)
  include Aws::Structure
end

#descriptionString

The description of the CMK.

Returns:

  • (String)


1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
# File 'lib/aws-sdk-kms/types.rb', line 1893

class KeyMetadata < Struct.new(
  :aws_account_id,
  :key_id,
  :arn,
  :creation_date,
  :enabled,
  :description,
  :key_usage,
  :key_state,
  :deletion_date,
  :valid_to,
  :origin,
  :custom_key_store_id,
  :cloud_hsm_cluster_id,
  :expiration_model,
  :key_manager)
  include Aws::Structure
end

#enabledBoolean

Specifies whether the CMK is enabled. When ‘KeyState` is `Enabled` this value is true, otherwise it is false.

Returns:

  • (Boolean)


1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
# File 'lib/aws-sdk-kms/types.rb', line 1893

class KeyMetadata < Struct.new(
  :aws_account_id,
  :key_id,
  :arn,
  :creation_date,
  :enabled,
  :description,
  :key_usage,
  :key_state,
  :deletion_date,
  :valid_to,
  :origin,
  :custom_key_store_id,
  :cloud_hsm_cluster_id,
  :expiration_model,
  :key_manager)
  include Aws::Structure
end

#expiration_modelString

Specifies whether the CMK’s key material expires. This value is present only when ‘Origin` is `EXTERNAL`, otherwise this value is omitted.

Returns:

  • (String)


1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
# File 'lib/aws-sdk-kms/types.rb', line 1893

class KeyMetadata < Struct.new(
  :aws_account_id,
  :key_id,
  :arn,
  :creation_date,
  :enabled,
  :description,
  :key_usage,
  :key_state,
  :deletion_date,
  :valid_to,
  :origin,
  :custom_key_store_id,
  :cloud_hsm_cluster_id,
  :expiration_model,
  :key_manager)
  include Aws::Structure
end

#key_idString

The globally unique identifier for the CMK.

Returns:

  • (String)


1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
# File 'lib/aws-sdk-kms/types.rb', line 1893

class KeyMetadata < Struct.new(
  :aws_account_id,
  :key_id,
  :arn,
  :creation_date,
  :enabled,
  :description,
  :key_usage,
  :key_state,
  :deletion_date,
  :valid_to,
  :origin,
  :custom_key_store_id,
  :cloud_hsm_cluster_id,
  :expiration_model,
  :key_manager)
  include Aws::Structure
end

#key_managerString

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*.

[1]: docs.aws.amazon.com/kms/latest/developerguide/concepts.html#master_keys

Returns:

  • (String)


1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
# File 'lib/aws-sdk-kms/types.rb', line 1893

class KeyMetadata < Struct.new(
  :aws_account_id,
  :key_id,
  :arn,
  :creation_date,
  :enabled,
  :description,
  :key_usage,
  :key_state,
  :deletion_date,
  :valid_to,
  :origin,
  :custom_key_store_id,
  :cloud_hsm_cluster_id,
  :expiration_model,
  :key_manager)
  include Aws::Structure
end

#key_stateString

The state of the CMK.

For more information about how key state affects the use of a CMK, see [How Key State Affects the Use of a Customer Master Key] in the *AWS Key Management Service Developer Guide*.

[1]: docs.aws.amazon.com/kms/latest/developerguide/key-state.html

Returns:

  • (String)


1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
# File 'lib/aws-sdk-kms/types.rb', line 1893

class KeyMetadata < Struct.new(
  :aws_account_id,
  :key_id,
  :arn,
  :creation_date,
  :enabled,
  :description,
  :key_usage,
  :key_state,
  :deletion_date,
  :valid_to,
  :origin,
  :custom_key_store_id,
  :cloud_hsm_cluster_id,
  :expiration_model,
  :key_manager)
  include Aws::Structure
end

#key_usageString

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.

Returns:

  • (String)


1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
# File 'lib/aws-sdk-kms/types.rb', line 1893

class KeyMetadata < Struct.new(
  :aws_account_id,
  :key_id,
  :arn,
  :creation_date,
  :enabled,
  :description,
  :key_usage,
  :key_state,
  :deletion_date,
  :valid_to,
  :origin,
  :custom_key_store_id,
  :cloud_hsm_cluster_id,
  :expiration_model,
  :key_manager)
  include Aws::Structure
end

#originString

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. When this value is `AWS_CLOUDHSM`, the key material was created in the AWS CloudHSM cluster associated with a custom key store.

Returns:

  • (String)


1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
# File 'lib/aws-sdk-kms/types.rb', line 1893

class KeyMetadata < Struct.new(
  :aws_account_id,
  :key_id,
  :arn,
  :creation_date,
  :enabled,
  :description,
  :key_usage,
  :key_state,
  :deletion_date,
  :valid_to,
  :origin,
  :custom_key_store_id,
  :cloud_hsm_cluster_id,
  :expiration_model,
  :key_manager)
  include Aws::Structure
end

#valid_toTime

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.

Returns:

  • (Time)


1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
# File 'lib/aws-sdk-kms/types.rb', line 1893

class KeyMetadata < Struct.new(
  :aws_account_id,
  :key_id,
  :arn,
  :creation_date,
  :enabled,
  :description,
  :key_usage,
  :key_state,
  :deletion_date,
  :valid_to,
  :origin,
  :custom_key_store_id,
  :cloud_hsm_cluster_id,
  :expiration_model,
  :key_manager)
  include Aws::Structure
end