aws-cdk-lib 2.171.1__py3-none-any.whl → 2.172.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 +471 -161
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.171.1.jsii.tgz → aws-cdk-lib@2.172.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +1314 -124
- aws_cdk/aws_appsync/__init__.py +159 -136
- aws_cdk/aws_autoscaling/__init__.py +81 -24
- aws_cdk/aws_bedrock/__init__.py +48 -0
- aws_cdk/aws_chatbot/__init__.py +775 -0
- aws_cdk/aws_cloudformation/__init__.py +240 -159
- aws_cdk/aws_cloudfront/__init__.py +11 -5
- aws_cdk/aws_cloudtrail/__init__.py +753 -0
- aws_cdk/aws_cognito/__init__.py +825 -4
- aws_cdk/aws_connect/__init__.py +429 -0
- aws_cdk/aws_customerprofiles/__init__.py +3148 -0
- aws_cdk/aws_ec2/__init__.py +872 -5
- aws_cdk/aws_ecs/__init__.py +12 -7
- aws_cdk/aws_eks/__init__.py +709 -0
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +309 -55
- aws_cdk/aws_events/__init__.py +515 -8
- aws_cdk/aws_iot/__init__.py +42 -4
- aws_cdk/aws_iotfleetwise/__init__.py +510 -0
- aws_cdk/aws_iotsitewise/__init__.py +156 -0
- aws_cdk/aws_lambda/__init__.py +14 -8
- aws_cdk/aws_lambda_event_sources/__init__.py +2 -1
- aws_cdk/aws_lambda_nodejs/__init__.py +11 -11
- aws_cdk/aws_m2/__init__.py +289 -0
- aws_cdk/aws_mwaa/__init__.py +6 -6
- aws_cdk/aws_opensearchserverless/__init__.py +249 -1
- aws_cdk/aws_pipes/__init__.py +14 -30
- aws_cdk/aws_qbusiness/__init__.py +3 -1
- aws_cdk/aws_quicksight/__init__.py +8270 -10
- aws_cdk/aws_rbin/__init__.py +53 -34
- aws_cdk/aws_rds/__init__.py +140 -8
- aws_cdk/aws_resourcegroups/__init__.py +349 -0
- aws_cdk/aws_route53_targets/__init__.py +82 -0
- aws_cdk/aws_route53resolver/__init__.py +15 -6
- aws_cdk/aws_s3express/__init__.py +403 -2
- aws_cdk/aws_sagemaker/__init__.py +124 -112
- aws_cdk/aws_ses/__init__.py +79 -41
- aws_cdk/aws_wisdom/__init__.py +4713 -172
- aws_cdk/aws_workspacesweb/__init__.py +1024 -0
- {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/RECORD +47 -47
- {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_rbin/__init__.py
CHANGED
|
@@ -85,7 +85,12 @@ class CfnRule(
|
|
|
85
85
|
metaclass=jsii.JSIIMeta,
|
|
86
86
|
jsii_type="aws-cdk-lib.aws_rbin.CfnRule",
|
|
87
87
|
):
|
|
88
|
-
'''
|
|
88
|
+
'''Creates a Recycle Bin retention rule. You can create two types of retention rules:.
|
|
89
|
+
|
|
90
|
+
- *Tag-level retention rules* - These retention rules use resource tags to identify the resources to protect. For each retention rule, you specify one or more tag key and value pairs. Resources (of the specified type) that have at least one of these tag key and value pairs are automatically retained in the Recycle Bin upon deletion. Use this type of retention rule to protect specific resources in your account based on their tags.
|
|
91
|
+
- *Region-level retention rules* - These retention rules, by default, apply to all of the resources (of the specified type) in the Region, even if the resources are not tagged. However, you can specify exclusion tags to exclude resources that have specific tags. Use this type of retention rule to protect all resources of a specific type in a Region.
|
|
92
|
+
|
|
93
|
+
For more information, see `Create Recycle Bin retention rules <https://docs.aws.amazon.com/ebs/latest/userguide/recycle-bin.html>`_ in the *Amazon EBS User Guide* .
|
|
89
94
|
|
|
90
95
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rbin-rule.html
|
|
91
96
|
:cloudformationResource: AWS::Rbin::Rule
|
|
@@ -144,12 +149,12 @@ class CfnRule(
|
|
|
144
149
|
:param scope: Scope in which this resource is defined.
|
|
145
150
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
146
151
|
:param resource_type: The resource type retained by the retention rule.
|
|
147
|
-
:param retention_period:
|
|
148
|
-
:param description: The
|
|
152
|
+
:param retention_period: Information about the retention period for which the retention rule is to retain resources.
|
|
153
|
+
:param description: The retention rule description.
|
|
149
154
|
:param exclude_resource_tags: Information about the exclude resource tags used to identify resources that are excluded by the retention rule.
|
|
150
|
-
:param lock_configuration:
|
|
151
|
-
:param resource_tags: Information about the resource tags used to identify resources that are retained by the retention rule.
|
|
152
|
-
:param status: The state of the retention rule. Only retention rules that are in the available state retain resources.
|
|
155
|
+
:param lock_configuration: Information about the retention rule lock configuration.
|
|
156
|
+
:param resource_tags: [Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.
|
|
157
|
+
:param status: The state of the retention rule. Only retention rules that are in the ``available`` state retain resources.
|
|
153
158
|
:param tags: Information about the tags assigned to the retention rule.
|
|
154
159
|
'''
|
|
155
160
|
if __debug__:
|
|
@@ -202,7 +207,7 @@ class CfnRule(
|
|
|
202
207
|
@builtins.property
|
|
203
208
|
@jsii.member(jsii_name="attrArn")
|
|
204
209
|
def attr_arn(self) -> builtins.str:
|
|
205
|
-
'''
|
|
210
|
+
'''The Amazon Resource Name (ARN) of the retention rule.
|
|
206
211
|
|
|
207
212
|
:cloudformationAttribute: Arn
|
|
208
213
|
'''
|
|
@@ -220,7 +225,12 @@ class CfnRule(
|
|
|
220
225
|
@builtins.property
|
|
221
226
|
@jsii.member(jsii_name="attrLockState")
|
|
222
227
|
def attr_lock_state(self) -> builtins.str:
|
|
223
|
-
'''The lock state for the retention rule.
|
|
228
|
+
'''[Region-level retention rules only] The lock state for the retention rule.
|
|
229
|
+
|
|
230
|
+
- ``locked`` - The retention rule is locked and can't be modified or deleted.
|
|
231
|
+
- ``pending_unlock`` - The retention rule has been unlocked but it is still within the unlock delay period. The retention rule can be modified or deleted only after the unlock delay period has expired.
|
|
232
|
+
- ``unlocked`` - The retention rule is unlocked and it can be modified or deleted by any user with the required permissions.
|
|
233
|
+
- ``null`` - The retention rule has never been locked. Once a retention rule has been locked, it can transition between the ``locked`` and ``unlocked`` states only; it can never transition back to ``null`` .
|
|
224
234
|
|
|
225
235
|
:cloudformationAttribute: LockState
|
|
226
236
|
'''
|
|
@@ -255,7 +265,7 @@ class CfnRule(
|
|
|
255
265
|
def retention_period(
|
|
256
266
|
self,
|
|
257
267
|
) -> typing.Union[_IResolvable_da3f097b, "CfnRule.RetentionPeriodProperty"]:
|
|
258
|
-
'''
|
|
268
|
+
'''Information about the retention period for which the retention rule is to retain resources.'''
|
|
259
269
|
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnRule.RetentionPeriodProperty"], jsii.get(self, "retentionPeriod"))
|
|
260
270
|
|
|
261
271
|
@retention_period.setter
|
|
@@ -271,7 +281,7 @@ class CfnRule(
|
|
|
271
281
|
@builtins.property
|
|
272
282
|
@jsii.member(jsii_name="description")
|
|
273
283
|
def description(self) -> typing.Optional[builtins.str]:
|
|
274
|
-
'''The
|
|
284
|
+
'''The retention rule description.'''
|
|
275
285
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "description"))
|
|
276
286
|
|
|
277
287
|
@description.setter
|
|
@@ -304,6 +314,7 @@ class CfnRule(
|
|
|
304
314
|
def lock_configuration(
|
|
305
315
|
self,
|
|
306
316
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnRule.UnlockDelayProperty"]]:
|
|
317
|
+
'''Information about the retention rule lock configuration.'''
|
|
307
318
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnRule.UnlockDelayProperty"]], jsii.get(self, "lockConfiguration"))
|
|
308
319
|
|
|
309
320
|
@lock_configuration.setter
|
|
@@ -321,7 +332,7 @@ class CfnRule(
|
|
|
321
332
|
def resource_tags(
|
|
322
333
|
self,
|
|
323
334
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRule.ResourceTagProperty"]]]]:
|
|
324
|
-
'''Information about the resource tags used to identify resources that are retained by the retention rule.'''
|
|
335
|
+
'''[Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.'''
|
|
325
336
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRule.ResourceTagProperty"]]]], jsii.get(self, "resourceTags"))
|
|
326
337
|
|
|
327
338
|
@resource_tags.setter
|
|
@@ -375,10 +386,10 @@ class CfnRule(
|
|
|
375
386
|
resource_tag_key: builtins.str,
|
|
376
387
|
resource_tag_value: builtins.str,
|
|
377
388
|
) -> None:
|
|
378
|
-
'''
|
|
389
|
+
'''[Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.
|
|
379
390
|
|
|
380
|
-
:param resource_tag_key: The tag key
|
|
381
|
-
:param resource_tag_value: The tag value
|
|
391
|
+
:param resource_tag_key: The tag key.
|
|
392
|
+
:param resource_tag_value: The tag value.
|
|
382
393
|
|
|
383
394
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-resourcetag.html
|
|
384
395
|
:exampleMetadata: fixture=_generated
|
|
@@ -405,7 +416,7 @@ class CfnRule(
|
|
|
405
416
|
|
|
406
417
|
@builtins.property
|
|
407
418
|
def resource_tag_key(self) -> builtins.str:
|
|
408
|
-
'''The tag key
|
|
419
|
+
'''The tag key.
|
|
409
420
|
|
|
410
421
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-resourcetag.html#cfn-rbin-rule-resourcetag-resourcetagkey
|
|
411
422
|
'''
|
|
@@ -415,7 +426,7 @@ class CfnRule(
|
|
|
415
426
|
|
|
416
427
|
@builtins.property
|
|
417
428
|
def resource_tag_value(self) -> builtins.str:
|
|
418
|
-
'''The tag value
|
|
429
|
+
'''The tag value.
|
|
419
430
|
|
|
420
431
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-resourcetag.html#cfn-rbin-rule-resourcetag-resourcetagvalue
|
|
421
432
|
'''
|
|
@@ -449,10 +460,10 @@ class CfnRule(
|
|
|
449
460
|
retention_period_unit: builtins.str,
|
|
450
461
|
retention_period_value: jsii.Number,
|
|
451
462
|
) -> None:
|
|
452
|
-
'''
|
|
463
|
+
'''Information about the retention period for which the retention rule is to retain resources.
|
|
453
464
|
|
|
454
|
-
:param retention_period_unit: The retention period
|
|
455
|
-
:param retention_period_value: The
|
|
465
|
+
:param retention_period_unit: The unit of time in which the retention period is measured. Currently, only ``DAYS`` is supported.
|
|
466
|
+
:param retention_period_value: The period value for which the retention rule is to retain resources. The period is measured using the unit specified for *RetentionPeriodUnit* .
|
|
456
467
|
|
|
457
468
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-retentionperiod.html
|
|
458
469
|
:exampleMetadata: fixture=_generated
|
|
@@ -479,7 +490,9 @@ class CfnRule(
|
|
|
479
490
|
|
|
480
491
|
@builtins.property
|
|
481
492
|
def retention_period_unit(self) -> builtins.str:
|
|
482
|
-
'''The
|
|
493
|
+
'''The unit of time in which the retention period is measured.
|
|
494
|
+
|
|
495
|
+
Currently, only ``DAYS`` is supported.
|
|
483
496
|
|
|
484
497
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-retentionperiod.html#cfn-rbin-rule-retentionperiod-retentionperiodunit
|
|
485
498
|
'''
|
|
@@ -489,7 +502,9 @@ class CfnRule(
|
|
|
489
502
|
|
|
490
503
|
@builtins.property
|
|
491
504
|
def retention_period_value(self) -> jsii.Number:
|
|
492
|
-
'''The
|
|
505
|
+
'''The period value for which the retention rule is to retain resources.
|
|
506
|
+
|
|
507
|
+
The period is measured using the unit specified for *RetentionPeriodUnit* .
|
|
493
508
|
|
|
494
509
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-retentionperiod.html#cfn-rbin-rule-retentionperiod-retentionperiodvalue
|
|
495
510
|
'''
|
|
@@ -523,9 +538,12 @@ class CfnRule(
|
|
|
523
538
|
unlock_delay_unit: typing.Optional[builtins.str] = None,
|
|
524
539
|
unlock_delay_value: typing.Optional[jsii.Number] = None,
|
|
525
540
|
) -> None:
|
|
526
|
-
'''
|
|
541
|
+
'''Information about the retention rule unlock delay.
|
|
542
|
+
|
|
543
|
+
The unlock delay is the period after which a retention rule can be modified or edited after it has been unlocked by a user with the required permissions. The retention rule can't be modified or deleted during the unlock delay.
|
|
544
|
+
|
|
527
545
|
:param unlock_delay_unit: The unit of time in which to measure the unlock delay. Currently, the unlock delay can be measure only in days.
|
|
528
|
-
:param unlock_delay_value: The unlock delay period, measured in the unit specified for UnlockDelayUnit.
|
|
546
|
+
:param unlock_delay_value: The unlock delay period, measured in the unit specified for *UnlockDelayUnit* .
|
|
529
547
|
|
|
530
548
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-unlockdelay.html
|
|
531
549
|
:exampleMetadata: fixture=_generated
|
|
@@ -564,7 +582,7 @@ class CfnRule(
|
|
|
564
582
|
|
|
565
583
|
@builtins.property
|
|
566
584
|
def unlock_delay_value(self) -> typing.Optional[jsii.Number]:
|
|
567
|
-
'''The unlock delay period, measured in the unit specified for UnlockDelayUnit.
|
|
585
|
+
'''The unlock delay period, measured in the unit specified for *UnlockDelayUnit* .
|
|
568
586
|
|
|
569
587
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-unlockdelay.html#cfn-rbin-rule-unlockdelay-unlockdelayvalue
|
|
570
588
|
'''
|
|
@@ -613,12 +631,12 @@ class CfnRuleProps:
|
|
|
613
631
|
'''Properties for defining a ``CfnRule``.
|
|
614
632
|
|
|
615
633
|
:param resource_type: The resource type retained by the retention rule.
|
|
616
|
-
:param retention_period:
|
|
617
|
-
:param description: The
|
|
634
|
+
:param retention_period: Information about the retention period for which the retention rule is to retain resources.
|
|
635
|
+
:param description: The retention rule description.
|
|
618
636
|
:param exclude_resource_tags: Information about the exclude resource tags used to identify resources that are excluded by the retention rule.
|
|
619
|
-
:param lock_configuration:
|
|
620
|
-
:param resource_tags: Information about the resource tags used to identify resources that are retained by the retention rule.
|
|
621
|
-
:param status: The state of the retention rule. Only retention rules that are in the available state retain resources.
|
|
637
|
+
:param lock_configuration: Information about the retention rule lock configuration.
|
|
638
|
+
:param resource_tags: [Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.
|
|
639
|
+
:param status: The state of the retention rule. Only retention rules that are in the ``available`` state retain resources.
|
|
622
640
|
:param tags: Information about the tags assigned to the retention rule.
|
|
623
641
|
|
|
624
642
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rbin-rule.html
|
|
@@ -699,7 +717,7 @@ class CfnRuleProps:
|
|
|
699
717
|
def retention_period(
|
|
700
718
|
self,
|
|
701
719
|
) -> typing.Union[_IResolvable_da3f097b, CfnRule.RetentionPeriodProperty]:
|
|
702
|
-
'''
|
|
720
|
+
'''Information about the retention period for which the retention rule is to retain resources.
|
|
703
721
|
|
|
704
722
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rbin-rule.html#cfn-rbin-rule-retentionperiod
|
|
705
723
|
'''
|
|
@@ -709,7 +727,7 @@ class CfnRuleProps:
|
|
|
709
727
|
|
|
710
728
|
@builtins.property
|
|
711
729
|
def description(self) -> typing.Optional[builtins.str]:
|
|
712
|
-
'''The
|
|
730
|
+
'''The retention rule description.
|
|
713
731
|
|
|
714
732
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rbin-rule.html#cfn-rbin-rule-description
|
|
715
733
|
'''
|
|
@@ -731,7 +749,8 @@ class CfnRuleProps:
|
|
|
731
749
|
def lock_configuration(
|
|
732
750
|
self,
|
|
733
751
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnRule.UnlockDelayProperty]]:
|
|
734
|
-
'''
|
|
752
|
+
'''Information about the retention rule lock configuration.
|
|
753
|
+
|
|
735
754
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rbin-rule.html#cfn-rbin-rule-lockconfiguration
|
|
736
755
|
'''
|
|
737
756
|
result = self._values.get("lock_configuration")
|
|
@@ -741,7 +760,7 @@ class CfnRuleProps:
|
|
|
741
760
|
def resource_tags(
|
|
742
761
|
self,
|
|
743
762
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnRule.ResourceTagProperty]]]]:
|
|
744
|
-
'''Information about the resource tags used to identify resources that are retained by the retention rule.
|
|
763
|
+
'''[Tag-level retention rules only] Information about the resource tags used to identify resources that are retained by the retention rule.
|
|
745
764
|
|
|
746
765
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rbin-rule.html#cfn-rbin-rule-resourcetags
|
|
747
766
|
'''
|
|
@@ -752,7 +771,7 @@ class CfnRuleProps:
|
|
|
752
771
|
def status(self) -> typing.Optional[builtins.str]:
|
|
753
772
|
'''The state of the retention rule.
|
|
754
773
|
|
|
755
|
-
Only retention rules that are in the available state retain resources.
|
|
774
|
+
Only retention rules that are in the ``available`` state retain resources.
|
|
756
775
|
|
|
757
776
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rbin-rule.html#cfn-rbin-rule-status
|
|
758
777
|
'''
|
aws_cdk/aws_rds/__init__.py
CHANGED
|
@@ -1648,6 +1648,35 @@ rds.DatabaseCluster(self, "Cluster",
|
|
|
1648
1648
|
monitoring_role=monitoring_role
|
|
1649
1649
|
)
|
|
1650
1650
|
```
|
|
1651
|
+
|
|
1652
|
+
## Limitless Database Cluster
|
|
1653
|
+
|
|
1654
|
+
Amazon Aurora [PostgreSQL Limitless Database](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/limitless.html) provides automated horizontal scaling to process millions of write transactions per second and manages petabytes of data while maintaining the simplicity of operating inside a single database.
|
|
1655
|
+
|
|
1656
|
+
The following example shows creating an Aurora PostgreSQL Limitless Database cluster:
|
|
1657
|
+
|
|
1658
|
+
```python
|
|
1659
|
+
# vpc: ec2.IVpc
|
|
1660
|
+
|
|
1661
|
+
|
|
1662
|
+
rds.DatabaseCluster(self, "LimitlessDatabaseCluster",
|
|
1663
|
+
engine=rds.DatabaseClusterEngine.aurora_postgres(
|
|
1664
|
+
version=rds.AuroraPostgresEngineVersion.VER_16_4_LIMITLESS
|
|
1665
|
+
),
|
|
1666
|
+
vpc=vpc,
|
|
1667
|
+
cluster_scailability_type=rds.ClusterScailabilityType.LIMITLESS,
|
|
1668
|
+
# Requires enabling Performance Insights
|
|
1669
|
+
enable_performance_insights=True,
|
|
1670
|
+
performance_insight_retention=rds.PerformanceInsightRetention.MONTHS_1,
|
|
1671
|
+
# Requires enabling Enhanced Monitoring at the cluster level
|
|
1672
|
+
monitoring_interval=Duration.minutes(1),
|
|
1673
|
+
enable_cluster_level_enhanced_monitoring=True,
|
|
1674
|
+
# Requires I/O optimized storage type
|
|
1675
|
+
storage_type=rds.DBClusterStorageType.AURORA_IOPT1,
|
|
1676
|
+
# Requires exporting the PostgreSQL log to Amazon CloudWatch Logs.
|
|
1677
|
+
cloudwatch_logs_exports=["postgresql"]
|
|
1678
|
+
)
|
|
1679
|
+
```
|
|
1651
1680
|
'''
|
|
1652
1681
|
from pkgutil import extend_path
|
|
1653
1682
|
__path__ = extend_path(__path__, __name__)
|
|
@@ -3870,6 +3899,12 @@ class AuroraPostgresEngineVersion(
|
|
|
3870
3899
|
'''Version "16.4".'''
|
|
3871
3900
|
return typing.cast("AuroraPostgresEngineVersion", jsii.sget(cls, "VER_16_4"))
|
|
3872
3901
|
|
|
3902
|
+
@jsii.python.classproperty
|
|
3903
|
+
@jsii.member(jsii_name="VER_16_4_LIMITLESS")
|
|
3904
|
+
def VER_16_4_LIMITLESS(cls) -> "AuroraPostgresEngineVersion":
|
|
3905
|
+
'''Version "16.4 limitless".'''
|
|
3906
|
+
return typing.cast("AuroraPostgresEngineVersion", jsii.sget(cls, "VER_16_4_LIMITLESS"))
|
|
3907
|
+
|
|
3873
3908
|
@jsii.python.classproperty
|
|
3874
3909
|
@jsii.member(jsii_name="VER_16_5")
|
|
3875
3910
|
def VER_16_5(cls) -> "AuroraPostgresEngineVersion":
|
|
@@ -6594,7 +6629,7 @@ class CfnDBCluster(
|
|
|
6594
6629
|
Valid for: Aurora Serverless v2 DB clusters
|
|
6595
6630
|
|
|
6596
6631
|
:param max_capacity: The maximum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster. You can specify ACU values in half-step increments, such as 40, 40.5, 41, and so on. The largest value that you can use is 128. The maximum capacity must be higher than 0.5 ACUs. For more information, see `Choosing the maximum Aurora Serverless v2 capacity setting for a cluster <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.setting-capacity.html#aurora-serverless-v2.max_capacity_considerations>`_ in the *Amazon Aurora User Guide* . Aurora automatically sets certain parameters for Aurora Serverless V2 DB instances to values that depend on the maximum ACU value in the capacity range. When you update the maximum capacity value, the ``ParameterApplyStatus`` value for the DB instance changes to ``pending-reboot`` . You can update the parameter values by rebooting the DB instance after changing the capacity range.
|
|
6597
|
-
:param min_capacity: The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster. You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on.
|
|
6632
|
+
:param min_capacity: The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster. You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on. For Aurora versions that support the Aurora Serverless v2 auto-pause feature, the smallest value that you can use is 0. For versions that don't support Aurora Serverless v2 auto-pause, the smallest value that you can use is 0.5.
|
|
6598
6633
|
|
|
6599
6634
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-serverlessv2scalingconfiguration.html
|
|
6600
6635
|
:exampleMetadata: fixture=_generated
|
|
@@ -6639,7 +6674,7 @@ class CfnDBCluster(
|
|
|
6639
6674
|
def min_capacity(self) -> typing.Optional[jsii.Number]:
|
|
6640
6675
|
'''The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.
|
|
6641
6676
|
|
|
6642
|
-
You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on.
|
|
6677
|
+
You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on. For Aurora versions that support the Aurora Serverless v2 auto-pause feature, the smallest value that you can use is 0. For versions that don't support Aurora Serverless v2 auto-pause, the smallest value that you can use is 0.5.
|
|
6643
6678
|
|
|
6644
6679
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-serverlessv2scalingconfiguration.html#cfn-rds-dbcluster-serverlessv2scalingconfiguration-mincapacity
|
|
6645
6680
|
'''
|
|
@@ -16752,7 +16787,7 @@ class CfnGlobalCluster(
|
|
|
16752
16787
|
:param engine_lifecycle_support: The life cycle type for this global database cluster. .. epigraph:: By default, this value is set to ``open-source-rds-extended-support`` , which enrolls your global cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to ``open-source-rds-extended-support-disabled`` . In this case, creating the global cluster will fail if the DB major version is past its end of standard support date. This setting only applies to Aurora PostgreSQL-based global databases. You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your global cluster past the end of standard support for that engine version. For more information, see `Using Amazon RDS Extended Support <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html>`_ in the *Amazon Aurora User Guide* . Valid Values: ``open-source-rds-extended-support | open-source-rds-extended-support-disabled`` Default: ``open-source-rds-extended-support``
|
|
16753
16788
|
:param engine_version: The engine version to use for this global database cluster. Constraints: - Can't be specified if ``SourceDBClusterIdentifier`` is specified. In this case, Amazon Aurora uses the engine version of the source DB cluster.
|
|
16754
16789
|
:param global_cluster_identifier: The cluster identifier for this global database cluster. This parameter is stored as a lowercase string.
|
|
16755
|
-
:param global_endpoint:
|
|
16790
|
+
:param global_endpoint: The writer endpoint for the new global database cluster. This endpoint always points to the writer DB instance in the current primary cluster.
|
|
16756
16791
|
:param source_db_cluster_identifier: The Amazon Resource Name (ARN) to use as the primary cluster of the global database. If you provide a value for this parameter, don't specify values for the following settings because Amazon Aurora uses the values from the specified source DB cluster: - ``DatabaseName`` - ``Engine`` - ``EngineVersion`` - ``StorageEncrypted``
|
|
16757
16792
|
:param storage_encrypted: Specifies whether to enable storage encryption for the new global database cluster. Constraints: - Can't be specified if ``SourceDBClusterIdentifier`` is specified. In this case, Amazon Aurora uses the setting from the source DB cluster.
|
|
16758
16793
|
:param tags: Metadata assigned to an Amazon RDS resource consisting of a key-value pair. For more information, see `Tagging Amazon RDS resources <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html>`_ in the *Amazon RDS User Guide* or `Tagging Amazon Aurora and Amazon RDS resources <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html>`_ in the *Amazon Aurora User Guide* .
|
|
@@ -16891,6 +16926,7 @@ class CfnGlobalCluster(
|
|
|
16891
16926
|
def global_endpoint(
|
|
16892
16927
|
self,
|
|
16893
16928
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGlobalCluster.GlobalEndpointProperty"]]:
|
|
16929
|
+
'''The writer endpoint for the new global database cluster.'''
|
|
16894
16930
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnGlobalCluster.GlobalEndpointProperty"]], jsii.get(self, "globalEndpoint"))
|
|
16895
16931
|
|
|
16896
16932
|
@global_endpoint.setter
|
|
@@ -16957,8 +16993,11 @@ class CfnGlobalCluster(
|
|
|
16957
16993
|
)
|
|
16958
16994
|
class GlobalEndpointProperty:
|
|
16959
16995
|
def __init__(self, *, address: typing.Optional[builtins.str] = None) -> None:
|
|
16960
|
-
'''
|
|
16961
|
-
|
|
16996
|
+
'''The writer endpoint for the new global database cluster.
|
|
16997
|
+
|
|
16998
|
+
This endpoint always points to the writer DB instance in the current primary cluster.
|
|
16999
|
+
|
|
17000
|
+
:param address: The writer endpoint for the new global database cluster. This endpoint always points to the writer DB instance in the current primary cluster.
|
|
16962
17001
|
|
|
16963
17002
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-globalcluster-globalendpoint.html
|
|
16964
17003
|
:exampleMetadata: fixture=_generated
|
|
@@ -16982,7 +17021,7 @@ class CfnGlobalCluster(
|
|
|
16982
17021
|
|
|
16983
17022
|
@builtins.property
|
|
16984
17023
|
def address(self) -> typing.Optional[builtins.str]:
|
|
16985
|
-
'''The writer endpoint for the global database cluster.
|
|
17024
|
+
'''The writer endpoint for the new global database cluster.
|
|
16986
17025
|
|
|
16987
17026
|
This endpoint always points to the writer DB instance in the current primary cluster.
|
|
16988
17027
|
|
|
@@ -17039,7 +17078,7 @@ class CfnGlobalClusterProps:
|
|
|
17039
17078
|
:param engine_lifecycle_support: The life cycle type for this global database cluster. .. epigraph:: By default, this value is set to ``open-source-rds-extended-support`` , which enrolls your global cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to ``open-source-rds-extended-support-disabled`` . In this case, creating the global cluster will fail if the DB major version is past its end of standard support date. This setting only applies to Aurora PostgreSQL-based global databases. You can use this setting to enroll your global cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your global cluster past the end of standard support for that engine version. For more information, see `Using Amazon RDS Extended Support <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html>`_ in the *Amazon Aurora User Guide* . Valid Values: ``open-source-rds-extended-support | open-source-rds-extended-support-disabled`` Default: ``open-source-rds-extended-support``
|
|
17040
17079
|
:param engine_version: The engine version to use for this global database cluster. Constraints: - Can't be specified if ``SourceDBClusterIdentifier`` is specified. In this case, Amazon Aurora uses the engine version of the source DB cluster.
|
|
17041
17080
|
:param global_cluster_identifier: The cluster identifier for this global database cluster. This parameter is stored as a lowercase string.
|
|
17042
|
-
:param global_endpoint:
|
|
17081
|
+
:param global_endpoint: The writer endpoint for the new global database cluster. This endpoint always points to the writer DB instance in the current primary cluster.
|
|
17043
17082
|
:param source_db_cluster_identifier: The Amazon Resource Name (ARN) to use as the primary cluster of the global database. If you provide a value for this parameter, don't specify values for the following settings because Amazon Aurora uses the values from the specified source DB cluster: - ``DatabaseName`` - ``Engine`` - ``EngineVersion`` - ``StorageEncrypted``
|
|
17044
17083
|
:param storage_encrypted: Specifies whether to enable storage encryption for the new global database cluster. Constraints: - Can't be specified if ``SourceDBClusterIdentifier`` is specified. In this case, Amazon Aurora uses the setting from the source DB cluster.
|
|
17045
17084
|
:param tags: Metadata assigned to an Amazon RDS resource consisting of a key-value pair. For more information, see `Tagging Amazon RDS resources <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html>`_ in the *Amazon RDS User Guide* or `Tagging Amazon Aurora and Amazon RDS resources <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html>`_ in the *Amazon Aurora User Guide* .
|
|
@@ -17178,7 +17217,10 @@ class CfnGlobalClusterProps:
|
|
|
17178
17217
|
def global_endpoint(
|
|
17179
17218
|
self,
|
|
17180
17219
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnGlobalCluster.GlobalEndpointProperty]]:
|
|
17181
|
-
'''
|
|
17220
|
+
'''The writer endpoint for the new global database cluster.
|
|
17221
|
+
|
|
17222
|
+
This endpoint always points to the writer DB instance in the current primary cluster.
|
|
17223
|
+
|
|
17182
17224
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-globalcluster.html#cfn-rds-globalcluster-globalendpoint
|
|
17183
17225
|
'''
|
|
17184
17226
|
result = self._values.get("global_endpoint")
|
|
@@ -19442,6 +19484,45 @@ class ClusterInstanceType(
|
|
|
19442
19484
|
return typing.cast("InstanceType", jsii.get(self, "type"))
|
|
19443
19485
|
|
|
19444
19486
|
|
|
19487
|
+
@jsii.enum(jsii_type="aws-cdk-lib.aws_rds.ClusterScailabilityType")
|
|
19488
|
+
class ClusterScailabilityType(enum.Enum):
|
|
19489
|
+
'''The scalability mode of the Aurora DB cluster.
|
|
19490
|
+
|
|
19491
|
+
:exampleMetadata: infused
|
|
19492
|
+
|
|
19493
|
+
Example::
|
|
19494
|
+
|
|
19495
|
+
# vpc: ec2.IVpc
|
|
19496
|
+
|
|
19497
|
+
|
|
19498
|
+
rds.DatabaseCluster(self, "LimitlessDatabaseCluster",
|
|
19499
|
+
engine=rds.DatabaseClusterEngine.aurora_postgres(
|
|
19500
|
+
version=rds.AuroraPostgresEngineVersion.VER_16_4_LIMITLESS
|
|
19501
|
+
),
|
|
19502
|
+
vpc=vpc,
|
|
19503
|
+
cluster_scailability_type=rds.ClusterScailabilityType.LIMITLESS,
|
|
19504
|
+
# Requires enabling Performance Insights
|
|
19505
|
+
enable_performance_insights=True,
|
|
19506
|
+
performance_insight_retention=rds.PerformanceInsightRetention.MONTHS_1,
|
|
19507
|
+
# Requires enabling Enhanced Monitoring at the cluster level
|
|
19508
|
+
monitoring_interval=Duration.minutes(1),
|
|
19509
|
+
enable_cluster_level_enhanced_monitoring=True,
|
|
19510
|
+
# Requires I/O optimized storage type
|
|
19511
|
+
storage_type=rds.DBClusterStorageType.AURORA_IOPT1,
|
|
19512
|
+
# Requires exporting the PostgreSQL log to Amazon CloudWatch Logs.
|
|
19513
|
+
cloudwatch_logs_exports=["postgresql"]
|
|
19514
|
+
)
|
|
19515
|
+
'''
|
|
19516
|
+
|
|
19517
|
+
STANDARD = "STANDARD"
|
|
19518
|
+
'''The cluster uses normal DB instance creation.'''
|
|
19519
|
+
LIMITLESS = "LIMITLESS"
|
|
19520
|
+
'''The cluster operates as an Aurora Limitless Database, allowing you to create a DB shard group for horizontal scaling (sharding) capabilities.
|
|
19521
|
+
|
|
19522
|
+
:see: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/limitless.html
|
|
19523
|
+
'''
|
|
19524
|
+
|
|
19525
|
+
|
|
19445
19526
|
@jsii.data_type(
|
|
19446
19527
|
jsii_type="aws-cdk-lib.aws_rds.CommonRotationUserOptions",
|
|
19447
19528
|
jsii_struct_bases=[],
|
|
@@ -20581,6 +20662,7 @@ class DatabaseClusterEngine(
|
|
|
20581
20662
|
"cloudwatch_logs_retention": "cloudwatchLogsRetention",
|
|
20582
20663
|
"cloudwatch_logs_retention_role": "cloudwatchLogsRetentionRole",
|
|
20583
20664
|
"cluster_identifier": "clusterIdentifier",
|
|
20665
|
+
"cluster_scailability_type": "clusterScailabilityType",
|
|
20584
20666
|
"copy_tags_to_snapshot": "copyTagsToSnapshot",
|
|
20585
20667
|
"credentials": "credentials",
|
|
20586
20668
|
"default_database_name": "defaultDatabaseName",
|
|
@@ -20637,6 +20719,7 @@ class DatabaseClusterFromSnapshotProps:
|
|
|
20637
20719
|
cloudwatch_logs_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
20638
20720
|
cloudwatch_logs_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
20639
20721
|
cluster_identifier: typing.Optional[builtins.str] = None,
|
|
20722
|
+
cluster_scailability_type: typing.Optional[ClusterScailabilityType] = None,
|
|
20640
20723
|
copy_tags_to_snapshot: typing.Optional[builtins.bool] = None,
|
|
20641
20724
|
credentials: typing.Optional[Credentials] = None,
|
|
20642
20725
|
default_database_name: typing.Optional[builtins.str] = None,
|
|
@@ -20690,6 +20773,7 @@ class DatabaseClusterFromSnapshotProps:
|
|
|
20690
20773
|
:param cloudwatch_logs_retention: The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``Infinity``. Default: - logs never expire
|
|
20691
20774
|
:param cloudwatch_logs_retention_role: The IAM role for the Lambda function associated with the custom resource that sets the retention policy. Default: - a new role is created.
|
|
20692
20775
|
:param cluster_identifier: An optional identifier for the cluster. Default: - A name is automatically generated.
|
|
20776
|
+
:param cluster_scailability_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: ClusterScailabilityType.STANDARD
|
|
20693
20777
|
:param copy_tags_to_snapshot: Whether to copy tags to the snapshot when a snapshot is created. Default: - true
|
|
20694
20778
|
: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.
|
|
20695
20779
|
:param default_database_name: Name of a database which is automatically created inside the cluster. Default: - Database is not created in cluster.
|
|
@@ -20762,6 +20846,7 @@ class DatabaseClusterFromSnapshotProps:
|
|
|
20762
20846
|
check_type(argname="argument cloudwatch_logs_retention", value=cloudwatch_logs_retention, expected_type=type_hints["cloudwatch_logs_retention"])
|
|
20763
20847
|
check_type(argname="argument cloudwatch_logs_retention_role", value=cloudwatch_logs_retention_role, expected_type=type_hints["cloudwatch_logs_retention_role"])
|
|
20764
20848
|
check_type(argname="argument cluster_identifier", value=cluster_identifier, expected_type=type_hints["cluster_identifier"])
|
|
20849
|
+
check_type(argname="argument cluster_scailability_type", value=cluster_scailability_type, expected_type=type_hints["cluster_scailability_type"])
|
|
20765
20850
|
check_type(argname="argument copy_tags_to_snapshot", value=copy_tags_to_snapshot, expected_type=type_hints["copy_tags_to_snapshot"])
|
|
20766
20851
|
check_type(argname="argument credentials", value=credentials, expected_type=type_hints["credentials"])
|
|
20767
20852
|
check_type(argname="argument default_database_name", value=default_database_name, expected_type=type_hints["default_database_name"])
|
|
@@ -20821,6 +20906,8 @@ class DatabaseClusterFromSnapshotProps:
|
|
|
20821
20906
|
self._values["cloudwatch_logs_retention_role"] = cloudwatch_logs_retention_role
|
|
20822
20907
|
if cluster_identifier is not None:
|
|
20823
20908
|
self._values["cluster_identifier"] = cluster_identifier
|
|
20909
|
+
if cluster_scailability_type is not None:
|
|
20910
|
+
self._values["cluster_scailability_type"] = cluster_scailability_type
|
|
20824
20911
|
if copy_tags_to_snapshot is not None:
|
|
20825
20912
|
self._values["copy_tags_to_snapshot"] = copy_tags_to_snapshot
|
|
20826
20913
|
if credentials is not None:
|
|
@@ -21000,6 +21087,17 @@ class DatabaseClusterFromSnapshotProps:
|
|
|
21000
21087
|
result = self._values.get("cluster_identifier")
|
|
21001
21088
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
21002
21089
|
|
|
21090
|
+
@builtins.property
|
|
21091
|
+
def cluster_scailability_type(self) -> typing.Optional[ClusterScailabilityType]:
|
|
21092
|
+
'''Specifies the scalability mode of the Aurora DB cluster.
|
|
21093
|
+
|
|
21094
|
+
Set LIMITLESS if you want to use a limitless database; otherwise, set it to STANDARD.
|
|
21095
|
+
|
|
21096
|
+
:default: ClusterScailabilityType.STANDARD
|
|
21097
|
+
'''
|
|
21098
|
+
result = self._values.get("cluster_scailability_type")
|
|
21099
|
+
return typing.cast(typing.Optional[ClusterScailabilityType], result)
|
|
21100
|
+
|
|
21003
21101
|
@builtins.property
|
|
21004
21102
|
def copy_tags_to_snapshot(self) -> typing.Optional[builtins.bool]:
|
|
21005
21103
|
'''Whether to copy tags to the snapshot when a snapshot is created.
|
|
@@ -21503,6 +21601,7 @@ class DatabaseClusterFromSnapshotProps:
|
|
|
21503
21601
|
"cloudwatch_logs_retention": "cloudwatchLogsRetention",
|
|
21504
21602
|
"cloudwatch_logs_retention_role": "cloudwatchLogsRetentionRole",
|
|
21505
21603
|
"cluster_identifier": "clusterIdentifier",
|
|
21604
|
+
"cluster_scailability_type": "clusterScailabilityType",
|
|
21506
21605
|
"copy_tags_to_snapshot": "copyTagsToSnapshot",
|
|
21507
21606
|
"credentials": "credentials",
|
|
21508
21607
|
"default_database_name": "defaultDatabaseName",
|
|
@@ -21557,6 +21656,7 @@ class DatabaseClusterProps:
|
|
|
21557
21656
|
cloudwatch_logs_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
21558
21657
|
cloudwatch_logs_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
21559
21658
|
cluster_identifier: typing.Optional[builtins.str] = None,
|
|
21659
|
+
cluster_scailability_type: typing.Optional[ClusterScailabilityType] = None,
|
|
21560
21660
|
copy_tags_to_snapshot: typing.Optional[builtins.bool] = None,
|
|
21561
21661
|
credentials: typing.Optional[Credentials] = None,
|
|
21562
21662
|
default_database_name: typing.Optional[builtins.str] = None,
|
|
@@ -21608,6 +21708,7 @@ class DatabaseClusterProps:
|
|
|
21608
21708
|
:param cloudwatch_logs_retention: The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``Infinity``. Default: - logs never expire
|
|
21609
21709
|
:param cloudwatch_logs_retention_role: The IAM role for the Lambda function associated with the custom resource that sets the retention policy. Default: - a new role is created.
|
|
21610
21710
|
:param cluster_identifier: An optional identifier for the cluster. Default: - A name is automatically generated.
|
|
21711
|
+
:param cluster_scailability_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: ClusterScailabilityType.STANDARD
|
|
21611
21712
|
:param copy_tags_to_snapshot: Whether to copy tags to the snapshot when a snapshot is created. Default: - true
|
|
21612
21713
|
:param credentials: Credentials for the administrative user. Default: - A username of 'admin' (or 'postgres' for PostgreSQL) and SecretsManager-generated password
|
|
21613
21714
|
:param default_database_name: Name of a database which is automatically created inside the cluster. Default: - Database is not created in cluster.
|
|
@@ -21687,6 +21788,7 @@ class DatabaseClusterProps:
|
|
|
21687
21788
|
check_type(argname="argument cloudwatch_logs_retention", value=cloudwatch_logs_retention, expected_type=type_hints["cloudwatch_logs_retention"])
|
|
21688
21789
|
check_type(argname="argument cloudwatch_logs_retention_role", value=cloudwatch_logs_retention_role, expected_type=type_hints["cloudwatch_logs_retention_role"])
|
|
21689
21790
|
check_type(argname="argument cluster_identifier", value=cluster_identifier, expected_type=type_hints["cluster_identifier"])
|
|
21791
|
+
check_type(argname="argument cluster_scailability_type", value=cluster_scailability_type, expected_type=type_hints["cluster_scailability_type"])
|
|
21690
21792
|
check_type(argname="argument copy_tags_to_snapshot", value=copy_tags_to_snapshot, expected_type=type_hints["copy_tags_to_snapshot"])
|
|
21691
21793
|
check_type(argname="argument credentials", value=credentials, expected_type=type_hints["credentials"])
|
|
21692
21794
|
check_type(argname="argument default_database_name", value=default_database_name, expected_type=type_hints["default_database_name"])
|
|
@@ -21744,6 +21846,8 @@ class DatabaseClusterProps:
|
|
|
21744
21846
|
self._values["cloudwatch_logs_retention_role"] = cloudwatch_logs_retention_role
|
|
21745
21847
|
if cluster_identifier is not None:
|
|
21746
21848
|
self._values["cluster_identifier"] = cluster_identifier
|
|
21849
|
+
if cluster_scailability_type is not None:
|
|
21850
|
+
self._values["cluster_scailability_type"] = cluster_scailability_type
|
|
21747
21851
|
if copy_tags_to_snapshot is not None:
|
|
21748
21852
|
self._values["copy_tags_to_snapshot"] = copy_tags_to_snapshot
|
|
21749
21853
|
if credentials is not None:
|
|
@@ -21910,6 +22014,17 @@ class DatabaseClusterProps:
|
|
|
21910
22014
|
result = self._values.get("cluster_identifier")
|
|
21911
22015
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
21912
22016
|
|
|
22017
|
+
@builtins.property
|
|
22018
|
+
def cluster_scailability_type(self) -> typing.Optional[ClusterScailabilityType]:
|
|
22019
|
+
'''Specifies the scalability mode of the Aurora DB cluster.
|
|
22020
|
+
|
|
22021
|
+
Set LIMITLESS if you want to use a limitless database; otherwise, set it to STANDARD.
|
|
22022
|
+
|
|
22023
|
+
:default: ClusterScailabilityType.STANDARD
|
|
22024
|
+
'''
|
|
22025
|
+
result = self._values.get("cluster_scailability_type")
|
|
22026
|
+
return typing.cast(typing.Optional[ClusterScailabilityType], result)
|
|
22027
|
+
|
|
21913
22028
|
@builtins.property
|
|
21914
22029
|
def copy_tags_to_snapshot(self) -> typing.Optional[builtins.bool]:
|
|
21915
22030
|
'''Whether to copy tags to the snapshot when a snapshot is created.
|
|
@@ -31806,6 +31921,12 @@ class MysqlEngineVersion(
|
|
|
31806
31921
|
'''Version "8.0.40".'''
|
|
31807
31922
|
return typing.cast("MysqlEngineVersion", jsii.sget(cls, "VER_8_0_40"))
|
|
31808
31923
|
|
|
31924
|
+
@jsii.python.classproperty
|
|
31925
|
+
@jsii.member(jsii_name="VER_8_4_3")
|
|
31926
|
+
def VER_8_4_3(cls) -> "MysqlEngineVersion":
|
|
31927
|
+
'''Version "8.4.3".'''
|
|
31928
|
+
return typing.cast("MysqlEngineVersion", jsii.sget(cls, "VER_8_4_3"))
|
|
31929
|
+
|
|
31809
31930
|
@builtins.property
|
|
31810
31931
|
@jsii.member(jsii_name="mysqlFullVersion")
|
|
31811
31932
|
def mysql_full_version(self) -> builtins.str:
|
|
@@ -40789,6 +40910,7 @@ class DatabaseClusterFromSnapshot(
|
|
|
40789
40910
|
cloudwatch_logs_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
40790
40911
|
cloudwatch_logs_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
40791
40912
|
cluster_identifier: typing.Optional[builtins.str] = None,
|
|
40913
|
+
cluster_scailability_type: typing.Optional[ClusterScailabilityType] = None,
|
|
40792
40914
|
copy_tags_to_snapshot: typing.Optional[builtins.bool] = None,
|
|
40793
40915
|
credentials: typing.Optional[Credentials] = None,
|
|
40794
40916
|
default_database_name: typing.Optional[builtins.str] = None,
|
|
@@ -40843,6 +40965,7 @@ class DatabaseClusterFromSnapshot(
|
|
|
40843
40965
|
:param cloudwatch_logs_retention: The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``Infinity``. Default: - logs never expire
|
|
40844
40966
|
:param cloudwatch_logs_retention_role: The IAM role for the Lambda function associated with the custom resource that sets the retention policy. Default: - a new role is created.
|
|
40845
40967
|
:param cluster_identifier: An optional identifier for the cluster. Default: - A name is automatically generated.
|
|
40968
|
+
:param cluster_scailability_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: ClusterScailabilityType.STANDARD
|
|
40846
40969
|
:param copy_tags_to_snapshot: Whether to copy tags to the snapshot when a snapshot is created. Default: - true
|
|
40847
40970
|
: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.
|
|
40848
40971
|
:param default_database_name: Name of a database which is automatically created inside the cluster. Default: - Database is not created in cluster.
|
|
@@ -40899,6 +41022,7 @@ class DatabaseClusterFromSnapshot(
|
|
|
40899
41022
|
cloudwatch_logs_retention=cloudwatch_logs_retention,
|
|
40900
41023
|
cloudwatch_logs_retention_role=cloudwatch_logs_retention_role,
|
|
40901
41024
|
cluster_identifier=cluster_identifier,
|
|
41025
|
+
cluster_scailability_type=cluster_scailability_type,
|
|
40902
41026
|
copy_tags_to_snapshot=copy_tags_to_snapshot,
|
|
40903
41027
|
credentials=credentials,
|
|
40904
41028
|
default_database_name=default_database_name,
|
|
@@ -44823,6 +44947,7 @@ class DatabaseCluster(
|
|
|
44823
44947
|
cloudwatch_logs_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
44824
44948
|
cloudwatch_logs_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
44825
44949
|
cluster_identifier: typing.Optional[builtins.str] = None,
|
|
44950
|
+
cluster_scailability_type: typing.Optional[ClusterScailabilityType] = None,
|
|
44826
44951
|
copy_tags_to_snapshot: typing.Optional[builtins.bool] = None,
|
|
44827
44952
|
credentials: typing.Optional[Credentials] = None,
|
|
44828
44953
|
default_database_name: typing.Optional[builtins.str] = None,
|
|
@@ -44875,6 +45000,7 @@ class DatabaseCluster(
|
|
|
44875
45000
|
:param cloudwatch_logs_retention: The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``Infinity``. Default: - logs never expire
|
|
44876
45001
|
:param cloudwatch_logs_retention_role: The IAM role for the Lambda function associated with the custom resource that sets the retention policy. Default: - a new role is created.
|
|
44877
45002
|
:param cluster_identifier: An optional identifier for the cluster. Default: - A name is automatically generated.
|
|
45003
|
+
:param cluster_scailability_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: ClusterScailabilityType.STANDARD
|
|
44878
45004
|
:param copy_tags_to_snapshot: Whether to copy tags to the snapshot when a snapshot is created. Default: - true
|
|
44879
45005
|
:param credentials: Credentials for the administrative user. Default: - A username of 'admin' (or 'postgres' for PostgreSQL) and SecretsManager-generated password
|
|
44880
45006
|
:param default_database_name: Name of a database which is automatically created inside the cluster. Default: - Database is not created in cluster.
|
|
@@ -44929,6 +45055,7 @@ class DatabaseCluster(
|
|
|
44929
45055
|
cloudwatch_logs_retention=cloudwatch_logs_retention,
|
|
44930
45056
|
cloudwatch_logs_retention_role=cloudwatch_logs_retention_role,
|
|
44931
45057
|
cluster_identifier=cluster_identifier,
|
|
45058
|
+
cluster_scailability_type=cluster_scailability_type,
|
|
44932
45059
|
copy_tags_to_snapshot=copy_tags_to_snapshot,
|
|
44933
45060
|
credentials=credentials,
|
|
44934
45061
|
default_database_name=default_database_name,
|
|
@@ -45811,6 +45938,7 @@ __all__ = [
|
|
|
45811
45938
|
"ClusterInstanceOptions",
|
|
45812
45939
|
"ClusterInstanceProps",
|
|
45813
45940
|
"ClusterInstanceType",
|
|
45941
|
+
"ClusterScailabilityType",
|
|
45814
45942
|
"CommonRotationUserOptions",
|
|
45815
45943
|
"Credentials",
|
|
45816
45944
|
"CredentialsBaseOptions",
|
|
@@ -48573,6 +48701,7 @@ def _typecheckingstub__1e44b5aef872ca17869a17181382f06cd0166bdbe07e2c33701d3bf1e
|
|
|
48573
48701
|
cloudwatch_logs_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
48574
48702
|
cloudwatch_logs_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
48575
48703
|
cluster_identifier: typing.Optional[builtins.str] = None,
|
|
48704
|
+
cluster_scailability_type: typing.Optional[ClusterScailabilityType] = None,
|
|
48576
48705
|
copy_tags_to_snapshot: typing.Optional[builtins.bool] = None,
|
|
48577
48706
|
credentials: typing.Optional[Credentials] = None,
|
|
48578
48707
|
default_database_name: typing.Optional[builtins.str] = None,
|
|
@@ -48628,6 +48757,7 @@ def _typecheckingstub__a32e21c90ab65d3cfdb3b7ef2a0d741ba1528ec8824cd1817d1e485b4
|
|
|
48628
48757
|
cloudwatch_logs_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
48629
48758
|
cloudwatch_logs_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
48630
48759
|
cluster_identifier: typing.Optional[builtins.str] = None,
|
|
48760
|
+
cluster_scailability_type: typing.Optional[ClusterScailabilityType] = None,
|
|
48631
48761
|
copy_tags_to_snapshot: typing.Optional[builtins.bool] = None,
|
|
48632
48762
|
credentials: typing.Optional[Credentials] = None,
|
|
48633
48763
|
default_database_name: typing.Optional[builtins.str] = None,
|
|
@@ -49835,6 +49965,7 @@ def _typecheckingstub__d1a2e259091e12a41b0f5818df495769518e049ebcc89ed340ffc7ba4
|
|
|
49835
49965
|
cloudwatch_logs_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
49836
49966
|
cloudwatch_logs_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
49837
49967
|
cluster_identifier: typing.Optional[builtins.str] = None,
|
|
49968
|
+
cluster_scailability_type: typing.Optional[ClusterScailabilityType] = None,
|
|
49838
49969
|
copy_tags_to_snapshot: typing.Optional[builtins.bool] = None,
|
|
49839
49970
|
credentials: typing.Optional[Credentials] = None,
|
|
49840
49971
|
default_database_name: typing.Optional[builtins.str] = None,
|
|
@@ -50323,6 +50454,7 @@ def _typecheckingstub__c6184cbbefaa372690b9776dafecbf5857cf9bfbab91d1666aad22c56
|
|
|
50323
50454
|
cloudwatch_logs_retention: typing.Optional[_RetentionDays_070f99f0] = None,
|
|
50324
50455
|
cloudwatch_logs_retention_role: typing.Optional[_IRole_235f5d8e] = None,
|
|
50325
50456
|
cluster_identifier: typing.Optional[builtins.str] = None,
|
|
50457
|
+
cluster_scailability_type: typing.Optional[ClusterScailabilityType] = None,
|
|
50326
50458
|
copy_tags_to_snapshot: typing.Optional[builtins.bool] = None,
|
|
50327
50459
|
credentials: typing.Optional[Credentials] = None,
|
|
50328
50460
|
default_database_name: typing.Optional[builtins.str] = None,
|