aws-cdk-lib 2.201.0__py3-none-any.whl → 2.203.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 +70 -71
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.201.0.jsii.tgz → aws-cdk-lib@2.203.0.jsii.tgz} +0 -0
- aws_cdk/aws_accessanalyzer/__init__.py +310 -4
- aws_cdk/aws_aiops/__init__.py +964 -0
- aws_cdk/aws_amplify/__init__.py +127 -0
- aws_cdk/aws_arczonalshift/__init__.py +8 -8
- aws_cdk/aws_athena/__init__.py +12 -11
- aws_cdk/aws_b2bi/__init__.py +782 -3
- aws_cdk/aws_backup/__init__.py +22 -0
- aws_cdk/aws_batch/__init__.py +53 -1
- aws_cdk/aws_bedrock/__init__.py +123 -9
- aws_cdk/aws_cleanrooms/__init__.py +157 -154
- aws_cdk/aws_cloudformation/__init__.py +28 -28
- aws_cdk/aws_cloudfront/__init__.py +92 -57
- aws_cdk/aws_cloudfront/experimental/__init__.py +42 -3
- aws_cdk/aws_cloudwatch/__init__.py +228 -2
- aws_cdk/aws_connect/__init__.py +120 -8
- aws_cdk/aws_connectcampaignsv2/__init__.py +25 -4
- aws_cdk/aws_customerprofiles/__init__.py +150 -30
- aws_cdk/aws_datazone/__init__.py +23 -4
- aws_cdk/aws_deadline/__init__.py +4 -4
- aws_cdk/aws_dsql/__init__.py +148 -0
- aws_cdk/aws_ec2/__init__.py +321 -19
- aws_cdk/aws_ecr/__init__.py +3 -3
- aws_cdk/aws_ecs/__init__.py +48 -13
- aws_cdk/aws_efs/__init__.py +17 -6
- aws_cdk/aws_eks/__init__.py +180 -158
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +4 -2
- aws_cdk/aws_emrserverless/__init__.py +118 -0
- aws_cdk/aws_fsx/__init__.py +891 -0
- aws_cdk/aws_glue/__init__.py +58 -24
- aws_cdk/aws_iam/__init__.py +11 -11
- aws_cdk/aws_inspectorv2/__init__.py +442 -3
- aws_cdk/aws_kendra/__init__.py +10 -5
- aws_cdk/aws_kms/__init__.py +24 -12
- aws_cdk/aws_lambda/__init__.py +938 -36
- aws_cdk/aws_lambda_event_sources/__init__.py +638 -1
- aws_cdk/aws_lambda_nodejs/__init__.py +37 -3
- aws_cdk/aws_lex/__init__.py +703 -0
- aws_cdk/aws_logs/__init__.py +144 -0
- aws_cdk/aws_mediatailor/__init__.py +399 -0
- aws_cdk/aws_mpa/__init__.py +1475 -0
- aws_cdk/aws_msk/__init__.py +21 -2
- aws_cdk/aws_mwaa/__init__.py +45 -2
- aws_cdk/aws_networkfirewall/__init__.py +4 -2
- aws_cdk/aws_networkmanager/__init__.py +51 -3
- aws_cdk/aws_opsworkscm/__init__.py +44 -2
- aws_cdk/aws_rds/__init__.py +175 -42
- aws_cdk/aws_redshiftserverless/__init__.py +632 -0
- aws_cdk/aws_route53resolver/__init__.py +58 -10
- aws_cdk/aws_s3/__init__.py +19 -1
- aws_cdk/aws_s3tables/__init__.py +230 -0
- aws_cdk/aws_sagemaker/__init__.py +14 -10
- aws_cdk/aws_securityhub/__init__.py +2887 -56
- aws_cdk/aws_synthetics/__init__.py +21 -0
- aws_cdk/aws_vpclattice/__init__.py +6 -4
- aws_cdk/aws_wafv2/__init__.py +849 -18
- aws_cdk/aws_workspacesinstances/__init__.py +3243 -0
- aws_cdk/cloud_assembly_schema/__init__.py +200 -4
- aws_cdk/cx_api/__init__.py +29 -14
- aws_cdk/pipelines/__init__.py +178 -41
- aws_cdk/triggers/__init__.py +41 -4
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/METADATA +3 -3
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/RECORD +69 -66
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.203.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_rds/__init__.py
CHANGED
|
@@ -153,20 +153,6 @@ rds.DatabaseCluster(self, "DatabaseCluster",
|
|
|
153
153
|
)
|
|
154
154
|
```
|
|
155
155
|
|
|
156
|
-
To configure [the life cycle type of the cluster](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html), use the `engineLifecycleSupport` property:
|
|
157
|
-
|
|
158
|
-
```python
|
|
159
|
-
# vpc: ec2.IVpc
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
rds.DatabaseCluster(self, "DatabaseCluster",
|
|
163
|
-
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_07_0),
|
|
164
|
-
writer=rds.ClusterInstance.serverless_v2("writerInstance"),
|
|
165
|
-
vpc=vpc,
|
|
166
|
-
engine_lifecycle_support=rds.EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT
|
|
167
|
-
)
|
|
168
|
-
```
|
|
169
|
-
|
|
170
156
|
### Updating the database instances in a cluster
|
|
171
157
|
|
|
172
158
|
Database cluster instances may be updated in bulk or on a rolling basis.
|
|
@@ -1814,6 +1800,30 @@ rds.DatabaseCluster(self, "Cluster",
|
|
|
1814
1800
|
)
|
|
1815
1801
|
```
|
|
1816
1802
|
|
|
1803
|
+
## Extended Support
|
|
1804
|
+
|
|
1805
|
+
With Amazon RDS Extended Support, you can continue running your database on a major engine version past the RDS end of
|
|
1806
|
+
standard support date for an additional cost. To configure the life cycle type, use the `engineLifecycleSupport` property:
|
|
1807
|
+
|
|
1808
|
+
```python
|
|
1809
|
+
# vpc: ec2.IVpc
|
|
1810
|
+
|
|
1811
|
+
|
|
1812
|
+
rds.DatabaseCluster(self, "DatabaseCluster",
|
|
1813
|
+
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_07_0),
|
|
1814
|
+
writer=rds.ClusterInstance.serverless_v2("writerInstance"),
|
|
1815
|
+
vpc=vpc,
|
|
1816
|
+
engine_lifecycle_support=rds.EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT
|
|
1817
|
+
)
|
|
1818
|
+
|
|
1819
|
+
rds.DatabaseInstance(self, "DatabaseInstance",
|
|
1820
|
+
engine=rds.DatabaseInstanceEngine.mysql(version=rds.MysqlEngineVersion.VER_8_0_39),
|
|
1821
|
+
instance_type=ec2.InstanceType.of(ec2.InstanceClass.R7G, ec2.InstanceSize.LARGE),
|
|
1822
|
+
vpc=vpc,
|
|
1823
|
+
engine_lifecycle_support=rds.EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT_DISABLED
|
|
1824
|
+
)
|
|
1825
|
+
```
|
|
1826
|
+
|
|
1817
1827
|
## Importing existing DatabaseInstance
|
|
1818
1828
|
|
|
1819
1829
|
### Lookup DatabaseInstance by instanceIdentifier
|
|
@@ -2347,14 +2357,11 @@ class AuroraMysqlClusterEngineProps:
|
|
|
2347
2357
|
|
|
2348
2358
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
2349
2359
|
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_01_0),
|
|
2350
|
-
writer=rds.ClusterInstance.provisioned("
|
|
2351
|
-
|
|
2360
|
+
writer=rds.ClusterInstance.provisioned("Instance",
|
|
2361
|
+
instance_type=ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.SMALL)
|
|
2352
2362
|
),
|
|
2353
|
-
readers=[
|
|
2354
|
-
|
|
2355
|
-
ca_certificate=rds.CaCertificate.of("custom-ca")
|
|
2356
|
-
)
|
|
2357
|
-
],
|
|
2363
|
+
readers=[rds.ClusterInstance.provisioned("reader")],
|
|
2364
|
+
instance_update_behaviour=rds.InstanceUpdateBehaviour.ROLLING, # Optional - defaults to rds.InstanceUpdateBehaviour.BULK
|
|
2358
2365
|
vpc=vpc
|
|
2359
2366
|
)
|
|
2360
2367
|
'''
|
|
@@ -15182,7 +15189,7 @@ class CfnDBProxyTargetGroup(
|
|
|
15182
15189
|
'''Specifies the settings that control the size and behavior of the connection pool associated with a ``DBProxyTargetGroup`` .
|
|
15183
15190
|
|
|
15184
15191
|
:param connection_borrow_timeout: The number of seconds for a proxy to wait for a connection to become available in the connection pool. This setting only applies when the proxy has opened its maximum number of connections and all connections are busy with client sessions. Default: ``120`` Constraints: - Must be between 0 and 300.
|
|
15185
|
-
:param init_query: Add an initialization query, or modify the current one. You can specify one or more SQL statements for the proxy to run when opening each new database connection. The setting is typically used with ``SET`` statements to make sure that each connection has identical settings. Make sure the query added here is valid. This is an optional field, so you can choose to leave it empty. For including multiple variables in a single SET statement, use a comma separator. For example: ``SET variable1=value1, variable2=value2`` Default: no initialization query
|
|
15192
|
+
:param init_query: Add an initialization query, or modify the current one. You can specify one or more SQL statements for the proxy to run when opening each new database connection. The setting is typically used with ``SET`` statements to make sure that each connection has identical settings. Make sure the query added here is valid. This is an optional field, so you can choose to leave it empty. For including multiple variables in a single SET statement, use a comma separator. For example: ``SET variable1=value1, variable2=value2`` Default: no initialization query .. epigraph:: Since you can access initialization query as part of target group configuration, it is not protected by authentication or cryptographic methods. Anyone with access to view or manage your proxy target group configuration can view the initialization query. You should not add sensitive data, such as passwords or long-lived encryption keys, to this option.
|
|
15186
15193
|
:param max_connections_percent: The maximum size of the connection pool for each target in a target group. The value is expressed as a percentage of the ``max_connections`` setting for the RDS DB instance or Aurora DB cluster used by the target group. If you specify ``MaxIdleConnectionsPercent`` , then you must also include a value for this parameter. Default: ``10`` for RDS for Microsoft SQL Server, and ``100`` for all other engines Constraints: - Must be between 1 and 100.
|
|
15187
15194
|
:param max_idle_connections_percent: A value that controls how actively the proxy closes idle database connections in the connection pool. The value is expressed as a percentage of the ``max_connections`` setting for the RDS DB instance or Aurora DB cluster used by the target group. With a high value, the proxy leaves a high percentage of idle database connections open. A low value causes the proxy to close more idle connections and return them to the database. If you specify this parameter, then you must also include a value for ``MaxConnectionsPercent`` . Default: The default value is half of the value of ``MaxConnectionsPercent`` . For example, if ``MaxConnectionsPercent`` is 80, then the default value of ``MaxIdleConnectionsPercent`` is 40. If the value of ``MaxConnectionsPercent`` isn't specified, then for SQL Server, ``MaxIdleConnectionsPercent`` is ``5`` , and for all other engines, the default is ``50`` . Constraints: - Must be between 0 and the value of ``MaxConnectionsPercent`` .
|
|
15188
15195
|
:param session_pinning_filters: Each item in the list represents a class of SQL operations that normally cause all later statements in a session using a proxy to be pinned to the same underlying database connection. Including an item in the list exempts that class of SQL operations from the pinning behavior. Default: no session pinning filters
|
|
@@ -15249,6 +15256,9 @@ class CfnDBProxyTargetGroup(
|
|
|
15249
15256
|
For example: ``SET variable1=value1, variable2=value2``
|
|
15250
15257
|
|
|
15251
15258
|
Default: no initialization query
|
|
15259
|
+
.. epigraph::
|
|
15260
|
+
|
|
15261
|
+
Since you can access initialization query as part of target group configuration, it is not protected by authentication or cryptographic methods. Anyone with access to view or manage your proxy target group configuration can view the initialization query. You should not add sensitive data, such as passwords or long-lived encryption keys, to this option.
|
|
15252
15262
|
|
|
15253
15263
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbproxytargetgroup-connectionpoolconfigurationinfoformat.html#cfn-rds-dbproxytargetgroup-connectionpoolconfigurationinfoformat-initquery
|
|
15254
15264
|
'''
|
|
@@ -22526,19 +22536,20 @@ class DatabaseClusterProps:
|
|
|
22526
22536
|
# vpc: ec2.Vpc
|
|
22527
22537
|
|
|
22528
22538
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
22529
|
-
engine=rds.DatabaseClusterEngine.aurora_mysql(
|
|
22530
|
-
|
|
22539
|
+
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_01_0),
|
|
22540
|
+
credentials=rds.Credentials.from_generated_secret("clusteradmin"), # Optional - will default to 'admin' username and generated password
|
|
22541
|
+
writer=rds.ClusterInstance.provisioned("writer",
|
|
22542
|
+
publicly_accessible=False
|
|
22543
|
+
),
|
|
22544
|
+
readers=[
|
|
22545
|
+
rds.ClusterInstance.provisioned("reader1", promotion_tier=1),
|
|
22546
|
+
rds.ClusterInstance.serverless_v2("reader2")
|
|
22547
|
+
],
|
|
22548
|
+
vpc_subnets=ec2.SubnetSelection(
|
|
22549
|
+
subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS
|
|
22531
22550
|
),
|
|
22532
|
-
writer=rds.ClusterInstance.provisioned("writer"),
|
|
22533
22551
|
vpc=vpc
|
|
22534
22552
|
)
|
|
22535
|
-
|
|
22536
|
-
proxy = rds.DatabaseProxy(self, "Proxy",
|
|
22537
|
-
proxy_target=rds.ProxyTarget.from_cluster(cluster),
|
|
22538
|
-
secrets=[cluster.secret],
|
|
22539
|
-
vpc=vpc,
|
|
22540
|
-
client_password_auth_type=rds.ClientPasswordAuthType.MYSQL_NATIVE_PASSWORD
|
|
22541
|
-
)
|
|
22542
22553
|
'''
|
|
22543
22554
|
if isinstance(backup, dict):
|
|
22544
22555
|
backup = BackupProps(**backup)
|
|
@@ -23839,6 +23850,7 @@ class DatabaseInstanceLookupOptions:
|
|
|
23839
23850
|
"domain": "domain",
|
|
23840
23851
|
"domain_role": "domainRole",
|
|
23841
23852
|
"enable_performance_insights": "enablePerformanceInsights",
|
|
23853
|
+
"engine_lifecycle_support": "engineLifecycleSupport",
|
|
23842
23854
|
"iam_authentication": "iamAuthentication",
|
|
23843
23855
|
"instance_identifier": "instanceIdentifier",
|
|
23844
23856
|
"iops": "iops",
|
|
@@ -23887,6 +23899,7 @@ class DatabaseInstanceNewProps:
|
|
|
23887
23899
|
domain: typing.Optional[builtins.str] = None,
|
|
23888
23900
|
domain_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
23889
23901
|
enable_performance_insights: typing.Optional[builtins.bool] = None,
|
|
23902
|
+
engine_lifecycle_support: typing.Optional["EngineLifecycleSupport"] = None,
|
|
23890
23903
|
iam_authentication: typing.Optional[builtins.bool] = None,
|
|
23891
23904
|
instance_identifier: typing.Optional[builtins.str] = None,
|
|
23892
23905
|
iops: typing.Optional[jsii.Number] = None,
|
|
@@ -23932,6 +23945,7 @@ class DatabaseInstanceNewProps:
|
|
|
23932
23945
|
:param domain: The Active Directory directory ID to create the DB instance in. Default: - Do not join domain
|
|
23933
23946
|
:param domain_role: The IAM role to be used when making API calls to the Directory Service. The role needs the AWS-managed policy AmazonRDSDirectoryServiceAccess or equivalent. Default: - The role will be created for you if ``DatabaseInstanceNewProps#domain`` is specified
|
|
23934
23947
|
:param enable_performance_insights: Whether to enable Performance Insights for the DB instance. Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set.
|
|
23948
|
+
:param engine_lifecycle_support: The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Default: undefined - AWS RDS default setting is ``EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT``
|
|
23935
23949
|
:param iam_authentication: Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts. Default: false
|
|
23936
23950
|
:param instance_identifier: A name for the DB instance. If you specify a name, AWS CloudFormation converts it to lowercase. Default: - a CloudFormation generated name
|
|
23937
23951
|
:param iops: The number of I/O operations per second (IOPS) that the database provisions. The value must be equal to or greater than 1000. Default: - no provisioned iops if storage type is not specified. For GP3: 3,000 IOPS if allocated storage is less than 400 GiB for MariaDB, MySQL, and PostgreSQL, less than 200 GiB for Oracle and less than 20 GiB for SQL Server. 12,000 IOPS otherwise (except for SQL Server where the default is always 3,000 IOPS).
|
|
@@ -24004,6 +24018,7 @@ class DatabaseInstanceNewProps:
|
|
|
24004
24018
|
domain="domain",
|
|
24005
24019
|
domain_role=role,
|
|
24006
24020
|
enable_performance_insights=False,
|
|
24021
|
+
engine_lifecycle_support=rds.EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT,
|
|
24007
24022
|
iam_authentication=False,
|
|
24008
24023
|
instance_identifier="instanceIdentifier",
|
|
24009
24024
|
iops=123,
|
|
@@ -24064,6 +24079,7 @@ class DatabaseInstanceNewProps:
|
|
|
24064
24079
|
check_type(argname="argument domain", value=domain, expected_type=type_hints["domain"])
|
|
24065
24080
|
check_type(argname="argument domain_role", value=domain_role, expected_type=type_hints["domain_role"])
|
|
24066
24081
|
check_type(argname="argument enable_performance_insights", value=enable_performance_insights, expected_type=type_hints["enable_performance_insights"])
|
|
24082
|
+
check_type(argname="argument engine_lifecycle_support", value=engine_lifecycle_support, expected_type=type_hints["engine_lifecycle_support"])
|
|
24067
24083
|
check_type(argname="argument iam_authentication", value=iam_authentication, expected_type=type_hints["iam_authentication"])
|
|
24068
24084
|
check_type(argname="argument instance_identifier", value=instance_identifier, expected_type=type_hints["instance_identifier"])
|
|
24069
24085
|
check_type(argname="argument iops", value=iops, expected_type=type_hints["iops"])
|
|
@@ -24122,6 +24138,8 @@ class DatabaseInstanceNewProps:
|
|
|
24122
24138
|
self._values["domain_role"] = domain_role
|
|
24123
24139
|
if enable_performance_insights is not None:
|
|
24124
24140
|
self._values["enable_performance_insights"] = enable_performance_insights
|
|
24141
|
+
if engine_lifecycle_support is not None:
|
|
24142
|
+
self._values["engine_lifecycle_support"] = engine_lifecycle_support
|
|
24125
24143
|
if iam_authentication is not None:
|
|
24126
24144
|
self._values["iam_authentication"] = iam_authentication
|
|
24127
24145
|
if instance_identifier is not None:
|
|
@@ -24336,6 +24354,19 @@ class DatabaseInstanceNewProps:
|
|
|
24336
24354
|
result = self._values.get("enable_performance_insights")
|
|
24337
24355
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
24338
24356
|
|
|
24357
|
+
@builtins.property
|
|
24358
|
+
def engine_lifecycle_support(self) -> typing.Optional["EngineLifecycleSupport"]:
|
|
24359
|
+
'''The life cycle type for this DB instance.
|
|
24360
|
+
|
|
24361
|
+
This setting applies only to RDS for MySQL and RDS for PostgreSQL.
|
|
24362
|
+
|
|
24363
|
+
:default: undefined - AWS RDS default setting is ``EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT``
|
|
24364
|
+
|
|
24365
|
+
:see: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
|
|
24366
|
+
'''
|
|
24367
|
+
result = self._values.get("engine_lifecycle_support")
|
|
24368
|
+
return typing.cast(typing.Optional["EngineLifecycleSupport"], result)
|
|
24369
|
+
|
|
24339
24370
|
@builtins.property
|
|
24340
24371
|
def iam_authentication(self) -> typing.Optional[builtins.bool]:
|
|
24341
24372
|
'''Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.
|
|
@@ -24691,6 +24722,7 @@ class DatabaseInstanceNewProps:
|
|
|
24691
24722
|
"domain": "domain",
|
|
24692
24723
|
"domain_role": "domainRole",
|
|
24693
24724
|
"enable_performance_insights": "enablePerformanceInsights",
|
|
24725
|
+
"engine_lifecycle_support": "engineLifecycleSupport",
|
|
24694
24726
|
"iam_authentication": "iamAuthentication",
|
|
24695
24727
|
"instance_identifier": "instanceIdentifier",
|
|
24696
24728
|
"iops": "iops",
|
|
@@ -24744,6 +24776,7 @@ class DatabaseInstanceReadReplicaProps(DatabaseInstanceNewProps):
|
|
|
24744
24776
|
domain: typing.Optional[builtins.str] = None,
|
|
24745
24777
|
domain_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
24746
24778
|
enable_performance_insights: typing.Optional[builtins.bool] = None,
|
|
24779
|
+
engine_lifecycle_support: typing.Optional["EngineLifecycleSupport"] = None,
|
|
24747
24780
|
iam_authentication: typing.Optional[builtins.bool] = None,
|
|
24748
24781
|
instance_identifier: typing.Optional[builtins.str] = None,
|
|
24749
24782
|
iops: typing.Optional[jsii.Number] = None,
|
|
@@ -24794,6 +24827,7 @@ class DatabaseInstanceReadReplicaProps(DatabaseInstanceNewProps):
|
|
|
24794
24827
|
:param domain: The Active Directory directory ID to create the DB instance in. Default: - Do not join domain
|
|
24795
24828
|
:param domain_role: The IAM role to be used when making API calls to the Directory Service. The role needs the AWS-managed policy AmazonRDSDirectoryServiceAccess or equivalent. Default: - The role will be created for you if ``DatabaseInstanceNewProps#domain`` is specified
|
|
24796
24829
|
:param enable_performance_insights: Whether to enable Performance Insights for the DB instance. Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set.
|
|
24830
|
+
:param engine_lifecycle_support: The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Default: undefined - AWS RDS default setting is ``EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT``
|
|
24797
24831
|
:param iam_authentication: Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts. Default: false
|
|
24798
24832
|
:param instance_identifier: A name for the DB instance. If you specify a name, AWS CloudFormation converts it to lowercase. Default: - a CloudFormation generated name
|
|
24799
24833
|
:param iops: The number of I/O operations per second (IOPS) that the database provisions. The value must be equal to or greater than 1000. Default: - no provisioned iops if storage type is not specified. For GP3: 3,000 IOPS if allocated storage is less than 400 GiB for MariaDB, MySQL, and PostgreSQL, less than 200 GiB for Oracle and less than 20 GiB for SQL Server. 12,000 IOPS otherwise (except for SQL Server where the default is always 3,000 IOPS).
|
|
@@ -24869,6 +24903,7 @@ class DatabaseInstanceReadReplicaProps(DatabaseInstanceNewProps):
|
|
|
24869
24903
|
check_type(argname="argument domain", value=domain, expected_type=type_hints["domain"])
|
|
24870
24904
|
check_type(argname="argument domain_role", value=domain_role, expected_type=type_hints["domain_role"])
|
|
24871
24905
|
check_type(argname="argument enable_performance_insights", value=enable_performance_insights, expected_type=type_hints["enable_performance_insights"])
|
|
24906
|
+
check_type(argname="argument engine_lifecycle_support", value=engine_lifecycle_support, expected_type=type_hints["engine_lifecycle_support"])
|
|
24872
24907
|
check_type(argname="argument iam_authentication", value=iam_authentication, expected_type=type_hints["iam_authentication"])
|
|
24873
24908
|
check_type(argname="argument instance_identifier", value=instance_identifier, expected_type=type_hints["instance_identifier"])
|
|
24874
24909
|
check_type(argname="argument iops", value=iops, expected_type=type_hints["iops"])
|
|
@@ -24934,6 +24969,8 @@ class DatabaseInstanceReadReplicaProps(DatabaseInstanceNewProps):
|
|
|
24934
24969
|
self._values["domain_role"] = domain_role
|
|
24935
24970
|
if enable_performance_insights is not None:
|
|
24936
24971
|
self._values["enable_performance_insights"] = enable_performance_insights
|
|
24972
|
+
if engine_lifecycle_support is not None:
|
|
24973
|
+
self._values["engine_lifecycle_support"] = engine_lifecycle_support
|
|
24937
24974
|
if iam_authentication is not None:
|
|
24938
24975
|
self._values["iam_authentication"] = iam_authentication
|
|
24939
24976
|
if instance_identifier is not None:
|
|
@@ -25154,6 +25191,19 @@ class DatabaseInstanceReadReplicaProps(DatabaseInstanceNewProps):
|
|
|
25154
25191
|
result = self._values.get("enable_performance_insights")
|
|
25155
25192
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
25156
25193
|
|
|
25194
|
+
@builtins.property
|
|
25195
|
+
def engine_lifecycle_support(self) -> typing.Optional["EngineLifecycleSupport"]:
|
|
25196
|
+
'''The life cycle type for this DB instance.
|
|
25197
|
+
|
|
25198
|
+
This setting applies only to RDS for MySQL and RDS for PostgreSQL.
|
|
25199
|
+
|
|
25200
|
+
:default: undefined - AWS RDS default setting is ``EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT``
|
|
25201
|
+
|
|
25202
|
+
:see: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
|
|
25203
|
+
'''
|
|
25204
|
+
result = self._values.get("engine_lifecycle_support")
|
|
25205
|
+
return typing.cast(typing.Optional["EngineLifecycleSupport"], result)
|
|
25206
|
+
|
|
25157
25207
|
@builtins.property
|
|
25158
25208
|
def iam_authentication(self) -> typing.Optional[builtins.bool]:
|
|
25159
25209
|
'''Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.
|
|
@@ -25554,6 +25604,7 @@ class DatabaseInstanceReadReplicaProps(DatabaseInstanceNewProps):
|
|
|
25554
25604
|
"domain": "domain",
|
|
25555
25605
|
"domain_role": "domainRole",
|
|
25556
25606
|
"enable_performance_insights": "enablePerformanceInsights",
|
|
25607
|
+
"engine_lifecycle_support": "engineLifecycleSupport",
|
|
25557
25608
|
"iam_authentication": "iamAuthentication",
|
|
25558
25609
|
"instance_identifier": "instanceIdentifier",
|
|
25559
25610
|
"iops": "iops",
|
|
@@ -25610,6 +25661,7 @@ class DatabaseInstanceSourceProps(DatabaseInstanceNewProps):
|
|
|
25610
25661
|
domain: typing.Optional[builtins.str] = None,
|
|
25611
25662
|
domain_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
25612
25663
|
enable_performance_insights: typing.Optional[builtins.bool] = None,
|
|
25664
|
+
engine_lifecycle_support: typing.Optional["EngineLifecycleSupport"] = None,
|
|
25613
25665
|
iam_authentication: typing.Optional[builtins.bool] = None,
|
|
25614
25666
|
instance_identifier: typing.Optional[builtins.str] = None,
|
|
25615
25667
|
iops: typing.Optional[jsii.Number] = None,
|
|
@@ -25663,6 +25715,7 @@ class DatabaseInstanceSourceProps(DatabaseInstanceNewProps):
|
|
|
25663
25715
|
:param domain: The Active Directory directory ID to create the DB instance in. Default: - Do not join domain
|
|
25664
25716
|
:param domain_role: The IAM role to be used when making API calls to the Directory Service. The role needs the AWS-managed policy AmazonRDSDirectoryServiceAccess or equivalent. Default: - The role will be created for you if ``DatabaseInstanceNewProps#domain`` is specified
|
|
25665
25717
|
:param enable_performance_insights: Whether to enable Performance Insights for the DB instance. Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set.
|
|
25718
|
+
:param engine_lifecycle_support: The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Default: undefined - AWS RDS default setting is ``EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT``
|
|
25666
25719
|
:param iam_authentication: Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts. Default: false
|
|
25667
25720
|
:param instance_identifier: A name for the DB instance. If you specify a name, AWS CloudFormation converts it to lowercase. Default: - a CloudFormation generated name
|
|
25668
25721
|
:param iops: The number of I/O operations per second (IOPS) that the database provisions. The value must be equal to or greater than 1000. Default: - no provisioned iops if storage type is not specified. For GP3: 3,000 IOPS if allocated storage is less than 400 GiB for MariaDB, MySQL, and PostgreSQL, less than 200 GiB for Oracle and less than 20 GiB for SQL Server. 12,000 IOPS otherwise (except for SQL Server where the default is always 3,000 IOPS).
|
|
@@ -25749,6 +25802,7 @@ class DatabaseInstanceSourceProps(DatabaseInstanceNewProps):
|
|
|
25749
25802
|
domain="domain",
|
|
25750
25803
|
domain_role=role,
|
|
25751
25804
|
enable_performance_insights=False,
|
|
25805
|
+
engine_lifecycle_support=rds.EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT,
|
|
25752
25806
|
iam_authentication=False,
|
|
25753
25807
|
instance_identifier="instanceIdentifier",
|
|
25754
25808
|
instance_type=instance_type,
|
|
@@ -25815,6 +25869,7 @@ class DatabaseInstanceSourceProps(DatabaseInstanceNewProps):
|
|
|
25815
25869
|
check_type(argname="argument domain", value=domain, expected_type=type_hints["domain"])
|
|
25816
25870
|
check_type(argname="argument domain_role", value=domain_role, expected_type=type_hints["domain_role"])
|
|
25817
25871
|
check_type(argname="argument enable_performance_insights", value=enable_performance_insights, expected_type=type_hints["enable_performance_insights"])
|
|
25872
|
+
check_type(argname="argument engine_lifecycle_support", value=engine_lifecycle_support, expected_type=type_hints["engine_lifecycle_support"])
|
|
25818
25873
|
check_type(argname="argument iam_authentication", value=iam_authentication, expected_type=type_hints["iam_authentication"])
|
|
25819
25874
|
check_type(argname="argument instance_identifier", value=instance_identifier, expected_type=type_hints["instance_identifier"])
|
|
25820
25875
|
check_type(argname="argument iops", value=iops, expected_type=type_hints["iops"])
|
|
@@ -25882,6 +25937,8 @@ class DatabaseInstanceSourceProps(DatabaseInstanceNewProps):
|
|
|
25882
25937
|
self._values["domain_role"] = domain_role
|
|
25883
25938
|
if enable_performance_insights is not None:
|
|
25884
25939
|
self._values["enable_performance_insights"] = enable_performance_insights
|
|
25940
|
+
if engine_lifecycle_support is not None:
|
|
25941
|
+
self._values["engine_lifecycle_support"] = engine_lifecycle_support
|
|
25885
25942
|
if iam_authentication is not None:
|
|
25886
25943
|
self._values["iam_authentication"] = iam_authentication
|
|
25887
25944
|
if instance_identifier is not None:
|
|
@@ -26110,6 +26167,19 @@ class DatabaseInstanceSourceProps(DatabaseInstanceNewProps):
|
|
|
26110
26167
|
result = self._values.get("enable_performance_insights")
|
|
26111
26168
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
26112
26169
|
|
|
26170
|
+
@builtins.property
|
|
26171
|
+
def engine_lifecycle_support(self) -> typing.Optional["EngineLifecycleSupport"]:
|
|
26172
|
+
'''The life cycle type for this DB instance.
|
|
26173
|
+
|
|
26174
|
+
This setting applies only to RDS for MySQL and RDS for PostgreSQL.
|
|
26175
|
+
|
|
26176
|
+
:default: undefined - AWS RDS default setting is ``EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT``
|
|
26177
|
+
|
|
26178
|
+
:see: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
|
|
26179
|
+
'''
|
|
26180
|
+
result = self._values.get("engine_lifecycle_support")
|
|
26181
|
+
return typing.cast(typing.Optional["EngineLifecycleSupport"], result)
|
|
26182
|
+
|
|
26113
26183
|
@builtins.property
|
|
26114
26184
|
def iam_authentication(self) -> typing.Optional[builtins.bool]:
|
|
26115
26185
|
'''Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.
|
|
@@ -27697,6 +27767,13 @@ class EngineLifecycleSupport(enum.Enum):
|
|
|
27697
27767
|
vpc=vpc,
|
|
27698
27768
|
engine_lifecycle_support=rds.EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT
|
|
27699
27769
|
)
|
|
27770
|
+
|
|
27771
|
+
rds.DatabaseInstance(self, "DatabaseInstance",
|
|
27772
|
+
engine=rds.DatabaseInstanceEngine.mysql(version=rds.MysqlEngineVersion.VER_8_0_39),
|
|
27773
|
+
instance_type=ec2.InstanceType.of(ec2.InstanceClass.R7G, ec2.InstanceSize.LARGE),
|
|
27774
|
+
vpc=vpc,
|
|
27775
|
+
engine_lifecycle_support=rds.EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT_DISABLED
|
|
27776
|
+
)
|
|
27700
27777
|
'''
|
|
27701
27778
|
|
|
27702
27779
|
OPEN_SOURCE_RDS_EXTENDED_SUPPORT = "OPEN_SOURCE_RDS_EXTENDED_SUPPORT"
|
|
@@ -44080,6 +44157,7 @@ class DatabaseInstanceFromSnapshot(
|
|
|
44080
44157
|
domain: typing.Optional[builtins.str] = None,
|
|
44081
44158
|
domain_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
44082
44159
|
enable_performance_insights: typing.Optional[builtins.bool] = None,
|
|
44160
|
+
engine_lifecycle_support: typing.Optional[EngineLifecycleSupport] = None,
|
|
44083
44161
|
iam_authentication: typing.Optional[builtins.bool] = None,
|
|
44084
44162
|
instance_identifier: typing.Optional[builtins.str] = None,
|
|
44085
44163
|
iops: typing.Optional[jsii.Number] = None,
|
|
@@ -44137,6 +44215,7 @@ class DatabaseInstanceFromSnapshot(
|
|
|
44137
44215
|
:param domain: The Active Directory directory ID to create the DB instance in. Default: - Do not join domain
|
|
44138
44216
|
:param domain_role: The IAM role to be used when making API calls to the Directory Service. The role needs the AWS-managed policy AmazonRDSDirectoryServiceAccess or equivalent. Default: - The role will be created for you if ``DatabaseInstanceNewProps#domain`` is specified
|
|
44139
44217
|
:param enable_performance_insights: Whether to enable Performance Insights for the DB instance. Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set.
|
|
44218
|
+
:param engine_lifecycle_support: The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Default: undefined - AWS RDS default setting is ``EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT``
|
|
44140
44219
|
:param iam_authentication: Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts. Default: false
|
|
44141
44220
|
:param instance_identifier: A name for the DB instance. If you specify a name, AWS CloudFormation converts it to lowercase. Default: - a CloudFormation generated name
|
|
44142
44221
|
:param iops: The number of I/O operations per second (IOPS) that the database provisions. The value must be equal to or greater than 1000. Default: - no provisioned iops if storage type is not specified. For GP3: 3,000 IOPS if allocated storage is less than 400 GiB for MariaDB, MySQL, and PostgreSQL, less than 200 GiB for Oracle and less than 20 GiB for SQL Server. 12,000 IOPS otherwise (except for SQL Server where the default is always 3,000 IOPS).
|
|
@@ -44196,6 +44275,7 @@ class DatabaseInstanceFromSnapshot(
|
|
|
44196
44275
|
domain=domain,
|
|
44197
44276
|
domain_role=domain_role,
|
|
44198
44277
|
enable_performance_insights=enable_performance_insights,
|
|
44278
|
+
engine_lifecycle_support=engine_lifecycle_support,
|
|
44199
44279
|
iam_authentication=iam_authentication,
|
|
44200
44280
|
instance_identifier=instance_identifier,
|
|
44201
44281
|
iops=iops,
|
|
@@ -44448,6 +44528,7 @@ class DatabaseInstanceFromSnapshot(
|
|
|
44448
44528
|
"domain": "domain",
|
|
44449
44529
|
"domain_role": "domainRole",
|
|
44450
44530
|
"enable_performance_insights": "enablePerformanceInsights",
|
|
44531
|
+
"engine_lifecycle_support": "engineLifecycleSupport",
|
|
44451
44532
|
"iam_authentication": "iamAuthentication",
|
|
44452
44533
|
"instance_identifier": "instanceIdentifier",
|
|
44453
44534
|
"iops": "iops",
|
|
@@ -44507,6 +44588,7 @@ class DatabaseInstanceFromSnapshotProps(DatabaseInstanceSourceProps):
|
|
|
44507
44588
|
domain: typing.Optional[builtins.str] = None,
|
|
44508
44589
|
domain_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
44509
44590
|
enable_performance_insights: typing.Optional[builtins.bool] = None,
|
|
44591
|
+
engine_lifecycle_support: typing.Optional[EngineLifecycleSupport] = None,
|
|
44510
44592
|
iam_authentication: typing.Optional[builtins.bool] = None,
|
|
44511
44593
|
instance_identifier: typing.Optional[builtins.str] = None,
|
|
44512
44594
|
iops: typing.Optional[jsii.Number] = None,
|
|
@@ -44563,6 +44645,7 @@ class DatabaseInstanceFromSnapshotProps(DatabaseInstanceSourceProps):
|
|
|
44563
44645
|
:param domain: The Active Directory directory ID to create the DB instance in. Default: - Do not join domain
|
|
44564
44646
|
:param domain_role: The IAM role to be used when making API calls to the Directory Service. The role needs the AWS-managed policy AmazonRDSDirectoryServiceAccess or equivalent. Default: - The role will be created for you if ``DatabaseInstanceNewProps#domain`` is specified
|
|
44565
44647
|
:param enable_performance_insights: Whether to enable Performance Insights for the DB instance. Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set.
|
|
44648
|
+
:param engine_lifecycle_support: The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Default: undefined - AWS RDS default setting is ``EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT``
|
|
44566
44649
|
:param iam_authentication: Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts. Default: false
|
|
44567
44650
|
:param instance_identifier: A name for the DB instance. If you specify a name, AWS CloudFormation converts it to lowercase. Default: - a CloudFormation generated name
|
|
44568
44651
|
:param iops: The number of I/O operations per second (IOPS) that the database provisions. The value must be equal to or greater than 1000. Default: - no provisioned iops if storage type is not specified. For GP3: 3,000 IOPS if allocated storage is less than 400 GiB for MariaDB, MySQL, and PostgreSQL, less than 200 GiB for Oracle and less than 20 GiB for SQL Server. 12,000 IOPS otherwise (except for SQL Server where the default is always 3,000 IOPS).
|
|
@@ -44643,6 +44726,7 @@ class DatabaseInstanceFromSnapshotProps(DatabaseInstanceSourceProps):
|
|
|
44643
44726
|
check_type(argname="argument domain", value=domain, expected_type=type_hints["domain"])
|
|
44644
44727
|
check_type(argname="argument domain_role", value=domain_role, expected_type=type_hints["domain_role"])
|
|
44645
44728
|
check_type(argname="argument enable_performance_insights", value=enable_performance_insights, expected_type=type_hints["enable_performance_insights"])
|
|
44729
|
+
check_type(argname="argument engine_lifecycle_support", value=engine_lifecycle_support, expected_type=type_hints["engine_lifecycle_support"])
|
|
44646
44730
|
check_type(argname="argument iam_authentication", value=iam_authentication, expected_type=type_hints["iam_authentication"])
|
|
44647
44731
|
check_type(argname="argument instance_identifier", value=instance_identifier, expected_type=type_hints["instance_identifier"])
|
|
44648
44732
|
check_type(argname="argument iops", value=iops, expected_type=type_hints["iops"])
|
|
@@ -44713,6 +44797,8 @@ class DatabaseInstanceFromSnapshotProps(DatabaseInstanceSourceProps):
|
|
|
44713
44797
|
self._values["domain_role"] = domain_role
|
|
44714
44798
|
if enable_performance_insights is not None:
|
|
44715
44799
|
self._values["enable_performance_insights"] = enable_performance_insights
|
|
44800
|
+
if engine_lifecycle_support is not None:
|
|
44801
|
+
self._values["engine_lifecycle_support"] = engine_lifecycle_support
|
|
44716
44802
|
if iam_authentication is not None:
|
|
44717
44803
|
self._values["iam_authentication"] = iam_authentication
|
|
44718
44804
|
if instance_identifier is not None:
|
|
@@ -44947,6 +45033,19 @@ class DatabaseInstanceFromSnapshotProps(DatabaseInstanceSourceProps):
|
|
|
44947
45033
|
result = self._values.get("enable_performance_insights")
|
|
44948
45034
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
44949
45035
|
|
|
45036
|
+
@builtins.property
|
|
45037
|
+
def engine_lifecycle_support(self) -> typing.Optional[EngineLifecycleSupport]:
|
|
45038
|
+
'''The life cycle type for this DB instance.
|
|
45039
|
+
|
|
45040
|
+
This setting applies only to RDS for MySQL and RDS for PostgreSQL.
|
|
45041
|
+
|
|
45042
|
+
:default: undefined - AWS RDS default setting is ``EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT``
|
|
45043
|
+
|
|
45044
|
+
:see: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
|
|
45045
|
+
'''
|
|
45046
|
+
result = self._values.get("engine_lifecycle_support")
|
|
45047
|
+
return typing.cast(typing.Optional[EngineLifecycleSupport], result)
|
|
45048
|
+
|
|
44950
45049
|
@builtins.property
|
|
44951
45050
|
def iam_authentication(self) -> typing.Optional[builtins.bool]:
|
|
44952
45051
|
'''Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.
|
|
@@ -45425,6 +45524,7 @@ class DatabaseInstanceFromSnapshotProps(DatabaseInstanceSourceProps):
|
|
|
45425
45524
|
"domain": "domain",
|
|
45426
45525
|
"domain_role": "domainRole",
|
|
45427
45526
|
"enable_performance_insights": "enablePerformanceInsights",
|
|
45527
|
+
"engine_lifecycle_support": "engineLifecycleSupport",
|
|
45428
45528
|
"iam_authentication": "iamAuthentication",
|
|
45429
45529
|
"instance_identifier": "instanceIdentifier",
|
|
45430
45530
|
"iops": "iops",
|
|
@@ -45485,6 +45585,7 @@ class DatabaseInstanceProps(DatabaseInstanceSourceProps):
|
|
|
45485
45585
|
domain: typing.Optional[builtins.str] = None,
|
|
45486
45586
|
domain_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
45487
45587
|
enable_performance_insights: typing.Optional[builtins.bool] = None,
|
|
45588
|
+
engine_lifecycle_support: typing.Optional[EngineLifecycleSupport] = None,
|
|
45488
45589
|
iam_authentication: typing.Optional[builtins.bool] = None,
|
|
45489
45590
|
instance_identifier: typing.Optional[builtins.str] = None,
|
|
45490
45591
|
iops: typing.Optional[jsii.Number] = None,
|
|
@@ -45542,6 +45643,7 @@ class DatabaseInstanceProps(DatabaseInstanceSourceProps):
|
|
|
45542
45643
|
:param domain: The Active Directory directory ID to create the DB instance in. Default: - Do not join domain
|
|
45543
45644
|
:param domain_role: The IAM role to be used when making API calls to the Directory Service. The role needs the AWS-managed policy AmazonRDSDirectoryServiceAccess or equivalent. Default: - The role will be created for you if ``DatabaseInstanceNewProps#domain`` is specified
|
|
45544
45645
|
:param enable_performance_insights: Whether to enable Performance Insights for the DB instance. Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set.
|
|
45646
|
+
:param engine_lifecycle_support: The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Default: undefined - AWS RDS default setting is ``EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT``
|
|
45545
45647
|
:param iam_authentication: Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts. Default: false
|
|
45546
45648
|
:param instance_identifier: A name for the DB instance. If you specify a name, AWS CloudFormation converts it to lowercase. Default: - a CloudFormation generated name
|
|
45547
45649
|
:param iops: The number of I/O operations per second (IOPS) that the database provisions. The value must be equal to or greater than 1000. Default: - no provisioned iops if storage type is not specified. For GP3: 3,000 IOPS if allocated storage is less than 400 GiB for MariaDB, MySQL, and PostgreSQL, less than 200 GiB for Oracle and less than 20 GiB for SQL Server. 12,000 IOPS otherwise (except for SQL Server where the default is always 3,000 IOPS).
|
|
@@ -45625,6 +45727,7 @@ class DatabaseInstanceProps(DatabaseInstanceSourceProps):
|
|
|
45625
45727
|
check_type(argname="argument domain", value=domain, expected_type=type_hints["domain"])
|
|
45626
45728
|
check_type(argname="argument domain_role", value=domain_role, expected_type=type_hints["domain_role"])
|
|
45627
45729
|
check_type(argname="argument enable_performance_insights", value=enable_performance_insights, expected_type=type_hints["enable_performance_insights"])
|
|
45730
|
+
check_type(argname="argument engine_lifecycle_support", value=engine_lifecycle_support, expected_type=type_hints["engine_lifecycle_support"])
|
|
45628
45731
|
check_type(argname="argument iam_authentication", value=iam_authentication, expected_type=type_hints["iam_authentication"])
|
|
45629
45732
|
check_type(argname="argument instance_identifier", value=instance_identifier, expected_type=type_hints["instance_identifier"])
|
|
45630
45733
|
check_type(argname="argument iops", value=iops, expected_type=type_hints["iops"])
|
|
@@ -45696,6 +45799,8 @@ class DatabaseInstanceProps(DatabaseInstanceSourceProps):
|
|
|
45696
45799
|
self._values["domain_role"] = domain_role
|
|
45697
45800
|
if enable_performance_insights is not None:
|
|
45698
45801
|
self._values["enable_performance_insights"] = enable_performance_insights
|
|
45802
|
+
if engine_lifecycle_support is not None:
|
|
45803
|
+
self._values["engine_lifecycle_support"] = engine_lifecycle_support
|
|
45699
45804
|
if iam_authentication is not None:
|
|
45700
45805
|
self._values["iam_authentication"] = iam_authentication
|
|
45701
45806
|
if instance_identifier is not None:
|
|
@@ -45932,6 +46037,19 @@ class DatabaseInstanceProps(DatabaseInstanceSourceProps):
|
|
|
45932
46037
|
result = self._values.get("enable_performance_insights")
|
|
45933
46038
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
45934
46039
|
|
|
46040
|
+
@builtins.property
|
|
46041
|
+
def engine_lifecycle_support(self) -> typing.Optional[EngineLifecycleSupport]:
|
|
46042
|
+
'''The life cycle type for this DB instance.
|
|
46043
|
+
|
|
46044
|
+
This setting applies only to RDS for MySQL and RDS for PostgreSQL.
|
|
46045
|
+
|
|
46046
|
+
:default: undefined - AWS RDS default setting is ``EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT``
|
|
46047
|
+
|
|
46048
|
+
:see: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html
|
|
46049
|
+
'''
|
|
46050
|
+
result = self._values.get("engine_lifecycle_support")
|
|
46051
|
+
return typing.cast(typing.Optional[EngineLifecycleSupport], result)
|
|
46052
|
+
|
|
45935
46053
|
@builtins.property
|
|
45936
46054
|
def iam_authentication(self) -> typing.Optional[builtins.bool]:
|
|
45937
46055
|
'''Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts.
|
|
@@ -46435,6 +46553,7 @@ class DatabaseInstanceReadReplica(
|
|
|
46435
46553
|
domain: typing.Optional[builtins.str] = None,
|
|
46436
46554
|
domain_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
46437
46555
|
enable_performance_insights: typing.Optional[builtins.bool] = None,
|
|
46556
|
+
engine_lifecycle_support: typing.Optional[EngineLifecycleSupport] = None,
|
|
46438
46557
|
iam_authentication: typing.Optional[builtins.bool] = None,
|
|
46439
46558
|
instance_identifier: typing.Optional[builtins.str] = None,
|
|
46440
46559
|
iops: typing.Optional[jsii.Number] = None,
|
|
@@ -46486,6 +46605,7 @@ class DatabaseInstanceReadReplica(
|
|
|
46486
46605
|
:param domain: The Active Directory directory ID to create the DB instance in. Default: - Do not join domain
|
|
46487
46606
|
:param domain_role: The IAM role to be used when making API calls to the Directory Service. The role needs the AWS-managed policy AmazonRDSDirectoryServiceAccess or equivalent. Default: - The role will be created for you if ``DatabaseInstanceNewProps#domain`` is specified
|
|
46488
46607
|
:param enable_performance_insights: Whether to enable Performance Insights for the DB instance. Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set.
|
|
46608
|
+
:param engine_lifecycle_support: The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Default: undefined - AWS RDS default setting is ``EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT``
|
|
46489
46609
|
:param iam_authentication: Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts. Default: false
|
|
46490
46610
|
:param instance_identifier: A name for the DB instance. If you specify a name, AWS CloudFormation converts it to lowercase. Default: - a CloudFormation generated name
|
|
46491
46611
|
:param iops: The number of I/O operations per second (IOPS) that the database provisions. The value must be equal to or greater than 1000. Default: - no provisioned iops if storage type is not specified. For GP3: 3,000 IOPS if allocated storage is less than 400 GiB for MariaDB, MySQL, and PostgreSQL, less than 200 GiB for Oracle and less than 20 GiB for SQL Server. 12,000 IOPS otherwise (except for SQL Server where the default is always 3,000 IOPS).
|
|
@@ -46539,6 +46659,7 @@ class DatabaseInstanceReadReplica(
|
|
|
46539
46659
|
domain=domain,
|
|
46540
46660
|
domain_role=domain_role,
|
|
46541
46661
|
enable_performance_insights=enable_performance_insights,
|
|
46662
|
+
engine_lifecycle_support=engine_lifecycle_support,
|
|
46542
46663
|
iam_authentication=iam_authentication,
|
|
46543
46664
|
instance_identifier=instance_identifier,
|
|
46544
46665
|
iops=iops,
|
|
@@ -47003,19 +47124,20 @@ class DatabaseCluster(
|
|
|
47003
47124
|
# vpc: ec2.Vpc
|
|
47004
47125
|
|
|
47005
47126
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
47006
|
-
engine=rds.DatabaseClusterEngine.aurora_mysql(
|
|
47007
|
-
|
|
47127
|
+
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_01_0),
|
|
47128
|
+
credentials=rds.Credentials.from_generated_secret("clusteradmin"), # Optional - will default to 'admin' username and generated password
|
|
47129
|
+
writer=rds.ClusterInstance.provisioned("writer",
|
|
47130
|
+
publicly_accessible=False
|
|
47131
|
+
),
|
|
47132
|
+
readers=[
|
|
47133
|
+
rds.ClusterInstance.provisioned("reader1", promotion_tier=1),
|
|
47134
|
+
rds.ClusterInstance.serverless_v2("reader2")
|
|
47135
|
+
],
|
|
47136
|
+
vpc_subnets=ec2.SubnetSelection(
|
|
47137
|
+
subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS
|
|
47008
47138
|
),
|
|
47009
|
-
writer=rds.ClusterInstance.provisioned("writer"),
|
|
47010
47139
|
vpc=vpc
|
|
47011
47140
|
)
|
|
47012
|
-
|
|
47013
|
-
proxy = rds.DatabaseProxy(self, "Proxy",
|
|
47014
|
-
proxy_target=rds.ProxyTarget.from_cluster(cluster),
|
|
47015
|
-
secrets=[cluster.secret],
|
|
47016
|
-
vpc=vpc,
|
|
47017
|
-
client_password_auth_type=rds.ClientPasswordAuthType.MYSQL_NATIVE_PASSWORD
|
|
47018
|
-
)
|
|
47019
47141
|
'''
|
|
47020
47142
|
|
|
47021
47143
|
def __init__(
|
|
@@ -47672,6 +47794,7 @@ class DatabaseInstance(
|
|
|
47672
47794
|
domain: typing.Optional[builtins.str] = None,
|
|
47673
47795
|
domain_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
47674
47796
|
enable_performance_insights: typing.Optional[builtins.bool] = None,
|
|
47797
|
+
engine_lifecycle_support: typing.Optional[EngineLifecycleSupport] = None,
|
|
47675
47798
|
iam_authentication: typing.Optional[builtins.bool] = None,
|
|
47676
47799
|
instance_identifier: typing.Optional[builtins.str] = None,
|
|
47677
47800
|
iops: typing.Optional[jsii.Number] = None,
|
|
@@ -47730,6 +47853,7 @@ class DatabaseInstance(
|
|
|
47730
47853
|
:param domain: The Active Directory directory ID to create the DB instance in. Default: - Do not join domain
|
|
47731
47854
|
:param domain_role: The IAM role to be used when making API calls to the Directory Service. The role needs the AWS-managed policy AmazonRDSDirectoryServiceAccess or equivalent. Default: - The role will be created for you if ``DatabaseInstanceNewProps#domain`` is specified
|
|
47732
47855
|
:param enable_performance_insights: Whether to enable Performance Insights for the DB instance. Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set.
|
|
47856
|
+
:param engine_lifecycle_support: The life cycle type for this DB instance. This setting applies only to RDS for MySQL and RDS for PostgreSQL. Default: undefined - AWS RDS default setting is ``EngineLifecycleSupport.OPEN_SOURCE_RDS_EXTENDED_SUPPORT``
|
|
47733
47857
|
:param iam_authentication: Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts. Default: false
|
|
47734
47858
|
:param instance_identifier: A name for the DB instance. If you specify a name, AWS CloudFormation converts it to lowercase. Default: - a CloudFormation generated name
|
|
47735
47859
|
:param iops: The number of I/O operations per second (IOPS) that the database provisions. The value must be equal to or greater than 1000. Default: - no provisioned iops if storage type is not specified. For GP3: 3,000 IOPS if allocated storage is less than 400 GiB for MariaDB, MySQL, and PostgreSQL, less than 200 GiB for Oracle and less than 20 GiB for SQL Server. 12,000 IOPS otherwise (except for SQL Server where the default is always 3,000 IOPS).
|
|
@@ -47790,6 +47914,7 @@ class DatabaseInstance(
|
|
|
47790
47914
|
domain=domain,
|
|
47791
47915
|
domain_role=domain_role,
|
|
47792
47916
|
enable_performance_insights=enable_performance_insights,
|
|
47917
|
+
engine_lifecycle_support=engine_lifecycle_support,
|
|
47793
47918
|
iam_authentication=iam_authentication,
|
|
47794
47919
|
instance_identifier=instance_identifier,
|
|
47795
47920
|
iops=iops,
|
|
@@ -51012,6 +51137,7 @@ def _typecheckingstub__d110b1cb0043ae6adf59fc0d1bcb136b4655ac973cfbff361a0a3e2fe
|
|
|
51012
51137
|
domain: typing.Optional[builtins.str] = None,
|
|
51013
51138
|
domain_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
51014
51139
|
enable_performance_insights: typing.Optional[builtins.bool] = None,
|
|
51140
|
+
engine_lifecycle_support: typing.Optional[EngineLifecycleSupport] = None,
|
|
51015
51141
|
iam_authentication: typing.Optional[builtins.bool] = None,
|
|
51016
51142
|
instance_identifier: typing.Optional[builtins.str] = None,
|
|
51017
51143
|
iops: typing.Optional[jsii.Number] = None,
|
|
@@ -51060,6 +51186,7 @@ def _typecheckingstub__5508238388ee4afc86f97d5f22fa50578f8a1bdeed9ade8d0210c955b
|
|
|
51060
51186
|
domain: typing.Optional[builtins.str] = None,
|
|
51061
51187
|
domain_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
51062
51188
|
enable_performance_insights: typing.Optional[builtins.bool] = None,
|
|
51189
|
+
engine_lifecycle_support: typing.Optional[EngineLifecycleSupport] = None,
|
|
51063
51190
|
iam_authentication: typing.Optional[builtins.bool] = None,
|
|
51064
51191
|
instance_identifier: typing.Optional[builtins.str] = None,
|
|
51065
51192
|
iops: typing.Optional[jsii.Number] = None,
|
|
@@ -51113,6 +51240,7 @@ def _typecheckingstub__77d3b41152c4c7a3436d76bad0d83368717917e66a0f0cd849998fcd4
|
|
|
51113
51240
|
domain: typing.Optional[builtins.str] = None,
|
|
51114
51241
|
domain_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
51115
51242
|
enable_performance_insights: typing.Optional[builtins.bool] = None,
|
|
51243
|
+
engine_lifecycle_support: typing.Optional[EngineLifecycleSupport] = None,
|
|
51116
51244
|
iam_authentication: typing.Optional[builtins.bool] = None,
|
|
51117
51245
|
instance_identifier: typing.Optional[builtins.str] = None,
|
|
51118
51246
|
iops: typing.Optional[jsii.Number] = None,
|
|
@@ -52369,6 +52497,7 @@ def _typecheckingstub__dbf7e60a650d0a1bea1826814200716f46cd1f59eea36a42193653d7f
|
|
|
52369
52497
|
domain: typing.Optional[builtins.str] = None,
|
|
52370
52498
|
domain_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
52371
52499
|
enable_performance_insights: typing.Optional[builtins.bool] = None,
|
|
52500
|
+
engine_lifecycle_support: typing.Optional[EngineLifecycleSupport] = None,
|
|
52372
52501
|
iam_authentication: typing.Optional[builtins.bool] = None,
|
|
52373
52502
|
instance_identifier: typing.Optional[builtins.str] = None,
|
|
52374
52503
|
iops: typing.Optional[jsii.Number] = None,
|
|
@@ -52444,6 +52573,7 @@ def _typecheckingstub__f06d86058a0a7538eb7dbf55de032c8cf05f7fa7b4ab5d5c1d47f7617
|
|
|
52444
52573
|
domain: typing.Optional[builtins.str] = None,
|
|
52445
52574
|
domain_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
52446
52575
|
enable_performance_insights: typing.Optional[builtins.bool] = None,
|
|
52576
|
+
engine_lifecycle_support: typing.Optional[EngineLifecycleSupport] = None,
|
|
52447
52577
|
iam_authentication: typing.Optional[builtins.bool] = None,
|
|
52448
52578
|
instance_identifier: typing.Optional[builtins.str] = None,
|
|
52449
52579
|
iops: typing.Optional[jsii.Number] = None,
|
|
@@ -52503,6 +52633,7 @@ def _typecheckingstub__23675ebe667ec40ba6afd82bf8b65d901cc9a4bfc79be222b108037d5
|
|
|
52503
52633
|
domain: typing.Optional[builtins.str] = None,
|
|
52504
52634
|
domain_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
52505
52635
|
enable_performance_insights: typing.Optional[builtins.bool] = None,
|
|
52636
|
+
engine_lifecycle_support: typing.Optional[EngineLifecycleSupport] = None,
|
|
52506
52637
|
iam_authentication: typing.Optional[builtins.bool] = None,
|
|
52507
52638
|
instance_identifier: typing.Optional[builtins.str] = None,
|
|
52508
52639
|
iops: typing.Optional[jsii.Number] = None,
|
|
@@ -52570,6 +52701,7 @@ def _typecheckingstub__b2082895d1c502ba05a38a32c44782a7480089cd804d396ed1b41ca4a
|
|
|
52570
52701
|
domain: typing.Optional[builtins.str] = None,
|
|
52571
52702
|
domain_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
52572
52703
|
enable_performance_insights: typing.Optional[builtins.bool] = None,
|
|
52704
|
+
engine_lifecycle_support: typing.Optional[EngineLifecycleSupport] = None,
|
|
52573
52705
|
iam_authentication: typing.Optional[builtins.bool] = None,
|
|
52574
52706
|
instance_identifier: typing.Optional[builtins.str] = None,
|
|
52575
52707
|
iops: typing.Optional[jsii.Number] = None,
|
|
@@ -52799,6 +52931,7 @@ def _typecheckingstub__cb12c4cf0f41b623c75db1c295b846314e730919538b3374019067232
|
|
|
52799
52931
|
domain: typing.Optional[builtins.str] = None,
|
|
52800
52932
|
domain_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
52801
52933
|
enable_performance_insights: typing.Optional[builtins.bool] = None,
|
|
52934
|
+
engine_lifecycle_support: typing.Optional[EngineLifecycleSupport] = None,
|
|
52802
52935
|
iam_authentication: typing.Optional[builtins.bool] = None,
|
|
52803
52936
|
instance_identifier: typing.Optional[builtins.str] = None,
|
|
52804
52937
|
iops: typing.Optional[jsii.Number] = None,
|