aws-cdk-lib 2.100.0__py3-none-any.whl → 2.101.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.
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.100.0.jsii.tgz → aws-cdk-lib@2.101.1.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2/__init__.py +0 -8
- aws_cdk/aws_appconfig/__init__.py +101 -18
- aws_cdk/aws_apprunner/__init__.py +5 -2
- aws_cdk/aws_appstream/__init__.py +18 -26
- aws_cdk/aws_cloudfront/__init__.py +251 -3
- aws_cdk/aws_cloudtrail/__init__.py +47 -3
- aws_cdk/aws_cognito/__init__.py +414 -8
- aws_cdk/aws_dlm/__init__.py +10 -9
- aws_cdk/aws_ec2/__init__.py +308 -179
- aws_cdk/aws_events/__init__.py +62 -86
- aws_cdk/aws_fms/__init__.py +3 -3
- aws_cdk/aws_grafana/__init__.py +4 -4
- aws_cdk/aws_greengrassv2/__init__.py +1 -8
- aws_cdk/aws_iot/__init__.py +714 -0
- aws_cdk/aws_iotsitewise/__init__.py +3 -3
- aws_cdk/aws_kinesisanalytics/__init__.py +15 -15
- aws_cdk/aws_kinesisanalyticsv2/__init__.py +15 -15
- aws_cdk/aws_kinesisfirehose/__init__.py +87 -40
- aws_cdk/aws_lambda/__init__.py +34 -4
- aws_cdk/aws_lightsail/__init__.py +3 -1
- aws_cdk/aws_mediatailor/__init__.py +24 -1
- aws_cdk/aws_quicksight/__init__.py +2508 -55
- aws_cdk/aws_rds/__init__.py +121 -51
- aws_cdk/aws_sagemaker/__init__.py +5 -3
- aws_cdk/aws_sns/__init__.py +42 -5
- aws_cdk/aws_ssm/__init__.py +0 -8
- aws_cdk/aws_stepfunctions/__init__.py +233 -16
- aws_cdk/aws_stepfunctions_tasks/__init__.py +926 -27
- aws_cdk/aws_transfer/__init__.py +4 -4
- aws_cdk/aws_workspacesweb/__init__.py +3 -3
- {aws_cdk_lib-2.100.0.dist-info → aws_cdk_lib-2.101.1.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.100.0.dist-info → aws_cdk_lib-2.101.1.dist-info}/RECORD +38 -38
- {aws_cdk_lib-2.100.0.dist-info → aws_cdk_lib-2.101.1.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.100.0.dist-info → aws_cdk_lib-2.101.1.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.100.0.dist-info → aws_cdk_lib-2.101.1.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.100.0.dist-info → aws_cdk_lib-2.101.1.dist-info}/top_level.txt +0 -0
aws_cdk/aws_rds/__init__.py
CHANGED
|
@@ -18,7 +18,7 @@ of readers (up to 15).
|
|
|
18
18
|
# vpc: ec2.Vpc
|
|
19
19
|
|
|
20
20
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
21
|
-
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.
|
|
21
|
+
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_01_0),
|
|
22
22
|
credentials=rds.Credentials.from_generated_secret("clusteradmin"), # Optional - will default to 'admin' username and generated password
|
|
23
23
|
writer=rds.ClusterInstance.provisioned("writer",
|
|
24
24
|
publicly_accessible=False
|
|
@@ -34,7 +34,7 @@ cluster = rds.DatabaseCluster(self, "Database",
|
|
|
34
34
|
)
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
To adopt Aurora I/O-Optimized
|
|
37
|
+
To adopt Aurora I/O-Optimized, specify `DBClusterStorageType.AURORA_IOPT1` on the `storageType` property.
|
|
38
38
|
|
|
39
39
|
```python
|
|
40
40
|
# vpc: ec2.Vpc
|
|
@@ -42,12 +42,17 @@ To adopt Aurora I/O-Optimized. Specify `DBClusterStorageType.AURORA_IOPT1` on th
|
|
|
42
42
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
43
43
|
engine=rds.DatabaseClusterEngine.aurora_postgres(version=rds.AuroraPostgresEngineVersion.VER_15_2),
|
|
44
44
|
credentials=rds.Credentials.from_username("adminuser", password=SecretValue.unsafe_plain_text("7959866cacc02c2d243ecfe177464fe6")),
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
writer=rds.ClusterInstance.provisioned("writer",
|
|
46
|
+
publicly_accessible=False
|
|
47
|
+
),
|
|
48
|
+
readers=[
|
|
49
|
+
rds.ClusterInstance.provisioned("reader")
|
|
50
|
+
],
|
|
51
|
+
storage_type=rds.DBClusterStorageType.AURORA_IOPT1,
|
|
52
|
+
vpc_subnets=ec2.SubnetSelection(
|
|
53
|
+
subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS
|
|
49
54
|
),
|
|
50
|
-
|
|
55
|
+
vpc=vpc
|
|
51
56
|
)
|
|
52
57
|
```
|
|
53
58
|
|
|
@@ -229,7 +234,7 @@ scaled to handle the write load.
|
|
|
229
234
|
# vpc: ec2.Vpc
|
|
230
235
|
|
|
231
236
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
232
|
-
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.
|
|
237
|
+
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_01_0),
|
|
233
238
|
writer=rds.ClusterInstance.serverless_v2("writer"),
|
|
234
239
|
readers=[
|
|
235
240
|
# will be put in promotion tier 1 and will scale with the writer
|
|
@@ -279,7 +284,7 @@ a higher minimum capacity.
|
|
|
279
284
|
# vpc: ec2.Vpc
|
|
280
285
|
|
|
281
286
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
282
|
-
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.
|
|
287
|
+
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_01_0),
|
|
283
288
|
writer=rds.ClusterInstance.provisioned("writer",
|
|
284
289
|
instance_type=ec2.InstanceType.of(ec2.InstanceClass.R6G, ec2.InstanceSize.XLARGE4)
|
|
285
290
|
),
|
|
@@ -1682,7 +1687,7 @@ class AuroraMysqlClusterEngineProps:
|
|
|
1682
1687
|
# vpc: ec2.Vpc
|
|
1683
1688
|
|
|
1684
1689
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
1685
|
-
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.
|
|
1690
|
+
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_01_0),
|
|
1686
1691
|
writer=rds.ClusterInstance.provisioned("writer",
|
|
1687
1692
|
instance_type=ec2.InstanceType.of(ec2.InstanceClass.R6G, ec2.InstanceSize.XLARGE4)
|
|
1688
1693
|
),
|
|
@@ -1738,7 +1743,7 @@ class AuroraMysqlEngineVersion(
|
|
|
1738
1743
|
# vpc: ec2.Vpc
|
|
1739
1744
|
|
|
1740
1745
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
1741
|
-
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.
|
|
1746
|
+
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_01_0),
|
|
1742
1747
|
credentials=rds.Credentials.from_generated_secret("clusteradmin"), # Optional - will default to 'admin' username and generated password
|
|
1743
1748
|
writer=rds.ClusterInstance.provisioned("writer",
|
|
1744
1749
|
publicly_accessible=False
|
|
@@ -2140,12 +2145,17 @@ class AuroraPostgresClusterEngineProps:
|
|
|
2140
2145
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
2141
2146
|
engine=rds.DatabaseClusterEngine.aurora_postgres(version=rds.AuroraPostgresEngineVersion.VER_15_2),
|
|
2142
2147
|
credentials=rds.Credentials.from_username("adminuser", password=SecretValue.unsafe_plain_text("7959866cacc02c2d243ecfe177464fe6")),
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
vpc_subnets=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PUBLIC),
|
|
2146
|
-
vpc=vpc
|
|
2148
|
+
writer=rds.ClusterInstance.provisioned("writer",
|
|
2149
|
+
publicly_accessible=False
|
|
2147
2150
|
),
|
|
2148
|
-
|
|
2151
|
+
readers=[
|
|
2152
|
+
rds.ClusterInstance.provisioned("reader")
|
|
2153
|
+
],
|
|
2154
|
+
storage_type=rds.DBClusterStorageType.AURORA_IOPT1,
|
|
2155
|
+
vpc_subnets=ec2.SubnetSelection(
|
|
2156
|
+
subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS
|
|
2157
|
+
),
|
|
2158
|
+
vpc=vpc
|
|
2149
2159
|
)
|
|
2150
2160
|
'''
|
|
2151
2161
|
if __debug__:
|
|
@@ -2261,12 +2271,17 @@ class AuroraPostgresEngineVersion(
|
|
|
2261
2271
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
2262
2272
|
engine=rds.DatabaseClusterEngine.aurora_postgres(version=rds.AuroraPostgresEngineVersion.VER_15_2),
|
|
2263
2273
|
credentials=rds.Credentials.from_username("adminuser", password=SecretValue.unsafe_plain_text("7959866cacc02c2d243ecfe177464fe6")),
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
vpc_subnets=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PUBLIC),
|
|
2267
|
-
vpc=vpc
|
|
2274
|
+
writer=rds.ClusterInstance.provisioned("writer",
|
|
2275
|
+
publicly_accessible=False
|
|
2268
2276
|
),
|
|
2269
|
-
|
|
2277
|
+
readers=[
|
|
2278
|
+
rds.ClusterInstance.provisioned("reader")
|
|
2279
|
+
],
|
|
2280
|
+
storage_type=rds.DBClusterStorageType.AURORA_IOPT1,
|
|
2281
|
+
vpc_subnets=ec2.SubnetSelection(
|
|
2282
|
+
subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS
|
|
2283
|
+
),
|
|
2284
|
+
vpc=vpc
|
|
2270
2285
|
)
|
|
2271
2286
|
'''
|
|
2272
2287
|
|
|
@@ -6953,6 +6968,7 @@ class CfnDBInstance(
|
|
|
6953
6968
|
feature_name="featureName",
|
|
6954
6969
|
role_arn="roleArn"
|
|
6955
6970
|
)],
|
|
6971
|
+
automatic_backup_replication_region="automaticBackupReplicationRegion",
|
|
6956
6972
|
auto_minor_version_upgrade=False,
|
|
6957
6973
|
availability_zone="availabilityZone",
|
|
6958
6974
|
backup_retention_period=123,
|
|
@@ -7051,6 +7067,7 @@ class CfnDBInstance(
|
|
|
7051
7067
|
allocated_storage: typing.Optional[builtins.str] = None,
|
|
7052
7068
|
allow_major_version_upgrade: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
7053
7069
|
associated_roles: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDBInstance.DBInstanceRoleProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
7070
|
+
automatic_backup_replication_region: typing.Optional[builtins.str] = None,
|
|
7054
7071
|
auto_minor_version_upgrade: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
7055
7072
|
availability_zone: typing.Optional[builtins.str] = None,
|
|
7056
7073
|
backup_retention_period: typing.Optional[jsii.Number] = None,
|
|
@@ -7129,6 +7146,7 @@ class CfnDBInstance(
|
|
|
7129
7146
|
:param allocated_storage: The amount of storage in gibibytes (GiB) to be initially allocated for the database instance. .. epigraph:: If any value is set in the ``Iops`` parameter, ``AllocatedStorage`` must be at least 100 GiB, which corresponds to the minimum Iops value of 1,000. If you increase the ``Iops`` value (in 1,000 IOPS increments), then you must also increase the ``AllocatedStorage`` value (in 100-GiB increments). *Amazon Aurora* Not applicable. Aurora cluster volumes automatically grow as the amount of data in your database increases, though you are only charged for the space that you use in an Aurora cluster volume. *MySQL* Constraints to the amount of storage for each storage type are the following: - General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536. - Provisioned IOPS storage (io1): Must be an integer from 100 to 65536. - Magnetic storage (standard): Must be an integer from 5 to 3072. *MariaDB* Constraints to the amount of storage for each storage type are the following: - General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536. - Provisioned IOPS storage (io1): Must be an integer from 100 to 65536. - Magnetic storage (standard): Must be an integer from 5 to 3072. *PostgreSQL* Constraints to the amount of storage for each storage type are the following: - General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536. - Provisioned IOPS storage (io1): Must be an integer from 100 to 65536. - Magnetic storage (standard): Must be an integer from 5 to 3072. *Oracle* Constraints to the amount of storage for each storage type are the following: - General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536. - Provisioned IOPS storage (io1): Must be an integer from 100 to 65536. - Magnetic storage (standard): Must be an integer from 10 to 3072. *SQL Server* Constraints to the amount of storage for each storage type are the following: - General Purpose (SSD) storage (gp2): - Enterprise and Standard editions: Must be an integer from 20 to 16384. - Web and Express editions: Must be an integer from 20 to 16384. - Provisioned IOPS storage (io1): - Enterprise and Standard editions: Must be an integer from 20 to 16384. - Web and Express editions: Must be an integer from 20 to 16384. - Magnetic storage (standard): - Enterprise and Standard editions: Must be an integer from 20 to 1024. - Web and Express editions: Must be an integer from 20 to 1024.
|
|
7130
7147
|
:param allow_major_version_upgrade: A value that indicates whether major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. Constraints: Major version upgrades must be allowed when specifying a value for the ``EngineVersion`` parameter that is a different major version than the DB instance's current version.
|
|
7131
7148
|
:param associated_roles: The AWS Identity and Access Management (IAM) roles associated with the DB instance. *Amazon Aurora* Not applicable. The associated roles are managed by the DB cluster.
|
|
7149
|
+
:param automatic_backup_replication_region: Enables replication of automated backups to a different Amazon Web Services Region.
|
|
7132
7150
|
:param auto_minor_version_upgrade: A value that indicates whether minor engine upgrades are applied automatically to the DB instance during the maintenance window. By default, minor engine upgrades are applied automatically.
|
|
7133
7151
|
:param availability_zone: The Availability Zone (AZ) where the database will be created. For information on AWS Regions and Availability Zones, see `Regions and Availability Zones <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html>`_ . For Amazon Aurora, each Aurora DB cluster hosts copies of its storage in three separate Availability Zones. Specify one of these Availability Zones. Aurora automatically chooses an appropriate Availability Zone if you don't specify one. Default: A random, system-chosen Availability Zone in the endpoint's AWS Region . Constraints: - The ``AvailabilityZone`` parameter can't be specified if the DB instance is a Multi-AZ deployment. - The specified Availability Zone must be in the same AWS Region as the current endpoint. Example: ``us-east-1d``
|
|
7134
7152
|
:param backup_retention_period: The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups. *Amazon Aurora* Not applicable. The retention period for automated backups is managed by the DB cluster. Default: 1 Constraints: - Must be a value from 0 to 35 - Can't be set to 0 if the DB instance is a source to read replicas Default: - 1
|
|
@@ -7184,9 +7202,9 @@ class CfnDBInstance(
|
|
|
7184
7202
|
:param promotion_tier: The order of priority in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see `Fault Tolerance for an Aurora DB Cluster <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Aurora.Managing.FaultTolerance>`_ in the *Amazon Aurora User Guide* . This setting doesn't apply to RDS Custom DB instances. Default: ``1`` Valid Values: ``0 - 15`` Default: - 1
|
|
7185
7203
|
:param publicly_accessible: Indicates whether the DB instance is an internet-facing instance. If you specify true, AWS CloudFormation creates an instance with a publicly resolvable DNS name, which resolves to a public IP address. If you specify false, AWS CloudFormation creates an internal instance with a DNS name that resolves to a private IP address. The default behavior value depends on your VPC setup and the database subnet group. For more information, see the ``PubliclyAccessible`` parameter in the `CreateDBInstance <https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html>`_ in the *Amazon RDS API Reference* .
|
|
7186
7204
|
:param replica_mode: The open mode of an Oracle read replica. For more information, see `Working with Oracle Read Replicas for Amazon RDS <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html>`_ in the *Amazon RDS User Guide* . This setting is only supported in RDS for Oracle. Default: ``open-read-only`` Valid Values: ``open-read-only`` or ``mounted``
|
|
7187
|
-
:param restore_time: The date and time to restore from.
|
|
7205
|
+
:param restore_time: The date and time to restore from. Constraints: - Must be a time in Universal Coordinated Time (UTC) format. - Must be before the latest restorable time for the DB instance. - Can't be specified if the ``UseLatestRestorableTime`` parameter is enabled. Example: ``2009-09-07T23:45:00Z``
|
|
7188
7206
|
:param source_db_cluster_identifier: The identifier of the Multi-AZ DB cluster that will act as the source for the read replica. Each DB cluster can have up to 15 read replicas. Constraints: - Must be the identifier of an existing Multi-AZ DB cluster. - Can't be specified if the ``SourceDBInstanceIdentifier`` parameter is also specified. - The specified DB cluster must have automatic backups enabled, that is, its backup retention period must be greater than 0. - The source DB cluster must be in the same AWS Region as the read replica. Cross-Region replication isn't supported.
|
|
7189
|
-
:param source_db_instance_automated_backups_arn: The Amazon Resource Name (ARN) of the replicated automated backups from which to restore, for example, ``arn:aws:rds:
|
|
7207
|
+
:param source_db_instance_automated_backups_arn: The Amazon Resource Name (ARN) of the replicated automated backups from which to restore, for example, ``arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE`` . This setting doesn't apply to RDS Custom.
|
|
7190
7208
|
:param source_db_instance_identifier: If you want to create a read replica DB instance, specify the ID of the source DB instance. Each DB instance can have a limited number of read replicas. For more information, see `Working with Read Replicas <https://docs.aws.amazon.com/AmazonRDS/latest/DeveloperGuide/USER_ReadRepl.html>`_ in the *Amazon RDS User Guide* . For information about constraints that apply to DB instance identifiers, see `Naming constraints in Amazon RDS <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Limits.html#RDS_Limits.Constraints>`_ in the *Amazon RDS User Guide* . The ``SourceDBInstanceIdentifier`` property determines whether a DB instance is a read replica. If you remove the ``SourceDBInstanceIdentifier`` property from your template and then update your stack, AWS CloudFormation promotes the Read Replica to a standalone DB instance. .. epigraph:: - If you specify a source DB instance that uses VPC security groups, we recommend that you specify the ``VPCSecurityGroups`` property. If you don't specify the property, the read replica inherits the value of the ``VPCSecurityGroups`` property from the source DB when you create the replica. However, if you update the stack, AWS CloudFormation reverts the replica's ``VPCSecurityGroups`` property to the default value because it's not defined in the stack's template. This change might cause unexpected issues. - Read replicas don't support deletion policies. AWS CloudFormation ignores any deletion policy that's associated with a read replica. - If you specify ``SourceDBInstanceIdentifier`` , don't specify the ``DBSnapshotIdentifier`` property. You can't create a read replica from a snapshot. - Don't set the ``BackupRetentionPeriod`` , ``DBName`` , ``MasterUsername`` , ``MasterUserPassword`` , and ``PreferredBackupWindow`` properties. The database attributes are inherited from the source DB instance, and backups are disabled for read replicas. - If the source DB instance is in a different region than the read replica, specify the source region in ``SourceRegion`` , and specify an ARN for a valid DB instance in ``SourceDBInstanceIdentifier`` . For more information, see `Constructing a Amazon RDS Amazon Resource Name (ARN) <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN>`_ in the *Amazon RDS User Guide* . - For DB instances in Amazon Aurora clusters, don't specify this property. Amazon RDS automatically assigns writer and reader DB instances.
|
|
7191
7209
|
:param source_dbi_resource_id: The resource ID of the source DB instance from which to restore.
|
|
7192
7210
|
:param source_region: The ID of the region that contains the source DB instance for the read replica.
|
|
@@ -7198,7 +7216,7 @@ class CfnDBInstance(
|
|
|
7198
7216
|
:param tde_credential_password: (deprecated) The password for the given ARN from the key store in order to access the device.
|
|
7199
7217
|
:param timezone: The time zone of the DB instance. The time zone parameter is currently supported only by `Microsoft SQL Server <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.TimeZone>`_ .
|
|
7200
7218
|
:param use_default_processor_features: Specifies whether the DB instance class of the DB instance uses its default processor features. This setting doesn't apply to RDS Custom DB instances.
|
|
7201
|
-
:param use_latest_restorable_time:
|
|
7219
|
+
:param use_latest_restorable_time: Specifies whether the DB instance is restored from the latest backup time. By default, the DB instance isn't restored from the latest backup time. Constraints: - Can't be specified if the ``RestoreTime`` parameter is provided.
|
|
7202
7220
|
:param vpc_security_groups: A list of the VPC security group IDs to assign to the DB instance. The list can include both the physical IDs of existing VPC security groups and references to `AWS::EC2::SecurityGroup <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html>`_ resources created in the template. If you plan to update the resource, don't specify VPC security groups in a shared VPC. If you set ``VPCSecurityGroups`` , you must not set ```DBSecurityGroups`` <https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbsecuritygroups>`_ , and vice versa. .. epigraph:: You can migrate a DB instance in your stack from an RDS DB security group to a VPC security group, but keep the following in mind: - You can't revert to using an RDS security group after you establish a VPC security group membership. - When you migrate your DB instance to VPC security groups, if your stack update rolls back because the DB instance update fails or because an update fails in another AWS CloudFormation resource, the rollback fails because it can't revert to an RDS security group. - To use the properties that are available when you use a VPC security group, you must recreate the DB instance. If you don't, AWS CloudFormation submits only the property values that are listed in the ```DBSecurityGroups`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbsecuritygroups>`_ property. To avoid this situation, migrate your DB instance to using VPC security groups only when that is the only change in your stack template. *Amazon Aurora* Not applicable. The associated list of EC2 VPC security groups is managed by the DB cluster. If specified, the setting must match the DB cluster setting.
|
|
7203
7221
|
'''
|
|
7204
7222
|
if __debug__:
|
|
@@ -7209,6 +7227,7 @@ class CfnDBInstance(
|
|
|
7209
7227
|
allocated_storage=allocated_storage,
|
|
7210
7228
|
allow_major_version_upgrade=allow_major_version_upgrade,
|
|
7211
7229
|
associated_roles=associated_roles,
|
|
7230
|
+
automatic_backup_replication_region=automatic_backup_replication_region,
|
|
7212
7231
|
auto_minor_version_upgrade=auto_minor_version_upgrade,
|
|
7213
7232
|
availability_zone=availability_zone,
|
|
7214
7233
|
backup_retention_period=backup_retention_period,
|
|
@@ -7465,6 +7484,22 @@ class CfnDBInstance(
|
|
|
7465
7484
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
7466
7485
|
jsii.set(self, "associatedRoles", value)
|
|
7467
7486
|
|
|
7487
|
+
@builtins.property
|
|
7488
|
+
@jsii.member(jsii_name="automaticBackupReplicationRegion")
|
|
7489
|
+
def automatic_backup_replication_region(self) -> typing.Optional[builtins.str]:
|
|
7490
|
+
'''Enables replication of automated backups to a different Amazon Web Services Region.'''
|
|
7491
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "automaticBackupReplicationRegion"))
|
|
7492
|
+
|
|
7493
|
+
@automatic_backup_replication_region.setter
|
|
7494
|
+
def automatic_backup_replication_region(
|
|
7495
|
+
self,
|
|
7496
|
+
value: typing.Optional[builtins.str],
|
|
7497
|
+
) -> None:
|
|
7498
|
+
if __debug__:
|
|
7499
|
+
type_hints = typing.get_type_hints(_typecheckingstub__570af392a4da1d3a00accc2e05674065be4ff1306321cb7944dc793fd8d479ad)
|
|
7500
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
7501
|
+
jsii.set(self, "automaticBackupReplicationRegion", value)
|
|
7502
|
+
|
|
7468
7503
|
@builtins.property
|
|
7469
7504
|
@jsii.member(jsii_name="autoMinorVersionUpgrade")
|
|
7470
7505
|
def auto_minor_version_upgrade(
|
|
@@ -8305,7 +8340,7 @@ class CfnDBInstance(
|
|
|
8305
8340
|
@builtins.property
|
|
8306
8341
|
@jsii.member(jsii_name="sourceDbInstanceAutomatedBackupsArn")
|
|
8307
8342
|
def source_db_instance_automated_backups_arn(self) -> typing.Optional[builtins.str]:
|
|
8308
|
-
'''The Amazon Resource Name (ARN) of the replicated automated backups from which to restore, for example, ``arn:aws:rds:
|
|
8343
|
+
'''The Amazon Resource Name (ARN) of the replicated automated backups from which to restore, for example, ``arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE`` .'''
|
|
8309
8344
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "sourceDbInstanceAutomatedBackupsArn"))
|
|
8310
8345
|
|
|
8311
8346
|
@source_db_instance_automated_backups_arn.setter
|
|
@@ -8495,7 +8530,7 @@ class CfnDBInstance(
|
|
|
8495
8530
|
def use_latest_restorable_time(
|
|
8496
8531
|
self,
|
|
8497
8532
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
8498
|
-
'''
|
|
8533
|
+
'''Specifies whether the DB instance is restored from the latest backup time.'''
|
|
8499
8534
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "useLatestRestorableTime"))
|
|
8500
8535
|
|
|
8501
8536
|
@use_latest_restorable_time.setter
|
|
@@ -8918,6 +8953,7 @@ class CfnDBInstance(
|
|
|
8918
8953
|
"allocated_storage": "allocatedStorage",
|
|
8919
8954
|
"allow_major_version_upgrade": "allowMajorVersionUpgrade",
|
|
8920
8955
|
"associated_roles": "associatedRoles",
|
|
8956
|
+
"automatic_backup_replication_region": "automaticBackupReplicationRegion",
|
|
8921
8957
|
"auto_minor_version_upgrade": "autoMinorVersionUpgrade",
|
|
8922
8958
|
"availability_zone": "availabilityZone",
|
|
8923
8959
|
"backup_retention_period": "backupRetentionPeriod",
|
|
@@ -8998,6 +9034,7 @@ class CfnDBInstanceProps:
|
|
|
8998
9034
|
allocated_storage: typing.Optional[builtins.str] = None,
|
|
8999
9035
|
allow_major_version_upgrade: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
9000
9036
|
associated_roles: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDBInstance.DBInstanceRoleProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
9037
|
+
automatic_backup_replication_region: typing.Optional[builtins.str] = None,
|
|
9001
9038
|
auto_minor_version_upgrade: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
9002
9039
|
availability_zone: typing.Optional[builtins.str] = None,
|
|
9003
9040
|
backup_retention_period: typing.Optional[jsii.Number] = None,
|
|
@@ -9075,6 +9112,7 @@ class CfnDBInstanceProps:
|
|
|
9075
9112
|
:param allocated_storage: The amount of storage in gibibytes (GiB) to be initially allocated for the database instance. .. epigraph:: If any value is set in the ``Iops`` parameter, ``AllocatedStorage`` must be at least 100 GiB, which corresponds to the minimum Iops value of 1,000. If you increase the ``Iops`` value (in 1,000 IOPS increments), then you must also increase the ``AllocatedStorage`` value (in 100-GiB increments). *Amazon Aurora* Not applicable. Aurora cluster volumes automatically grow as the amount of data in your database increases, though you are only charged for the space that you use in an Aurora cluster volume. *MySQL* Constraints to the amount of storage for each storage type are the following: - General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536. - Provisioned IOPS storage (io1): Must be an integer from 100 to 65536. - Magnetic storage (standard): Must be an integer from 5 to 3072. *MariaDB* Constraints to the amount of storage for each storage type are the following: - General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536. - Provisioned IOPS storage (io1): Must be an integer from 100 to 65536. - Magnetic storage (standard): Must be an integer from 5 to 3072. *PostgreSQL* Constraints to the amount of storage for each storage type are the following: - General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536. - Provisioned IOPS storage (io1): Must be an integer from 100 to 65536. - Magnetic storage (standard): Must be an integer from 5 to 3072. *Oracle* Constraints to the amount of storage for each storage type are the following: - General Purpose (SSD) storage (gp2): Must be an integer from 20 to 65536. - Provisioned IOPS storage (io1): Must be an integer from 100 to 65536. - Magnetic storage (standard): Must be an integer from 10 to 3072. *SQL Server* Constraints to the amount of storage for each storage type are the following: - General Purpose (SSD) storage (gp2): - Enterprise and Standard editions: Must be an integer from 20 to 16384. - Web and Express editions: Must be an integer from 20 to 16384. - Provisioned IOPS storage (io1): - Enterprise and Standard editions: Must be an integer from 20 to 16384. - Web and Express editions: Must be an integer from 20 to 16384. - Magnetic storage (standard): - Enterprise and Standard editions: Must be an integer from 20 to 1024. - Web and Express editions: Must be an integer from 20 to 1024.
|
|
9076
9113
|
:param allow_major_version_upgrade: A value that indicates whether major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. Constraints: Major version upgrades must be allowed when specifying a value for the ``EngineVersion`` parameter that is a different major version than the DB instance's current version.
|
|
9077
9114
|
:param associated_roles: The AWS Identity and Access Management (IAM) roles associated with the DB instance. *Amazon Aurora* Not applicable. The associated roles are managed by the DB cluster.
|
|
9115
|
+
:param automatic_backup_replication_region: Enables replication of automated backups to a different Amazon Web Services Region.
|
|
9078
9116
|
:param auto_minor_version_upgrade: A value that indicates whether minor engine upgrades are applied automatically to the DB instance during the maintenance window. By default, minor engine upgrades are applied automatically.
|
|
9079
9117
|
:param availability_zone: The Availability Zone (AZ) where the database will be created. For information on AWS Regions and Availability Zones, see `Regions and Availability Zones <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html>`_ . For Amazon Aurora, each Aurora DB cluster hosts copies of its storage in three separate Availability Zones. Specify one of these Availability Zones. Aurora automatically chooses an appropriate Availability Zone if you don't specify one. Default: A random, system-chosen Availability Zone in the endpoint's AWS Region . Constraints: - The ``AvailabilityZone`` parameter can't be specified if the DB instance is a Multi-AZ deployment. - The specified Availability Zone must be in the same AWS Region as the current endpoint. Example: ``us-east-1d``
|
|
9080
9118
|
:param backup_retention_period: The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups. *Amazon Aurora* Not applicable. The retention period for automated backups is managed by the DB cluster. Default: 1 Constraints: - Must be a value from 0 to 35 - Can't be set to 0 if the DB instance is a source to read replicas Default: - 1
|
|
@@ -9130,9 +9168,9 @@ class CfnDBInstanceProps:
|
|
|
9130
9168
|
:param promotion_tier: The order of priority in which an Aurora Replica is promoted to the primary instance after a failure of the existing primary instance. For more information, see `Fault Tolerance for an Aurora DB Cluster <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Aurora.Managing.FaultTolerance>`_ in the *Amazon Aurora User Guide* . This setting doesn't apply to RDS Custom DB instances. Default: ``1`` Valid Values: ``0 - 15`` Default: - 1
|
|
9131
9169
|
:param publicly_accessible: Indicates whether the DB instance is an internet-facing instance. If you specify true, AWS CloudFormation creates an instance with a publicly resolvable DNS name, which resolves to a public IP address. If you specify false, AWS CloudFormation creates an internal instance with a DNS name that resolves to a private IP address. The default behavior value depends on your VPC setup and the database subnet group. For more information, see the ``PubliclyAccessible`` parameter in the `CreateDBInstance <https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html>`_ in the *Amazon RDS API Reference* .
|
|
9132
9170
|
:param replica_mode: The open mode of an Oracle read replica. For more information, see `Working with Oracle Read Replicas for Amazon RDS <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/oracle-read-replicas.html>`_ in the *Amazon RDS User Guide* . This setting is only supported in RDS for Oracle. Default: ``open-read-only`` Valid Values: ``open-read-only`` or ``mounted``
|
|
9133
|
-
:param restore_time: The date and time to restore from.
|
|
9171
|
+
:param restore_time: The date and time to restore from. Constraints: - Must be a time in Universal Coordinated Time (UTC) format. - Must be before the latest restorable time for the DB instance. - Can't be specified if the ``UseLatestRestorableTime`` parameter is enabled. Example: ``2009-09-07T23:45:00Z``
|
|
9134
9172
|
:param source_db_cluster_identifier: The identifier of the Multi-AZ DB cluster that will act as the source for the read replica. Each DB cluster can have up to 15 read replicas. Constraints: - Must be the identifier of an existing Multi-AZ DB cluster. - Can't be specified if the ``SourceDBInstanceIdentifier`` parameter is also specified. - The specified DB cluster must have automatic backups enabled, that is, its backup retention period must be greater than 0. - The source DB cluster must be in the same AWS Region as the read replica. Cross-Region replication isn't supported.
|
|
9135
|
-
:param source_db_instance_automated_backups_arn: The Amazon Resource Name (ARN) of the replicated automated backups from which to restore, for example, ``arn:aws:rds:
|
|
9173
|
+
:param source_db_instance_automated_backups_arn: The Amazon Resource Name (ARN) of the replicated automated backups from which to restore, for example, ``arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE`` . This setting doesn't apply to RDS Custom.
|
|
9136
9174
|
:param source_db_instance_identifier: If you want to create a read replica DB instance, specify the ID of the source DB instance. Each DB instance can have a limited number of read replicas. For more information, see `Working with Read Replicas <https://docs.aws.amazon.com/AmazonRDS/latest/DeveloperGuide/USER_ReadRepl.html>`_ in the *Amazon RDS User Guide* . For information about constraints that apply to DB instance identifiers, see `Naming constraints in Amazon RDS <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Limits.html#RDS_Limits.Constraints>`_ in the *Amazon RDS User Guide* . The ``SourceDBInstanceIdentifier`` property determines whether a DB instance is a read replica. If you remove the ``SourceDBInstanceIdentifier`` property from your template and then update your stack, AWS CloudFormation promotes the Read Replica to a standalone DB instance. .. epigraph:: - If you specify a source DB instance that uses VPC security groups, we recommend that you specify the ``VPCSecurityGroups`` property. If you don't specify the property, the read replica inherits the value of the ``VPCSecurityGroups`` property from the source DB when you create the replica. However, if you update the stack, AWS CloudFormation reverts the replica's ``VPCSecurityGroups`` property to the default value because it's not defined in the stack's template. This change might cause unexpected issues. - Read replicas don't support deletion policies. AWS CloudFormation ignores any deletion policy that's associated with a read replica. - If you specify ``SourceDBInstanceIdentifier`` , don't specify the ``DBSnapshotIdentifier`` property. You can't create a read replica from a snapshot. - Don't set the ``BackupRetentionPeriod`` , ``DBName`` , ``MasterUsername`` , ``MasterUserPassword`` , and ``PreferredBackupWindow`` properties. The database attributes are inherited from the source DB instance, and backups are disabled for read replicas. - If the source DB instance is in a different region than the read replica, specify the source region in ``SourceRegion`` , and specify an ARN for a valid DB instance in ``SourceDBInstanceIdentifier`` . For more information, see `Constructing a Amazon RDS Amazon Resource Name (ARN) <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN>`_ in the *Amazon RDS User Guide* . - For DB instances in Amazon Aurora clusters, don't specify this property. Amazon RDS automatically assigns writer and reader DB instances.
|
|
9137
9175
|
:param source_dbi_resource_id: The resource ID of the source DB instance from which to restore.
|
|
9138
9176
|
:param source_region: The ID of the region that contains the source DB instance for the read replica.
|
|
@@ -9144,7 +9182,7 @@ class CfnDBInstanceProps:
|
|
|
9144
9182
|
:param tde_credential_password: (deprecated) The password for the given ARN from the key store in order to access the device.
|
|
9145
9183
|
:param timezone: The time zone of the DB instance. The time zone parameter is currently supported only by `Microsoft SQL Server <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.TimeZone>`_ .
|
|
9146
9184
|
:param use_default_processor_features: Specifies whether the DB instance class of the DB instance uses its default processor features. This setting doesn't apply to RDS Custom DB instances.
|
|
9147
|
-
:param use_latest_restorable_time:
|
|
9185
|
+
:param use_latest_restorable_time: Specifies whether the DB instance is restored from the latest backup time. By default, the DB instance isn't restored from the latest backup time. Constraints: - Can't be specified if the ``RestoreTime`` parameter is provided.
|
|
9148
9186
|
:param vpc_security_groups: A list of the VPC security group IDs to assign to the DB instance. The list can include both the physical IDs of existing VPC security groups and references to `AWS::EC2::SecurityGroup <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-security-group.html>`_ resources created in the template. If you plan to update the resource, don't specify VPC security groups in a shared VPC. If you set ``VPCSecurityGroups`` , you must not set ```DBSecurityGroups`` <https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbsecuritygroups>`_ , and vice versa. .. epigraph:: You can migrate a DB instance in your stack from an RDS DB security group to a VPC security group, but keep the following in mind: - You can't revert to using an RDS security group after you establish a VPC security group membership. - When you migrate your DB instance to VPC security groups, if your stack update rolls back because the DB instance update fails or because an update fails in another AWS CloudFormation resource, the rollback fails because it can't revert to an RDS security group. - To use the properties that are available when you use a VPC security group, you must recreate the DB instance. If you don't, AWS CloudFormation submits only the property values that are listed in the ```DBSecurityGroups`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-dbsecuritygroups>`_ property. To avoid this situation, migrate your DB instance to using VPC security groups only when that is the only change in your stack template. *Amazon Aurora* Not applicable. The associated list of EC2 VPC security groups is managed by the DB cluster. If specified, the setting must match the DB cluster setting.
|
|
9149
9187
|
|
|
9150
9188
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html
|
|
@@ -9163,6 +9201,7 @@ class CfnDBInstanceProps:
|
|
|
9163
9201
|
feature_name="featureName",
|
|
9164
9202
|
role_arn="roleArn"
|
|
9165
9203
|
)],
|
|
9204
|
+
automatic_backup_replication_region="automaticBackupReplicationRegion",
|
|
9166
9205
|
auto_minor_version_upgrade=False,
|
|
9167
9206
|
availability_zone="availabilityZone",
|
|
9168
9207
|
backup_retention_period=123,
|
|
@@ -9257,6 +9296,7 @@ class CfnDBInstanceProps:
|
|
|
9257
9296
|
check_type(argname="argument allocated_storage", value=allocated_storage, expected_type=type_hints["allocated_storage"])
|
|
9258
9297
|
check_type(argname="argument allow_major_version_upgrade", value=allow_major_version_upgrade, expected_type=type_hints["allow_major_version_upgrade"])
|
|
9259
9298
|
check_type(argname="argument associated_roles", value=associated_roles, expected_type=type_hints["associated_roles"])
|
|
9299
|
+
check_type(argname="argument automatic_backup_replication_region", value=automatic_backup_replication_region, expected_type=type_hints["automatic_backup_replication_region"])
|
|
9260
9300
|
check_type(argname="argument auto_minor_version_upgrade", value=auto_minor_version_upgrade, expected_type=type_hints["auto_minor_version_upgrade"])
|
|
9261
9301
|
check_type(argname="argument availability_zone", value=availability_zone, expected_type=type_hints["availability_zone"])
|
|
9262
9302
|
check_type(argname="argument backup_retention_period", value=backup_retention_period, expected_type=type_hints["backup_retention_period"])
|
|
@@ -9335,6 +9375,8 @@ class CfnDBInstanceProps:
|
|
|
9335
9375
|
self._values["allow_major_version_upgrade"] = allow_major_version_upgrade
|
|
9336
9376
|
if associated_roles is not None:
|
|
9337
9377
|
self._values["associated_roles"] = associated_roles
|
|
9378
|
+
if automatic_backup_replication_region is not None:
|
|
9379
|
+
self._values["automatic_backup_replication_region"] = automatic_backup_replication_region
|
|
9338
9380
|
if auto_minor_version_upgrade is not None:
|
|
9339
9381
|
self._values["auto_minor_version_upgrade"] = auto_minor_version_upgrade
|
|
9340
9382
|
if availability_zone is not None:
|
|
@@ -9571,6 +9613,15 @@ class CfnDBInstanceProps:
|
|
|
9571
9613
|
result = self._values.get("associated_roles")
|
|
9572
9614
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnDBInstance.DBInstanceRoleProperty]]]], result)
|
|
9573
9615
|
|
|
9616
|
+
@builtins.property
|
|
9617
|
+
def automatic_backup_replication_region(self) -> typing.Optional[builtins.str]:
|
|
9618
|
+
'''Enables replication of automated backups to a different Amazon Web Services Region.
|
|
9619
|
+
|
|
9620
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-automaticbackupreplicationregion
|
|
9621
|
+
'''
|
|
9622
|
+
result = self._values.get("automatic_backup_replication_region")
|
|
9623
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
9624
|
+
|
|
9574
9625
|
@builtins.property
|
|
9575
9626
|
def auto_minor_version_upgrade(
|
|
9576
9627
|
self,
|
|
@@ -10685,12 +10736,11 @@ class CfnDBInstanceProps:
|
|
|
10685
10736
|
def restore_time(self) -> typing.Optional[builtins.str]:
|
|
10686
10737
|
'''The date and time to restore from.
|
|
10687
10738
|
|
|
10688
|
-
Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
|
|
10689
|
-
|
|
10690
10739
|
Constraints:
|
|
10691
10740
|
|
|
10692
|
-
- Must be
|
|
10693
|
-
-
|
|
10741
|
+
- Must be a time in Universal Coordinated Time (UTC) format.
|
|
10742
|
+
- Must be before the latest restorable time for the DB instance.
|
|
10743
|
+
- Can't be specified if the ``UseLatestRestorableTime`` parameter is enabled.
|
|
10694
10744
|
|
|
10695
10745
|
Example: ``2009-09-07T23:45:00Z``
|
|
10696
10746
|
|
|
@@ -10719,7 +10769,7 @@ class CfnDBInstanceProps:
|
|
|
10719
10769
|
|
|
10720
10770
|
@builtins.property
|
|
10721
10771
|
def source_db_instance_automated_backups_arn(self) -> typing.Optional[builtins.str]:
|
|
10722
|
-
'''The Amazon Resource Name (ARN) of the replicated automated backups from which to restore, for example, ``arn:aws:rds:
|
|
10772
|
+
'''The Amazon Resource Name (ARN) of the replicated automated backups from which to restore, for example, ``arn:aws:rds:us-east-1:123456789012:auto-backup:ab-L2IJCEXJP7XQ7HOJ4SIEXAMPLE`` .
|
|
10723
10773
|
|
|
10724
10774
|
This setting doesn't apply to RDS Custom.
|
|
10725
10775
|
|
|
@@ -10887,11 +10937,13 @@ class CfnDBInstanceProps:
|
|
|
10887
10937
|
def use_latest_restorable_time(
|
|
10888
10938
|
self,
|
|
10889
10939
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
10890
|
-
'''
|
|
10940
|
+
'''Specifies whether the DB instance is restored from the latest backup time.
|
|
10891
10941
|
|
|
10892
10942
|
By default, the DB instance isn't restored from the latest backup time.
|
|
10893
10943
|
|
|
10894
|
-
Constraints:
|
|
10944
|
+
Constraints:
|
|
10945
|
+
|
|
10946
|
+
- Can't be specified if the ``RestoreTime`` parameter is provided.
|
|
10895
10947
|
|
|
10896
10948
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-uselatestrestorabletime
|
|
10897
10949
|
'''
|
|
@@ -17116,12 +17168,17 @@ class CredentialsFromUsernameOptions(CredentialsBaseOptions):
|
|
|
17116
17168
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
17117
17169
|
engine=rds.DatabaseClusterEngine.aurora_postgres(version=rds.AuroraPostgresEngineVersion.VER_15_2),
|
|
17118
17170
|
credentials=rds.Credentials.from_username("adminuser", password=SecretValue.unsafe_plain_text("7959866cacc02c2d243ecfe177464fe6")),
|
|
17119
|
-
|
|
17120
|
-
|
|
17121
|
-
|
|
17122
|
-
|
|
17171
|
+
writer=rds.ClusterInstance.provisioned("writer",
|
|
17172
|
+
publicly_accessible=False
|
|
17173
|
+
),
|
|
17174
|
+
readers=[
|
|
17175
|
+
rds.ClusterInstance.provisioned("reader")
|
|
17176
|
+
],
|
|
17177
|
+
storage_type=rds.DBClusterStorageType.AURORA_IOPT1,
|
|
17178
|
+
vpc_subnets=ec2.SubnetSelection(
|
|
17179
|
+
subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS
|
|
17123
17180
|
),
|
|
17124
|
-
|
|
17181
|
+
vpc=vpc
|
|
17125
17182
|
)
|
|
17126
17183
|
'''
|
|
17127
17184
|
if __debug__:
|
|
@@ -17217,12 +17274,17 @@ class DBClusterStorageType(enum.Enum):
|
|
|
17217
17274
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
17218
17275
|
engine=rds.DatabaseClusterEngine.aurora_postgres(version=rds.AuroraPostgresEngineVersion.VER_15_2),
|
|
17219
17276
|
credentials=rds.Credentials.from_username("adminuser", password=SecretValue.unsafe_plain_text("7959866cacc02c2d243ecfe177464fe6")),
|
|
17220
|
-
|
|
17221
|
-
|
|
17222
|
-
|
|
17223
|
-
|
|
17277
|
+
writer=rds.ClusterInstance.provisioned("writer",
|
|
17278
|
+
publicly_accessible=False
|
|
17279
|
+
),
|
|
17280
|
+
readers=[
|
|
17281
|
+
rds.ClusterInstance.provisioned("reader")
|
|
17282
|
+
],
|
|
17283
|
+
storage_type=rds.DBClusterStorageType.AURORA_IOPT1,
|
|
17284
|
+
vpc_subnets=ec2.SubnetSelection(
|
|
17285
|
+
subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS
|
|
17224
17286
|
),
|
|
17225
|
-
|
|
17287
|
+
vpc=vpc
|
|
17226
17288
|
)
|
|
17227
17289
|
'''
|
|
17228
17290
|
|
|
@@ -17439,7 +17501,7 @@ class DatabaseClusterEngine(
|
|
|
17439
17501
|
# vpc: ec2.Vpc
|
|
17440
17502
|
|
|
17441
17503
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
17442
|
-
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.
|
|
17504
|
+
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_01_0),
|
|
17443
17505
|
credentials=rds.Credentials.from_generated_secret("clusteradmin"), # Optional - will default to 'admin' username and generated password
|
|
17444
17506
|
writer=rds.ClusterInstance.provisioned("writer",
|
|
17445
17507
|
publicly_accessible=False
|
|
@@ -18428,7 +18490,7 @@ class DatabaseClusterProps:
|
|
|
18428
18490
|
# vpc: ec2.Vpc
|
|
18429
18491
|
|
|
18430
18492
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
18431
|
-
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.
|
|
18493
|
+
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_01_0),
|
|
18432
18494
|
writer=rds.ClusterInstance.provisioned("writer",
|
|
18433
18495
|
instance_type=ec2.InstanceType.of(ec2.InstanceClass.R6G, ec2.InstanceSize.XLARGE4)
|
|
18434
18496
|
),
|
|
@@ -30542,7 +30604,7 @@ class ProvisionedClusterInstanceProps(ClusterInstanceOptions):
|
|
|
30542
30604
|
# vpc: ec2.Vpc
|
|
30543
30605
|
|
|
30544
30606
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
30545
|
-
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.
|
|
30607
|
+
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_01_0),
|
|
30546
30608
|
writer=rds.ClusterInstance.provisioned("writer",
|
|
30547
30609
|
instance_type=ec2.InstanceType.of(ec2.InstanceClass.R6G, ec2.InstanceSize.XLARGE4)
|
|
30548
30610
|
),
|
|
@@ -32707,7 +32769,7 @@ class ServerlessV2ClusterInstanceProps(ClusterInstanceOptions):
|
|
|
32707
32769
|
# vpc: ec2.Vpc
|
|
32708
32770
|
|
|
32709
32771
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
32710
|
-
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.
|
|
32772
|
+
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_01_0),
|
|
32711
32773
|
writer=rds.ClusterInstance.serverless_v2("writer"),
|
|
32712
32774
|
readers=[
|
|
32713
32775
|
# will be put in promotion tier 1 and will scale with the writer
|
|
@@ -39289,7 +39351,7 @@ class DatabaseCluster(
|
|
|
39289
39351
|
# vpc: ec2.Vpc
|
|
39290
39352
|
|
|
39291
39353
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
39292
|
-
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.
|
|
39354
|
+
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_01_0),
|
|
39293
39355
|
writer=rds.ClusterInstance.provisioned("writer",
|
|
39294
39356
|
instance_type=ec2.InstanceType.of(ec2.InstanceClass.R6G, ec2.InstanceSize.XLARGE4)
|
|
39295
39357
|
),
|
|
@@ -41057,6 +41119,7 @@ def _typecheckingstub__255b0779ca741853674876540bf77279f6293bea05de2cd18724d2b92
|
|
|
41057
41119
|
allocated_storage: typing.Optional[builtins.str] = None,
|
|
41058
41120
|
allow_major_version_upgrade: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
41059
41121
|
associated_roles: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDBInstance.DBInstanceRoleProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
41122
|
+
automatic_backup_replication_region: typing.Optional[builtins.str] = None,
|
|
41060
41123
|
auto_minor_version_upgrade: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
41061
41124
|
availability_zone: typing.Optional[builtins.str] = None,
|
|
41062
41125
|
backup_retention_period: typing.Optional[jsii.Number] = None,
|
|
@@ -41162,6 +41225,12 @@ def _typecheckingstub__4ce8e79d061f4d460ac08196091e00285779b468080063faf9f5f8f74
|
|
|
41162
41225
|
"""Type checking stubs"""
|
|
41163
41226
|
pass
|
|
41164
41227
|
|
|
41228
|
+
def _typecheckingstub__570af392a4da1d3a00accc2e05674065be4ff1306321cb7944dc793fd8d479ad(
|
|
41229
|
+
value: typing.Optional[builtins.str],
|
|
41230
|
+
) -> None:
|
|
41231
|
+
"""Type checking stubs"""
|
|
41232
|
+
pass
|
|
41233
|
+
|
|
41165
41234
|
def _typecheckingstub__e378bc6005eb441ad86673219aa0312b39d55a509b73b385123b215a0aeff4c6(
|
|
41166
41235
|
value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
|
|
41167
41236
|
) -> None:
|
|
@@ -41634,6 +41703,7 @@ def _typecheckingstub__3bddb1be0bd1f1699e3a084c5859d94d8879ff15011f2f2eaac29ec16
|
|
|
41634
41703
|
allocated_storage: typing.Optional[builtins.str] = None,
|
|
41635
41704
|
allow_major_version_upgrade: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
41636
41705
|
associated_roles: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDBInstance.DBInstanceRoleProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
41706
|
+
automatic_backup_replication_region: typing.Optional[builtins.str] = None,
|
|
41637
41707
|
auto_minor_version_upgrade: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
41638
41708
|
availability_zone: typing.Optional[builtins.str] = None,
|
|
41639
41709
|
backup_retention_period: typing.Optional[jsii.Number] = None,
|
|
@@ -22968,7 +22968,7 @@ class CfnModelPackage(
|
|
|
22968
22968
|
:param model_package_status_details: Specifies the validation and image scan statuses of the model package.
|
|
22969
22969
|
:param model_package_version: The version number of a versioned model.
|
|
22970
22970
|
:param sample_payload_url: The Amazon Simple Storage Service path where the sample payload are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).
|
|
22971
|
-
:param skip_model_validation:
|
|
22971
|
+
:param skip_model_validation: Indicates if you want to skip model validation.
|
|
22972
22972
|
:param source_algorithm_specification: A list of algorithms that were used to create a model package.
|
|
22973
22973
|
:param tags: A list of the tags associated with the model package. For more information, see `Tagging AWS resources <https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html>`_ in the *AWS General Reference Guide* .
|
|
22974
22974
|
:param task: The machine learning task your model package accomplishes. Common machine learning tasks include object detection and image classification.
|
|
@@ -23379,6 +23379,7 @@ class CfnModelPackage(
|
|
|
23379
23379
|
@builtins.property
|
|
23380
23380
|
@jsii.member(jsii_name="skipModelValidation")
|
|
23381
23381
|
def skip_model_validation(self) -> typing.Optional[builtins.str]:
|
|
23382
|
+
'''Indicates if you want to skip model validation.'''
|
|
23382
23383
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "skipModelValidation"))
|
|
23383
23384
|
|
|
23384
23385
|
@skip_model_validation.setter
|
|
@@ -27061,7 +27062,7 @@ class CfnModelPackageProps:
|
|
|
27061
27062
|
:param model_package_status_details: Specifies the validation and image scan statuses of the model package.
|
|
27062
27063
|
:param model_package_version: The version number of a versioned model.
|
|
27063
27064
|
:param sample_payload_url: The Amazon Simple Storage Service path where the sample payload are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).
|
|
27064
|
-
:param skip_model_validation:
|
|
27065
|
+
:param skip_model_validation: Indicates if you want to skip model validation.
|
|
27065
27066
|
:param source_algorithm_specification: A list of algorithms that were used to create a model package.
|
|
27066
27067
|
:param tags: A list of the tags associated with the model package. For more information, see `Tagging AWS resources <https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html>`_ in the *AWS General Reference Guide* .
|
|
27067
27068
|
:param task: The machine learning task your model package accomplishes. Common machine learning tasks include object detection and image classification.
|
|
@@ -27659,7 +27660,8 @@ class CfnModelPackageProps:
|
|
|
27659
27660
|
|
|
27660
27661
|
@builtins.property
|
|
27661
27662
|
def skip_model_validation(self) -> typing.Optional[builtins.str]:
|
|
27662
|
-
'''
|
|
27663
|
+
'''Indicates if you want to skip model validation.
|
|
27664
|
+
|
|
27663
27665
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-modelpackage.html#cfn-sagemaker-modelpackage-skipmodelvalidation
|
|
27664
27666
|
'''
|
|
27665
27667
|
result = self._values.get("skip_model_validation")
|