aws-cdk-lib 2.154.1__py3-none-any.whl → 2.156.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 +2 -2
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.154.1.jsii.tgz → aws-cdk-lib@2.156.0.jsii.tgz} +0 -0
- aws_cdk/assertions/__init__.py +17 -17
- aws_cdk/aws_bedrock/__init__.py +22 -4
- aws_cdk/aws_cloudfront/__init__.py +654 -59
- aws_cdk/aws_cloudfront_origins/__init__.py +2034 -91
- aws_cdk/aws_codebuild/__init__.py +349 -8
- aws_cdk/aws_docdb/__init__.py +78 -6
- aws_cdk/aws_ec2/__init__.py +250 -61
- aws_cdk/aws_ecs/__init__.py +18 -14
- aws_cdk/aws_ecs_patterns/__init__.py +129 -11
- aws_cdk/aws_eks/__init__.py +74 -8
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +22 -46
- aws_cdk/aws_events/__init__.py +40 -14
- aws_cdk/aws_events_targets/__init__.py +357 -0
- aws_cdk/aws_iam/__init__.py +7 -8
- aws_cdk/aws_ivs/__init__.py +10 -8
- aws_cdk/aws_kms/__init__.py +89 -10
- aws_cdk/aws_lambda/__init__.py +38 -23
- aws_cdk/aws_lambda_event_sources/__init__.py +27 -0
- aws_cdk/aws_rds/__init__.py +12 -0
- aws_cdk/aws_s3/__init__.py +13 -14
- aws_cdk/aws_secretsmanager/__init__.py +3 -2
- aws_cdk/aws_ses/__init__.py +7 -7
- aws_cdk/aws_ssmcontacts/__init__.py +12 -0
- aws_cdk/aws_stepfunctions/__init__.py +12 -14
- aws_cdk/aws_stepfunctions_tasks/__init__.py +178 -41
- aws_cdk/aws_synthetics/__init__.py +26 -0
- aws_cdk/custom_resources/__init__.py +106 -1
- aws_cdk/cx_api/__init__.py +16 -0
- {aws_cdk_lib-2.154.1.dist-info → aws_cdk_lib-2.156.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.154.1.dist-info → aws_cdk_lib-2.156.0.dist-info}/RECORD +37 -37
- {aws_cdk_lib-2.154.1.dist-info → aws_cdk_lib-2.156.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.154.1.dist-info → aws_cdk_lib-2.156.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.154.1.dist-info → aws_cdk_lib-2.156.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.154.1.dist-info → aws_cdk_lib-2.156.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_docdb/__init__.py
CHANGED
|
@@ -283,6 +283,26 @@ cluster = docdb.DatabaseCluster(self, "Database",
|
|
|
283
283
|
ca_certificate=docdb.CaCertificate.RDS_CA_RSA4096_G1
|
|
284
284
|
)
|
|
285
285
|
```
|
|
286
|
+
|
|
287
|
+
## Storage Type
|
|
288
|
+
|
|
289
|
+
You can specify [storage type](https://docs.aws.amazon.com/documentdb/latest/developerguide/db-cluster-storage-configs.html) for the cluster.
|
|
290
|
+
|
|
291
|
+
```python
|
|
292
|
+
# vpc: ec2.Vpc
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
cluster = docdb.DatabaseCluster(self, "Database",
|
|
296
|
+
master_user=docdb.Login(
|
|
297
|
+
username="myuser"
|
|
298
|
+
),
|
|
299
|
+
instance_type=ec2.InstanceType.of(ec2.InstanceClass.MEMORY5, ec2.InstanceSize.LARGE),
|
|
300
|
+
vpc=vpc,
|
|
301
|
+
storage_type=docdb.StorageType.IOPT1
|
|
302
|
+
)
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
**Note**: `StorageType.IOPT1` is supported starting with engine version 5.0.0.
|
|
286
306
|
'''
|
|
287
307
|
from pkgutil import extend_path
|
|
288
308
|
__path__ = extend_path(__path__, __name__)
|
|
@@ -3460,6 +3480,7 @@ class DatabaseClusterAttributes:
|
|
|
3460
3480
|
"security_group": "securityGroup",
|
|
3461
3481
|
"security_group_removal_policy": "securityGroupRemovalPolicy",
|
|
3462
3482
|
"storage_encrypted": "storageEncrypted",
|
|
3483
|
+
"storage_type": "storageType",
|
|
3463
3484
|
"vpc_subnets": "vpcSubnets",
|
|
3464
3485
|
},
|
|
3465
3486
|
)
|
|
@@ -3492,6 +3513,7 @@ class DatabaseClusterProps:
|
|
|
3492
3513
|
security_group: typing.Optional[_ISecurityGroup_acf8a799] = None,
|
|
3493
3514
|
security_group_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
3494
3515
|
storage_encrypted: typing.Optional[builtins.bool] = None,
|
|
3516
|
+
storage_type: typing.Optional["StorageType"] = None,
|
|
3495
3517
|
vpc_subnets: typing.Optional[typing.Union[_SubnetSelection_e57d76df, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
3496
3518
|
) -> None:
|
|
3497
3519
|
'''Properties for a new database cluster.
|
|
@@ -3507,7 +3529,7 @@ class DatabaseClusterProps:
|
|
|
3507
3529
|
:param db_cluster_name: An optional identifier for the cluster. Default: - A name is automatically generated.
|
|
3508
3530
|
:param deletion_protection: Specifies whether this cluster can be deleted. If deletionProtection is enabled, the cluster cannot be deleted unless it is modified and deletionProtection is disabled. deletionProtection protects clusters from being accidentally deleted. Default: - false
|
|
3509
3531
|
:param enable_performance_insights: A value that indicates whether to enable Performance Insights for the instances in the DB Cluster. Default: - false
|
|
3510
|
-
:param engine_version: What version of the database to start. Default: -
|
|
3532
|
+
:param engine_version: What version of the database to start. Default: - the latest major version
|
|
3511
3533
|
:param export_audit_logs_to_cloud_watch: Whether the audit logs should be exported to CloudWatch. Note that you also have to configure the audit log export in the Cluster's Parameter Group. Default: false
|
|
3512
3534
|
:param export_profiler_logs_to_cloud_watch: Whether the profiler logs should be exported to CloudWatch. Note that you also have to configure the profiler log export in the Cluster's Parameter Group. Default: false
|
|
3513
3535
|
:param instance_identifier_base: Base identifier for instances. Every replica is named by appending the replica number to this string, 1-based. Default: - ``dbClusterName`` is used with the word "Instance" appended. If ``dbClusterName`` is not provided, the identifier is automatically generated.
|
|
@@ -3521,6 +3543,7 @@ class DatabaseClusterProps:
|
|
|
3521
3543
|
:param security_group: Security group. Default: a new security group is created.
|
|
3522
3544
|
:param security_group_removal_policy: The removal policy to apply to the cluster's security group. Cannot be set to ``SNAPSHOT``. Default: - ``RemovalPolicy.DESTROY`` when ``removalPolicy`` is set to ``SNAPSHOT``, ``removalPolicy`` otherwise.
|
|
3523
3545
|
:param storage_encrypted: Whether to enable storage encryption. Default: true
|
|
3546
|
+
:param storage_type: The storage type of the DocDB cluster. I/O-optimized storage is supported starting with engine version 5.0.0. Default: StorageType.STANDARD
|
|
3524
3547
|
:param vpc_subnets: Where to place the instances within the VPC. Default: private subnets
|
|
3525
3548
|
|
|
3526
3549
|
:exampleMetadata: infused
|
|
@@ -3539,7 +3562,7 @@ class DatabaseClusterProps:
|
|
|
3539
3562
|
subnet_type=ec2.SubnetType.PUBLIC
|
|
3540
3563
|
),
|
|
3541
3564
|
vpc=vpc,
|
|
3542
|
-
|
|
3565
|
+
removal_policy=RemovalPolicy.SNAPSHOT
|
|
3543
3566
|
)
|
|
3544
3567
|
'''
|
|
3545
3568
|
if isinstance(master_user, dict):
|
|
@@ -3575,6 +3598,7 @@ class DatabaseClusterProps:
|
|
|
3575
3598
|
check_type(argname="argument security_group", value=security_group, expected_type=type_hints["security_group"])
|
|
3576
3599
|
check_type(argname="argument security_group_removal_policy", value=security_group_removal_policy, expected_type=type_hints["security_group_removal_policy"])
|
|
3577
3600
|
check_type(argname="argument storage_encrypted", value=storage_encrypted, expected_type=type_hints["storage_encrypted"])
|
|
3601
|
+
check_type(argname="argument storage_type", value=storage_type, expected_type=type_hints["storage_type"])
|
|
3578
3602
|
check_type(argname="argument vpc_subnets", value=vpc_subnets, expected_type=type_hints["vpc_subnets"])
|
|
3579
3603
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3580
3604
|
"instance_type": instance_type,
|
|
@@ -3625,6 +3649,8 @@ class DatabaseClusterProps:
|
|
|
3625
3649
|
self._values["security_group_removal_policy"] = security_group_removal_policy
|
|
3626
3650
|
if storage_encrypted is not None:
|
|
3627
3651
|
self._values["storage_encrypted"] = storage_encrypted
|
|
3652
|
+
if storage_type is not None:
|
|
3653
|
+
self._values["storage_type"] = storage_type
|
|
3628
3654
|
if vpc_subnets is not None:
|
|
3629
3655
|
self._values["vpc_subnets"] = vpc_subnets
|
|
3630
3656
|
|
|
@@ -3747,7 +3773,7 @@ class DatabaseClusterProps:
|
|
|
3747
3773
|
def engine_version(self) -> typing.Optional[builtins.str]:
|
|
3748
3774
|
'''What version of the database to start.
|
|
3749
3775
|
|
|
3750
|
-
:default: -
|
|
3776
|
+
:default: - the latest major version
|
|
3751
3777
|
'''
|
|
3752
3778
|
result = self._values.get("engine_version")
|
|
3753
3779
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -3908,6 +3934,19 @@ class DatabaseClusterProps:
|
|
|
3908
3934
|
result = self._values.get("storage_encrypted")
|
|
3909
3935
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
3910
3936
|
|
|
3937
|
+
@builtins.property
|
|
3938
|
+
def storage_type(self) -> typing.Optional["StorageType"]:
|
|
3939
|
+
'''The storage type of the DocDB cluster.
|
|
3940
|
+
|
|
3941
|
+
I/O-optimized storage is supported starting with engine version 5.0.0.
|
|
3942
|
+
|
|
3943
|
+
:default: StorageType.STANDARD
|
|
3944
|
+
|
|
3945
|
+
:see: https://docs.aws.amazon.com/documentdb/latest/developerguide/release-notes.html#release-notes.11-21-2023
|
|
3946
|
+
'''
|
|
3947
|
+
result = self._values.get("storage_type")
|
|
3948
|
+
return typing.cast(typing.Optional["StorageType"], result)
|
|
3949
|
+
|
|
3911
3950
|
@builtins.property
|
|
3912
3951
|
def vpc_subnets(self) -> typing.Optional[_SubnetSelection_e57d76df]:
|
|
3913
3952
|
'''Where to place the instances within the VPC.
|
|
@@ -4721,7 +4760,7 @@ class Login:
|
|
|
4721
4760
|
subnet_type=ec2.SubnetType.PUBLIC
|
|
4722
4761
|
),
|
|
4723
4762
|
vpc=vpc,
|
|
4724
|
-
|
|
4763
|
+
removal_policy=RemovalPolicy.SNAPSHOT
|
|
4725
4764
|
)
|
|
4726
4765
|
'''
|
|
4727
4766
|
if __debug__:
|
|
@@ -4884,6 +4923,33 @@ class RotationMultiUserOptions:
|
|
|
4884
4923
|
)
|
|
4885
4924
|
|
|
4886
4925
|
|
|
4926
|
+
@jsii.enum(jsii_type="aws-cdk-lib.aws_docdb.StorageType")
|
|
4927
|
+
class StorageType(enum.Enum):
|
|
4928
|
+
'''The storage type of the DocDB cluster.
|
|
4929
|
+
|
|
4930
|
+
:exampleMetadata: infused
|
|
4931
|
+
|
|
4932
|
+
Example::
|
|
4933
|
+
|
|
4934
|
+
# vpc: ec2.Vpc
|
|
4935
|
+
|
|
4936
|
+
|
|
4937
|
+
cluster = docdb.DatabaseCluster(self, "Database",
|
|
4938
|
+
master_user=docdb.Login(
|
|
4939
|
+
username="myuser"
|
|
4940
|
+
),
|
|
4941
|
+
instance_type=ec2.InstanceType.of(ec2.InstanceClass.MEMORY5, ec2.InstanceSize.LARGE),
|
|
4942
|
+
vpc=vpc,
|
|
4943
|
+
storage_type=docdb.StorageType.IOPT1
|
|
4944
|
+
)
|
|
4945
|
+
'''
|
|
4946
|
+
|
|
4947
|
+
STANDARD = "STANDARD"
|
|
4948
|
+
'''Standard storage.'''
|
|
4949
|
+
IOPT1 = "IOPT1"
|
|
4950
|
+
'''I/O-optimized storage.'''
|
|
4951
|
+
|
|
4952
|
+
|
|
4887
4953
|
@jsii.implements(IClusterParameterGroup)
|
|
4888
4954
|
class ClusterParameterGroup(
|
|
4889
4955
|
_Resource_45bc6135,
|
|
@@ -4997,7 +5063,7 @@ class DatabaseCluster(
|
|
|
4997
5063
|
subnet_type=ec2.SubnetType.PUBLIC
|
|
4998
5064
|
),
|
|
4999
5065
|
vpc=vpc,
|
|
5000
|
-
|
|
5066
|
+
removal_policy=RemovalPolicy.SNAPSHOT
|
|
5001
5067
|
)
|
|
5002
5068
|
'''
|
|
5003
5069
|
|
|
@@ -5031,6 +5097,7 @@ class DatabaseCluster(
|
|
|
5031
5097
|
security_group: typing.Optional[_ISecurityGroup_acf8a799] = None,
|
|
5032
5098
|
security_group_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
5033
5099
|
storage_encrypted: typing.Optional[builtins.bool] = None,
|
|
5100
|
+
storage_type: typing.Optional[StorageType] = None,
|
|
5034
5101
|
vpc_subnets: typing.Optional[typing.Union[_SubnetSelection_e57d76df, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
5035
5102
|
) -> None:
|
|
5036
5103
|
'''
|
|
@@ -5047,7 +5114,7 @@ class DatabaseCluster(
|
|
|
5047
5114
|
:param db_cluster_name: An optional identifier for the cluster. Default: - A name is automatically generated.
|
|
5048
5115
|
:param deletion_protection: Specifies whether this cluster can be deleted. If deletionProtection is enabled, the cluster cannot be deleted unless it is modified and deletionProtection is disabled. deletionProtection protects clusters from being accidentally deleted. Default: - false
|
|
5049
5116
|
:param enable_performance_insights: A value that indicates whether to enable Performance Insights for the instances in the DB Cluster. Default: - false
|
|
5050
|
-
:param engine_version: What version of the database to start. Default: -
|
|
5117
|
+
:param engine_version: What version of the database to start. Default: - the latest major version
|
|
5051
5118
|
:param export_audit_logs_to_cloud_watch: Whether the audit logs should be exported to CloudWatch. Note that you also have to configure the audit log export in the Cluster's Parameter Group. Default: false
|
|
5052
5119
|
:param export_profiler_logs_to_cloud_watch: Whether the profiler logs should be exported to CloudWatch. Note that you also have to configure the profiler log export in the Cluster's Parameter Group. Default: false
|
|
5053
5120
|
:param instance_identifier_base: Base identifier for instances. Every replica is named by appending the replica number to this string, 1-based. Default: - ``dbClusterName`` is used with the word "Instance" appended. If ``dbClusterName`` is not provided, the identifier is automatically generated.
|
|
@@ -5061,6 +5128,7 @@ class DatabaseCluster(
|
|
|
5061
5128
|
:param security_group: Security group. Default: a new security group is created.
|
|
5062
5129
|
:param security_group_removal_policy: The removal policy to apply to the cluster's security group. Cannot be set to ``SNAPSHOT``. Default: - ``RemovalPolicy.DESTROY`` when ``removalPolicy`` is set to ``SNAPSHOT``, ``removalPolicy`` otherwise.
|
|
5063
5130
|
:param storage_encrypted: Whether to enable storage encryption. Default: true
|
|
5131
|
+
:param storage_type: The storage type of the DocDB cluster. I/O-optimized storage is supported starting with engine version 5.0.0. Default: StorageType.STANDARD
|
|
5064
5132
|
:param vpc_subnets: Where to place the instances within the VPC. Default: private subnets
|
|
5065
5133
|
'''
|
|
5066
5134
|
if __debug__:
|
|
@@ -5093,6 +5161,7 @@ class DatabaseCluster(
|
|
|
5093
5161
|
security_group=security_group,
|
|
5094
5162
|
security_group_removal_policy=security_group_removal_policy,
|
|
5095
5163
|
storage_encrypted=storage_encrypted,
|
|
5164
|
+
storage_type=storage_type,
|
|
5096
5165
|
vpc_subnets=vpc_subnets,
|
|
5097
5166
|
)
|
|
5098
5167
|
|
|
@@ -5461,6 +5530,7 @@ __all__ = [
|
|
|
5461
5530
|
"IDatabaseInstance",
|
|
5462
5531
|
"Login",
|
|
5463
5532
|
"RotationMultiUserOptions",
|
|
5533
|
+
"StorageType",
|
|
5464
5534
|
]
|
|
5465
5535
|
|
|
5466
5536
|
publication.publish()
|
|
@@ -6051,6 +6121,7 @@ def _typecheckingstub__bb24ec128a97ca07df15f55d4e96dda851d4300951806a7a3d7f391cc
|
|
|
6051
6121
|
security_group: typing.Optional[_ISecurityGroup_acf8a799] = None,
|
|
6052
6122
|
security_group_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
6053
6123
|
storage_encrypted: typing.Optional[builtins.bool] = None,
|
|
6124
|
+
storage_type: typing.Optional[StorageType] = None,
|
|
6054
6125
|
vpc_subnets: typing.Optional[typing.Union[_SubnetSelection_e57d76df, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
6055
6126
|
) -> None:
|
|
6056
6127
|
"""Type checking stubs"""
|
|
@@ -6179,6 +6250,7 @@ def _typecheckingstub__3fef762ebf4d69195051e79f76d91c6d9e93e2a84a6c1e71f7b4a0b8c
|
|
|
6179
6250
|
security_group: typing.Optional[_ISecurityGroup_acf8a799] = None,
|
|
6180
6251
|
security_group_removal_policy: typing.Optional[_RemovalPolicy_9f93c814] = None,
|
|
6181
6252
|
storage_encrypted: typing.Optional[builtins.bool] = None,
|
|
6253
|
+
storage_type: typing.Optional[StorageType] = None,
|
|
6182
6254
|
vpc_subnets: typing.Optional[typing.Union[_SubnetSelection_e57d76df, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
6183
6255
|
) -> None:
|
|
6184
6256
|
"""Type checking stubs"""
|