aws-cdk-lib 2.194.0__py3-none-any.whl → 2.196.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 +435 -20
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.194.0.jsii.tgz → aws-cdk-lib@2.196.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +1 -1
- aws_cdk/aws_amazonmq/__init__.py +2 -2
- aws_cdk/aws_apigateway/__init__.py +208 -70
- aws_cdk/aws_apigatewayv2/__init__.py +155 -24
- aws_cdk/aws_appconfig/__init__.py +24 -0
- aws_cdk/aws_applicationautoscaling/__init__.py +6 -0
- aws_cdk/aws_appmesh/__init__.py +42 -0
- aws_cdk/aws_appsync/__init__.py +92 -20
- aws_cdk/aws_autoscaling/__init__.py +24 -0
- aws_cdk/aws_backup/__init__.py +53 -14
- aws_cdk/aws_batch/__init__.py +72 -0
- aws_cdk/aws_bedrock/__init__.py +1201 -18
- aws_cdk/aws_budgets/__init__.py +569 -0
- aws_cdk/aws_certificatemanager/__init__.py +21 -0
- aws_cdk/aws_chatbot/__init__.py +6 -0
- aws_cdk/aws_cloudfront/__init__.py +277 -120
- aws_cdk/aws_cloudfront/experimental/__init__.py +6 -0
- aws_cdk/aws_cloudtrail/__init__.py +6 -0
- aws_cdk/aws_cloudwatch/__init__.py +18 -0
- aws_cdk/aws_cloudwatch_actions/__init__.py +75 -1
- aws_cdk/aws_codebuild/__init__.py +48 -0
- aws_cdk/aws_codecommit/__init__.py +6 -0
- aws_cdk/aws_codedeploy/__init__.py +63 -0
- aws_cdk/aws_codeguruprofiler/__init__.py +6 -0
- aws_cdk/aws_codepipeline/__init__.py +114 -0
- aws_cdk/aws_codepipeline_actions/__init__.py +4 -4
- aws_cdk/aws_codestarnotifications/__init__.py +6 -0
- aws_cdk/aws_cognito/__init__.py +215 -10
- aws_cdk/aws_cognito_identitypool/__init__.py +6 -0
- aws_cdk/aws_config/__init__.py +36 -0
- aws_cdk/aws_datazone/__init__.py +1013 -100
- aws_cdk/aws_docdb/__init__.py +27 -3
- aws_cdk/aws_dsql/__init__.py +29 -12
- aws_cdk/aws_dynamodb/__init__.py +25 -11
- aws_cdk/aws_ec2/__init__.py +408 -23
- aws_cdk/aws_ecr/__init__.py +22 -14
- aws_cdk/aws_ecr_assets/__init__.py +6 -0
- aws_cdk/aws_ecs/__init__.py +116 -34
- aws_cdk/aws_ecs_patterns/__init__.py +58 -0
- aws_cdk/aws_efs/__init__.py +12 -0
- aws_cdk/aws_eks/__init__.py +42 -0
- aws_cdk/aws_elasticloadbalancing/__init__.py +6 -0
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +112 -9
- aws_cdk/aws_elasticsearch/__init__.py +9 -0
- aws_cdk/aws_events/__init__.py +36 -0
- aws_cdk/aws_events_targets/__init__.py +10 -10
- aws_cdk/aws_fsx/__init__.py +8 -3
- aws_cdk/aws_globalaccelerator/__init__.py +18 -0
- aws_cdk/aws_iam/__init__.py +66 -0
- aws_cdk/aws_imagebuilder/__init__.py +181 -26
- aws_cdk/aws_inspector/__init__.py +6 -0
- aws_cdk/aws_kinesis/__init__.py +19 -1
- aws_cdk/aws_kinesisanalytics/__init__.py +7 -7
- aws_cdk/aws_kinesisanalyticsv2/__init__.py +7 -7
- aws_cdk/aws_kinesisfirehose/__init__.py +6 -0
- aws_cdk/aws_kms/__init__.py +16 -4
- aws_cdk/aws_lambda/__init__.py +76 -6
- aws_cdk/aws_lambda_nodejs/__init__.py +6 -0
- aws_cdk/aws_logs/__init__.py +155 -12
- aws_cdk/aws_medialive/__init__.py +4 -6
- aws_cdk/aws_mediatailor/__init__.py +115 -0
- aws_cdk/aws_oam/__init__.py +43 -10
- aws_cdk/aws_opensearchservice/__init__.py +12 -0
- aws_cdk/aws_qbusiness/__init__.py +2 -2
- aws_cdk/aws_quicksight/__init__.py +22 -22
- aws_cdk/aws_rds/__init__.py +347 -36
- aws_cdk/aws_redshiftserverless/__init__.py +7 -7
- aws_cdk/aws_route53/__init__.py +735 -33
- aws_cdk/aws_route53_targets/__init__.py +62 -1
- aws_cdk/aws_route53profiles/__init__.py +1 -1
- aws_cdk/aws_s3/__init__.py +37 -10
- aws_cdk/aws_s3_deployment/__init__.py +6 -0
- aws_cdk/aws_s3_notifications/__init__.py +5 -5
- aws_cdk/aws_sagemaker/__init__.py +452 -8
- aws_cdk/aws_scheduler/__init__.py +12 -0
- aws_cdk/aws_secretsmanager/__init__.py +24 -0
- aws_cdk/aws_servicecatalog/__init__.py +24 -0
- aws_cdk/aws_servicediscovery/__init__.py +48 -0
- aws_cdk/aws_ses/__init__.py +133 -33
- aws_cdk/aws_signer/__init__.py +6 -0
- aws_cdk/aws_sns/__init__.py +18 -0
- aws_cdk/aws_sns_subscriptions/__init__.py +6 -0
- aws_cdk/aws_sqs/__init__.py +12 -0
- aws_cdk/aws_ssm/__init__.py +12 -0
- aws_cdk/aws_ssmcontacts/__init__.py +53 -2
- aws_cdk/aws_ssmguiconnect/__init__.py +544 -0
- aws_cdk/aws_stepfunctions/__init__.py +153 -7
- aws_cdk/aws_stepfunctions_tasks/__init__.py +46 -10
- aws_cdk/aws_synthetics/__init__.py +32 -0
- aws_cdk/aws_verifiedpermissions/__init__.py +168 -3
- aws_cdk/aws_vpclattice/__init__.py +3 -1
- aws_cdk/aws_wisdom/__init__.py +6 -4
- aws_cdk/cloud_assembly_schema/__init__.py +7 -1
- aws_cdk/custom_resources/__init__.py +18 -0
- aws_cdk/cx_api/__init__.py +33 -0
- aws_cdk/lambda_layer_awscli/__init__.py +6 -0
- aws_cdk/lambda_layer_node_proxy_agent/__init__.py +6 -0
- aws_cdk/pipelines/__init__.py +10 -10
- aws_cdk/triggers/__init__.py +6 -0
- {aws_cdk_lib-2.194.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/METADATA +84 -6
- {aws_cdk_lib-2.194.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/RECORD +108 -107
- {aws_cdk_lib-2.194.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.194.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.194.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.194.0.dist-info → aws_cdk_lib-2.196.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_docdb/__init__.py
CHANGED
|
@@ -639,7 +639,7 @@ class CfnDBCluster(
|
|
|
639
639
|
:param db_subnet_group_name: A subnet group to associate with this cluster. Constraints: Must match the name of an existing ``DBSubnetGroup`` . Must not be default. Example: ``mySubnetgroup``
|
|
640
640
|
:param deletion_protection: Protects clusters from being accidentally deleted. If enabled, the cluster cannot be deleted unless it is modified and ``DeletionProtection`` is disabled.
|
|
641
641
|
:param enable_cloudwatch_logs_exports: The list of log types that need to be enabled for exporting to Amazon CloudWatch Logs. You can enable audit logs or profiler logs. For more information, see `Auditing Amazon DocumentDB Events <https://docs.aws.amazon.com/documentdb/latest/developerguide/event-auditing.html>`_ and `Profiling Amazon DocumentDB Operations <https://docs.aws.amazon.com/documentdb/latest/developerguide/profiling.html>`_ .
|
|
642
|
-
:param engine_version: The version number of the database engine to use. The ``--engine-version`` will default to the latest major engine version. For production workloads, we recommend explicitly declaring this parameter with the intended major engine version.
|
|
642
|
+
:param engine_version: The version number of the database engine to use. The ``--engine-version`` will default to the latest major engine version. For production workloads, we recommend explicitly declaring this parameter with the intended major engine version. If you intend to trigger an in-place upgrade, please refer to `Amazon DocumentDB in-place major version upgrade <https://docs.aws.amazon.com/documentdb/latest/developerguide/docdb-mvu.html>`_ . Note that for an in-place engine version upgrade, you need to remove other cluster properties changes (e.g. SecurityGroupId) from the CFN template.
|
|
643
643
|
:param kms_key_id: The AWS KMS key identifier for an encrypted cluster. The AWS KMS key identifier is the Amazon Resource Name (ARN) for the AWS KMS encryption key. If you are creating a cluster using the same AWS account that owns the AWS KMS encryption key that is used to encrypt the new cluster, you can use the AWS KMS key alias instead of the ARN for the AWS KMS encryption key. If an encryption key is not specified in ``KmsKeyId`` : - If the ``StorageEncrypted`` parameter is ``true`` , Amazon DocumentDB uses your default encryption key. AWS KMS creates the default encryption key for your AWS account . Your AWS account has a different default encryption key for each AWS Regions .
|
|
644
644
|
:param manage_master_user_password: Specifies whether to manage the master user password with Amazon Web Services Secrets Manager. Constraint: You can't manage the master user password with Amazon Web Services Secrets Manager if ``MasterUserPassword`` is specified.
|
|
645
645
|
:param master_username: The name of the master user for the cluster. Constraints: - Must be from 1 to 63 letters or numbers. - The first character must be a letter. - Cannot be a reserved word for the chosen database engine.
|
|
@@ -1694,7 +1694,7 @@ class CfnDBClusterProps:
|
|
|
1694
1694
|
:param db_subnet_group_name: A subnet group to associate with this cluster. Constraints: Must match the name of an existing ``DBSubnetGroup`` . Must not be default. Example: ``mySubnetgroup``
|
|
1695
1695
|
:param deletion_protection: Protects clusters from being accidentally deleted. If enabled, the cluster cannot be deleted unless it is modified and ``DeletionProtection`` is disabled.
|
|
1696
1696
|
:param enable_cloudwatch_logs_exports: The list of log types that need to be enabled for exporting to Amazon CloudWatch Logs. You can enable audit logs or profiler logs. For more information, see `Auditing Amazon DocumentDB Events <https://docs.aws.amazon.com/documentdb/latest/developerguide/event-auditing.html>`_ and `Profiling Amazon DocumentDB Operations <https://docs.aws.amazon.com/documentdb/latest/developerguide/profiling.html>`_ .
|
|
1697
|
-
:param engine_version: The version number of the database engine to use. The ``--engine-version`` will default to the latest major engine version. For production workloads, we recommend explicitly declaring this parameter with the intended major engine version.
|
|
1697
|
+
:param engine_version: The version number of the database engine to use. The ``--engine-version`` will default to the latest major engine version. For production workloads, we recommend explicitly declaring this parameter with the intended major engine version. If you intend to trigger an in-place upgrade, please refer to `Amazon DocumentDB in-place major version upgrade <https://docs.aws.amazon.com/documentdb/latest/developerguide/docdb-mvu.html>`_ . Note that for an in-place engine version upgrade, you need to remove other cluster properties changes (e.g. SecurityGroupId) from the CFN template.
|
|
1698
1698
|
:param kms_key_id: The AWS KMS key identifier for an encrypted cluster. The AWS KMS key identifier is the Amazon Resource Name (ARN) for the AWS KMS encryption key. If you are creating a cluster using the same AWS account that owns the AWS KMS encryption key that is used to encrypt the new cluster, you can use the AWS KMS key alias instead of the ARN for the AWS KMS encryption key. If an encryption key is not specified in ``KmsKeyId`` : - If the ``StorageEncrypted`` parameter is ``true`` , Amazon DocumentDB uses your default encryption key. AWS KMS creates the default encryption key for your AWS account . Your AWS account has a different default encryption key for each AWS Regions .
|
|
1699
1699
|
:param manage_master_user_password: Specifies whether to manage the master user password with Amazon Web Services Secrets Manager. Constraint: You can't manage the master user password with Amazon Web Services Secrets Manager if ``MasterUserPassword`` is specified.
|
|
1700
1700
|
:param master_username: The name of the master user for the cluster. Constraints: - Must be from 1 to 63 letters or numbers. - The first character must be a letter. - Cannot be a reserved word for the chosen database engine.
|
|
@@ -1957,7 +1957,7 @@ class CfnDBClusterProps:
|
|
|
1957
1957
|
|
|
1958
1958
|
The ``--engine-version`` will default to the latest major engine version. For production workloads, we recommend explicitly declaring this parameter with the intended major engine version.
|
|
1959
1959
|
|
|
1960
|
-
|
|
1960
|
+
If you intend to trigger an in-place upgrade, please refer to `Amazon DocumentDB in-place major version upgrade <https://docs.aws.amazon.com/documentdb/latest/developerguide/docdb-mvu.html>`_ . Note that for an in-place engine version upgrade, you need to remove other cluster properties changes (e.g. SecurityGroupId) from the CFN template.
|
|
1961
1961
|
|
|
1962
1962
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbcluster.html#cfn-docdb-dbcluster-engineversion
|
|
1963
1963
|
'''
|
|
@@ -4578,6 +4578,12 @@ class DatabaseSecret(
|
|
|
4578
4578
|
|
|
4579
4579
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
4580
4580
|
|
|
4581
|
+
@jsii.python.classproperty
|
|
4582
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
4583
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
4584
|
+
'''Uniquely identifies this class.'''
|
|
4585
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
4586
|
+
|
|
4581
4587
|
|
|
4582
4588
|
@jsii.data_type(
|
|
4583
4589
|
jsii_type="aws-cdk-lib.aws_docdb.DatabaseSecretProps",
|
|
@@ -5299,6 +5305,12 @@ class ClusterParameterGroup(
|
|
|
5299
5305
|
check_type(argname="argument parameter_group_name", value=parameter_group_name, expected_type=type_hints["parameter_group_name"])
|
|
5300
5306
|
return typing.cast(IClusterParameterGroup, jsii.sinvoke(cls, "fromParameterGroupName", [scope, id, parameter_group_name]))
|
|
5301
5307
|
|
|
5308
|
+
@jsii.python.classproperty
|
|
5309
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
5310
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
5311
|
+
'''Uniquely identifies this class.'''
|
|
5312
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
5313
|
+
|
|
5302
5314
|
@builtins.property
|
|
5303
5315
|
@jsii.member(jsii_name="parameterGroupName")
|
|
5304
5316
|
def parameter_group_name(self) -> builtins.str:
|
|
@@ -5543,6 +5555,12 @@ class DatabaseCluster(
|
|
|
5543
5555
|
'''The default port Document DB listens on.'''
|
|
5544
5556
|
return typing.cast(jsii.Number, jsii.sget(cls, "DEFAULT_PORT"))
|
|
5545
5557
|
|
|
5558
|
+
@jsii.python.classproperty
|
|
5559
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
5560
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
5561
|
+
'''Uniquely identifies this class.'''
|
|
5562
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
5563
|
+
|
|
5546
5564
|
@builtins.property
|
|
5547
5565
|
@jsii.member(jsii_name="clusterEndpoint")
|
|
5548
5566
|
def cluster_endpoint(self) -> Endpoint:
|
|
@@ -5720,6 +5738,12 @@ class DatabaseInstance(
|
|
|
5720
5738
|
|
|
5721
5739
|
return typing.cast(IDatabaseInstance, jsii.sinvoke(cls, "fromDatabaseInstanceAttributes", [scope, id, attrs]))
|
|
5722
5740
|
|
|
5741
|
+
@jsii.python.classproperty
|
|
5742
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
5743
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
5744
|
+
'''Uniquely identifies this class.'''
|
|
5745
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
5746
|
+
|
|
5723
5747
|
@builtins.property
|
|
5724
5748
|
@jsii.member(jsii_name="cluster")
|
|
5725
5749
|
def cluster(self) -> IDatabaseCluster:
|
aws_cdk/aws_dsql/__init__.py
CHANGED
|
@@ -85,7 +85,7 @@ class CfnCluster(
|
|
|
85
85
|
metaclass=jsii.JSIIMeta,
|
|
86
86
|
jsii_type="aws-cdk-lib.aws_dsql.CfnCluster",
|
|
87
87
|
):
|
|
88
|
-
'''
|
|
88
|
+
'''Creates a cluster in Amazon Aurora DSQL.
|
|
89
89
|
|
|
90
90
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dsql-cluster.html
|
|
91
91
|
:cloudformationResource: AWS::DSQL::Cluster
|
|
@@ -117,8 +117,8 @@ class CfnCluster(
|
|
|
117
117
|
'''
|
|
118
118
|
:param scope: Scope in which this resource is defined.
|
|
119
119
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
120
|
-
:param deletion_protection_enabled: Whether deletion protection is enabled
|
|
121
|
-
:param tags:
|
|
120
|
+
:param deletion_protection_enabled: Whether deletion protection is enabled on this cluster.
|
|
121
|
+
:param tags: A map of key and value pairs this cluster is tagged with.
|
|
122
122
|
'''
|
|
123
123
|
if __debug__:
|
|
124
124
|
type_hints = typing.get_type_hints(_typecheckingstub__b82b76673b1942e60f823768c857e13a61b0491cdd1ca21c1f2a574e980d253e)
|
|
@@ -163,7 +163,7 @@ class CfnCluster(
|
|
|
163
163
|
@builtins.property
|
|
164
164
|
@jsii.member(jsii_name="attrCreationTime")
|
|
165
165
|
def attr_creation_time(self) -> builtins.str:
|
|
166
|
-
'''The
|
|
166
|
+
'''The timestamp when the cluster was created, in ISO 8601 format.
|
|
167
167
|
|
|
168
168
|
:cloudformationAttribute: CreationTime
|
|
169
169
|
'''
|
|
@@ -172,7 +172,7 @@ class CfnCluster(
|
|
|
172
172
|
@builtins.property
|
|
173
173
|
@jsii.member(jsii_name="attrIdentifier")
|
|
174
174
|
def attr_identifier(self) -> builtins.str:
|
|
175
|
-
'''The
|
|
175
|
+
'''The unique identifier assigned to the cluster upon creation.
|
|
176
176
|
|
|
177
177
|
:cloudformationAttribute: Identifier
|
|
178
178
|
'''
|
|
@@ -181,7 +181,9 @@ class CfnCluster(
|
|
|
181
181
|
@builtins.property
|
|
182
182
|
@jsii.member(jsii_name="attrResourceArn")
|
|
183
183
|
def attr_resource_arn(self) -> builtins.str:
|
|
184
|
-
'''The Amazon Resource Name (ARN)
|
|
184
|
+
'''The Amazon Resource Name (ARN) of the cluster.
|
|
185
|
+
|
|
186
|
+
Used for IAM permissions and resource identification.
|
|
185
187
|
|
|
186
188
|
:cloudformationAttribute: ResourceArn
|
|
187
189
|
'''
|
|
@@ -190,12 +192,25 @@ class CfnCluster(
|
|
|
190
192
|
@builtins.property
|
|
191
193
|
@jsii.member(jsii_name="attrStatus")
|
|
192
194
|
def attr_status(self) -> builtins.str:
|
|
193
|
-
'''The status of the cluster.
|
|
195
|
+
'''The current status of the cluster.
|
|
196
|
+
|
|
197
|
+
Possible values include: CREATING, ACTIVE, DELETING, FAILED.
|
|
194
198
|
|
|
195
199
|
:cloudformationAttribute: Status
|
|
196
200
|
'''
|
|
197
201
|
return typing.cast(builtins.str, jsii.get(self, "attrStatus"))
|
|
198
202
|
|
|
203
|
+
@builtins.property
|
|
204
|
+
@jsii.member(jsii_name="attrVpcEndpointServiceName")
|
|
205
|
+
def attr_vpc_endpoint_service_name(self) -> builtins.str:
|
|
206
|
+
'''The VPC Endpoint Service name for the cluster.
|
|
207
|
+
|
|
208
|
+
This can be used to create a VPC endpoint to connect to the cluster from within a VPC.
|
|
209
|
+
|
|
210
|
+
:cloudformationAttribute: VpcEndpointServiceName
|
|
211
|
+
'''
|
|
212
|
+
return typing.cast(builtins.str, jsii.get(self, "attrVpcEndpointServiceName"))
|
|
213
|
+
|
|
199
214
|
@builtins.property
|
|
200
215
|
@jsii.member(jsii_name="cdkTagManager")
|
|
201
216
|
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
@@ -212,7 +227,7 @@ class CfnCluster(
|
|
|
212
227
|
def deletion_protection_enabled(
|
|
213
228
|
self,
|
|
214
229
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
215
|
-
'''Whether deletion protection is enabled
|
|
230
|
+
'''Whether deletion protection is enabled on this cluster.'''
|
|
216
231
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "deletionProtectionEnabled"))
|
|
217
232
|
|
|
218
233
|
@deletion_protection_enabled.setter
|
|
@@ -228,6 +243,7 @@ class CfnCluster(
|
|
|
228
243
|
@builtins.property
|
|
229
244
|
@jsii.member(jsii_name="tags")
|
|
230
245
|
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
246
|
+
'''A map of key and value pairs this cluster is tagged with.'''
|
|
231
247
|
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
232
248
|
|
|
233
249
|
@tags.setter
|
|
@@ -255,8 +271,8 @@ class CfnClusterProps:
|
|
|
255
271
|
) -> None:
|
|
256
272
|
'''Properties for defining a ``CfnCluster``.
|
|
257
273
|
|
|
258
|
-
:param deletion_protection_enabled: Whether deletion protection is enabled
|
|
259
|
-
:param tags:
|
|
274
|
+
:param deletion_protection_enabled: Whether deletion protection is enabled on this cluster.
|
|
275
|
+
:param tags: A map of key and value pairs this cluster is tagged with.
|
|
260
276
|
|
|
261
277
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dsql-cluster.html
|
|
262
278
|
:exampleMetadata: fixture=_generated
|
|
@@ -289,7 +305,7 @@ class CfnClusterProps:
|
|
|
289
305
|
def deletion_protection_enabled(
|
|
290
306
|
self,
|
|
291
307
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
292
|
-
'''Whether deletion protection is enabled
|
|
308
|
+
'''Whether deletion protection is enabled on this cluster.
|
|
293
309
|
|
|
294
310
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dsql-cluster.html#cfn-dsql-cluster-deletionprotectionenabled
|
|
295
311
|
'''
|
|
@@ -298,7 +314,8 @@ class CfnClusterProps:
|
|
|
298
314
|
|
|
299
315
|
@builtins.property
|
|
300
316
|
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
301
|
-
'''
|
|
317
|
+
'''A map of key and value pairs this cluster is tagged with.
|
|
318
|
+
|
|
302
319
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dsql-cluster.html#cfn-dsql-cluster-tags
|
|
303
320
|
'''
|
|
304
321
|
result = self._values.get("tags")
|
aws_cdk/aws_dynamodb/__init__.py
CHANGED
|
@@ -114,8 +114,8 @@ import aws_cdk as cdk
|
|
|
114
114
|
|
|
115
115
|
class FooStack(cdk.Stack):
|
|
116
116
|
|
|
117
|
-
def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, notificationArns=None, synthesizer=None, terminationProtection=None, analyticsReporting=None, crossRegionReferences=None, permissionsBoundary=None, suppressTemplateIndentation=None):
|
|
118
|
-
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, notificationArns=notificationArns, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting, crossRegionReferences=crossRegionReferences, permissionsBoundary=permissionsBoundary, suppressTemplateIndentation=suppressTemplateIndentation)
|
|
117
|
+
def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, notificationArns=None, synthesizer=None, terminationProtection=None, analyticsReporting=None, crossRegionReferences=None, permissionsBoundary=None, suppressTemplateIndentation=None, propertyInjectors=None):
|
|
118
|
+
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, notificationArns=notificationArns, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting, crossRegionReferences=crossRegionReferences, permissionsBoundary=permissionsBoundary, suppressTemplateIndentation=suppressTemplateIndentation, propertyInjectors=propertyInjectors)
|
|
119
119
|
|
|
120
120
|
self.global_table = dynamodb.TableV2(self, "GlobalTable",
|
|
121
121
|
partition_key=dynamodb.Attribute(name="pk", type=dynamodb.AttributeType.STRING),
|
|
@@ -124,8 +124,8 @@ class FooStack(cdk.Stack):
|
|
|
124
124
|
)
|
|
125
125
|
|
|
126
126
|
class BarStack(cdk.Stack):
|
|
127
|
-
def __init__(self, scope, id, *, replicaTable, description=None, env=None, stackName=None, tags=None, notificationArns=None, synthesizer=None, terminationProtection=None, analyticsReporting=None, crossRegionReferences=None, permissionsBoundary=None, suppressTemplateIndentation=None):
|
|
128
|
-
super().__init__(scope, id, replicaTable=replicaTable, description=description, env=env, stackName=stackName, tags=tags, notificationArns=notificationArns, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting, crossRegionReferences=crossRegionReferences, permissionsBoundary=permissionsBoundary, suppressTemplateIndentation=suppressTemplateIndentation)
|
|
127
|
+
def __init__(self, scope, id, *, replicaTable, description=None, env=None, stackName=None, tags=None, notificationArns=None, synthesizer=None, terminationProtection=None, analyticsReporting=None, crossRegionReferences=None, permissionsBoundary=None, suppressTemplateIndentation=None, propertyInjectors=None):
|
|
128
|
+
super().__init__(scope, id, replicaTable=replicaTable, description=description, env=env, stackName=stackName, tags=tags, notificationArns=notificationArns, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting, crossRegionReferences=crossRegionReferences, permissionsBoundary=permissionsBoundary, suppressTemplateIndentation=suppressTemplateIndentation, propertyInjectors=propertyInjectors)
|
|
129
129
|
|
|
130
130
|
# user is given grantWriteData permissions to replica in us-east-1
|
|
131
131
|
replica_table.grant_write_data(user)
|
|
@@ -810,8 +810,8 @@ import aws_cdk.aws_cloudwatch as cloudwatch
|
|
|
810
810
|
|
|
811
811
|
class FooStack(cdk.Stack):
|
|
812
812
|
|
|
813
|
-
def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, notificationArns=None, synthesizer=None, terminationProtection=None, analyticsReporting=None, crossRegionReferences=None, permissionsBoundary=None, suppressTemplateIndentation=None):
|
|
814
|
-
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, notificationArns=notificationArns, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting, crossRegionReferences=crossRegionReferences, permissionsBoundary=permissionsBoundary, suppressTemplateIndentation=suppressTemplateIndentation)
|
|
813
|
+
def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, notificationArns=None, synthesizer=None, terminationProtection=None, analyticsReporting=None, crossRegionReferences=None, permissionsBoundary=None, suppressTemplateIndentation=None, propertyInjectors=None):
|
|
814
|
+
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, notificationArns=notificationArns, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting, crossRegionReferences=crossRegionReferences, permissionsBoundary=permissionsBoundary, suppressTemplateIndentation=suppressTemplateIndentation, propertyInjectors=propertyInjectors)
|
|
815
815
|
|
|
816
816
|
self.global_table = dynamodb.TableV2(self, "GlobalTable",
|
|
817
817
|
partition_key=dynamodb.Attribute(name="pk", type=dynamodb.AttributeType.STRING),
|
|
@@ -820,8 +820,8 @@ class FooStack(cdk.Stack):
|
|
|
820
820
|
)
|
|
821
821
|
|
|
822
822
|
class BarStack(cdk.Stack):
|
|
823
|
-
def __init__(self, scope, id, *, replicaTable, description=None, env=None, stackName=None, tags=None, notificationArns=None, synthesizer=None, terminationProtection=None, analyticsReporting=None, crossRegionReferences=None, permissionsBoundary=None, suppressTemplateIndentation=None):
|
|
824
|
-
super().__init__(scope, id, replicaTable=replicaTable, description=description, env=env, stackName=stackName, tags=tags, notificationArns=notificationArns, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting, crossRegionReferences=crossRegionReferences, permissionsBoundary=permissionsBoundary, suppressTemplateIndentation=suppressTemplateIndentation)
|
|
823
|
+
def __init__(self, scope, id, *, replicaTable, description=None, env=None, stackName=None, tags=None, notificationArns=None, synthesizer=None, terminationProtection=None, analyticsReporting=None, crossRegionReferences=None, permissionsBoundary=None, suppressTemplateIndentation=None, propertyInjectors=None):
|
|
824
|
+
super().__init__(scope, id, replicaTable=replicaTable, description=description, env=env, stackName=stackName, tags=tags, notificationArns=notificationArns, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting, crossRegionReferences=crossRegionReferences, permissionsBoundary=permissionsBoundary, suppressTemplateIndentation=suppressTemplateIndentation, propertyInjectors=propertyInjectors)
|
|
825
825
|
|
|
826
826
|
# metric is only for the table in us-east-1
|
|
827
827
|
metric = replica_table.metric_consumed_read_capacity_units()
|
|
@@ -5683,8 +5683,8 @@ class CfnTable(
|
|
|
5683
5683
|
:param key_schema: The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types: - ``HASH`` - partition key - ``RANGE`` - sort key > The partition key of an item is also known as its *hash attribute* . The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. .. epigraph:: The sort key of an item is also known as its *range attribute* . The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
|
|
5684
5684
|
:param projection: Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
|
|
5685
5685
|
:param contributor_insights_specification: The settings used to enable or disable CloudWatch Contributor Insights for the specified global secondary index.
|
|
5686
|
-
:param on_demand_throughput: The maximum number of read and write units for the specified global secondary index. If you use this parameter, you must specify ``MaxReadRequestUnits`` , ``MaxWriteRequestUnits`` , or both.
|
|
5687
|
-
:param provisioned_throughput: Represents the provisioned throughput settings for the specified global secondary index. For current minimum and maximum provisioned throughput values, see `Service, Account, and Table Quotas <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html>`_ in the *Amazon DynamoDB Developer Guide* .
|
|
5686
|
+
:param on_demand_throughput: The maximum number of read and write units for the specified global secondary index. If you use this parameter, you must specify ``MaxReadRequestUnits`` , ``MaxWriteRequestUnits`` , or both. You must use either ``OnDemandThroughput`` or ``ProvisionedThroughput`` based on your table's capacity mode.
|
|
5687
|
+
:param provisioned_throughput: Represents the provisioned throughput settings for the specified global secondary index. You must use either ``OnDemandThroughput`` or ``ProvisionedThroughput`` based on your table's capacity mode. For current minimum and maximum provisioned throughput values, see `Service, Account, and Table Quotas <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html>`_ in the *Amazon DynamoDB Developer Guide* .
|
|
5688
5688
|
:param warm_throughput: Represents the warm throughput value (in read units per second and write units per second) for the specified secondary index. If you use this parameter, you must specify ``ReadUnitsPerSecond`` , ``WriteUnitsPerSecond`` , or both.
|
|
5689
5689
|
|
|
5690
5690
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-globalsecondaryindex.html
|
|
@@ -5808,7 +5808,7 @@ class CfnTable(
|
|
|
5808
5808
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnTable.OnDemandThroughputProperty"]]:
|
|
5809
5809
|
'''The maximum number of read and write units for the specified global secondary index.
|
|
5810
5810
|
|
|
5811
|
-
If you use this parameter, you must specify ``MaxReadRequestUnits`` , ``MaxWriteRequestUnits`` , or both.
|
|
5811
|
+
If you use this parameter, you must specify ``MaxReadRequestUnits`` , ``MaxWriteRequestUnits`` , or both. You must use either ``OnDemandThroughput`` or ``ProvisionedThroughput`` based on your table's capacity mode.
|
|
5812
5812
|
|
|
5813
5813
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-globalsecondaryindex.html#cfn-dynamodb-table-globalsecondaryindex-ondemandthroughput
|
|
5814
5814
|
'''
|
|
@@ -5821,6 +5821,8 @@ class CfnTable(
|
|
|
5821
5821
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnTable.ProvisionedThroughputProperty"]]:
|
|
5822
5822
|
'''Represents the provisioned throughput settings for the specified global secondary index.
|
|
5823
5823
|
|
|
5824
|
+
You must use either ``OnDemandThroughput`` or ``ProvisionedThroughput`` based on your table's capacity mode.
|
|
5825
|
+
|
|
5824
5826
|
For current minimum and maximum provisioned throughput values, see `Service, Account, and Table Quotas <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html>`_ in the *Amazon DynamoDB Developer Guide* .
|
|
5825
5827
|
|
|
5826
5828
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-globalsecondaryindex.html#cfn-dynamodb-table-globalsecondaryindex-provisionedthroughput
|
|
@@ -14227,6 +14229,12 @@ class TableV2(
|
|
|
14227
14229
|
check_type(argname="argument region", value=region, expected_type=type_hints["region"])
|
|
14228
14230
|
return typing.cast(ITableV2, jsii.invoke(self, "replica", [region]))
|
|
14229
14231
|
|
|
14232
|
+
@jsii.python.classproperty
|
|
14233
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
14234
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
14235
|
+
'''Uniquely identifies this class.'''
|
|
14236
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
14237
|
+
|
|
14230
14238
|
@builtins.property
|
|
14231
14239
|
@jsii.member(jsii_name="hasIndex")
|
|
14232
14240
|
def _has_index(self) -> builtins.bool:
|
|
@@ -16007,6 +16015,12 @@ class Table(
|
|
|
16007
16015
|
check_type(argname="argument index_name", value=index_name, expected_type=type_hints["index_name"])
|
|
16008
16016
|
return typing.cast(SchemaOptions, jsii.invoke(self, "schema", [index_name]))
|
|
16009
16017
|
|
|
16018
|
+
@jsii.python.classproperty
|
|
16019
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
16020
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
16021
|
+
'''Uniquely identifies this class.'''
|
|
16022
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
16023
|
+
|
|
16010
16024
|
@builtins.property
|
|
16011
16025
|
@jsii.member(jsii_name="hasIndex")
|
|
16012
16026
|
def _has_index(self) -> builtins.bool:
|