RotationsListEntry
Each entry contains information about one of the key materials associated with a KMS key.
Contents
Note
In the following list, the required parameters are described first.
- ExpirationModel
-
Indicates if the key material is configured to automatically expire. There are two possible values for this field:
KEY_MATERIAL_EXPIRESandKEY_MATERIAL_DOES_NOT_EXPIRE. For any key material that expires, the expiration date and time is indicated inValidTo. This field is only present for symmetric encryption KMS keys withEXTERNALorigin.Type: String
Valid Values:
KEY_MATERIAL_EXPIRES | KEY_MATERIAL_DOES_NOT_EXPIRERequired: No
- ImportState
-
Indicates if the key material is currently imported into AWS KMS. It has two possible values:
IMPORTEDorPENDING_IMPORT. This field is only present for symmetric encryption KMS keys withEXTERNALorigin.Type: String
Valid Values:
IMPORTED | PENDING_IMPORTRequired: No
- KeyId
-
Unique identifier of the key.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 2048.
Required: No
- KeyMaterialDescription
-
User-specified description of the key material. This field is only present for symmetric encryption KMS keys with
EXTERNALorigin.Type: String
Length Constraints: Minimum length of 0. Maximum length of 256.
Pattern:
^[a-zA-Z0-9:/_\s.-]+$Required: No
- KeyMaterialId
-
Unique identifier of the key material.
Type: String
Length Constraints: Fixed length of 64.
Pattern:
^[a-f0-9]+$Required: No
- KeyMaterialState
-
There are four possible values for this field:
CURRENT,NON_CURRENT,PENDING_MULTI_REGION_IMPORT_AND_ROTATIONandPENDING_ROTATION. AWS KMS usesCURRENTkey material for both encryption and decryption andNON_CURRENTkey material only for decryption.PENDING_ROTATIONidentifies key material that has been imported for on-demand key rotation but the rotation hasn't completed. The key material statePENDING_MULTI_REGION_IMPORT_AND_ROTATIONis unique to multi-region, symmetric encryption keys with imported key material. It indicates key material that has been imported into the primary Region key but not all of the replica Region keys. When this key material is imported in to all of the replica Region keys, the key material state will change toPENDING_ROTATION. Key material inPENDING_MULTI_REGION_IMPORT_AND_ROTATIONorPENDING_ROTATIONstate is not permanently associated with the KMS key. You can delete this key material and import different key material in its place. ThePENDING_MULTI_REGION_IMPORT_AND_ROTATIONandPENDING_ROTATIONvalues are only used in symmetric encryption keys with imported key material. The other values,CURRENTandNON_CURRENT, are used for all KMS keys that support automatic or on-demand key rotation.Type: String
Valid Values:
NON_CURRENT | CURRENT | PENDING_ROTATION | PENDING_MULTI_REGION_IMPORT_AND_ROTATIONRequired: No
- RotationDate
-
Date and time that the key material rotation completed. Formatted as Unix time. This field is not present for the first key material or an imported key material in
PENDING_ROTATIONstate.Type: Timestamp
Required: No
- RotationType
-
Identifies whether the key material rotation was a scheduled automatic rotation or an on-demand rotation. This field is not present for the first key material or an imported key material in
PENDING_ROTATIONstate.Type: String
Valid Values:
AUTOMATIC | ON_DEMANDRequired: No
- ValidTo
-
Date and time at which the key material expires. This field is only present for symmetric encryption KMS keys with
EXTERNALorigin in rotation list entries with anExpirationModelvalue ofKEY_MATERIAL_EXPIRES.Type: Timestamp
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: