aws-cdk-lib 2.174.0__py3-none-any.whl → 2.174.1__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.

@@ -1281,11 +1281,11 @@ class CfnDataProvider(
1281
1281
  certificate_arn: typing.Optional[builtins.str] = None,
1282
1282
  ssl_mode: typing.Optional[builtins.str] = None,
1283
1283
  ) -> None:
1284
- '''DocDbSettings property identifier.
1284
+ '''Provides information that defines a DocumentDB endpoint.
1285
1285
 
1286
- :param database_name:
1287
- :param port:
1288
- :param server_name:
1286
+ :param database_name: The database name on the DocumentDB source endpoint.
1287
+ :param port: The port value for the DocumentDB source endpoint.
1288
+ :param server_name: The name of the server on the DocumentDB source endpoint.
1289
1289
  :param certificate_arn:
1290
1290
  :param ssl_mode:
1291
1291
 
@@ -1327,7 +1327,8 @@ class CfnDataProvider(
1327
1327
 
1328
1328
  @builtins.property
1329
1329
  def database_name(self) -> builtins.str:
1330
- '''
1330
+ '''The database name on the DocumentDB source endpoint.
1331
+
1331
1332
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-dataprovider-docdbsettings.html#cfn-dms-dataprovider-docdbsettings-databasename
1332
1333
  '''
1333
1334
  result = self._values.get("database_name")
@@ -1336,7 +1337,8 @@ class CfnDataProvider(
1336
1337
 
1337
1338
  @builtins.property
1338
1339
  def port(self) -> jsii.Number:
1339
- '''
1340
+ '''The port value for the DocumentDB source endpoint.
1341
+
1340
1342
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-dataprovider-docdbsettings.html#cfn-dms-dataprovider-docdbsettings-port
1341
1343
  '''
1342
1344
  result = self._values.get("port")
@@ -1345,7 +1347,8 @@ class CfnDataProvider(
1345
1347
 
1346
1348
  @builtins.property
1347
1349
  def server_name(self) -> builtins.str:
1348
- '''
1350
+ '''The name of the server on the DocumentDB source endpoint.
1351
+
1349
1352
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-dataprovider-docdbsettings.html#cfn-dms-dataprovider-docdbsettings-servername
1350
1353
  '''
1351
1354
  result = self._values.get("server_name")
@@ -1634,15 +1637,15 @@ class CfnDataProvider(
1634
1637
  database_name: typing.Optional[builtins.str] = None,
1635
1638
  ssl_mode: typing.Optional[builtins.str] = None,
1636
1639
  ) -> None:
1637
- '''MongoDbSettings property identifier.
1640
+ '''Provides information that defines a MongoDB endpoint.
1638
1641
 
1639
- :param port:
1640
- :param server_name:
1641
- :param auth_mechanism:
1642
- :param auth_source:
1643
- :param auth_type:
1642
+ :param port: The port value for the MongoDB source endpoint.
1643
+ :param server_name: The name of the server on the MongoDB source endpoint. For MongoDB Atlas, provide the server name for any of the servers in the replication set.
1644
+ :param auth_mechanism: The authentication mechanism you use to access the MongoDB source endpoint. For the default value, in MongoDB version 2.x, ``"default"`` is ``"mongodb_cr"`` . For MongoDB version 3.x or later, ``"default"`` is ``"scram_sha_1"`` . This setting isn't used when ``AuthType`` is set to ``"no"`` .
1645
+ :param auth_source: The MongoDB database name. This setting isn't used when ``AuthType`` is set to ``"no"`` . The default is ``"admin"`` .
1646
+ :param auth_type: The authentication type you use to access the MongoDB source endpoint. When when set to ``"no"`` , user name and password parameters are not used and can be empty.
1644
1647
  :param certificate_arn:
1645
- :param database_name:
1648
+ :param database_name: The database name on the MongoDB source endpoint.
1646
1649
  :param ssl_mode:
1647
1650
 
1648
1651
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-dataprovider-mongodbsettings.html
@@ -1696,7 +1699,8 @@ class CfnDataProvider(
1696
1699
 
1697
1700
  @builtins.property
1698
1701
  def port(self) -> jsii.Number:
1699
- '''
1702
+ '''The port value for the MongoDB source endpoint.
1703
+
1700
1704
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-dataprovider-mongodbsettings.html#cfn-dms-dataprovider-mongodbsettings-port
1701
1705
  '''
1702
1706
  result = self._values.get("port")
@@ -1705,7 +1709,10 @@ class CfnDataProvider(
1705
1709
 
1706
1710
  @builtins.property
1707
1711
  def server_name(self) -> builtins.str:
1708
- '''
1712
+ '''The name of the server on the MongoDB source endpoint.
1713
+
1714
+ For MongoDB Atlas, provide the server name for any of the servers in the replication set.
1715
+
1709
1716
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-dataprovider-mongodbsettings.html#cfn-dms-dataprovider-mongodbsettings-servername
1710
1717
  '''
1711
1718
  result = self._values.get("server_name")
@@ -1714,7 +1721,10 @@ class CfnDataProvider(
1714
1721
 
1715
1722
  @builtins.property
1716
1723
  def auth_mechanism(self) -> typing.Optional[builtins.str]:
1717
- '''
1724
+ '''The authentication mechanism you use to access the MongoDB source endpoint.
1725
+
1726
+ For the default value, in MongoDB version 2.x, ``"default"`` is ``"mongodb_cr"`` . For MongoDB version 3.x or later, ``"default"`` is ``"scram_sha_1"`` . This setting isn't used when ``AuthType`` is set to ``"no"`` .
1727
+
1718
1728
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-dataprovider-mongodbsettings.html#cfn-dms-dataprovider-mongodbsettings-authmechanism
1719
1729
  '''
1720
1730
  result = self._values.get("auth_mechanism")
@@ -1722,7 +1732,10 @@ class CfnDataProvider(
1722
1732
 
1723
1733
  @builtins.property
1724
1734
  def auth_source(self) -> typing.Optional[builtins.str]:
1725
- '''
1735
+ '''The MongoDB database name. This setting isn't used when ``AuthType`` is set to ``"no"`` .
1736
+
1737
+ The default is ``"admin"`` .
1738
+
1726
1739
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-dataprovider-mongodbsettings.html#cfn-dms-dataprovider-mongodbsettings-authsource
1727
1740
  '''
1728
1741
  result = self._values.get("auth_source")
@@ -1730,7 +1743,10 @@ class CfnDataProvider(
1730
1743
 
1731
1744
  @builtins.property
1732
1745
  def auth_type(self) -> typing.Optional[builtins.str]:
1733
- '''
1746
+ '''The authentication type you use to access the MongoDB source endpoint.
1747
+
1748
+ When when set to ``"no"`` , user name and password parameters are not used and can be empty.
1749
+
1734
1750
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-dataprovider-mongodbsettings.html#cfn-dms-dataprovider-mongodbsettings-authtype
1735
1751
  '''
1736
1752
  result = self._values.get("auth_type")
@@ -1746,7 +1762,8 @@ class CfnDataProvider(
1746
1762
 
1747
1763
  @builtins.property
1748
1764
  def database_name(self) -> typing.Optional[builtins.str]:
1749
- '''
1765
+ '''The database name on the MongoDB source endpoint.
1766
+
1750
1767
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-dataprovider-mongodbsettings.html#cfn-dms-dataprovider-mongodbsettings-databasename
1751
1768
  '''
1752
1769
  result = self._values.get("database_name")
@@ -2243,11 +2260,11 @@ class CfnDataProvider(
2243
2260
  port: jsii.Number,
2244
2261
  server_name: builtins.str,
2245
2262
  ) -> None:
2246
- '''RedshiftSettings property identifier.
2263
+ '''Provides information that defines an Amazon Redshift endpoint.
2247
2264
 
2248
- :param database_name:
2249
- :param port:
2250
- :param server_name:
2265
+ :param database_name: The name of the Amazon Redshift data warehouse (service) that you are working with.
2266
+ :param port: The port number for Amazon Redshift. The default value is 5439.
2267
+ :param server_name: The name of the Amazon Redshift cluster you are using.
2251
2268
 
2252
2269
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-dataprovider-redshiftsettings.html
2253
2270
  :exampleMetadata: fixture=_generated
@@ -2277,7 +2294,8 @@ class CfnDataProvider(
2277
2294
 
2278
2295
  @builtins.property
2279
2296
  def database_name(self) -> builtins.str:
2280
- '''
2297
+ '''The name of the Amazon Redshift data warehouse (service) that you are working with.
2298
+
2281
2299
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-dataprovider-redshiftsettings.html#cfn-dms-dataprovider-redshiftsettings-databasename
2282
2300
  '''
2283
2301
  result = self._values.get("database_name")
@@ -2286,7 +2304,10 @@ class CfnDataProvider(
2286
2304
 
2287
2305
  @builtins.property
2288
2306
  def port(self) -> jsii.Number:
2289
- '''
2307
+ '''The port number for Amazon Redshift.
2308
+
2309
+ The default value is 5439.
2310
+
2290
2311
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-dataprovider-redshiftsettings.html#cfn-dms-dataprovider-redshiftsettings-port
2291
2312
  '''
2292
2313
  result = self._values.get("port")
@@ -2295,7 +2316,8 @@ class CfnDataProvider(
2295
2316
 
2296
2317
  @builtins.property
2297
2318
  def server_name(self) -> builtins.str:
2298
- '''
2319
+ '''The name of the Amazon Redshift cluster you are using.
2320
+
2299
2321
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-dataprovider-redshiftsettings.html#cfn-dms-dataprovider-redshiftsettings-servername
2300
2322
  '''
2301
2323
  result = self._values.get("server_name")
@@ -567,13 +567,16 @@ class CfnDBCluster(
567
567
  enable_cloudwatch_logs_exports=["enableCloudwatchLogsExports"],
568
568
  engine_version="engineVersion",
569
569
  kms_key_id="kmsKeyId",
570
+ manage_master_user_password=False,
570
571
  master_username="masterUsername",
571
572
  master_user_password="masterUserPassword",
573
+ master_user_secret_kms_key_id="masterUserSecretKmsKeyId",
572
574
  port=123,
573
575
  preferred_backup_window="preferredBackupWindow",
574
576
  preferred_maintenance_window="preferredMaintenanceWindow",
575
577
  restore_to_time="restoreToTime",
576
578
  restore_type="restoreType",
579
+ rotate_master_user_password=False,
577
580
  serverless_v2_scaling_configuration=docdb.CfnDBCluster.ServerlessV2ScalingConfigurationProperty(
578
581
  max_capacity=123,
579
582
  min_capacity=123
@@ -606,13 +609,16 @@ class CfnDBCluster(
606
609
  enable_cloudwatch_logs_exports: typing.Optional[typing.Sequence[builtins.str]] = None,
607
610
  engine_version: typing.Optional[builtins.str] = None,
608
611
  kms_key_id: typing.Optional[builtins.str] = None,
612
+ manage_master_user_password: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
609
613
  master_username: typing.Optional[builtins.str] = None,
610
614
  master_user_password: typing.Optional[builtins.str] = None,
615
+ master_user_secret_kms_key_id: typing.Optional[builtins.str] = None,
611
616
  port: typing.Optional[jsii.Number] = None,
612
617
  preferred_backup_window: typing.Optional[builtins.str] = None,
613
618
  preferred_maintenance_window: typing.Optional[builtins.str] = None,
614
619
  restore_to_time: typing.Optional[builtins.str] = None,
615
620
  restore_type: typing.Optional[builtins.str] = None,
621
+ rotate_master_user_password: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
616
622
  serverless_v2_scaling_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDBCluster.ServerlessV2ScalingConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
617
623
  snapshot_identifier: typing.Optional[builtins.str] = None,
618
624
  source_db_cluster_identifier: typing.Optional[builtins.str] = None,
@@ -635,13 +641,16 @@ class CfnDBCluster(
635
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>`_ .
636
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. 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.
637
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
+ :param manage_master_user_password:
638
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.
639
646
  :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.
647
+ :param master_user_secret_kms_key_id:
640
648
  :param port: Specifies the port that the database engine is listening on.
641
649
  :param preferred_backup_window: The daily time range during which automated backups are created if automated backups are enabled using the ``BackupRetentionPeriod`` parameter. The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region . Constraints: - Must be in the format ``hh24:mi-hh24:mi`` . - Must be in Universal Coordinated Time (UTC). - Must not conflict with the preferred maintenance window. - Must be at least 30 minutes.
642
650
  :param preferred_maintenance_window: The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). Format: ``ddd:hh24:mi-ddd:hh24:mi`` The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region , occurring on a random day of the week. Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun Constraints: Minimum 30-minute window.
643
651
  :param restore_to_time: The date and time to restore the cluster to. Valid values: A time in Universal Coordinated Time (UTC) format. Constraints: - Must be before the latest restorable time for the instance. - Must be specified if the ``UseLatestRestorableTime`` parameter is not provided. - Cannot be specified if the ``UseLatestRestorableTime`` parameter is ``true`` . - Cannot be specified if the ``RestoreType`` parameter is ``copy-on-write`` . Example: ``2015-03-07T23:45:00Z``
644
652
  :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.
653
+ :param rotate_master_user_password:
645
654
  :param serverless_v2_scaling_configuration:
646
655
  :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.
647
656
  :param source_db_cluster_identifier: The identifier of the source cluster from which to restore. Constraints: - Must match the identifier of an existing ``DBCluster`` .
@@ -666,13 +675,16 @@ class CfnDBCluster(
666
675
  enable_cloudwatch_logs_exports=enable_cloudwatch_logs_exports,
667
676
  engine_version=engine_version,
668
677
  kms_key_id=kms_key_id,
678
+ manage_master_user_password=manage_master_user_password,
669
679
  master_username=master_username,
670
680
  master_user_password=master_user_password,
681
+ master_user_secret_kms_key_id=master_user_secret_kms_key_id,
671
682
  port=port,
672
683
  preferred_backup_window=preferred_backup_window,
673
684
  preferred_maintenance_window=preferred_maintenance_window,
674
685
  restore_to_time=restore_to_time,
675
686
  restore_type=restore_type,
687
+ rotate_master_user_password=rotate_master_user_password,
676
688
  serverless_v2_scaling_configuration=serverless_v2_scaling_configuration,
677
689
  snapshot_identifier=snapshot_identifier,
678
690
  source_db_cluster_identifier=source_db_cluster_identifier,
@@ -933,6 +945,23 @@ class CfnDBCluster(
933
945
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
934
946
  jsii.set(self, "kmsKeyId", value) # pyright: ignore[reportArgumentType]
935
947
 
948
+ @builtins.property
949
+ @jsii.member(jsii_name="manageMasterUserPassword")
950
+ def manage_master_user_password(
951
+ self,
952
+ ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
953
+ return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "manageMasterUserPassword"))
954
+
955
+ @manage_master_user_password.setter
956
+ def manage_master_user_password(
957
+ self,
958
+ value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
959
+ ) -> None:
960
+ if __debug__:
961
+ type_hints = typing.get_type_hints(_typecheckingstub__cdcd3cca26349ee0c4a653267f8614c14cebb3b1c16af84aa9d85681fe2b07dd)
962
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
963
+ jsii.set(self, "manageMasterUserPassword", value) # pyright: ignore[reportArgumentType]
964
+
936
965
  @builtins.property
937
966
  @jsii.member(jsii_name="masterUsername")
938
967
  def master_username(self) -> typing.Optional[builtins.str]:
@@ -959,6 +988,21 @@ class CfnDBCluster(
959
988
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
960
989
  jsii.set(self, "masterUserPassword", value) # pyright: ignore[reportArgumentType]
961
990
 
991
+ @builtins.property
992
+ @jsii.member(jsii_name="masterUserSecretKmsKeyId")
993
+ def master_user_secret_kms_key_id(self) -> typing.Optional[builtins.str]:
994
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "masterUserSecretKmsKeyId"))
995
+
996
+ @master_user_secret_kms_key_id.setter
997
+ def master_user_secret_kms_key_id(
998
+ self,
999
+ value: typing.Optional[builtins.str],
1000
+ ) -> None:
1001
+ if __debug__:
1002
+ type_hints = typing.get_type_hints(_typecheckingstub__3a1df2c9ac1f613c512469d693487a300c74230885d5e260bf5ada30155d14d7)
1003
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1004
+ jsii.set(self, "masterUserSecretKmsKeyId", value) # pyright: ignore[reportArgumentType]
1005
+
962
1006
  @builtins.property
963
1007
  @jsii.member(jsii_name="port")
964
1008
  def port(self) -> typing.Optional[jsii.Number]:
@@ -1030,6 +1074,23 @@ class CfnDBCluster(
1030
1074
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1031
1075
  jsii.set(self, "restoreType", value) # pyright: ignore[reportArgumentType]
1032
1076
 
1077
+ @builtins.property
1078
+ @jsii.member(jsii_name="rotateMasterUserPassword")
1079
+ def rotate_master_user_password(
1080
+ self,
1081
+ ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
1082
+ return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "rotateMasterUserPassword"))
1083
+
1084
+ @rotate_master_user_password.setter
1085
+ def rotate_master_user_password(
1086
+ self,
1087
+ value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
1088
+ ) -> None:
1089
+ if __debug__:
1090
+ type_hints = typing.get_type_hints(_typecheckingstub__8a962178d061c1e3b6b6e4c04690d1515176ca035477d280a9ddaee831ed19ae)
1091
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1092
+ jsii.set(self, "rotateMasterUserPassword", value) # pyright: ignore[reportArgumentType]
1093
+
1033
1094
  @builtins.property
1034
1095
  @jsii.member(jsii_name="serverlessV2ScalingConfiguration")
1035
1096
  def serverless_v2_scaling_configuration(
@@ -1567,13 +1628,16 @@ class CfnDBClusterParameterGroupProps:
1567
1628
  "enable_cloudwatch_logs_exports": "enableCloudwatchLogsExports",
1568
1629
  "engine_version": "engineVersion",
1569
1630
  "kms_key_id": "kmsKeyId",
1631
+ "manage_master_user_password": "manageMasterUserPassword",
1570
1632
  "master_username": "masterUsername",
1571
1633
  "master_user_password": "masterUserPassword",
1634
+ "master_user_secret_kms_key_id": "masterUserSecretKmsKeyId",
1572
1635
  "port": "port",
1573
1636
  "preferred_backup_window": "preferredBackupWindow",
1574
1637
  "preferred_maintenance_window": "preferredMaintenanceWindow",
1575
1638
  "restore_to_time": "restoreToTime",
1576
1639
  "restore_type": "restoreType",
1640
+ "rotate_master_user_password": "rotateMasterUserPassword",
1577
1641
  "serverless_v2_scaling_configuration": "serverlessV2ScalingConfiguration",
1578
1642
  "snapshot_identifier": "snapshotIdentifier",
1579
1643
  "source_db_cluster_identifier": "sourceDbClusterIdentifier",
@@ -1598,13 +1662,16 @@ class CfnDBClusterProps:
1598
1662
  enable_cloudwatch_logs_exports: typing.Optional[typing.Sequence[builtins.str]] = None,
1599
1663
  engine_version: typing.Optional[builtins.str] = None,
1600
1664
  kms_key_id: typing.Optional[builtins.str] = None,
1665
+ manage_master_user_password: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
1601
1666
  master_username: typing.Optional[builtins.str] = None,
1602
1667
  master_user_password: typing.Optional[builtins.str] = None,
1668
+ master_user_secret_kms_key_id: typing.Optional[builtins.str] = None,
1603
1669
  port: typing.Optional[jsii.Number] = None,
1604
1670
  preferred_backup_window: typing.Optional[builtins.str] = None,
1605
1671
  preferred_maintenance_window: typing.Optional[builtins.str] = None,
1606
1672
  restore_to_time: typing.Optional[builtins.str] = None,
1607
1673
  restore_type: typing.Optional[builtins.str] = None,
1674
+ rotate_master_user_password: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
1608
1675
  serverless_v2_scaling_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDBCluster.ServerlessV2ScalingConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1609
1676
  snapshot_identifier: typing.Optional[builtins.str] = None,
1610
1677
  source_db_cluster_identifier: typing.Optional[builtins.str] = None,
@@ -1626,13 +1693,16 @@ class CfnDBClusterProps:
1626
1693
  :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>`_ .
1627
1694
  :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.
1628
1695
  :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 .
1696
+ :param manage_master_user_password:
1629
1697
  :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.
1630
1698
  :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.
1699
+ :param master_user_secret_kms_key_id:
1631
1700
  :param port: Specifies the port that the database engine is listening on.
1632
1701
  :param preferred_backup_window: The daily time range during which automated backups are created if automated backups are enabled using the ``BackupRetentionPeriod`` parameter. The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region . Constraints: - Must be in the format ``hh24:mi-hh24:mi`` . - Must be in Universal Coordinated Time (UTC). - Must not conflict with the preferred maintenance window. - Must be at least 30 minutes.
1633
1702
  :param preferred_maintenance_window: The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). Format: ``ddd:hh24:mi-ddd:hh24:mi`` The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region , occurring on a random day of the week. Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun Constraints: Minimum 30-minute window.
1634
1703
  :param restore_to_time: The date and time to restore the cluster to. Valid values: A time in Universal Coordinated Time (UTC) format. Constraints: - Must be before the latest restorable time for the instance. - Must be specified if the ``UseLatestRestorableTime`` parameter is not provided. - Cannot be specified if the ``UseLatestRestorableTime`` parameter is ``true`` . - Cannot be specified if the ``RestoreType`` parameter is ``copy-on-write`` . Example: ``2015-03-07T23:45:00Z``
1635
1704
  :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.
1705
+ :param rotate_master_user_password:
1636
1706
  :param serverless_v2_scaling_configuration:
1637
1707
  :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.
1638
1708
  :param source_db_cluster_identifier: The identifier of the source cluster from which to restore. Constraints: - Must match the identifier of an existing ``DBCluster`` .
@@ -1662,13 +1732,16 @@ class CfnDBClusterProps:
1662
1732
  enable_cloudwatch_logs_exports=["enableCloudwatchLogsExports"],
1663
1733
  engine_version="engineVersion",
1664
1734
  kms_key_id="kmsKeyId",
1735
+ manage_master_user_password=False,
1665
1736
  master_username="masterUsername",
1666
1737
  master_user_password="masterUserPassword",
1738
+ master_user_secret_kms_key_id="masterUserSecretKmsKeyId",
1667
1739
  port=123,
1668
1740
  preferred_backup_window="preferredBackupWindow",
1669
1741
  preferred_maintenance_window="preferredMaintenanceWindow",
1670
1742
  restore_to_time="restoreToTime",
1671
1743
  restore_type="restoreType",
1744
+ rotate_master_user_password=False,
1672
1745
  serverless_v2_scaling_configuration=docdb.CfnDBCluster.ServerlessV2ScalingConfigurationProperty(
1673
1746
  max_capacity=123,
1674
1747
  min_capacity=123
@@ -1697,13 +1770,16 @@ class CfnDBClusterProps:
1697
1770
  check_type(argname="argument enable_cloudwatch_logs_exports", value=enable_cloudwatch_logs_exports, expected_type=type_hints["enable_cloudwatch_logs_exports"])
1698
1771
  check_type(argname="argument engine_version", value=engine_version, expected_type=type_hints["engine_version"])
1699
1772
  check_type(argname="argument kms_key_id", value=kms_key_id, expected_type=type_hints["kms_key_id"])
1773
+ check_type(argname="argument manage_master_user_password", value=manage_master_user_password, expected_type=type_hints["manage_master_user_password"])
1700
1774
  check_type(argname="argument master_username", value=master_username, expected_type=type_hints["master_username"])
1701
1775
  check_type(argname="argument master_user_password", value=master_user_password, expected_type=type_hints["master_user_password"])
1776
+ check_type(argname="argument master_user_secret_kms_key_id", value=master_user_secret_kms_key_id, expected_type=type_hints["master_user_secret_kms_key_id"])
1702
1777
  check_type(argname="argument port", value=port, expected_type=type_hints["port"])
1703
1778
  check_type(argname="argument preferred_backup_window", value=preferred_backup_window, expected_type=type_hints["preferred_backup_window"])
1704
1779
  check_type(argname="argument preferred_maintenance_window", value=preferred_maintenance_window, expected_type=type_hints["preferred_maintenance_window"])
1705
1780
  check_type(argname="argument restore_to_time", value=restore_to_time, expected_type=type_hints["restore_to_time"])
1706
1781
  check_type(argname="argument restore_type", value=restore_type, expected_type=type_hints["restore_type"])
1782
+ check_type(argname="argument rotate_master_user_password", value=rotate_master_user_password, expected_type=type_hints["rotate_master_user_password"])
1707
1783
  check_type(argname="argument serverless_v2_scaling_configuration", value=serverless_v2_scaling_configuration, expected_type=type_hints["serverless_v2_scaling_configuration"])
1708
1784
  check_type(argname="argument snapshot_identifier", value=snapshot_identifier, expected_type=type_hints["snapshot_identifier"])
1709
1785
  check_type(argname="argument source_db_cluster_identifier", value=source_db_cluster_identifier, expected_type=type_hints["source_db_cluster_identifier"])
@@ -1733,10 +1809,14 @@ class CfnDBClusterProps:
1733
1809
  self._values["engine_version"] = engine_version
1734
1810
  if kms_key_id is not None:
1735
1811
  self._values["kms_key_id"] = kms_key_id
1812
+ if manage_master_user_password is not None:
1813
+ self._values["manage_master_user_password"] = manage_master_user_password
1736
1814
  if master_username is not None:
1737
1815
  self._values["master_username"] = master_username
1738
1816
  if master_user_password is not None:
1739
1817
  self._values["master_user_password"] = master_user_password
1818
+ if master_user_secret_kms_key_id is not None:
1819
+ self._values["master_user_secret_kms_key_id"] = master_user_secret_kms_key_id
1740
1820
  if port is not None:
1741
1821
  self._values["port"] = port
1742
1822
  if preferred_backup_window is not None:
@@ -1747,6 +1827,8 @@ class CfnDBClusterProps:
1747
1827
  self._values["restore_to_time"] = restore_to_time
1748
1828
  if restore_type is not None:
1749
1829
  self._values["restore_type"] = restore_type
1830
+ if rotate_master_user_password is not None:
1831
+ self._values["rotate_master_user_password"] = rotate_master_user_password
1750
1832
  if serverless_v2_scaling_configuration is not None:
1751
1833
  self._values["serverless_v2_scaling_configuration"] = serverless_v2_scaling_configuration
1752
1834
  if snapshot_identifier is not None:
@@ -1896,6 +1978,16 @@ class CfnDBClusterProps:
1896
1978
  result = self._values.get("kms_key_id")
1897
1979
  return typing.cast(typing.Optional[builtins.str], result)
1898
1980
 
1981
+ @builtins.property
1982
+ def manage_master_user_password(
1983
+ self,
1984
+ ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
1985
+ '''
1986
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbcluster.html#cfn-docdb-dbcluster-managemasteruserpassword
1987
+ '''
1988
+ result = self._values.get("manage_master_user_password")
1989
+ return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
1990
+
1899
1991
  @builtins.property
1900
1992
  def master_username(self) -> typing.Optional[builtins.str]:
1901
1993
  '''The name of the master user for the cluster.
@@ -1924,6 +2016,14 @@ class CfnDBClusterProps:
1924
2016
  result = self._values.get("master_user_password")
1925
2017
  return typing.cast(typing.Optional[builtins.str], result)
1926
2018
 
2019
+ @builtins.property
2020
+ def master_user_secret_kms_key_id(self) -> typing.Optional[builtins.str]:
2021
+ '''
2022
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbcluster.html#cfn-docdb-dbcluster-masterusersecretkmskeyid
2023
+ '''
2024
+ result = self._values.get("master_user_secret_kms_key_id")
2025
+ return typing.cast(typing.Optional[builtins.str], result)
2026
+
1927
2027
  @builtins.property
1928
2028
  def port(self) -> typing.Optional[jsii.Number]:
1929
2029
  '''Specifies the port that the database engine is listening on.
@@ -2004,6 +2104,16 @@ class CfnDBClusterProps:
2004
2104
  result = self._values.get("restore_type")
2005
2105
  return typing.cast(typing.Optional[builtins.str], result)
2006
2106
 
2107
+ @builtins.property
2108
+ def rotate_master_user_password(
2109
+ self,
2110
+ ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
2111
+ '''
2112
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbcluster.html#cfn-docdb-dbcluster-rotatemasteruserpassword
2113
+ '''
2114
+ result = self._values.get("rotate_master_user_password")
2115
+ return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
2116
+
2007
2117
  @builtins.property
2008
2118
  def serverless_v2_scaling_configuration(
2009
2119
  self,
@@ -5701,13 +5811,16 @@ def _typecheckingstub__7db61dc80f26049d79a38255d8a0b3abaf4b5019d7cbed64c937ec0f3
5701
5811
  enable_cloudwatch_logs_exports: typing.Optional[typing.Sequence[builtins.str]] = None,
5702
5812
  engine_version: typing.Optional[builtins.str] = None,
5703
5813
  kms_key_id: typing.Optional[builtins.str] = None,
5814
+ manage_master_user_password: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
5704
5815
  master_username: typing.Optional[builtins.str] = None,
5705
5816
  master_user_password: typing.Optional[builtins.str] = None,
5817
+ master_user_secret_kms_key_id: typing.Optional[builtins.str] = None,
5706
5818
  port: typing.Optional[jsii.Number] = None,
5707
5819
  preferred_backup_window: typing.Optional[builtins.str] = None,
5708
5820
  preferred_maintenance_window: typing.Optional[builtins.str] = None,
5709
5821
  restore_to_time: typing.Optional[builtins.str] = None,
5710
5822
  restore_type: typing.Optional[builtins.str] = None,
5823
+ rotate_master_user_password: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
5711
5824
  serverless_v2_scaling_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDBCluster.ServerlessV2ScalingConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
5712
5825
  snapshot_identifier: typing.Optional[builtins.str] = None,
5713
5826
  source_db_cluster_identifier: typing.Optional[builtins.str] = None,
@@ -5792,6 +5905,12 @@ def _typecheckingstub__03e9375b32d036932973e964a270516d21d155bd0db4369d824ccb7e7
5792
5905
  """Type checking stubs"""
5793
5906
  pass
5794
5907
 
5908
+ def _typecheckingstub__cdcd3cca26349ee0c4a653267f8614c14cebb3b1c16af84aa9d85681fe2b07dd(
5909
+ value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
5910
+ ) -> None:
5911
+ """Type checking stubs"""
5912
+ pass
5913
+
5795
5914
  def _typecheckingstub__c07cdadbef8a45e2db19e8559d89c8cec47c9d2d698c3fc441a996847907dfc0(
5796
5915
  value: typing.Optional[builtins.str],
5797
5916
  ) -> None:
@@ -5804,6 +5923,12 @@ def _typecheckingstub__e2998c76e0321a3f0bc1fe35b15ded5ba4f630cb6e5e7519736bf7455
5804
5923
  """Type checking stubs"""
5805
5924
  pass
5806
5925
 
5926
+ def _typecheckingstub__3a1df2c9ac1f613c512469d693487a300c74230885d5e260bf5ada30155d14d7(
5927
+ value: typing.Optional[builtins.str],
5928
+ ) -> None:
5929
+ """Type checking stubs"""
5930
+ pass
5931
+
5807
5932
  def _typecheckingstub__a09b878a6d8b852d7eb17f26dcd8f718779776e12f67987303b1e944b3a40516(
5808
5933
  value: typing.Optional[jsii.Number],
5809
5934
  ) -> None:
@@ -5834,6 +5959,12 @@ def _typecheckingstub__43c278d2c39f8d3f098ad2320789939b448b2958965646678cb8dd9f2
5834
5959
  """Type checking stubs"""
5835
5960
  pass
5836
5961
 
5962
+ def _typecheckingstub__8a962178d061c1e3b6b6e4c04690d1515176ca035477d280a9ddaee831ed19ae(
5963
+ value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
5964
+ ) -> None:
5965
+ """Type checking stubs"""
5966
+ pass
5967
+
5837
5968
  def _typecheckingstub__f23cec17e6d5a308bc97faa6c2e987d67b01e77f99c6ad20b6019114adb90e97(
5838
5969
  value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnDBCluster.ServerlessV2ScalingConfigurationProperty]],
5839
5970
  ) -> None:
@@ -5968,13 +6099,16 @@ def _typecheckingstub__9e1a4213f95bc5df31b056bdc5858ecdc49954b349d7a647b8775edf5
5968
6099
  enable_cloudwatch_logs_exports: typing.Optional[typing.Sequence[builtins.str]] = None,
5969
6100
  engine_version: typing.Optional[builtins.str] = None,
5970
6101
  kms_key_id: typing.Optional[builtins.str] = None,
6102
+ manage_master_user_password: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
5971
6103
  master_username: typing.Optional[builtins.str] = None,
5972
6104
  master_user_password: typing.Optional[builtins.str] = None,
6105
+ master_user_secret_kms_key_id: typing.Optional[builtins.str] = None,
5973
6106
  port: typing.Optional[jsii.Number] = None,
5974
6107
  preferred_backup_window: typing.Optional[builtins.str] = None,
5975
6108
  preferred_maintenance_window: typing.Optional[builtins.str] = None,
5976
6109
  restore_to_time: typing.Optional[builtins.str] = None,
5977
6110
  restore_type: typing.Optional[builtins.str] = None,
6111
+ rotate_master_user_password: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
5978
6112
  serverless_v2_scaling_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDBCluster.ServerlessV2ScalingConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
5979
6113
  snapshot_identifier: typing.Optional[builtins.str] = None,
5980
6114
  source_db_cluster_identifier: typing.Optional[builtins.str] = None,