ExternalKeyState class
Input properties used for looking up and filtering ExternalKey resources.
Constructors
-
ExternalKeyState({Input<
String?> ? arn, Input<bool?> ? bypassPolicyLockoutSafetyCheck, Input<int?> ? deletionWindowInDays, Input<String?> ? description, Input<bool?> ? enabled, Input<String?> ? expirationModel, Input<String?> ? keyMaterialBase64, Input<String?> ? keySpec, Input<String?> ? keyState, Input<String?> ? keyUsage, Input<bool?> ? multiRegion, Input<String?> ? policy, Input<String?> ? region, Input<Map< ? tags, Input<String, String> ?>Map< ? tagsAll, Input<String, String> ?>String?> ? validTo}) -
Creates a new ExternalKeyState.
arnARN of the key.bypassPolicyLockoutSafetyCheckWhether to disable the policy lockout check performed when creating or updating the key's policy. Setting this value totrueincreases the risk that the key becomes unmanageable. For more information, refer to the scenario in the Default Key Policy section in the KMS Developer Guide. Defaults tofalse.deletionWindowInDaysDuration in days after which the key is deleted after destruction of the resource. Must be between7and30days. Defaults to30.descriptionDescription of the key.enabledSpecifies whether the key is enabled. Keys pending import can only befalse. Imported keys default totrueunless expired.expirationModelWhether the key material expires. Empty when pending key material import, otherwiseKEY_MATERIAL_EXPIRESorKEY_MATERIAL_DOES_NOT_EXPIRE.keyMaterialBase64Base64 encoded 256-bit symmetric encryption key material to import. The CMK is permanently associated with this key material. The same key material can be reimported, but you cannot import different key material.keySpecSpecifies whether the key contains a symmetric key or an asymmetric key pair and the encryption algorithms or signing algorithms that the key supports. Valid values:SYMMETRIC_DEFAULT,RSA_2048,RSA_3072,RSA_4096,HMAC_224,HMAC_256,HMAC_384,HMAC_512,ECC_NIST_P256,ECC_NIST_P384,ECC_NIST_P521,ECC_SECG_P256K1,ML_DSA_44,ML_DSA_65,ML_DSA_87, orSM2(China Regions only). Defaults toSYMMETRIC_DEFAULT. For help with choosing a key spec, see the AWS KMS Developer Guide.keyStateThe state of the CMK.keyUsageSpecifies the intended use of the key. Valid values:ENCRYPT_DECRYPT,SIGN_VERIFY, orGENERATE_VERIFY_MAC. Defaults toENCRYPT_DECRYPT.multiRegionIndicates whether the KMS key is a multi-Region (true) or regional (false) key. Defaults tofalse.policyA key policy JSON document. If you do not provide a key policy, AWS KMS attaches a default key policy to the CMK.regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.tagsA key-value map of tags to assign to the key. If configured with a providerdefaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.tagsAllA map of tags assigned to the resource, including those inherited from the providerdefaultTagsconfiguration block.validToTime at which the imported key material expires. When the key material expires, AWS KMS deletes the key material and the CMK becomes unusable. If not specified, key material does not expire. Valid values: RFC3339 time string (YYYY-MM-DDTHH:MM:SSZ)const -
ExternalKeyState.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
arn
→ Input<
String?> ? -
ARN of the key.
final
-
bypassPolicyLockoutSafetyCheck
→ Input<
bool?> ? -
Whether to disable the policy lockout check performed when creating or updating the key's policy. Setting this value to
trueincreases the risk that the key becomes unmanageable. For more information, refer to the scenario in the Default Key Policy section in the KMS Developer Guide. Defaults tofalse.final -
deletionWindowInDays
→ Input<
int?> ? -
Duration in days after which the key is deleted after destruction of the resource. Must be between
7and30days. Defaults to30.final -
description
→ Input<
String?> ? -
Description of the key.
final
-
enabled
→ Input<
bool?> ? -
Specifies whether the key is enabled. Keys pending import can only be
false. Imported keys default totrueunless expired.final -
expirationModel
→ Input<
String?> ? -
Whether the key material expires. Empty when pending key material import, otherwise
KEY_MATERIAL_EXPIRESorKEY_MATERIAL_DOES_NOT_EXPIRE.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
keyMaterialBase64
→ Input<
String?> ? -
Base64 encoded 256-bit symmetric encryption key material to import. The CMK is permanently associated with this key material. The same key material can be reimported, but you cannot import different key material.
final
-
keySpec
→ Input<
String?> ? -
Specifies whether the key contains a symmetric key or an asymmetric key pair and the encryption algorithms or signing algorithms that the key supports. Valid values:
SYMMETRIC_DEFAULT,RSA_2048,RSA_3072,RSA_4096,HMAC_224,HMAC_256,HMAC_384,HMAC_512,ECC_NIST_P256,ECC_NIST_P384,ECC_NIST_P521,ECC_SECG_P256K1,ML_DSA_44,ML_DSA_65,ML_DSA_87, orSM2(China Regions only). Defaults toSYMMETRIC_DEFAULT. For help with choosing a key spec, see the AWS KMS Developer Guide.final -
keyState
→ Input<
String?> ? -
The state of the CMK.
final
-
keyUsage
→ Input<
String?> ? -
Specifies the intended use of the key. Valid values:
ENCRYPT_DECRYPT,SIGN_VERIFY, orGENERATE_VERIFY_MAC. Defaults toENCRYPT_DECRYPT.final -
multiRegion
→ Input<
bool?> ? -
Indicates whether the KMS key is a multi-Region (
true) or regional (false) key. Defaults tofalse.final -
policy
→ Input<
String?> ? -
A key policy JSON document. If you do not provide a key policy, AWS KMS attaches a default key policy to the CMK.
final
-
region
→ Input<
String?> ? -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
A key-value map of tags to assign to the key. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.final -
A map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.final -
validTo
→ Input<
String?> ? -
Time at which the imported key material expires. When the key material expires, AWS KMS deletes the key material and the CMK becomes unusable. If not specified, key material does not expire. Valid values: RFC3339 time string (
YYYY-MM-DDTHH:MM:SSZ)final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited