aws-cdk-lib 2.136.1__py3-none-any.whl → 2.138.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 +8 -0
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.136.1.jsii.tgz → aws-cdk-lib@2.138.0.jsii.tgz} +0 -0
- aws_cdk/assertions/__init__.py +152 -5
- aws_cdk/aws_amplify/__init__.py +29 -113
- aws_cdk/aws_appconfig/__init__.py +26 -33
- aws_cdk/aws_apprunner/__init__.py +5 -2
- aws_cdk/aws_appsync/__init__.py +400 -13
- aws_cdk/aws_aps/__init__.py +64 -47
- aws_cdk/aws_b2bi/__init__.py +2 -6
- aws_cdk/aws_backup/__init__.py +27 -23
- aws_cdk/aws_batch/__init__.py +103 -0
- aws_cdk/aws_bcmdataexports/__init__.py +1114 -0
- aws_cdk/aws_chatbot/__init__.py +6 -4
- aws_cdk/aws_cleanrooms/__init__.py +526 -3
- aws_cdk/aws_cleanroomsml/__init__.py +960 -0
- aws_cdk/aws_cloudfront/__init__.py +196 -15
- aws_cdk/aws_cloudtrail/__init__.py +10 -10
- aws_cdk/aws_cloudwatch/__init__.py +124 -8
- aws_cdk/aws_codebuild/__init__.py +27 -22
- aws_cdk/aws_codeconnections/__init__.py +435 -0
- aws_cdk/aws_cognito/__init__.py +175 -79
- aws_cdk/aws_deadline/__init__.py +5394 -0
- aws_cdk/aws_ec2/__init__.py +379 -173
- aws_cdk/aws_ecr_assets/__init__.py +3 -4
- aws_cdk/aws_ecs/__init__.py +240 -1
- aws_cdk/aws_efs/__init__.py +2 -2
- aws_cdk/aws_elasticache/__init__.py +86 -32
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +275 -5
- aws_cdk/aws_emr/__init__.py +2 -2
- aws_cdk/aws_entityresolution/__init__.py +1982 -773
- aws_cdk/aws_globalaccelerator/__init__.py +443 -0
- aws_cdk/aws_iam/__init__.py +24 -40
- aws_cdk/aws_internetmonitor/__init__.py +14 -6
- aws_cdk/aws_ivs/__init__.py +1273 -71
- aws_cdk/aws_kms/__init__.py +8 -13
- aws_cdk/aws_mediatailor/__init__.py +41 -0
- aws_cdk/aws_personalize/__init__.py +8 -6
- aws_cdk/aws_pinpoint/__init__.py +5 -3
- aws_cdk/aws_pipes/__init__.py +5 -1
- aws_cdk/aws_quicksight/__init__.py +12 -6
- aws_cdk/aws_rds/__init__.py +355 -85
- aws_cdk/aws_route53/__init__.py +591 -18
- aws_cdk/aws_s3_deployment/__init__.py +84 -7
- aws_cdk/aws_sagemaker/__init__.py +233 -2
- aws_cdk/aws_securityhub/__init__.py +4940 -102
- aws_cdk/aws_securitylake/__init__.py +1237 -55
- aws_cdk/aws_sns/__init__.py +183 -4
- aws_cdk/aws_ssmcontacts/__init__.py +11 -4
- aws_cdk/aws_stepfunctions/__init__.py +8 -16
- aws_cdk/aws_stepfunctions_tasks/__init__.py +676 -1
- aws_cdk/aws_transfer/__init__.py +4 -4
- aws_cdk/aws_verifiedpermissions/__init__.py +114 -37
- aws_cdk/aws_workspacesthinclient/__init__.py +8 -8
- aws_cdk/custom_resources/__init__.py +248 -26
- {aws_cdk_lib-2.136.1.dist-info → aws_cdk_lib-2.138.0.dist-info}/METADATA +3 -3
- {aws_cdk_lib-2.136.1.dist-info → aws_cdk_lib-2.138.0.dist-info}/RECORD +61 -57
- {aws_cdk_lib-2.136.1.dist-info → aws_cdk_lib-2.138.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.136.1.dist-info → aws_cdk_lib-2.138.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.136.1.dist-info → aws_cdk_lib-2.138.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.136.1.dist-info → aws_cdk_lib-2.138.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_rds/__init__.py
CHANGED
|
@@ -2573,22 +2573,67 @@ class AuroraPostgresClusterEngineProps:
|
|
|
2573
2573
|
|
|
2574
2574
|
Example::
|
|
2575
2575
|
|
|
2576
|
-
#
|
|
2576
|
+
# Build a data source for AppSync to access the database.
|
|
2577
|
+
# api: appsync.GraphqlApi
|
|
2578
|
+
# Create username and password secret for DB Cluster
|
|
2579
|
+
secret = rds.DatabaseSecret(self, "AuroraSecret",
|
|
2580
|
+
username="clusteradmin"
|
|
2581
|
+
)
|
|
2577
2582
|
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
),
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2583
|
+
# The VPC to place the cluster in
|
|
2584
|
+
vpc = ec2.Vpc(self, "AuroraVpc")
|
|
2585
|
+
|
|
2586
|
+
# Create the serverless cluster, provide all values needed to customise the database.
|
|
2587
|
+
cluster = rds.DatabaseCluster(self, "AuroraClusterV2",
|
|
2588
|
+
engine=rds.DatabaseClusterEngine.aurora_postgres(version=rds.AuroraPostgresEngineVersion.VER_15_5),
|
|
2589
|
+
credentials={"username": "clusteradmin"},
|
|
2590
|
+
cluster_identifier="db-endpoint-test",
|
|
2591
|
+
writer=rds.ClusterInstance.serverless_v2("writer"),
|
|
2592
|
+
serverless_v2_min_capacity=2,
|
|
2593
|
+
serverless_v2_max_capacity=10,
|
|
2594
|
+
vpc=vpc,
|
|
2595
|
+
default_database_name="demos",
|
|
2596
|
+
enable_data_api=True
|
|
2597
|
+
)
|
|
2598
|
+
rds_dS = api.add_rds_data_source_v2("rds", cluster, secret, "demos")
|
|
2599
|
+
|
|
2600
|
+
# Set up a resolver for an RDS query.
|
|
2601
|
+
rds_dS.create_resolver("QueryGetDemosRdsResolver",
|
|
2602
|
+
type_name="Query",
|
|
2603
|
+
field_name="getDemosRds",
|
|
2604
|
+
request_mapping_template=appsync.MappingTemplate.from_string("""
|
|
2605
|
+
{
|
|
2606
|
+
"version": "2018-05-29",
|
|
2607
|
+
"statements": [
|
|
2608
|
+
"SELECT * FROM demos"
|
|
2609
|
+
]
|
|
2610
|
+
}
|
|
2611
|
+
"""),
|
|
2612
|
+
response_mapping_template=appsync.MappingTemplate.from_string("""
|
|
2613
|
+
$utils.toJson($utils.rds.toJsonObject($ctx.result)[0])
|
|
2614
|
+
""")
|
|
2615
|
+
)
|
|
2616
|
+
|
|
2617
|
+
# Set up a resolver for an RDS mutation.
|
|
2618
|
+
rds_dS.create_resolver("MutationAddDemoRdsResolver",
|
|
2619
|
+
type_name="Mutation",
|
|
2620
|
+
field_name="addDemoRds",
|
|
2621
|
+
request_mapping_template=appsync.MappingTemplate.from_string("""
|
|
2622
|
+
{
|
|
2623
|
+
"version": "2018-05-29",
|
|
2624
|
+
"statements": [
|
|
2625
|
+
"INSERT INTO demos VALUES (:id, :version)",
|
|
2626
|
+
"SELECT * WHERE id = :id"
|
|
2627
|
+
],
|
|
2628
|
+
"variableMap": {
|
|
2629
|
+
":id": $util.toJson($util.autoId()),
|
|
2630
|
+
":version": $util.toJson($ctx.args.version)
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
"""),
|
|
2634
|
+
response_mapping_template=appsync.MappingTemplate.from_string("""
|
|
2635
|
+
$utils.toJson($utils.rds.toJsonObject($ctx.result)[1][0])
|
|
2636
|
+
""")
|
|
2592
2637
|
)
|
|
2593
2638
|
'''
|
|
2594
2639
|
if __debug__:
|
|
@@ -2699,22 +2744,67 @@ class AuroraPostgresEngineVersion(
|
|
|
2699
2744
|
|
|
2700
2745
|
Example::
|
|
2701
2746
|
|
|
2702
|
-
#
|
|
2747
|
+
# Build a data source for AppSync to access the database.
|
|
2748
|
+
# api: appsync.GraphqlApi
|
|
2749
|
+
# Create username and password secret for DB Cluster
|
|
2750
|
+
secret = rds.DatabaseSecret(self, "AuroraSecret",
|
|
2751
|
+
username="clusteradmin"
|
|
2752
|
+
)
|
|
2703
2753
|
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
),
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2754
|
+
# The VPC to place the cluster in
|
|
2755
|
+
vpc = ec2.Vpc(self, "AuroraVpc")
|
|
2756
|
+
|
|
2757
|
+
# Create the serverless cluster, provide all values needed to customise the database.
|
|
2758
|
+
cluster = rds.DatabaseCluster(self, "AuroraClusterV2",
|
|
2759
|
+
engine=rds.DatabaseClusterEngine.aurora_postgres(version=rds.AuroraPostgresEngineVersion.VER_15_5),
|
|
2760
|
+
credentials={"username": "clusteradmin"},
|
|
2761
|
+
cluster_identifier="db-endpoint-test",
|
|
2762
|
+
writer=rds.ClusterInstance.serverless_v2("writer"),
|
|
2763
|
+
serverless_v2_min_capacity=2,
|
|
2764
|
+
serverless_v2_max_capacity=10,
|
|
2765
|
+
vpc=vpc,
|
|
2766
|
+
default_database_name="demos",
|
|
2767
|
+
enable_data_api=True
|
|
2768
|
+
)
|
|
2769
|
+
rds_dS = api.add_rds_data_source_v2("rds", cluster, secret, "demos")
|
|
2770
|
+
|
|
2771
|
+
# Set up a resolver for an RDS query.
|
|
2772
|
+
rds_dS.create_resolver("QueryGetDemosRdsResolver",
|
|
2773
|
+
type_name="Query",
|
|
2774
|
+
field_name="getDemosRds",
|
|
2775
|
+
request_mapping_template=appsync.MappingTemplate.from_string("""
|
|
2776
|
+
{
|
|
2777
|
+
"version": "2018-05-29",
|
|
2778
|
+
"statements": [
|
|
2779
|
+
"SELECT * FROM demos"
|
|
2780
|
+
]
|
|
2781
|
+
}
|
|
2782
|
+
"""),
|
|
2783
|
+
response_mapping_template=appsync.MappingTemplate.from_string("""
|
|
2784
|
+
$utils.toJson($utils.rds.toJsonObject($ctx.result)[0])
|
|
2785
|
+
""")
|
|
2786
|
+
)
|
|
2787
|
+
|
|
2788
|
+
# Set up a resolver for an RDS mutation.
|
|
2789
|
+
rds_dS.create_resolver("MutationAddDemoRdsResolver",
|
|
2790
|
+
type_name="Mutation",
|
|
2791
|
+
field_name="addDemoRds",
|
|
2792
|
+
request_mapping_template=appsync.MappingTemplate.from_string("""
|
|
2793
|
+
{
|
|
2794
|
+
"version": "2018-05-29",
|
|
2795
|
+
"statements": [
|
|
2796
|
+
"INSERT INTO demos VALUES (:id, :version)",
|
|
2797
|
+
"SELECT * WHERE id = :id"
|
|
2798
|
+
],
|
|
2799
|
+
"variableMap": {
|
|
2800
|
+
":id": $util.toJson($util.autoId()),
|
|
2801
|
+
":version": $util.toJson($ctx.args.version)
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
"""),
|
|
2805
|
+
response_mapping_template=appsync.MappingTemplate.from_string("""
|
|
2806
|
+
$utils.toJson($utils.rds.toJsonObject($ctx.result)[1][0])
|
|
2807
|
+
""")
|
|
2718
2808
|
)
|
|
2719
2809
|
'''
|
|
2720
2810
|
|
|
@@ -3623,20 +3713,23 @@ class CfnCustomDBEngineVersion(
|
|
|
3623
3713
|
from aws_cdk import aws_rds as rds
|
|
3624
3714
|
|
|
3625
3715
|
cfn_custom_dBEngine_version = rds.CfnCustomDBEngineVersion(self, "MyCfnCustomDBEngineVersion",
|
|
3626
|
-
database_installation_files_s3_bucket_name="databaseInstallationFilesS3BucketName",
|
|
3627
3716
|
engine="engine",
|
|
3628
3717
|
engine_version="engineVersion",
|
|
3629
3718
|
|
|
3630
3719
|
# the properties below are optional
|
|
3720
|
+
database_installation_files_s3_bucket_name="databaseInstallationFilesS3BucketName",
|
|
3631
3721
|
database_installation_files_s3_prefix="databaseInstallationFilesS3Prefix",
|
|
3632
3722
|
description="description",
|
|
3723
|
+
image_id="imageId",
|
|
3633
3724
|
kms_key_id="kmsKeyId",
|
|
3634
3725
|
manifest="manifest",
|
|
3726
|
+
source_custom_db_engine_version_identifier="sourceCustomDbEngineVersionIdentifier",
|
|
3635
3727
|
status="status",
|
|
3636
3728
|
tags=[CfnTag(
|
|
3637
3729
|
key="key",
|
|
3638
3730
|
value="value"
|
|
3639
|
-
)]
|
|
3731
|
+
)],
|
|
3732
|
+
use_aws_provided_latest_image=False
|
|
3640
3733
|
)
|
|
3641
3734
|
'''
|
|
3642
3735
|
|
|
@@ -3645,43 +3738,52 @@ class CfnCustomDBEngineVersion(
|
|
|
3645
3738
|
scope: _constructs_77d1e7e8.Construct,
|
|
3646
3739
|
id: builtins.str,
|
|
3647
3740
|
*,
|
|
3648
|
-
database_installation_files_s3_bucket_name: builtins.str,
|
|
3649
3741
|
engine: builtins.str,
|
|
3650
3742
|
engine_version: builtins.str,
|
|
3743
|
+
database_installation_files_s3_bucket_name: typing.Optional[builtins.str] = None,
|
|
3651
3744
|
database_installation_files_s3_prefix: typing.Optional[builtins.str] = None,
|
|
3652
3745
|
description: typing.Optional[builtins.str] = None,
|
|
3746
|
+
image_id: typing.Optional[builtins.str] = None,
|
|
3653
3747
|
kms_key_id: typing.Optional[builtins.str] = None,
|
|
3654
3748
|
manifest: typing.Optional[builtins.str] = None,
|
|
3749
|
+
source_custom_db_engine_version_identifier: typing.Optional[builtins.str] = None,
|
|
3655
3750
|
status: typing.Optional[builtins.str] = None,
|
|
3656
3751
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3752
|
+
use_aws_provided_latest_image: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
3657
3753
|
) -> None:
|
|
3658
3754
|
'''
|
|
3659
3755
|
:param scope: Scope in which this resource is defined.
|
|
3660
3756
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
3661
|
-
:param database_installation_files_s3_bucket_name: The name of an Amazon S3 bucket that contains database installation files for your CEV. For example, a valid bucket name is ``my-custom-installation-files`` .
|
|
3662
3757
|
:param engine: The database engine to use for your custom engine version (CEV). Valid values: - ``custom-oracle-ee`` - ``custom-oracle-ee-cdb``
|
|
3663
3758
|
:param engine_version: The name of your CEV. The name format is ``major version.customized_string`` . For example, a valid CEV name is ``19.my_cev1`` . This setting is required for RDS Custom for Oracle, but optional for Amazon RDS. The combination of ``Engine`` and ``EngineVersion`` is unique per customer per Region. *Constraints:* Minimum length is 1. Maximum length is 60. *Pattern:* ``^[a-z0-9_.-]{1,60$`` }
|
|
3759
|
+
:param database_installation_files_s3_bucket_name: The name of an Amazon S3 bucket that contains database installation files for your CEV. For example, a valid bucket name is ``my-custom-installation-files`` .
|
|
3664
3760
|
:param database_installation_files_s3_prefix: The Amazon S3 directory that contains the database installation files for your CEV. For example, a valid bucket name is ``123456789012/cev1`` . If this setting isn't specified, no prefix is assumed.
|
|
3665
3761
|
:param description: An optional description of your CEV.
|
|
3762
|
+
:param image_id: A value that indicates the ID of the AMI.
|
|
3666
3763
|
:param kms_key_id: The AWS KMS key identifier for an encrypted CEV. A symmetric encryption KMS key is required for RDS Custom, but optional for Amazon RDS. If you have an existing symmetric encryption KMS key in your account, you can use it with RDS Custom. No further action is necessary. If you don't already have a symmetric encryption KMS key in your account, follow the instructions in `Creating a symmetric encryption KMS key <https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html#create-symmetric-cmk>`_ in the *AWS Key Management Service Developer Guide* . You can choose the same symmetric encryption key when you create a CEV and a DB instance, or choose different keys.
|
|
3667
3764
|
:param manifest: The CEV manifest, which is a JSON document that describes the installation .zip files stored in Amazon S3. Specify the name/value pairs in a file or a quoted string. RDS Custom applies the patches in the order in which they are listed. The following JSON fields are valid: - **MediaImportTemplateVersion** - Version of the CEV manifest. The date is in the format ``YYYY-MM-DD`` . - **databaseInstallationFileNames** - Ordered list of installation files for the CEV. - **opatchFileNames** - Ordered list of OPatch installers used for the Oracle DB engine. - **psuRuPatchFileNames** - The PSU and RU patches for this CEV. - **OtherPatchFileNames** - The patches that are not in the list of PSU and RU patches. Amazon RDS applies these patches after applying the PSU and RU patches. For more information, see `Creating the CEV manifest <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev.html#custom-cev.preparing.manifest>`_ in the *Amazon RDS User Guide* .
|
|
3765
|
+
:param source_custom_db_engine_version_identifier: The ARN of a CEV to use as a source for creating a new CEV. You can specify a different Amazon Machine Imagine (AMI) by using either ``Source`` or ``UseAwsProvidedLatestImage`` . You can't specify a different JSON manifest when you specify ``SourceCustomDbEngineVersionIdentifier`` .
|
|
3668
3766
|
:param status: A value that indicates the status of a custom engine version (CEV). Default: - "available"
|
|
3669
3767
|
:param tags: A list of tags. 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.*
|
|
3768
|
+
:param use_aws_provided_latest_image: Specifies whether to use the latest service-provided Amazon Machine Image (AMI) for the CEV. If you specify ``UseAwsProvidedLatestImage`` , you can't also specify ``ImageId`` .
|
|
3670
3769
|
'''
|
|
3671
3770
|
if __debug__:
|
|
3672
3771
|
type_hints = typing.get_type_hints(_typecheckingstub__dccc4ebf781452ad945a67eeaa182293b79bd42fee7658aaea830a59e6546b0b)
|
|
3673
3772
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
3674
3773
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
3675
3774
|
props = CfnCustomDBEngineVersionProps(
|
|
3676
|
-
database_installation_files_s3_bucket_name=database_installation_files_s3_bucket_name,
|
|
3677
3775
|
engine=engine,
|
|
3678
3776
|
engine_version=engine_version,
|
|
3777
|
+
database_installation_files_s3_bucket_name=database_installation_files_s3_bucket_name,
|
|
3679
3778
|
database_installation_files_s3_prefix=database_installation_files_s3_prefix,
|
|
3680
3779
|
description=description,
|
|
3780
|
+
image_id=image_id,
|
|
3681
3781
|
kms_key_id=kms_key_id,
|
|
3682
3782
|
manifest=manifest,
|
|
3783
|
+
source_custom_db_engine_version_identifier=source_custom_db_engine_version_identifier,
|
|
3683
3784
|
status=status,
|
|
3684
3785
|
tags=tags,
|
|
3786
|
+
use_aws_provided_latest_image=use_aws_provided_latest_image,
|
|
3685
3787
|
)
|
|
3686
3788
|
|
|
3687
3789
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
@@ -3736,19 +3838,6 @@ class CfnCustomDBEngineVersion(
|
|
|
3736
3838
|
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
3737
3839
|
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
3738
3840
|
|
|
3739
|
-
@builtins.property
|
|
3740
|
-
@jsii.member(jsii_name="databaseInstallationFilesS3BucketName")
|
|
3741
|
-
def database_installation_files_s3_bucket_name(self) -> builtins.str:
|
|
3742
|
-
'''The name of an Amazon S3 bucket that contains database installation files for your CEV.'''
|
|
3743
|
-
return typing.cast(builtins.str, jsii.get(self, "databaseInstallationFilesS3BucketName"))
|
|
3744
|
-
|
|
3745
|
-
@database_installation_files_s3_bucket_name.setter
|
|
3746
|
-
def database_installation_files_s3_bucket_name(self, value: builtins.str) -> None:
|
|
3747
|
-
if __debug__:
|
|
3748
|
-
type_hints = typing.get_type_hints(_typecheckingstub__e8dcd4aecfb92c6617a76401829247508a5196d1219bdf3c496c1eef202e0c37)
|
|
3749
|
-
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3750
|
-
jsii.set(self, "databaseInstallationFilesS3BucketName", value)
|
|
3751
|
-
|
|
3752
3841
|
@builtins.property
|
|
3753
3842
|
@jsii.member(jsii_name="engine")
|
|
3754
3843
|
def engine(self) -> builtins.str:
|
|
@@ -3775,6 +3864,24 @@ class CfnCustomDBEngineVersion(
|
|
|
3775
3864
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3776
3865
|
jsii.set(self, "engineVersion", value)
|
|
3777
3866
|
|
|
3867
|
+
@builtins.property
|
|
3868
|
+
@jsii.member(jsii_name="databaseInstallationFilesS3BucketName")
|
|
3869
|
+
def database_installation_files_s3_bucket_name(
|
|
3870
|
+
self,
|
|
3871
|
+
) -> typing.Optional[builtins.str]:
|
|
3872
|
+
'''The name of an Amazon S3 bucket that contains database installation files for your CEV.'''
|
|
3873
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "databaseInstallationFilesS3BucketName"))
|
|
3874
|
+
|
|
3875
|
+
@database_installation_files_s3_bucket_name.setter
|
|
3876
|
+
def database_installation_files_s3_bucket_name(
|
|
3877
|
+
self,
|
|
3878
|
+
value: typing.Optional[builtins.str],
|
|
3879
|
+
) -> None:
|
|
3880
|
+
if __debug__:
|
|
3881
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e8dcd4aecfb92c6617a76401829247508a5196d1219bdf3c496c1eef202e0c37)
|
|
3882
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3883
|
+
jsii.set(self, "databaseInstallationFilesS3BucketName", value)
|
|
3884
|
+
|
|
3778
3885
|
@builtins.property
|
|
3779
3886
|
@jsii.member(jsii_name="databaseInstallationFilesS3Prefix")
|
|
3780
3887
|
def database_installation_files_s3_prefix(self) -> typing.Optional[builtins.str]:
|
|
@@ -3804,6 +3911,19 @@ class CfnCustomDBEngineVersion(
|
|
|
3804
3911
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3805
3912
|
jsii.set(self, "description", value)
|
|
3806
3913
|
|
|
3914
|
+
@builtins.property
|
|
3915
|
+
@jsii.member(jsii_name="imageId")
|
|
3916
|
+
def image_id(self) -> typing.Optional[builtins.str]:
|
|
3917
|
+
'''A value that indicates the ID of the AMI.'''
|
|
3918
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "imageId"))
|
|
3919
|
+
|
|
3920
|
+
@image_id.setter
|
|
3921
|
+
def image_id(self, value: typing.Optional[builtins.str]) -> None:
|
|
3922
|
+
if __debug__:
|
|
3923
|
+
type_hints = typing.get_type_hints(_typecheckingstub__573de89cab865fb2fe6437920ada3b601ffcf5832b228e0d126bedaf494c57eb)
|
|
3924
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3925
|
+
jsii.set(self, "imageId", value)
|
|
3926
|
+
|
|
3807
3927
|
@builtins.property
|
|
3808
3928
|
@jsii.member(jsii_name="kmsKeyId")
|
|
3809
3929
|
def kms_key_id(self) -> typing.Optional[builtins.str]:
|
|
@@ -3830,6 +3950,24 @@ class CfnCustomDBEngineVersion(
|
|
|
3830
3950
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3831
3951
|
jsii.set(self, "manifest", value)
|
|
3832
3952
|
|
|
3953
|
+
@builtins.property
|
|
3954
|
+
@jsii.member(jsii_name="sourceCustomDbEngineVersionIdentifier")
|
|
3955
|
+
def source_custom_db_engine_version_identifier(
|
|
3956
|
+
self,
|
|
3957
|
+
) -> typing.Optional[builtins.str]:
|
|
3958
|
+
'''The ARN of a CEV to use as a source for creating a new CEV.'''
|
|
3959
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "sourceCustomDbEngineVersionIdentifier"))
|
|
3960
|
+
|
|
3961
|
+
@source_custom_db_engine_version_identifier.setter
|
|
3962
|
+
def source_custom_db_engine_version_identifier(
|
|
3963
|
+
self,
|
|
3964
|
+
value: typing.Optional[builtins.str],
|
|
3965
|
+
) -> None:
|
|
3966
|
+
if __debug__:
|
|
3967
|
+
type_hints = typing.get_type_hints(_typecheckingstub__ab74f194180555de35de6a9023fe9e2d2972ffd40051f7cc505df6dd0438f8d6)
|
|
3968
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3969
|
+
jsii.set(self, "sourceCustomDbEngineVersionIdentifier", value)
|
|
3970
|
+
|
|
3833
3971
|
@builtins.property
|
|
3834
3972
|
@jsii.member(jsii_name="status")
|
|
3835
3973
|
def status(self) -> typing.Optional[builtins.str]:
|
|
@@ -3856,47 +3994,74 @@ class CfnCustomDBEngineVersion(
|
|
|
3856
3994
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3857
3995
|
jsii.set(self, "tags", value)
|
|
3858
3996
|
|
|
3997
|
+
@builtins.property
|
|
3998
|
+
@jsii.member(jsii_name="useAwsProvidedLatestImage")
|
|
3999
|
+
def use_aws_provided_latest_image(
|
|
4000
|
+
self,
|
|
4001
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
4002
|
+
'''Specifies whether to use the latest service-provided Amazon Machine Image (AMI) for the CEV.'''
|
|
4003
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "useAwsProvidedLatestImage"))
|
|
4004
|
+
|
|
4005
|
+
@use_aws_provided_latest_image.setter
|
|
4006
|
+
def use_aws_provided_latest_image(
|
|
4007
|
+
self,
|
|
4008
|
+
value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
|
|
4009
|
+
) -> None:
|
|
4010
|
+
if __debug__:
|
|
4011
|
+
type_hints = typing.get_type_hints(_typecheckingstub__30204c42eef4323c823e84f7a43420a689740a78fa5382e0d646d46b0102a5c1)
|
|
4012
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
4013
|
+
jsii.set(self, "useAwsProvidedLatestImage", value)
|
|
4014
|
+
|
|
3859
4015
|
|
|
3860
4016
|
@jsii.data_type(
|
|
3861
4017
|
jsii_type="aws-cdk-lib.aws_rds.CfnCustomDBEngineVersionProps",
|
|
3862
4018
|
jsii_struct_bases=[],
|
|
3863
4019
|
name_mapping={
|
|
3864
|
-
"database_installation_files_s3_bucket_name": "databaseInstallationFilesS3BucketName",
|
|
3865
4020
|
"engine": "engine",
|
|
3866
4021
|
"engine_version": "engineVersion",
|
|
4022
|
+
"database_installation_files_s3_bucket_name": "databaseInstallationFilesS3BucketName",
|
|
3867
4023
|
"database_installation_files_s3_prefix": "databaseInstallationFilesS3Prefix",
|
|
3868
4024
|
"description": "description",
|
|
4025
|
+
"image_id": "imageId",
|
|
3869
4026
|
"kms_key_id": "kmsKeyId",
|
|
3870
4027
|
"manifest": "manifest",
|
|
4028
|
+
"source_custom_db_engine_version_identifier": "sourceCustomDbEngineVersionIdentifier",
|
|
3871
4029
|
"status": "status",
|
|
3872
4030
|
"tags": "tags",
|
|
4031
|
+
"use_aws_provided_latest_image": "useAwsProvidedLatestImage",
|
|
3873
4032
|
},
|
|
3874
4033
|
)
|
|
3875
4034
|
class CfnCustomDBEngineVersionProps:
|
|
3876
4035
|
def __init__(
|
|
3877
4036
|
self,
|
|
3878
4037
|
*,
|
|
3879
|
-
database_installation_files_s3_bucket_name: builtins.str,
|
|
3880
4038
|
engine: builtins.str,
|
|
3881
4039
|
engine_version: builtins.str,
|
|
4040
|
+
database_installation_files_s3_bucket_name: typing.Optional[builtins.str] = None,
|
|
3882
4041
|
database_installation_files_s3_prefix: typing.Optional[builtins.str] = None,
|
|
3883
4042
|
description: typing.Optional[builtins.str] = None,
|
|
4043
|
+
image_id: typing.Optional[builtins.str] = None,
|
|
3884
4044
|
kms_key_id: typing.Optional[builtins.str] = None,
|
|
3885
4045
|
manifest: typing.Optional[builtins.str] = None,
|
|
4046
|
+
source_custom_db_engine_version_identifier: typing.Optional[builtins.str] = None,
|
|
3886
4047
|
status: typing.Optional[builtins.str] = None,
|
|
3887
4048
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4049
|
+
use_aws_provided_latest_image: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
3888
4050
|
) -> None:
|
|
3889
4051
|
'''Properties for defining a ``CfnCustomDBEngineVersion``.
|
|
3890
4052
|
|
|
3891
|
-
:param database_installation_files_s3_bucket_name: The name of an Amazon S3 bucket that contains database installation files for your CEV. For example, a valid bucket name is ``my-custom-installation-files`` .
|
|
3892
4053
|
:param engine: The database engine to use for your custom engine version (CEV). Valid values: - ``custom-oracle-ee`` - ``custom-oracle-ee-cdb``
|
|
3893
4054
|
:param engine_version: The name of your CEV. The name format is ``major version.customized_string`` . For example, a valid CEV name is ``19.my_cev1`` . This setting is required for RDS Custom for Oracle, but optional for Amazon RDS. The combination of ``Engine`` and ``EngineVersion`` is unique per customer per Region. *Constraints:* Minimum length is 1. Maximum length is 60. *Pattern:* ``^[a-z0-9_.-]{1,60$`` }
|
|
4055
|
+
:param database_installation_files_s3_bucket_name: The name of an Amazon S3 bucket that contains database installation files for your CEV. For example, a valid bucket name is ``my-custom-installation-files`` .
|
|
3894
4056
|
:param database_installation_files_s3_prefix: The Amazon S3 directory that contains the database installation files for your CEV. For example, a valid bucket name is ``123456789012/cev1`` . If this setting isn't specified, no prefix is assumed.
|
|
3895
4057
|
:param description: An optional description of your CEV.
|
|
4058
|
+
:param image_id: A value that indicates the ID of the AMI.
|
|
3896
4059
|
:param kms_key_id: The AWS KMS key identifier for an encrypted CEV. A symmetric encryption KMS key is required for RDS Custom, but optional for Amazon RDS. If you have an existing symmetric encryption KMS key in your account, you can use it with RDS Custom. No further action is necessary. If you don't already have a symmetric encryption KMS key in your account, follow the instructions in `Creating a symmetric encryption KMS key <https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html#create-symmetric-cmk>`_ in the *AWS Key Management Service Developer Guide* . You can choose the same symmetric encryption key when you create a CEV and a DB instance, or choose different keys.
|
|
3897
4060
|
:param manifest: The CEV manifest, which is a JSON document that describes the installation .zip files stored in Amazon S3. Specify the name/value pairs in a file or a quoted string. RDS Custom applies the patches in the order in which they are listed. The following JSON fields are valid: - **MediaImportTemplateVersion** - Version of the CEV manifest. The date is in the format ``YYYY-MM-DD`` . - **databaseInstallationFileNames** - Ordered list of installation files for the CEV. - **opatchFileNames** - Ordered list of OPatch installers used for the Oracle DB engine. - **psuRuPatchFileNames** - The PSU and RU patches for this CEV. - **OtherPatchFileNames** - The patches that are not in the list of PSU and RU patches. Amazon RDS applies these patches after applying the PSU and RU patches. For more information, see `Creating the CEV manifest <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/custom-cev.html#custom-cev.preparing.manifest>`_ in the *Amazon RDS User Guide* .
|
|
4061
|
+
:param source_custom_db_engine_version_identifier: The ARN of a CEV to use as a source for creating a new CEV. You can specify a different Amazon Machine Imagine (AMI) by using either ``Source`` or ``UseAwsProvidedLatestImage`` . You can't specify a different JSON manifest when you specify ``SourceCustomDbEngineVersionIdentifier`` .
|
|
3898
4062
|
:param status: A value that indicates the status of a custom engine version (CEV). Default: - "available"
|
|
3899
4063
|
:param tags: A list of tags. 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.*
|
|
4064
|
+
:param use_aws_provided_latest_image: Specifies whether to use the latest service-provided Amazon Machine Image (AMI) for the CEV. If you specify ``UseAwsProvidedLatestImage`` , you can't also specify ``ImageId`` .
|
|
3900
4065
|
|
|
3901
4066
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-customdbengineversion.html
|
|
3902
4067
|
:exampleMetadata: fixture=_generated
|
|
@@ -3908,62 +4073,63 @@ class CfnCustomDBEngineVersionProps:
|
|
|
3908
4073
|
from aws_cdk import aws_rds as rds
|
|
3909
4074
|
|
|
3910
4075
|
cfn_custom_dBEngine_version_props = rds.CfnCustomDBEngineVersionProps(
|
|
3911
|
-
database_installation_files_s3_bucket_name="databaseInstallationFilesS3BucketName",
|
|
3912
4076
|
engine="engine",
|
|
3913
4077
|
engine_version="engineVersion",
|
|
3914
4078
|
|
|
3915
4079
|
# the properties below are optional
|
|
4080
|
+
database_installation_files_s3_bucket_name="databaseInstallationFilesS3BucketName",
|
|
3916
4081
|
database_installation_files_s3_prefix="databaseInstallationFilesS3Prefix",
|
|
3917
4082
|
description="description",
|
|
4083
|
+
image_id="imageId",
|
|
3918
4084
|
kms_key_id="kmsKeyId",
|
|
3919
4085
|
manifest="manifest",
|
|
4086
|
+
source_custom_db_engine_version_identifier="sourceCustomDbEngineVersionIdentifier",
|
|
3920
4087
|
status="status",
|
|
3921
4088
|
tags=[CfnTag(
|
|
3922
4089
|
key="key",
|
|
3923
4090
|
value="value"
|
|
3924
|
-
)]
|
|
4091
|
+
)],
|
|
4092
|
+
use_aws_provided_latest_image=False
|
|
3925
4093
|
)
|
|
3926
4094
|
'''
|
|
3927
4095
|
if __debug__:
|
|
3928
4096
|
type_hints = typing.get_type_hints(_typecheckingstub__70c4d3797ab8093b0278a7f532fcb1c42c50e74a1c04dfe5259dbb57e7fe2191)
|
|
3929
|
-
check_type(argname="argument database_installation_files_s3_bucket_name", value=database_installation_files_s3_bucket_name, expected_type=type_hints["database_installation_files_s3_bucket_name"])
|
|
3930
4097
|
check_type(argname="argument engine", value=engine, expected_type=type_hints["engine"])
|
|
3931
4098
|
check_type(argname="argument engine_version", value=engine_version, expected_type=type_hints["engine_version"])
|
|
4099
|
+
check_type(argname="argument database_installation_files_s3_bucket_name", value=database_installation_files_s3_bucket_name, expected_type=type_hints["database_installation_files_s3_bucket_name"])
|
|
3932
4100
|
check_type(argname="argument database_installation_files_s3_prefix", value=database_installation_files_s3_prefix, expected_type=type_hints["database_installation_files_s3_prefix"])
|
|
3933
4101
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
4102
|
+
check_type(argname="argument image_id", value=image_id, expected_type=type_hints["image_id"])
|
|
3934
4103
|
check_type(argname="argument kms_key_id", value=kms_key_id, expected_type=type_hints["kms_key_id"])
|
|
3935
4104
|
check_type(argname="argument manifest", value=manifest, expected_type=type_hints["manifest"])
|
|
4105
|
+
check_type(argname="argument source_custom_db_engine_version_identifier", value=source_custom_db_engine_version_identifier, expected_type=type_hints["source_custom_db_engine_version_identifier"])
|
|
3936
4106
|
check_type(argname="argument status", value=status, expected_type=type_hints["status"])
|
|
3937
4107
|
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
4108
|
+
check_type(argname="argument use_aws_provided_latest_image", value=use_aws_provided_latest_image, expected_type=type_hints["use_aws_provided_latest_image"])
|
|
3938
4109
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3939
|
-
"database_installation_files_s3_bucket_name": database_installation_files_s3_bucket_name,
|
|
3940
4110
|
"engine": engine,
|
|
3941
4111
|
"engine_version": engine_version,
|
|
3942
4112
|
}
|
|
4113
|
+
if database_installation_files_s3_bucket_name is not None:
|
|
4114
|
+
self._values["database_installation_files_s3_bucket_name"] = database_installation_files_s3_bucket_name
|
|
3943
4115
|
if database_installation_files_s3_prefix is not None:
|
|
3944
4116
|
self._values["database_installation_files_s3_prefix"] = database_installation_files_s3_prefix
|
|
3945
4117
|
if description is not None:
|
|
3946
4118
|
self._values["description"] = description
|
|
4119
|
+
if image_id is not None:
|
|
4120
|
+
self._values["image_id"] = image_id
|
|
3947
4121
|
if kms_key_id is not None:
|
|
3948
4122
|
self._values["kms_key_id"] = kms_key_id
|
|
3949
4123
|
if manifest is not None:
|
|
3950
4124
|
self._values["manifest"] = manifest
|
|
4125
|
+
if source_custom_db_engine_version_identifier is not None:
|
|
4126
|
+
self._values["source_custom_db_engine_version_identifier"] = source_custom_db_engine_version_identifier
|
|
3951
4127
|
if status is not None:
|
|
3952
4128
|
self._values["status"] = status
|
|
3953
4129
|
if tags is not None:
|
|
3954
4130
|
self._values["tags"] = tags
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
def database_installation_files_s3_bucket_name(self) -> builtins.str:
|
|
3958
|
-
'''The name of an Amazon S3 bucket that contains database installation files for your CEV.
|
|
3959
|
-
|
|
3960
|
-
For example, a valid bucket name is ``my-custom-installation-files`` .
|
|
3961
|
-
|
|
3962
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-customdbengineversion.html#cfn-rds-customdbengineversion-databaseinstallationfiless3bucketname
|
|
3963
|
-
'''
|
|
3964
|
-
result = self._values.get("database_installation_files_s3_bucket_name")
|
|
3965
|
-
assert result is not None, "Required property 'database_installation_files_s3_bucket_name' is missing"
|
|
3966
|
-
return typing.cast(builtins.str, result)
|
|
4131
|
+
if use_aws_provided_latest_image is not None:
|
|
4132
|
+
self._values["use_aws_provided_latest_image"] = use_aws_provided_latest_image
|
|
3967
4133
|
|
|
3968
4134
|
@builtins.property
|
|
3969
4135
|
def engine(self) -> builtins.str:
|
|
@@ -3996,6 +4162,19 @@ class CfnCustomDBEngineVersionProps:
|
|
|
3996
4162
|
assert result is not None, "Required property 'engine_version' is missing"
|
|
3997
4163
|
return typing.cast(builtins.str, result)
|
|
3998
4164
|
|
|
4165
|
+
@builtins.property
|
|
4166
|
+
def database_installation_files_s3_bucket_name(
|
|
4167
|
+
self,
|
|
4168
|
+
) -> typing.Optional[builtins.str]:
|
|
4169
|
+
'''The name of an Amazon S3 bucket that contains database installation files for your CEV.
|
|
4170
|
+
|
|
4171
|
+
For example, a valid bucket name is ``my-custom-installation-files`` .
|
|
4172
|
+
|
|
4173
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-customdbengineversion.html#cfn-rds-customdbengineversion-databaseinstallationfiless3bucketname
|
|
4174
|
+
'''
|
|
4175
|
+
result = self._values.get("database_installation_files_s3_bucket_name")
|
|
4176
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
4177
|
+
|
|
3999
4178
|
@builtins.property
|
|
4000
4179
|
def database_installation_files_s3_prefix(self) -> typing.Optional[builtins.str]:
|
|
4001
4180
|
'''The Amazon S3 directory that contains the database installation files for your CEV.
|
|
@@ -4016,6 +4195,15 @@ class CfnCustomDBEngineVersionProps:
|
|
|
4016
4195
|
result = self._values.get("description")
|
|
4017
4196
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
4018
4197
|
|
|
4198
|
+
@builtins.property
|
|
4199
|
+
def image_id(self) -> typing.Optional[builtins.str]:
|
|
4200
|
+
'''A value that indicates the ID of the AMI.
|
|
4201
|
+
|
|
4202
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-customdbengineversion.html#cfn-rds-customdbengineversion-imageid
|
|
4203
|
+
'''
|
|
4204
|
+
result = self._values.get("image_id")
|
|
4205
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
4206
|
+
|
|
4019
4207
|
@builtins.property
|
|
4020
4208
|
def kms_key_id(self) -> typing.Optional[builtins.str]:
|
|
4021
4209
|
'''The AWS KMS key identifier for an encrypted CEV.
|
|
@@ -4050,6 +4238,19 @@ class CfnCustomDBEngineVersionProps:
|
|
|
4050
4238
|
result = self._values.get("manifest")
|
|
4051
4239
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
4052
4240
|
|
|
4241
|
+
@builtins.property
|
|
4242
|
+
def source_custom_db_engine_version_identifier(
|
|
4243
|
+
self,
|
|
4244
|
+
) -> typing.Optional[builtins.str]:
|
|
4245
|
+
'''The ARN of a CEV to use as a source for creating a new CEV.
|
|
4246
|
+
|
|
4247
|
+
You can specify a different Amazon Machine Imagine (AMI) by using either ``Source`` or ``UseAwsProvidedLatestImage`` . You can't specify a different JSON manifest when you specify ``SourceCustomDbEngineVersionIdentifier`` .
|
|
4248
|
+
|
|
4249
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-customdbengineversion.html#cfn-rds-customdbengineversion-sourcecustomdbengineversionidentifier
|
|
4250
|
+
'''
|
|
4251
|
+
result = self._values.get("source_custom_db_engine_version_identifier")
|
|
4252
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
4253
|
+
|
|
4053
4254
|
@builtins.property
|
|
4054
4255
|
def status(self) -> typing.Optional[builtins.str]:
|
|
4055
4256
|
'''A value that indicates the status of a custom engine version (CEV).
|
|
@@ -4072,6 +4273,19 @@ class CfnCustomDBEngineVersionProps:
|
|
|
4072
4273
|
result = self._values.get("tags")
|
|
4073
4274
|
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
|
|
4074
4275
|
|
|
4276
|
+
@builtins.property
|
|
4277
|
+
def use_aws_provided_latest_image(
|
|
4278
|
+
self,
|
|
4279
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
4280
|
+
'''Specifies whether to use the latest service-provided Amazon Machine Image (AMI) for the CEV.
|
|
4281
|
+
|
|
4282
|
+
If you specify ``UseAwsProvidedLatestImage`` , you can't also specify ``ImageId`` .
|
|
4283
|
+
|
|
4284
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-customdbengineversion.html#cfn-rds-customdbengineversion-useawsprovidedlatestimage
|
|
4285
|
+
'''
|
|
4286
|
+
result = self._values.get("use_aws_provided_latest_image")
|
|
4287
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
4288
|
+
|
|
4075
4289
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
4076
4290
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
4077
4291
|
|
|
@@ -4285,7 +4499,7 @@ class CfnDBCluster(
|
|
|
4285
4499
|
:param db_cluster_identifier: The DB cluster identifier. This parameter is stored as a lowercase string. Constraints: - Must contain from 1 to 63 letters, numbers, or hyphens. - First character must be a letter. - Can't end with a hyphen or contain two consecutive hyphens. Example: ``my-cluster1`` Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
4286
4500
|
:param db_cluster_instance_class: The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example ``db.m6gd.xlarge`` . Not all DB instance classes are available in all AWS Regions , or for all database engines. For the full list of DB instance classes and availability for your engine, see `DB instance class <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html>`_ in the *Amazon RDS User Guide* . This setting is required to create a Multi-AZ DB cluster. Valid for Cluster Type: Multi-AZ DB clusters only
|
|
4287
4501
|
:param db_cluster_parameter_group_name: The name of the DB cluster parameter group to associate with this DB cluster. .. epigraph:: If you apply a parameter group to an existing DB cluster, then its DB instances might need to reboot. This can result in an outage while the DB instances are rebooting. If you apply a change to parameter group associated with a stopped DB cluster, then the update stack waits until the DB cluster is started. To list all of the available DB cluster parameter group names, use the following command: ``aws rds describe-db-cluster-parameter-groups --query "DBClusterParameterGroups[].DBClusterParameterGroupName" --output text`` Valid for: Aurora DB clusters and Multi-AZ DB clusters Default: - "default.aurora5.6"
|
|
4288
|
-
:param db_instance_parameter_group_name: The name of the DB parameter group to apply to all instances of the DB cluster. .. epigraph:: When you apply a parameter group using the ``DBInstanceParameterGroupName`` parameter, the DB cluster isn't rebooted automatically. Also, parameter changes are applied immediately rather than during the next maintenance window. Default: The existing name setting Constraints: - The DB parameter group must be in the same DB parameter group family as this DB cluster.
|
|
4502
|
+
:param db_instance_parameter_group_name: The name of the DB parameter group to apply to all instances of the DB cluster. .. epigraph:: When you apply a parameter group using the ``DBInstanceParameterGroupName`` parameter, the DB cluster isn't rebooted automatically. Also, parameter changes are applied immediately rather than during the next maintenance window. Valid for Cluster Type: Aurora DB clusters only Default: The existing name setting Constraints: - The DB parameter group must be in the same DB parameter group family as this DB cluster. - The ``DBInstanceParameterGroupName`` parameter is valid in combination with the ``AllowMajorVersionUpgrade`` parameter for a major version upgrade only.
|
|
4289
4503
|
:param db_subnet_group_name: A DB subnet group that you want to associate with this DB cluster. If you are restoring a DB cluster to a point in time with ``RestoreType`` set to ``copy-on-write`` , and don't specify a DB subnet group name, then the DB cluster is restored with a default DB subnet group. Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
4290
4504
|
:param db_system_id: Reserved for future use.
|
|
4291
4505
|
:param deletion_protection: A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled. Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
@@ -4296,7 +4510,7 @@ class CfnDBCluster(
|
|
|
4296
4510
|
:param enable_http_endpoint: Specifies whether to enable the HTTP endpoint for the DB cluster. By default, the HTTP endpoint isn't enabled. When enabled, the HTTP endpoint provides a connectionless web service API (RDS Data API) for running SQL queries on the DB cluster. You can also query your database from inside the RDS console with the RDS query editor. RDS Data API is supported with the following DB clusters: - Aurora PostgreSQL Serverless v2 and provisioned - Aurora PostgreSQL and Aurora MySQL Serverless v1 For more information, see `Using RDS Data API <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html>`_ in the *Amazon Aurora User Guide* . Valid for Cluster Type: Aurora DB clusters only
|
|
4297
4511
|
:param enable_iam_database_authentication: A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts. By default, mapping is disabled. For more information, see `IAM Database Authentication <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html>`_ in the *Amazon Aurora User Guide.* Valid for: Aurora DB clusters only
|
|
4298
4512
|
:param engine: The name of the database engine to be used for this DB cluster. Valid Values: - ``aurora-mysql`` - ``aurora-postgresql`` - ``mysql`` - ``postgres`` Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
4299
|
-
:param engine_mode: The DB engine mode of the DB cluster, either ``provisioned`` or ``serverless`` . The ``serverless`` engine mode only applies for Aurora Serverless v1 DB clusters. For information about limitations and requirements for Serverless DB clusters, see the following sections in the *Amazon Aurora User Guide* : - `Limitations of Aurora Serverless v1 <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations>`_ - `Requirements for Aurora Serverless v2 <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html>`_ Valid for Cluster Type: Aurora DB clusters only
|
|
4513
|
+
:param engine_mode: The DB engine mode of the DB cluster, either ``provisioned`` or ``serverless`` . The ``serverless`` engine mode only applies for Aurora Serverless v1 DB clusters. Aurora Serverless v2 DB clusters use the ``provisioned`` engine mode. For information about limitations and requirements for Serverless DB clusters, see the following sections in the *Amazon Aurora User Guide* : - `Limitations of Aurora Serverless v1 <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations>`_ - `Requirements for Aurora Serverless v2 <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html>`_ Valid for Cluster Type: Aurora DB clusters only
|
|
4300
4514
|
:param engine_version: The version number of the database engine to use. To list all of the available engine versions for Aurora MySQL version 2 (5.7-compatible) and version 3 (8.0-compatible), use the following command: ``aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions[].EngineVersion"`` You can supply either ``5.7`` or ``8.0`` to use the default engine version for Aurora MySQL version 2 or version 3, respectively. To list all of the available engine versions for Aurora PostgreSQL, use the following command: ``aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions[].EngineVersion"`` To list all of the available engine versions for RDS for MySQL, use the following command: ``aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions[].EngineVersion"`` To list all of the available engine versions for RDS for PostgreSQL, use the following command: ``aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions[].EngineVersion"`` *Aurora MySQL* For information, see `Database engine updates for Amazon Aurora MySQL <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html>`_ in the *Amazon Aurora User Guide* . *Aurora PostgreSQL* For information, see `Amazon Aurora PostgreSQL releases and engine versions <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html>`_ in the *Amazon Aurora User Guide* . *MySQL* For information, see `Amazon RDS for MySQL <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt>`_ in the *Amazon RDS User Guide* . *PostgreSQL* For information, see `Amazon RDS for PostgreSQL <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts>`_ in the *Amazon RDS User Guide* . Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
4301
4515
|
:param global_cluster_identifier: If you are configuring an Aurora global database cluster and want your Aurora DB cluster to be a secondary member in the global database cluster, specify the global cluster ID of the global database cluster. To define the primary database cluster of the global cluster, use the `AWS::RDS::GlobalCluster <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-globalcluster.html>`_ resource. If you aren't configuring a global database cluster, don't specify this property. .. epigraph:: To remove the DB cluster from a global database cluster, specify an empty value for the ``GlobalClusterIdentifier`` property. For information about Aurora global databases, see `Working with Amazon Aurora Global Databases <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database.html>`_ in the *Amazon Aurora User Guide* . Valid for: Aurora DB clusters only
|
|
4302
4516
|
:param iops: The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster. For information about valid IOPS values, see `Provisioned IOPS storage <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS>`_ in the *Amazon RDS User Guide* . This setting is required to create a Multi-AZ DB cluster. Valid for Cluster Type: Multi-AZ DB clusters only Constraints: - Must be a multiple between .5 and 50 of the storage amount for the DB cluster.
|
|
@@ -6353,7 +6567,7 @@ class CfnDBClusterProps:
|
|
|
6353
6567
|
:param db_cluster_identifier: The DB cluster identifier. This parameter is stored as a lowercase string. Constraints: - Must contain from 1 to 63 letters, numbers, or hyphens. - First character must be a letter. - Can't end with a hyphen or contain two consecutive hyphens. Example: ``my-cluster1`` Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
6354
6568
|
:param db_cluster_instance_class: The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example ``db.m6gd.xlarge`` . Not all DB instance classes are available in all AWS Regions , or for all database engines. For the full list of DB instance classes and availability for your engine, see `DB instance class <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html>`_ in the *Amazon RDS User Guide* . This setting is required to create a Multi-AZ DB cluster. Valid for Cluster Type: Multi-AZ DB clusters only
|
|
6355
6569
|
:param db_cluster_parameter_group_name: The name of the DB cluster parameter group to associate with this DB cluster. .. epigraph:: If you apply a parameter group to an existing DB cluster, then its DB instances might need to reboot. This can result in an outage while the DB instances are rebooting. If you apply a change to parameter group associated with a stopped DB cluster, then the update stack waits until the DB cluster is started. To list all of the available DB cluster parameter group names, use the following command: ``aws rds describe-db-cluster-parameter-groups --query "DBClusterParameterGroups[].DBClusterParameterGroupName" --output text`` Valid for: Aurora DB clusters and Multi-AZ DB clusters Default: - "default.aurora5.6"
|
|
6356
|
-
:param db_instance_parameter_group_name: The name of the DB parameter group to apply to all instances of the DB cluster. .. epigraph:: When you apply a parameter group using the ``DBInstanceParameterGroupName`` parameter, the DB cluster isn't rebooted automatically. Also, parameter changes are applied immediately rather than during the next maintenance window. Default: The existing name setting Constraints: - The DB parameter group must be in the same DB parameter group family as this DB cluster.
|
|
6570
|
+
:param db_instance_parameter_group_name: The name of the DB parameter group to apply to all instances of the DB cluster. .. epigraph:: When you apply a parameter group using the ``DBInstanceParameterGroupName`` parameter, the DB cluster isn't rebooted automatically. Also, parameter changes are applied immediately rather than during the next maintenance window. Valid for Cluster Type: Aurora DB clusters only Default: The existing name setting Constraints: - The DB parameter group must be in the same DB parameter group family as this DB cluster. - The ``DBInstanceParameterGroupName`` parameter is valid in combination with the ``AllowMajorVersionUpgrade`` parameter for a major version upgrade only.
|
|
6357
6571
|
:param db_subnet_group_name: A DB subnet group that you want to associate with this DB cluster. If you are restoring a DB cluster to a point in time with ``RestoreType`` set to ``copy-on-write`` , and don't specify a DB subnet group name, then the DB cluster is restored with a default DB subnet group. Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
6358
6572
|
:param db_system_id: Reserved for future use.
|
|
6359
6573
|
:param deletion_protection: A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled. Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
@@ -6364,7 +6578,7 @@ class CfnDBClusterProps:
|
|
|
6364
6578
|
:param enable_http_endpoint: Specifies whether to enable the HTTP endpoint for the DB cluster. By default, the HTTP endpoint isn't enabled. When enabled, the HTTP endpoint provides a connectionless web service API (RDS Data API) for running SQL queries on the DB cluster. You can also query your database from inside the RDS console with the RDS query editor. RDS Data API is supported with the following DB clusters: - Aurora PostgreSQL Serverless v2 and provisioned - Aurora PostgreSQL and Aurora MySQL Serverless v1 For more information, see `Using RDS Data API <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html>`_ in the *Amazon Aurora User Guide* . Valid for Cluster Type: Aurora DB clusters only
|
|
6365
6579
|
:param enable_iam_database_authentication: A value that indicates whether to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts. By default, mapping is disabled. For more information, see `IAM Database Authentication <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html>`_ in the *Amazon Aurora User Guide.* Valid for: Aurora DB clusters only
|
|
6366
6580
|
:param engine: The name of the database engine to be used for this DB cluster. Valid Values: - ``aurora-mysql`` - ``aurora-postgresql`` - ``mysql`` - ``postgres`` Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
6367
|
-
:param engine_mode: The DB engine mode of the DB cluster, either ``provisioned`` or ``serverless`` . The ``serverless`` engine mode only applies for Aurora Serverless v1 DB clusters. For information about limitations and requirements for Serverless DB clusters, see the following sections in the *Amazon Aurora User Guide* : - `Limitations of Aurora Serverless v1 <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations>`_ - `Requirements for Aurora Serverless v2 <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html>`_ Valid for Cluster Type: Aurora DB clusters only
|
|
6581
|
+
:param engine_mode: The DB engine mode of the DB cluster, either ``provisioned`` or ``serverless`` . The ``serverless`` engine mode only applies for Aurora Serverless v1 DB clusters. Aurora Serverless v2 DB clusters use the ``provisioned`` engine mode. For information about limitations and requirements for Serverless DB clusters, see the following sections in the *Amazon Aurora User Guide* : - `Limitations of Aurora Serverless v1 <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations>`_ - `Requirements for Aurora Serverless v2 <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html>`_ Valid for Cluster Type: Aurora DB clusters only
|
|
6368
6582
|
:param engine_version: The version number of the database engine to use. To list all of the available engine versions for Aurora MySQL version 2 (5.7-compatible) and version 3 (8.0-compatible), use the following command: ``aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions[].EngineVersion"`` You can supply either ``5.7`` or ``8.0`` to use the default engine version for Aurora MySQL version 2 or version 3, respectively. To list all of the available engine versions for Aurora PostgreSQL, use the following command: ``aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions[].EngineVersion"`` To list all of the available engine versions for RDS for MySQL, use the following command: ``aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions[].EngineVersion"`` To list all of the available engine versions for RDS for PostgreSQL, use the following command: ``aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions[].EngineVersion"`` *Aurora MySQL* For information, see `Database engine updates for Amazon Aurora MySQL <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html>`_ in the *Amazon Aurora User Guide* . *Aurora PostgreSQL* For information, see `Amazon Aurora PostgreSQL releases and engine versions <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html>`_ in the *Amazon Aurora User Guide* . *MySQL* For information, see `Amazon RDS for MySQL <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt>`_ in the *Amazon RDS User Guide* . *PostgreSQL* For information, see `Amazon RDS for PostgreSQL <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts>`_ in the *Amazon RDS User Guide* . Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
6369
6583
|
:param global_cluster_identifier: If you are configuring an Aurora global database cluster and want your Aurora DB cluster to be a secondary member in the global database cluster, specify the global cluster ID of the global database cluster. To define the primary database cluster of the global cluster, use the `AWS::RDS::GlobalCluster <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-globalcluster.html>`_ resource. If you aren't configuring a global database cluster, don't specify this property. .. epigraph:: To remove the DB cluster from a global database cluster, specify an empty value for the ``GlobalClusterIdentifier`` property. For information about Aurora global databases, see `Working with Amazon Aurora Global Databases <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-global-database.html>`_ in the *Amazon Aurora User Guide* . Valid for: Aurora DB clusters only
|
|
6370
6584
|
:param iops: The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster. For information about valid IOPS values, see `Provisioned IOPS storage <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS>`_ in the *Amazon RDS User Guide* . This setting is required to create a Multi-AZ DB cluster. Valid for Cluster Type: Multi-AZ DB clusters only Constraints: - Must be a multiple between .5 and 50 of the storage amount for the DB cluster.
|
|
@@ -6841,11 +7055,14 @@ class CfnDBClusterProps:
|
|
|
6841
7055
|
|
|
6842
7056
|
When you apply a parameter group using the ``DBInstanceParameterGroupName`` parameter, the DB cluster isn't rebooted automatically. Also, parameter changes are applied immediately rather than during the next maintenance window.
|
|
6843
7057
|
|
|
7058
|
+
Valid for Cluster Type: Aurora DB clusters only
|
|
7059
|
+
|
|
6844
7060
|
Default: The existing name setting
|
|
6845
7061
|
|
|
6846
7062
|
Constraints:
|
|
6847
7063
|
|
|
6848
7064
|
- The DB parameter group must be in the same DB parameter group family as this DB cluster.
|
|
7065
|
+
- The ``DBInstanceParameterGroupName`` parameter is valid in combination with the ``AllowMajorVersionUpgrade`` parameter for a major version upgrade only.
|
|
6849
7066
|
|
|
6850
7067
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#cfn-rds-dbcluster-dbinstanceparametergroupname
|
|
6851
7068
|
'''
|
|
@@ -7016,7 +7233,7 @@ class CfnDBClusterProps:
|
|
|
7016
7233
|
def engine_mode(self) -> typing.Optional[builtins.str]:
|
|
7017
7234
|
'''The DB engine mode of the DB cluster, either ``provisioned`` or ``serverless`` .
|
|
7018
7235
|
|
|
7019
|
-
The ``serverless`` engine mode only applies for Aurora Serverless v1 DB clusters.
|
|
7236
|
+
The ``serverless`` engine mode only applies for Aurora Serverless v1 DB clusters. Aurora Serverless v2 DB clusters use the ``provisioned`` engine mode.
|
|
7020
7237
|
|
|
7021
7238
|
For information about limitations and requirements for Serverless DB clusters, see the following sections in the *Amazon Aurora User Guide* :
|
|
7022
7239
|
|
|
@@ -18044,14 +18261,18 @@ class Credentials(
|
|
|
18044
18261
|
vpc = ec2.Vpc(self, "AuroraVpc")
|
|
18045
18262
|
|
|
18046
18263
|
# Create the serverless cluster, provide all values needed to customise the database.
|
|
18047
|
-
cluster = rds.
|
|
18048
|
-
engine=rds.DatabaseClusterEngine.
|
|
18049
|
-
vpc=vpc,
|
|
18264
|
+
cluster = rds.DatabaseCluster(self, "AuroraClusterV2",
|
|
18265
|
+
engine=rds.DatabaseClusterEngine.aurora_postgres(version=rds.AuroraPostgresEngineVersion.VER_15_5),
|
|
18050
18266
|
credentials={"username": "clusteradmin"},
|
|
18051
18267
|
cluster_identifier="db-endpoint-test",
|
|
18052
|
-
|
|
18268
|
+
writer=rds.ClusterInstance.serverless_v2("writer"),
|
|
18269
|
+
serverless_v2_min_capacity=2,
|
|
18270
|
+
serverless_v2_max_capacity=10,
|
|
18271
|
+
vpc=vpc,
|
|
18272
|
+
default_database_name="demos",
|
|
18273
|
+
enable_data_api=True
|
|
18053
18274
|
)
|
|
18054
|
-
rds_dS = api.
|
|
18275
|
+
rds_dS = api.add_rds_data_source_v2("rds", cluster, secret, "demos")
|
|
18055
18276
|
|
|
18056
18277
|
# Set up a resolver for an RDS query.
|
|
18057
18278
|
rds_dS.create_resolver("QueryGetDemosRdsResolver",
|
|
@@ -25098,6 +25319,14 @@ class IDatabaseCluster(
|
|
|
25098
25319
|
'''
|
|
25099
25320
|
...
|
|
25100
25321
|
|
|
25322
|
+
@jsii.member(jsii_name="grantDataApiAccess")
|
|
25323
|
+
def grant_data_api_access(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
|
|
25324
|
+
'''Grant the given identity to access to the Data API.
|
|
25325
|
+
|
|
25326
|
+
:param grantee: The principal to grant access to.
|
|
25327
|
+
'''
|
|
25328
|
+
...
|
|
25329
|
+
|
|
25101
25330
|
@jsii.member(jsii_name="metric")
|
|
25102
25331
|
def metric(
|
|
25103
25332
|
self,
|
|
@@ -25671,6 +25900,17 @@ class _IDatabaseClusterProxy(
|
|
|
25671
25900
|
check_type(argname="argument db_user", value=db_user, expected_type=type_hints["db_user"])
|
|
25672
25901
|
return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantConnect", [grantee, db_user]))
|
|
25673
25902
|
|
|
25903
|
+
@jsii.member(jsii_name="grantDataApiAccess")
|
|
25904
|
+
def grant_data_api_access(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
|
|
25905
|
+
'''Grant the given identity to access to the Data API.
|
|
25906
|
+
|
|
25907
|
+
:param grantee: The principal to grant access to.
|
|
25908
|
+
'''
|
|
25909
|
+
if __debug__:
|
|
25910
|
+
type_hints = typing.get_type_hints(_typecheckingstub__cecf222e59ae304eb2915600c2ab7f5bdc161841f08ea5f6b7f029f7bec9a12a)
|
|
25911
|
+
check_type(argname="argument grantee", value=grantee, expected_type=type_hints["grantee"])
|
|
25912
|
+
return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantDataApiAccess", [grantee]))
|
|
25913
|
+
|
|
25674
25914
|
@jsii.member(jsii_name="metric")
|
|
25675
25915
|
def metric(
|
|
25676
25916
|
self,
|
|
@@ -38176,7 +38416,7 @@ class DatabaseClusterBase(
|
|
|
38176
38416
|
@jsii.member(jsii_name="secret")
|
|
38177
38417
|
@abc.abstractmethod
|
|
38178
38418
|
def secret(self) -> typing.Optional[_ISecret_6e020e6a]:
|
|
38179
|
-
'''
|
|
38419
|
+
'''The secret attached to this cluster.'''
|
|
38180
38420
|
...
|
|
38181
38421
|
|
|
38182
38422
|
@builtins.property
|
|
@@ -38252,7 +38492,7 @@ class _DatabaseClusterBaseProxy(
|
|
|
38252
38492
|
@builtins.property
|
|
38253
38493
|
@jsii.member(jsii_name="secret")
|
|
38254
38494
|
def secret(self) -> typing.Optional[_ISecret_6e020e6a]:
|
|
38255
|
-
'''
|
|
38495
|
+
'''The secret attached to this cluster.'''
|
|
38256
38496
|
return typing.cast(typing.Optional[_ISecret_6e020e6a], jsii.get(self, "secret"))
|
|
38257
38497
|
|
|
38258
38498
|
@builtins.property
|
|
@@ -43425,15 +43665,18 @@ def _typecheckingstub__dccc4ebf781452ad945a67eeaa182293b79bd42fee7658aaea830a59e
|
|
|
43425
43665
|
scope: _constructs_77d1e7e8.Construct,
|
|
43426
43666
|
id: builtins.str,
|
|
43427
43667
|
*,
|
|
43428
|
-
database_installation_files_s3_bucket_name: builtins.str,
|
|
43429
43668
|
engine: builtins.str,
|
|
43430
43669
|
engine_version: builtins.str,
|
|
43670
|
+
database_installation_files_s3_bucket_name: typing.Optional[builtins.str] = None,
|
|
43431
43671
|
database_installation_files_s3_prefix: typing.Optional[builtins.str] = None,
|
|
43432
43672
|
description: typing.Optional[builtins.str] = None,
|
|
43673
|
+
image_id: typing.Optional[builtins.str] = None,
|
|
43433
43674
|
kms_key_id: typing.Optional[builtins.str] = None,
|
|
43434
43675
|
manifest: typing.Optional[builtins.str] = None,
|
|
43676
|
+
source_custom_db_engine_version_identifier: typing.Optional[builtins.str] = None,
|
|
43435
43677
|
status: typing.Optional[builtins.str] = None,
|
|
43436
43678
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
43679
|
+
use_aws_provided_latest_image: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
43437
43680
|
) -> None:
|
|
43438
43681
|
"""Type checking stubs"""
|
|
43439
43682
|
pass
|
|
@@ -43450,20 +43693,20 @@ def _typecheckingstub__3e83f468f7dd18d22c9b612734116e5d82023ddbd1b241f1dae9c33e1
|
|
|
43450
43693
|
"""Type checking stubs"""
|
|
43451
43694
|
pass
|
|
43452
43695
|
|
|
43453
|
-
def
|
|
43696
|
+
def _typecheckingstub__57b06d6a61a7aa40468b988c47f903780541aacb379dfa0bf146f37e0c779729(
|
|
43454
43697
|
value: builtins.str,
|
|
43455
43698
|
) -> None:
|
|
43456
43699
|
"""Type checking stubs"""
|
|
43457
43700
|
pass
|
|
43458
43701
|
|
|
43459
|
-
def
|
|
43702
|
+
def _typecheckingstub__09530b6c217cbc4998aaea3601330c702807beb29fc30fa9af5ceab12214408d(
|
|
43460
43703
|
value: builtins.str,
|
|
43461
43704
|
) -> None:
|
|
43462
43705
|
"""Type checking stubs"""
|
|
43463
43706
|
pass
|
|
43464
43707
|
|
|
43465
|
-
def
|
|
43466
|
-
value: builtins.str,
|
|
43708
|
+
def _typecheckingstub__e8dcd4aecfb92c6617a76401829247508a5196d1219bdf3c496c1eef202e0c37(
|
|
43709
|
+
value: typing.Optional[builtins.str],
|
|
43467
43710
|
) -> None:
|
|
43468
43711
|
"""Type checking stubs"""
|
|
43469
43712
|
pass
|
|
@@ -43480,6 +43723,12 @@ def _typecheckingstub__4aaac4d275f054bf611e124a013cfc149ce4ce49db255d6b8bdbf9937
|
|
|
43480
43723
|
"""Type checking stubs"""
|
|
43481
43724
|
pass
|
|
43482
43725
|
|
|
43726
|
+
def _typecheckingstub__573de89cab865fb2fe6437920ada3b601ffcf5832b228e0d126bedaf494c57eb(
|
|
43727
|
+
value: typing.Optional[builtins.str],
|
|
43728
|
+
) -> None:
|
|
43729
|
+
"""Type checking stubs"""
|
|
43730
|
+
pass
|
|
43731
|
+
|
|
43483
43732
|
def _typecheckingstub__1a0cd73871adb0d339f703041dbaa1e90b6c3ad3be57fe4b1f55f2e61af11dca(
|
|
43484
43733
|
value: typing.Optional[builtins.str],
|
|
43485
43734
|
) -> None:
|
|
@@ -43492,6 +43741,12 @@ def _typecheckingstub__463fc7056b1df9d389ba18cfed697b7ea579834be61dc7627fe4a6bba
|
|
|
43492
43741
|
"""Type checking stubs"""
|
|
43493
43742
|
pass
|
|
43494
43743
|
|
|
43744
|
+
def _typecheckingstub__ab74f194180555de35de6a9023fe9e2d2972ffd40051f7cc505df6dd0438f8d6(
|
|
43745
|
+
value: typing.Optional[builtins.str],
|
|
43746
|
+
) -> None:
|
|
43747
|
+
"""Type checking stubs"""
|
|
43748
|
+
pass
|
|
43749
|
+
|
|
43495
43750
|
def _typecheckingstub__ec128ecf80f4b2e6d4529f80259fe9fb957476b36db57ec7b870982375842eac(
|
|
43496
43751
|
value: typing.Optional[builtins.str],
|
|
43497
43752
|
) -> None:
|
|
@@ -43504,17 +43759,26 @@ def _typecheckingstub__72ea58fd4af1464d2f87e63b0113772cf0f44d78fc2c7531901713687
|
|
|
43504
43759
|
"""Type checking stubs"""
|
|
43505
43760
|
pass
|
|
43506
43761
|
|
|
43762
|
+
def _typecheckingstub__30204c42eef4323c823e84f7a43420a689740a78fa5382e0d646d46b0102a5c1(
|
|
43763
|
+
value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
|
|
43764
|
+
) -> None:
|
|
43765
|
+
"""Type checking stubs"""
|
|
43766
|
+
pass
|
|
43767
|
+
|
|
43507
43768
|
def _typecheckingstub__70c4d3797ab8093b0278a7f532fcb1c42c50e74a1c04dfe5259dbb57e7fe2191(
|
|
43508
43769
|
*,
|
|
43509
|
-
database_installation_files_s3_bucket_name: builtins.str,
|
|
43510
43770
|
engine: builtins.str,
|
|
43511
43771
|
engine_version: builtins.str,
|
|
43772
|
+
database_installation_files_s3_bucket_name: typing.Optional[builtins.str] = None,
|
|
43512
43773
|
database_installation_files_s3_prefix: typing.Optional[builtins.str] = None,
|
|
43513
43774
|
description: typing.Optional[builtins.str] = None,
|
|
43775
|
+
image_id: typing.Optional[builtins.str] = None,
|
|
43514
43776
|
kms_key_id: typing.Optional[builtins.str] = None,
|
|
43515
43777
|
manifest: typing.Optional[builtins.str] = None,
|
|
43778
|
+
source_custom_db_engine_version_identifier: typing.Optional[builtins.str] = None,
|
|
43516
43779
|
status: typing.Optional[builtins.str] = None,
|
|
43517
43780
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
43781
|
+
use_aws_provided_latest_image: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
43518
43782
|
) -> None:
|
|
43519
43783
|
"""Type checking stubs"""
|
|
43520
43784
|
pass
|
|
@@ -46232,6 +46496,12 @@ def _typecheckingstub__28dac6f0afb3a1f37eb08d0603ed9c527826656bdcb35c560bfe5b409
|
|
|
46232
46496
|
"""Type checking stubs"""
|
|
46233
46497
|
pass
|
|
46234
46498
|
|
|
46499
|
+
def _typecheckingstub__cecf222e59ae304eb2915600c2ab7f5bdc161841f08ea5f6b7f029f7bec9a12a(
|
|
46500
|
+
grantee: _IGrantable_71c4f5de,
|
|
46501
|
+
) -> None:
|
|
46502
|
+
"""Type checking stubs"""
|
|
46503
|
+
pass
|
|
46504
|
+
|
|
46235
46505
|
def _typecheckingstub__cb438e41c5d27e4b968b536ac8e59048e5a810f9216c9316ab7091ead553a3cd(
|
|
46236
46506
|
metric_name: builtins.str,
|
|
46237
46507
|
*,
|