aws-cdk-lib 2.209.1__py3-none-any.whl → 2.211.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +6 -11
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.209.1.jsii.tgz → aws-cdk-lib@2.211.0.jsii.tgz} +0 -0
- aws_cdk/aws_amazonmq/__init__.py +2 -1
- aws_cdk/aws_appconfig/__init__.py +9 -0
- aws_cdk/aws_arcregionswitch/__init__.py +4962 -0
- aws_cdk/aws_athena/__init__.py +23 -19
- aws_cdk/aws_autoscaling/__init__.py +6 -6
- aws_cdk/aws_batch/__init__.py +721 -51
- aws_cdk/aws_cassandra/__init__.py +28 -1
- aws_cdk/aws_cloudfront/__init__.py +20 -8
- aws_cdk/aws_cognito/__init__.py +9 -2
- aws_cdk/aws_datazone/__init__.py +118 -77
- aws_cdk/aws_dax/__init__.py +39 -0
- aws_cdk/aws_deadline/__init__.py +155 -7
- aws_cdk/aws_docdb/__init__.py +20 -11
- aws_cdk/aws_dynamodb/__init__.py +160 -20
- aws_cdk/aws_ec2/__init__.py +978 -256
- aws_cdk/aws_ecr/__init__.py +274 -0
- aws_cdk/aws_ecs/__init__.py +335 -220
- aws_cdk/aws_eks/__init__.py +51 -3
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +9 -7
- aws_cdk/aws_entityresolution/__init__.py +240 -45
- aws_cdk/aws_evs/__init__.py +20 -45
- aws_cdk/aws_iot/__init__.py +387 -0
- aws_cdk/aws_iotsitewise/__init__.py +1247 -139
- aws_cdk/aws_ivs/__init__.py +443 -33
- aws_cdk/aws_kinesisfirehose/__init__.py +2 -0
- aws_cdk/aws_kms/__init__.py +15 -0
- aws_cdk/aws_lambda/__init__.py +3 -3
- aws_cdk/aws_lightsail/__init__.py +590 -0
- aws_cdk/aws_logs/__init__.py +97 -3
- aws_cdk/aws_medialive/__init__.py +270 -7
- aws_cdk/aws_mediapackagev2/__init__.py +204 -6
- aws_cdk/aws_neptune/__init__.py +41 -2
- aws_cdk/aws_networkfirewall/__init__.py +490 -134
- aws_cdk/aws_observabilityadmin/__init__.py +1468 -0
- aws_cdk/aws_opensearchserverless/__init__.py +2 -2
- aws_cdk/aws_opsworks/__init__.py +125 -125
- aws_cdk/aws_opsworkscm/__init__.py +1 -53
- aws_cdk/aws_pcs/__init__.py +36 -0
- aws_cdk/aws_qbusiness/__init__.py +3 -3
- aws_cdk/aws_quicksight/__init__.py +107 -0
- aws_cdk/aws_rds/__init__.py +274 -0
- aws_cdk/aws_s3/__init__.py +56 -1
- aws_cdk/aws_s3express/__init__.py +52 -1
- aws_cdk/aws_sagemaker/__init__.py +4033 -218
- aws_cdk/aws_ses/__init__.py +172 -9
- aws_cdk/aws_ssm/__init__.py +8 -4
- aws_cdk/aws_verifiedpermissions/__init__.py +23 -2
- aws_cdk/aws_wisdom/__init__.py +2 -2
- aws_cdk/aws_workspacesweb/__init__.py +949 -157
- {aws_cdk_lib-2.209.1.dist-info → aws_cdk_lib-2.211.0.dist-info}/METADATA +8 -8
- {aws_cdk_lib-2.209.1.dist-info → aws_cdk_lib-2.211.0.dist-info}/RECORD +58 -56
- {aws_cdk_lib-2.209.1.dist-info → aws_cdk_lib-2.211.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.209.1.dist-info → aws_cdk_lib-2.211.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.209.1.dist-info → aws_cdk_lib-2.211.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.209.1.dist-info → aws_cdk_lib-2.211.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_rds/__init__.py
CHANGED
|
@@ -5426,6 +5426,7 @@ class CfnDBCluster(
|
|
|
5426
5426
|
),
|
|
5427
5427
|
snapshot_identifier="snapshotIdentifier",
|
|
5428
5428
|
source_db_cluster_identifier="sourceDbClusterIdentifier",
|
|
5429
|
+
source_db_cluster_resource_id="sourceDbClusterResourceId",
|
|
5429
5430
|
source_region="sourceRegion",
|
|
5430
5431
|
storage_encrypted=False,
|
|
5431
5432
|
storage_type="storageType",
|
|
@@ -5496,6 +5497,7 @@ class CfnDBCluster(
|
|
|
5496
5497
|
serverless_v2_scaling_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDBCluster.ServerlessV2ScalingConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5497
5498
|
snapshot_identifier: typing.Optional[builtins.str] = None,
|
|
5498
5499
|
source_db_cluster_identifier: typing.Optional[builtins.str] = None,
|
|
5500
|
+
source_db_cluster_resource_id: typing.Optional[builtins.str] = None,
|
|
5499
5501
|
source_region: typing.Optional[builtins.str] = None,
|
|
5500
5502
|
storage_encrypted: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
5501
5503
|
storage_type: typing.Optional[builtins.str] = None,
|
|
@@ -5559,6 +5561,7 @@ class CfnDBCluster(
|
|
|
5559
5561
|
:param serverless_v2_scaling_configuration: The scaling configuration of an Aurora Serverless V2 DB cluster. This property is only supported for Aurora Serverless v2. For Aurora Serverless v1, Use the ``ScalingConfiguration`` property. Valid for: Aurora Serverless v2 DB clusters only
|
|
5560
5562
|
:param snapshot_identifier: The identifier for the DB snapshot or DB cluster snapshot to restore from. You can use either the name or the Amazon Resource Name (ARN) to specify a DB cluster snapshot. However, you can use only the ARN to specify a DB snapshot. After you restore a DB cluster with a ``SnapshotIdentifier`` property, you must specify the same ``SnapshotIdentifier`` property for any future updates to the DB cluster. When you specify this property for an update, the DB cluster is not restored from the snapshot again, and the data in the database is not changed. However, if you don't specify the ``SnapshotIdentifier`` property, an empty DB cluster is created, and the original DB cluster is deleted. If you specify a property that is different from the previous snapshot restore property, a new DB cluster is restored from the specified ``SnapshotIdentifier`` property, and the original DB cluster is deleted. If you specify the ``SnapshotIdentifier`` property to restore a DB cluster (as opposed to specifying it for DB cluster updates), then don't specify the following properties: - ``GlobalClusterIdentifier`` - ``MasterUsername`` - ``MasterUserPassword`` - ``ReplicationSourceIdentifier`` - ``RestoreType`` - ``SourceDBClusterIdentifier`` - ``SourceRegion`` - ``StorageEncrypted`` (for an encrypted snapshot) - ``UseLatestRestorableTime`` Constraints: - Must match the identifier of an existing Snapshot. Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
5561
5563
|
:param source_db_cluster_identifier: When restoring a DB cluster to a point in time, the identifier of the source DB cluster from which to restore. Constraints: - Must match the identifier of an existing DBCluster. - Cannot be specified if ``SourceDbClusterResourceId`` is specified. You must specify either ``SourceDBClusterIdentifier`` or ``SourceDbClusterResourceId`` , but not both. Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
5564
|
+
:param source_db_cluster_resource_id: The resource ID of the source DB cluster from which to restore.
|
|
5562
5565
|
:param source_region: The AWS Region which contains the source DB cluster when replicating a DB cluster. For example, ``us-east-1`` . Valid for: Aurora DB clusters only
|
|
5563
5566
|
:param storage_encrypted: Indicates whether the DB cluster is encrypted. If you specify the ``KmsKeyId`` property, then you must enable encryption. If you specify the ``SourceDBClusterIdentifier`` property, don't specify this property. The value is inherited from the source DB cluster, and if the DB cluster is encrypted, the specified ``KmsKeyId`` property is used. If you specify the ``SnapshotIdentifier`` and the specified snapshot is encrypted, don't specify this property. The value is inherited from the snapshot, and the specified ``KmsKeyId`` property is used. If you specify the ``SnapshotIdentifier`` and the specified snapshot isn't encrypted, you can use this property to specify that the restored DB cluster is encrypted. Specify the ``KmsKeyId`` property for the KMS key to use for encryption. If you don't want the restored DB cluster to be encrypted, then don't set this property or set it to ``false`` . .. epigraph:: If you specify both the ``StorageEncrypted`` and ``SnapshotIdentifier`` properties without specifying the ``KmsKeyId`` property, then the restored DB cluster inherits the encryption settings from the DB snapshot that provide. Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
5564
5567
|
:param storage_type: The storage type to associate with the DB cluster. For information on storage types for Aurora DB clusters, see `Storage configurations for Amazon Aurora DB clusters <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type>`_ . For information on storage types for Multi-AZ DB clusters, see `Settings for creating Multi-AZ DB clusters <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings>`_ . This setting is required to create a Multi-AZ DB cluster. When specified for a Multi-AZ DB cluster, a value for the ``Iops`` parameter is required. Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters Valid Values: - Aurora DB clusters - ``aurora | aurora-iopt1`` - Multi-AZ DB clusters - ``io1 | io2 | gp3`` Default: - Aurora DB clusters - ``aurora`` - Multi-AZ DB clusters - ``io1`` .. epigraph:: When you create an Aurora DB cluster with the storage type set to ``aurora-iopt1`` , the storage type is returned in the response. The storage type isn't returned when you set it to ``aurora`` .
|
|
@@ -5624,6 +5627,7 @@ class CfnDBCluster(
|
|
|
5624
5627
|
serverless_v2_scaling_configuration=serverless_v2_scaling_configuration,
|
|
5625
5628
|
snapshot_identifier=snapshot_identifier,
|
|
5626
5629
|
source_db_cluster_identifier=source_db_cluster_identifier,
|
|
5630
|
+
source_db_cluster_resource_id=source_db_cluster_resource_id,
|
|
5627
5631
|
source_region=source_region,
|
|
5628
5632
|
storage_encrypted=storage_encrypted,
|
|
5629
5633
|
storage_type=storage_type,
|
|
@@ -6577,6 +6581,22 @@ class CfnDBCluster(
|
|
|
6577
6581
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
6578
6582
|
jsii.set(self, "sourceDbClusterIdentifier", value) # pyright: ignore[reportArgumentType]
|
|
6579
6583
|
|
|
6584
|
+
@builtins.property
|
|
6585
|
+
@jsii.member(jsii_name="sourceDbClusterResourceId")
|
|
6586
|
+
def source_db_cluster_resource_id(self) -> typing.Optional[builtins.str]:
|
|
6587
|
+
'''The resource ID of the source DB cluster from which to restore.'''
|
|
6588
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "sourceDbClusterResourceId"))
|
|
6589
|
+
|
|
6590
|
+
@source_db_cluster_resource_id.setter
|
|
6591
|
+
def source_db_cluster_resource_id(
|
|
6592
|
+
self,
|
|
6593
|
+
value: typing.Optional[builtins.str],
|
|
6594
|
+
) -> None:
|
|
6595
|
+
if __debug__:
|
|
6596
|
+
type_hints = typing.get_type_hints(_typecheckingstub__08ac64c9167e517f4b6604f3b8380f98125ef714845161ef2afeeebf02f97b3b)
|
|
6597
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
6598
|
+
jsii.set(self, "sourceDbClusterResourceId", value) # pyright: ignore[reportArgumentType]
|
|
6599
|
+
|
|
6580
6600
|
@builtins.property
|
|
6581
6601
|
@jsii.member(jsii_name="sourceRegion")
|
|
6582
6602
|
def source_region(self) -> typing.Optional[builtins.str]:
|
|
@@ -7648,6 +7668,7 @@ class CfnDBClusterParameterGroupProps:
|
|
|
7648
7668
|
"serverless_v2_scaling_configuration": "serverlessV2ScalingConfiguration",
|
|
7649
7669
|
"snapshot_identifier": "snapshotIdentifier",
|
|
7650
7670
|
"source_db_cluster_identifier": "sourceDbClusterIdentifier",
|
|
7671
|
+
"source_db_cluster_resource_id": "sourceDbClusterResourceId",
|
|
7651
7672
|
"source_region": "sourceRegion",
|
|
7652
7673
|
"storage_encrypted": "storageEncrypted",
|
|
7653
7674
|
"storage_type": "storageType",
|
|
@@ -7713,6 +7734,7 @@ class CfnDBClusterProps:
|
|
|
7713
7734
|
serverless_v2_scaling_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDBCluster.ServerlessV2ScalingConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7714
7735
|
snapshot_identifier: typing.Optional[builtins.str] = None,
|
|
7715
7736
|
source_db_cluster_identifier: typing.Optional[builtins.str] = None,
|
|
7737
|
+
source_db_cluster_resource_id: typing.Optional[builtins.str] = None,
|
|
7716
7738
|
source_region: typing.Optional[builtins.str] = None,
|
|
7717
7739
|
storage_encrypted: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
7718
7740
|
storage_type: typing.Optional[builtins.str] = None,
|
|
@@ -7775,6 +7797,7 @@ class CfnDBClusterProps:
|
|
|
7775
7797
|
:param serverless_v2_scaling_configuration: The scaling configuration of an Aurora Serverless V2 DB cluster. This property is only supported for Aurora Serverless v2. For Aurora Serverless v1, Use the ``ScalingConfiguration`` property. Valid for: Aurora Serverless v2 DB clusters only
|
|
7776
7798
|
:param snapshot_identifier: The identifier for the DB snapshot or DB cluster snapshot to restore from. You can use either the name or the Amazon Resource Name (ARN) to specify a DB cluster snapshot. However, you can use only the ARN to specify a DB snapshot. After you restore a DB cluster with a ``SnapshotIdentifier`` property, you must specify the same ``SnapshotIdentifier`` property for any future updates to the DB cluster. When you specify this property for an update, the DB cluster is not restored from the snapshot again, and the data in the database is not changed. However, if you don't specify the ``SnapshotIdentifier`` property, an empty DB cluster is created, and the original DB cluster is deleted. If you specify a property that is different from the previous snapshot restore property, a new DB cluster is restored from the specified ``SnapshotIdentifier`` property, and the original DB cluster is deleted. If you specify the ``SnapshotIdentifier`` property to restore a DB cluster (as opposed to specifying it for DB cluster updates), then don't specify the following properties: - ``GlobalClusterIdentifier`` - ``MasterUsername`` - ``MasterUserPassword`` - ``ReplicationSourceIdentifier`` - ``RestoreType`` - ``SourceDBClusterIdentifier`` - ``SourceRegion`` - ``StorageEncrypted`` (for an encrypted snapshot) - ``UseLatestRestorableTime`` Constraints: - Must match the identifier of an existing Snapshot. Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
7777
7799
|
:param source_db_cluster_identifier: When restoring a DB cluster to a point in time, the identifier of the source DB cluster from which to restore. Constraints: - Must match the identifier of an existing DBCluster. - Cannot be specified if ``SourceDbClusterResourceId`` is specified. You must specify either ``SourceDBClusterIdentifier`` or ``SourceDbClusterResourceId`` , but not both. Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
7800
|
+
:param source_db_cluster_resource_id: The resource ID of the source DB cluster from which to restore.
|
|
7778
7801
|
:param source_region: The AWS Region which contains the source DB cluster when replicating a DB cluster. For example, ``us-east-1`` . Valid for: Aurora DB clusters only
|
|
7779
7802
|
:param storage_encrypted: Indicates whether the DB cluster is encrypted. If you specify the ``KmsKeyId`` property, then you must enable encryption. If you specify the ``SourceDBClusterIdentifier`` property, don't specify this property. The value is inherited from the source DB cluster, and if the DB cluster is encrypted, the specified ``KmsKeyId`` property is used. If you specify the ``SnapshotIdentifier`` and the specified snapshot is encrypted, don't specify this property. The value is inherited from the snapshot, and the specified ``KmsKeyId`` property is used. If you specify the ``SnapshotIdentifier`` and the specified snapshot isn't encrypted, you can use this property to specify that the restored DB cluster is encrypted. Specify the ``KmsKeyId`` property for the KMS key to use for encryption. If you don't want the restored DB cluster to be encrypted, then don't set this property or set it to ``false`` . .. epigraph:: If you specify both the ``StorageEncrypted`` and ``SnapshotIdentifier`` properties without specifying the ``KmsKeyId`` property, then the restored DB cluster inherits the encryption settings from the DB snapshot that provide. Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
7780
7803
|
:param storage_type: The storage type to associate with the DB cluster. For information on storage types for Aurora DB clusters, see `Storage configurations for Amazon Aurora DB clusters <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type>`_ . For information on storage types for Multi-AZ DB clusters, see `Settings for creating Multi-AZ DB clusters <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings>`_ . This setting is required to create a Multi-AZ DB cluster. When specified for a Multi-AZ DB cluster, a value for the ``Iops`` parameter is required. Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters Valid Values: - Aurora DB clusters - ``aurora | aurora-iopt1`` - Multi-AZ DB clusters - ``io1 | io2 | gp3`` Default: - Aurora DB clusters - ``aurora`` - Multi-AZ DB clusters - ``io1`` .. epigraph:: When you create an Aurora DB cluster with the storage type set to ``aurora-iopt1`` , the storage type is returned in the response. The storage type isn't returned when you set it to ``aurora`` .
|
|
@@ -7864,6 +7887,7 @@ class CfnDBClusterProps:
|
|
|
7864
7887
|
),
|
|
7865
7888
|
snapshot_identifier="snapshotIdentifier",
|
|
7866
7889
|
source_db_cluster_identifier="sourceDbClusterIdentifier",
|
|
7890
|
+
source_db_cluster_resource_id="sourceDbClusterResourceId",
|
|
7867
7891
|
source_region="sourceRegion",
|
|
7868
7892
|
storage_encrypted=False,
|
|
7869
7893
|
storage_type="storageType",
|
|
@@ -7930,6 +7954,7 @@ class CfnDBClusterProps:
|
|
|
7930
7954
|
check_type(argname="argument serverless_v2_scaling_configuration", value=serverless_v2_scaling_configuration, expected_type=type_hints["serverless_v2_scaling_configuration"])
|
|
7931
7955
|
check_type(argname="argument snapshot_identifier", value=snapshot_identifier, expected_type=type_hints["snapshot_identifier"])
|
|
7932
7956
|
check_type(argname="argument source_db_cluster_identifier", value=source_db_cluster_identifier, expected_type=type_hints["source_db_cluster_identifier"])
|
|
7957
|
+
check_type(argname="argument source_db_cluster_resource_id", value=source_db_cluster_resource_id, expected_type=type_hints["source_db_cluster_resource_id"])
|
|
7933
7958
|
check_type(argname="argument source_region", value=source_region, expected_type=type_hints["source_region"])
|
|
7934
7959
|
check_type(argname="argument storage_encrypted", value=storage_encrypted, expected_type=type_hints["storage_encrypted"])
|
|
7935
7960
|
check_type(argname="argument storage_type", value=storage_type, expected_type=type_hints["storage_type"])
|
|
@@ -8043,6 +8068,8 @@ class CfnDBClusterProps:
|
|
|
8043
8068
|
self._values["snapshot_identifier"] = snapshot_identifier
|
|
8044
8069
|
if source_db_cluster_identifier is not None:
|
|
8045
8070
|
self._values["source_db_cluster_identifier"] = source_db_cluster_identifier
|
|
8071
|
+
if source_db_cluster_resource_id is not None:
|
|
8072
|
+
self._values["source_db_cluster_resource_id"] = source_db_cluster_resource_id
|
|
8046
8073
|
if source_region is not None:
|
|
8047
8074
|
self._values["source_region"] = source_region
|
|
8048
8075
|
if storage_encrypted is not None:
|
|
@@ -8998,6 +9025,15 @@ class CfnDBClusterProps:
|
|
|
8998
9025
|
result = self._values.get("source_db_cluster_identifier")
|
|
8999
9026
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
9000
9027
|
|
|
9028
|
+
@builtins.property
|
|
9029
|
+
def source_db_cluster_resource_id(self) -> typing.Optional[builtins.str]:
|
|
9030
|
+
'''The resource ID of the source DB cluster from which to restore.
|
|
9031
|
+
|
|
9032
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-sourcedbclusterresourceid
|
|
9033
|
+
'''
|
|
9034
|
+
result = self._values.get("source_db_cluster_resource_id")
|
|
9035
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
9036
|
+
|
|
9001
9037
|
@builtins.property
|
|
9002
9038
|
def source_region(self) -> typing.Optional[builtins.str]:
|
|
9003
9039
|
'''The AWS Region which contains the source DB cluster when replicating a DB cluster. For example, ``us-east-1`` .
|
|
@@ -9251,6 +9287,12 @@ class CfnDBInstance(
|
|
|
9251
9287
|
source_db_instance_identifier="sourceDbInstanceIdentifier",
|
|
9252
9288
|
source_dbi_resource_id="sourceDbiResourceId",
|
|
9253
9289
|
source_region="sourceRegion",
|
|
9290
|
+
status_infos=[rds.CfnDBInstance.DBInstanceStatusInfoProperty(
|
|
9291
|
+
message="message",
|
|
9292
|
+
normal=False,
|
|
9293
|
+
status="status",
|
|
9294
|
+
status_type="statusType"
|
|
9295
|
+
)],
|
|
9254
9296
|
storage_encrypted=False,
|
|
9255
9297
|
storage_throughput=123,
|
|
9256
9298
|
storage_type="storageType",
|
|
@@ -9343,6 +9385,7 @@ class CfnDBInstance(
|
|
|
9343
9385
|
source_db_instance_identifier: typing.Optional[builtins.str] = None,
|
|
9344
9386
|
source_dbi_resource_id: typing.Optional[builtins.str] = None,
|
|
9345
9387
|
source_region: typing.Optional[builtins.str] = None,
|
|
9388
|
+
status_infos: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnDBInstance.DBInstanceStatusInfoProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
9346
9389
|
storage_encrypted: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
9347
9390
|
storage_throughput: typing.Optional[jsii.Number] = None,
|
|
9348
9391
|
storage_type: typing.Optional[builtins.str] = None,
|
|
@@ -9428,6 +9471,7 @@ class CfnDBInstance(
|
|
|
9428
9471
|
: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. If you specify the ``UseLatestRestorableTime`` or ``RestoreTime`` properties in conjunction with the ``SourceDBInstanceIdentifier`` property, RDS restores the DB instance to the requested point in time, thereby creating a new 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.
|
|
9429
9472
|
:param source_dbi_resource_id: The resource ID of the source DB instance from which to restore.
|
|
9430
9473
|
:param source_region: The ID of the region that contains the source DB instance for the read replica.
|
|
9474
|
+
:param status_infos: The status of a read replica. If the DB instance isn't a read replica, the value is blank.
|
|
9431
9475
|
:param storage_encrypted: A value that indicates whether the DB instance is encrypted. By default, it isn't encrypted. If you specify the ``KmsKeyId`` property, then you must enable encryption. If you specify the ``SourceDBInstanceIdentifier`` or ``SourceDbiResourceId`` property, don't specify this property. The value is inherited from the source DB instance, and if the DB instance is encrypted, the specified ``KmsKeyId`` property is used. If you specify the ``SourceDBInstanceAutomatedBackupsArn`` property, don't specify this property. The value is inherited from the source DB instance automated backup. If you specify ``DBSnapshotIdentifier`` property, don't specify this property. The value is inherited from the snapshot. *Amazon Aurora* Not applicable. The encryption for DB instances is managed by the DB cluster.
|
|
9432
9476
|
:param storage_throughput: Specifies the storage throughput value, in mebibyte per second (MiBps), for the DB instance. This setting applies only to the ``gp3`` storage type. This setting doesn't apply to RDS Custom or Amazon Aurora.
|
|
9433
9477
|
:param storage_type: The storage type to associate with the DB instance. If you specify ``io1`` , ``io2`` , or ``gp3`` , you must also include a value for the ``Iops`` parameter. This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster. Valid Values: ``gp2 | gp3 | io1 | io2 | standard`` Default: ``io1`` , if the ``Iops`` parameter is specified. Otherwise, ``gp3`` .
|
|
@@ -9515,6 +9559,7 @@ class CfnDBInstance(
|
|
|
9515
9559
|
source_db_instance_identifier=source_db_instance_identifier,
|
|
9516
9560
|
source_dbi_resource_id=source_dbi_resource_id,
|
|
9517
9561
|
source_region=source_region,
|
|
9562
|
+
status_infos=status_infos,
|
|
9518
9563
|
storage_encrypted=storage_encrypted,
|
|
9519
9564
|
storage_throughput=storage_throughput,
|
|
9520
9565
|
storage_type=storage_type,
|
|
@@ -9559,6 +9604,15 @@ class CfnDBInstance(
|
|
|
9559
9604
|
'''The CloudFormation resource type name for this resource class.'''
|
|
9560
9605
|
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
9561
9606
|
|
|
9607
|
+
@builtins.property
|
|
9608
|
+
@jsii.member(jsii_name="attrAutomaticRestartTime")
|
|
9609
|
+
def attr_automatic_restart_time(self) -> builtins.str:
|
|
9610
|
+
'''The time when a stopped DB instance is restarted automatically.
|
|
9611
|
+
|
|
9612
|
+
:cloudformationAttribute: AutomaticRestartTime
|
|
9613
|
+
'''
|
|
9614
|
+
return typing.cast(builtins.str, jsii.get(self, "attrAutomaticRestartTime"))
|
|
9615
|
+
|
|
9562
9616
|
@builtins.property
|
|
9563
9617
|
@jsii.member(jsii_name="attrCertificateDetails")
|
|
9564
9618
|
def attr_certificate_details(self) -> _IResolvable_da3f097b:
|
|
@@ -9760,6 +9814,15 @@ class CfnDBInstance(
|
|
|
9760
9814
|
'''
|
|
9761
9815
|
return typing.cast(builtins.str, jsii.get(self, "attrMasterUserSecretSecretArn"))
|
|
9762
9816
|
|
|
9817
|
+
@builtins.property
|
|
9818
|
+
@jsii.member(jsii_name="attrPercentProgress")
|
|
9819
|
+
def attr_percent_progress(self) -> builtins.str:
|
|
9820
|
+
'''The progress of the storage optimization operation as a percentage.
|
|
9821
|
+
|
|
9822
|
+
:cloudformationAttribute: PercentProgress
|
|
9823
|
+
'''
|
|
9824
|
+
return typing.cast(builtins.str, jsii.get(self, "attrPercentProgress"))
|
|
9825
|
+
|
|
9763
9826
|
@builtins.property
|
|
9764
9827
|
@jsii.member(jsii_name="attrReadReplicaDbClusterIdentifiers")
|
|
9765
9828
|
def attr_read_replica_db_cluster_identifiers(self) -> typing.List[builtins.str]:
|
|
@@ -9778,6 +9841,37 @@ class CfnDBInstance(
|
|
|
9778
9841
|
'''
|
|
9779
9842
|
return typing.cast(typing.List[builtins.str], jsii.get(self, "attrReadReplicaDbInstanceIdentifiers"))
|
|
9780
9843
|
|
|
9844
|
+
@builtins.property
|
|
9845
|
+
@jsii.member(jsii_name="attrResumeFullAutomationModeTime")
|
|
9846
|
+
def attr_resume_full_automation_mode_time(self) -> builtins.str:
|
|
9847
|
+
'''The number of minutes to pause the automation.
|
|
9848
|
+
|
|
9849
|
+
When the time period ends, RDS Custom resumes full automation. The minimum value is 60 (default). The maximum value is 1,440.
|
|
9850
|
+
|
|
9851
|
+
:cloudformationAttribute: ResumeFullAutomationModeTime
|
|
9852
|
+
'''
|
|
9853
|
+
return typing.cast(builtins.str, jsii.get(self, "attrResumeFullAutomationModeTime"))
|
|
9854
|
+
|
|
9855
|
+
@builtins.property
|
|
9856
|
+
@jsii.member(jsii_name="attrSecondaryAvailabilityZone")
|
|
9857
|
+
def attr_secondary_availability_zone(self) -> builtins.str:
|
|
9858
|
+
'''If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.
|
|
9859
|
+
|
|
9860
|
+
:cloudformationAttribute: SecondaryAvailabilityZone
|
|
9861
|
+
'''
|
|
9862
|
+
return typing.cast(builtins.str, jsii.get(self, "attrSecondaryAvailabilityZone"))
|
|
9863
|
+
|
|
9864
|
+
@builtins.property
|
|
9865
|
+
@jsii.member(jsii_name="attrStatusInfos")
|
|
9866
|
+
def attr_status_infos(self) -> _IResolvable_da3f097b:
|
|
9867
|
+
'''The status of a read replica.
|
|
9868
|
+
|
|
9869
|
+
If the DB instance isn't a read replica, the value is blank.
|
|
9870
|
+
|
|
9871
|
+
:cloudformationAttribute: StatusInfos
|
|
9872
|
+
'''
|
|
9873
|
+
return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrStatusInfos"))
|
|
9874
|
+
|
|
9781
9875
|
@builtins.property
|
|
9782
9876
|
@jsii.member(jsii_name="cfnProperties")
|
|
9783
9877
|
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
@@ -10835,6 +10929,24 @@ class CfnDBInstance(
|
|
|
10835
10929
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
10836
10930
|
jsii.set(self, "sourceRegion", value) # pyright: ignore[reportArgumentType]
|
|
10837
10931
|
|
|
10932
|
+
@builtins.property
|
|
10933
|
+
@jsii.member(jsii_name="statusInfos")
|
|
10934
|
+
def status_infos(
|
|
10935
|
+
self,
|
|
10936
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnDBInstance.DBInstanceStatusInfoProperty"]]]]:
|
|
10937
|
+
'''The status of a read replica.'''
|
|
10938
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnDBInstance.DBInstanceStatusInfoProperty"]]]], jsii.get(self, "statusInfos"))
|
|
10939
|
+
|
|
10940
|
+
@status_infos.setter
|
|
10941
|
+
def status_infos(
|
|
10942
|
+
self,
|
|
10943
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnDBInstance.DBInstanceStatusInfoProperty"]]]],
|
|
10944
|
+
) -> None:
|
|
10945
|
+
if __debug__:
|
|
10946
|
+
type_hints = typing.get_type_hints(_typecheckingstub__4884ce950f15c984dfbc419b109b2a3debd2bad2b67c4c46d41dcddbe16eadc4)
|
|
10947
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
10948
|
+
jsii.set(self, "statusInfos", value) # pyright: ignore[reportArgumentType]
|
|
10949
|
+
|
|
10838
10950
|
@builtins.property
|
|
10839
10951
|
@jsii.member(jsii_name="storageEncrypted")
|
|
10840
10952
|
def storage_encrypted(
|
|
@@ -11139,6 +11251,117 @@ class CfnDBInstance(
|
|
|
11139
11251
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
11140
11252
|
)
|
|
11141
11253
|
|
|
11254
|
+
@jsii.data_type(
|
|
11255
|
+
jsii_type="aws-cdk-lib.aws_rds.CfnDBInstance.DBInstanceStatusInfoProperty",
|
|
11256
|
+
jsii_struct_bases=[],
|
|
11257
|
+
name_mapping={
|
|
11258
|
+
"message": "message",
|
|
11259
|
+
"normal": "normal",
|
|
11260
|
+
"status": "status",
|
|
11261
|
+
"status_type": "statusType",
|
|
11262
|
+
},
|
|
11263
|
+
)
|
|
11264
|
+
class DBInstanceStatusInfoProperty:
|
|
11265
|
+
def __init__(
|
|
11266
|
+
self,
|
|
11267
|
+
*,
|
|
11268
|
+
message: typing.Optional[builtins.str] = None,
|
|
11269
|
+
normal: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
11270
|
+
status: typing.Optional[builtins.str] = None,
|
|
11271
|
+
status_type: typing.Optional[builtins.str] = None,
|
|
11272
|
+
) -> None:
|
|
11273
|
+
'''Provides a list of status information for a DB instance.
|
|
11274
|
+
|
|
11275
|
+
:param message: Details of the error if there is an error for the instance. If the instance isn't in an error state, this value is blank.
|
|
11276
|
+
:param normal: Indicates whether the instance is operating normally (TRUE) or is in an error state (FALSE).
|
|
11277
|
+
:param status: The status of the DB instance. For a StatusType of read replica, the values can be replicating, replication stop point set, replication stop point reached, error, stopped, or terminated.
|
|
11278
|
+
:param status_type: This value is currently "read replication.".
|
|
11279
|
+
|
|
11280
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-dbinstancestatusinfo.html
|
|
11281
|
+
:exampleMetadata: fixture=_generated
|
|
11282
|
+
|
|
11283
|
+
Example::
|
|
11284
|
+
|
|
11285
|
+
# The code below shows an example of how to instantiate this type.
|
|
11286
|
+
# The values are placeholders you should change.
|
|
11287
|
+
from aws_cdk import aws_rds as rds
|
|
11288
|
+
|
|
11289
|
+
d_bInstance_status_info_property = rds.CfnDBInstance.DBInstanceStatusInfoProperty(
|
|
11290
|
+
message="message",
|
|
11291
|
+
normal=False,
|
|
11292
|
+
status="status",
|
|
11293
|
+
status_type="statusType"
|
|
11294
|
+
)
|
|
11295
|
+
'''
|
|
11296
|
+
if __debug__:
|
|
11297
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9b08398c0c2c9b422598a57f6105a8f3372b51bc76bcfc59658ffa7c37cbe3b3)
|
|
11298
|
+
check_type(argname="argument message", value=message, expected_type=type_hints["message"])
|
|
11299
|
+
check_type(argname="argument normal", value=normal, expected_type=type_hints["normal"])
|
|
11300
|
+
check_type(argname="argument status", value=status, expected_type=type_hints["status"])
|
|
11301
|
+
check_type(argname="argument status_type", value=status_type, expected_type=type_hints["status_type"])
|
|
11302
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
11303
|
+
if message is not None:
|
|
11304
|
+
self._values["message"] = message
|
|
11305
|
+
if normal is not None:
|
|
11306
|
+
self._values["normal"] = normal
|
|
11307
|
+
if status is not None:
|
|
11308
|
+
self._values["status"] = status
|
|
11309
|
+
if status_type is not None:
|
|
11310
|
+
self._values["status_type"] = status_type
|
|
11311
|
+
|
|
11312
|
+
@builtins.property
|
|
11313
|
+
def message(self) -> typing.Optional[builtins.str]:
|
|
11314
|
+
'''Details of the error if there is an error for the instance.
|
|
11315
|
+
|
|
11316
|
+
If the instance isn't in an error state, this value is blank.
|
|
11317
|
+
|
|
11318
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-dbinstancestatusinfo.html#cfn-rds-dbinstance-dbinstancestatusinfo-message
|
|
11319
|
+
'''
|
|
11320
|
+
result = self._values.get("message")
|
|
11321
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
11322
|
+
|
|
11323
|
+
@builtins.property
|
|
11324
|
+
def normal(
|
|
11325
|
+
self,
|
|
11326
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
11327
|
+
'''Indicates whether the instance is operating normally (TRUE) or is in an error state (FALSE).
|
|
11328
|
+
|
|
11329
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-dbinstancestatusinfo.html#cfn-rds-dbinstance-dbinstancestatusinfo-normal
|
|
11330
|
+
'''
|
|
11331
|
+
result = self._values.get("normal")
|
|
11332
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
11333
|
+
|
|
11334
|
+
@builtins.property
|
|
11335
|
+
def status(self) -> typing.Optional[builtins.str]:
|
|
11336
|
+
'''The status of the DB instance.
|
|
11337
|
+
|
|
11338
|
+
For a StatusType of read replica, the values can be replicating, replication stop point set, replication stop point reached, error, stopped, or terminated.
|
|
11339
|
+
|
|
11340
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-dbinstancestatusinfo.html#cfn-rds-dbinstance-dbinstancestatusinfo-status
|
|
11341
|
+
'''
|
|
11342
|
+
result = self._values.get("status")
|
|
11343
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
11344
|
+
|
|
11345
|
+
@builtins.property
|
|
11346
|
+
def status_type(self) -> typing.Optional[builtins.str]:
|
|
11347
|
+
'''This value is currently "read replication.".
|
|
11348
|
+
|
|
11349
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-dbinstancestatusinfo.html#cfn-rds-dbinstance-dbinstancestatusinfo-statustype
|
|
11350
|
+
'''
|
|
11351
|
+
result = self._values.get("status_type")
|
|
11352
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
11353
|
+
|
|
11354
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
11355
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
11356
|
+
|
|
11357
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
11358
|
+
return not (rhs == self)
|
|
11359
|
+
|
|
11360
|
+
def __repr__(self) -> str:
|
|
11361
|
+
return "DBInstanceStatusInfoProperty(%s)" % ", ".join(
|
|
11362
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
11363
|
+
)
|
|
11364
|
+
|
|
11142
11365
|
@jsii.data_type(
|
|
11143
11366
|
jsii_type="aws-cdk-lib.aws_rds.CfnDBInstance.EndpointProperty",
|
|
11144
11367
|
jsii_struct_bases=[],
|
|
@@ -11458,6 +11681,7 @@ class CfnDBInstance(
|
|
|
11458
11681
|
"source_db_instance_identifier": "sourceDbInstanceIdentifier",
|
|
11459
11682
|
"source_dbi_resource_id": "sourceDbiResourceId",
|
|
11460
11683
|
"source_region": "sourceRegion",
|
|
11684
|
+
"status_infos": "statusInfos",
|
|
11461
11685
|
"storage_encrypted": "storageEncrypted",
|
|
11462
11686
|
"storage_throughput": "storageThroughput",
|
|
11463
11687
|
"storage_type": "storageType",
|
|
@@ -11545,6 +11769,7 @@ class CfnDBInstanceProps:
|
|
|
11545
11769
|
source_db_instance_identifier: typing.Optional[builtins.str] = None,
|
|
11546
11770
|
source_dbi_resource_id: typing.Optional[builtins.str] = None,
|
|
11547
11771
|
source_region: typing.Optional[builtins.str] = None,
|
|
11772
|
+
status_infos: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDBInstance.DBInstanceStatusInfoProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
11548
11773
|
storage_encrypted: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
11549
11774
|
storage_throughput: typing.Optional[jsii.Number] = None,
|
|
11550
11775
|
storage_type: typing.Optional[builtins.str] = None,
|
|
@@ -11629,6 +11854,7 @@ class CfnDBInstanceProps:
|
|
|
11629
11854
|
: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. If you specify the ``UseLatestRestorableTime`` or ``RestoreTime`` properties in conjunction with the ``SourceDBInstanceIdentifier`` property, RDS restores the DB instance to the requested point in time, thereby creating a new 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.
|
|
11630
11855
|
:param source_dbi_resource_id: The resource ID of the source DB instance from which to restore.
|
|
11631
11856
|
:param source_region: The ID of the region that contains the source DB instance for the read replica.
|
|
11857
|
+
:param status_infos: The status of a read replica. If the DB instance isn't a read replica, the value is blank.
|
|
11632
11858
|
:param storage_encrypted: A value that indicates whether the DB instance is encrypted. By default, it isn't encrypted. If you specify the ``KmsKeyId`` property, then you must enable encryption. If you specify the ``SourceDBInstanceIdentifier`` or ``SourceDbiResourceId`` property, don't specify this property. The value is inherited from the source DB instance, and if the DB instance is encrypted, the specified ``KmsKeyId`` property is used. If you specify the ``SourceDBInstanceAutomatedBackupsArn`` property, don't specify this property. The value is inherited from the source DB instance automated backup. If you specify ``DBSnapshotIdentifier`` property, don't specify this property. The value is inherited from the snapshot. *Amazon Aurora* Not applicable. The encryption for DB instances is managed by the DB cluster.
|
|
11633
11859
|
:param storage_throughput: Specifies the storage throughput value, in mebibyte per second (MiBps), for the DB instance. This setting applies only to the ``gp3`` storage type. This setting doesn't apply to RDS Custom or Amazon Aurora.
|
|
11634
11860
|
:param storage_type: The storage type to associate with the DB instance. If you specify ``io1`` , ``io2`` , or ``gp3`` , you must also include a value for the ``Iops`` parameter. This setting doesn't apply to Amazon Aurora DB instances. Storage is managed by the DB cluster. Valid Values: ``gp2 | gp3 | io1 | io2 | standard`` Default: ``io1`` , if the ``Iops`` parameter is specified. Otherwise, ``gp3`` .
|
|
@@ -11730,6 +11956,12 @@ class CfnDBInstanceProps:
|
|
|
11730
11956
|
source_db_instance_identifier="sourceDbInstanceIdentifier",
|
|
11731
11957
|
source_dbi_resource_id="sourceDbiResourceId",
|
|
11732
11958
|
source_region="sourceRegion",
|
|
11959
|
+
status_infos=[rds.CfnDBInstance.DBInstanceStatusInfoProperty(
|
|
11960
|
+
message="message",
|
|
11961
|
+
normal=False,
|
|
11962
|
+
status="status",
|
|
11963
|
+
status_type="statusType"
|
|
11964
|
+
)],
|
|
11733
11965
|
storage_encrypted=False,
|
|
11734
11966
|
storage_throughput=123,
|
|
11735
11967
|
storage_type="storageType",
|
|
@@ -11818,6 +12050,7 @@ class CfnDBInstanceProps:
|
|
|
11818
12050
|
check_type(argname="argument source_db_instance_identifier", value=source_db_instance_identifier, expected_type=type_hints["source_db_instance_identifier"])
|
|
11819
12051
|
check_type(argname="argument source_dbi_resource_id", value=source_dbi_resource_id, expected_type=type_hints["source_dbi_resource_id"])
|
|
11820
12052
|
check_type(argname="argument source_region", value=source_region, expected_type=type_hints["source_region"])
|
|
12053
|
+
check_type(argname="argument status_infos", value=status_infos, expected_type=type_hints["status_infos"])
|
|
11821
12054
|
check_type(argname="argument storage_encrypted", value=storage_encrypted, expected_type=type_hints["storage_encrypted"])
|
|
11822
12055
|
check_type(argname="argument storage_throughput", value=storage_throughput, expected_type=type_hints["storage_throughput"])
|
|
11823
12056
|
check_type(argname="argument storage_type", value=storage_type, expected_type=type_hints["storage_type"])
|
|
@@ -11971,6 +12204,8 @@ class CfnDBInstanceProps:
|
|
|
11971
12204
|
self._values["source_dbi_resource_id"] = source_dbi_resource_id
|
|
11972
12205
|
if source_region is not None:
|
|
11973
12206
|
self._values["source_region"] = source_region
|
|
12207
|
+
if status_infos is not None:
|
|
12208
|
+
self._values["status_infos"] = status_infos
|
|
11974
12209
|
if storage_encrypted is not None:
|
|
11975
12210
|
self._values["storage_encrypted"] = storage_encrypted
|
|
11976
12211
|
if storage_throughput is not None:
|
|
@@ -13426,6 +13661,19 @@ class CfnDBInstanceProps:
|
|
|
13426
13661
|
result = self._values.get("source_region")
|
|
13427
13662
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
13428
13663
|
|
|
13664
|
+
@builtins.property
|
|
13665
|
+
def status_infos(
|
|
13666
|
+
self,
|
|
13667
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnDBInstance.DBInstanceStatusInfoProperty]]]]:
|
|
13668
|
+
'''The status of a read replica.
|
|
13669
|
+
|
|
13670
|
+
If the DB instance isn't a read replica, the value is blank.
|
|
13671
|
+
|
|
13672
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-statusinfos
|
|
13673
|
+
'''
|
|
13674
|
+
result = self._values.get("status_infos")
|
|
13675
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnDBInstance.DBInstanceStatusInfoProperty]]]], result)
|
|
13676
|
+
|
|
13429
13677
|
@builtins.property
|
|
13430
13678
|
def storage_encrypted(
|
|
13431
13679
|
self,
|
|
@@ -49380,6 +49628,7 @@ def _typecheckingstub__1eb14b9dcc306eabcc2963c7b6ef9b87bf8d616bb5691dbc6656242be
|
|
|
49380
49628
|
serverless_v2_scaling_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDBCluster.ServerlessV2ScalingConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
49381
49629
|
snapshot_identifier: typing.Optional[builtins.str] = None,
|
|
49382
49630
|
source_db_cluster_identifier: typing.Optional[builtins.str] = None,
|
|
49631
|
+
source_db_cluster_resource_id: typing.Optional[builtins.str] = None,
|
|
49383
49632
|
source_region: typing.Optional[builtins.str] = None,
|
|
49384
49633
|
storage_encrypted: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
49385
49634
|
storage_type: typing.Optional[builtins.str] = None,
|
|
@@ -49720,6 +49969,12 @@ def _typecheckingstub__df647406eec5ba2e24bb07694e286def32cd947e8728ac6ec3727fd14
|
|
|
49720
49969
|
"""Type checking stubs"""
|
|
49721
49970
|
pass
|
|
49722
49971
|
|
|
49972
|
+
def _typecheckingstub__08ac64c9167e517f4b6604f3b8380f98125ef714845161ef2afeeebf02f97b3b(
|
|
49973
|
+
value: typing.Optional[builtins.str],
|
|
49974
|
+
) -> None:
|
|
49975
|
+
"""Type checking stubs"""
|
|
49976
|
+
pass
|
|
49977
|
+
|
|
49723
49978
|
def _typecheckingstub__2ee6860d8d1d897c5c878ca6693329e97bdddac0cb37f822ceb26aabdb5b78fb(
|
|
49724
49979
|
value: typing.Optional[builtins.str],
|
|
49725
49980
|
) -> None:
|
|
@@ -49929,6 +50184,7 @@ def _typecheckingstub__aaf089104646bb0ea95e48cd2107d642585c3eb3785a21112fc029b15
|
|
|
49929
50184
|
serverless_v2_scaling_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDBCluster.ServerlessV2ScalingConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
49930
50185
|
snapshot_identifier: typing.Optional[builtins.str] = None,
|
|
49931
50186
|
source_db_cluster_identifier: typing.Optional[builtins.str] = None,
|
|
50187
|
+
source_db_cluster_resource_id: typing.Optional[builtins.str] = None,
|
|
49932
50188
|
source_region: typing.Optional[builtins.str] = None,
|
|
49933
50189
|
storage_encrypted: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
49934
50190
|
storage_type: typing.Optional[builtins.str] = None,
|
|
@@ -50014,6 +50270,7 @@ def _typecheckingstub__255b0779ca741853674876540bf77279f6293bea05de2cd18724d2b92
|
|
|
50014
50270
|
source_db_instance_identifier: typing.Optional[builtins.str] = None,
|
|
50015
50271
|
source_dbi_resource_id: typing.Optional[builtins.str] = None,
|
|
50016
50272
|
source_region: typing.Optional[builtins.str] = None,
|
|
50273
|
+
status_infos: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDBInstance.DBInstanceStatusInfoProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
50017
50274
|
storage_encrypted: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
50018
50275
|
storage_throughput: typing.Optional[jsii.Number] = None,
|
|
50019
50276
|
storage_type: typing.Optional[builtins.str] = None,
|
|
@@ -50466,6 +50723,12 @@ def _typecheckingstub__54e6abd38ac0878b58009488af0c37180d8361eafe2d4e20fd21251d2
|
|
|
50466
50723
|
"""Type checking stubs"""
|
|
50467
50724
|
pass
|
|
50468
50725
|
|
|
50726
|
+
def _typecheckingstub__4884ce950f15c984dfbc419b109b2a3debd2bad2b67c4c46d41dcddbe16eadc4(
|
|
50727
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnDBInstance.DBInstanceStatusInfoProperty]]]],
|
|
50728
|
+
) -> None:
|
|
50729
|
+
"""Type checking stubs"""
|
|
50730
|
+
pass
|
|
50731
|
+
|
|
50469
50732
|
def _typecheckingstub__e45dbb04a9f91d51cce34e9ad406fb8b0bf3ca45ebf5191d2c3fe3ef60c0f73a(
|
|
50470
50733
|
value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
|
|
50471
50734
|
) -> None:
|
|
@@ -50542,6 +50805,16 @@ def _typecheckingstub__f9f3eeec177271fb0e6eb23b5e89d9aa215910a445a7f378d200e7c8d
|
|
|
50542
50805
|
"""Type checking stubs"""
|
|
50543
50806
|
pass
|
|
50544
50807
|
|
|
50808
|
+
def _typecheckingstub__9b08398c0c2c9b422598a57f6105a8f3372b51bc76bcfc59658ffa7c37cbe3b3(
|
|
50809
|
+
*,
|
|
50810
|
+
message: typing.Optional[builtins.str] = None,
|
|
50811
|
+
normal: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
50812
|
+
status: typing.Optional[builtins.str] = None,
|
|
50813
|
+
status_type: typing.Optional[builtins.str] = None,
|
|
50814
|
+
) -> None:
|
|
50815
|
+
"""Type checking stubs"""
|
|
50816
|
+
pass
|
|
50817
|
+
|
|
50545
50818
|
def _typecheckingstub__0a8162d3b83ddccf54f9146dc897a65d9b54102ddb2bd5d0e5d32f10565b91ab(
|
|
50546
50819
|
*,
|
|
50547
50820
|
address: typing.Optional[builtins.str] = None,
|
|
@@ -50640,6 +50913,7 @@ def _typecheckingstub__3bddb1be0bd1f1699e3a084c5859d94d8879ff15011f2f2eaac29ec16
|
|
|
50640
50913
|
source_db_instance_identifier: typing.Optional[builtins.str] = None,
|
|
50641
50914
|
source_dbi_resource_id: typing.Optional[builtins.str] = None,
|
|
50642
50915
|
source_region: typing.Optional[builtins.str] = None,
|
|
50916
|
+
status_infos: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnDBInstance.DBInstanceStatusInfoProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
50643
50917
|
storage_encrypted: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
50644
50918
|
storage_throughput: typing.Optional[jsii.Number] = None,
|
|
50645
50919
|
storage_type: typing.Optional[builtins.str] = None,
|