aws-cdk-lib 2.178.2__py3-none-any.whl → 2.179.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 +69 -35
- aws_cdk/_jsii/__init__.py +1 -2
- aws_cdk/_jsii/{aws-cdk-lib@2.178.2.jsii.tgz → aws-cdk-lib@2.179.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +170 -29
- aws_cdk/aws_apigatewayv2/__init__.py +151 -32
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +348 -0
- aws_cdk/aws_applicationautoscaling/__init__.py +8 -8
- aws_cdk/aws_appsync/__init__.py +6 -4
- aws_cdk/aws_cloudfront/__init__.py +5 -5
- aws_cdk/aws_codebuild/__init__.py +216 -0
- aws_cdk/aws_codepipeline/__init__.py +89 -28
- aws_cdk/aws_codepipeline_actions/__init__.py +526 -62
- aws_cdk/aws_cognito/__init__.py +676 -20
- aws_cdk/aws_ec2/__init__.py +25 -9
- aws_cdk/aws_ecs/__init__.py +8 -8
- aws_cdk/aws_eks/__init__.py +555 -179
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +99 -0
- aws_cdk/aws_events/__init__.py +9 -15
- aws_cdk/aws_events_targets/__init__.py +303 -16
- aws_cdk/aws_iam/__init__.py +3 -3
- aws_cdk/aws_ivs/__init__.py +241 -73
- aws_cdk/aws_logs/__init__.py +62 -13
- aws_cdk/aws_pinpoint/__init__.py +14 -9
- aws_cdk/aws_rds/__init__.py +168 -24
- aws_cdk/aws_s3/__init__.py +9 -9
- aws_cdk/aws_stepfunctions_tasks/__init__.py +127 -21
- aws_cdk/pipelines/__init__.py +2 -2
- {aws_cdk_lib-2.178.2.dist-info → aws_cdk_lib-2.179.0.dist-info}/METADATA +1 -2
- {aws_cdk_lib-2.178.2.dist-info → aws_cdk_lib-2.179.0.dist-info}/RECORD +33 -34
- aws_cdk/lambda_layer_kubectl/__init__.py +0 -107
- {aws_cdk_lib-2.178.2.dist-info → aws_cdk_lib-2.179.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.178.2.dist-info → aws_cdk_lib-2.179.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.178.2.dist-info → aws_cdk_lib-2.179.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.178.2.dist-info → aws_cdk_lib-2.179.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_rds/__init__.py
CHANGED
|
@@ -1602,6 +1602,34 @@ To see Amazon Aurora DB engines that support Performance Insights, see [Amazon A
|
|
|
1602
1602
|
|
|
1603
1603
|
For more information about Performance Insights, see [Monitoring DB load with Performance Insights on Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html).
|
|
1604
1604
|
|
|
1605
|
+
## Database Insights
|
|
1606
|
+
|
|
1607
|
+
The standard mode of Database Insights is enabled by default for Aurora databases.
|
|
1608
|
+
|
|
1609
|
+
You can enhance the monitoring of your Aurora databases by enabling the advanced mode of Database Insights.
|
|
1610
|
+
|
|
1611
|
+
To control Database Insights mode, use the `databaseInsightsMode` property:
|
|
1612
|
+
|
|
1613
|
+
```python
|
|
1614
|
+
# vpc: ec2.Vpc
|
|
1615
|
+
|
|
1616
|
+
rds.DatabaseCluster(self, "Database",
|
|
1617
|
+
engine=rds.DatabaseClusterEngine.AURORA,
|
|
1618
|
+
vpc=vpc,
|
|
1619
|
+
# If you enable the advanced mode of Database Insights,
|
|
1620
|
+
# Performance Insights is enabled and you must set the `performanceInsightRetention` to 465(15 months).
|
|
1621
|
+
database_insights_mode=rds.DatabaseInsightsMode.ADVANCED,
|
|
1622
|
+
performance_insight_retention=rds.PerformanceInsightRetention.MONTHS_15,
|
|
1623
|
+
writer=rds.ClusterInstance.provisioned("Writer",
|
|
1624
|
+
instance_type=ec2.InstanceType.of(ec2.InstanceClass.R7G, ec2.InstanceSize.LARGE)
|
|
1625
|
+
)
|
|
1626
|
+
)
|
|
1627
|
+
```
|
|
1628
|
+
|
|
1629
|
+
Note: Database Insights are only supported for Amazon Aurora MySQL and Amazon Aurora PostgreSQL clusters.
|
|
1630
|
+
|
|
1631
|
+
> Visit [CloudWatch Database Insights](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Database-Insights.html) for more details.
|
|
1632
|
+
|
|
1605
1633
|
## Enhanced Monitoring
|
|
1606
1634
|
|
|
1607
1635
|
With [Enhanced Monitoring](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling), you can monitor the operating system of your DB instance in real time.
|
|
@@ -20802,6 +20830,7 @@ class DatabaseClusterEngine(
|
|
|
20802
20830
|
"cluster_scalability_type": "clusterScalabilityType",
|
|
20803
20831
|
"copy_tags_to_snapshot": "copyTagsToSnapshot",
|
|
20804
20832
|
"credentials": "credentials",
|
|
20833
|
+
"database_insights_mode": "databaseInsightsMode",
|
|
20805
20834
|
"default_database_name": "defaultDatabaseName",
|
|
20806
20835
|
"deletion_protection": "deletionProtection",
|
|
20807
20836
|
"domain": "domain",
|
|
@@ -20860,6 +20889,7 @@ class DatabaseClusterFromSnapshotProps:
|
|
|
20860
20889
|
cluster_scalability_type: typing.Optional[ClusterScalabilityType] = None,
|
|
20861
20890
|
copy_tags_to_snapshot: typing.Optional[builtins.bool] = None,
|
|
20862
20891
|
credentials: typing.Optional[Credentials] = None,
|
|
20892
|
+
database_insights_mode: typing.Optional["DatabaseInsightsMode"] = None,
|
|
20863
20893
|
default_database_name: typing.Optional[builtins.str] = None,
|
|
20864
20894
|
deletion_protection: typing.Optional[builtins.bool] = None,
|
|
20865
20895
|
domain: typing.Optional[builtins.str] = None,
|
|
@@ -20915,6 +20945,7 @@ class DatabaseClusterFromSnapshotProps:
|
|
|
20915
20945
|
:param cluster_scalability_type: Specifies the scalability mode of the Aurora DB cluster. Set LIMITLESS if you want to use a limitless database; otherwise, set it to STANDARD. Default: ClusterScalabilityType.STANDARD
|
|
20916
20946
|
:param copy_tags_to_snapshot: Whether to copy tags to the snapshot when a snapshot is created. Default: - true
|
|
20917
20947
|
:param credentials: (deprecated) Credentials for the administrative user. Note - using this prop only works with ``Credentials.fromPassword()`` with the username of the snapshot, ``Credentials.fromUsername()`` with the username and password of the snapshot or ``Credentials.fromSecret()`` with a secret containing the username and password of the snapshot. Default: - A username of 'admin' (or 'postgres' for PostgreSQL) and SecretsManager-generated password that **will not be applied** to the cluster, use ``snapshotCredentials`` for the correct behavior.
|
|
20948
|
+
:param database_insights_mode: The database insights mode. Default: - DatabaseInsightsMode.STANDARD when performance insights are enabled and Amazon Aurora engine is used, otherwise not set.
|
|
20918
20949
|
:param default_database_name: Name of a database which is automatically created inside the cluster. Default: - Database is not created in cluster.
|
|
20919
20950
|
:param deletion_protection: Indicates whether the DB cluster should have deletion protection enabled. Default: - true if ``removalPolicy`` is RETAIN, ``undefined`` otherwise, which will not enable deletion protection. To disable deletion protection after it has been enabled, you must explicitly set this value to ``false``.
|
|
20920
20951
|
:param domain: Directory ID for associating the DB cluster with a specific Active Directory. Necessary for enabling Kerberos authentication. If specified, the DB cluster joins the given Active Directory, enabling Kerberos authentication. If not specified, the DB cluster will not be associated with any Active Directory, and Kerberos authentication will not be enabled. Default: - DB cluster is not associated with an Active Directory; Kerberos authentication is not enabled.
|
|
@@ -20922,7 +20953,7 @@ class DatabaseClusterFromSnapshotProps:
|
|
|
20922
20953
|
:param enable_cluster_level_enhanced_monitoring: Whether to enable enhanced monitoring at the cluster level. If set to true, ``monitoringInterval`` and ``monitoringRole`` are applied to not the instances, but the cluster. ``monitoringInterval`` is required to be set if ``enableClusterLevelEnhancedMonitoring`` is set to true. Default: - When the ``monitoringInterval`` is set, enhanced monitoring is enabled for each instance.
|
|
20923
20954
|
:param enable_data_api: Whether to enable the Data API for the cluster. Default: - false
|
|
20924
20955
|
:param enable_local_write_forwarding: Whether read replicas can forward write operations to the writer DB instance in the DB cluster. This setting can only be enabled for Aurora MySQL 3.04 or higher, and for Aurora PostgreSQL 16.4 or higher (for version 16), 15.8 or higher (for version 15), and 14.13 or higher (for version 14). Default: false
|
|
20925
|
-
:param enable_performance_insights: Whether to enable Performance Insights for the DB cluster. Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set.
|
|
20956
|
+
:param enable_performance_insights: Whether to enable Performance Insights for the DB cluster. Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set, or ``databaseInsightsMode`` is set to ``DatabaseInsightsMode.ADVANCED``.
|
|
20926
20957
|
:param iam_authentication: Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts. Default: false
|
|
20927
20958
|
:param instance_identifier_base: Base identifier for instances. Every replica is named by appending the replica number to this string, 1-based. Default: - clusterIdentifier is used with the word "Instance" appended. If clusterIdentifier is not provided, the identifier is automatically generated.
|
|
20928
20959
|
:param instance_props: (deprecated) Settings for the individual instances that are launched.
|
|
@@ -20934,7 +20965,7 @@ class DatabaseClusterFromSnapshotProps:
|
|
|
20934
20965
|
:param parameter_group: Additional parameters to pass to the database engine. Default: - No parameter group.
|
|
20935
20966
|
:param parameters: The parameters in the DBClusterParameterGroup to create automatically. You can only specify parameterGroup or parameters but not both. You need to use a versioned engine to auto-generate a DBClusterParameterGroup. Default: - None
|
|
20936
20967
|
:param performance_insight_encryption_key: The AWS KMS key for encryption of Performance Insights data. Default: - default master key
|
|
20937
|
-
:param performance_insight_retention: The amount of time, in days, to retain Performance Insights data. Default: 7
|
|
20968
|
+
:param performance_insight_retention: The amount of time, in days, to retain Performance Insights data. If you set ``databaseInsightsMode`` to ``DatabaseInsightsMode.ADVANCED``, you must set this property to ``PerformanceInsightRetention.MONTHS_15``. Default: - 7
|
|
20938
20969
|
:param port: What port to listen on. Default: - The default for the engine is used.
|
|
20939
20970
|
:param preferred_maintenance_window: A preferred maintenance window day/time range. Should be specified as a range ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). Example: 'Sun:23:45-Mon:00:15' Default: - 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.
|
|
20940
20971
|
:param readers: A list of instances to create as cluster reader instances. Default: - no readers are created. The cluster will have a single writer/reader
|
|
@@ -20989,6 +21020,7 @@ class DatabaseClusterFromSnapshotProps:
|
|
|
20989
21020
|
check_type(argname="argument cluster_scalability_type", value=cluster_scalability_type, expected_type=type_hints["cluster_scalability_type"])
|
|
20990
21021
|
check_type(argname="argument copy_tags_to_snapshot", value=copy_tags_to_snapshot, expected_type=type_hints["copy_tags_to_snapshot"])
|
|
20991
21022
|
check_type(argname="argument credentials", value=credentials, expected_type=type_hints["credentials"])
|
|
21023
|
+
check_type(argname="argument database_insights_mode", value=database_insights_mode, expected_type=type_hints["database_insights_mode"])
|
|
20992
21024
|
check_type(argname="argument default_database_name", value=default_database_name, expected_type=type_hints["default_database_name"])
|
|
20993
21025
|
check_type(argname="argument deletion_protection", value=deletion_protection, expected_type=type_hints["deletion_protection"])
|
|
20994
21026
|
check_type(argname="argument domain", value=domain, expected_type=type_hints["domain"])
|
|
@@ -21054,6 +21086,8 @@ class DatabaseClusterFromSnapshotProps:
|
|
|
21054
21086
|
self._values["copy_tags_to_snapshot"] = copy_tags_to_snapshot
|
|
21055
21087
|
if credentials is not None:
|
|
21056
21088
|
self._values["credentials"] = credentials
|
|
21089
|
+
if database_insights_mode is not None:
|
|
21090
|
+
self._values["database_insights_mode"] = database_insights_mode
|
|
21057
21091
|
if default_database_name is not None:
|
|
21058
21092
|
self._values["default_database_name"] = default_database_name
|
|
21059
21093
|
if deletion_protection is not None:
|
|
@@ -21285,6 +21319,15 @@ class DatabaseClusterFromSnapshotProps:
|
|
|
21285
21319
|
result = self._values.get("credentials")
|
|
21286
21320
|
return typing.cast(typing.Optional[Credentials], result)
|
|
21287
21321
|
|
|
21322
|
+
@builtins.property
|
|
21323
|
+
def database_insights_mode(self) -> typing.Optional["DatabaseInsightsMode"]:
|
|
21324
|
+
'''The database insights mode.
|
|
21325
|
+
|
|
21326
|
+
:default: - DatabaseInsightsMode.STANDARD when performance insights are enabled and Amazon Aurora engine is used, otherwise not set.
|
|
21327
|
+
'''
|
|
21328
|
+
result = self._values.get("database_insights_mode")
|
|
21329
|
+
return typing.cast(typing.Optional["DatabaseInsightsMode"], result)
|
|
21330
|
+
|
|
21288
21331
|
@builtins.property
|
|
21289
21332
|
def default_database_name(self) -> typing.Optional[builtins.str]:
|
|
21290
21333
|
'''Name of a database which is automatically created inside the cluster.
|
|
@@ -21371,7 +21414,10 @@ class DatabaseClusterFromSnapshotProps:
|
|
|
21371
21414
|
def enable_performance_insights(self) -> typing.Optional[builtins.bool]:
|
|
21372
21415
|
'''Whether to enable Performance Insights for the DB cluster.
|
|
21373
21416
|
|
|
21374
|
-
:default:
|
|
21417
|
+
:default:
|
|
21418
|
+
|
|
21419
|
+
- false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set,
|
|
21420
|
+
or ``databaseInsightsMode`` is set to ``DatabaseInsightsMode.ADVANCED``.
|
|
21375
21421
|
'''
|
|
21376
21422
|
result = self._values.get("enable_performance_insights")
|
|
21377
21423
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
@@ -21503,7 +21549,9 @@ class DatabaseClusterFromSnapshotProps:
|
|
|
21503
21549
|
) -> typing.Optional["PerformanceInsightRetention"]:
|
|
21504
21550
|
'''The amount of time, in days, to retain Performance Insights data.
|
|
21505
21551
|
|
|
21506
|
-
|
|
21552
|
+
If you set ``databaseInsightsMode`` to ``DatabaseInsightsMode.ADVANCED``, you must set this property to ``PerformanceInsightRetention.MONTHS_15``.
|
|
21553
|
+
|
|
21554
|
+
:default: - 7
|
|
21507
21555
|
'''
|
|
21508
21556
|
result = self._values.get("performance_insight_retention")
|
|
21509
21557
|
return typing.cast(typing.Optional["PerformanceInsightRetention"], result)
|
|
@@ -21762,6 +21810,7 @@ class DatabaseClusterFromSnapshotProps:
|
|
|
21762
21810
|
"cluster_scalability_type": "clusterScalabilityType",
|
|
21763
21811
|
"copy_tags_to_snapshot": "copyTagsToSnapshot",
|
|
21764
21812
|
"credentials": "credentials",
|
|
21813
|
+
"database_insights_mode": "databaseInsightsMode",
|
|
21765
21814
|
"default_database_name": "defaultDatabaseName",
|
|
21766
21815
|
"deletion_protection": "deletionProtection",
|
|
21767
21816
|
"domain": "domain",
|
|
@@ -21818,6 +21867,7 @@ class DatabaseClusterProps:
|
|
|
21818
21867
|
cluster_scalability_type: typing.Optional[ClusterScalabilityType] = None,
|
|
21819
21868
|
copy_tags_to_snapshot: typing.Optional[builtins.bool] = None,
|
|
21820
21869
|
credentials: typing.Optional[Credentials] = None,
|
|
21870
|
+
database_insights_mode: typing.Optional["DatabaseInsightsMode"] = None,
|
|
21821
21871
|
default_database_name: typing.Optional[builtins.str] = None,
|
|
21822
21872
|
deletion_protection: typing.Optional[builtins.bool] = None,
|
|
21823
21873
|
domain: typing.Optional[builtins.str] = None,
|
|
@@ -21871,6 +21921,7 @@ class DatabaseClusterProps:
|
|
|
21871
21921
|
:param cluster_scalability_type: Specifies the scalability mode of the Aurora DB cluster. Set LIMITLESS if you want to use a limitless database; otherwise, set it to STANDARD. Default: ClusterScalabilityType.STANDARD
|
|
21872
21922
|
:param copy_tags_to_snapshot: Whether to copy tags to the snapshot when a snapshot is created. Default: - true
|
|
21873
21923
|
:param credentials: Credentials for the administrative user. Default: - A username of 'admin' (or 'postgres' for PostgreSQL) and SecretsManager-generated password
|
|
21924
|
+
:param database_insights_mode: The database insights mode. Default: - DatabaseInsightsMode.STANDARD when performance insights are enabled and Amazon Aurora engine is used, otherwise not set.
|
|
21874
21925
|
:param default_database_name: Name of a database which is automatically created inside the cluster. Default: - Database is not created in cluster.
|
|
21875
21926
|
:param deletion_protection: Indicates whether the DB cluster should have deletion protection enabled. Default: - true if ``removalPolicy`` is RETAIN, ``undefined`` otherwise, which will not enable deletion protection. To disable deletion protection after it has been enabled, you must explicitly set this value to ``false``.
|
|
21876
21927
|
:param domain: Directory ID for associating the DB cluster with a specific Active Directory. Necessary for enabling Kerberos authentication. If specified, the DB cluster joins the given Active Directory, enabling Kerberos authentication. If not specified, the DB cluster will not be associated with any Active Directory, and Kerberos authentication will not be enabled. Default: - DB cluster is not associated with an Active Directory; Kerberos authentication is not enabled.
|
|
@@ -21878,7 +21929,7 @@ class DatabaseClusterProps:
|
|
|
21878
21929
|
:param enable_cluster_level_enhanced_monitoring: Whether to enable enhanced monitoring at the cluster level. If set to true, ``monitoringInterval`` and ``monitoringRole`` are applied to not the instances, but the cluster. ``monitoringInterval`` is required to be set if ``enableClusterLevelEnhancedMonitoring`` is set to true. Default: - When the ``monitoringInterval`` is set, enhanced monitoring is enabled for each instance.
|
|
21879
21930
|
:param enable_data_api: Whether to enable the Data API for the cluster. Default: - false
|
|
21880
21931
|
:param enable_local_write_forwarding: Whether read replicas can forward write operations to the writer DB instance in the DB cluster. This setting can only be enabled for Aurora MySQL 3.04 or higher, and for Aurora PostgreSQL 16.4 or higher (for version 16), 15.8 or higher (for version 15), and 14.13 or higher (for version 14). Default: false
|
|
21881
|
-
:param enable_performance_insights: Whether to enable Performance Insights for the DB cluster. Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set.
|
|
21932
|
+
:param enable_performance_insights: Whether to enable Performance Insights for the DB cluster. Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set, or ``databaseInsightsMode`` is set to ``DatabaseInsightsMode.ADVANCED``.
|
|
21882
21933
|
:param iam_authentication: Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts. Default: false
|
|
21883
21934
|
:param instance_identifier_base: Base identifier for instances. Every replica is named by appending the replica number to this string, 1-based. Default: - clusterIdentifier is used with the word "Instance" appended. If clusterIdentifier is not provided, the identifier is automatically generated.
|
|
21884
21935
|
:param instance_props: (deprecated) Settings for the individual instances that are launched.
|
|
@@ -21890,7 +21941,7 @@ class DatabaseClusterProps:
|
|
|
21890
21941
|
:param parameter_group: Additional parameters to pass to the database engine. Default: - No parameter group.
|
|
21891
21942
|
:param parameters: The parameters in the DBClusterParameterGroup to create automatically. You can only specify parameterGroup or parameters but not both. You need to use a versioned engine to auto-generate a DBClusterParameterGroup. Default: - None
|
|
21892
21943
|
:param performance_insight_encryption_key: The AWS KMS key for encryption of Performance Insights data. Default: - default master key
|
|
21893
|
-
:param performance_insight_retention: The amount of time, in days, to retain Performance Insights data. Default: 7
|
|
21944
|
+
:param performance_insight_retention: The amount of time, in days, to retain Performance Insights data. If you set ``databaseInsightsMode`` to ``DatabaseInsightsMode.ADVANCED``, you must set this property to ``PerformanceInsightRetention.MONTHS_15``. Default: - 7
|
|
21894
21945
|
:param port: What port to listen on. Default: - The default for the engine is used.
|
|
21895
21946
|
:param preferred_maintenance_window: A preferred maintenance window day/time range. Should be specified as a range ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). Example: 'Sun:23:45-Mon:00:15' Default: - 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.
|
|
21896
21947
|
:param readers: A list of instances to create as cluster reader instances. Default: - no readers are created. The cluster will have a single writer/reader
|
|
@@ -21918,17 +21969,17 @@ class DatabaseClusterProps:
|
|
|
21918
21969
|
|
|
21919
21970
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
21920
21971
|
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_01_0),
|
|
21972
|
+
credentials=rds.Credentials.from_generated_secret("clusteradmin"), # Optional - will default to 'admin' username and generated password
|
|
21921
21973
|
writer=rds.ClusterInstance.provisioned("writer",
|
|
21922
|
-
|
|
21974
|
+
publicly_accessible=False
|
|
21923
21975
|
),
|
|
21924
|
-
serverless_v2_min_capacity=6.5,
|
|
21925
|
-
serverless_v2_max_capacity=64,
|
|
21926
21976
|
readers=[
|
|
21927
|
-
|
|
21928
|
-
rds.ClusterInstance.serverless_v2("reader1", scale_with_writer=True),
|
|
21929
|
-
# will be put in promotion tier 2 and will not scale with the writer
|
|
21977
|
+
rds.ClusterInstance.provisioned("reader1", promotion_tier=1),
|
|
21930
21978
|
rds.ClusterInstance.serverless_v2("reader2")
|
|
21931
21979
|
],
|
|
21980
|
+
vpc_subnets=ec2.SubnetSelection(
|
|
21981
|
+
subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS
|
|
21982
|
+
),
|
|
21932
21983
|
vpc=vpc
|
|
21933
21984
|
)
|
|
21934
21985
|
'''
|
|
@@ -21952,6 +22003,7 @@ class DatabaseClusterProps:
|
|
|
21952
22003
|
check_type(argname="argument cluster_scalability_type", value=cluster_scalability_type, expected_type=type_hints["cluster_scalability_type"])
|
|
21953
22004
|
check_type(argname="argument copy_tags_to_snapshot", value=copy_tags_to_snapshot, expected_type=type_hints["copy_tags_to_snapshot"])
|
|
21954
22005
|
check_type(argname="argument credentials", value=credentials, expected_type=type_hints["credentials"])
|
|
22006
|
+
check_type(argname="argument database_insights_mode", value=database_insights_mode, expected_type=type_hints["database_insights_mode"])
|
|
21955
22007
|
check_type(argname="argument default_database_name", value=default_database_name, expected_type=type_hints["default_database_name"])
|
|
21956
22008
|
check_type(argname="argument deletion_protection", value=deletion_protection, expected_type=type_hints["deletion_protection"])
|
|
21957
22009
|
check_type(argname="argument domain", value=domain, expected_type=type_hints["domain"])
|
|
@@ -22015,6 +22067,8 @@ class DatabaseClusterProps:
|
|
|
22015
22067
|
self._values["copy_tags_to_snapshot"] = copy_tags_to_snapshot
|
|
22016
22068
|
if credentials is not None:
|
|
22017
22069
|
self._values["credentials"] = credentials
|
|
22070
|
+
if database_insights_mode is not None:
|
|
22071
|
+
self._values["database_insights_mode"] = database_insights_mode
|
|
22018
22072
|
if default_database_name is not None:
|
|
22019
22073
|
self._values["default_database_name"] = default_database_name
|
|
22020
22074
|
if deletion_protection is not None:
|
|
@@ -22221,6 +22275,15 @@ class DatabaseClusterProps:
|
|
|
22221
22275
|
result = self._values.get("credentials")
|
|
22222
22276
|
return typing.cast(typing.Optional[Credentials], result)
|
|
22223
22277
|
|
|
22278
|
+
@builtins.property
|
|
22279
|
+
def database_insights_mode(self) -> typing.Optional["DatabaseInsightsMode"]:
|
|
22280
|
+
'''The database insights mode.
|
|
22281
|
+
|
|
22282
|
+
:default: - DatabaseInsightsMode.STANDARD when performance insights are enabled and Amazon Aurora engine is used, otherwise not set.
|
|
22283
|
+
'''
|
|
22284
|
+
result = self._values.get("database_insights_mode")
|
|
22285
|
+
return typing.cast(typing.Optional["DatabaseInsightsMode"], result)
|
|
22286
|
+
|
|
22224
22287
|
@builtins.property
|
|
22225
22288
|
def default_database_name(self) -> typing.Optional[builtins.str]:
|
|
22226
22289
|
'''Name of a database which is automatically created inside the cluster.
|
|
@@ -22307,7 +22370,10 @@ class DatabaseClusterProps:
|
|
|
22307
22370
|
def enable_performance_insights(self) -> typing.Optional[builtins.bool]:
|
|
22308
22371
|
'''Whether to enable Performance Insights for the DB cluster.
|
|
22309
22372
|
|
|
22310
|
-
:default:
|
|
22373
|
+
:default:
|
|
22374
|
+
|
|
22375
|
+
- false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set,
|
|
22376
|
+
or ``databaseInsightsMode`` is set to ``DatabaseInsightsMode.ADVANCED``.
|
|
22311
22377
|
'''
|
|
22312
22378
|
result = self._values.get("enable_performance_insights")
|
|
22313
22379
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
@@ -22439,7 +22505,9 @@ class DatabaseClusterProps:
|
|
|
22439
22505
|
) -> typing.Optional["PerformanceInsightRetention"]:
|
|
22440
22506
|
'''The amount of time, in days, to retain Performance Insights data.
|
|
22441
22507
|
|
|
22442
|
-
|
|
22508
|
+
If you set ``databaseInsightsMode`` to ``DatabaseInsightsMode.ADVANCED``, you must set this property to ``PerformanceInsightRetention.MONTHS_15``.
|
|
22509
|
+
|
|
22510
|
+
:default: - 7
|
|
22443
22511
|
'''
|
|
22444
22512
|
result = self._values.get("performance_insight_retention")
|
|
22445
22513
|
return typing.cast(typing.Optional["PerformanceInsightRetention"], result)
|
|
@@ -22670,6 +22738,35 @@ class DatabaseClusterProps:
|
|
|
22670
22738
|
)
|
|
22671
22739
|
|
|
22672
22740
|
|
|
22741
|
+
@jsii.enum(jsii_type="aws-cdk-lib.aws_rds.DatabaseInsightsMode")
|
|
22742
|
+
class DatabaseInsightsMode(enum.Enum):
|
|
22743
|
+
'''The database insights mode of the Aurora DB cluster.
|
|
22744
|
+
|
|
22745
|
+
:exampleMetadata: infused
|
|
22746
|
+
|
|
22747
|
+
Example::
|
|
22748
|
+
|
|
22749
|
+
# vpc: ec2.Vpc
|
|
22750
|
+
|
|
22751
|
+
rds.DatabaseCluster(self, "Database",
|
|
22752
|
+
engine=rds.DatabaseClusterEngine.AURORA,
|
|
22753
|
+
vpc=vpc,
|
|
22754
|
+
# If you enable the advanced mode of Database Insights,
|
|
22755
|
+
# Performance Insights is enabled and you must set the `performanceInsightRetention` to 465(15 months).
|
|
22756
|
+
database_insights_mode=rds.DatabaseInsightsMode.ADVANCED,
|
|
22757
|
+
performance_insight_retention=rds.PerformanceInsightRetention.MONTHS_15,
|
|
22758
|
+
writer=rds.ClusterInstance.provisioned("Writer",
|
|
22759
|
+
instance_type=ec2.InstanceType.of(ec2.InstanceClass.R7G, ec2.InstanceSize.LARGE)
|
|
22760
|
+
)
|
|
22761
|
+
)
|
|
22762
|
+
'''
|
|
22763
|
+
|
|
22764
|
+
STANDARD = "STANDARD"
|
|
22765
|
+
'''Standard mode.'''
|
|
22766
|
+
ADVANCED = "ADVANCED"
|
|
22767
|
+
'''Advanced mode.'''
|
|
22768
|
+
|
|
22769
|
+
|
|
22673
22770
|
@jsii.data_type(
|
|
22674
22771
|
jsii_type="aws-cdk-lib.aws_rds.DatabaseInstanceAttributes",
|
|
22675
22772
|
jsii_struct_bases=[],
|
|
@@ -33766,6 +33863,12 @@ class OracleEngineVersion(
|
|
|
33766
33863
|
'''Version "19.0.0.0.ru-2024-10.rur-2024-10.r1".'''
|
|
33767
33864
|
return typing.cast("OracleEngineVersion", jsii.sget(cls, "VER_19_0_0_0_2024_10_R1"))
|
|
33768
33865
|
|
|
33866
|
+
@jsii.python.classproperty
|
|
33867
|
+
@jsii.member(jsii_name="VER_19_0_0_0_2025_01_R1")
|
|
33868
|
+
def VER_19_0_0_0_2025_01_R1(cls) -> "OracleEngineVersion":
|
|
33869
|
+
'''Version "19.0.0.0.ru-2025-01.rur-2025-01.r1".'''
|
|
33870
|
+
return typing.cast("OracleEngineVersion", jsii.sget(cls, "VER_19_0_0_0_2025_01_R1"))
|
|
33871
|
+
|
|
33769
33872
|
@jsii.python.classproperty
|
|
33770
33873
|
@jsii.member(jsii_name="VER_21")
|
|
33771
33874
|
def VER_21(cls) -> "OracleEngineVersion":
|
|
@@ -33850,6 +33953,12 @@ class OracleEngineVersion(
|
|
|
33850
33953
|
'''Version "21.0.0.0.ru-2024-10.rur-2024-10.r1".'''
|
|
33851
33954
|
return typing.cast("OracleEngineVersion", jsii.sget(cls, "VER_21_0_0_0_2024_10_R1"))
|
|
33852
33955
|
|
|
33956
|
+
@jsii.python.classproperty
|
|
33957
|
+
@jsii.member(jsii_name="VER_21_0_0_0_2025_01_R1")
|
|
33958
|
+
def VER_21_0_0_0_2025_01_R1(cls) -> "OracleEngineVersion":
|
|
33959
|
+
'''Version "21.0.0.0.ru-2025-01.rur-2025-01.r1".'''
|
|
33960
|
+
return typing.cast("OracleEngineVersion", jsii.sget(cls, "VER_21_0_0_0_2025_01_R1"))
|
|
33961
|
+
|
|
33853
33962
|
@builtins.property
|
|
33854
33963
|
@jsii.member(jsii_name="oracleFullVersion")
|
|
33855
33964
|
def oracle_full_version(self) -> builtins.str:
|
|
@@ -39652,6 +39761,12 @@ class SqlServerEngineVersion(
|
|
|
39652
39761
|
'''Version "15.00.4410.1.v1".'''
|
|
39653
39762
|
return typing.cast("SqlServerEngineVersion", jsii.sget(cls, "VER_15_00_4410_1_V1"))
|
|
39654
39763
|
|
|
39764
|
+
@jsii.python.classproperty
|
|
39765
|
+
@jsii.member(jsii_name="VER_15_00_4415_2_V1")
|
|
39766
|
+
def VER_15_00_4415_2_V1(cls) -> "SqlServerEngineVersion":
|
|
39767
|
+
'''Version "15.00.4415.2.v1".'''
|
|
39768
|
+
return typing.cast("SqlServerEngineVersion", jsii.sget(cls, "VER_15_00_4415_2_V1"))
|
|
39769
|
+
|
|
39655
39770
|
@jsii.python.classproperty
|
|
39656
39771
|
@jsii.member(jsii_name="VER_16")
|
|
39657
39772
|
def VER_16(cls) -> "SqlServerEngineVersion":
|
|
@@ -39724,6 +39839,12 @@ class SqlServerEngineVersion(
|
|
|
39724
39839
|
'''Version "16.00.4165.4.v1".'''
|
|
39725
39840
|
return typing.cast("SqlServerEngineVersion", jsii.sget(cls, "VER_16_00_4165_4_V1"))
|
|
39726
39841
|
|
|
39842
|
+
@jsii.python.classproperty
|
|
39843
|
+
@jsii.member(jsii_name="VER_16_00_4175_1_V1")
|
|
39844
|
+
def VER_16_00_4175_1_V1(cls) -> "SqlServerEngineVersion":
|
|
39845
|
+
'''Version "16.00.4175.1.v1".'''
|
|
39846
|
+
return typing.cast("SqlServerEngineVersion", jsii.sget(cls, "VER_16_00_4175_1_V1"))
|
|
39847
|
+
|
|
39727
39848
|
@builtins.property
|
|
39728
39849
|
@jsii.member(jsii_name="sqlServerFullVersion")
|
|
39729
39850
|
def sql_server_full_version(self) -> builtins.str:
|
|
@@ -41456,6 +41577,7 @@ class DatabaseClusterFromSnapshot(
|
|
|
41456
41577
|
cluster_scalability_type: typing.Optional[ClusterScalabilityType] = None,
|
|
41457
41578
|
copy_tags_to_snapshot: typing.Optional[builtins.bool] = None,
|
|
41458
41579
|
credentials: typing.Optional[Credentials] = None,
|
|
41580
|
+
database_insights_mode: typing.Optional[DatabaseInsightsMode] = None,
|
|
41459
41581
|
default_database_name: typing.Optional[builtins.str] = None,
|
|
41460
41582
|
deletion_protection: typing.Optional[builtins.bool] = None,
|
|
41461
41583
|
domain: typing.Optional[builtins.str] = None,
|
|
@@ -41512,6 +41634,7 @@ class DatabaseClusterFromSnapshot(
|
|
|
41512
41634
|
:param cluster_scalability_type: Specifies the scalability mode of the Aurora DB cluster. Set LIMITLESS if you want to use a limitless database; otherwise, set it to STANDARD. Default: ClusterScalabilityType.STANDARD
|
|
41513
41635
|
:param copy_tags_to_snapshot: Whether to copy tags to the snapshot when a snapshot is created. Default: - true
|
|
41514
41636
|
:param credentials: (deprecated) Credentials for the administrative user. Note - using this prop only works with ``Credentials.fromPassword()`` with the username of the snapshot, ``Credentials.fromUsername()`` with the username and password of the snapshot or ``Credentials.fromSecret()`` with a secret containing the username and password of the snapshot. Default: - A username of 'admin' (or 'postgres' for PostgreSQL) and SecretsManager-generated password that **will not be applied** to the cluster, use ``snapshotCredentials`` for the correct behavior.
|
|
41637
|
+
:param database_insights_mode: The database insights mode. Default: - DatabaseInsightsMode.STANDARD when performance insights are enabled and Amazon Aurora engine is used, otherwise not set.
|
|
41515
41638
|
:param default_database_name: Name of a database which is automatically created inside the cluster. Default: - Database is not created in cluster.
|
|
41516
41639
|
:param deletion_protection: Indicates whether the DB cluster should have deletion protection enabled. Default: - true if ``removalPolicy`` is RETAIN, ``undefined`` otherwise, which will not enable deletion protection. To disable deletion protection after it has been enabled, you must explicitly set this value to ``false``.
|
|
41517
41640
|
:param domain: Directory ID for associating the DB cluster with a specific Active Directory. Necessary for enabling Kerberos authentication. If specified, the DB cluster joins the given Active Directory, enabling Kerberos authentication. If not specified, the DB cluster will not be associated with any Active Directory, and Kerberos authentication will not be enabled. Default: - DB cluster is not associated with an Active Directory; Kerberos authentication is not enabled.
|
|
@@ -41519,7 +41642,7 @@ class DatabaseClusterFromSnapshot(
|
|
|
41519
41642
|
:param enable_cluster_level_enhanced_monitoring: Whether to enable enhanced monitoring at the cluster level. If set to true, ``monitoringInterval`` and ``monitoringRole`` are applied to not the instances, but the cluster. ``monitoringInterval`` is required to be set if ``enableClusterLevelEnhancedMonitoring`` is set to true. Default: - When the ``monitoringInterval`` is set, enhanced monitoring is enabled for each instance.
|
|
41520
41643
|
:param enable_data_api: Whether to enable the Data API for the cluster. Default: - false
|
|
41521
41644
|
:param enable_local_write_forwarding: Whether read replicas can forward write operations to the writer DB instance in the DB cluster. This setting can only be enabled for Aurora MySQL 3.04 or higher, and for Aurora PostgreSQL 16.4 or higher (for version 16), 15.8 or higher (for version 15), and 14.13 or higher (for version 14). Default: false
|
|
41522
|
-
:param enable_performance_insights: Whether to enable Performance Insights for the DB cluster. Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set.
|
|
41645
|
+
:param enable_performance_insights: Whether to enable Performance Insights for the DB cluster. Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set, or ``databaseInsightsMode`` is set to ``DatabaseInsightsMode.ADVANCED``.
|
|
41523
41646
|
:param iam_authentication: Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts. Default: false
|
|
41524
41647
|
:param instance_identifier_base: Base identifier for instances. Every replica is named by appending the replica number to this string, 1-based. Default: - clusterIdentifier is used with the word "Instance" appended. If clusterIdentifier is not provided, the identifier is automatically generated.
|
|
41525
41648
|
:param instance_props: (deprecated) Settings for the individual instances that are launched.
|
|
@@ -41531,7 +41654,7 @@ class DatabaseClusterFromSnapshot(
|
|
|
41531
41654
|
:param parameter_group: Additional parameters to pass to the database engine. Default: - No parameter group.
|
|
41532
41655
|
:param parameters: The parameters in the DBClusterParameterGroup to create automatically. You can only specify parameterGroup or parameters but not both. You need to use a versioned engine to auto-generate a DBClusterParameterGroup. Default: - None
|
|
41533
41656
|
:param performance_insight_encryption_key: The AWS KMS key for encryption of Performance Insights data. Default: - default master key
|
|
41534
|
-
:param performance_insight_retention: The amount of time, in days, to retain Performance Insights data. Default: 7
|
|
41657
|
+
:param performance_insight_retention: The amount of time, in days, to retain Performance Insights data. If you set ``databaseInsightsMode`` to ``DatabaseInsightsMode.ADVANCED``, you must set this property to ``PerformanceInsightRetention.MONTHS_15``. Default: - 7
|
|
41535
41658
|
:param port: What port to listen on. Default: - The default for the engine is used.
|
|
41536
41659
|
:param preferred_maintenance_window: A preferred maintenance window day/time range. Should be specified as a range ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). Example: 'Sun:23:45-Mon:00:15' Default: - 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.
|
|
41537
41660
|
:param readers: A list of instances to create as cluster reader instances. Default: - no readers are created. The cluster will have a single writer/reader
|
|
@@ -41570,6 +41693,7 @@ class DatabaseClusterFromSnapshot(
|
|
|
41570
41693
|
cluster_scalability_type=cluster_scalability_type,
|
|
41571
41694
|
copy_tags_to_snapshot=copy_tags_to_snapshot,
|
|
41572
41695
|
credentials=credentials,
|
|
41696
|
+
database_insights_mode=database_insights_mode,
|
|
41573
41697
|
default_database_name=default_database_name,
|
|
41574
41698
|
deletion_protection=deletion_protection,
|
|
41575
41699
|
domain=domain,
|
|
@@ -41884,6 +42008,12 @@ class DatabaseClusterFromSnapshot(
|
|
|
41884
42008
|
'''The VPC network to place the cluster in.'''
|
|
41885
42009
|
return typing.cast(_IVpc_f30d5663, jsii.get(self, "vpc"))
|
|
41886
42010
|
|
|
42011
|
+
@builtins.property
|
|
42012
|
+
@jsii.member(jsii_name="databaseInsightsMode")
|
|
42013
|
+
def database_insights_mode(self) -> typing.Optional[DatabaseInsightsMode]:
|
|
42014
|
+
'''The database insights mode.'''
|
|
42015
|
+
return typing.cast(typing.Optional[DatabaseInsightsMode], jsii.get(self, "databaseInsightsMode"))
|
|
42016
|
+
|
|
41887
42017
|
@builtins.property
|
|
41888
42018
|
@jsii.member(jsii_name="engine")
|
|
41889
42019
|
def engine(self) -> typing.Optional["IClusterEngine"]:
|
|
@@ -45518,17 +45648,17 @@ class DatabaseCluster(
|
|
|
45518
45648
|
|
|
45519
45649
|
cluster = rds.DatabaseCluster(self, "Database",
|
|
45520
45650
|
engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_01_0),
|
|
45651
|
+
credentials=rds.Credentials.from_generated_secret("clusteradmin"), # Optional - will default to 'admin' username and generated password
|
|
45521
45652
|
writer=rds.ClusterInstance.provisioned("writer",
|
|
45522
|
-
|
|
45653
|
+
publicly_accessible=False
|
|
45523
45654
|
),
|
|
45524
|
-
serverless_v2_min_capacity=6.5,
|
|
45525
|
-
serverless_v2_max_capacity=64,
|
|
45526
45655
|
readers=[
|
|
45527
|
-
|
|
45528
|
-
rds.ClusterInstance.serverless_v2("reader1", scale_with_writer=True),
|
|
45529
|
-
# will be put in promotion tier 2 and will not scale with the writer
|
|
45656
|
+
rds.ClusterInstance.provisioned("reader1", promotion_tier=1),
|
|
45530
45657
|
rds.ClusterInstance.serverless_v2("reader2")
|
|
45531
45658
|
],
|
|
45659
|
+
vpc_subnets=ec2.SubnetSelection(
|
|
45660
|
+
subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS
|
|
45661
|
+
),
|
|
45532
45662
|
vpc=vpc
|
|
45533
45663
|
)
|
|
45534
45664
|
'''
|
|
@@ -45550,6 +45680,7 @@ class DatabaseCluster(
|
|
|
45550
45680
|
cluster_scalability_type: typing.Optional[ClusterScalabilityType] = None,
|
|
45551
45681
|
copy_tags_to_snapshot: typing.Optional[builtins.bool] = None,
|
|
45552
45682
|
credentials: typing.Optional[Credentials] = None,
|
|
45683
|
+
database_insights_mode: typing.Optional[DatabaseInsightsMode] = None,
|
|
45553
45684
|
default_database_name: typing.Optional[builtins.str] = None,
|
|
45554
45685
|
deletion_protection: typing.Optional[builtins.bool] = None,
|
|
45555
45686
|
domain: typing.Optional[builtins.str] = None,
|
|
@@ -45604,6 +45735,7 @@ class DatabaseCluster(
|
|
|
45604
45735
|
:param cluster_scalability_type: Specifies the scalability mode of the Aurora DB cluster. Set LIMITLESS if you want to use a limitless database; otherwise, set it to STANDARD. Default: ClusterScalabilityType.STANDARD
|
|
45605
45736
|
:param copy_tags_to_snapshot: Whether to copy tags to the snapshot when a snapshot is created. Default: - true
|
|
45606
45737
|
:param credentials: Credentials for the administrative user. Default: - A username of 'admin' (or 'postgres' for PostgreSQL) and SecretsManager-generated password
|
|
45738
|
+
:param database_insights_mode: The database insights mode. Default: - DatabaseInsightsMode.STANDARD when performance insights are enabled and Amazon Aurora engine is used, otherwise not set.
|
|
45607
45739
|
:param default_database_name: Name of a database which is automatically created inside the cluster. Default: - Database is not created in cluster.
|
|
45608
45740
|
:param deletion_protection: Indicates whether the DB cluster should have deletion protection enabled. Default: - true if ``removalPolicy`` is RETAIN, ``undefined`` otherwise, which will not enable deletion protection. To disable deletion protection after it has been enabled, you must explicitly set this value to ``false``.
|
|
45609
45741
|
:param domain: Directory ID for associating the DB cluster with a specific Active Directory. Necessary for enabling Kerberos authentication. If specified, the DB cluster joins the given Active Directory, enabling Kerberos authentication. If not specified, the DB cluster will not be associated with any Active Directory, and Kerberos authentication will not be enabled. Default: - DB cluster is not associated with an Active Directory; Kerberos authentication is not enabled.
|
|
@@ -45611,7 +45743,7 @@ class DatabaseCluster(
|
|
|
45611
45743
|
:param enable_cluster_level_enhanced_monitoring: Whether to enable enhanced monitoring at the cluster level. If set to true, ``monitoringInterval`` and ``monitoringRole`` are applied to not the instances, but the cluster. ``monitoringInterval`` is required to be set if ``enableClusterLevelEnhancedMonitoring`` is set to true. Default: - When the ``monitoringInterval`` is set, enhanced monitoring is enabled for each instance.
|
|
45612
45744
|
:param enable_data_api: Whether to enable the Data API for the cluster. Default: - false
|
|
45613
45745
|
:param enable_local_write_forwarding: Whether read replicas can forward write operations to the writer DB instance in the DB cluster. This setting can only be enabled for Aurora MySQL 3.04 or higher, and for Aurora PostgreSQL 16.4 or higher (for version 16), 15.8 or higher (for version 15), and 14.13 or higher (for version 14). Default: false
|
|
45614
|
-
:param enable_performance_insights: Whether to enable Performance Insights for the DB cluster. Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set.
|
|
45746
|
+
:param enable_performance_insights: Whether to enable Performance Insights for the DB cluster. Default: - false, unless ``performanceInsightRetention`` or ``performanceInsightEncryptionKey`` is set, or ``databaseInsightsMode`` is set to ``DatabaseInsightsMode.ADVANCED``.
|
|
45615
45747
|
:param iam_authentication: Whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts. Default: false
|
|
45616
45748
|
:param instance_identifier_base: Base identifier for instances. Every replica is named by appending the replica number to this string, 1-based. Default: - clusterIdentifier is used with the word "Instance" appended. If clusterIdentifier is not provided, the identifier is automatically generated.
|
|
45617
45749
|
:param instance_props: (deprecated) Settings for the individual instances that are launched.
|
|
@@ -45623,7 +45755,7 @@ class DatabaseCluster(
|
|
|
45623
45755
|
:param parameter_group: Additional parameters to pass to the database engine. Default: - No parameter group.
|
|
45624
45756
|
:param parameters: The parameters in the DBClusterParameterGroup to create automatically. You can only specify parameterGroup or parameters but not both. You need to use a versioned engine to auto-generate a DBClusterParameterGroup. Default: - None
|
|
45625
45757
|
:param performance_insight_encryption_key: The AWS KMS key for encryption of Performance Insights data. Default: - default master key
|
|
45626
|
-
:param performance_insight_retention: The amount of time, in days, to retain Performance Insights data. Default: 7
|
|
45758
|
+
:param performance_insight_retention: The amount of time, in days, to retain Performance Insights data. If you set ``databaseInsightsMode`` to ``DatabaseInsightsMode.ADVANCED``, you must set this property to ``PerformanceInsightRetention.MONTHS_15``. Default: - 7
|
|
45627
45759
|
:param port: What port to listen on. Default: - The default for the engine is used.
|
|
45628
45760
|
:param preferred_maintenance_window: A preferred maintenance window day/time range. Should be specified as a range ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). Example: 'Sun:23:45-Mon:00:15' Default: - 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.
|
|
45629
45761
|
:param readers: A list of instances to create as cluster reader instances. Default: - no readers are created. The cluster will have a single writer/reader
|
|
@@ -45660,6 +45792,7 @@ class DatabaseCluster(
|
|
|
45660
45792
|
cluster_scalability_type=cluster_scalability_type,
|
|
45661
45793
|
copy_tags_to_snapshot=copy_tags_to_snapshot,
|
|
45662
45794
|
credentials=credentials,
|
|
45795
|
+
database_insights_mode=database_insights_mode,
|
|
45663
45796
|
default_database_name=default_database_name,
|
|
45664
45797
|
deletion_protection=deletion_protection,
|
|
45665
45798
|
domain=domain,
|
|
@@ -46028,6 +46161,12 @@ class DatabaseCluster(
|
|
|
46028
46161
|
'''The VPC network to place the cluster in.'''
|
|
46029
46162
|
return typing.cast(_IVpc_f30d5663, jsii.get(self, "vpc"))
|
|
46030
46163
|
|
|
46164
|
+
@builtins.property
|
|
46165
|
+
@jsii.member(jsii_name="databaseInsightsMode")
|
|
46166
|
+
def database_insights_mode(self) -> typing.Optional[DatabaseInsightsMode]:
|
|
46167
|
+
'''The database insights mode.'''
|
|
46168
|
+
return typing.cast(typing.Optional[DatabaseInsightsMode], jsii.get(self, "databaseInsightsMode"))
|
|
46169
|
+
|
|
46031
46170
|
@builtins.property
|
|
46032
46171
|
@jsii.member(jsii_name="engine")
|
|
46033
46172
|
def engine(self) -> typing.Optional[IClusterEngine]:
|
|
@@ -46566,6 +46705,7 @@ __all__ = [
|
|
|
46566
46705
|
"DatabaseClusterFromSnapshot",
|
|
46567
46706
|
"DatabaseClusterFromSnapshotProps",
|
|
46568
46707
|
"DatabaseClusterProps",
|
|
46708
|
+
"DatabaseInsightsMode",
|
|
46569
46709
|
"DatabaseInstance",
|
|
46570
46710
|
"DatabaseInstanceAttributes",
|
|
46571
46711
|
"DatabaseInstanceBase",
|
|
@@ -49337,6 +49477,7 @@ def _typecheckingstub__1e44b5aef872ca17869a17181382f06cd0166bdbe07e2c33701d3bf1e
|
|
|
49337
49477
|
cluster_scalability_type: typing.Optional[ClusterScalabilityType] = None,
|
|
49338
49478
|
copy_tags_to_snapshot: typing.Optional[builtins.bool] = None,
|
|
49339
49479
|
credentials: typing.Optional[Credentials] = None,
|
|
49480
|
+
database_insights_mode: typing.Optional[DatabaseInsightsMode] = None,
|
|
49340
49481
|
default_database_name: typing.Optional[builtins.str] = None,
|
|
49341
49482
|
deletion_protection: typing.Optional[builtins.bool] = None,
|
|
49342
49483
|
domain: typing.Optional[builtins.str] = None,
|
|
@@ -49394,6 +49535,7 @@ def _typecheckingstub__a32e21c90ab65d3cfdb3b7ef2a0d741ba1528ec8824cd1817d1e485b4
|
|
|
49394
49535
|
cluster_scalability_type: typing.Optional[ClusterScalabilityType] = None,
|
|
49395
49536
|
copy_tags_to_snapshot: typing.Optional[builtins.bool] = None,
|
|
49396
49537
|
credentials: typing.Optional[Credentials] = None,
|
|
49538
|
+
database_insights_mode: typing.Optional[DatabaseInsightsMode] = None,
|
|
49397
49539
|
default_database_name: typing.Optional[builtins.str] = None,
|
|
49398
49540
|
deletion_protection: typing.Optional[builtins.bool] = None,
|
|
49399
49541
|
domain: typing.Optional[builtins.str] = None,
|
|
@@ -50609,6 +50751,7 @@ def _typecheckingstub__d1a2e259091e12a41b0f5818df495769518e049ebcc89ed340ffc7ba4
|
|
|
50609
50751
|
cluster_scalability_type: typing.Optional[ClusterScalabilityType] = None,
|
|
50610
50752
|
copy_tags_to_snapshot: typing.Optional[builtins.bool] = None,
|
|
50611
50753
|
credentials: typing.Optional[Credentials] = None,
|
|
50754
|
+
database_insights_mode: typing.Optional[DatabaseInsightsMode] = None,
|
|
50612
50755
|
default_database_name: typing.Optional[builtins.str] = None,
|
|
50613
50756
|
deletion_protection: typing.Optional[builtins.bool] = None,
|
|
50614
50757
|
domain: typing.Optional[builtins.str] = None,
|
|
@@ -51101,6 +51244,7 @@ def _typecheckingstub__c6184cbbefaa372690b9776dafecbf5857cf9bfbab91d1666aad22c56
|
|
|
51101
51244
|
cluster_scalability_type: typing.Optional[ClusterScalabilityType] = None,
|
|
51102
51245
|
copy_tags_to_snapshot: typing.Optional[builtins.bool] = None,
|
|
51103
51246
|
credentials: typing.Optional[Credentials] = None,
|
|
51247
|
+
database_insights_mode: typing.Optional[DatabaseInsightsMode] = None,
|
|
51104
51248
|
default_database_name: typing.Optional[builtins.str] = None,
|
|
51105
51249
|
deletion_protection: typing.Optional[builtins.bool] = None,
|
|
51106
51250
|
domain: typing.Optional[builtins.str] = None,
|
aws_cdk/aws_s3/__init__.py
CHANGED
|
@@ -968,7 +968,7 @@ For more information, please refer to https://docs.aws.amazon.com/AmazonS3/lates
|
|
|
968
968
|
|
|
969
969
|
> **NOTE:** AWS managed keys don't allow cross-account use, and therefore can't be used to perform cross-account replication.
|
|
970
970
|
|
|
971
|
-
If you need to
|
|
971
|
+
If you need to override the bucket ownership to destination account pass the account value to the method to provide permissions to override bucket owner.
|
|
972
972
|
`addReplicationPolicy(bucket.replicationRoleArn, true, '11111111111')`;
|
|
973
973
|
|
|
974
974
|
However, if the destination bucket is a referenced bucket, CDK cannot set the bucket policy,
|
|
@@ -9198,7 +9198,7 @@ class CfnBucket(
|
|
|
9198
9198
|
*,
|
|
9199
9199
|
status: builtins.str,
|
|
9200
9200
|
abort_incomplete_multipart_upload: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBucket.AbortIncompleteMultipartUploadProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
9201
|
-
expiration_date: typing.Optional[typing.Union[
|
|
9201
|
+
expiration_date: typing.Optional[typing.Union[datetime.datetime, _IResolvable_da3f097b]] = None,
|
|
9202
9202
|
expiration_in_days: typing.Optional[jsii.Number] = None,
|
|
9203
9203
|
expired_object_delete_marker: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
9204
9204
|
id: typing.Optional[builtins.str] = None,
|
|
@@ -9378,7 +9378,7 @@ class CfnBucket(
|
|
|
9378
9378
|
@builtins.property
|
|
9379
9379
|
def expiration_date(
|
|
9380
9380
|
self,
|
|
9381
|
-
) -> typing.Optional[typing.Union[
|
|
9381
|
+
) -> typing.Optional[typing.Union[datetime.datetime, _IResolvable_da3f097b]]:
|
|
9382
9382
|
'''Indicates when objects are deleted from Amazon S3 and Amazon S3 Glacier.
|
|
9383
9383
|
|
|
9384
9384
|
The date value must be in ISO 8601 format. The time is always midnight UTC. If you specify an expiration and transition time, you must use the same time unit for both properties (either in days or by date). The expiration time must also be later than the transition time.
|
|
@@ -9386,7 +9386,7 @@ class CfnBucket(
|
|
|
9386
9386
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-rule.html#cfn-s3-bucket-rule-expirationdate
|
|
9387
9387
|
'''
|
|
9388
9388
|
result = self._values.get("expiration_date")
|
|
9389
|
-
return typing.cast(typing.Optional[typing.Union[
|
|
9389
|
+
return typing.cast(typing.Optional[typing.Union[datetime.datetime, _IResolvable_da3f097b]], result)
|
|
9390
9390
|
|
|
9391
9391
|
@builtins.property
|
|
9392
9392
|
def expiration_in_days(self) -> typing.Optional[jsii.Number]:
|
|
@@ -10351,7 +10351,7 @@ class CfnBucket(
|
|
|
10351
10351
|
self,
|
|
10352
10352
|
*,
|
|
10353
10353
|
storage_class: builtins.str,
|
|
10354
|
-
transition_date: typing.Optional[typing.Union[
|
|
10354
|
+
transition_date: typing.Optional[typing.Union[datetime.datetime, _IResolvable_da3f097b]] = None,
|
|
10355
10355
|
transition_in_days: typing.Optional[jsii.Number] = None,
|
|
10356
10356
|
) -> None:
|
|
10357
10357
|
'''Specifies when an object transitions to a specified storage class.
|
|
@@ -10405,7 +10405,7 @@ class CfnBucket(
|
|
|
10405
10405
|
@builtins.property
|
|
10406
10406
|
def transition_date(
|
|
10407
10407
|
self,
|
|
10408
|
-
) -> typing.Optional[typing.Union[
|
|
10408
|
+
) -> typing.Optional[typing.Union[datetime.datetime, _IResolvable_da3f097b]]:
|
|
10409
10409
|
'''Indicates when objects are transitioned to the specified storage class.
|
|
10410
10410
|
|
|
10411
10411
|
The date value must be in ISO 8601 format. The time is always midnight UTC.
|
|
@@ -10413,7 +10413,7 @@ class CfnBucket(
|
|
|
10413
10413
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-transition.html#cfn-s3-bucket-transition-transitiondate
|
|
10414
10414
|
'''
|
|
10415
10415
|
result = self._values.get("transition_date")
|
|
10416
|
-
return typing.cast(typing.Optional[typing.Union[
|
|
10416
|
+
return typing.cast(typing.Optional[typing.Union[datetime.datetime, _IResolvable_da3f097b]], result)
|
|
10417
10417
|
|
|
10418
10418
|
@builtins.property
|
|
10419
10419
|
def transition_in_days(self) -> typing.Optional[jsii.Number]:
|
|
@@ -21896,7 +21896,7 @@ def _typecheckingstub__8e0ac4f7540cd419a3dec0eaac50412f82617bc7d551fc1e59c7f74fc
|
|
|
21896
21896
|
*,
|
|
21897
21897
|
status: builtins.str,
|
|
21898
21898
|
abort_incomplete_multipart_upload: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBucket.AbortIncompleteMultipartUploadProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
21899
|
-
expiration_date: typing.Optional[typing.Union[
|
|
21899
|
+
expiration_date: typing.Optional[typing.Union[datetime.datetime, _IResolvable_da3f097b]] = None,
|
|
21900
21900
|
expiration_in_days: typing.Optional[jsii.Number] = None,
|
|
21901
21901
|
expired_object_delete_marker: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
21902
21902
|
id: typing.Optional[builtins.str] = None,
|
|
@@ -21995,7 +21995,7 @@ def _typecheckingstub__61064b6f15baa1adf9875a5a9c1452ffb113a830c366901a5c329f68e
|
|
|
21995
21995
|
def _typecheckingstub__059ebb238cf9b04909ed5652db39411b1d94456b4d2b5be3691ee93d81136a68(
|
|
21996
21996
|
*,
|
|
21997
21997
|
storage_class: builtins.str,
|
|
21998
|
-
transition_date: typing.Optional[typing.Union[
|
|
21998
|
+
transition_date: typing.Optional[typing.Union[datetime.datetime, _IResolvable_da3f097b]] = None,
|
|
21999
21999
|
transition_in_days: typing.Optional[jsii.Number] = None,
|
|
22000
22000
|
) -> None:
|
|
22001
22001
|
"""Type checking stubs"""
|