CfnKeyProps

class aws_cdk.aws_kms.CfnKeyProps(*, key_policy, description=None, enabled=None, enable_key_rotation=None, key_usage=None, pending_window_in_days=None, tags=None)

Bases: object

__init__(*, key_policy, description=None, enabled=None, enable_key_rotation=None, key_usage=None, pending_window_in_days=None, tags=None)

Properties for defining a AWS::KMS::Key.

Parameters
  • key_policy (Any) – AWS::KMS::Key.KeyPolicy.

  • description (Optional[str]) – AWS::KMS::Key.Description.

  • enabled (Union[bool, IResolvable, None]) – AWS::KMS::Key.Enabled.

  • enable_key_rotation (Union[bool, IResolvable, None]) – AWS::KMS::Key.EnableKeyRotation.

  • key_usage (Optional[str]) – AWS::KMS::Key.KeyUsage.

  • pending_window_in_days (Union[int, float, None]) – AWS::KMS::Key.PendingWindowInDays.

  • tags (Optional[List[CfnTag]]) – AWS::KMS::Key.Tags.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html

Return type

None

Attributes

description

AWS::KMS::Key.Description.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html#cfn-kms-key-description

Return type

Optional[str]

enable_key_rotation

AWS::KMS::Key.EnableKeyRotation.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html#cfn-kms-key-enablekeyrotation

Return type

Union[bool, IResolvable, None]

enabled

AWS::KMS::Key.Enabled.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html#cfn-kms-key-enabled

Return type

Union[bool, IResolvable, None]

key_policy

AWS::KMS::Key.KeyPolicy.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html#cfn-kms-key-keypolicy

Return type

Any

key_usage

AWS::KMS::Key.KeyUsage.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html#cfn-kms-key-keyusage

Return type

Optional[str]

pending_window_in_days

AWS::KMS::Key.PendingWindowInDays.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html#cfn-kms-key-pendingwindowindays

Return type

Union[int, float, None]

tags

AWS::KMS::Key.Tags.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html#cfn-kms-key-tags

Return type

Optional[List[CfnTag]]