ExternalKeyState constructor

const ExternalKeyState({
  1. Input<String?>? arn,
  2. Input<bool?>? bypassPolicyLockoutSafetyCheck,
  3. Input<int?>? deletionWindowInDays,
  4. Input<String?>? description,
  5. Input<bool?>? enabled,
  6. Input<String?>? expirationModel,
  7. Input<String?>? keyMaterialBase64,
  8. Input<String?>? keySpec,
  9. Input<String?>? keyState,
  10. Input<String?>? keyUsage,
  11. Input<bool?>? multiRegion,
  12. Input<String?>? policy,
  13. Input<String?>? region,
  14. Input<Map<String, String>?>? tags,
  15. Input<Map<String, String>?>? tagsAll,
  16. Input<String?>? validTo,
})

Creates a new ExternalKeyState. arn ARN of the key. bypassPolicyLockoutSafetyCheck Whether to disable the policy lockout check performed when creating or updating the key's policy. Setting this value to true increases 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 to false. deletionWindowInDays Duration in days after which the key is deleted after destruction of the resource. Must be between 7 and 30 days. Defaults to 30. description Description of the key. enabled Specifies whether the key is enabled. Keys pending import can only be false. Imported keys default to true unless expired. expirationModel Whether the key material expires. Empty when pending key material import, otherwise KEY_MATERIAL_EXPIRES or KEY_MATERIAL_DOES_NOT_EXPIRE. keyMaterialBase64 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. keySpec 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, or SM2 (China Regions only). Defaults to SYMMETRIC_DEFAULT. For help with choosing a key spec, see the AWS KMS Developer Guide. keyState The state of the CMK. keyUsage Specifies the intended use of the key. Valid values: ENCRYPT_DECRYPT, SIGN_VERIFY, or GENERATE_VERIFY_MAC. Defaults to ENCRYPT_DECRYPT. multiRegion Indicates whether the KMS key is a multi-Region (true) or regional (false) key. Defaults to false. policy A key policy JSON document. If you do not provide a key policy, AWS KMS attaches a default key policy to the CMK. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. tags A key-value map of tags to assign to the key. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level. tagsAll A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block. validTo 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)

Implementation

const ExternalKeyState({
  this.arn,
  this.bypassPolicyLockoutSafetyCheck,
  this.deletionWindowInDays,
  this.description,
  this.enabled,
  this.expirationModel,
  this.keyMaterialBase64,
  this.keySpec,
  this.keyState,
  this.keyUsage,
  this.multiRegion,
  this.policy,
  this.region,
  this.tags,
  this.tagsAll,
  this.validTo,
});