aws-cdk-lib 2.162.0__py3-none-any.whl → 2.163.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 +5 -7
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.162.0.jsii.tgz → aws-cdk-lib@2.163.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2/__init__.py +7 -7
- aws_cdk/aws_appflow/__init__.py +30 -16
- aws_cdk/aws_appsync/__init__.py +11 -21
- aws_cdk/aws_autoscaling/__init__.py +123 -0
- aws_cdk/aws_b2bi/__init__.py +83 -57
- aws_cdk/aws_cloudformation/__init__.py +5 -7
- aws_cdk/aws_codebuild/__init__.py +19 -40
- aws_cdk/aws_codepipeline/__init__.py +88 -7
- aws_cdk/aws_cognito/__init__.py +282 -168
- aws_cdk/aws_dms/__init__.py +1076 -117
- aws_cdk/aws_docdb/__init__.py +19 -13
- aws_cdk/aws_dynamodb/__init__.py +43 -22
- aws_cdk/aws_ec2/__init__.py +1213 -38
- aws_cdk/aws_ecs/__init__.py +187 -18
- aws_cdk/aws_ecs_patterns/__init__.py +189 -27
- aws_cdk/aws_efs/__init__.py +56 -37
- aws_cdk/aws_eks/__init__.py +6 -2
- aws_cdk/aws_elasticache/__init__.py +118 -118
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +21 -1
- aws_cdk/aws_emr/__init__.py +124 -57
- aws_cdk/aws_events/__init__.py +40 -0
- aws_cdk/aws_fms/__init__.py +757 -8
- aws_cdk/aws_fsx/__init__.py +245 -10
- aws_cdk/aws_gamelift/__init__.py +121 -0
- aws_cdk/aws_glue/__init__.py +344 -61
- aws_cdk/aws_iam/__init__.py +44 -0
- aws_cdk/aws_identitystore/__init__.py +4 -2
- aws_cdk/aws_iot/__init__.py +40 -12
- aws_cdk/aws_kinesis/__init__.py +239 -0
- aws_cdk/aws_kms/__init__.py +92 -3
- aws_cdk/aws_lambda/__init__.py +2 -2
- aws_cdk/aws_mediapackagev2/__init__.py +26 -10
- aws_cdk/aws_memorydb/__init__.py +7 -7
- aws_cdk/aws_networkfirewall/__init__.py +89 -0
- aws_cdk/aws_qbusiness/__init__.py +51 -7
- aws_cdk/aws_quicksight/__init__.py +221 -87
- aws_cdk/aws_rds/__init__.py +376 -75
- aws_cdk/aws_redshift/__init__.py +493 -13
- aws_cdk/aws_route53profiles/__init__.py +4 -2
- aws_cdk/aws_route53resolver/__init__.py +26 -60
- aws_cdk/aws_s3/__init__.py +104 -4
- aws_cdk/aws_s3express/__init__.py +73 -13
- aws_cdk/aws_s3outposts/__init__.py +21 -12
- aws_cdk/aws_sagemaker/__init__.py +4 -44
- aws_cdk/aws_ssmquicksetup/__init__.py +2 -2
- aws_cdk/aws_stepfunctions/__init__.py +529 -156
- aws_cdk/aws_transfer/__init__.py +15 -4
- aws_cdk/aws_waf/__init__.py +11 -11
- aws_cdk/aws_wafregional/__init__.py +12 -12
- aws_cdk/aws_wisdom/__init__.py +710 -5
- {aws_cdk_lib-2.162.0.dist-info → aws_cdk_lib-2.163.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.162.0.dist-info → aws_cdk_lib-2.163.0.dist-info}/RECORD +59 -59
- {aws_cdk_lib-2.162.0.dist-info → aws_cdk_lib-2.163.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.162.0.dist-info → aws_cdk_lib-2.163.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.162.0.dist-info → aws_cdk_lib-2.163.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.162.0.dist-info → aws_cdk_lib-2.163.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_docdb/__init__.py
CHANGED
|
@@ -622,13 +622,13 @@ class CfnDBCluster(
|
|
|
622
622
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
623
623
|
:param availability_zones: A list of Amazon EC2 Availability Zones that instances in the cluster can be created in.
|
|
624
624
|
:param backup_retention_period: The number of days for which automated backups are retained. You must specify a minimum value of 1. Default: 1 Constraints: - Must be a value from 1 to 35.
|
|
625
|
-
:param copy_tags_to_snapshot:
|
|
625
|
+
:param copy_tags_to_snapshot: Set to ``true`` to copy all tags from the source cluster snapshot to the target cluster snapshot, and otherwise ``false`` . The default is ``false`` .
|
|
626
626
|
:param db_cluster_identifier: The cluster identifier. This parameter is stored as a lowercase string. Constraints: - Must contain from 1 to 63 letters, numbers, or hyphens. - The first character must be a letter. - Cannot end with a hyphen or contain two consecutive hyphens. Example: ``my-cluster``
|
|
627
627
|
:param db_cluster_parameter_group_name: The name of the cluster parameter group to associate with this cluster.
|
|
628
628
|
: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``
|
|
629
629
|
:param deletion_protection: Protects clusters from being accidentally deleted. If enabled, the cluster cannot be deleted unless it is modified and ``DeletionProtection`` is disabled.
|
|
630
630
|
: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>`_ .
|
|
631
|
-
: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.
|
|
631
|
+
: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. Changing the ``EngineVersion`` will start an in-place engine version upgrade. Note that in-place engine version upgrade will cause downtime in the cluster. See `Amazon DocumentDB in-place major version upgrade <https://docs.aws.amazon.com/documentdb/latest/developerguide/docdb-mvu.html>`_ before starting an in-place engine version upgrade.
|
|
632
632
|
: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 .
|
|
633
633
|
: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.
|
|
634
634
|
:param master_user_password: The password for the master database user. This password can contain any printable ASCII character except forward slash (/), double quote ("), or the "at" symbol (@). Constraints: Must contain from 8 to 100 characters.
|
|
@@ -639,7 +639,7 @@ class CfnDBCluster(
|
|
|
639
639
|
:param restore_type: The type of restore to be performed. You can specify one of the following values:. - ``full-copy`` - The new DB cluster is restored as a full copy of the source DB cluster. - ``copy-on-write`` - The new DB cluster is restored as a clone of the source DB cluster. Constraints: You can't specify ``copy-on-write`` if the engine version of the source DB cluster is earlier than 1.11. If you don't specify a ``RestoreType`` value, then the new DB cluster is restored as a full copy of the source DB cluster.
|
|
640
640
|
:param snapshot_identifier: The identifier for the snapshot or cluster snapshot to restore from. You can use either the name or the Amazon Resource Name (ARN) to specify a cluster snapshot. However, you can use only the ARN to specify a snapshot. Constraints: - Must match the identifier of an existing snapshot.
|
|
641
641
|
:param source_db_cluster_identifier: The identifier of the source cluster from which to restore. Constraints: - Must match the identifier of an existing ``DBCluster`` .
|
|
642
|
-
:param storage_encrypted: Specifies whether the cluster is encrypted.
|
|
642
|
+
:param storage_encrypted: Specifies whether the cluster is encrypted. If you specify ``SourceDBClusterIdentifier`` or ``SnapshotIdentifier`` and don’t specify ``StorageEncrypted`` , the encryption property is inherited from the source cluster or snapshot (unless ``KMSKeyId`` is specified, in which case the restored cluster will be encrypted with that KMS key). If the source is encrypted and ``StorageEncrypted`` is specified to be true, the restored cluster will be encrypted (if you want to use a different KMS key, specify the ``KMSKeyId`` property as well). If the source is unencrypted and ``StorageEncrypted`` is specified to be true, then the ``KMSKeyId`` property must be specified. If the source is encrypted, don’t specify ``StorageEncrypted`` to be false as opting out of encryption is not allowed.
|
|
643
643
|
:param storage_type: The storage type to associate with the DB cluster. For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the *Amazon DocumentDB Developer Guide* . Valid values for storage type - ``standard | iopt1`` Default value is ``standard`` .. epigraph:: When you create a DocumentDB DB cluster with the storage type set to ``iopt1`` , the storage type is returned in the response. The storage type isn't returned when you set it to ``standard`` .
|
|
644
644
|
:param tags: The tags to be assigned to the cluster.
|
|
645
645
|
:param use_latest_restorable_time: A value that is set to ``true`` to restore the cluster to the latest restorable backup time, and ``false`` otherwise. Default: ``false`` Constraints: Cannot be specified if the ``RestoreToTime`` parameter is provided.
|
|
@@ -806,6 +806,7 @@ class CfnDBCluster(
|
|
|
806
806
|
def copy_tags_to_snapshot(
|
|
807
807
|
self,
|
|
808
808
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
809
|
+
'''Set to ``true`` to copy all tags from the source cluster snapshot to the target cluster snapshot, and otherwise ``false`` .'''
|
|
809
810
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "copyTagsToSnapshot"))
|
|
810
811
|
|
|
811
812
|
@copy_tags_to_snapshot.setter
|
|
@@ -1523,13 +1524,13 @@ class CfnDBClusterProps:
|
|
|
1523
1524
|
|
|
1524
1525
|
:param availability_zones: A list of Amazon EC2 Availability Zones that instances in the cluster can be created in.
|
|
1525
1526
|
:param backup_retention_period: The number of days for which automated backups are retained. You must specify a minimum value of 1. Default: 1 Constraints: - Must be a value from 1 to 35.
|
|
1526
|
-
:param copy_tags_to_snapshot:
|
|
1527
|
+
:param copy_tags_to_snapshot: Set to ``true`` to copy all tags from the source cluster snapshot to the target cluster snapshot, and otherwise ``false`` . The default is ``false`` .
|
|
1527
1528
|
:param db_cluster_identifier: The cluster identifier. This parameter is stored as a lowercase string. Constraints: - Must contain from 1 to 63 letters, numbers, or hyphens. - The first character must be a letter. - Cannot end with a hyphen or contain two consecutive hyphens. Example: ``my-cluster``
|
|
1528
1529
|
:param db_cluster_parameter_group_name: The name of the cluster parameter group to associate with this cluster.
|
|
1529
1530
|
: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``
|
|
1530
1531
|
:param deletion_protection: Protects clusters from being accidentally deleted. If enabled, the cluster cannot be deleted unless it is modified and ``DeletionProtection`` is disabled.
|
|
1531
1532
|
: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>`_ .
|
|
1532
|
-
: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.
|
|
1533
|
+
: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. Changing the ``EngineVersion`` will start an in-place engine version upgrade. Note that in-place engine version upgrade will cause downtime in the cluster. See `Amazon DocumentDB in-place major version upgrade <https://docs.aws.amazon.com/documentdb/latest/developerguide/docdb-mvu.html>`_ before starting an in-place engine version upgrade.
|
|
1533
1534
|
: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 .
|
|
1534
1535
|
: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.
|
|
1535
1536
|
:param master_user_password: The password for the master database user. This password can contain any printable ASCII character except forward slash (/), double quote ("), or the "at" symbol (@). Constraints: Must contain from 8 to 100 characters.
|
|
@@ -1540,7 +1541,7 @@ class CfnDBClusterProps:
|
|
|
1540
1541
|
:param restore_type: The type of restore to be performed. You can specify one of the following values:. - ``full-copy`` - The new DB cluster is restored as a full copy of the source DB cluster. - ``copy-on-write`` - The new DB cluster is restored as a clone of the source DB cluster. Constraints: You can't specify ``copy-on-write`` if the engine version of the source DB cluster is earlier than 1.11. If you don't specify a ``RestoreType`` value, then the new DB cluster is restored as a full copy of the source DB cluster.
|
|
1541
1542
|
:param snapshot_identifier: The identifier for the snapshot or cluster snapshot to restore from. You can use either the name or the Amazon Resource Name (ARN) to specify a cluster snapshot. However, you can use only the ARN to specify a snapshot. Constraints: - Must match the identifier of an existing snapshot.
|
|
1542
1543
|
:param source_db_cluster_identifier: The identifier of the source cluster from which to restore. Constraints: - Must match the identifier of an existing ``DBCluster`` .
|
|
1543
|
-
:param storage_encrypted: Specifies whether the cluster is encrypted.
|
|
1544
|
+
:param storage_encrypted: Specifies whether the cluster is encrypted. If you specify ``SourceDBClusterIdentifier`` or ``SnapshotIdentifier`` and don’t specify ``StorageEncrypted`` , the encryption property is inherited from the source cluster or snapshot (unless ``KMSKeyId`` is specified, in which case the restored cluster will be encrypted with that KMS key). If the source is encrypted and ``StorageEncrypted`` is specified to be true, the restored cluster will be encrypted (if you want to use a different KMS key, specify the ``KMSKeyId`` property as well). If the source is unencrypted and ``StorageEncrypted`` is specified to be true, then the ``KMSKeyId`` property must be specified. If the source is encrypted, don’t specify ``StorageEncrypted`` to be false as opting out of encryption is not allowed.
|
|
1544
1545
|
:param storage_type: The storage type to associate with the DB cluster. For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the *Amazon DocumentDB Developer Guide* . Valid values for storage type - ``standard | iopt1`` Default value is ``standard`` .. epigraph:: When you create a DocumentDB DB cluster with the storage type set to ``iopt1`` , the storage type is returned in the response. The storage type isn't returned when you set it to ``standard`` .
|
|
1545
1546
|
:param tags: The tags to be assigned to the cluster.
|
|
1546
1547
|
:param use_latest_restorable_time: A value that is set to ``true`` to restore the cluster to the latest restorable backup time, and ``false`` otherwise. Default: ``false`` Constraints: Cannot be specified if the ``RestoreToTime`` parameter is provided.
|
|
@@ -1689,7 +1690,10 @@ class CfnDBClusterProps:
|
|
|
1689
1690
|
def copy_tags_to_snapshot(
|
|
1690
1691
|
self,
|
|
1691
1692
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
1692
|
-
'''
|
|
1693
|
+
'''Set to ``true`` to copy all tags from the source cluster snapshot to the target cluster snapshot, and otherwise ``false`` .
|
|
1694
|
+
|
|
1695
|
+
The default is ``false`` .
|
|
1696
|
+
|
|
1693
1697
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbcluster.html#cfn-docdb-dbcluster-copytagstosnapshot
|
|
1694
1698
|
'''
|
|
1695
1699
|
result = self._values.get("copy_tags_to_snapshot")
|
|
@@ -1766,6 +1770,8 @@ class CfnDBClusterProps:
|
|
|
1766
1770
|
|
|
1767
1771
|
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.
|
|
1768
1772
|
|
|
1773
|
+
Changing the ``EngineVersion`` will start an in-place engine version upgrade. Note that in-place engine version upgrade will cause downtime in the cluster. See `Amazon DocumentDB in-place major version upgrade <https://docs.aws.amazon.com/documentdb/latest/developerguide/docdb-mvu.html>`_ before starting an in-place engine version upgrade.
|
|
1774
|
+
|
|
1769
1775
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbcluster.html#cfn-docdb-dbcluster-engineversion
|
|
1770
1776
|
'''
|
|
1771
1777
|
result = self._values.get("engine_version")
|
|
@@ -1930,6 +1936,8 @@ class CfnDBClusterProps:
|
|
|
1930
1936
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
1931
1937
|
'''Specifies whether the cluster is encrypted.
|
|
1932
1938
|
|
|
1939
|
+
If you specify ``SourceDBClusterIdentifier`` or ``SnapshotIdentifier`` and don’t specify ``StorageEncrypted`` , the encryption property is inherited from the source cluster or snapshot (unless ``KMSKeyId`` is specified, in which case the restored cluster will be encrypted with that KMS key). If the source is encrypted and ``StorageEncrypted`` is specified to be true, the restored cluster will be encrypted (if you want to use a different KMS key, specify the ``KMSKeyId`` property as well). If the source is unencrypted and ``StorageEncrypted`` is specified to be true, then the ``KMSKeyId`` property must be specified. If the source is encrypted, don’t specify ``StorageEncrypted`` to be false as opting out of encryption is not allowed.
|
|
1940
|
+
|
|
1933
1941
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbcluster.html#cfn-docdb-dbcluster-storageencrypted
|
|
1934
1942
|
'''
|
|
1935
1943
|
result = self._values.get("storage_encrypted")
|
|
@@ -2060,7 +2068,7 @@ class CfnDBInstance(
|
|
|
2060
2068
|
:param db_instance_class: The compute and memory capacity of the instance; for example, ``db.m4.large`` . If you change the class of an instance there can be some interruption in the cluster's service.
|
|
2061
2069
|
:param auto_minor_version_upgrade: This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set. Default: ``false``
|
|
2062
2070
|
:param availability_zone: The Amazon EC2 Availability Zone that the instance is created in. Default: A random, system-chosen Availability Zone in the endpoint's AWS Region . Example: ``us-east-1d``
|
|
2063
|
-
:param ca_certificate_identifier: The
|
|
2071
|
+
:param ca_certificate_identifier: The identifier of the CA certificate for this DB instance.
|
|
2064
2072
|
:param certificate_rotation_restart: Specifies whether the DB instance is restarted when you rotate your SSL/TLS certificate. By default, the DB instance is restarted when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. .. epigraph:: Set this parameter only if you are *not* using SSL/TLS to connect to the DB instance. If you are using SSL/TLS to connect to the DB instance, see `Updating Your Amazon DocumentDB TLS Certificates <https://docs.aws.amazon.com/documentdb/latest/developerguide/ca_cert_rotation.html>`_ and `Encrypting Data in Transit <https://docs.aws.amazon.com/documentdb/latest/developerguide/security.encryption.ssl.html>`_ in the *Amazon DocumentDB Developer Guide* .
|
|
2065
2073
|
:param db_instance_identifier: The instance identifier. This parameter is stored as a lowercase string. Constraints: - Must contain from 1 to 63 letters, numbers, or hyphens. - The first character must be a letter. - Cannot end with a hyphen or contain two consecutive hyphens. Example: ``mydbinstance``
|
|
2066
2074
|
:param enable_performance_insights: A value that indicates whether to enable Performance Insights for the DB Instance. For more information, see `Using Amazon Performance Insights <https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html>`_ .
|
|
@@ -2215,7 +2223,7 @@ class CfnDBInstance(
|
|
|
2215
2223
|
@builtins.property
|
|
2216
2224
|
@jsii.member(jsii_name="caCertificateIdentifier")
|
|
2217
2225
|
def ca_certificate_identifier(self) -> typing.Optional[builtins.str]:
|
|
2218
|
-
'''The
|
|
2226
|
+
'''The identifier of the CA certificate for this DB instance.'''
|
|
2219
2227
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "caCertificateIdentifier"))
|
|
2220
2228
|
|
|
2221
2229
|
@ca_certificate_identifier.setter
|
|
@@ -2344,7 +2352,7 @@ class CfnDBInstanceProps:
|
|
|
2344
2352
|
:param db_instance_class: The compute and memory capacity of the instance; for example, ``db.m4.large`` . If you change the class of an instance there can be some interruption in the cluster's service.
|
|
2345
2353
|
:param auto_minor_version_upgrade: This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set. Default: ``false``
|
|
2346
2354
|
:param availability_zone: The Amazon EC2 Availability Zone that the instance is created in. Default: A random, system-chosen Availability Zone in the endpoint's AWS Region . Example: ``us-east-1d``
|
|
2347
|
-
:param ca_certificate_identifier: The
|
|
2355
|
+
:param ca_certificate_identifier: The identifier of the CA certificate for this DB instance.
|
|
2348
2356
|
:param certificate_rotation_restart: Specifies whether the DB instance is restarted when you rotate your SSL/TLS certificate. By default, the DB instance is restarted when you rotate your SSL/TLS certificate. The certificate is not updated until the DB instance is restarted. .. epigraph:: Set this parameter only if you are *not* using SSL/TLS to connect to the DB instance. If you are using SSL/TLS to connect to the DB instance, see `Updating Your Amazon DocumentDB TLS Certificates <https://docs.aws.amazon.com/documentdb/latest/developerguide/ca_cert_rotation.html>`_ and `Encrypting Data in Transit <https://docs.aws.amazon.com/documentdb/latest/developerguide/security.encryption.ssl.html>`_ in the *Amazon DocumentDB Developer Guide* .
|
|
2349
2357
|
:param db_instance_identifier: The instance identifier. This parameter is stored as a lowercase string. Constraints: - Must contain from 1 to 63 letters, numbers, or hyphens. - The first character must be a letter. - Cannot end with a hyphen or contain two consecutive hyphens. Example: ``mydbinstance``
|
|
2350
2358
|
:param enable_performance_insights: A value that indicates whether to enable Performance Insights for the DB Instance. For more information, see `Using Amazon Performance Insights <https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html>`_ .
|
|
@@ -2463,9 +2471,7 @@ class CfnDBInstanceProps:
|
|
|
2463
2471
|
|
|
2464
2472
|
@builtins.property
|
|
2465
2473
|
def ca_certificate_identifier(self) -> typing.Optional[builtins.str]:
|
|
2466
|
-
'''The
|
|
2467
|
-
|
|
2468
|
-
For more information, see `Updating Your Amazon DocumentDB TLS Certificates <https://docs.aws.amazon.com/documentdb/latest/developerguide/ca_cert_rotation.html>`_ and `Encrypting Data in Transit <https://docs.aws.amazon.com/documentdb/latest/developerguide/security.encryption.ssl.html>`_ in the *Amazon DocumentDB Developer Guide* .
|
|
2474
|
+
'''The identifier of the CA certificate for this DB instance.
|
|
2469
2475
|
|
|
2470
2476
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbinstance.html#cfn-docdb-dbinstance-cacertificateidentifier
|
|
2471
2477
|
'''
|
aws_cdk/aws_dynamodb/__init__.py
CHANGED
|
@@ -506,6 +506,21 @@ table = dynamodb.TableV2(self, "Table",
|
|
|
506
506
|
)
|
|
507
507
|
```
|
|
508
508
|
|
|
509
|
+
When you use `Table`, you can enable contributor insights for a table or specific global secondary index by setting `contributorInsightsEnabled` to `true`.
|
|
510
|
+
|
|
511
|
+
```python
|
|
512
|
+
table = dynamodb.Table(self, "Table",
|
|
513
|
+
partition_key=dynamodb.Attribute(name="pk", type=dynamodb.AttributeType.STRING),
|
|
514
|
+
contributor_insights_enabled=True
|
|
515
|
+
)
|
|
516
|
+
|
|
517
|
+
table.add_global_secondary_index(
|
|
518
|
+
contributor_insights_enabled=True, # for a specific global secondary index
|
|
519
|
+
index_name="gsi",
|
|
520
|
+
partition_key=dynamodb.Attribute(name="pk", type=dynamodb.AttributeType.STRING)
|
|
521
|
+
)
|
|
522
|
+
```
|
|
523
|
+
|
|
509
524
|
Further reading:
|
|
510
525
|
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/contributorinsights_HowItWorks.html
|
|
511
526
|
|
|
@@ -13550,6 +13565,7 @@ class UtilizationScalingProps(_BaseTargetTrackingProps_540ba713):
|
|
|
13550
13565
|
"projection_type": "projectionType",
|
|
13551
13566
|
"partition_key": "partitionKey",
|
|
13552
13567
|
"sort_key": "sortKey",
|
|
13568
|
+
"contributor_insights_enabled": "contributorInsightsEnabled",
|
|
13553
13569
|
"max_read_request_units": "maxReadRequestUnits",
|
|
13554
13570
|
"max_write_request_units": "maxWriteRequestUnits",
|
|
13555
13571
|
"read_capacity": "readCapacity",
|
|
@@ -13565,6 +13581,7 @@ class GlobalSecondaryIndexProps(SecondaryIndexProps, SchemaOptions):
|
|
|
13565
13581
|
projection_type: typing.Optional[ProjectionType] = None,
|
|
13566
13582
|
partition_key: typing.Union[Attribute, typing.Dict[builtins.str, typing.Any]],
|
|
13567
13583
|
sort_key: typing.Optional[typing.Union[Attribute, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
13584
|
+
contributor_insights_enabled: typing.Optional[builtins.bool] = None,
|
|
13568
13585
|
max_read_request_units: typing.Optional[jsii.Number] = None,
|
|
13569
13586
|
max_write_request_units: typing.Optional[jsii.Number] = None,
|
|
13570
13587
|
read_capacity: typing.Optional[jsii.Number] = None,
|
|
@@ -13577,37 +13594,25 @@ class GlobalSecondaryIndexProps(SecondaryIndexProps, SchemaOptions):
|
|
|
13577
13594
|
:param projection_type: The set of attributes that are projected into the secondary index. Default: ALL
|
|
13578
13595
|
:param partition_key: Partition key attribute definition.
|
|
13579
13596
|
:param sort_key: Sort key attribute definition. Default: no sort key
|
|
13597
|
+
:param contributor_insights_enabled: Whether CloudWatch contributor insights is enabled for the specified global secondary index. Default: false
|
|
13580
13598
|
:param max_read_request_units: The maximum read request units for the global secondary index. Can only be provided if table billingMode is PAY_PER_REQUEST. Default: - on-demand throughput is disabled
|
|
13581
13599
|
:param max_write_request_units: The maximum write request units for the global secondary index. Can only be provided if table billingMode is PAY_PER_REQUEST. Default: - on-demand throughput is disabled
|
|
13582
13600
|
:param read_capacity: The read capacity for the global secondary index. Can only be provided if table billingMode is Provisioned or undefined. Default: 5
|
|
13583
13601
|
:param write_capacity: The write capacity for the global secondary index. Can only be provided if table billingMode is Provisioned or undefined. Default: 5
|
|
13584
13602
|
|
|
13585
|
-
:exampleMetadata:
|
|
13603
|
+
:exampleMetadata: infused
|
|
13586
13604
|
|
|
13587
13605
|
Example::
|
|
13588
13606
|
|
|
13589
|
-
|
|
13590
|
-
|
|
13591
|
-
|
|
13592
|
-
|
|
13593
|
-
global_secondary_index_props = dynamodb.GlobalSecondaryIndexProps(
|
|
13594
|
-
index_name="indexName",
|
|
13595
|
-
partition_key=dynamodb.Attribute(
|
|
13596
|
-
name="name",
|
|
13597
|
-
type=dynamodb.AttributeType.BINARY
|
|
13598
|
-
),
|
|
13607
|
+
table = dynamodb.Table(self, "Table",
|
|
13608
|
+
partition_key=dynamodb.Attribute(name="pk", type=dynamodb.AttributeType.STRING),
|
|
13609
|
+
contributor_insights_enabled=True
|
|
13610
|
+
)
|
|
13599
13611
|
|
|
13600
|
-
|
|
13601
|
-
|
|
13602
|
-
|
|
13603
|
-
|
|
13604
|
-
projection_type=dynamodb.ProjectionType.KEYS_ONLY,
|
|
13605
|
-
read_capacity=123,
|
|
13606
|
-
sort_key=dynamodb.Attribute(
|
|
13607
|
-
name="name",
|
|
13608
|
-
type=dynamodb.AttributeType.BINARY
|
|
13609
|
-
),
|
|
13610
|
-
write_capacity=123
|
|
13612
|
+
table.add_global_secondary_index(
|
|
13613
|
+
contributor_insights_enabled=True, # for a specific global secondary index
|
|
13614
|
+
index_name="gsi",
|
|
13615
|
+
partition_key=dynamodb.Attribute(name="pk", type=dynamodb.AttributeType.STRING)
|
|
13611
13616
|
)
|
|
13612
13617
|
'''
|
|
13613
13618
|
if isinstance(partition_key, dict):
|
|
@@ -13621,6 +13626,7 @@ class GlobalSecondaryIndexProps(SecondaryIndexProps, SchemaOptions):
|
|
|
13621
13626
|
check_type(argname="argument projection_type", value=projection_type, expected_type=type_hints["projection_type"])
|
|
13622
13627
|
check_type(argname="argument partition_key", value=partition_key, expected_type=type_hints["partition_key"])
|
|
13623
13628
|
check_type(argname="argument sort_key", value=sort_key, expected_type=type_hints["sort_key"])
|
|
13629
|
+
check_type(argname="argument contributor_insights_enabled", value=contributor_insights_enabled, expected_type=type_hints["contributor_insights_enabled"])
|
|
13624
13630
|
check_type(argname="argument max_read_request_units", value=max_read_request_units, expected_type=type_hints["max_read_request_units"])
|
|
13625
13631
|
check_type(argname="argument max_write_request_units", value=max_write_request_units, expected_type=type_hints["max_write_request_units"])
|
|
13626
13632
|
check_type(argname="argument read_capacity", value=read_capacity, expected_type=type_hints["read_capacity"])
|
|
@@ -13635,6 +13641,8 @@ class GlobalSecondaryIndexProps(SecondaryIndexProps, SchemaOptions):
|
|
|
13635
13641
|
self._values["projection_type"] = projection_type
|
|
13636
13642
|
if sort_key is not None:
|
|
13637
13643
|
self._values["sort_key"] = sort_key
|
|
13644
|
+
if contributor_insights_enabled is not None:
|
|
13645
|
+
self._values["contributor_insights_enabled"] = contributor_insights_enabled
|
|
13638
13646
|
if max_read_request_units is not None:
|
|
13639
13647
|
self._values["max_read_request_units"] = max_read_request_units
|
|
13640
13648
|
if max_write_request_units is not None:
|
|
@@ -13685,6 +13693,15 @@ class GlobalSecondaryIndexProps(SecondaryIndexProps, SchemaOptions):
|
|
|
13685
13693
|
result = self._values.get("sort_key")
|
|
13686
13694
|
return typing.cast(typing.Optional[Attribute], result)
|
|
13687
13695
|
|
|
13696
|
+
@builtins.property
|
|
13697
|
+
def contributor_insights_enabled(self) -> typing.Optional[builtins.bool]:
|
|
13698
|
+
'''Whether CloudWatch contributor insights is enabled for the specified global secondary index.
|
|
13699
|
+
|
|
13700
|
+
:default: false
|
|
13701
|
+
'''
|
|
13702
|
+
result = self._values.get("contributor_insights_enabled")
|
|
13703
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
13704
|
+
|
|
13688
13705
|
@builtins.property
|
|
13689
13706
|
def max_read_request_units(self) -> typing.Optional[jsii.Number]:
|
|
13690
13707
|
'''The maximum read request units for the global secondary index.
|
|
@@ -14691,6 +14708,7 @@ class Table(
|
|
|
14691
14708
|
def add_global_secondary_index(
|
|
14692
14709
|
self,
|
|
14693
14710
|
*,
|
|
14711
|
+
contributor_insights_enabled: typing.Optional[builtins.bool] = None,
|
|
14694
14712
|
max_read_request_units: typing.Optional[jsii.Number] = None,
|
|
14695
14713
|
max_write_request_units: typing.Optional[jsii.Number] = None,
|
|
14696
14714
|
read_capacity: typing.Optional[jsii.Number] = None,
|
|
@@ -14703,6 +14721,7 @@ class Table(
|
|
|
14703
14721
|
) -> None:
|
|
14704
14722
|
'''Add a global secondary index of table.
|
|
14705
14723
|
|
|
14724
|
+
:param contributor_insights_enabled: Whether CloudWatch contributor insights is enabled for the specified global secondary index. Default: false
|
|
14706
14725
|
:param max_read_request_units: The maximum read request units for the global secondary index. Can only be provided if table billingMode is PAY_PER_REQUEST. Default: - on-demand throughput is disabled
|
|
14707
14726
|
:param max_write_request_units: The maximum write request units for the global secondary index. Can only be provided if table billingMode is PAY_PER_REQUEST. Default: - on-demand throughput is disabled
|
|
14708
14727
|
:param read_capacity: The read capacity for the global secondary index. Can only be provided if table billingMode is Provisioned or undefined. Default: 5
|
|
@@ -14714,6 +14733,7 @@ class Table(
|
|
|
14714
14733
|
:param sort_key: Sort key attribute definition. Default: no sort key
|
|
14715
14734
|
'''
|
|
14716
14735
|
props = GlobalSecondaryIndexProps(
|
|
14736
|
+
contributor_insights_enabled=contributor_insights_enabled,
|
|
14717
14737
|
max_read_request_units=max_read_request_units,
|
|
14718
14738
|
max_write_request_units=max_write_request_units,
|
|
14719
14739
|
read_capacity=read_capacity,
|
|
@@ -16212,6 +16232,7 @@ def _typecheckingstub__7f586bf63a567e16bde337be791f392306be66abca1c4abb791989fb9
|
|
|
16212
16232
|
projection_type: typing.Optional[ProjectionType] = None,
|
|
16213
16233
|
partition_key: typing.Union[Attribute, typing.Dict[builtins.str, typing.Any]],
|
|
16214
16234
|
sort_key: typing.Optional[typing.Union[Attribute, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
16235
|
+
contributor_insights_enabled: typing.Optional[builtins.bool] = None,
|
|
16215
16236
|
max_read_request_units: typing.Optional[jsii.Number] = None,
|
|
16216
16237
|
max_write_request_units: typing.Optional[jsii.Number] = None,
|
|
16217
16238
|
read_capacity: typing.Optional[jsii.Number] = None,
|