aws-cdk-lib 2.149.0__py3-none-any.whl → 2.150.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 +4 -8
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.149.0.jsii.tgz → aws-cdk-lib@2.150.0.jsii.tgz} +0 -0
- aws_cdk/aws_bedrock/__init__.py +30 -26
- aws_cdk/aws_cloudformation/__init__.py +4 -8
- aws_cdk/aws_cloudtrail/__init__.py +30 -558
- aws_cdk/aws_cloudwatch/__init__.py +1 -1
- aws_cdk/aws_codepipeline/__init__.py +11 -5
- aws_cdk/aws_cognito/__init__.py +1 -2
- aws_cdk/aws_ec2/__init__.py +82 -4
- aws_cdk/aws_ecs/__init__.py +10 -8
- aws_cdk/aws_eks/__init__.py +26 -20
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +2 -2
- aws_cdk/aws_emr/__init__.py +18 -20
- aws_cdk/aws_fsx/__init__.py +25 -23
- aws_cdk/aws_glue/__init__.py +3 -3
- aws_cdk/aws_guardduty/__init__.py +6 -4
- aws_cdk/aws_iam/__init__.py +8 -5
- aws_cdk/aws_lambda/__init__.py +19 -2
- aws_cdk/aws_logs/__init__.py +9 -0
- aws_cdk/aws_qbusiness/__init__.py +21 -7
- aws_cdk/aws_rds/__init__.py +15 -9
- aws_cdk/aws_sagemaker/__init__.py +10 -10
- aws_cdk/aws_stepfunctions_tasks/__init__.py +6 -8
- aws_cdk/aws_synthetics/__init__.py +15 -1
- aws_cdk/custom_resources/__init__.py +91 -23
- aws_cdk/pipelines/__init__.py +1 -1
- aws_cdk/region_info/__init__.py +32 -12
- {aws_cdk_lib-2.149.0.dist-info → aws_cdk_lib-2.150.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.149.0.dist-info → aws_cdk_lib-2.150.0.dist-info}/RECORD +34 -34
- {aws_cdk_lib-2.149.0.dist-info → aws_cdk_lib-2.150.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.149.0.dist-info → aws_cdk_lib-2.150.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.149.0.dist-info → aws_cdk_lib-2.150.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.149.0.dist-info → aws_cdk_lib-2.150.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_rds/__init__.py
CHANGED
|
@@ -4665,7 +4665,7 @@ class CfnDBCluster(
|
|
|
4665
4665
|
:param port: The port number on which the DB instances in the DB cluster accept connections. Default: - When ``EngineMode`` is ``provisioned`` , ``3306`` (for both Aurora MySQL and Aurora PostgreSQL) - When ``EngineMode`` is ``serverless`` : - ``3306`` when ``Engine`` is ``aurora`` or ``aurora-mysql`` - ``5432`` when ``Engine`` is ``aurora-postgresql`` .. epigraph:: The ``No interruption`` on update behavior only applies to DB clusters. If you are updating a DB instance, see `Port <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-port>`_ for the AWS::RDS::DBInstance resource. Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
4666
4666
|
:param preferred_backup_window: The daily time range during which automated backups are created. For more information, see `Backup Window <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow>`_ in the *Amazon Aurora User Guide.* Constraints: - Must be in the format ``hh24:mi-hh24:mi`` . - Must be in Universal Coordinated Time (UTC). - Must not conflict with the preferred maintenance window. - Must be at least 30 minutes. Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
4667
4667
|
:param preferred_maintenance_window: The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). Format: ``ddd:hh24:mi-ddd:hh24:mi`` The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week. To see the time blocks available, see `Adjusting the Preferred DB Cluster Maintenance Window <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora>`_ in the *Amazon Aurora User Guide.* Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun. Constraints: Minimum 30-minute window. Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
4668
|
-
:param publicly_accessible: Specifies whether the DB cluster is publicly accessible. When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to the
|
|
4668
|
+
:param publicly_accessible: Specifies whether the DB cluster is publicly accessible. When the DB cluster is publicly accessible and you connect from outside of the DB cluster's virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to the private IP address. Access to the DB cluster is ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB cluster doesn't permit it. When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name that resolves to a private IP address. Valid for Cluster Type: Multi-AZ DB clusters only Default: The default behavior varies depending on whether ``DBSubnetGroupName`` is specified. If ``DBSubnetGroupName`` isn't specified, and ``PubliclyAccessible`` isn't specified, the following applies: - If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB cluster is private. - If the default VPC in the target Region has an internet gateway attached to it, the DB cluster is public. If ``DBSubnetGroupName`` is specified, and ``PubliclyAccessible`` isn't specified, the following applies: - If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB cluster is private. - If the subnets are part of a VPC that has an internet gateway attached to it, the DB cluster is public.
|
|
4669
4669
|
:param replication_source_identifier: The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica. Valid for: Aurora DB clusters only
|
|
4670
4670
|
:param restore_to_time: The date and time to restore the DB cluster to. Valid Values: Value must be a time in Universal Coordinated Time (UTC) format Constraints: - Must be before the latest restorable time for the DB instance - Must be specified if ``UseLatestRestorableTime`` parameter isn't provided - Can't be specified if the ``UseLatestRestorableTime`` parameter is enabled - Can't be specified if the ``RestoreType`` parameter is ``copy-on-write`` This property must be used with ``SourceDBClusterIdentifier`` property. The resulting cluster will have the identifier that matches the value of the ``DBclusterIdentifier`` property. Example: ``2015-03-07T23:45:00Z`` Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
4671
4671
|
:param restore_type: The type of restore to be performed. You can specify one of the following values:. - ``full-copy`` - The new DB cluster is restored as a full copy of the source DB cluster. - ``copy-on-write`` - The new DB cluster is restored as a clone of the source DB cluster. If you don't specify a ``RestoreType`` value, then the new DB cluster is restored as a full copy of the source DB cluster. Valid for: Aurora DB clusters and Multi-AZ DB clusters Default: - "full-copy"
|
|
@@ -5894,7 +5894,7 @@ class CfnDBCluster(
|
|
|
5894
5894
|
For more information, see `Password management with AWS Secrets Manager <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html>`_ in the *Amazon RDS User Guide* and `Password management with AWS Secrets Manager <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html>`_ in the *Amazon Aurora User Guide.*
|
|
5895
5895
|
|
|
5896
5896
|
:param kms_key_id: The AWS KMS key identifier that is used to encrypt the secret.
|
|
5897
|
-
:param secret_arn: The Amazon Resource Name (ARN) of the secret.
|
|
5897
|
+
:param secret_arn: The Amazon Resource Name (ARN) of the secret. This parameter is a return value that you can retrieve using the ``Fn::GetAtt`` intrinsic function. For more information, see `Return values <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#aws-resource-rds-dbcluster-return-values>`_ .
|
|
5898
5898
|
|
|
5899
5899
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html
|
|
5900
5900
|
:exampleMetadata: fixture=_generated
|
|
@@ -5933,6 +5933,8 @@ class CfnDBCluster(
|
|
|
5933
5933
|
def secret_arn(self) -> typing.Optional[builtins.str]:
|
|
5934
5934
|
'''The Amazon Resource Name (ARN) of the secret.
|
|
5935
5935
|
|
|
5936
|
+
This parameter is a return value that you can retrieve using the ``Fn::GetAtt`` intrinsic function. For more information, see `Return values <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#aws-resource-rds-dbcluster-return-values>`_ .
|
|
5937
|
+
|
|
5936
5938
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbcluster-masterusersecret.html#cfn-rds-dbcluster-masterusersecret-secretarn
|
|
5937
5939
|
'''
|
|
5938
5940
|
result = self._values.get("secret_arn")
|
|
@@ -6774,7 +6776,7 @@ class CfnDBClusterProps:
|
|
|
6774
6776
|
:param port: The port number on which the DB instances in the DB cluster accept connections. Default: - When ``EngineMode`` is ``provisioned`` , ``3306`` (for both Aurora MySQL and Aurora PostgreSQL) - When ``EngineMode`` is ``serverless`` : - ``3306`` when ``Engine`` is ``aurora`` or ``aurora-mysql`` - ``5432`` when ``Engine`` is ``aurora-postgresql`` .. epigraph:: The ``No interruption`` on update behavior only applies to DB clusters. If you are updating a DB instance, see `Port <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-database-instance.html#cfn-rds-dbinstance-port>`_ for the AWS::RDS::DBInstance resource. Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
6775
6777
|
:param preferred_backup_window: The daily time range during which automated backups are created. For more information, see `Backup Window <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow>`_ in the *Amazon Aurora User Guide.* Constraints: - Must be in the format ``hh24:mi-hh24:mi`` . - Must be in Universal Coordinated Time (UTC). - Must not conflict with the preferred maintenance window. - Must be at least 30 minutes. Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
6776
6778
|
:param preferred_maintenance_window: The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC). Format: ``ddd:hh24:mi-ddd:hh24:mi`` The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week. To see the time blocks available, see `Adjusting the Preferred DB Cluster Maintenance Window <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora>`_ in the *Amazon Aurora User Guide.* Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun. Constraints: Minimum 30-minute window. Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
6777
|
-
:param publicly_accessible: Specifies whether the DB cluster is publicly accessible. When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to the
|
|
6779
|
+
:param publicly_accessible: Specifies whether the DB cluster is publicly accessible. When the DB cluster is publicly accessible and you connect from outside of the DB cluster's virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to the private IP address. Access to the DB cluster is ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB cluster doesn't permit it. When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name that resolves to a private IP address. Valid for Cluster Type: Multi-AZ DB clusters only Default: The default behavior varies depending on whether ``DBSubnetGroupName`` is specified. If ``DBSubnetGroupName`` isn't specified, and ``PubliclyAccessible`` isn't specified, the following applies: - If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB cluster is private. - If the default VPC in the target Region has an internet gateway attached to it, the DB cluster is public. If ``DBSubnetGroupName`` is specified, and ``PubliclyAccessible`` isn't specified, the following applies: - If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB cluster is private. - If the subnets are part of a VPC that has an internet gateway attached to it, the DB cluster is public.
|
|
6778
6780
|
:param replication_source_identifier: The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica. Valid for: Aurora DB clusters only
|
|
6779
6781
|
:param restore_to_time: The date and time to restore the DB cluster to. Valid Values: Value must be a time in Universal Coordinated Time (UTC) format Constraints: - Must be before the latest restorable time for the DB instance - Must be specified if ``UseLatestRestorableTime`` parameter isn't provided - Can't be specified if the ``UseLatestRestorableTime`` parameter is enabled - Can't be specified if the ``RestoreType`` parameter is ``copy-on-write`` This property must be used with ``SourceDBClusterIdentifier`` property. The resulting cluster will have the identifier that matches the value of the ``DBclusterIdentifier`` property. Example: ``2015-03-07T23:45:00Z`` Valid for: Aurora DB clusters and Multi-AZ DB clusters
|
|
6780
6782
|
:param restore_type: The type of restore to be performed. You can specify one of the following values:. - ``full-copy`` - The new DB cluster is restored as a full copy of the source DB cluster. - ``copy-on-write`` - The new DB cluster is restored as a clone of the source DB cluster. If you don't specify a ``RestoreType`` value, then the new DB cluster is restored as a full copy of the source DB cluster. Valid for: Aurora DB clusters and Multi-AZ DB clusters Default: - "full-copy"
|
|
@@ -7809,7 +7811,7 @@ class CfnDBClusterProps:
|
|
|
7809
7811
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
7810
7812
|
'''Specifies whether the DB cluster is publicly accessible.
|
|
7811
7813
|
|
|
7812
|
-
When the DB cluster is publicly accessible, its Domain Name System (DNS) endpoint resolves to the
|
|
7814
|
+
When the DB cluster is publicly accessible and you connect from outside of the DB cluster's virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to the private IP address. Access to the DB cluster is ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB cluster doesn't permit it.
|
|
7813
7815
|
|
|
7814
7816
|
When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name that resolves to a private IP address.
|
|
7815
7817
|
|
|
@@ -8325,7 +8327,7 @@ class CfnDBInstance(
|
|
|
8325
8327
|
:param allow_major_version_upgrade: A value that indicates whether major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. Constraints: Major version upgrades must be allowed when specifying a value for the ``EngineVersion`` parameter that is a different major version than the DB instance's current version.
|
|
8326
8328
|
:param associated_roles: The AWS Identity and Access Management (IAM) roles associated with the DB instance. *Amazon Aurora* Not applicable. The associated roles are managed by the DB cluster.
|
|
8327
8329
|
:param automatic_backup_replication_kms_key_id: The AWS KMS key identifier for encryption of the replicated automated backups. The KMS key ID is the Amazon Resource Name (ARN) for the KMS encryption key in the destination AWS Region , for example, ``arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE`` .
|
|
8328
|
-
:param automatic_backup_replication_region: The destination region for the backup replication of the DB instance. For more info, see `Replicating automated backups to another
|
|
8330
|
+
:param automatic_backup_replication_region: The destination region for the backup replication of the DB instance. For more info, see `Replicating automated backups to another Region <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReplicateBackups.html>`_ in the *Amazon RDS User Guide*.
|
|
8329
8331
|
:param auto_minor_version_upgrade: A value that indicates whether minor engine upgrades are applied automatically to the DB instance during the maintenance window. By default, minor engine upgrades are applied automatically.
|
|
8330
8332
|
:param availability_zone: The Availability Zone (AZ) where the database will be created. For information on AWS Regions and Availability Zones, see `Regions and Availability Zones <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html>`_ . For Amazon Aurora, each Aurora DB cluster hosts copies of its storage in three separate Availability Zones. Specify one of these Availability Zones. Aurora automatically chooses an appropriate Availability Zone if you don't specify one. Default: A random, system-chosen Availability Zone in the endpoint's AWS Region . Constraints: - The ``AvailabilityZone`` parameter can't be specified if the DB instance is a Multi-AZ deployment. - The specified Availability Zone must be in the same AWS Region as the current endpoint. Example: ``us-east-1d``
|
|
8331
8333
|
:param backup_retention_period: The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups. *Amazon Aurora* Not applicable. The retention period for automated backups is managed by the DB cluster. Default: 1 Constraints: - Must be a value from 0 to 35 - Can't be set to 0 if the DB instance is a source to read replicas Default: - 1
|
|
@@ -8604,6 +8606,8 @@ class CfnDBInstance(
|
|
|
8604
8606
|
def attr_master_user_secret_secret_arn(self) -> builtins.str:
|
|
8605
8607
|
'''The Amazon Resource Name (ARN) of the secret.
|
|
8606
8608
|
|
|
8609
|
+
This parameter is a return value that you can retrieve using the ``Fn::GetAtt`` intrinsic function. For more information, see `Return values <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#aws-resource-rds-dbinstance-return-values>`_ .
|
|
8610
|
+
|
|
8607
8611
|
:cloudformationAttribute: MasterUserSecret.SecretArn
|
|
8608
8612
|
'''
|
|
8609
8613
|
return typing.cast(builtins.str, jsii.get(self, "attrMasterUserSecretSecretArn"))
|
|
@@ -10047,7 +10051,7 @@ class CfnDBInstance(
|
|
|
10047
10051
|
For more information, see `Password management with AWS Secrets Manager <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html>`_ in the *Amazon RDS User Guide* and `Password management with AWS Secrets Manager <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html>`_ in the *Amazon Aurora User Guide.*
|
|
10048
10052
|
|
|
10049
10053
|
:param kms_key_id: The AWS KMS key identifier that is used to encrypt the secret.
|
|
10050
|
-
:param secret_arn: The Amazon Resource Name (ARN) of the secret.
|
|
10054
|
+
:param secret_arn: The Amazon Resource Name (ARN) of the secret. This parameter is a return value that you can retrieve using the ``Fn::GetAtt`` intrinsic function. For more information, see `Return values <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#aws-resource-rds-dbinstance-return-values>`_ .
|
|
10051
10055
|
|
|
10052
10056
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-masterusersecret.html
|
|
10053
10057
|
:exampleMetadata: fixture=_generated
|
|
@@ -10086,6 +10090,8 @@ class CfnDBInstance(
|
|
|
10086
10090
|
def secret_arn(self) -> typing.Optional[builtins.str]:
|
|
10087
10091
|
'''The Amazon Resource Name (ARN) of the secret.
|
|
10088
10092
|
|
|
10093
|
+
This parameter is a return value that you can retrieve using the ``Fn::GetAtt`` intrinsic function. For more information, see `Return values <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#aws-resource-rds-dbinstance-return-values>`_ .
|
|
10094
|
+
|
|
10089
10095
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbinstance-masterusersecret.html#cfn-rds-dbinstance-masterusersecret-secretarn
|
|
10090
10096
|
'''
|
|
10091
10097
|
result = self._values.get("secret_arn")
|
|
@@ -10114,7 +10120,7 @@ class CfnDBInstance(
|
|
|
10114
10120
|
name: typing.Optional[builtins.str] = None,
|
|
10115
10121
|
value: typing.Optional[builtins.str] = None,
|
|
10116
10122
|
) -> None:
|
|
10117
|
-
'''The ``ProcessorFeature`` property type specifies the processor features of a DB instance class
|
|
10123
|
+
'''The ``ProcessorFeature`` property type specifies the processor features of a DB instance class.
|
|
10118
10124
|
|
|
10119
10125
|
:param name: The name of the processor feature. Valid names are ``coreCount`` and ``threadsPerCore`` .
|
|
10120
10126
|
:param value: The value of a processor feature.
|
|
@@ -10348,7 +10354,7 @@ class CfnDBInstanceProps:
|
|
|
10348
10354
|
:param allow_major_version_upgrade: A value that indicates whether major version upgrades are allowed. Changing this parameter doesn't result in an outage and the change is asynchronously applied as soon as possible. Constraints: Major version upgrades must be allowed when specifying a value for the ``EngineVersion`` parameter that is a different major version than the DB instance's current version.
|
|
10349
10355
|
:param associated_roles: The AWS Identity and Access Management (IAM) roles associated with the DB instance. *Amazon Aurora* Not applicable. The associated roles are managed by the DB cluster.
|
|
10350
10356
|
:param automatic_backup_replication_kms_key_id: The AWS KMS key identifier for encryption of the replicated automated backups. The KMS key ID is the Amazon Resource Name (ARN) for the KMS encryption key in the destination AWS Region , for example, ``arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE`` .
|
|
10351
|
-
:param automatic_backup_replication_region: The destination region for the backup replication of the DB instance. For more info, see `Replicating automated backups to another
|
|
10357
|
+
:param automatic_backup_replication_region: The destination region for the backup replication of the DB instance. For more info, see `Replicating automated backups to another Region <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReplicateBackups.html>`_ in the *Amazon RDS User Guide*.
|
|
10352
10358
|
:param auto_minor_version_upgrade: A value that indicates whether minor engine upgrades are applied automatically to the DB instance during the maintenance window. By default, minor engine upgrades are applied automatically.
|
|
10353
10359
|
:param availability_zone: The Availability Zone (AZ) where the database will be created. For information on AWS Regions and Availability Zones, see `Regions and Availability Zones <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html>`_ . For Amazon Aurora, each Aurora DB cluster hosts copies of its storage in three separate Availability Zones. Specify one of these Availability Zones. Aurora automatically chooses an appropriate Availability Zone if you don't specify one. Default: A random, system-chosen Availability Zone in the endpoint's AWS Region . Constraints: - The ``AvailabilityZone`` parameter can't be specified if the DB instance is a Multi-AZ deployment. - The specified Availability Zone must be in the same AWS Region as the current endpoint. Example: ``us-east-1d``
|
|
10354
10360
|
:param backup_retention_period: The number of days for which automated backups are retained. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups. *Amazon Aurora* Not applicable. The retention period for automated backups is managed by the DB cluster. Default: 1 Constraints: - Must be a value from 0 to 35 - Can't be set to 0 if the DB instance is a source to read replicas Default: - 1
|
|
@@ -10885,7 +10891,7 @@ class CfnDBInstanceProps:
|
|
|
10885
10891
|
def automatic_backup_replication_region(self) -> typing.Optional[builtins.str]:
|
|
10886
10892
|
'''The destination region for the backup replication of the DB instance.
|
|
10887
10893
|
|
|
10888
|
-
For more info, see `Replicating automated backups to another
|
|
10894
|
+
For more info, see `Replicating automated backups to another Region <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReplicateBackups.html>`_ in the *Amazon RDS User Guide*.
|
|
10889
10895
|
|
|
10890
10896
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbinstance.html#cfn-rds-dbinstance-automaticbackupreplicationregion
|
|
10891
10897
|
'''
|
|
@@ -3725,9 +3725,9 @@ class CfnDataQualityJobDefinition(
|
|
|
3725
3725
|
)
|
|
3726
3726
|
class StoppingConditionProperty:
|
|
3727
3727
|
def __init__(self, *, max_runtime_in_seconds: jsii.Number) -> None:
|
|
3728
|
-
'''Specifies a limit to how long a
|
|
3728
|
+
'''Specifies a limit to how long a job can run.
|
|
3729
3729
|
|
|
3730
|
-
|
|
3730
|
+
When the job reaches the time limit, SageMaker ends the job. Use this API to cap costs.
|
|
3731
3731
|
|
|
3732
3732
|
To stop a training job, SageMaker sends the algorithm the ``SIGTERM`` signal, which delays job termination for 120 seconds. Algorithms can use this 120-second window to save the model artifacts, so the results of training are not lost.
|
|
3733
3733
|
|
|
@@ -20279,9 +20279,9 @@ class CfnModelBiasJobDefinition(
|
|
|
20279
20279
|
)
|
|
20280
20280
|
class StoppingConditionProperty:
|
|
20281
20281
|
def __init__(self, *, max_runtime_in_seconds: jsii.Number) -> None:
|
|
20282
|
-
'''Specifies a limit to how long a
|
|
20282
|
+
'''Specifies a limit to how long a job can run.
|
|
20283
20283
|
|
|
20284
|
-
|
|
20284
|
+
When the job reaches the time limit, SageMaker ends the job. Use this API to cap costs.
|
|
20285
20285
|
|
|
20286
20286
|
To stop a training job, SageMaker sends the algorithm the ``SIGTERM`` signal, which delays job termination for 120 seconds. Algorithms can use this 120-second window to save the model artifacts, so the results of training are not lost.
|
|
20287
20287
|
|
|
@@ -26021,9 +26021,9 @@ class CfnModelExplainabilityJobDefinition(
|
|
|
26021
26021
|
)
|
|
26022
26022
|
class StoppingConditionProperty:
|
|
26023
26023
|
def __init__(self, *, max_runtime_in_seconds: jsii.Number) -> None:
|
|
26024
|
-
'''Specifies a limit to how long a
|
|
26024
|
+
'''Specifies a limit to how long a job can run.
|
|
26025
26025
|
|
|
26026
|
-
|
|
26026
|
+
When the job reaches the time limit, SageMaker ends the job. Use this API to cap costs.
|
|
26027
26027
|
|
|
26028
26028
|
To stop a training job, SageMaker sends the algorithm the ``SIGTERM`` signal, which delays job termination for 120 seconds. Algorithms can use this 120-second window to save the model artifacts, so the results of training are not lost.
|
|
26029
26029
|
|
|
@@ -33926,9 +33926,9 @@ class CfnModelQualityJobDefinition(
|
|
|
33926
33926
|
)
|
|
33927
33927
|
class StoppingConditionProperty:
|
|
33928
33928
|
def __init__(self, *, max_runtime_in_seconds: jsii.Number) -> None:
|
|
33929
|
-
'''Specifies a limit to how long a
|
|
33929
|
+
'''Specifies a limit to how long a job can run.
|
|
33930
33930
|
|
|
33931
|
-
|
|
33931
|
+
When the job reaches the time limit, SageMaker ends the job. Use this API to cap costs.
|
|
33932
33932
|
|
|
33933
33933
|
To stop a training job, SageMaker sends the algorithm the ``SIGTERM`` signal, which delays job termination for 120 seconds. Algorithms can use this 120-second window to save the model artifacts, so the results of training are not lost.
|
|
33934
33934
|
|
|
@@ -36982,9 +36982,9 @@ class CfnMonitoringSchedule(
|
|
|
36982
36982
|
)
|
|
36983
36983
|
class StoppingConditionProperty:
|
|
36984
36984
|
def __init__(self, *, max_runtime_in_seconds: jsii.Number) -> None:
|
|
36985
|
-
'''Specifies a limit to how long a
|
|
36985
|
+
'''Specifies a limit to how long a job can run.
|
|
36986
36986
|
|
|
36987
|
-
|
|
36987
|
+
When the job reaches the time limit, SageMaker ends the job. Use this API to cap costs.
|
|
36988
36988
|
|
|
36989
36989
|
To stop a training job, SageMaker sends the algorithm the ``SIGTERM`` signal, which delays job termination for 120 seconds. Algorithms can use this 120-second window to save the model artifacts, so the results of training are not lost.
|
|
36990
36990
|
|
|
@@ -7003,11 +7003,11 @@ class CallAwsServiceCrossRegion(
|
|
|
7003
7003
|
:param action: The API action to call. Use camelCase.
|
|
7004
7004
|
:param iam_resources: The resources for the IAM statement that will be added to the Lambda function role's policy to allow the state machine to make the API call.
|
|
7005
7005
|
:param region: The AWS region to call this AWS API for.
|
|
7006
|
-
:param service: The AWS service to call in AWS SDK for JavaScript v3
|
|
7006
|
+
:param service: The AWS service to call in AWS SDK for JavaScript v3 format.
|
|
7007
7007
|
:param additional_iam_statements: Additional IAM statements that will be added to the state machine role's policy. Use in the case where the call requires more than a single statement to be executed, e.g. ``rekognition:detectLabels`` requires also S3 permissions to read the object on which it must act. Default: - no additional statements are added
|
|
7008
7008
|
:param endpoint: The AWS API endpoint. Default: Do not override API endpoint.
|
|
7009
7009
|
:param iam_action: The action for the IAM statement that will be added to the Lambda function role's policy to allow the state machine to make the API call. By default the action for this IAM statement will be ``service:action``. Use in the case where the IAM action name does not match with the API service/action name, e.g. ``s3:ListBuckets`` requires ``s3:ListAllMyBuckets``. Default: - service:action
|
|
7010
|
-
:param parameters: Parameters for the API action call
|
|
7010
|
+
:param parameters: Parameters for the API action call in AWS SDK for JavaScript v3 format. Default: - no parameters
|
|
7011
7011
|
:param retry_on_service_exceptions: Whether to retry on the backend Lambda service exceptions. This handles ``Lambda.ServiceException``, ``Lambda.AWSLambdaException``, ``Lambda.SdkClientException``, and ``Lambda.ClientExecutionTimeoutException`` with an interval of 2 seconds, a back-off rate of 2 and 6 maximum attempts. Default: true
|
|
7012
7012
|
:param comment: An optional description for this state. Default: - No comment
|
|
7013
7013
|
:param credentials: Credentials for an IAM Role that the State Machine assumes for executing the task. This enables cross-account resource invocations. Default: - None (Task is executed using the State Machine's execution role)
|
|
@@ -7138,11 +7138,11 @@ class CallAwsServiceCrossRegionProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
7138
7138
|
:param action: The API action to call. Use camelCase.
|
|
7139
7139
|
:param iam_resources: The resources for the IAM statement that will be added to the Lambda function role's policy to allow the state machine to make the API call.
|
|
7140
7140
|
:param region: The AWS region to call this AWS API for.
|
|
7141
|
-
:param service: The AWS service to call in AWS SDK for JavaScript v3
|
|
7141
|
+
:param service: The AWS service to call in AWS SDK for JavaScript v3 format.
|
|
7142
7142
|
:param additional_iam_statements: Additional IAM statements that will be added to the state machine role's policy. Use in the case where the call requires more than a single statement to be executed, e.g. ``rekognition:detectLabels`` requires also S3 permissions to read the object on which it must act. Default: - no additional statements are added
|
|
7143
7143
|
:param endpoint: The AWS API endpoint. Default: Do not override API endpoint.
|
|
7144
7144
|
:param iam_action: The action for the IAM statement that will be added to the Lambda function role's policy to allow the state machine to make the API call. By default the action for this IAM statement will be ``service:action``. Use in the case where the IAM action name does not match with the API service/action name, e.g. ``s3:ListBuckets`` requires ``s3:ListAllMyBuckets``. Default: - service:action
|
|
7145
|
-
:param parameters: Parameters for the API action call
|
|
7145
|
+
:param parameters: Parameters for the API action call in AWS SDK for JavaScript v3 format. Default: - no parameters
|
|
7146
7146
|
:param retry_on_service_exceptions: Whether to retry on the backend Lambda service exceptions. This handles ``Lambda.ServiceException``, ``Lambda.AWSLambdaException``, ``Lambda.SdkClientException``, and ``Lambda.ClientExecutionTimeoutException`` with an interval of 2 seconds, a back-off rate of 2 and 6 maximum attempts. Default: true
|
|
7147
7147
|
|
|
7148
7148
|
:exampleMetadata: infused
|
|
@@ -7414,7 +7414,7 @@ class CallAwsServiceCrossRegionProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
7414
7414
|
|
|
7415
7415
|
@builtins.property
|
|
7416
7416
|
def service(self) -> builtins.str:
|
|
7417
|
-
'''The AWS service to call in AWS SDK for JavaScript v3
|
|
7417
|
+
'''The AWS service to call in AWS SDK for JavaScript v3 format.
|
|
7418
7418
|
|
|
7419
7419
|
:see: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/
|
|
7420
7420
|
|
|
@@ -7466,9 +7466,7 @@ class CallAwsServiceCrossRegionProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
7466
7466
|
|
|
7467
7467
|
@builtins.property
|
|
7468
7468
|
def parameters(self) -> typing.Optional[typing.Mapping[builtins.str, typing.Any]]:
|
|
7469
|
-
'''Parameters for the API action call.
|
|
7470
|
-
|
|
7471
|
-
Use PascalCase for the parameter names.
|
|
7469
|
+
'''Parameters for the API action call in AWS SDK for JavaScript v3 format.
|
|
7472
7470
|
|
|
7473
7471
|
:default: - no parameters
|
|
7474
7472
|
'''
|
|
@@ -3564,7 +3564,7 @@ class Runtime(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_synthetics.Run
|
|
|
3564
3564
|
- **Ephemeral storage monitoring**: This runtime adds ephemeral storage monitoring in customer accounts.
|
|
3565
3565
|
- **Bug fixes**
|
|
3566
3566
|
|
|
3567
|
-
:see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-6.
|
|
3567
|
+
:see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-6.2
|
|
3568
3568
|
'''
|
|
3569
3569
|
return typing.cast("Runtime", jsii.sget(cls, "SYNTHETICS_NODEJS_PUPPETEER_6_2"))
|
|
3570
3570
|
|
|
@@ -3581,6 +3581,20 @@ class Runtime(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_synthetics.Run
|
|
|
3581
3581
|
'''
|
|
3582
3582
|
return typing.cast("Runtime", jsii.sget(cls, "SYNTHETICS_NODEJS_PUPPETEER_7_0"))
|
|
3583
3583
|
|
|
3584
|
+
@jsii.python.classproperty
|
|
3585
|
+
@jsii.member(jsii_name="SYNTHETICS_NODEJS_PUPPETEER_8_0")
|
|
3586
|
+
def SYNTHETICS_NODEJS_PUPPETEER_8_0(cls) -> "Runtime":
|
|
3587
|
+
'''``syn-nodejs-puppeteer-8.0`` includes the following: - Lambda runtime Node.js 20.x - Puppeteer-core version 22.10.0 - Chromium version 125.0.6422.112.
|
|
3588
|
+
|
|
3589
|
+
New Features:
|
|
3590
|
+
|
|
3591
|
+
- **Support for two-factor authentication**
|
|
3592
|
+
- **Bug fixes** for situations where some service clients were losing data in Node.js SDK V3 responses.
|
|
3593
|
+
|
|
3594
|
+
:see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-8.0
|
|
3595
|
+
'''
|
|
3596
|
+
return typing.cast("Runtime", jsii.sget(cls, "SYNTHETICS_NODEJS_PUPPETEER_8_0"))
|
|
3597
|
+
|
|
3584
3598
|
@jsii.python.classproperty
|
|
3585
3599
|
@jsii.member(jsii_name="SYNTHETICS_PYTHON_SELENIUM_1_0")
|
|
3586
3600
|
def SYNTHETICS_PYTHON_SELENIUM_1_0(cls) -> "Runtime":
|
|
@@ -158,7 +158,7 @@ The return value from `onEvent` must be a JSON object with the following fields:
|
|
|
158
158
|
| -------------------- | ------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
159
159
|
| `PhysicalResourceId` | String | No | The allocated/assigned physical ID of the resource. If omitted for `Create` events, the event's `RequestId` will be used. For `Update`, the current physical ID will be used. If a different value is returned, CloudFormation will follow with a subsequent `Delete` for the previous ID (resource replacement). For `Delete`, it will always return the current physical resource ID, and if the user returns a different one, an error will occur. |
|
|
160
160
|
| `Data` | JSON | No | Resource attributes, which can later be retrieved through `Fn::GetAtt` on the custom resource object. |
|
|
161
|
-
| `NoEcho` | Boolean | No | Whether to mask the output of the custom resource when retrieved by using the `Fn::GetAtt` function.
|
|
161
|
+
| `NoEcho` | Boolean | No | Whether to mask the output of the custom resource when retrieved by using the `Fn::GetAtt` function and to mask the `Data` values. |
|
|
162
162
|
| *any* | *any* | No | Any other field included in the response will be passed through to `isComplete`. This can sometimes be useful to pass state between the handlers. |
|
|
163
163
|
|
|
164
164
|
### Asynchronous Providers: isComplete
|
|
@@ -215,6 +215,48 @@ must return this name in `PhysicalResourceId` and make sure to handle
|
|
|
215
215
|
replacement properly. The `S3File` example demonstrates this
|
|
216
216
|
through the `objectKey` property.
|
|
217
217
|
|
|
218
|
+
### Masking the output of log statements
|
|
219
|
+
|
|
220
|
+
When using the Provider framework to create a custom resource, the request and response
|
|
221
|
+
objects are logged by the provider function.If secret values are returned in the custom
|
|
222
|
+
resource's Data object, it would be logged and exposed which possesses security threats.
|
|
223
|
+
|
|
224
|
+
To mask the output of log statements, you can utilize the `NoEcho` field in the custom
|
|
225
|
+
resource handler's response.
|
|
226
|
+
|
|
227
|
+
```python
|
|
228
|
+
# Create custom resource handler entrypoint
|
|
229
|
+
handler = lambda_.Function(self, "my-handler",
|
|
230
|
+
runtime=lambda_.Runtime.NODEJS_20_X,
|
|
231
|
+
handler="index.handler",
|
|
232
|
+
code=lambda_.Code.from_inline("""
|
|
233
|
+
exports.handler = async (event, context) => {
|
|
234
|
+
return {
|
|
235
|
+
PhysicalResourceId: '1234',
|
|
236
|
+
NoEcho: true,
|
|
237
|
+
Data: {
|
|
238
|
+
mySecret: 'secret-value',
|
|
239
|
+
hello: 'world',
|
|
240
|
+
ghToken: 'gho_xxxxxxx',
|
|
241
|
+
},
|
|
242
|
+
};
|
|
243
|
+
};""")
|
|
244
|
+
)
|
|
245
|
+
|
|
246
|
+
# Provision a custom resource provider framework
|
|
247
|
+
provider = cr.Provider(self, "my-provider",
|
|
248
|
+
on_event_handler=handler
|
|
249
|
+
)
|
|
250
|
+
|
|
251
|
+
CustomResource(self, "my-cr",
|
|
252
|
+
service_token=provider.service_token
|
|
253
|
+
)
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
When `NoEcho` field is set to `true` in the response of custom resource handler,
|
|
257
|
+
it will automatically mask all values in the `Data` object in the log statements
|
|
258
|
+
to asterisks (*****).
|
|
259
|
+
|
|
218
260
|
### When there are errors
|
|
219
261
|
|
|
220
262
|
As mentioned above, if any of the user handlers fail (i.e. throws an exception)
|
|
@@ -2011,18 +2053,31 @@ class Provider(
|
|
|
2011
2053
|
|
|
2012
2054
|
Example::
|
|
2013
2055
|
|
|
2014
|
-
#
|
|
2015
|
-
|
|
2016
|
-
|
|
2056
|
+
# Create custom resource handler entrypoint
|
|
2057
|
+
handler = lambda_.Function(self, "my-handler",
|
|
2058
|
+
runtime=lambda_.Runtime.NODEJS_20_X,
|
|
2059
|
+
handler="index.handler",
|
|
2060
|
+
code=lambda_.Code.from_inline("""
|
|
2061
|
+
exports.handler = async (event, context) => {
|
|
2062
|
+
return {
|
|
2063
|
+
PhysicalResourceId: '1234',
|
|
2064
|
+
NoEcho: true,
|
|
2065
|
+
Data: {
|
|
2066
|
+
mySecret: 'secret-value',
|
|
2067
|
+
hello: 'world',
|
|
2068
|
+
ghToken: 'gho_xxxxxxx',
|
|
2069
|
+
},
|
|
2070
|
+
};
|
|
2071
|
+
};""")
|
|
2072
|
+
)
|
|
2017
2073
|
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
provider_function_name="the-lambda-name"
|
|
2074
|
+
# Provision a custom resource provider framework
|
|
2075
|
+
provider = cr.Provider(self, "my-provider",
|
|
2076
|
+
on_event_handler=handler
|
|
2077
|
+
)
|
|
2078
|
+
|
|
2079
|
+
CustomResource(self, "my-cr",
|
|
2080
|
+
service_token=provider.service_token
|
|
2026
2081
|
)
|
|
2027
2082
|
'''
|
|
2028
2083
|
|
|
@@ -2166,18 +2221,31 @@ class ProviderProps:
|
|
|
2166
2221
|
|
|
2167
2222
|
Example::
|
|
2168
2223
|
|
|
2169
|
-
#
|
|
2170
|
-
|
|
2171
|
-
|
|
2224
|
+
# Create custom resource handler entrypoint
|
|
2225
|
+
handler = lambda_.Function(self, "my-handler",
|
|
2226
|
+
runtime=lambda_.Runtime.NODEJS_20_X,
|
|
2227
|
+
handler="index.handler",
|
|
2228
|
+
code=lambda_.Code.from_inline("""
|
|
2229
|
+
exports.handler = async (event, context) => {
|
|
2230
|
+
return {
|
|
2231
|
+
PhysicalResourceId: '1234',
|
|
2232
|
+
NoEcho: true,
|
|
2233
|
+
Data: {
|
|
2234
|
+
mySecret: 'secret-value',
|
|
2235
|
+
hello: 'world',
|
|
2236
|
+
ghToken: 'gho_xxxxxxx',
|
|
2237
|
+
},
|
|
2238
|
+
};
|
|
2239
|
+
};""")
|
|
2240
|
+
)
|
|
2241
|
+
|
|
2242
|
+
# Provision a custom resource provider framework
|
|
2243
|
+
provider = cr.Provider(self, "my-provider",
|
|
2244
|
+
on_event_handler=handler
|
|
2245
|
+
)
|
|
2172
2246
|
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
is_complete_handler=is_complete,
|
|
2176
|
-
log_group=logs.LogGroup(self, "MyProviderLogs",
|
|
2177
|
-
retention=logs.RetentionDays.ONE_DAY
|
|
2178
|
-
),
|
|
2179
|
-
role=my_role,
|
|
2180
|
-
provider_function_name="the-lambda-name"
|
|
2247
|
+
CustomResource(self, "my-cr",
|
|
2248
|
+
service_token=provider.service_token
|
|
2181
2249
|
)
|
|
2182
2250
|
'''
|
|
2183
2251
|
if isinstance(vpc_subnets, dict):
|
aws_cdk/pipelines/__init__.py
CHANGED
|
@@ -28,7 +28,7 @@ construct library directly.
|
|
|
28
28
|
> engines other than CodePipeline.
|
|
29
29
|
>
|
|
30
30
|
> The README for the original API, as well as a migration guide, can be found in
|
|
31
|
-
> [our GitHub repository](https://github.com/aws/aws-cdk/blob/main/packages
|
|
31
|
+
> [our GitHub repository](https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/pipelines/ORIGINAL_API.md).
|
|
32
32
|
|
|
33
33
|
## At a glance
|
|
34
34
|
|
aws_cdk/region_info/__init__.py
CHANGED
|
@@ -18,8 +18,7 @@ the regional information database:
|
|
|
18
18
|
region = region_info.RegionInfo.get("eu-west-1")
|
|
19
19
|
|
|
20
20
|
# Access attributes:
|
|
21
|
-
region.s3_static_website_endpoint
|
|
22
|
-
region.service_principal("logs.amazonaws.com")
|
|
21
|
+
region.s3_static_website_endpoint
|
|
23
22
|
```
|
|
24
23
|
|
|
25
24
|
The `RegionInfo` layer is built on top of the Low-Level API, which is described
|
|
@@ -34,9 +33,6 @@ a list of known fact names, which can then be used with the `RegionInfo` to
|
|
|
34
33
|
retrieve a particular value:
|
|
35
34
|
|
|
36
35
|
```python
|
|
37
|
-
code_deploy_principal = region_info.Fact.find("us-east-1", region_info.FactName.service_principal("codedeploy.amazonaws.com"))
|
|
38
|
-
# => codedeploy.us-east-1.amazonaws.com
|
|
39
|
-
|
|
40
36
|
static_website = region_info.Fact.find("ap-northeast-1", region_info.FactName.S3_STATIC_WEBSITE_ENDPOINT)
|
|
41
37
|
```
|
|
42
38
|
|
|
@@ -94,7 +90,15 @@ from .._jsii import *
|
|
|
94
90
|
|
|
95
91
|
|
|
96
92
|
class Default(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.region_info.Default"):
|
|
97
|
-
'''Provides default values for certain regional information points.
|
|
93
|
+
'''(deprecated) Provides default values for certain regional information points.
|
|
94
|
+
|
|
95
|
+
This class is no longer needed because service principals are no longer needed except in very specific cases
|
|
96
|
+
that are handled in the IAM ServicePrincipal class.
|
|
97
|
+
|
|
98
|
+
:deprecated: - Service principals are now globally ``<SERVICE>.amazonaws.com``, use iam.ServicePrincipal instead.
|
|
99
|
+
|
|
100
|
+
:stability: deprecated
|
|
101
|
+
'''
|
|
98
102
|
|
|
99
103
|
@jsii.member(jsii_name="servicePrincipal")
|
|
100
104
|
@builtins.classmethod
|
|
@@ -104,7 +108,7 @@ class Default(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.region_info.Defaul
|
|
|
104
108
|
region: builtins.str,
|
|
105
109
|
url_suffix: builtins.str,
|
|
106
110
|
) -> builtins.str:
|
|
107
|
-
'''Computes a "standard" AWS Service principal for a given service, region and suffix.
|
|
111
|
+
'''(deprecated) Computes a "standard" AWS Service principal for a given service, region and suffix.
|
|
108
112
|
|
|
109
113
|
This is useful for example when
|
|
110
114
|
you need to compute a service principal name, but you do not have a synthesize-time region literal available (so
|
|
@@ -114,6 +118,10 @@ class Default(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.region_info.Defaul
|
|
|
114
118
|
:param service_fqn: the name of the service (s3, s3.amazonaws.com, ...).
|
|
115
119
|
:param region: the region in which the service principal is needed.
|
|
116
120
|
:param url_suffix: deprecated and ignored.
|
|
121
|
+
|
|
122
|
+
:deprecated: - Service principals are now globally ``<SERVICE>.amazonaws.com``, use iam.ServicePrincipal instead.
|
|
123
|
+
|
|
124
|
+
:stability: deprecated
|
|
117
125
|
'''
|
|
118
126
|
if __debug__:
|
|
119
127
|
type_hints = typing.get_type_hints(_typecheckingstub__6ed580ab93fc60dd8fa1b87d26acd7858752bf9581325d9fdde38b224ee5da52)
|
|
@@ -125,7 +133,12 @@ class Default(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.region_info.Defaul
|
|
|
125
133
|
@jsii.python.classproperty
|
|
126
134
|
@jsii.member(jsii_name="VPC_ENDPOINT_SERVICE_NAME_PREFIX")
|
|
127
135
|
def VPC_ENDPOINT_SERVICE_NAME_PREFIX(cls) -> builtins.str:
|
|
128
|
-
'''The default value for a VPC Endpoint Service name prefix, useful if you do not have a synthesize-time region literal available (all you have is ``{ "Ref": "AWS::Region" }``).
|
|
136
|
+
'''(deprecated) The default value for a VPC Endpoint Service name prefix, useful if you do not have a synthesize-time region literal available (all you have is ``{ "Ref": "AWS::Region" }``).
|
|
137
|
+
|
|
138
|
+
:deprecated: - Use VpceEndpointService.DEFAULT_PREFIX instead
|
|
139
|
+
|
|
140
|
+
:stability: deprecated
|
|
141
|
+
'''
|
|
129
142
|
return typing.cast(builtins.str, jsii.sget(cls, "VPC_ENDPOINT_SERVICE_NAME_PREFIX"))
|
|
130
143
|
|
|
131
144
|
|
|
@@ -339,9 +352,13 @@ class FactName(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.region_info.FactN
|
|
|
339
352
|
@jsii.member(jsii_name="servicePrincipal")
|
|
340
353
|
@builtins.classmethod
|
|
341
354
|
def service_principal(cls, service: builtins.str) -> builtins.str:
|
|
342
|
-
'''The name of the regional service principal for a given service.
|
|
355
|
+
'''(deprecated) The name of the regional service principal for a given service.
|
|
343
356
|
|
|
344
357
|
:param service: the service name, either simple (e.g: ``s3``, ``codedeploy``) or qualified (e.g: ``s3.amazonaws.com``). The ``.amazonaws.com`` and ``.amazonaws.com.cn`` domains are stripped from service names, so they are canonicalized in that respect.
|
|
358
|
+
|
|
359
|
+
:deprecated: - Use ``iam.ServicePrincipal.servicePrincipalName()`` instead.
|
|
360
|
+
|
|
361
|
+
:stability: deprecated
|
|
345
362
|
'''
|
|
346
363
|
if __debug__:
|
|
347
364
|
type_hints = typing.get_type_hints(_typecheckingstub__b14fde076501b6bbe3459fe473f8a85eda6046b48c735804859dd2c381a5566f)
|
|
@@ -511,8 +528,7 @@ class RegionInfo(
|
|
|
511
528
|
region = region_info.RegionInfo.get("eu-west-1")
|
|
512
529
|
|
|
513
530
|
# Access attributes:
|
|
514
|
-
region.s3_static_website_endpoint
|
|
515
|
-
region.service_principal("logs.amazonaws.com")
|
|
531
|
+
region.s3_static_website_endpoint
|
|
516
532
|
'''
|
|
517
533
|
|
|
518
534
|
@jsii.member(jsii_name="get")
|
|
@@ -643,9 +659,13 @@ class RegionInfo(
|
|
|
643
659
|
|
|
644
660
|
@jsii.member(jsii_name="servicePrincipal")
|
|
645
661
|
def service_principal(self, service: builtins.str) -> typing.Optional[builtins.str]:
|
|
646
|
-
'''The name of the service principal for a given service in this region.
|
|
662
|
+
'''(deprecated) The name of the service principal for a given service in this region.
|
|
647
663
|
|
|
648
664
|
:param service: the service name (e.g: s3.amazonaws.com).
|
|
665
|
+
|
|
666
|
+
:deprecated: - Use ``iam.ServicePrincipal.servicePrincipalName()`` instead.
|
|
667
|
+
|
|
668
|
+
:stability: deprecated
|
|
649
669
|
'''
|
|
650
670
|
if __debug__:
|
|
651
671
|
type_hints = typing.get_type_hints(_typecheckingstub__b7fa00c6eee8344d2d7dec9a9b3e5aabd291377b56af4261818a521770e400cf)
|