aws-cdk-lib 2.139.1__py3-none-any.whl → 2.141.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +8 -0
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.139.1.jsii.tgz → aws-cdk-lib@2.141.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +70 -56
- aws_cdk/aws_apigateway/__init__.py +126 -53
- aws_cdk/aws_applicationautoscaling/__init__.py +1 -4
- aws_cdk/aws_arczonalshift/__init__.py +49 -44
- aws_cdk/aws_bedrock/__init__.py +2829 -147
- aws_cdk/aws_cloudfront/__init__.py +51 -9
- aws_cdk/aws_cloudtrail/__init__.py +13 -4
- aws_cdk/aws_codecommit/__init__.py +72 -46
- aws_cdk/aws_connectcampaigns/__init__.py +34 -4
- aws_cdk/aws_datasync/__init__.py +96 -75
- aws_cdk/aws_dms/__init__.py +0 -269
- aws_cdk/aws_dynamodb/__init__.py +410 -0
- aws_cdk/aws_ec2/__init__.py +239 -84
- aws_cdk/aws_ecr/__init__.py +32 -7
- aws_cdk/aws_ecs/__init__.py +2 -4
- aws_cdk/aws_efs/__init__.py +16 -2
- aws_cdk/aws_eks/__init__.py +57 -0
- aws_cdk/aws_entityresolution/__init__.py +6 -2
- aws_cdk/aws_events/__init__.py +115 -0
- aws_cdk/aws_events_targets/__init__.py +15 -0
- aws_cdk/aws_fis/__init__.py +2 -1
- aws_cdk/aws_fms/__init__.py +7 -7
- aws_cdk/aws_gamelift/__init__.py +1984 -107
- aws_cdk/aws_globalaccelerator/__init__.py +20 -16
- aws_cdk/aws_iam/__init__.py +2 -2
- aws_cdk/aws_ivs/__init__.py +1 -3
- aws_cdk/aws_kinesis/__init__.py +21 -0
- aws_cdk/aws_kinesisvideo/__init__.py +6 -4
- aws_cdk/aws_kms/__init__.py +33 -6
- aws_cdk/aws_lambda/__init__.py +0 -9
- aws_cdk/aws_location/__init__.py +8 -4
- aws_cdk/aws_medialive/__init__.py +444 -3
- aws_cdk/aws_oam/__init__.py +45 -11
- aws_cdk/aws_omics/__init__.py +4 -4
- aws_cdk/aws_paymentcryptography/__init__.py +1155 -0
- aws_cdk/aws_personalize/__init__.py +8 -2
- aws_cdk/aws_pinpoint/__init__.py +7 -5
- aws_cdk/aws_qbusiness/__init__.py +5583 -0
- aws_cdk/aws_quicksight/__init__.py +10063 -1450
- aws_cdk/aws_rds/__init__.py +77 -5
- aws_cdk/aws_redshiftserverless/__init__.py +13 -9
- aws_cdk/aws_route53/__init__.py +350 -0
- aws_cdk/aws_route53profiles/__init__.py +1048 -0
- aws_cdk/aws_s3/__init__.py +1 -1
- aws_cdk/aws_sagemaker/__init__.py +30 -30
- aws_cdk/aws_ses/__init__.py +9 -9
- aws_cdk/aws_transfer/__init__.py +102 -37
- aws_cdk/aws_voiceid/__init__.py +2 -2
- aws_cdk/aws_workspacesweb/__init__.py +92 -6
- aws_cdk/custom_resources/__init__.py +23 -2
- aws_cdk/cx_api/__init__.py +16 -0
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/RECORD +60 -57
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.139.1.dist-info → aws_cdk_lib-2.141.0.dist-info}/top_level.txt +0 -0
|
@@ -900,10 +900,10 @@ class CfnCrossAccountAttachment(
|
|
|
900
900
|
'''
|
|
901
901
|
:param scope: Scope in which this resource is defined.
|
|
902
902
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
903
|
-
:param name: The
|
|
904
|
-
:param principals:
|
|
905
|
-
:param resources:
|
|
906
|
-
:param tags:
|
|
903
|
+
:param name: The name of the cross-account attachment.
|
|
904
|
+
:param principals: The principals included in the cross-account attachment.
|
|
905
|
+
:param resources: The resources included in the cross-account attachment.
|
|
906
|
+
:param tags: Add tags for a cross-account attachment. For more information, see `Tagging in AWS Global Accelerator <https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html>`_ in the *AWS Global Accelerator Developer Guide* .
|
|
907
907
|
'''
|
|
908
908
|
if __debug__:
|
|
909
909
|
type_hints = typing.get_type_hints(_typecheckingstub__ba1ec3d469e5dcabcf7399e8e8e79a3f5365c953f4994522f2f99f4785e9351d)
|
|
@@ -948,7 +948,7 @@ class CfnCrossAccountAttachment(
|
|
|
948
948
|
@builtins.property
|
|
949
949
|
@jsii.member(jsii_name="attrAttachmentArn")
|
|
950
950
|
def attr_attachment_arn(self) -> builtins.str:
|
|
951
|
-
'''The Amazon Resource Name (ARN) of the attachment.
|
|
951
|
+
'''The Amazon Resource Name (ARN) of the cross-account attachment.
|
|
952
952
|
|
|
953
953
|
:cloudformationAttribute: AttachmentArn
|
|
954
954
|
'''
|
|
@@ -968,7 +968,7 @@ class CfnCrossAccountAttachment(
|
|
|
968
968
|
@builtins.property
|
|
969
969
|
@jsii.member(jsii_name="name")
|
|
970
970
|
def name(self) -> builtins.str:
|
|
971
|
-
'''The
|
|
971
|
+
'''The name of the cross-account attachment.'''
|
|
972
972
|
return typing.cast(builtins.str, jsii.get(self, "name"))
|
|
973
973
|
|
|
974
974
|
@name.setter
|
|
@@ -981,7 +981,7 @@ class CfnCrossAccountAttachment(
|
|
|
981
981
|
@builtins.property
|
|
982
982
|
@jsii.member(jsii_name="principals")
|
|
983
983
|
def principals(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
984
|
-
'''
|
|
984
|
+
'''The principals included in the cross-account attachment.'''
|
|
985
985
|
return typing.cast(typing.Optional[typing.List[builtins.str]], jsii.get(self, "principals"))
|
|
986
986
|
|
|
987
987
|
@principals.setter
|
|
@@ -996,7 +996,7 @@ class CfnCrossAccountAttachment(
|
|
|
996
996
|
def resources(
|
|
997
997
|
self,
|
|
998
998
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnCrossAccountAttachment.ResourceProperty"]]]]:
|
|
999
|
-
'''
|
|
999
|
+
'''The resources included in the cross-account attachment.'''
|
|
1000
1000
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnCrossAccountAttachment.ResourceProperty"]]]], jsii.get(self, "resources"))
|
|
1001
1001
|
|
|
1002
1002
|
@resources.setter
|
|
@@ -1012,6 +1012,7 @@ class CfnCrossAccountAttachment(
|
|
|
1012
1012
|
@builtins.property
|
|
1013
1013
|
@jsii.member(jsii_name="tags")
|
|
1014
1014
|
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
1015
|
+
'''Add tags for a cross-account attachment.'''
|
|
1015
1016
|
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
1016
1017
|
|
|
1017
1018
|
@tags.setter
|
|
@@ -1118,10 +1119,10 @@ class CfnCrossAccountAttachmentProps:
|
|
|
1118
1119
|
) -> None:
|
|
1119
1120
|
'''Properties for defining a ``CfnCrossAccountAttachment``.
|
|
1120
1121
|
|
|
1121
|
-
:param name: The
|
|
1122
|
-
:param principals:
|
|
1123
|
-
:param resources:
|
|
1124
|
-
:param tags:
|
|
1122
|
+
:param name: The name of the cross-account attachment.
|
|
1123
|
+
:param principals: The principals included in the cross-account attachment.
|
|
1124
|
+
:param resources: The resources included in the cross-account attachment.
|
|
1125
|
+
:param tags: Add tags for a cross-account attachment. For more information, see `Tagging in AWS Global Accelerator <https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html>`_ in the *AWS Global Accelerator Developer Guide* .
|
|
1125
1126
|
|
|
1126
1127
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-crossaccountattachment.html
|
|
1127
1128
|
:exampleMetadata: fixture=_generated
|
|
@@ -1167,7 +1168,7 @@ class CfnCrossAccountAttachmentProps:
|
|
|
1167
1168
|
|
|
1168
1169
|
@builtins.property
|
|
1169
1170
|
def name(self) -> builtins.str:
|
|
1170
|
-
'''The
|
|
1171
|
+
'''The name of the cross-account attachment.
|
|
1171
1172
|
|
|
1172
1173
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-crossaccountattachment.html#cfn-globalaccelerator-crossaccountattachment-name
|
|
1173
1174
|
'''
|
|
@@ -1177,7 +1178,7 @@ class CfnCrossAccountAttachmentProps:
|
|
|
1177
1178
|
|
|
1178
1179
|
@builtins.property
|
|
1179
1180
|
def principals(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
1180
|
-
'''
|
|
1181
|
+
'''The principals included in the cross-account attachment.
|
|
1181
1182
|
|
|
1182
1183
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-crossaccountattachment.html#cfn-globalaccelerator-crossaccountattachment-principals
|
|
1183
1184
|
'''
|
|
@@ -1188,7 +1189,7 @@ class CfnCrossAccountAttachmentProps:
|
|
|
1188
1189
|
def resources(
|
|
1189
1190
|
self,
|
|
1190
1191
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnCrossAccountAttachment.ResourceProperty]]]]:
|
|
1191
|
-
'''
|
|
1192
|
+
'''The resources included in the cross-account attachment.
|
|
1192
1193
|
|
|
1193
1194
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-crossaccountattachment.html#cfn-globalaccelerator-crossaccountattachment-resources
|
|
1194
1195
|
'''
|
|
@@ -1197,7 +1198,10 @@ class CfnCrossAccountAttachmentProps:
|
|
|
1197
1198
|
|
|
1198
1199
|
@builtins.property
|
|
1199
1200
|
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
1200
|
-
'''
|
|
1201
|
+
'''Add tags for a cross-account attachment.
|
|
1202
|
+
|
|
1203
|
+
For more information, see `Tagging in AWS Global Accelerator <https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html>`_ in the *AWS Global Accelerator Developer Guide* .
|
|
1204
|
+
|
|
1201
1205
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-globalaccelerator-crossaccountattachment.html#cfn-globalaccelerator-crossaccountattachment-tags
|
|
1202
1206
|
'''
|
|
1203
1207
|
result = self._values.get("tags")
|
aws_cdk/aws_iam/__init__.py
CHANGED
|
@@ -620,8 +620,8 @@ establish trust between an OIDC-compatible IdP and your AWS account. This is
|
|
|
620
620
|
useful when creating a mobile app or web application that requires access to AWS
|
|
621
621
|
resources, but you don't want to create custom sign-in code or manage your own
|
|
622
622
|
user identities. For more information about this scenario, see [About Web
|
|
623
|
-
Identity Federation] and the relevant documentation in the [Amazon Cognito
|
|
624
|
-
Identity Pools Developer Guide].
|
|
623
|
+
Identity Federation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc.html) and the relevant documentation in the [Amazon Cognito
|
|
624
|
+
Identity Pools Developer Guide](https://docs.aws.amazon.com/cognito/latest/developerguide/open-id.html).
|
|
625
625
|
|
|
626
626
|
The following examples defines an OpenID Connect provider. Two client IDs
|
|
627
627
|
(audiences) are will be able to send authentication requests to
|
aws_cdk/aws_ivs/__init__.py
CHANGED
|
@@ -1980,7 +1980,7 @@ class CfnRecordingConfiguration(
|
|
|
1980
1980
|
:param recording_mode: Thumbnail recording mode. Valid values:. - ``DISABLED`` : Use DISABLED to disable the generation of thumbnails for recorded video. - ``INTERVAL`` : Use INTERVAL to enable the generation of thumbnails for recorded video at a time interval controlled by the `TargetIntervalSeconds <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-recordingconfiguration-thumbnailconfiguration.html#cfn-ivs-recordingconfiguration-thumbnailconfiguration-targetintervalseconds>`_ property. *Default* : ``INTERVAL`` Default: - "INTERVAL"
|
|
1981
1981
|
:param resolution: The desired resolution of recorded thumbnails for a stream. Thumbnails are recorded at the selected resolution if the corresponding rendition is available during the stream; otherwise, they are recorded at source resolution. For more information about resolution values and their corresponding height and width dimensions, see `Auto-Record to Amazon S3 <https://docs.aws.amazon.com//ivs/latest/LowLatencyUserGuide/record-to-s3.html>`_ .
|
|
1982
1982
|
:param storage: The format in which thumbnails are recorded for a stream. ``SEQUENTIAL`` records all generated thumbnails in a serial manner, to the media/thumbnails directory. ``LATEST`` saves the latest thumbnail in media/thumbnails/latest/thumb.jpg and overwrites it at the interval specified by ``targetIntervalSeconds`` . You can enable both ``SEQUENTIAL`` and ``LATEST`` . Default: ``SEQUENTIAL`` .
|
|
1983
|
-
:param target_interval_seconds: The targeted thumbnail-generation interval in seconds. This is configurable (and required) only if `RecordingMode <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-recordingconfiguration-thumbnailconfiguration.html#cfn-ivs-recordingconfiguration-thumbnailconfiguration-recordingmode>`_ is ``INTERVAL`` . .. epigraph:: Setting a value for ``TargetIntervalSeconds`` does not guarantee that thumbnails are generated at the specified interval. For thumbnails to be generated at the ``TargetIntervalSeconds`` interval, the ``IDR/Keyframe`` value for the input video must be less than the ``TargetIntervalSeconds`` value. See `Amazon IVS Streaming Configuration <https://docs.aws.amazon.com/ivs/latest/LowLatencyUserGuide/streaming-config.html>`_ for information on setting ``IDR/Keyframe`` to the recommended value in video-encoder settings. *Default* : 60
|
|
1983
|
+
:param target_interval_seconds: The targeted thumbnail-generation interval in seconds. This is configurable (and required) only if `RecordingMode <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-recordingconfiguration-thumbnailconfiguration.html#cfn-ivs-recordingconfiguration-thumbnailconfiguration-recordingmode>`_ is ``INTERVAL`` . .. epigraph:: Setting a value for ``TargetIntervalSeconds`` does not guarantee that thumbnails are generated at the specified interval. For thumbnails to be generated at the ``TargetIntervalSeconds`` interval, the ``IDR/Keyframe`` value for the input video must be less than the ``TargetIntervalSeconds`` value. See `Amazon IVS Streaming Configuration <https://docs.aws.amazon.com/ivs/latest/LowLatencyUserGuide/streaming-config.html>`_ for information on setting ``IDR/Keyframe`` to the recommended value in video-encoder settings. *Default* : 60 Default: - 60
|
|
1984
1984
|
|
|
1985
1985
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-recordingconfiguration-thumbnailconfiguration.html
|
|
1986
1986
|
:exampleMetadata: fixture=_generated
|
|
@@ -2062,8 +2062,6 @@ class CfnRecordingConfiguration(
|
|
|
2062
2062
|
|
|
2063
2063
|
*Default* : 60
|
|
2064
2064
|
|
|
2065
|
-
*Valid Range* : Minumum value of 1. Maximum value of 60.
|
|
2066
|
-
|
|
2067
2065
|
:default: - 60
|
|
2068
2066
|
|
|
2069
2067
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ivs-recordingconfiguration-thumbnailconfiguration.html#cfn-ivs-recordingconfiguration-thumbnailconfiguration-targetintervalseconds
|
aws_cdk/aws_kinesis/__init__.py
CHANGED
|
@@ -211,6 +211,7 @@ from .. import (
|
|
|
211
211
|
IResolvable as _IResolvable_da3f097b,
|
|
212
212
|
IResource as _IResource_c80c4260,
|
|
213
213
|
ITaggable as _ITaggable_36806126,
|
|
214
|
+
RemovalPolicy as _RemovalPolicy_9f93c814,
|
|
214
215
|
Resource as _Resource_45bc6135,
|
|
215
216
|
TagManager as _TagManager_0a598cb3,
|
|
216
217
|
TreeInspector as _TreeInspector_488e0dd5,
|
|
@@ -2621,6 +2622,7 @@ class Stream(
|
|
|
2621
2622
|
*,
|
|
2622
2623
|
encryption: typing.Optional["StreamEncryption"] = None,
|
|
2623
2624
|
encryption_key: typing.Optional[_IKey_5f11635f] = None,
|
|
2625
|
+
removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
2624
2626
|
retention_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
2625
2627
|
shard_count: typing.Optional[jsii.Number] = None,
|
|
2626
2628
|
stream_mode: typing.Optional["StreamMode"] = None,
|
|
@@ -2631,6 +2633,7 @@ class Stream(
|
|
|
2631
2633
|
:param id: -
|
|
2632
2634
|
:param encryption: The kind of server-side encryption to apply to this stream. If you choose KMS, you can specify a KMS key via ``encryptionKey``. If encryption key is not specified, a key will automatically be created. Default: - StreamEncryption.KMS if encrypted Streams are supported in the region or StreamEncryption.UNENCRYPTED otherwise. StreamEncryption.KMS if an encryption key is supplied through the encryptionKey property
|
|
2633
2635
|
:param encryption_key: External KMS key to use for stream encryption. The 'encryption' property must be set to "Kms". Default: - Kinesis Data Streams master key ('/alias/aws/kinesis'). If encryption is set to StreamEncryption.KMS and this property is undefined, a new KMS key will be created and associated with this stream.
|
|
2636
|
+
:param removal_policy: Policy to apply when the stream is removed from the stack. Default: RemovalPolicy.RETAIN
|
|
2634
2637
|
:param retention_period: The number of hours for the data records that are stored in shards to remain accessible. Default: Duration.hours(24)
|
|
2635
2638
|
:param shard_count: The number of shards for the stream. Can only be provided if streamMode is Provisioned. Default: 1
|
|
2636
2639
|
:param stream_mode: The capacity mode of this stream. Default: StreamMode.PROVISIONED
|
|
@@ -2643,6 +2646,7 @@ class Stream(
|
|
|
2643
2646
|
props = StreamProps(
|
|
2644
2647
|
encryption=encryption,
|
|
2645
2648
|
encryption_key=encryption_key,
|
|
2649
|
+
removal_policy=removal_policy,
|
|
2646
2650
|
retention_period=retention_period,
|
|
2647
2651
|
shard_count=shard_count,
|
|
2648
2652
|
stream_mode=stream_mode,
|
|
@@ -3721,6 +3725,7 @@ class StreamMode(enum.Enum):
|
|
|
3721
3725
|
name_mapping={
|
|
3722
3726
|
"encryption": "encryption",
|
|
3723
3727
|
"encryption_key": "encryptionKey",
|
|
3728
|
+
"removal_policy": "removalPolicy",
|
|
3724
3729
|
"retention_period": "retentionPeriod",
|
|
3725
3730
|
"shard_count": "shardCount",
|
|
3726
3731
|
"stream_mode": "streamMode",
|
|
@@ -3733,6 +3738,7 @@ class StreamProps:
|
|
|
3733
3738
|
*,
|
|
3734
3739
|
encryption: typing.Optional[StreamEncryption] = None,
|
|
3735
3740
|
encryption_key: typing.Optional[_IKey_5f11635f] = None,
|
|
3741
|
+
removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
3736
3742
|
retention_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
3737
3743
|
shard_count: typing.Optional[jsii.Number] = None,
|
|
3738
3744
|
stream_mode: typing.Optional[StreamMode] = None,
|
|
@@ -3742,6 +3748,7 @@ class StreamProps:
|
|
|
3742
3748
|
|
|
3743
3749
|
:param encryption: The kind of server-side encryption to apply to this stream. If you choose KMS, you can specify a KMS key via ``encryptionKey``. If encryption key is not specified, a key will automatically be created. Default: - StreamEncryption.KMS if encrypted Streams are supported in the region or StreamEncryption.UNENCRYPTED otherwise. StreamEncryption.KMS if an encryption key is supplied through the encryptionKey property
|
|
3744
3750
|
:param encryption_key: External KMS key to use for stream encryption. The 'encryption' property must be set to "Kms". Default: - Kinesis Data Streams master key ('/alias/aws/kinesis'). If encryption is set to StreamEncryption.KMS and this property is undefined, a new KMS key will be created and associated with this stream.
|
|
3751
|
+
:param removal_policy: Policy to apply when the stream is removed from the stack. Default: RemovalPolicy.RETAIN
|
|
3745
3752
|
:param retention_period: The number of hours for the data records that are stored in shards to remain accessible. Default: Duration.hours(24)
|
|
3746
3753
|
:param shard_count: The number of shards for the stream. Can only be provided if streamMode is Provisioned. Default: 1
|
|
3747
3754
|
:param stream_mode: The capacity mode of this stream. Default: StreamMode.PROVISIONED
|
|
@@ -3762,6 +3769,7 @@ class StreamProps:
|
|
|
3762
3769
|
type_hints = typing.get_type_hints(_typecheckingstub__88629f78086711b76f550ae13e14f2db1429deb350aa5b10b7073d5852dadfcc)
|
|
3763
3770
|
check_type(argname="argument encryption", value=encryption, expected_type=type_hints["encryption"])
|
|
3764
3771
|
check_type(argname="argument encryption_key", value=encryption_key, expected_type=type_hints["encryption_key"])
|
|
3772
|
+
check_type(argname="argument removal_policy", value=removal_policy, expected_type=type_hints["removal_policy"])
|
|
3765
3773
|
check_type(argname="argument retention_period", value=retention_period, expected_type=type_hints["retention_period"])
|
|
3766
3774
|
check_type(argname="argument shard_count", value=shard_count, expected_type=type_hints["shard_count"])
|
|
3767
3775
|
check_type(argname="argument stream_mode", value=stream_mode, expected_type=type_hints["stream_mode"])
|
|
@@ -3771,6 +3779,8 @@ class StreamProps:
|
|
|
3771
3779
|
self._values["encryption"] = encryption
|
|
3772
3780
|
if encryption_key is not None:
|
|
3773
3781
|
self._values["encryption_key"] = encryption_key
|
|
3782
|
+
if removal_policy is not None:
|
|
3783
|
+
self._values["removal_policy"] = removal_policy
|
|
3774
3784
|
if retention_period is not None:
|
|
3775
3785
|
self._values["retention_period"] = retention_period
|
|
3776
3786
|
if shard_count is not None:
|
|
@@ -3811,6 +3821,15 @@ class StreamProps:
|
|
|
3811
3821
|
result = self._values.get("encryption_key")
|
|
3812
3822
|
return typing.cast(typing.Optional[_IKey_5f11635f], result)
|
|
3813
3823
|
|
|
3824
|
+
@builtins.property
|
|
3825
|
+
def removal_policy(self) -> typing.Optional[_RemovalPolicy_9f93c814]:
|
|
3826
|
+
'''Policy to apply when the stream is removed from the stack.
|
|
3827
|
+
|
|
3828
|
+
:default: RemovalPolicy.RETAIN
|
|
3829
|
+
'''
|
|
3830
|
+
result = self._values.get("removal_policy")
|
|
3831
|
+
return typing.cast(typing.Optional[_RemovalPolicy_9f93c814], result)
|
|
3832
|
+
|
|
3814
3833
|
@builtins.property
|
|
3815
3834
|
def retention_period(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
3816
3835
|
'''The number of hours for the data records that are stored in shards to remain accessible.
|
|
@@ -4053,6 +4072,7 @@ def _typecheckingstub__d9e4f581406090d861e3fe8214f939eedc5d1ccaffe122a7542878ec4
|
|
|
4053
4072
|
*,
|
|
4054
4073
|
encryption: typing.Optional[StreamEncryption] = None,
|
|
4055
4074
|
encryption_key: typing.Optional[_IKey_5f11635f] = None,
|
|
4075
|
+
removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
4056
4076
|
retention_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
4057
4077
|
shard_count: typing.Optional[jsii.Number] = None,
|
|
4058
4078
|
stream_mode: typing.Optional[StreamMode] = None,
|
|
@@ -4131,6 +4151,7 @@ def _typecheckingstub__88629f78086711b76f550ae13e14f2db1429deb350aa5b10b7073d585
|
|
|
4131
4151
|
*,
|
|
4132
4152
|
encryption: typing.Optional[StreamEncryption] = None,
|
|
4133
4153
|
encryption_key: typing.Optional[_IKey_5f11635f] = None,
|
|
4154
|
+
removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
4134
4155
|
retention_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
4135
4156
|
shard_count: typing.Optional[jsii.Number] = None,
|
|
4136
4157
|
stream_mode: typing.Optional[StreamMode] = None,
|
|
@@ -97,7 +97,7 @@ class CfnSignalingChannel(
|
|
|
97
97
|
'''
|
|
98
98
|
:param scope: Scope in which this resource is defined.
|
|
99
99
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
100
|
-
:param message_ttl_seconds: The period of time a signaling channel retains undelivered messages before they are discarded.
|
|
100
|
+
:param message_ttl_seconds: The period of time (in seconds) a signaling channel retains undelivered messages before they are discarded. Use ``API_UpdateSignalingChannel`` to update this value.
|
|
101
101
|
:param name: A name for the signaling channel that you are creating. It must be unique for each AWS account and AWS Region .
|
|
102
102
|
:param tags: An array of key-value pairs to apply to this resource. For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html>`_ .
|
|
103
103
|
:param type: A type of the signaling channel that you are creating. Currently, ``SINGLE_MASTER`` is the only supported channel type.
|
|
@@ -165,7 +165,7 @@ class CfnSignalingChannel(
|
|
|
165
165
|
@builtins.property
|
|
166
166
|
@jsii.member(jsii_name="messageTtlSeconds")
|
|
167
167
|
def message_ttl_seconds(self) -> typing.Optional[jsii.Number]:
|
|
168
|
-
'''The period of time a signaling channel retains undelivered messages before they are discarded.'''
|
|
168
|
+
'''The period of time (in seconds) a signaling channel retains undelivered messages before they are discarded.'''
|
|
169
169
|
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "messageTtlSeconds"))
|
|
170
170
|
|
|
171
171
|
@message_ttl_seconds.setter
|
|
@@ -236,7 +236,7 @@ class CfnSignalingChannelProps:
|
|
|
236
236
|
) -> None:
|
|
237
237
|
'''Properties for defining a ``CfnSignalingChannel``.
|
|
238
238
|
|
|
239
|
-
:param message_ttl_seconds: The period of time a signaling channel retains undelivered messages before they are discarded.
|
|
239
|
+
:param message_ttl_seconds: The period of time (in seconds) a signaling channel retains undelivered messages before they are discarded. Use ``API_UpdateSignalingChannel`` to update this value.
|
|
240
240
|
:param name: A name for the signaling channel that you are creating. It must be unique for each AWS account and AWS Region .
|
|
241
241
|
:param tags: An array of key-value pairs to apply to this resource. For more information, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html>`_ .
|
|
242
242
|
:param type: A type of the signaling channel that you are creating. Currently, ``SINGLE_MASTER`` is the only supported channel type.
|
|
@@ -278,7 +278,9 @@ class CfnSignalingChannelProps:
|
|
|
278
278
|
|
|
279
279
|
@builtins.property
|
|
280
280
|
def message_ttl_seconds(self) -> typing.Optional[jsii.Number]:
|
|
281
|
-
'''The period of time a signaling channel retains undelivered messages before they are discarded.
|
|
281
|
+
'''The period of time (in seconds) a signaling channel retains undelivered messages before they are discarded.
|
|
282
|
+
|
|
283
|
+
Use ``API_UpdateSignalingChannel`` to update this value.
|
|
282
284
|
|
|
283
285
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisvideo-signalingchannel.html#cfn-kinesisvideo-signalingchannel-messagettlseconds
|
|
284
286
|
'''
|
aws_cdk/aws_kms/__init__.py
CHANGED
|
@@ -5,7 +5,8 @@ Define a KMS key:
|
|
|
5
5
|
|
|
6
6
|
```python
|
|
7
7
|
kms.Key(self, "MyKey",
|
|
8
|
-
enable_key_rotation=True
|
|
8
|
+
enable_key_rotation=True,
|
|
9
|
+
rotation_period=Duration.days(180)
|
|
9
10
|
)
|
|
10
11
|
```
|
|
11
12
|
|
|
@@ -736,7 +737,7 @@ class CfnKey(
|
|
|
736
737
|
:param multi_region: Creates a multi-Region primary key that you can replicate in other AWS Regions . You can't change the ``MultiRegion`` value after the KMS key is created. For a list of AWS Regions in which multi-Region keys are supported, see `Multi-Region keys in AWS KMS <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html>`_ in the ** . .. epigraph:: If you change the value of the ``MultiRegion`` property on an existing KMS key, the update request fails, regardless of the value of the ```UpdateReplacePolicy`` attribute <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatereplacepolicy.html>`_ . This prevents you from accidentally deleting a KMS key by changing an immutable property value. For a multi-Region key, set to this property to ``true`` . For a single-Region key, omit this property or set it to ``false`` . The default value is ``false`` . *Multi-Region keys* are an AWS KMS feature that lets you create multiple interoperable KMS keys in different AWS Regions . Because these KMS keys have the same key ID, key material, and other metadata, you can use them to encrypt data in one AWS Region and decrypt it in a different AWS Region without making a cross-Region call or exposing the plaintext data. For more information, see `Multi-Region keys <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html>`_ in the *AWS Key Management Service Developer Guide* . You can create a symmetric encryption, HMAC, or asymmetric multi-Region KMS key, and you can create a multi-Region key with imported key material. However, you cannot create a multi-Region key in a custom key store. To create a replica of this primary key in a different AWS Region , create an `AWS::KMS::ReplicaKey <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-replicakey.html>`_ resource in a CloudFormation stack in the replica Region. Specify the key ARN of this primary key. Default: - false
|
|
737
738
|
:param origin: The source of the key material for the KMS key. You cannot change the origin after you create the KMS key. The default is ``AWS_KMS`` , which means that AWS KMS creates the key material. To `create a KMS key with no key material <https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-create-cmk.html>`_ (for imported key material), set this value to ``EXTERNAL`` . For more information about importing key material into AWS KMS , see `Importing Key Material <https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html>`_ in the *AWS Key Management Service Developer Guide* . You can ignore ``ENABLED`` when Origin is ``EXTERNAL`` . When a KMS key with Origin ``EXTERNAL`` is created, the key state is ``PENDING_IMPORT`` and ``ENABLED`` is ``false`` . After you import the key material, ``ENABLED`` updated to ``true`` . The KMS key can then be used for Cryptographic Operations. .. epigraph:: AWS CloudFormation doesn't support creating an ``Origin`` parameter of the ``AWS_CLOUDHSM`` or ``EXTERNAL_KEY_STORE`` values. Default: - "AWS_KMS"
|
|
738
739
|
:param pending_window_in_days: Specifies the number of days in the waiting period before AWS KMS deletes a KMS key that has been removed from a CloudFormation stack. Enter a value between 7 and 30 days. The default value is 30 days. When you remove a KMS key from a CloudFormation stack, AWS KMS schedules the KMS key for deletion and starts the mandatory waiting period. The ``PendingWindowInDays`` property determines the length of waiting period. During the waiting period, the key state of KMS key is ``Pending Deletion`` or ``Pending Replica Deletion`` , which prevents the KMS key from being used in cryptographic operations. When the waiting period expires, AWS KMS permanently deletes the KMS key. AWS KMS will not delete a `multi-Region primary key <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html>`_ that has replica keys. If you remove a multi-Region primary key from a CloudFormation stack, its key state changes to ``PendingReplicaDeletion`` so it cannot be replicated or used in cryptographic operations. This state can persist indefinitely. When the last of its replica keys is deleted, the key state of the primary key changes to ``PendingDeletion`` and the waiting period specified by ``PendingWindowInDays`` begins. When this waiting period expires, AWS KMS deletes the primary key. For details, see `Deleting multi-Region keys <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-delete.html>`_ in the *AWS Key Management Service Developer Guide* . You cannot use a CloudFormation template to cancel deletion of the KMS key after you remove it from the stack, regardless of the waiting period. If you specify a KMS key in your template, even one with the same name, CloudFormation creates a new KMS key. To cancel deletion of a KMS key, use the AWS KMS console or the `CancelKeyDeletion <https://docs.aws.amazon.com/kms/latest/APIReference/API_CancelKeyDeletion.html>`_ operation. For information about the ``Pending Deletion`` and ``Pending Replica Deletion`` key states, see `Key state: Effect on your KMS key <https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html>`_ in the *AWS Key Management Service Developer Guide* . For more information about deleting KMS keys, see the `ScheduleKeyDeletion <https://docs.aws.amazon.com/kms/latest/APIReference/API_ScheduleKeyDeletion.html>`_ operation in the *AWS Key Management Service API Reference* and `Deleting KMS keys <https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html>`_ in the *AWS Key Management Service Developer Guide* .
|
|
739
|
-
:param rotation_period_in_days: The number of days between each automatic rotation.
|
|
740
|
+
:param rotation_period_in_days: Specifies a custom period of time between each rotation date. If no value is specified, the default value is 365 days. The rotation period defines the number of days after you enable automatic key rotation that AWS KMS will rotate your key material, and the number of days between each automatic rotation thereafter. You can use the ```kms:RotationPeriodInDays`` <https://docs.aws.amazon.com/kms/latest/developerguide/conditions-kms.html#conditions-kms-rotation-period-in-days>`_ condition key to further constrain the values that principals can specify in the ``RotationPeriodInDays`` parameter. For more information about rotating KMS keys and automatic rotation, see `Rotating keys <https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html>`_ in the *AWS Key Management Service Developer Guide* . Default: - 365
|
|
740
741
|
:param tags: Assigns one or more tags to the replica key. .. epigraph:: Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see `ABAC for AWS KMS <https://docs.aws.amazon.com/kms/latest/developerguide/abac.html>`_ in the *AWS Key Management Service Developer Guide* . For information about tags in AWS KMS , see `Tagging keys <https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html>`_ in the *AWS Key Management Service Developer Guide* . For information about tags in CloudFormation, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html>`_ .
|
|
741
742
|
'''
|
|
742
743
|
if __debug__:
|
|
@@ -982,7 +983,7 @@ class CfnKey(
|
|
|
982
983
|
@builtins.property
|
|
983
984
|
@jsii.member(jsii_name="rotationPeriodInDays")
|
|
984
985
|
def rotation_period_in_days(self) -> typing.Optional[jsii.Number]:
|
|
985
|
-
'''
|
|
986
|
+
'''Specifies a custom period of time between each rotation date.'''
|
|
986
987
|
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "rotationPeriodInDays"))
|
|
987
988
|
|
|
988
989
|
@rotation_period_in_days.setter
|
|
@@ -1053,7 +1054,7 @@ class CfnKeyProps:
|
|
|
1053
1054
|
:param multi_region: Creates a multi-Region primary key that you can replicate in other AWS Regions . You can't change the ``MultiRegion`` value after the KMS key is created. For a list of AWS Regions in which multi-Region keys are supported, see `Multi-Region keys in AWS KMS <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html>`_ in the ** . .. epigraph:: If you change the value of the ``MultiRegion`` property on an existing KMS key, the update request fails, regardless of the value of the ```UpdateReplacePolicy`` attribute <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatereplacepolicy.html>`_ . This prevents you from accidentally deleting a KMS key by changing an immutable property value. For a multi-Region key, set to this property to ``true`` . For a single-Region key, omit this property or set it to ``false`` . The default value is ``false`` . *Multi-Region keys* are an AWS KMS feature that lets you create multiple interoperable KMS keys in different AWS Regions . Because these KMS keys have the same key ID, key material, and other metadata, you can use them to encrypt data in one AWS Region and decrypt it in a different AWS Region without making a cross-Region call or exposing the plaintext data. For more information, see `Multi-Region keys <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html>`_ in the *AWS Key Management Service Developer Guide* . You can create a symmetric encryption, HMAC, or asymmetric multi-Region KMS key, and you can create a multi-Region key with imported key material. However, you cannot create a multi-Region key in a custom key store. To create a replica of this primary key in a different AWS Region , create an `AWS::KMS::ReplicaKey <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-replicakey.html>`_ resource in a CloudFormation stack in the replica Region. Specify the key ARN of this primary key. Default: - false
|
|
1054
1055
|
:param origin: The source of the key material for the KMS key. You cannot change the origin after you create the KMS key. The default is ``AWS_KMS`` , which means that AWS KMS creates the key material. To `create a KMS key with no key material <https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-create-cmk.html>`_ (for imported key material), set this value to ``EXTERNAL`` . For more information about importing key material into AWS KMS , see `Importing Key Material <https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html>`_ in the *AWS Key Management Service Developer Guide* . You can ignore ``ENABLED`` when Origin is ``EXTERNAL`` . When a KMS key with Origin ``EXTERNAL`` is created, the key state is ``PENDING_IMPORT`` and ``ENABLED`` is ``false`` . After you import the key material, ``ENABLED`` updated to ``true`` . The KMS key can then be used for Cryptographic Operations. .. epigraph:: AWS CloudFormation doesn't support creating an ``Origin`` parameter of the ``AWS_CLOUDHSM`` or ``EXTERNAL_KEY_STORE`` values. Default: - "AWS_KMS"
|
|
1055
1056
|
:param pending_window_in_days: Specifies the number of days in the waiting period before AWS KMS deletes a KMS key that has been removed from a CloudFormation stack. Enter a value between 7 and 30 days. The default value is 30 days. When you remove a KMS key from a CloudFormation stack, AWS KMS schedules the KMS key for deletion and starts the mandatory waiting period. The ``PendingWindowInDays`` property determines the length of waiting period. During the waiting period, the key state of KMS key is ``Pending Deletion`` or ``Pending Replica Deletion`` , which prevents the KMS key from being used in cryptographic operations. When the waiting period expires, AWS KMS permanently deletes the KMS key. AWS KMS will not delete a `multi-Region primary key <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html>`_ that has replica keys. If you remove a multi-Region primary key from a CloudFormation stack, its key state changes to ``PendingReplicaDeletion`` so it cannot be replicated or used in cryptographic operations. This state can persist indefinitely. When the last of its replica keys is deleted, the key state of the primary key changes to ``PendingDeletion`` and the waiting period specified by ``PendingWindowInDays`` begins. When this waiting period expires, AWS KMS deletes the primary key. For details, see `Deleting multi-Region keys <https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-delete.html>`_ in the *AWS Key Management Service Developer Guide* . You cannot use a CloudFormation template to cancel deletion of the KMS key after you remove it from the stack, regardless of the waiting period. If you specify a KMS key in your template, even one with the same name, CloudFormation creates a new KMS key. To cancel deletion of a KMS key, use the AWS KMS console or the `CancelKeyDeletion <https://docs.aws.amazon.com/kms/latest/APIReference/API_CancelKeyDeletion.html>`_ operation. For information about the ``Pending Deletion`` and ``Pending Replica Deletion`` key states, see `Key state: Effect on your KMS key <https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html>`_ in the *AWS Key Management Service Developer Guide* . For more information about deleting KMS keys, see the `ScheduleKeyDeletion <https://docs.aws.amazon.com/kms/latest/APIReference/API_ScheduleKeyDeletion.html>`_ operation in the *AWS Key Management Service API Reference* and `Deleting KMS keys <https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html>`_ in the *AWS Key Management Service Developer Guide* .
|
|
1056
|
-
:param rotation_period_in_days: The number of days between each automatic rotation.
|
|
1057
|
+
:param rotation_period_in_days: Specifies a custom period of time between each rotation date. If no value is specified, the default value is 365 days. The rotation period defines the number of days after you enable automatic key rotation that AWS KMS will rotate your key material, and the number of days between each automatic rotation thereafter. You can use the ```kms:RotationPeriodInDays`` <https://docs.aws.amazon.com/kms/latest/developerguide/conditions-kms.html#conditions-kms-rotation-period-in-days>`_ condition key to further constrain the values that principals can specify in the ``RotationPeriodInDays`` parameter. For more information about rotating KMS keys and automatic rotation, see `Rotating keys <https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html>`_ in the *AWS Key Management Service Developer Guide* . Default: - 365
|
|
1057
1058
|
:param tags: Assigns one or more tags to the replica key. .. epigraph:: Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see `ABAC for AWS KMS <https://docs.aws.amazon.com/kms/latest/developerguide/abac.html>`_ in the *AWS Key Management Service Developer Guide* . For information about tags in AWS KMS , see `Tagging keys <https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html>`_ in the *AWS Key Management Service Developer Guide* . For information about tags in CloudFormation, see `Tag <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html>`_ .
|
|
1058
1059
|
|
|
1059
1060
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html
|
|
@@ -1351,9 +1352,15 @@ class CfnKeyProps:
|
|
|
1351
1352
|
|
|
1352
1353
|
@builtins.property
|
|
1353
1354
|
def rotation_period_in_days(self) -> typing.Optional[jsii.Number]:
|
|
1354
|
-
'''
|
|
1355
|
+
'''Specifies a custom period of time between each rotation date.
|
|
1355
1356
|
|
|
1356
|
-
|
|
1357
|
+
If no value is specified, the default value is 365 days.
|
|
1358
|
+
|
|
1359
|
+
The rotation period defines the number of days after you enable automatic key rotation that AWS KMS will rotate your key material, and the number of days between each automatic rotation thereafter.
|
|
1360
|
+
|
|
1361
|
+
You can use the ```kms:RotationPeriodInDays`` <https://docs.aws.amazon.com/kms/latest/developerguide/conditions-kms.html#conditions-kms-rotation-period-in-days>`_ condition key to further constrain the values that principals can specify in the ``RotationPeriodInDays`` parameter.
|
|
1362
|
+
|
|
1363
|
+
For more information about rotating KMS keys and automatic rotation, see `Rotating keys <https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html>`_ in the *AWS Key Management Service Developer Guide* .
|
|
1357
1364
|
|
|
1358
1365
|
:default: - 365
|
|
1359
1366
|
|
|
@@ -2097,6 +2104,7 @@ class Key(
|
|
|
2097
2104
|
pending_window: typing.Optional[_Duration_4839e8c3] = None,
|
|
2098
2105
|
policy: typing.Optional[_PolicyDocument_3ac34393] = None,
|
|
2099
2106
|
removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
2107
|
+
rotation_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
2100
2108
|
) -> None:
|
|
2101
2109
|
'''
|
|
2102
2110
|
:param scope: -
|
|
@@ -2111,6 +2119,7 @@ class Key(
|
|
|
2111
2119
|
:param pending_window: Specifies the number of days in the waiting period before AWS KMS deletes a CMK that has been removed from a CloudFormation stack. When you remove a customer master key (CMK) from a CloudFormation stack, AWS KMS schedules the CMK for deletion and starts the mandatory waiting period. The PendingWindowInDays property determines the length of waiting period. During the waiting period, the key state of CMK is Pending Deletion, which prevents the CMK from being used in cryptographic operations. When the waiting period expires, AWS KMS permanently deletes the CMK. Enter a value between 7 and 30 days. Default: - 30 days
|
|
2112
2120
|
:param policy: Custom policy document to attach to the KMS key. NOTE - If the ``@aws-cdk/aws-kms:defaultKeyPolicies`` feature flag is set (the default for new projects), this policy will *override* the default key policy and become the only key policy for the key. If the feature flag is not set, this policy will be appended to the default key policy. Default: - A policy document with permissions for the account root to administer the key will be created.
|
|
2113
2121
|
:param removal_policy: Whether the encryption key should be retained when it is removed from the Stack. This is useful when one wants to retain access to data that was encrypted with a key that is being retired. Default: RemovalPolicy.Retain
|
|
2122
|
+
:param rotation_period: The period between each automatic rotation. Default: - set by CFN to 365 days.
|
|
2114
2123
|
'''
|
|
2115
2124
|
if __debug__:
|
|
2116
2125
|
type_hints = typing.get_type_hints(_typecheckingstub__2cde9534bdfe7c19d6e24354f8a0de8ca349632d3f565addcaed7e86a84dac7e)
|
|
@@ -2127,6 +2136,7 @@ class Key(
|
|
|
2127
2136
|
pending_window=pending_window,
|
|
2128
2137
|
policy=policy,
|
|
2129
2138
|
removal_policy=removal_policy,
|
|
2139
|
+
rotation_period=rotation_period,
|
|
2130
2140
|
)
|
|
2131
2141
|
|
|
2132
2142
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
@@ -2431,6 +2441,7 @@ class KeyLookupOptions:
|
|
|
2431
2441
|
"pending_window": "pendingWindow",
|
|
2432
2442
|
"policy": "policy",
|
|
2433
2443
|
"removal_policy": "removalPolicy",
|
|
2444
|
+
"rotation_period": "rotationPeriod",
|
|
2434
2445
|
},
|
|
2435
2446
|
)
|
|
2436
2447
|
class KeyProps:
|
|
@@ -2447,6 +2458,7 @@ class KeyProps:
|
|
|
2447
2458
|
pending_window: typing.Optional[_Duration_4839e8c3] = None,
|
|
2448
2459
|
policy: typing.Optional[_PolicyDocument_3ac34393] = None,
|
|
2449
2460
|
removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
2461
|
+
rotation_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
2450
2462
|
) -> None:
|
|
2451
2463
|
'''Construction properties for a KMS Key object.
|
|
2452
2464
|
|
|
@@ -2460,6 +2472,7 @@ class KeyProps:
|
|
|
2460
2472
|
:param pending_window: Specifies the number of days in the waiting period before AWS KMS deletes a CMK that has been removed from a CloudFormation stack. When you remove a customer master key (CMK) from a CloudFormation stack, AWS KMS schedules the CMK for deletion and starts the mandatory waiting period. The PendingWindowInDays property determines the length of waiting period. During the waiting period, the key state of CMK is Pending Deletion, which prevents the CMK from being used in cryptographic operations. When the waiting period expires, AWS KMS permanently deletes the CMK. Enter a value between 7 and 30 days. Default: - 30 days
|
|
2461
2473
|
:param policy: Custom policy document to attach to the KMS key. NOTE - If the ``@aws-cdk/aws-kms:defaultKeyPolicies`` feature flag is set (the default for new projects), this policy will *override* the default key policy and become the only key policy for the key. If the feature flag is not set, this policy will be appended to the default key policy. Default: - A policy document with permissions for the account root to administer the key will be created.
|
|
2462
2474
|
:param removal_policy: Whether the encryption key should be retained when it is removed from the Stack. This is useful when one wants to retain access to data that was encrypted with a key that is being retired. Default: RemovalPolicy.Retain
|
|
2475
|
+
:param rotation_period: The period between each automatic rotation. Default: - set by CFN to 365 days.
|
|
2463
2476
|
|
|
2464
2477
|
:exampleMetadata: infused
|
|
2465
2478
|
|
|
@@ -2498,6 +2511,7 @@ class KeyProps:
|
|
|
2498
2511
|
check_type(argname="argument pending_window", value=pending_window, expected_type=type_hints["pending_window"])
|
|
2499
2512
|
check_type(argname="argument policy", value=policy, expected_type=type_hints["policy"])
|
|
2500
2513
|
check_type(argname="argument removal_policy", value=removal_policy, expected_type=type_hints["removal_policy"])
|
|
2514
|
+
check_type(argname="argument rotation_period", value=rotation_period, expected_type=type_hints["rotation_period"])
|
|
2501
2515
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
2502
2516
|
if admins is not None:
|
|
2503
2517
|
self._values["admins"] = admins
|
|
@@ -2519,6 +2533,8 @@ class KeyProps:
|
|
|
2519
2533
|
self._values["policy"] = policy
|
|
2520
2534
|
if removal_policy is not None:
|
|
2521
2535
|
self._values["removal_policy"] = removal_policy
|
|
2536
|
+
if rotation_period is not None:
|
|
2537
|
+
self._values["rotation_period"] = rotation_period
|
|
2522
2538
|
|
|
2523
2539
|
@builtins.property
|
|
2524
2540
|
def admins(self) -> typing.Optional[typing.List[_IPrincipal_539bb2fd]]:
|
|
@@ -2645,6 +2661,15 @@ class KeyProps:
|
|
|
2645
2661
|
result = self._values.get("removal_policy")
|
|
2646
2662
|
return typing.cast(typing.Optional[_RemovalPolicy_9f93c814], result)
|
|
2647
2663
|
|
|
2664
|
+
@builtins.property
|
|
2665
|
+
def rotation_period(self) -> typing.Optional[_Duration_4839e8c3]:
|
|
2666
|
+
'''The period between each automatic rotation.
|
|
2667
|
+
|
|
2668
|
+
:default: - set by CFN to 365 days.
|
|
2669
|
+
'''
|
|
2670
|
+
result = self._values.get("rotation_period")
|
|
2671
|
+
return typing.cast(typing.Optional[_Duration_4839e8c3], result)
|
|
2672
|
+
|
|
2648
2673
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2649
2674
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2650
2675
|
|
|
@@ -3468,6 +3493,7 @@ def _typecheckingstub__2cde9534bdfe7c19d6e24354f8a0de8ca349632d3f565addcaed7e86a
|
|
|
3468
3493
|
pending_window: typing.Optional[_Duration_4839e8c3] = None,
|
|
3469
3494
|
policy: typing.Optional[_PolicyDocument_3ac34393] = None,
|
|
3470
3495
|
removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
3496
|
+
rotation_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
3471
3497
|
) -> None:
|
|
3472
3498
|
"""Type checking stubs"""
|
|
3473
3499
|
pass
|
|
@@ -3570,6 +3596,7 @@ def _typecheckingstub__b3cbd21baa1113e5b2864ce6b440a0d87704642442943c3a554ab23ae
|
|
|
3570
3596
|
pending_window: typing.Optional[_Duration_4839e8c3] = None,
|
|
3571
3597
|
policy: typing.Optional[_PolicyDocument_3ac34393] = None,
|
|
3572
3598
|
removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
3599
|
+
rotation_period: typing.Optional[_Duration_4839e8c3] = None,
|
|
3573
3600
|
) -> None:
|
|
3574
3601
|
"""Type checking stubs"""
|
|
3575
3602
|
pass
|
aws_cdk/aws_lambda/__init__.py
CHANGED
|
@@ -2917,15 +2917,6 @@ class CfnAlias(
|
|
|
2917
2917
|
'''The CloudFormation resource type name for this resource class.'''
|
|
2918
2918
|
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
2919
2919
|
|
|
2920
|
-
@builtins.property
|
|
2921
|
-
@jsii.member(jsii_name="attrAliasArn")
|
|
2922
|
-
def attr_alias_arn(self) -> builtins.str:
|
|
2923
|
-
'''Lambda Alias ARN generated by the service.
|
|
2924
|
-
|
|
2925
|
-
:cloudformationAttribute: AliasArn
|
|
2926
|
-
'''
|
|
2927
|
-
return typing.cast(builtins.str, jsii.get(self, "attrAliasArn"))
|
|
2928
|
-
|
|
2929
2920
|
@builtins.property
|
|
2930
2921
|
@jsii.member(jsii_name="attrId")
|
|
2931
2922
|
def attr_id(self) -> builtins.str:
|
aws_cdk/aws_location/__init__.py
CHANGED
|
@@ -742,7 +742,7 @@ class CfnGeofenceCollection(
|
|
|
742
742
|
:param description: An optional description for the geofence collection.
|
|
743
743
|
:param kms_key_id: A key identifier for an `AWS KMS customer managed key <https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html>`_ . Enter a key ID, key ARN, alias name, or alias ARN.
|
|
744
744
|
:param pricing_plan:
|
|
745
|
-
:param pricing_plan_data_source:
|
|
745
|
+
:param pricing_plan_data_source: (deprecated) This shape is deprecated since 2022-02-01: Deprecated. No longer allowed.
|
|
746
746
|
:param tags: Applies one or more tags to the geofence collection. A tag is a key-value pair helps manage, identify, search, and filter your resources by labelling them. Format: ``"key" : "value"`` Restrictions: - Maximum 50 tags per resource - Each resource tag must be unique with a maximum of one value. - Maximum key length: 128 Unicode characters in UTF-8 - Maximum value length: 256 Unicode characters in UTF-8 - Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : /
|
|
747
747
|
'''
|
|
748
748
|
if __debug__:
|
|
@@ -904,7 +904,8 @@ class CfnGeofenceCollection(
|
|
|
904
904
|
@builtins.property
|
|
905
905
|
@jsii.member(jsii_name="pricingPlanDataSource")
|
|
906
906
|
def pricing_plan_data_source(self) -> typing.Optional[builtins.str]:
|
|
907
|
-
'''
|
|
907
|
+
'''(deprecated) This shape is deprecated since 2022-02-01: Deprecated.
|
|
908
|
+
|
|
908
909
|
:deprecated: this property has been deprecated
|
|
909
910
|
|
|
910
911
|
:stability: deprecated
|
|
@@ -961,7 +962,7 @@ class CfnGeofenceCollectionProps:
|
|
|
961
962
|
:param description: An optional description for the geofence collection.
|
|
962
963
|
:param kms_key_id: A key identifier for an `AWS KMS customer managed key <https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html>`_ . Enter a key ID, key ARN, alias name, or alias ARN.
|
|
963
964
|
:param pricing_plan:
|
|
964
|
-
:param pricing_plan_data_source:
|
|
965
|
+
:param pricing_plan_data_source: (deprecated) This shape is deprecated since 2022-02-01: Deprecated. No longer allowed.
|
|
965
966
|
:param tags: Applies one or more tags to the geofence collection. A tag is a key-value pair helps manage, identify, search, and filter your resources by labelling them. Format: ``"key" : "value"`` Restrictions: - Maximum 50 tags per resource - Each resource tag must be unique with a maximum of one value. - Maximum key length: 128 Unicode characters in UTF-8 - Maximum value length: 256 Unicode characters in UTF-8 - Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : /
|
|
966
967
|
|
|
967
968
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-geofencecollection.html
|
|
@@ -1056,7 +1057,10 @@ class CfnGeofenceCollectionProps:
|
|
|
1056
1057
|
|
|
1057
1058
|
@builtins.property
|
|
1058
1059
|
def pricing_plan_data_source(self) -> typing.Optional[builtins.str]:
|
|
1059
|
-
'''
|
|
1060
|
+
'''(deprecated) This shape is deprecated since 2022-02-01: Deprecated.
|
|
1061
|
+
|
|
1062
|
+
No longer allowed.
|
|
1063
|
+
|
|
1060
1064
|
:deprecated: this property has been deprecated
|
|
1061
1065
|
|
|
1062
1066
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-geofencecollection.html#cfn-location-geofencecollection-pricingplandatasource
|