aws-cdk-lib 2.175.1__py3-none-any.whl → 2.176.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 +15 -6
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.175.1.jsii.tgz → aws-cdk-lib@2.176.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +159 -7
- aws_cdk/aws_appconfig/__init__.py +106 -24
- aws_cdk/aws_appsync/__init__.py +3 -3
- aws_cdk/aws_backup/__init__.py +18 -84
- aws_cdk/aws_cleanrooms/__init__.py +77 -34
- aws_cdk/aws_cloudformation/__init__.py +4 -2
- aws_cdk/aws_cloudfront/experimental/__init__.py +1 -1
- aws_cdk/aws_cloudwatch/__init__.py +53 -49
- aws_cdk/aws_codebuild/__init__.py +36 -0
- aws_cdk/aws_cognito/__init__.py +228 -219
- aws_cdk/aws_customerprofiles/__init__.py +1060 -0
- aws_cdk/aws_docdb/__init__.py +29 -9
- aws_cdk/aws_dynamodb/__init__.py +77 -58
- aws_cdk/aws_ec2/__init__.py +11 -8
- aws_cdk/aws_ecs/__init__.py +100 -35
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +41 -5
- aws_cdk/aws_healthlake/__init__.py +36 -40
- aws_cdk/aws_lambda/__init__.py +8 -8
- aws_cdk/aws_lambda_event_sources/__init__.py +9 -9
- aws_cdk/aws_lex/__init__.py +105 -0
- aws_cdk/aws_mediaconvert/__init__.py +7 -3
- aws_cdk/aws_organizations/__init__.py +5 -9
- aws_cdk/aws_rds/__init__.py +83 -8
- aws_cdk/aws_resiliencehub/__init__.py +41 -0
- aws_cdk/aws_s3/__init__.py +5 -5
- aws_cdk/aws_ses/__init__.py +25 -4
- aws_cdk/aws_ssm/__init__.py +9 -2
- aws_cdk/aws_ssmquicksetup/__init__.py +84 -84
- aws_cdk/aws_sso/__init__.py +9 -5
- aws_cdk/cx_api/__init__.py +25 -4
- {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.176.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.176.0.dist-info}/RECORD +39 -40
- aws_cdk/aws_iot1click/__init__.py +0 -1193
- {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.176.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.176.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.176.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.175.1.dist-info → aws_cdk_lib-2.176.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_docdb/__init__.py
CHANGED
|
@@ -641,16 +641,16 @@ class CfnDBCluster(
|
|
|
641
641
|
:param enable_cloudwatch_logs_exports: The list of log types that need to be enabled for exporting to Amazon CloudWatch Logs. You can enable audit logs or profiler logs. For more information, see `Auditing Amazon DocumentDB Events <https://docs.aws.amazon.com/documentdb/latest/developerguide/event-auditing.html>`_ and `Profiling Amazon DocumentDB Operations <https://docs.aws.amazon.com/documentdb/latest/developerguide/profiling.html>`_ .
|
|
642
642
|
:param engine_version: The version number of the database engine to use. The ``--engine-version`` will default to the latest major engine version. For production workloads, we recommend explicitly declaring this parameter with the intended major engine version. Changing the ``EngineVersion`` will start an in-place engine version upgrade. Note that in-place engine version upgrade will cause downtime in the cluster. See `Amazon DocumentDB in-place major version upgrade <https://docs.aws.amazon.com/documentdb/latest/developerguide/docdb-mvu.html>`_ before starting an in-place engine version upgrade.
|
|
643
643
|
:param kms_key_id: The AWS KMS key identifier for an encrypted cluster. The AWS KMS key identifier is the Amazon Resource Name (ARN) for the AWS KMS encryption key. If you are creating a cluster using the same AWS account that owns the AWS KMS encryption key that is used to encrypt the new cluster, you can use the AWS KMS key alias instead of the ARN for the AWS KMS encryption key. If an encryption key is not specified in ``KmsKeyId`` : - If the ``StorageEncrypted`` parameter is ``true`` , Amazon DocumentDB uses your default encryption key. AWS KMS creates the default encryption key for your AWS account . Your AWS account has a different default encryption key for each AWS Regions .
|
|
644
|
-
:param manage_master_user_password:
|
|
644
|
+
:param manage_master_user_password: Specifies whether to manage the master user password with Amazon Web Services Secrets Manager. Constraint: You can't manage the master user password with Amazon Web Services Secrets Manager if ``MasterUserPassword`` is specified.
|
|
645
645
|
:param master_username: The name of the master user for the cluster. Constraints: - Must be from 1 to 63 letters or numbers. - The first character must be a letter. - Cannot be a reserved word for the chosen database engine.
|
|
646
646
|
:param master_user_password: The password for the master database user. This password can contain any printable ASCII character except forward slash (/), double quote ("), or the "at" symbol (@). Constraints: Must contain from 8 to 100 characters.
|
|
647
|
-
:param master_user_secret_kms_key_id:
|
|
647
|
+
:param master_user_secret_kms_key_id: The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager. This setting is valid only if the master user password is managed by Amazon DocumentDB in Amazon Web Services Secrets Manager for the DB cluster. The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. If you don't specify ``MasterUserSecretKmsKeyId`` , then the ``aws/secretsmanager`` KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the ``aws/secretsmanager`` KMS key to encrypt the secret, and you must use a customer managed KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.
|
|
648
648
|
:param port: Specifies the port that the database engine is listening on.
|
|
649
649
|
:param preferred_backup_window: The daily time range during which automated backups are created if automated backups are enabled using the ``BackupRetentionPeriod`` parameter. The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region . 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.
|
|
650
650
|
: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. Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun Constraints: Minimum 30-minute window.
|
|
651
651
|
:param restore_to_time: The date and time to restore the cluster to. Valid values: A time in Universal Coordinated Time (UTC) format. Constraints: - Must be before the latest restorable time for the instance. - Must be specified if the ``UseLatestRestorableTime`` parameter is not provided. - Cannot be specified if the ``UseLatestRestorableTime`` parameter is ``true`` . - Cannot be specified if the ``RestoreType`` parameter is ``copy-on-write`` . Example: ``2015-03-07T23:45:00Z``
|
|
652
652
|
: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. Constraints: You can't specify ``copy-on-write`` if the engine version of the source DB cluster is earlier than 1.11. If you don't specify a ``RestoreType`` value, then the new DB cluster is restored as a full copy of the source DB cluster.
|
|
653
|
-
:param rotate_master_user_password:
|
|
653
|
+
:param rotate_master_user_password: Specifies whether to rotate the secret managed by Amazon Web Services Secrets Manager for the master user password. This setting is valid only if the master user password is managed by Amazon DocumentDB in Amazon Web Services Secrets Manager for the cluster. The secret value contains the updated password. Constraint: You must apply the change immediately when rotating the master user password.
|
|
654
654
|
:param serverless_v2_scaling_configuration:
|
|
655
655
|
:param snapshot_identifier: The identifier for the snapshot or cluster snapshot to restore from. You can use either the name or the Amazon Resource Name (ARN) to specify a cluster snapshot. However, you can use only the ARN to specify a snapshot. Constraints: - Must match the identifier of an existing snapshot.
|
|
656
656
|
:param source_db_cluster_identifier: The identifier of the source cluster from which to restore. Constraints: - Must match the identifier of an existing ``DBCluster`` .
|
|
@@ -950,6 +950,7 @@ class CfnDBCluster(
|
|
|
950
950
|
def manage_master_user_password(
|
|
951
951
|
self,
|
|
952
952
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
953
|
+
'''Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.'''
|
|
953
954
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "manageMasterUserPassword"))
|
|
954
955
|
|
|
955
956
|
@manage_master_user_password.setter
|
|
@@ -991,6 +992,7 @@ class CfnDBCluster(
|
|
|
991
992
|
@builtins.property
|
|
992
993
|
@jsii.member(jsii_name="masterUserSecretKmsKeyId")
|
|
993
994
|
def master_user_secret_kms_key_id(self) -> typing.Optional[builtins.str]:
|
|
995
|
+
'''The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager.'''
|
|
994
996
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "masterUserSecretKmsKeyId"))
|
|
995
997
|
|
|
996
998
|
@master_user_secret_kms_key_id.setter
|
|
@@ -1079,6 +1081,7 @@ class CfnDBCluster(
|
|
|
1079
1081
|
def rotate_master_user_password(
|
|
1080
1082
|
self,
|
|
1081
1083
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
1084
|
+
'''Specifies whether to rotate the secret managed by Amazon Web Services Secrets Manager for the master user password.'''
|
|
1082
1085
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "rotateMasterUserPassword"))
|
|
1083
1086
|
|
|
1084
1087
|
@rotate_master_user_password.setter
|
|
@@ -1693,16 +1696,16 @@ class CfnDBClusterProps:
|
|
|
1693
1696
|
:param enable_cloudwatch_logs_exports: The list of log types that need to be enabled for exporting to Amazon CloudWatch Logs. You can enable audit logs or profiler logs. For more information, see `Auditing Amazon DocumentDB Events <https://docs.aws.amazon.com/documentdb/latest/developerguide/event-auditing.html>`_ and `Profiling Amazon DocumentDB Operations <https://docs.aws.amazon.com/documentdb/latest/developerguide/profiling.html>`_ .
|
|
1694
1697
|
:param engine_version: The version number of the database engine to use. The ``--engine-version`` will default to the latest major engine version. For production workloads, we recommend explicitly declaring this parameter with the intended major engine version. Changing the ``EngineVersion`` will start an in-place engine version upgrade. Note that in-place engine version upgrade will cause downtime in the cluster. See `Amazon DocumentDB in-place major version upgrade <https://docs.aws.amazon.com/documentdb/latest/developerguide/docdb-mvu.html>`_ before starting an in-place engine version upgrade.
|
|
1695
1698
|
:param kms_key_id: The AWS KMS key identifier for an encrypted cluster. The AWS KMS key identifier is the Amazon Resource Name (ARN) for the AWS KMS encryption key. If you are creating a cluster using the same AWS account that owns the AWS KMS encryption key that is used to encrypt the new cluster, you can use the AWS KMS key alias instead of the ARN for the AWS KMS encryption key. If an encryption key is not specified in ``KmsKeyId`` : - If the ``StorageEncrypted`` parameter is ``true`` , Amazon DocumentDB uses your default encryption key. AWS KMS creates the default encryption key for your AWS account . Your AWS account has a different default encryption key for each AWS Regions .
|
|
1696
|
-
:param manage_master_user_password:
|
|
1699
|
+
:param manage_master_user_password: Specifies whether to manage the master user password with Amazon Web Services Secrets Manager. Constraint: You can't manage the master user password with Amazon Web Services Secrets Manager if ``MasterUserPassword`` is specified.
|
|
1697
1700
|
:param master_username: The name of the master user for the cluster. Constraints: - Must be from 1 to 63 letters or numbers. - The first character must be a letter. - Cannot be a reserved word for the chosen database engine.
|
|
1698
1701
|
:param master_user_password: The password for the master database user. This password can contain any printable ASCII character except forward slash (/), double quote ("), or the "at" symbol (@). Constraints: Must contain from 8 to 100 characters.
|
|
1699
|
-
:param master_user_secret_kms_key_id:
|
|
1702
|
+
:param master_user_secret_kms_key_id: The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager. This setting is valid only if the master user password is managed by Amazon DocumentDB in Amazon Web Services Secrets Manager for the DB cluster. The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. If you don't specify ``MasterUserSecretKmsKeyId`` , then the ``aws/secretsmanager`` KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the ``aws/secretsmanager`` KMS key to encrypt the secret, and you must use a customer managed KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.
|
|
1700
1703
|
:param port: Specifies the port that the database engine is listening on.
|
|
1701
1704
|
:param preferred_backup_window: The daily time range during which automated backups are created if automated backups are enabled using the ``BackupRetentionPeriod`` parameter. The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region . 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.
|
|
1702
1705
|
: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. Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun Constraints: Minimum 30-minute window.
|
|
1703
1706
|
:param restore_to_time: The date and time to restore the cluster to. Valid values: A time in Universal Coordinated Time (UTC) format. Constraints: - Must be before the latest restorable time for the instance. - Must be specified if the ``UseLatestRestorableTime`` parameter is not provided. - Cannot be specified if the ``UseLatestRestorableTime`` parameter is ``true`` . - Cannot be specified if the ``RestoreType`` parameter is ``copy-on-write`` . Example: ``2015-03-07T23:45:00Z``
|
|
1704
1707
|
: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. Constraints: You can't specify ``copy-on-write`` if the engine version of the source DB cluster is earlier than 1.11. If you don't specify a ``RestoreType`` value, then the new DB cluster is restored as a full copy of the source DB cluster.
|
|
1705
|
-
:param rotate_master_user_password:
|
|
1708
|
+
:param rotate_master_user_password: Specifies whether to rotate the secret managed by Amazon Web Services Secrets Manager for the master user password. This setting is valid only if the master user password is managed by Amazon DocumentDB in Amazon Web Services Secrets Manager for the cluster. The secret value contains the updated password. Constraint: You must apply the change immediately when rotating the master user password.
|
|
1706
1709
|
:param serverless_v2_scaling_configuration:
|
|
1707
1710
|
:param snapshot_identifier: The identifier for the snapshot or cluster snapshot to restore from. You can use either the name or the Amazon Resource Name (ARN) to specify a cluster snapshot. However, you can use only the ARN to specify a snapshot. Constraints: - Must match the identifier of an existing snapshot.
|
|
1708
1711
|
:param source_db_cluster_identifier: The identifier of the source cluster from which to restore. Constraints: - Must match the identifier of an existing ``DBCluster`` .
|
|
@@ -1982,7 +1985,10 @@ class CfnDBClusterProps:
|
|
|
1982
1985
|
def manage_master_user_password(
|
|
1983
1986
|
self,
|
|
1984
1987
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
1985
|
-
'''
|
|
1988
|
+
'''Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.
|
|
1989
|
+
|
|
1990
|
+
Constraint: You can't manage the master user password with Amazon Web Services Secrets Manager if ``MasterUserPassword`` is specified.
|
|
1991
|
+
|
|
1986
1992
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbcluster.html#cfn-docdb-dbcluster-managemasteruserpassword
|
|
1987
1993
|
'''
|
|
1988
1994
|
result = self._values.get("manage_master_user_password")
|
|
@@ -2018,7 +2024,16 @@ class CfnDBClusterProps:
|
|
|
2018
2024
|
|
|
2019
2025
|
@builtins.property
|
|
2020
2026
|
def master_user_secret_kms_key_id(self) -> typing.Optional[builtins.str]:
|
|
2021
|
-
'''
|
|
2027
|
+
'''The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager.
|
|
2028
|
+
|
|
2029
|
+
This setting is valid only if the master user password is managed by Amazon DocumentDB in Amazon Web Services Secrets Manager for the DB cluster.
|
|
2030
|
+
|
|
2031
|
+
The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.
|
|
2032
|
+
|
|
2033
|
+
If you don't specify ``MasterUserSecretKmsKeyId`` , then the ``aws/secretsmanager`` KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the ``aws/secretsmanager`` KMS key to encrypt the secret, and you must use a customer managed KMS key.
|
|
2034
|
+
|
|
2035
|
+
There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.
|
|
2036
|
+
|
|
2022
2037
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbcluster.html#cfn-docdb-dbcluster-masterusersecretkmskeyid
|
|
2023
2038
|
'''
|
|
2024
2039
|
result = self._values.get("master_user_secret_kms_key_id")
|
|
@@ -2108,7 +2123,12 @@ class CfnDBClusterProps:
|
|
|
2108
2123
|
def rotate_master_user_password(
|
|
2109
2124
|
self,
|
|
2110
2125
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
2111
|
-
'''
|
|
2126
|
+
'''Specifies whether to rotate the secret managed by Amazon Web Services Secrets Manager for the master user password.
|
|
2127
|
+
|
|
2128
|
+
This setting is valid only if the master user password is managed by Amazon DocumentDB in Amazon Web Services Secrets Manager for the cluster. The secret value contains the updated password.
|
|
2129
|
+
|
|
2130
|
+
Constraint: You must apply the change immediately when rotating the master user password.
|
|
2131
|
+
|
|
2112
2132
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbcluster.html#cfn-docdb-dbcluster-rotatemasteruserpassword
|
|
2113
2133
|
'''
|
|
2114
2134
|
result = self._values.get("rotate_master_user_password")
|
aws_cdk/aws_dynamodb/__init__.py
CHANGED
|
@@ -567,7 +567,7 @@ stack = cdk.Stack(app, "Stack", env=cdk.Environment(region="us-west-2"))
|
|
|
567
567
|
|
|
568
568
|
global_table = dynamodb.TableV2(stack, "GlobalTable",
|
|
569
569
|
partition_key=dynamodb.Attribute(name="pk", type=dynamodb.AttributeType.STRING),
|
|
570
|
-
#
|
|
570
|
+
# applies to all replicas, i.e., us-west-2, us-east-1, us-east-2
|
|
571
571
|
removal_policy=cdk.RemovalPolicy.DESTROY,
|
|
572
572
|
replicas=[dynamodb.ReplicaTableProps(region="us-east-1"), dynamodb.ReplicaTableProps(region="us-east-2")
|
|
573
573
|
]
|
|
@@ -729,7 +729,7 @@ global_table = dynamodb.TableV2(stack, "GlobalTable",
|
|
|
729
729
|
]
|
|
730
730
|
)
|
|
731
731
|
|
|
732
|
-
# grantReadData only
|
|
732
|
+
# grantReadData only applies to the table in us-west-2 and the tableKey
|
|
733
733
|
global_table.grant_read_data(user)
|
|
734
734
|
```
|
|
735
735
|
|
|
@@ -758,7 +758,7 @@ global_table = dynamodb.TableV2(stack, "GlobalTable",
|
|
|
758
758
|
]
|
|
759
759
|
)
|
|
760
760
|
|
|
761
|
-
# grantReadData
|
|
761
|
+
# grantReadData applies to the table in us-east-2 and the key arn for the key in us-east-2
|
|
762
762
|
global_table.replica("us-east-2").grant_read_data(user)
|
|
763
763
|
```
|
|
764
764
|
|
|
@@ -793,50 +793,40 @@ cloudwatch.Alarm(self, "Alarm",
|
|
|
793
793
|
The `replica` method can be used to generate a metric for a specific replica table:
|
|
794
794
|
|
|
795
795
|
```python
|
|
796
|
-
import
|
|
797
|
-
import
|
|
796
|
+
import aws_cdk as cdk
|
|
797
|
+
import aws_cdk.aws_cloudwatch as cloudwatch
|
|
798
798
|
|
|
799
|
-
class FooStack extends cdk.Stack {
|
|
800
|
-
public readonly globalTable: dynamodb.TableV2;
|
|
801
799
|
|
|
802
|
-
|
|
803
|
-
super(scope, id, props);
|
|
800
|
+
class FooStack(cdk.Stack):
|
|
804
801
|
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
replicas: [
|
|
808
|
-
{ region: 'us-east-1' },
|
|
809
|
-
{ region: 'us-east-2' },
|
|
810
|
-
],
|
|
811
|
-
});
|
|
812
|
-
}
|
|
813
|
-
}
|
|
802
|
+
def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, notificationArns=None, synthesizer=None, terminationProtection=None, analyticsReporting=None, crossRegionReferences=None, permissionsBoundary=None, suppressTemplateIndentation=None):
|
|
803
|
+
super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, notificationArns=notificationArns, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting, crossRegionReferences=crossRegionReferences, permissionsBoundary=permissionsBoundary, suppressTemplateIndentation=suppressTemplateIndentation)
|
|
814
804
|
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
805
|
+
self.global_table = dynamodb.TableV2(self, "GlobalTable",
|
|
806
|
+
partition_key=dynamodb.Attribute(name="pk", type=dynamodb.AttributeType.STRING),
|
|
807
|
+
replicas=[dynamodb.ReplicaTableProps(region="us-east-1"), dynamodb.ReplicaTableProps(region="us-east-2")
|
|
808
|
+
]
|
|
809
|
+
)
|
|
818
810
|
|
|
819
|
-
class BarStack
|
|
820
|
-
|
|
821
|
-
|
|
811
|
+
class BarStack(cdk.Stack):
|
|
812
|
+
def __init__(self, scope, id, *, replicaTable, description=None, env=None, stackName=None, tags=None, notificationArns=None, synthesizer=None, terminationProtection=None, analyticsReporting=None, crossRegionReferences=None, permissionsBoundary=None, suppressTemplateIndentation=None):
|
|
813
|
+
super().__init__(scope, id, replicaTable=replicaTable, description=description, env=env, stackName=stackName, tags=tags, notificationArns=notificationArns, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting, crossRegionReferences=crossRegionReferences, permissionsBoundary=permissionsBoundary, suppressTemplateIndentation=suppressTemplateIndentation)
|
|
822
814
|
|
|
823
|
-
|
|
824
|
-
|
|
815
|
+
# metric is only for the table in us-east-1
|
|
816
|
+
metric = replica_table.metric_consumed_read_capacity_units()
|
|
825
817
|
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
}
|
|
832
|
-
}
|
|
818
|
+
cloudwatch.Alarm(self, "Alarm",
|
|
819
|
+
metric=metric,
|
|
820
|
+
evaluation_periods=1,
|
|
821
|
+
threshold=1
|
|
822
|
+
)
|
|
833
823
|
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
824
|
+
app = cdk.App()
|
|
825
|
+
foo_stack = FooStack(app, "FooStack", env=cdk.Environment(region="us-west-2"))
|
|
826
|
+
bar_stack = BarStack(app, "BarStack",
|
|
827
|
+
replica_table=foo_stack.global_table.replica("us-east-1"),
|
|
828
|
+
env=cdk.Environment(region="us-east-1")
|
|
829
|
+
)
|
|
840
830
|
```
|
|
841
831
|
|
|
842
832
|
## import from S3 Bucket
|
|
@@ -1051,7 +1041,7 @@ class Attribute:
|
|
|
1051
1041
|
|
|
1052
1042
|
global_table = dynamodb.TableV2(stack, "GlobalTable",
|
|
1053
1043
|
partition_key=dynamodb.Attribute(name="pk", type=dynamodb.AttributeType.STRING),
|
|
1054
|
-
#
|
|
1044
|
+
# applies to all replicas, i.e., us-west-2, us-east-1, us-east-2
|
|
1055
1045
|
removal_policy=cdk.RemovalPolicy.DESTROY,
|
|
1056
1046
|
replicas=[dynamodb.ReplicaTableProps(region="us-east-1"), dynamodb.ReplicaTableProps(region="us-east-2")
|
|
1057
1047
|
]
|
|
@@ -1109,7 +1099,7 @@ class AttributeType(enum.Enum):
|
|
|
1109
1099
|
|
|
1110
1100
|
global_table = dynamodb.TableV2(stack, "GlobalTable",
|
|
1111
1101
|
partition_key=dynamodb.Attribute(name="pk", type=dynamodb.AttributeType.STRING),
|
|
1112
|
-
#
|
|
1102
|
+
# applies to all replicas, i.e., us-west-2, us-east-1, us-east-2
|
|
1113
1103
|
removal_policy=cdk.RemovalPolicy.DESTROY,
|
|
1114
1104
|
replicas=[dynamodb.ReplicaTableProps(region="us-east-1"), dynamodb.ReplicaTableProps(region="us-east-2")
|
|
1115
1105
|
]
|
|
@@ -1559,7 +1549,8 @@ class CfnGlobalTable(
|
|
|
1559
1549
|
approximate_creation_date_time_precision="approximateCreationDateTimePrecision"
|
|
1560
1550
|
),
|
|
1561
1551
|
point_in_time_recovery_specification=dynamodb.CfnGlobalTable.PointInTimeRecoverySpecificationProperty(
|
|
1562
|
-
point_in_time_recovery_enabled=False
|
|
1552
|
+
point_in_time_recovery_enabled=False,
|
|
1553
|
+
recovery_period_in_days=123
|
|
1563
1554
|
),
|
|
1564
1555
|
read_on_demand_throughput_settings=dynamodb.CfnGlobalTable.ReadOnDemandThroughputSettingsProperty(
|
|
1565
1556
|
max_read_request_units=123
|
|
@@ -1651,7 +1642,8 @@ class CfnGlobalTable(
|
|
|
1651
1642
|
)
|
|
1652
1643
|
)],
|
|
1653
1644
|
point_in_time_recovery_specification=dynamodb.CfnGlobalTable.PointInTimeRecoverySpecificationProperty(
|
|
1654
|
-
point_in_time_recovery_enabled=False
|
|
1645
|
+
point_in_time_recovery_enabled=False,
|
|
1646
|
+
recovery_period_in_days=123
|
|
1655
1647
|
),
|
|
1656
1648
|
sse_specification=dynamodb.CfnGlobalTable.SSESpecificationProperty(
|
|
1657
1649
|
sse_enabled=False,
|
|
@@ -2801,17 +2793,22 @@ class CfnGlobalTable(
|
|
|
2801
2793
|
@jsii.data_type(
|
|
2802
2794
|
jsii_type="aws-cdk-lib.aws_dynamodb.CfnGlobalTable.PointInTimeRecoverySpecificationProperty",
|
|
2803
2795
|
jsii_struct_bases=[],
|
|
2804
|
-
name_mapping={
|
|
2796
|
+
name_mapping={
|
|
2797
|
+
"point_in_time_recovery_enabled": "pointInTimeRecoveryEnabled",
|
|
2798
|
+
"recovery_period_in_days": "recoveryPeriodInDays",
|
|
2799
|
+
},
|
|
2805
2800
|
)
|
|
2806
2801
|
class PointInTimeRecoverySpecificationProperty:
|
|
2807
2802
|
def __init__(
|
|
2808
2803
|
self,
|
|
2809
2804
|
*,
|
|
2810
2805
|
point_in_time_recovery_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
2806
|
+
recovery_period_in_days: typing.Optional[jsii.Number] = None,
|
|
2811
2807
|
) -> None:
|
|
2812
2808
|
'''Represents the settings used to enable point in time recovery.
|
|
2813
2809
|
|
|
2814
2810
|
:param point_in_time_recovery_enabled: Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.
|
|
2811
|
+
:param recovery_period_in_days: The number of preceding days for which continuous backups are taken and maintained. Your table data is only recoverable to any point-in-time from within the configured recovery period. This parameter is optional. If no value is provided, the value will default to 35.
|
|
2815
2812
|
|
|
2816
2813
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-pointintimerecoveryspecification.html
|
|
2817
2814
|
:exampleMetadata: fixture=_generated
|
|
@@ -2823,15 +2820,19 @@ class CfnGlobalTable(
|
|
|
2823
2820
|
from aws_cdk import aws_dynamodb as dynamodb
|
|
2824
2821
|
|
|
2825
2822
|
point_in_time_recovery_specification_property = dynamodb.CfnGlobalTable.PointInTimeRecoverySpecificationProperty(
|
|
2826
|
-
point_in_time_recovery_enabled=False
|
|
2823
|
+
point_in_time_recovery_enabled=False,
|
|
2824
|
+
recovery_period_in_days=123
|
|
2827
2825
|
)
|
|
2828
2826
|
'''
|
|
2829
2827
|
if __debug__:
|
|
2830
2828
|
type_hints = typing.get_type_hints(_typecheckingstub__d5290cad7073a0d0e9ec36328a3c9ddef8999cbd0266a5bcc51dd77a05820353)
|
|
2831
2829
|
check_type(argname="argument point_in_time_recovery_enabled", value=point_in_time_recovery_enabled, expected_type=type_hints["point_in_time_recovery_enabled"])
|
|
2830
|
+
check_type(argname="argument recovery_period_in_days", value=recovery_period_in_days, expected_type=type_hints["recovery_period_in_days"])
|
|
2832
2831
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
2833
2832
|
if point_in_time_recovery_enabled is not None:
|
|
2834
2833
|
self._values["point_in_time_recovery_enabled"] = point_in_time_recovery_enabled
|
|
2834
|
+
if recovery_period_in_days is not None:
|
|
2835
|
+
self._values["recovery_period_in_days"] = recovery_period_in_days
|
|
2835
2836
|
|
|
2836
2837
|
@builtins.property
|
|
2837
2838
|
def point_in_time_recovery_enabled(
|
|
@@ -2844,6 +2845,17 @@ class CfnGlobalTable(
|
|
|
2844
2845
|
result = self._values.get("point_in_time_recovery_enabled")
|
|
2845
2846
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
2846
2847
|
|
|
2848
|
+
@builtins.property
|
|
2849
|
+
def recovery_period_in_days(self) -> typing.Optional[jsii.Number]:
|
|
2850
|
+
'''The number of preceding days for which continuous backups are taken and maintained.
|
|
2851
|
+
|
|
2852
|
+
Your table data is only recoverable to any point-in-time from within the configured recovery period. This parameter is optional. If no value is provided, the value will default to 35.
|
|
2853
|
+
|
|
2854
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-globaltable-pointintimerecoveryspecification.html#cfn-dynamodb-globaltable-pointintimerecoveryspecification-recoveryperiodindays
|
|
2855
|
+
'''
|
|
2856
|
+
result = self._values.get("recovery_period_in_days")
|
|
2857
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
2858
|
+
|
|
2847
2859
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2848
2860
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2849
2861
|
|
|
@@ -3391,7 +3403,8 @@ class CfnGlobalTable(
|
|
|
3391
3403
|
approximate_creation_date_time_precision="approximateCreationDateTimePrecision"
|
|
3392
3404
|
),
|
|
3393
3405
|
point_in_time_recovery_specification=dynamodb.CfnGlobalTable.PointInTimeRecoverySpecificationProperty(
|
|
3394
|
-
point_in_time_recovery_enabled=False
|
|
3406
|
+
point_in_time_recovery_enabled=False,
|
|
3407
|
+
recovery_period_in_days=123
|
|
3395
3408
|
),
|
|
3396
3409
|
read_on_demand_throughput_settings=dynamodb.CfnGlobalTable.ReadOnDemandThroughputSettingsProperty(
|
|
3397
3410
|
max_read_request_units=123
|
|
@@ -4438,7 +4451,8 @@ class CfnGlobalTableProps:
|
|
|
4438
4451
|
approximate_creation_date_time_precision="approximateCreationDateTimePrecision"
|
|
4439
4452
|
),
|
|
4440
4453
|
point_in_time_recovery_specification=dynamodb.CfnGlobalTable.PointInTimeRecoverySpecificationProperty(
|
|
4441
|
-
point_in_time_recovery_enabled=False
|
|
4454
|
+
point_in_time_recovery_enabled=False,
|
|
4455
|
+
recovery_period_in_days=123
|
|
4442
4456
|
),
|
|
4443
4457
|
read_on_demand_throughput_settings=dynamodb.CfnGlobalTable.ReadOnDemandThroughputSettingsProperty(
|
|
4444
4458
|
max_read_request_units=123
|
|
@@ -4530,7 +4544,8 @@ class CfnGlobalTableProps:
|
|
|
4530
4544
|
)
|
|
4531
4545
|
)],
|
|
4532
4546
|
point_in_time_recovery_specification=dynamodb.CfnGlobalTable.PointInTimeRecoverySpecificationProperty(
|
|
4533
|
-
point_in_time_recovery_enabled=False
|
|
4547
|
+
point_in_time_recovery_enabled=False,
|
|
4548
|
+
recovery_period_in_days=123
|
|
4534
4549
|
),
|
|
4535
4550
|
sse_specification=dynamodb.CfnGlobalTable.SSESpecificationProperty(
|
|
4536
4551
|
sse_enabled=False,
|
|
@@ -6435,7 +6450,7 @@ class CfnTable(
|
|
|
6435
6450
|
'''The settings used to enable point in time recovery.
|
|
6436
6451
|
|
|
6437
6452
|
:param point_in_time_recovery_enabled: Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.
|
|
6438
|
-
:param recovery_period_in_days:
|
|
6453
|
+
:param recovery_period_in_days: The number of preceding days for which continuous backups are taken and maintained. Your table data is only recoverable to any point-in-time from within the configured recovery period. This parameter is optional. If no value is provided, the value will default to 35.
|
|
6439
6454
|
|
|
6440
6455
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-pointintimerecoveryspecification.html
|
|
6441
6456
|
:exampleMetadata: fixture=_generated
|
|
@@ -6474,7 +6489,10 @@ class CfnTable(
|
|
|
6474
6489
|
|
|
6475
6490
|
@builtins.property
|
|
6476
6491
|
def recovery_period_in_days(self) -> typing.Optional[jsii.Number]:
|
|
6477
|
-
'''
|
|
6492
|
+
'''The number of preceding days for which continuous backups are taken and maintained.
|
|
6493
|
+
|
|
6494
|
+
Your table data is only recoverable to any point-in-time from within the configured recovery period. This parameter is optional. If no value is provided, the value will default to 35.
|
|
6495
|
+
|
|
6478
6496
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-pointintimerecoveryspecification.html#cfn-dynamodb-table-pointintimerecoveryspecification-recoveryperiodindays
|
|
6479
6497
|
'''
|
|
6480
6498
|
result = self._values.get("recovery_period_in_days")
|
|
@@ -12931,7 +12949,7 @@ class TableProps(TableOptions):
|
|
|
12931
12949
|
:param wait_for_replication_to_finish: [WARNING: Use this flag with caution, misusing this flag may cause deleting existing replicas, refer to the detailed documentation for more information] Indicates whether CloudFormation stack waits for replication to finish. If set to false, the CloudFormation resource will mark the resource as created and replication will be completed asynchronously. This property is ignored if replicationRegions property is not set. WARNING: DO NOT UNSET this property if adding/removing multiple replicationRegions in one deployment, as CloudFormation only supports one region replication at a time. CDK overcomes this limitation by waiting for replication to finish before starting new replicationRegion. If the custom resource which handles replication has a physical resource ID with the format ``region`` instead of ``tablename-region`` (this would happen if the custom resource hasn't received an event since v1.91.0), DO NOT SET this property to false without making a change to the table name. This will cause the existing replicas to be deleted. Default: true
|
|
12932
12950
|
:param warm_throughput: Specify values to pre-warm you DynamoDB Table Warm Throughput feature is not available for Global Table replicas using the ``Table`` construct. To enable Warm Throughput, use the ``TableV2`` construct instead. Default: - warm throughput is not configured
|
|
12933
12951
|
:param write_capacity: The write capacity for the table. Careful if you add Global Secondary Indexes, as those will share the table's provisioned throughput. Can only be provided if billingMode is Provisioned. Default: 5
|
|
12934
|
-
:param kinesis_precision_timestamp: Kinesis Data Stream approximate creation timestamp
|
|
12952
|
+
:param kinesis_precision_timestamp: Kinesis Data Stream approximate creation timestamp precision. Default: ApproximateCreationDateTimePrecision.MICROSECOND
|
|
12935
12953
|
:param kinesis_stream: Kinesis Data Stream to capture item-level changes for the table. Default: - no Kinesis Data Stream
|
|
12936
12954
|
:param table_name: Enforces a particular physical table name. Default:
|
|
12937
12955
|
|
|
@@ -13309,7 +13327,7 @@ class TableProps(TableOptions):
|
|
|
13309
13327
|
def kinesis_precision_timestamp(
|
|
13310
13328
|
self,
|
|
13311
13329
|
) -> typing.Optional[ApproximateCreationDateTimePrecision]:
|
|
13312
|
-
'''Kinesis Data Stream approximate creation timestamp
|
|
13330
|
+
'''Kinesis Data Stream approximate creation timestamp precision.
|
|
13313
13331
|
|
|
13314
13332
|
:default: ApproximateCreationDateTimePrecision.MICROSECOND
|
|
13315
13333
|
'''
|
|
@@ -13429,7 +13447,7 @@ class TablePropsV2(TableOptionsV2):
|
|
|
13429
13447
|
|
|
13430
13448
|
global_table = dynamodb.TableV2(stack, "GlobalTable",
|
|
13431
13449
|
partition_key=dynamodb.Attribute(name="pk", type=dynamodb.AttributeType.STRING),
|
|
13432
|
-
#
|
|
13450
|
+
# applies to all replicas, i.e., us-west-2, us-east-1, us-east-2
|
|
13433
13451
|
removal_policy=cdk.RemovalPolicy.DESTROY,
|
|
13434
13452
|
replicas=[dynamodb.ReplicaTableProps(region="us-east-1"), dynamodb.ReplicaTableProps(region="us-east-2")
|
|
13435
13453
|
]
|
|
@@ -13720,7 +13738,7 @@ class TableV2(
|
|
|
13720
13738
|
|
|
13721
13739
|
global_table = dynamodb.TableV2(stack, "GlobalTable",
|
|
13722
13740
|
partition_key=dynamodb.Attribute(name="pk", type=dynamodb.AttributeType.STRING),
|
|
13723
|
-
#
|
|
13741
|
+
# applies to all replicas, i.e., us-west-2, us-east-1, us-east-2
|
|
13724
13742
|
removal_policy=cdk.RemovalPolicy.DESTROY,
|
|
13725
13743
|
replicas=[dynamodb.ReplicaTableProps(region="us-east-1"), dynamodb.ReplicaTableProps(region="us-east-2")
|
|
13726
13744
|
]
|
|
@@ -13985,7 +14003,7 @@ class TableV2(
|
|
|
13985
14003
|
|
|
13986
14004
|
:param region: The region that the replica table will be created in.
|
|
13987
14005
|
:param global_secondary_index_options: Options used to configure global secondary index properties. Default: - inherited from the primary table
|
|
13988
|
-
:param max_read_request_units: The
|
|
14006
|
+
:param max_read_request_units: The maximum read request units. Note: This can only be configured if the primary table billing is PAY_PER_REQUEST. Default: - inherited from the primary table
|
|
13989
14007
|
:param read_capacity: The read capacity. Note: This can only be configured if the primary table billing is provisioned. Default: - inherited from the primary table
|
|
13990
14008
|
:param contributor_insights: Whether CloudWatch contributor insights is enabled. Default: false
|
|
13991
14009
|
:param deletion_protection: Whether deletion protection is enabled. Default: false
|
|
@@ -15214,7 +15232,7 @@ class ReplicaTableProps(TableOptionsV2):
|
|
|
15214
15232
|
:param tags: Tags to be applied to the primary table (default replica table). Default: - no tags
|
|
15215
15233
|
:param region: The region that the replica table will be created in.
|
|
15216
15234
|
:param global_secondary_index_options: Options used to configure global secondary index properties. Default: - inherited from the primary table
|
|
15217
|
-
:param max_read_request_units: The
|
|
15235
|
+
:param max_read_request_units: The maximum read request units. Note: This can only be configured if the primary table billing is PAY_PER_REQUEST. Default: - inherited from the primary table
|
|
15218
15236
|
:param read_capacity: The read capacity. Note: This can only be configured if the primary table billing is provisioned. Default: - inherited from the primary table
|
|
15219
15237
|
|
|
15220
15238
|
:exampleMetadata: infused
|
|
@@ -15356,7 +15374,7 @@ class ReplicaTableProps(TableOptionsV2):
|
|
|
15356
15374
|
|
|
15357
15375
|
@builtins.property
|
|
15358
15376
|
def max_read_request_units(self) -> typing.Optional[jsii.Number]:
|
|
15359
|
-
'''The
|
|
15377
|
+
'''The maximum read request units.
|
|
15360
15378
|
|
|
15361
15379
|
Note: This can only be configured if the primary table billing is PAY_PER_REQUEST.
|
|
15362
15380
|
|
|
@@ -15456,7 +15474,7 @@ class Table(
|
|
|
15456
15474
|
'''
|
|
15457
15475
|
:param scope: -
|
|
15458
15476
|
:param id: -
|
|
15459
|
-
:param kinesis_precision_timestamp: Kinesis Data Stream approximate creation timestamp
|
|
15477
|
+
:param kinesis_precision_timestamp: Kinesis Data Stream approximate creation timestamp precision. Default: ApproximateCreationDateTimePrecision.MICROSECOND
|
|
15460
15478
|
:param kinesis_stream: Kinesis Data Stream to capture item-level changes for the table. Default: - no Kinesis Data Stream
|
|
15461
15479
|
:param table_name: Enforces a particular physical table name. Default:
|
|
15462
15480
|
:param billing_mode: Specify how you are charged for read and write throughput and how you manage capacity. Default: PROVISIONED if ``replicationRegions`` is not specified, PAY_PER_REQUEST otherwise
|
|
@@ -16094,6 +16112,7 @@ def _typecheckingstub__cc80bdf64e67d180ed664a6277a7783edc8ac361b313b1a9c645a7fbe
|
|
|
16094
16112
|
def _typecheckingstub__d5290cad7073a0d0e9ec36328a3c9ddef8999cbd0266a5bcc51dd77a05820353(
|
|
16095
16113
|
*,
|
|
16096
16114
|
point_in_time_recovery_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
16115
|
+
recovery_period_in_days: typing.Optional[jsii.Number] = None,
|
|
16097
16116
|
) -> None:
|
|
16098
16117
|
"""Type checking stubs"""
|
|
16099
16118
|
pass
|
aws_cdk/aws_ec2/__init__.py
CHANGED
|
@@ -12055,7 +12055,7 @@ class CfnEC2Fleet(
|
|
|
12055
12055
|
:param accelerator_manufacturers: Indicates whether instance types must have accelerators by specific manufacturers. - For instance types with AWS devices, specify ``amazon-web-services`` . - For instance types with AMD devices, specify ``amd`` . - For instance types with Habana devices, specify ``habana`` . - For instance types with NVIDIA devices, specify ``nvidia`` . - For instance types with Xilinx devices, specify ``xilinx`` . Default: Any manufacturer
|
|
12056
12056
|
:param accelerator_names: The accelerators that must be on the instance type. - For instance types with NVIDIA A10G GPUs, specify ``a10g`` . - For instance types with NVIDIA A100 GPUs, specify ``a100`` . - For instance types with NVIDIA H100 GPUs, specify ``h100`` . - For instance types with AWS Inferentia chips, specify ``inferentia`` . - For instance types with NVIDIA GRID K520 GPUs, specify ``k520`` . - For instance types with NVIDIA K80 GPUs, specify ``k80`` . - For instance types with NVIDIA M60 GPUs, specify ``m60`` . - For instance types with AMD Radeon Pro V520 GPUs, specify ``radeon-pro-v520`` . - For instance types with NVIDIA T4 GPUs, specify ``t4`` . - For instance types with NVIDIA T4G GPUs, specify ``t4g`` . - For instance types with Xilinx VU9P FPGAs, specify ``vu9p`` . - For instance types with NVIDIA V100 GPUs, specify ``v100`` . Default: Any accelerator
|
|
12057
12057
|
:param accelerator_total_memory_mib: The minimum and maximum amount of total accelerator memory, in MiB. Default: No minimum or maximum limits
|
|
12058
|
-
:param accelerator_types: The accelerator types that must be on the instance type. -
|
|
12058
|
+
:param accelerator_types: The accelerator types that must be on the instance type. - For instance types with FPGA accelerators, specify ``fpga`` . - For instance types with GPU accelerators, specify ``gpu`` . - For instance types with Inference accelerators, specify ``inference`` . Default: Any accelerator type
|
|
12059
12059
|
:param allowed_instance_types: The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk ( ``*`` ), to allow an instance type, size, or generation. The following are examples: ``m5.8xlarge`` , ``c5*.*`` , ``m5a.*`` , ``r*`` , ``*3*`` . For example, if you specify ``c5*`` ,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*`` , Amazon EC2 will allow all the M5a instance types, but not the M5n instance types. .. epigraph:: If you specify ``AllowedInstanceTypes`` , you can't specify ``ExcludedInstanceTypes`` . Default: All instance types
|
|
12060
12060
|
:param bare_metal: Indicates whether bare metal instance types must be included, excluded, or required. - To include bare metal instance types, specify ``included`` . - To require only bare metal instance types, specify ``required`` . - To exclude bare metal instance types, specify ``excluded`` . Default: ``excluded``
|
|
12061
12061
|
:param baseline_ebs_bandwidth_mbps: The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see `Amazon EBS–optimized instances <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html>`_ in the *Amazon EC2 User Guide* . Default: No minimum or maximum limits
|
|
@@ -12301,8 +12301,9 @@ class CfnEC2Fleet(
|
|
|
12301
12301
|
def accelerator_types(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
12302
12302
|
'''The accelerator types that must be on the instance type.
|
|
12303
12303
|
|
|
12304
|
-
-
|
|
12305
|
-
-
|
|
12304
|
+
- For instance types with FPGA accelerators, specify ``fpga`` .
|
|
12305
|
+
- For instance types with GPU accelerators, specify ``gpu`` .
|
|
12306
|
+
- For instance types with Inference accelerators, specify ``inference`` .
|
|
12306
12307
|
|
|
12307
12308
|
Default: Any accelerator type
|
|
12308
12309
|
|
|
@@ -26251,7 +26252,7 @@ class CfnLaunchTemplate(
|
|
|
26251
26252
|
:param accelerator_manufacturers: Indicates whether instance types must have accelerators by specific manufacturers. - For instance types with AWS devices, specify ``amazon-web-services`` . - For instance types with AMD devices, specify ``amd`` . - For instance types with Habana devices, specify ``habana`` . - For instance types with NVIDIA devices, specify ``nvidia`` . - For instance types with Xilinx devices, specify ``xilinx`` . Default: Any manufacturer
|
|
26252
26253
|
:param accelerator_names: The accelerators that must be on the instance type. - For instance types with NVIDIA A10G GPUs, specify ``a10g`` . - For instance types with NVIDIA A100 GPUs, specify ``a100`` . - For instance types with NVIDIA H100 GPUs, specify ``h100`` . - For instance types with AWS Inferentia chips, specify ``inferentia`` . - For instance types with NVIDIA GRID K520 GPUs, specify ``k520`` . - For instance types with NVIDIA K80 GPUs, specify ``k80`` . - For instance types with NVIDIA M60 GPUs, specify ``m60`` . - For instance types with AMD Radeon Pro V520 GPUs, specify ``radeon-pro-v520`` . - For instance types with NVIDIA T4 GPUs, specify ``t4`` . - For instance types with NVIDIA T4G GPUs, specify ``t4g`` . - For instance types with Xilinx VU9P FPGAs, specify ``vu9p`` . - For instance types with NVIDIA V100 GPUs, specify ``v100`` . Default: Any accelerator
|
|
26253
26254
|
:param accelerator_total_memory_mib: The minimum and maximum amount of total accelerator memory, in MiB. Default: No minimum or maximum limits
|
|
26254
|
-
:param accelerator_types: The accelerator types that must be on the instance type. - For instance types with GPU accelerators, specify ``gpu`` . - For instance types with
|
|
26255
|
+
:param accelerator_types: The accelerator types that must be on the instance type. - For instance types with FPGA accelerators, specify ``fpga`` . - For instance types with GPU accelerators, specify ``gpu`` . - For instance types with Inference accelerators, specify ``inference`` . Default: Any accelerator type
|
|
26255
26256
|
:param allowed_instance_types: The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk ( ``*`` ), to allow an instance type, size, or generation. The following are examples: ``m5.8xlarge`` , ``c5*.*`` , ``m5a.*`` , ``r*`` , ``*3*`` . For example, if you specify ``c5*`` ,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*`` , Amazon EC2 will allow all the M5a instance types, but not the M5n instance types. .. epigraph:: If you specify ``AllowedInstanceTypes`` , you can't specify ``ExcludedInstanceTypes`` . Default: All instance types
|
|
26256
26257
|
:param bare_metal: Indicates whether bare metal instance types must be included, excluded, or required. - To include bare metal instance types, specify ``included`` . - To require only bare metal instance types, specify ``required`` . - To exclude bare metal instance types, specify ``excluded`` . Default: ``excluded``
|
|
26257
26258
|
:param baseline_ebs_bandwidth_mbps: The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see `Amazon EBS–optimized instances <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html>`_ in the *Amazon EC2 User Guide* . Default: No minimum or maximum limits
|
|
@@ -26497,8 +26498,9 @@ class CfnLaunchTemplate(
|
|
|
26497
26498
|
def accelerator_types(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
26498
26499
|
'''The accelerator types that must be on the instance type.
|
|
26499
26500
|
|
|
26500
|
-
- For instance types with GPU accelerators, specify ``gpu`` .
|
|
26501
26501
|
- For instance types with FPGA accelerators, specify ``fpga`` .
|
|
26502
|
+
- For instance types with GPU accelerators, specify ``gpu`` .
|
|
26503
|
+
- For instance types with Inference accelerators, specify ``inference`` .
|
|
26502
26504
|
|
|
26503
26505
|
Default: Any accelerator type
|
|
26504
26506
|
|
|
@@ -45559,7 +45561,7 @@ class CfnSpotFleet(
|
|
|
45559
45561
|
:param accelerator_manufacturers: Indicates whether instance types must have accelerators by specific manufacturers. - For instance types with AWS devices, specify ``amazon-web-services`` . - For instance types with AMD devices, specify ``amd`` . - For instance types with Habana devices, specify ``habana`` . - For instance types with NVIDIA devices, specify ``nvidia`` . - For instance types with Xilinx devices, specify ``xilinx`` . Default: Any manufacturer
|
|
45560
45562
|
:param accelerator_names: The accelerators that must be on the instance type. - For instance types with NVIDIA A10G GPUs, specify ``a10g`` . - For instance types with NVIDIA A100 GPUs, specify ``a100`` . - For instance types with NVIDIA H100 GPUs, specify ``h100`` . - For instance types with AWS Inferentia chips, specify ``inferentia`` . - For instance types with NVIDIA GRID K520 GPUs, specify ``k520`` . - For instance types with NVIDIA K80 GPUs, specify ``k80`` . - For instance types with NVIDIA M60 GPUs, specify ``m60`` . - For instance types with AMD Radeon Pro V520 GPUs, specify ``radeon-pro-v520`` . - For instance types with NVIDIA T4 GPUs, specify ``t4`` . - For instance types with NVIDIA T4G GPUs, specify ``t4g`` . - For instance types with Xilinx VU9P FPGAs, specify ``vu9p`` . - For instance types with NVIDIA V100 GPUs, specify ``v100`` . Default: Any accelerator
|
|
45561
45563
|
:param accelerator_total_memory_mib: The minimum and maximum amount of total accelerator memory, in MiB. Default: No minimum or maximum limits
|
|
45562
|
-
:param accelerator_types: The accelerator types that must be on the instance type. -
|
|
45564
|
+
:param accelerator_types: The accelerator types that must be on the instance type. - For instance types with FPGA accelerators, specify ``fpga`` . - For instance types with GPU accelerators, specify ``gpu`` . - For instance types with Inference accelerators, specify ``inference`` . Default: Any accelerator type
|
|
45563
45565
|
:param allowed_instance_types: The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk ( ``*`` ), to allow an instance type, size, or generation. The following are examples: ``m5.8xlarge`` , ``c5*.*`` , ``m5a.*`` , ``r*`` , ``*3*`` . For example, if you specify ``c5*`` ,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*`` , Amazon EC2 will allow all the M5a instance types, but not the M5n instance types. .. epigraph:: If you specify ``AllowedInstanceTypes`` , you can't specify ``ExcludedInstanceTypes`` . Default: All instance types
|
|
45564
45566
|
:param bare_metal: Indicates whether bare metal instance types must be included, excluded, or required. - To include bare metal instance types, specify ``included`` . - To require only bare metal instance types, specify ``required`` . - To exclude bare metal instance types, specify ``excluded`` . Default: ``excluded``
|
|
45565
45567
|
:param baseline_ebs_bandwidth_mbps: The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see `Amazon EBS–optimized instances <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html>`_ in the *Amazon EC2 User Guide* . Default: No minimum or maximum limits
|
|
@@ -45805,8 +45807,9 @@ class CfnSpotFleet(
|
|
|
45805
45807
|
def accelerator_types(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
45806
45808
|
'''The accelerator types that must be on the instance type.
|
|
45807
45809
|
|
|
45808
|
-
-
|
|
45809
|
-
-
|
|
45810
|
+
- For instance types with FPGA accelerators, specify ``fpga`` .
|
|
45811
|
+
- For instance types with GPU accelerators, specify ``gpu`` .
|
|
45812
|
+
- For instance types with Inference accelerators, specify ``inference`` .
|
|
45810
45813
|
|
|
45811
45814
|
Default: Any accelerator type
|
|
45812
45815
|
|