Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

KeyMetadata

import type { KeyMetadata } from "https://aws-api.deno.dev/v0.3/services/kms.ts?docs=full";

Contains metadata about a KMS key.

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

interface KeyMetadata {
Arn?: string | null;
AWSAccountId?: string | null;
CloudHsmClusterId?: string | null;
CreationDate?: Date | number | null;
CustomerMasterKeySpec?: CustomerMasterKeySpec | null;
CustomKeyStoreId?: string | null;
DeletionDate?: Date | number | null;
Description?: string | null;
Enabled?: boolean | null;
EncryptionAlgorithms?: EncryptionAlgorithmSpec[] | null;
ExpirationModel?: ExpirationModelType | null;
KeyId: string;
KeyManager?: KeyManagerType | null;
KeySpec?: KeySpec | null;
KeyState?: KeyState | null;
KeyUsage?: KeyUsageType | null;
MultiRegion?: boolean | null;
MultiRegionConfiguration?: MultiRegionConfiguration | null;
Origin?: OriginType | null;
PendingDeletionWindowInDays?: number | null;
SigningAlgorithms?: SigningAlgorithmSpec[] | null;
ValidTo?: Date | number | null;
}

§Properties

§
Arn?: string | null
[src]

The Amazon Resource Name (ARN) of the KMS key. For examples, see Key Management Service (KMS) in the Example ARNs section of the Amazon Web Services General Reference.

§
AWSAccountId?: string | null
[src]

The twelve-digit account ID of the Amazon Web Services account that owns the KMS key.

§
CloudHsmClusterId?: string | null
[src]

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

§
CreationDate?: Date | number | null
[src]

The date and time when the KMS key was created.

§
CustomerMasterKeySpec?: CustomerMasterKeySpec | null
[src]

Instead, use the KeySpec field.

The KeySpec and CustomerMasterKeySpec fields have the same value. We recommend that you use the KeySpec field in your code. However, to avoid breaking changes, KMS will support both fields.

§
CustomKeyStoreId?: string | null
[src]

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

§
DeletionDate?: Date | number | null
[src]

The date and time after which KMS deletes this KMS key. This value is present only when the KMS key is scheduled for deletion, that is, when its KeyState is PendingDeletion.

When the primary key in a multi-Region key is scheduled for deletion but still has replica keys, its key state is PendingReplicaDeletion and the length of its waiting period is displayed in the PendingDeletionWindowInDays field.

§
Description?: string | null
[src]

The description of the KMS key.

§
Enabled?: boolean | null
[src]

Specifies whether the KMS key is enabled. When KeyState is Enabled this value is true, otherwise it is false.

§
EncryptionAlgorithms?: EncryptionAlgorithmSpec[] | null
[src]

The encryption algorithms that the KMS key supports. You cannot use the KMS key with other encryption algorithms within KMS.

This value is present only when the KeyUsage of the KMS key is ENCRYPT_DECRYPT.

§
ExpirationModel?: ExpirationModelType | null
[src]

Specifies whether the KMS key's key material expires. This value is present only when Origin is EXTERNAL, otherwise this value is omitted.

§
KeyId: string
[src]

The globally unique identifier for the KMS key.

§
KeyManager?: KeyManagerType | null
[src]

The manager of the KMS key. KMS keys in your Amazon Web Services account are either customer managed or Amazon Web Services managed. For more information about the difference, see KMS keys in the Key Management Service Developer Guide.

§
KeySpec?: KeySpec | null
[src]

Describes the type of key material in the KMS key.

§
KeyState?: KeyState | null
[src]

The current status of the KMS key.

For more information about how key state affects the use of a KMS key, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

§
KeyUsage?: KeyUsageType | null
[src]

The cryptographic operations for which you can use the KMS key.

§
MultiRegion?: boolean | null
[src]

Indicates whether the KMS key is a multi-Region (True) or regional (False) key. This value is True for multi-Region primary and replica keys and False for regional KMS keys.

For more information about multi-Region keys, see Using multi-Region keys in the Key Management Service Developer Guide.

§
MultiRegionConfiguration?: MultiRegionConfiguration | null
[src]

Lists the primary and replica keys in same multi-Region key. This field is present only when the value of the MultiRegion field is True.

For more information about any listed KMS key, use the "DescribeKey" operation.

  • MultiRegionKeyType indicates whether the KMS key is a PRIMARY or REPLICA key.
  • PrimaryKey displays the key ARN and Region of the primary key. This field displays the current KMS key if it is the primary key.
  • ReplicaKeys displays the key ARNs and Regions of all replica keys. This field includes the current KMS key if it is a replica key.
§
Origin?: OriginType | null
[src]

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

§
PendingDeletionWindowInDays?: number | null
[src]

The waiting period before the primary key in a multi-Region key is deleted. This waiting period begins when the last of its replica keys is deleted. This value is present only when the KeyState of the KMS key is PendingReplicaDeletion. That indicates that the KMS key is the primary key in a multi-Region key, it is scheduled for deletion, and it still has existing replica keys.

When a single-Region KMS key or a multi-Region replica key is scheduled for deletion, its deletion date is displayed in the DeletionDate field. However, when the primary key in a multi-Region key is scheduled for deletion, its waiting period doesn't begin until all of its replica keys are deleted. This value displays that waiting period. When the last replica key in the multi-Region key is deleted, the KeyState of the scheduled primary key changes from PendingReplicaDeletion to PendingDeletion and the deletion date appears in the DeletionDate field.

§
SigningAlgorithms?: SigningAlgorithmSpec[] | null
[src]

The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms within KMS.

This field appears only when the KeyUsage of the KMS key is SIGN_VERIFY.

§
ValidTo?: Date | number | null
[src]

The time at which the imported key material expires. When the key material expires, KMS deletes the key material and the KMS key becomes unusable. This value is present only for KMS keys whose Origin is EXTERNAL and whose ExpirationModel is KEY_MATERIAL_EXPIRES, otherwise this value is omitted.