aws-cdk-lib 2.90.0__py3-none-any.whl → 2.92.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 +22 -4
- aws_cdk/_jsii/__init__.py +2 -2
- aws_cdk/_jsii/{aws-cdk-lib@2.90.0.jsii.tgz → aws-cdk-lib@2.92.0.jsii.tgz} +0 -0
- aws_cdk/aws_appstream/__init__.py +3 -3
- aws_cdk/aws_batch/__init__.py +39 -18
- aws_cdk/aws_billingconductor/__init__.py +44 -13
- aws_cdk/aws_cleanrooms/__init__.py +2 -4
- aws_cdk/aws_cloudtrail/__init__.py +35 -10
- aws_cdk/aws_cloudwatch/__init__.py +3 -3
- aws_cdk/aws_codebuild/__init__.py +7 -7
- aws_cdk/aws_cognito/__init__.py +8 -8
- aws_cdk/aws_config/__init__.py +220 -0
- aws_cdk/aws_datasync/__init__.py +22 -35
- aws_cdk/aws_dms/__init__.py +909 -4
- aws_cdk/aws_dynamodb/__init__.py +0 -1
- aws_cdk/aws_ec2/__init__.py +59 -21
- aws_cdk/aws_ecs/__init__.py +45 -21
- aws_cdk/aws_evidently/__init__.py +3 -3
- aws_cdk/aws_fsx/__init__.py +6 -5
- aws_cdk/aws_glue/__init__.py +438 -10
- aws_cdk/aws_guardduty/__init__.py +60 -17
- aws_cdk/aws_iam/__init__.py +8 -9
- aws_cdk/aws_iot/__init__.py +5 -1
- aws_cdk/aws_kms/__init__.py +95 -47
- aws_cdk/aws_lambda/__init__.py +4 -2
- aws_cdk/aws_lambda_nodejs/__init__.py +3 -3
- aws_cdk/aws_mediatailor/__init__.py +2902 -892
- aws_cdk/aws_mwaa/__init__.py +13 -8
- aws_cdk/aws_neptune/__init__.py +50 -2
- aws_cdk/aws_omics/__init__.py +80 -0
- aws_cdk/aws_opensearchserverless/__init__.py +3 -3
- aws_cdk/aws_opensearchservice/__init__.py +247 -14
- aws_cdk/aws_organizations/__init__.py +17 -17
- aws_cdk/aws_personalize/__init__.py +41 -25
- aws_cdk/aws_rds/__init__.py +24 -10
- aws_cdk/aws_resiliencehub/__init__.py +22 -22
- aws_cdk/aws_rolesanywhere/__init__.py +58 -74
- aws_cdk/aws_route53/__init__.py +3 -1
- aws_cdk/aws_s3/__init__.py +17 -7
- aws_cdk/aws_sagemaker/__init__.py +396 -5
- aws_cdk/aws_sns/__init__.py +8 -8
- aws_cdk/aws_sqs/__init__.py +231 -4
- aws_cdk/aws_ssm/__init__.py +6 -28
- aws_cdk/aws_stepfunctions/__init__.py +7 -7
- aws_cdk/aws_timestream/__init__.py +243 -0
- aws_cdk/aws_transfer/__init__.py +250 -52
- aws_cdk/aws_vpclattice/__init__.py +10 -6
- aws_cdk/aws_wafv2/__init__.py +7517 -5036
- aws_cdk/custom_resources/__init__.py +18 -30
- {aws_cdk_lib-2.90.0.dist-info → aws_cdk_lib-2.92.0.dist-info}/METADATA +8 -8
- {aws_cdk_lib-2.90.0.dist-info → aws_cdk_lib-2.92.0.dist-info}/RECORD +55 -55
- {aws_cdk_lib-2.90.0.dist-info → aws_cdk_lib-2.92.0.dist-info}/WHEEL +1 -1
- {aws_cdk_lib-2.90.0.dist-info → aws_cdk_lib-2.92.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.90.0.dist-info → aws_cdk_lib-2.92.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.90.0.dist-info → aws_cdk_lib-2.92.0.dist-info}/top_level.txt +0 -0
aws_cdk/__init__.py
CHANGED
|
@@ -13413,12 +13413,17 @@ class Fn(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Fn"):
|
|
|
13413
13413
|
map_name: builtins.str,
|
|
13414
13414
|
top_level_key: builtins.str,
|
|
13415
13415
|
second_level_key: builtins.str,
|
|
13416
|
+
default_value: typing.Optional[builtins.str] = None,
|
|
13416
13417
|
) -> builtins.str:
|
|
13417
13418
|
'''The intrinsic function ``Fn::FindInMap`` returns the value corresponding to keys in a two-level map that is declared in the Mappings section.
|
|
13418
13419
|
|
|
13420
|
+
Warning: do not use with lazy mappings as this function will not guarentee a lazy mapping to render in the template.
|
|
13421
|
+
Prefer to use ``CfnMapping.findInMap`` in general.
|
|
13422
|
+
|
|
13419
13423
|
:param map_name: -
|
|
13420
13424
|
:param top_level_key: -
|
|
13421
13425
|
:param second_level_key: -
|
|
13426
|
+
:param default_value: -
|
|
13422
13427
|
|
|
13423
13428
|
:return: a token represented as a string
|
|
13424
13429
|
'''
|
|
@@ -13427,7 +13432,8 @@ class Fn(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.Fn"):
|
|
|
13427
13432
|
check_type(argname="argument map_name", value=map_name, expected_type=type_hints["map_name"])
|
|
13428
13433
|
check_type(argname="argument top_level_key", value=top_level_key, expected_type=type_hints["top_level_key"])
|
|
13429
13434
|
check_type(argname="argument second_level_key", value=second_level_key, expected_type=type_hints["second_level_key"])
|
|
13430
|
-
|
|
13435
|
+
check_type(argname="argument default_value", value=default_value, expected_type=type_hints["default_value"])
|
|
13436
|
+
return typing.cast(builtins.str, jsii.sinvoke(cls, "findInMap", [map_name, top_level_key, second_level_key, default_value]))
|
|
13431
13437
|
|
|
13432
13438
|
@jsii.member(jsii_name="getAtt")
|
|
13433
13439
|
@builtins.classmethod
|
|
@@ -27705,18 +27711,28 @@ class CfnMapping(
|
|
|
27705
27711
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
27706
27712
|
|
|
27707
27713
|
@jsii.member(jsii_name="findInMap")
|
|
27708
|
-
def find_in_map(
|
|
27714
|
+
def find_in_map(
|
|
27715
|
+
self,
|
|
27716
|
+
key1: builtins.str,
|
|
27717
|
+
key2: builtins.str,
|
|
27718
|
+
default_value: typing.Optional[builtins.str] = None,
|
|
27719
|
+
) -> builtins.str:
|
|
27709
27720
|
'''
|
|
27710
27721
|
:param key1: -
|
|
27711
27722
|
:param key2: -
|
|
27723
|
+
:param default_value: -
|
|
27724
|
+
|
|
27725
|
+
:return:
|
|
27712
27726
|
|
|
27713
|
-
|
|
27727
|
+
A reference to a value in the map based on the two keys.
|
|
27728
|
+
If mapping is lazy, the value from the map or default value is returned instead of the reference and the mapping is not rendered in the template.
|
|
27714
27729
|
'''
|
|
27715
27730
|
if __debug__:
|
|
27716
27731
|
type_hints = typing.get_type_hints(_typecheckingstub__1037909f089fad8e2efa78ff6e78a984ecd3b17a58a9feb0b10412af9c04fab6)
|
|
27717
27732
|
check_type(argname="argument key1", value=key1, expected_type=type_hints["key1"])
|
|
27718
27733
|
check_type(argname="argument key2", value=key2, expected_type=type_hints["key2"])
|
|
27719
|
-
|
|
27734
|
+
check_type(argname="argument default_value", value=default_value, expected_type=type_hints["default_value"])
|
|
27735
|
+
return typing.cast(builtins.str, jsii.invoke(self, "findInMap", [key1, key2, default_value]))
|
|
27720
27736
|
|
|
27721
27737
|
@jsii.member(jsii_name="setValue")
|
|
27722
27738
|
def set_value(
|
|
@@ -34807,6 +34823,7 @@ def _typecheckingstub__a418601ea806056ab758734464be8a572e937b0cd4ac3c0b0fcc9e226
|
|
|
34807
34823
|
map_name: builtins.str,
|
|
34808
34824
|
top_level_key: builtins.str,
|
|
34809
34825
|
second_level_key: builtins.str,
|
|
34826
|
+
default_value: typing.Optional[builtins.str] = None,
|
|
34810
34827
|
) -> None:
|
|
34811
34828
|
"""Type checking stubs"""
|
|
34812
34829
|
pass
|
|
@@ -36626,6 +36643,7 @@ def _typecheckingstub__3d43975ac86dcf5ed0c9055dda60fb664bfda7a1d9a714b0ea35f23e3
|
|
|
36626
36643
|
def _typecheckingstub__1037909f089fad8e2efa78ff6e78a984ecd3b17a58a9feb0b10412af9c04fab6(
|
|
36627
36644
|
key1: builtins.str,
|
|
36628
36645
|
key2: builtins.str,
|
|
36646
|
+
default_value: typing.Optional[builtins.str] = None,
|
|
36629
36647
|
) -> None:
|
|
36630
36648
|
"""Type checking stubs"""
|
|
36631
36649
|
pass
|
aws_cdk/_jsii/__init__.py
CHANGED
|
@@ -12,11 +12,11 @@ from typeguard import check_type
|
|
|
12
12
|
|
|
13
13
|
import aws_cdk.asset_awscli_v1._jsii
|
|
14
14
|
import aws_cdk.asset_kubectl_v20._jsii
|
|
15
|
-
import aws_cdk.
|
|
15
|
+
import aws_cdk.asset_node_proxy_agent_v6._jsii
|
|
16
16
|
import constructs._jsii
|
|
17
17
|
|
|
18
18
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
19
|
-
"aws-cdk-lib", "2.
|
|
19
|
+
"aws-cdk-lib", "2.92.0", __name__[0:-6], "aws-cdk-lib@2.92.0.jsii.tgz"
|
|
20
20
|
)
|
|
21
21
|
|
|
22
22
|
__all__ = [
|
|
Binary file
|
|
@@ -3384,7 +3384,7 @@ class CfnFleet(
|
|
|
3384
3384
|
:param image_arn: The ARN of the public, private, or shared image to use.
|
|
3385
3385
|
:param image_name: The name of the image used to create the fleet.
|
|
3386
3386
|
:param max_concurrent_sessions: The maximum number of concurrent sessions that can be run on an Elastic fleet. This setting is required for Elastic fleets, but is not used for other fleet types.
|
|
3387
|
-
:param max_user_duration_in_seconds: The maximum amount of time that a streaming session can remain active, in seconds. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance. Specify a value between 600 and
|
|
3387
|
+
:param max_user_duration_in_seconds: The maximum amount of time that a streaming session can remain active, in seconds. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance. Specify a value between 600 and 432000.
|
|
3388
3388
|
:param platform: The platform of the fleet. Platform is a required setting for Elastic fleets, and is not used for other fleet types. *Allowed Values* : ``WINDOWS_SERVER_2019`` | ``AMAZON_LINUX2``
|
|
3389
3389
|
:param session_script_s3_location: The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.
|
|
3390
3390
|
:param stream_view: The AppStream 2.0 view that is displayed to your users when they stream from the fleet. When ``APP`` is specified, only the windows of applications opened by users display. When ``DESKTOP`` is specified, the standard desktop that is provided by the operating system displays. The default value is ``APP`` .
|
|
@@ -4119,7 +4119,7 @@ class CfnFleetProps:
|
|
|
4119
4119
|
:param image_arn: The ARN of the public, private, or shared image to use.
|
|
4120
4120
|
:param image_name: The name of the image used to create the fleet.
|
|
4121
4121
|
:param max_concurrent_sessions: The maximum number of concurrent sessions that can be run on an Elastic fleet. This setting is required for Elastic fleets, but is not used for other fleet types.
|
|
4122
|
-
:param max_user_duration_in_seconds: The maximum amount of time that a streaming session can remain active, in seconds. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance. Specify a value between 600 and
|
|
4122
|
+
:param max_user_duration_in_seconds: The maximum amount of time that a streaming session can remain active, in seconds. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance. Specify a value between 600 and 432000.
|
|
4123
4123
|
:param platform: The platform of the fleet. Platform is a required setting for Elastic fleets, and is not used for other fleet types. *Allowed Values* : ``WINDOWS_SERVER_2019`` | ``AMAZON_LINUX2``
|
|
4124
4124
|
:param session_script_s3_location: The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.
|
|
4125
4125
|
:param stream_view: The AppStream 2.0 view that is displayed to your users when they stream from the fleet. When ``APP`` is specified, only the windows of applications opened by users display. When ``DESKTOP`` is specified, the standard desktop that is provided by the operating system displays. The default value is ``APP`` .
|
|
@@ -4415,7 +4415,7 @@ class CfnFleetProps:
|
|
|
4415
4415
|
|
|
4416
4416
|
If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance.
|
|
4417
4417
|
|
|
4418
|
-
Specify a value between 600 and
|
|
4418
|
+
Specify a value between 600 and 432000.
|
|
4419
4419
|
|
|
4420
4420
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appstream-fleet.html#cfn-appstream-fleet-maxuserdurationinseconds
|
|
4421
4421
|
'''
|
aws_cdk/aws_batch/__init__.py
CHANGED
|
@@ -466,16 +466,16 @@ class CfnComputeEnvironment(
|
|
|
466
466
|
|
|
467
467
|
This parameter is required for managed compute environments. For more information, see `Compute Environments <https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html>`_ in the *AWS Batch User Guide* .
|
|
468
468
|
|
|
469
|
-
:param maxv_cpus: The maximum number of Amazon EC2 vCPUs that an environment can reach. .. epigraph:: With
|
|
469
|
+
:param maxv_cpus: The maximum number of Amazon EC2 vCPUs that an environment can reach. .. epigraph:: With ``BEST_FIT_PROGRESSIVE`` , ``SPOT_CAPACITY_OPTIMIZED`` and ``SPOT_PRICE_CAPACITY_OPTIMIZED`` (recommended) strategies using On-Demand or Spot Instances, and the ``BEST_FIT`` strategy using Spot Instances, AWS Batch might need to exceed ``maxvCpus`` to meet your capacity requirements. In this event, AWS Batch never exceeds ``maxvCpus`` by more than a single instance.
|
|
470
470
|
:param subnets: The VPC subnets where the compute resources are launched. Fargate compute resources can contain up to 16 subnets. For Fargate compute resources, providing an empty list will be handled as if this parameter wasn't specified and no change is made. For EC2 compute resources, providing an empty list removes the VPC subnets from the compute resource. For more information, see `VPCs and subnets <https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html>`_ in the *Amazon VPC User Guide* . When updating a compute environment, changing the VPC subnets requires an infrastructure update of the compute environment. For more information, see `Updating compute environments <https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html>`_ in the *AWS Batch User Guide* . .. epigraph:: AWS Batch on Amazon EC2 and AWS Batch on Amazon EKS support Local Zones. For more information, see `Local Zones <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-local-zones>`_ in the *Amazon EC2 User Guide for Linux Instances* , `Amazon EKS and AWS Local Zones <https://docs.aws.amazon.com/eks/latest/userguide/local-zones.html>`_ in the *Amazon EKS User Guide* and `Amazon ECS clusters in Local Zones, Wavelength Zones, and AWS Outposts <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-regions-zones.html#clusters-local-zones>`_ in the *Amazon ECS Developer Guide* . AWS Batch on Fargate doesn't currently support Local Zones.
|
|
471
471
|
:param type: The type of compute environment: ``EC2`` , ``SPOT`` , ``FARGATE`` , or ``FARGATE_SPOT`` . For more information, see `Compute environments <https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html>`_ in the *AWS Batch User Guide* . If you choose ``SPOT`` , you must also specify an Amazon EC2 Spot Fleet role with the ``spotIamFleetRole`` parameter. For more information, see `Amazon EC2 spot fleet role <https://docs.aws.amazon.com/batch/latest/userguide/spot_fleet_IAM_role.html>`_ in the *AWS Batch User Guide* . When updating compute environment, changing the type of a compute environment requires an infrastructure update of the compute environment. For more information, see `Updating compute environments <https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html>`_ in the *AWS Batch User Guide* . When updating the type of a compute environment, changing between ``EC2`` and ``SPOT`` or between ``FARGATE`` and ``FARGATE_SPOT`` will initiate an infrastructure update, but if you switch between ``EC2`` and ``FARGATE`` , AWS CloudFormation will create a new compute environment.
|
|
472
|
-
:param allocation_strategy: The allocation strategy to use for the compute resource if not enough instances of the best fitting instance type can be allocated. This might be because of availability of the instance type in the Region or `Amazon EC2 service limits <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html>`_ . For more information, see `Allocation strategies <https://docs.aws.amazon.com/batch/latest/userguide/allocation-strategies.html>`_ in the *AWS Batch User Guide* . When updating a compute environment, changing the allocation strategy requires an infrastructure update of the compute environment. For more information, see `Updating compute environments <https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html>`_ in the *AWS Batch User Guide* . ``BEST_FIT`` is not supported when updating a compute environment. .. epigraph:: This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified. - **BEST_FIT (default)** - AWS Batch selects an instance type that best fits the needs of the jobs with a preference for the lowest-cost instance type. If additional instances of the selected instance type aren't available, AWS Batch waits for the additional instances to be available. If there aren't enough instances available, or if the user is reaching `Amazon EC2 service limits <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html>`_ then additional jobs aren't run until the currently running jobs have completed. This allocation strategy keeps costs lower but can limit scaling. If you are using Spot Fleets with ``BEST_FIT`` then the Spot Fleet IAM role must be specified. - **BEST_FIT_PROGRESSIVE** - AWS Batch will select additional instance types that are large enough to meet the requirements of the jobs in the queue, with a preference for instance types with a lower cost per unit vCPU. If additional instances of the previously selected instance types aren't available, AWS Batch will select new instance types. - **SPOT_CAPACITY_OPTIMIZED** - AWS Batch will select one or more instance types that are large enough to meet the requirements of the jobs in the queue, with a preference for instance types that are less likely to be interrupted. This allocation strategy is only available for Spot Instance compute resources.
|
|
472
|
+
:param allocation_strategy: The allocation strategy to use for the compute resource if not enough instances of the best fitting instance type can be allocated. This might be because of availability of the instance type in the Region or `Amazon EC2 service limits <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html>`_ . For more information, see `Allocation strategies <https://docs.aws.amazon.com/batch/latest/userguide/allocation-strategies.html>`_ in the *AWS Batch User Guide* . When updating a compute environment, changing the allocation strategy requires an infrastructure update of the compute environment. For more information, see `Updating compute environments <https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html>`_ in the *AWS Batch User Guide* . ``BEST_FIT`` is not supported when updating a compute environment. .. epigraph:: This parameter isn't applicable to jobs that are running on Fargate resources, and shouldn't be specified. - **BEST_FIT (default)** - AWS Batch selects an instance type that best fits the needs of the jobs with a preference for the lowest-cost instance type. If additional instances of the selected instance type aren't available, AWS Batch waits for the additional instances to be available. If there aren't enough instances available, or if the user is reaching `Amazon EC2 service limits <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html>`_ then additional jobs aren't run until the currently running jobs have completed. This allocation strategy keeps costs lower but can limit scaling. If you are using Spot Fleets with ``BEST_FIT`` then the Spot Fleet IAM role must be specified. - **BEST_FIT_PROGRESSIVE** - AWS Batch will select additional instance types that are large enough to meet the requirements of the jobs in the queue, with a preference for instance types with a lower cost per unit vCPU. If additional instances of the previously selected instance types aren't available, AWS Batch will select new instance types. - **SPOT_CAPACITY_OPTIMIZED** - AWS Batch will select one or more instance types that are large enough to meet the requirements of the jobs in the queue, with a preference for instance types that are less likely to be interrupted. This allocation strategy is only available for Spot Instance compute resources. - **SPOT_PRICE_CAPACITY_OPTIMIZED** - The price and capacity optimized allocation strategy looks at both price and capacity to select the Spot Instance pools that are the least likely to be interrupted and have the lowest possible price. This allocation strategy is only available for Spot Instance compute resources. .. epigraph:: We recommend that you use ``SPOT_PRICE_CAPACITY_OPTIMIZED`` rather than ``SPOT_CAPACITY_OPTIMIZED`` in most instances. With ``BEST_FIT_PROGRESSIVE`` , ``SPOT_CAPACITY_OPTIMIZED`` , and ``SPOT_PRICE_CAPACITY_OPTIMIZED`` allocation strategies using On-Demand or Spot Instances, and the ``BEST_FIT`` strategy using Spot Instances, AWS Batch might need to go above ``maxvCpus`` to meet your capacity requirements. In this event, AWS Batch never exceeds ``maxvCpus`` by more than a single instance.
|
|
473
473
|
:param bid_percentage: The maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that instance type before instances are launched. For example, if your maximum percentage is 20%, the Spot price must be less than 20% of the current On-Demand price for that Amazon EC2 instance. You always pay the lowest (market) price and never more than your maximum percentage. For most use cases, we recommend leaving this field empty. When updating a compute environment, changing the bid percentage requires an infrastructure update of the compute environment. For more information, see `Updating compute environments <https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html>`_ in the *AWS Batch User Guide* . .. epigraph:: This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
|
|
474
474
|
:param desiredv_cpus: The desired number of vCPUS in the compute environment. AWS Batch modifies this value between the minimum and maximum values based on job queue demand. .. epigraph:: This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. > AWS Batch doesn't support changing the desired number of vCPUs of an existing compute environment. Don't specify this parameter for compute environments using Amazon EKS clusters. > When you update the ``desiredvCpus`` setting, the value must be between the ``minvCpus`` and ``maxvCpus`` values. Additionally, the updated ``desiredvCpus`` value must be greater than or equal to the current ``desiredvCpus`` value. For more information, see `Troubleshooting AWS Batch <https://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#error-desired-vcpus-update>`_ in the *AWS Batch User Guide* .
|
|
475
475
|
:param ec2_configuration: Provides information used to select Amazon Machine Images (AMIs) for EC2 instances in the compute environment. If ``Ec2Configuration`` isn't specified, the default is ``ECS_AL2`` . When updating a compute environment, changing this setting requires an infrastructure update of the compute environment. For more information, see `Updating compute environments <https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html>`_ in the *AWS Batch User Guide* . To remove the EC2 configuration and any custom AMI ID specified in ``imageIdOverride`` , set this value to an empty string. One or two values can be provided. .. epigraph:: This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
|
|
476
476
|
:param ec2_key_pair: The Amazon EC2 key pair that's used for instances launched in the compute environment. You can use this key pair to log in to your instances with SSH. To remove the Amazon EC2 key pair, set this value to an empty string. When updating a compute environment, changing the EC2 key pair requires an infrastructure update of the compute environment. For more information, see `Updating compute environments <https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html>`_ in the *AWS Batch User Guide* . .. epigraph:: This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
|
|
477
477
|
:param image_id: The Amazon Machine Image (AMI) ID used for instances launched in the compute environment. This parameter is overridden by the ``imageIdOverride`` member of the ``Ec2Configuration`` structure. To remove the custom AMI ID and use the default AMI ID, set this value to an empty string. When updating a compute environment, changing the AMI ID requires an infrastructure update of the compute environment. For more information, see `Updating compute environments <https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html>`_ in the *AWS Batch User Guide* . .. epigraph:: This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. > The AMI that you choose for a compute environment must match the architecture of the instance types that you intend to use for that compute environment. For example, if your compute environment uses A1 instance types, the compute resource AMI that you choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of the Amazon ECS-optimized Amazon Linux 2 AMI. For more information, see `Amazon ECS-optimized Amazon Linux 2 AMI <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#ecs-optimized-ami-linux-variants.html>`_ in the *Amazon Elastic Container Service Developer Guide* .
|
|
478
|
-
:param instance_role: The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment. You can specify the short name or full Amazon Resource Name (ARN) of an instance profile. For example, ``*ecsInstanceRole*`` or ``arn:aws:iam:: *<aws_account_id>* :instance-profile/ *ecsInstanceRole*`` . For more information, see `Amazon ECS instance role <https://docs.aws.amazon.com/batch/latest/userguide/instance_IAM_role.html>`_ in the *AWS Batch User Guide* . When updating a compute environment, changing this setting requires an infrastructure update of the compute environment. For more information, see `Updating compute environments <https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html>`_ in the *AWS Batch User Guide* . .. epigraph:: This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
|
|
478
|
+
:param instance_role: The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment. Required for Amazon EC2 instances. You can specify the short name or full Amazon Resource Name (ARN) of an instance profile. For example, ``*ecsInstanceRole*`` or ``arn:aws:iam:: *<aws_account_id>* :instance-profile/ *ecsInstanceRole*`` . For more information, see `Amazon ECS instance role <https://docs.aws.amazon.com/batch/latest/userguide/instance_IAM_role.html>`_ in the *AWS Batch User Guide* . When updating a compute environment, changing this setting requires an infrastructure update of the compute environment. For more information, see `Updating compute environments <https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html>`_ in the *AWS Batch User Guide* . .. epigraph:: This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
|
|
479
479
|
:param instance_types: The instances types that can be launched. You can specify instance families to launch any instance type within those families (for example, ``c5`` or ``p3`` ), or you can specify specific sizes within a family (such as ``c5.8xlarge`` ). You can also choose ``optimal`` to select instance types (from the C4, M4, and R4 instance families) that match the demand of your job queues. When updating a compute environment, changing this setting requires an infrastructure update of the compute environment. For more information, see `Updating compute environments <https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html>`_ in the *AWS Batch User Guide* . .. epigraph:: This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it. > When you create a compute environment, the instance types that you select for the compute environment must share the same architecture. For example, you can't mix x86 and ARM instances in the same compute environment. > Currently, ``optimal`` uses instance types from the C4, M4, and R4 instance families. In Regions that don't have instance types from those instance families, instance types from the C5, M5, and R5 instance families are used.
|
|
480
480
|
:param launch_template: The launch template to use for your compute resources. Any other compute resource parameters that you specify in a `CreateComputeEnvironment <https://docs.aws.amazon.com/batch/latest/APIReference/API_CreateComputeEnvironment.html>`_ API operation override the same parameters in the launch template. You must specify either the launch template ID or launch template name in the request, but not both. For more information, see `Launch Template Support <https://docs.aws.amazon.com/batch/latest/userguide/launch-templates.html>`_ in the ** . Removing the launch template from a compute environment will not remove the AMI specified in the launch template. In order to update the AMI specified in a launch template, the ``updateToLatestImageVersion`` parameter must be set to ``true`` . When updating a compute environment, changing the launch template requires an infrastructure update of the compute environment. For more information, see `Updating compute environments <https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html>`_ in the ** . .. epigraph:: This parameter isn't applicable to jobs running on Fargate resources, and shouldn't be specified.
|
|
481
481
|
:param minv_cpus: The minimum number of vCPUs that an environment should maintain (even if the compute environment is ``DISABLED`` ). .. epigraph:: This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
|
|
@@ -591,7 +591,7 @@ class CfnComputeEnvironment(
|
|
|
591
591
|
|
|
592
592
|
.. epigraph::
|
|
593
593
|
|
|
594
|
-
With
|
|
594
|
+
With ``BEST_FIT_PROGRESSIVE`` , ``SPOT_CAPACITY_OPTIMIZED`` and ``SPOT_PRICE_CAPACITY_OPTIMIZED`` (recommended) strategies using On-Demand or Spot Instances, and the ``BEST_FIT`` strategy using Spot Instances, AWS Batch might need to exceed ``maxvCpus`` to meet your capacity requirements. In this event, AWS Batch never exceeds ``maxvCpus`` by more than a single instance.
|
|
595
595
|
|
|
596
596
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-maxvcpus
|
|
597
597
|
'''
|
|
@@ -650,8 +650,13 @@ class CfnComputeEnvironment(
|
|
|
650
650
|
- **BEST_FIT (default)** - AWS Batch selects an instance type that best fits the needs of the jobs with a preference for the lowest-cost instance type. If additional instances of the selected instance type aren't available, AWS Batch waits for the additional instances to be available. If there aren't enough instances available, or if the user is reaching `Amazon EC2 service limits <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html>`_ then additional jobs aren't run until the currently running jobs have completed. This allocation strategy keeps costs lower but can limit scaling. If you are using Spot Fleets with ``BEST_FIT`` then the Spot Fleet IAM role must be specified.
|
|
651
651
|
- **BEST_FIT_PROGRESSIVE** - AWS Batch will select additional instance types that are large enough to meet the requirements of the jobs in the queue, with a preference for instance types with a lower cost per unit vCPU. If additional instances of the previously selected instance types aren't available, AWS Batch will select new instance types.
|
|
652
652
|
- **SPOT_CAPACITY_OPTIMIZED** - AWS Batch will select one or more instance types that are large enough to meet the requirements of the jobs in the queue, with a preference for instance types that are less likely to be interrupted. This allocation strategy is only available for Spot Instance compute resources.
|
|
653
|
+
- **SPOT_PRICE_CAPACITY_OPTIMIZED** - The price and capacity optimized allocation strategy looks at both price and capacity to select the Spot Instance pools that are the least likely to be interrupted and have the lowest possible price. This allocation strategy is only available for Spot Instance compute resources.
|
|
653
654
|
|
|
654
|
-
|
|
655
|
+
.. epigraph::
|
|
656
|
+
|
|
657
|
+
We recommend that you use ``SPOT_PRICE_CAPACITY_OPTIMIZED`` rather than ``SPOT_CAPACITY_OPTIMIZED`` in most instances.
|
|
658
|
+
|
|
659
|
+
With ``BEST_FIT_PROGRESSIVE`` , ``SPOT_CAPACITY_OPTIMIZED`` , and ``SPOT_PRICE_CAPACITY_OPTIMIZED`` allocation strategies using On-Demand or Spot Instances, and the ``BEST_FIT`` strategy using Spot Instances, AWS Batch might need to go above ``maxvCpus`` to meet your capacity requirements. In this event, AWS Batch never exceeds ``maxvCpus`` by more than a single instance.
|
|
655
660
|
|
|
656
661
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-allocationstrategy
|
|
657
662
|
'''
|
|
@@ -746,7 +751,7 @@ class CfnComputeEnvironment(
|
|
|
746
751
|
def instance_role(self) -> typing.Optional[builtins.str]:
|
|
747
752
|
'''The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment.
|
|
748
753
|
|
|
749
|
-
You can specify the short name or full Amazon Resource Name (ARN) of an instance profile. For example, ``*ecsInstanceRole*`` or ``arn:aws:iam:: *<aws_account_id>* :instance-profile/ *ecsInstanceRole*`` . For more information, see `Amazon ECS instance role <https://docs.aws.amazon.com/batch/latest/userguide/instance_IAM_role.html>`_ in the *AWS Batch User Guide* .
|
|
754
|
+
Required for Amazon EC2 instances. You can specify the short name or full Amazon Resource Name (ARN) of an instance profile. For example, ``*ecsInstanceRole*`` or ``arn:aws:iam:: *<aws_account_id>* :instance-profile/ *ecsInstanceRole*`` . For more information, see `Amazon ECS instance role <https://docs.aws.amazon.com/batch/latest/userguide/instance_IAM_role.html>`_ in the *AWS Batch User Guide* .
|
|
750
755
|
|
|
751
756
|
When updating a compute environment, changing this setting requires an infrastructure update of the compute environment. For more information, see `Updating compute environments <https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html>`_ in the *AWS Batch User Guide* .
|
|
752
757
|
.. epigraph::
|
|
@@ -2309,7 +2314,7 @@ class CfnJobDefinition(
|
|
|
2309
2314
|
|
|
2310
2315
|
These properties to describe the container that's launched as part of a job.
|
|
2311
2316
|
|
|
2312
|
-
:param image: The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with ``*repository-url* / *image* : *tag*`` . It can be 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), underscores (_), colons (:), periods (.), forward slashes (/), and number signs (#). This parameter maps to ``Image`` in the `Create a container <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container>`_ section of the `Docker Remote API <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/>`_ and the ``IMAGE`` parameter of `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/>`_ . .. epigraph:: Docker image architecture must match the processor architecture of the compute resources that they're scheduled on. For example, ARM-based Docker images can only run on ARM-based compute resources. - Images in Amazon ECR Public repositories use the full ``registry/repository[:tag]`` or ``registry/repository[@digest]`` naming conventions. For example, ``public.ecr.aws/ *registry_alias* / *my-web-app* : *latest*`` . - Images in Amazon ECR repositories use the full registry and repository URI (for example, ``123456789012.dkr.ecr.<region-name>.amazonaws.com/<repository-name>`` ). - Images in official repositories on Docker Hub use a single name (for example, ``ubuntu`` or ``mongo`` ). - Images in other repositories on Docker Hub are qualified with an organization name (for example, ``amazon/amazon-ecs-agent`` ). - Images in other online repositories are qualified further by a domain name (for example, ``quay.io/assemblyline/ubuntu`` ).
|
|
2317
|
+
:param image: Required. The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with ``*repository-url* / *image* : *tag*`` . It can be 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), underscores (_), colons (:), periods (.), forward slashes (/), and number signs (#). This parameter maps to ``Image`` in the `Create a container <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container>`_ section of the `Docker Remote API <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/>`_ and the ``IMAGE`` parameter of `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/>`_ . .. epigraph:: Docker image architecture must match the processor architecture of the compute resources that they're scheduled on. For example, ARM-based Docker images can only run on ARM-based compute resources. - Images in Amazon ECR Public repositories use the full ``registry/repository[:tag]`` or ``registry/repository[@digest]`` naming conventions. For example, ``public.ecr.aws/ *registry_alias* / *my-web-app* : *latest*`` . - Images in Amazon ECR repositories use the full registry and repository URI (for example, ``123456789012.dkr.ecr.<region-name>.amazonaws.com/<repository-name>`` ). - Images in official repositories on Docker Hub use a single name (for example, ``ubuntu`` or ``mongo`` ). - Images in other repositories on Docker Hub are qualified with an organization name (for example, ``amazon/amazon-ecs-agent`` ). - Images in other online repositories are qualified further by a domain name (for example, ``quay.io/assemblyline/ubuntu`` ).
|
|
2313
2318
|
:param command: The command that's passed to the container. This parameter maps to ``Cmd`` in the `Create a container <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container>`_ section of the `Docker Remote API <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/>`_ and the ``COMMAND`` parameter to `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/>`_ . For more information, see `https://docs.docker.com/engine/reference/builder/#cmd <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/builder/#cmd>`_ .
|
|
2314
2319
|
:param environment: The environment variables to pass to a container. This parameter maps to ``Env`` in the `Create a container <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container>`_ section of the `Docker Remote API <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/>`_ and the ``--env`` option to `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/>`_ . .. epigraph:: We don't recommend using plaintext environment variables for sensitive information, such as credential data. > Environment variables cannot start with " ``AWS_BATCH`` ". This naming convention is reserved for variables that AWS Batch sets.
|
|
2315
2320
|
:param ephemeral_storage: The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate .
|
|
@@ -2325,7 +2330,7 @@ class CfnJobDefinition(
|
|
|
2325
2330
|
:param privileged: When this parameter is true, the container is given elevated permissions on the host container instance (similar to the ``root`` user). This parameter maps to ``Privileged`` in the `Create a container <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container>`_ section of the `Docker Remote API <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/>`_ and the ``--privileged`` option to `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/>`_ . The default value is false. .. epigraph:: This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided, or specified as false.
|
|
2326
2331
|
:param readonly_root_filesystem: When this parameter is true, the container is given read-only access to its root file system. This parameter maps to ``ReadonlyRootfs`` in the `Create a container <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container>`_ section of the `Docker Remote API <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/>`_ and the ``--read-only`` option to ``docker run`` .
|
|
2327
2332
|
:param resource_requirements: The type and amount of resources to assign to a container. The supported resources include ``GPU`` , ``MEMORY`` , and ``VCPU`` .
|
|
2328
|
-
:param runtime_platform:
|
|
2333
|
+
:param runtime_platform: An object that represents the compute environment architecture for AWS Batch jobs on Fargate.
|
|
2329
2334
|
:param secrets: The secrets for the container. For more information, see `Specifying sensitive data <https://docs.aws.amazon.com/batch/latest/userguide/specifying-sensitive-data.html>`_ in the *AWS Batch User Guide* .
|
|
2330
2335
|
:param ulimits: A list of ``ulimits`` to set in the container. This parameter maps to ``Ulimits`` in the `Create a container <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container>`_ section of the `Docker Remote API <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/>`_ and the ``--ulimit`` option to `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/>`_ . .. epigraph:: This parameter isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
|
|
2331
2336
|
:param user: The user name to use inside the container. This parameter maps to ``User`` in the `Create a container <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container>`_ section of the `Docker Remote API <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/>`_ and the ``--user`` option to `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/>`_ .
|
|
@@ -2511,9 +2516,9 @@ class CfnJobDefinition(
|
|
|
2511
2516
|
|
|
2512
2517
|
@builtins.property
|
|
2513
2518
|
def image(self) -> builtins.str:
|
|
2514
|
-
'''
|
|
2519
|
+
'''Required.
|
|
2515
2520
|
|
|
2516
|
-
This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with ``*repository-url* / *image* : *tag*`` . It can be 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), underscores (_), colons (:), periods (.), forward slashes (/), and number signs (#). This parameter maps to ``Image`` in the `Create a container <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container>`_ section of the `Docker Remote API <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/>`_ and the ``IMAGE`` parameter of `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/>`_ .
|
|
2521
|
+
The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with ``*repository-url* / *image* : *tag*`` . It can be 255 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), underscores (_), colons (:), periods (.), forward slashes (/), and number signs (#). This parameter maps to ``Image`` in the `Create a container <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/#create-a-container>`_ section of the `Docker Remote API <https://docs.aws.amazon.com/https://docs.docker.com/engine/api/v1.23/>`_ and the ``IMAGE`` parameter of `docker run <https://docs.aws.amazon.com/https://docs.docker.com/engine/reference/run/>`_ .
|
|
2517
2522
|
.. epigraph::
|
|
2518
2523
|
|
|
2519
2524
|
Docker image architecture must match the processor architecture of the compute resources that they're scheduled on. For example, ARM-based Docker images can only run on ARM-based compute resources.
|
|
@@ -2734,7 +2739,8 @@ class CfnJobDefinition(
|
|
|
2734
2739
|
def runtime_platform(
|
|
2735
2740
|
self,
|
|
2736
2741
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.RuntimePlatformProperty"]]:
|
|
2737
|
-
'''
|
|
2742
|
+
'''An object that represents the compute environment architecture for AWS Batch jobs on Fargate.
|
|
2743
|
+
|
|
2738
2744
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-containerproperties.html#cfn-batch-jobdefinition-containerproperties-runtimeplatform
|
|
2739
2745
|
'''
|
|
2740
2746
|
result = self._values.get("runtime_platform")
|
|
@@ -3165,7 +3171,7 @@ class CfnJobDefinition(
|
|
|
3165
3171
|
:param image_pull_policy: The image pull policy for the container. Supported values are ``Always`` , ``IfNotPresent`` , and ``Never`` . This parameter defaults to ``IfNotPresent`` . However, if the ``:latest`` tag is specified, it defaults to ``Always`` . For more information, see `Updating images <https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/containers/images/#updating-images>`_ in the *Kubernetes documentation* .
|
|
3166
3172
|
:param name: The name of the container. If the name isn't specified, the default name " ``Default`` " is used. Each container in a pod must have a unique name.
|
|
3167
3173
|
:param resources: The type and amount of resources to assign to a container. The supported resources include ``memory`` , ``cpu`` , and ``nvidia.com/gpu`` . For more information, see `Resource management for pods and containers <https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/>`_ in the *Kubernetes documentation* .
|
|
3168
|
-
:param security_context:
|
|
3174
|
+
:param security_context: The security context for a job. For more information, see `Configure a security context for a pod or container <https://docs.aws.amazon.com/https://kubernetes.io/docs/tasks/configure-pod-container/security-context/>`_ in the *Kubernetes documentation* .
|
|
3169
3175
|
:param volume_mounts: The volume mounts for the container. AWS Batch supports ``emptyDir`` , ``hostPath`` , and ``secret`` volume types. For more information about volumes and volume mounts in Kubernetes, see `Volumes <https://docs.aws.amazon.com/https://kubernetes.io/docs/concepts/storage/volumes/>`_ in the *Kubernetes documentation* .
|
|
3170
3176
|
|
|
3171
3177
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ekscontainer.html
|
|
@@ -3333,7 +3339,10 @@ class CfnJobDefinition(
|
|
|
3333
3339
|
def security_context(
|
|
3334
3340
|
self,
|
|
3335
3341
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.SecurityContextProperty"]]:
|
|
3336
|
-
'''
|
|
3342
|
+
'''The security context for a job.
|
|
3343
|
+
|
|
3344
|
+
For more information, see `Configure a security context for a pod or container <https://docs.aws.amazon.com/https://kubernetes.io/docs/tasks/configure-pod-container/security-context/>`_ in the *Kubernetes documentation* .
|
|
3345
|
+
|
|
3337
3346
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-ekscontainer.html#cfn-batch-jobdefinition-ekscontainer-securitycontext
|
|
3338
3347
|
'''
|
|
3339
3348
|
result = self._values.get("security_context")
|
|
@@ -5595,9 +5604,10 @@ class CfnJobDefinition(
|
|
|
5595
5604
|
cpu_architecture: typing.Optional[builtins.str] = None,
|
|
5596
5605
|
operating_system_family: typing.Optional[builtins.str] = None,
|
|
5597
5606
|
) -> None:
|
|
5598
|
-
'''
|
|
5599
|
-
|
|
5600
|
-
:param
|
|
5607
|
+
'''An object that represents the compute environment architecture for AWS Batch jobs on Fargate.
|
|
5608
|
+
|
|
5609
|
+
:param cpu_architecture: The vCPU architecture. The default value is ``X86_64`` . Valid values are ``X86_64`` and ``ARM64`` . .. epigraph:: This parameter must be set to ``X86_64`` for Windows containers. > Fargate Spot is not supported for ``ARM64`` and Windows-based containers on Fargate. A job queue will be blocked if a Fargate ``ARM64`` or Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both ``FARGATE`` and ``FARGATE_SPOT`` compute environments to the same job queue.
|
|
5610
|
+
:param operating_system_family: The operating system for the compute environment. Valid values are: ``LINUX`` (default), ``WINDOWS_SERVER_2019_CORE`` , ``WINDOWS_SERVER_2019_FULL`` , ``WINDOWS_SERVER_2022_CORE`` , and ``WINDOWS_SERVER_2022_FULL`` . .. epigraph:: The following parameters can’t be set for Windows containers: ``linuxParameters`` , ``privileged`` , ``user`` , ``ulimits`` , ``readonlyRootFilesystem`` , and ``efsVolumeConfiguration`` . > The AWS Batch Scheduler checks the compute environments that are attached to the job queue before registering a task definition with Fargate. In this scenario, the job queue is where the job is submitted. If the job requires a Windows container and the first compute environment is ``LINUX`` , the compute environment is skipped and the next compute environment is checked until a Windows-based compute environment is found. > Fargate Spot is not supported for ``ARM64`` and Windows-based containers on Fargate. A job queue will be blocked if a Fargate ``ARM64`` or Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both ``FARGATE`` and ``FARGATE_SPOT`` compute environments to the same job queue.
|
|
5601
5611
|
|
|
5602
5612
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-runtimeplatform.html
|
|
5603
5613
|
:exampleMetadata: fixture=_generated
|
|
@@ -5625,7 +5635,12 @@ class CfnJobDefinition(
|
|
|
5625
5635
|
|
|
5626
5636
|
@builtins.property
|
|
5627
5637
|
def cpu_architecture(self) -> typing.Optional[builtins.str]:
|
|
5628
|
-
'''
|
|
5638
|
+
'''The vCPU architecture. The default value is ``X86_64`` . Valid values are ``X86_64`` and ``ARM64`` .
|
|
5639
|
+
|
|
5640
|
+
.. epigraph::
|
|
5641
|
+
|
|
5642
|
+
This parameter must be set to ``X86_64`` for Windows containers. > Fargate Spot is not supported for ``ARM64`` and Windows-based containers on Fargate. A job queue will be blocked if a Fargate ``ARM64`` or Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both ``FARGATE`` and ``FARGATE_SPOT`` compute environments to the same job queue.
|
|
5643
|
+
|
|
5629
5644
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-runtimeplatform.html#cfn-batch-jobdefinition-runtimeplatform-cpuarchitecture
|
|
5630
5645
|
'''
|
|
5631
5646
|
result = self._values.get("cpu_architecture")
|
|
@@ -5633,7 +5648,13 @@ class CfnJobDefinition(
|
|
|
5633
5648
|
|
|
5634
5649
|
@builtins.property
|
|
5635
5650
|
def operating_system_family(self) -> typing.Optional[builtins.str]:
|
|
5636
|
-
'''
|
|
5651
|
+
'''The operating system for the compute environment.
|
|
5652
|
+
|
|
5653
|
+
Valid values are: ``LINUX`` (default), ``WINDOWS_SERVER_2019_CORE`` , ``WINDOWS_SERVER_2019_FULL`` , ``WINDOWS_SERVER_2022_CORE`` , and ``WINDOWS_SERVER_2022_FULL`` .
|
|
5654
|
+
.. epigraph::
|
|
5655
|
+
|
|
5656
|
+
The following parameters can’t be set for Windows containers: ``linuxParameters`` , ``privileged`` , ``user`` , ``ulimits`` , ``readonlyRootFilesystem`` , and ``efsVolumeConfiguration`` . > The AWS Batch Scheduler checks the compute environments that are attached to the job queue before registering a task definition with Fargate. In this scenario, the job queue is where the job is submitted. If the job requires a Windows container and the first compute environment is ``LINUX`` , the compute environment is skipped and the next compute environment is checked until a Windows-based compute environment is found. > Fargate Spot is not supported for ``ARM64`` and Windows-based containers on Fargate. A job queue will be blocked if a Fargate ``ARM64`` or Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both ``FARGATE`` and ``FARGATE_SPOT`` compute environments to the same job queue.
|
|
5657
|
+
|
|
5637
5658
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-runtimeplatform.html#cfn-batch-jobdefinition-runtimeplatform-operatingsystemfamily
|
|
5638
5659
|
'''
|
|
5639
5660
|
result = self._values.get("operating_system_family")
|
|
@@ -70,7 +70,10 @@ class CfnBillingGroup(
|
|
|
70
70
|
|
|
71
71
|
cfn_billing_group = billingconductor.CfnBillingGroup(self, "MyCfnBillingGroup",
|
|
72
72
|
account_grouping=billingconductor.CfnBillingGroup.AccountGroupingProperty(
|
|
73
|
-
linked_account_ids=["linkedAccountIds"]
|
|
73
|
+
linked_account_ids=["linkedAccountIds"],
|
|
74
|
+
|
|
75
|
+
# the properties below are optional
|
|
76
|
+
auto_associate=False
|
|
74
77
|
),
|
|
75
78
|
computation_preference=billingconductor.CfnBillingGroup.ComputationPreferenceProperty(
|
|
76
79
|
pricing_plan_arn="pricingPlanArn"
|
|
@@ -102,12 +105,12 @@ class CfnBillingGroup(
|
|
|
102
105
|
'''
|
|
103
106
|
:param scope: Scope in which this resource is defined.
|
|
104
107
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
105
|
-
:param account_grouping: The set of accounts that will be under the billing group. The set of accounts resemble the linked accounts in a consolidated family.
|
|
108
|
+
:param account_grouping: The set of accounts that will be under the billing group. The set of accounts resemble the linked accounts in a consolidated billing family.
|
|
106
109
|
:param computation_preference: The preferences and settings that will be used to compute the AWS charges for a billing group.
|
|
107
110
|
:param name: The billing group's name.
|
|
108
111
|
:param primary_account_id: The account ID that serves as the main account in a billing group.
|
|
109
112
|
:param description: The description of the billing group.
|
|
110
|
-
:param tags:
|
|
113
|
+
:param tags: A map that contains tag keys and tag values that are attached to a billing group.
|
|
111
114
|
'''
|
|
112
115
|
if __debug__:
|
|
113
116
|
type_hints = typing.get_type_hints(_typecheckingstub__34db7ef1df00bd83f1d6bc7787b13169d6053ecbe4f7a96747e98db547bcfa17)
|
|
@@ -299,6 +302,7 @@ class CfnBillingGroup(
|
|
|
299
302
|
@builtins.property
|
|
300
303
|
@jsii.member(jsii_name="tagsRaw")
|
|
301
304
|
def tags_raw(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
305
|
+
'''A map that contains tag keys and tag values that are attached to a billing group.'''
|
|
302
306
|
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tagsRaw"))
|
|
303
307
|
|
|
304
308
|
@tags_raw.setter
|
|
@@ -311,19 +315,24 @@ class CfnBillingGroup(
|
|
|
311
315
|
@jsii.data_type(
|
|
312
316
|
jsii_type="aws-cdk-lib.aws_billingconductor.CfnBillingGroup.AccountGroupingProperty",
|
|
313
317
|
jsii_struct_bases=[],
|
|
314
|
-
name_mapping={
|
|
318
|
+
name_mapping={
|
|
319
|
+
"linked_account_ids": "linkedAccountIds",
|
|
320
|
+
"auto_associate": "autoAssociate",
|
|
321
|
+
},
|
|
315
322
|
)
|
|
316
323
|
class AccountGroupingProperty:
|
|
317
324
|
def __init__(
|
|
318
325
|
self,
|
|
319
326
|
*,
|
|
320
327
|
linked_account_ids: typing.Sequence[builtins.str],
|
|
328
|
+
auto_associate: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
321
329
|
) -> None:
|
|
322
330
|
'''The set of accounts that will be under the billing group.
|
|
323
331
|
|
|
324
|
-
The set of accounts resemble the linked accounts in a consolidated family.
|
|
332
|
+
The set of accounts resemble the linked accounts in a consolidated billing family.
|
|
325
333
|
|
|
326
334
|
:param linked_account_ids: The account IDs that make up the billing group. Account IDs must be a part of the consolidated billing family, and not associated with another billing group.
|
|
335
|
+
:param auto_associate: Specifies if this billing group will automatically associate newly added AWS accounts that join your consolidated billing family.
|
|
327
336
|
|
|
328
337
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-billinggroup-accountgrouping.html
|
|
329
338
|
:exampleMetadata: fixture=_generated
|
|
@@ -335,15 +344,21 @@ class CfnBillingGroup(
|
|
|
335
344
|
from aws_cdk import aws_billingconductor as billingconductor
|
|
336
345
|
|
|
337
346
|
account_grouping_property = billingconductor.CfnBillingGroup.AccountGroupingProperty(
|
|
338
|
-
linked_account_ids=["linkedAccountIds"]
|
|
347
|
+
linked_account_ids=["linkedAccountIds"],
|
|
348
|
+
|
|
349
|
+
# the properties below are optional
|
|
350
|
+
auto_associate=False
|
|
339
351
|
)
|
|
340
352
|
'''
|
|
341
353
|
if __debug__:
|
|
342
354
|
type_hints = typing.get_type_hints(_typecheckingstub__f49e139e00b0b5c04a1b1b546023b83549fcc6843b2bc7fa73b39fd6736ee578)
|
|
343
355
|
check_type(argname="argument linked_account_ids", value=linked_account_ids, expected_type=type_hints["linked_account_ids"])
|
|
356
|
+
check_type(argname="argument auto_associate", value=auto_associate, expected_type=type_hints["auto_associate"])
|
|
344
357
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
345
358
|
"linked_account_ids": linked_account_ids,
|
|
346
359
|
}
|
|
360
|
+
if auto_associate is not None:
|
|
361
|
+
self._values["auto_associate"] = auto_associate
|
|
347
362
|
|
|
348
363
|
@builtins.property
|
|
349
364
|
def linked_account_ids(self) -> typing.List[builtins.str]:
|
|
@@ -357,6 +372,17 @@ class CfnBillingGroup(
|
|
|
357
372
|
assert result is not None, "Required property 'linked_account_ids' is missing"
|
|
358
373
|
return typing.cast(typing.List[builtins.str], result)
|
|
359
374
|
|
|
375
|
+
@builtins.property
|
|
376
|
+
def auto_associate(
|
|
377
|
+
self,
|
|
378
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
379
|
+
'''Specifies if this billing group will automatically associate newly added AWS accounts that join your consolidated billing family.
|
|
380
|
+
|
|
381
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-billinggroup-accountgrouping.html#cfn-billingconductor-billinggroup-accountgrouping-autoassociate
|
|
382
|
+
'''
|
|
383
|
+
result = self._values.get("auto_associate")
|
|
384
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
385
|
+
|
|
360
386
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
361
387
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
362
388
|
|
|
@@ -446,12 +472,12 @@ class CfnBillingGroupProps:
|
|
|
446
472
|
) -> None:
|
|
447
473
|
'''Properties for defining a ``CfnBillingGroup``.
|
|
448
474
|
|
|
449
|
-
:param account_grouping: The set of accounts that will be under the billing group. The set of accounts resemble the linked accounts in a consolidated family.
|
|
475
|
+
:param account_grouping: The set of accounts that will be under the billing group. The set of accounts resemble the linked accounts in a consolidated billing family.
|
|
450
476
|
:param computation_preference: The preferences and settings that will be used to compute the AWS charges for a billing group.
|
|
451
477
|
:param name: The billing group's name.
|
|
452
478
|
:param primary_account_id: The account ID that serves as the main account in a billing group.
|
|
453
479
|
:param description: The description of the billing group.
|
|
454
|
-
:param tags:
|
|
480
|
+
:param tags: A map that contains tag keys and tag values that are attached to a billing group.
|
|
455
481
|
|
|
456
482
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-billingconductor-billinggroup.html
|
|
457
483
|
:exampleMetadata: fixture=_generated
|
|
@@ -464,7 +490,10 @@ class CfnBillingGroupProps:
|
|
|
464
490
|
|
|
465
491
|
cfn_billing_group_props = billingconductor.CfnBillingGroupProps(
|
|
466
492
|
account_grouping=billingconductor.CfnBillingGroup.AccountGroupingProperty(
|
|
467
|
-
linked_account_ids=["linkedAccountIds"]
|
|
493
|
+
linked_account_ids=["linkedAccountIds"],
|
|
494
|
+
|
|
495
|
+
# the properties below are optional
|
|
496
|
+
auto_associate=False
|
|
468
497
|
),
|
|
469
498
|
computation_preference=billingconductor.CfnBillingGroup.ComputationPreferenceProperty(
|
|
470
499
|
pricing_plan_arn="pricingPlanArn"
|
|
@@ -505,7 +534,7 @@ class CfnBillingGroupProps:
|
|
|
505
534
|
) -> typing.Union[_IResolvable_da3f097b, CfnBillingGroup.AccountGroupingProperty]:
|
|
506
535
|
'''The set of accounts that will be under the billing group.
|
|
507
536
|
|
|
508
|
-
The set of accounts resemble the linked accounts in a consolidated family.
|
|
537
|
+
The set of accounts resemble the linked accounts in a consolidated billing family.
|
|
509
538
|
|
|
510
539
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-billingconductor-billinggroup.html#cfn-billingconductor-billinggroup-accountgrouping
|
|
511
540
|
'''
|
|
@@ -556,7 +585,8 @@ class CfnBillingGroupProps:
|
|
|
556
585
|
|
|
557
586
|
@builtins.property
|
|
558
587
|
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
559
|
-
'''
|
|
588
|
+
'''A map that contains tag keys and tag values that are attached to a billing group.
|
|
589
|
+
|
|
560
590
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-billingconductor-billinggroup.html#cfn-billingconductor-billinggroup-tags
|
|
561
591
|
'''
|
|
562
592
|
result = self._values.get("tags")
|
|
@@ -2016,7 +2046,7 @@ class CfnPricingRule(
|
|
|
2016
2046
|
) -> None:
|
|
2017
2047
|
'''The set of tiering configurations for the pricing rule.
|
|
2018
2048
|
|
|
2019
|
-
:param free_tier: The possible
|
|
2049
|
+
:param free_tier: The possible AWS Free Tier configurations.
|
|
2020
2050
|
|
|
2021
2051
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-pricingrule-tiering.html
|
|
2022
2052
|
:exampleMetadata: fixture=_generated
|
|
@@ -2044,7 +2074,7 @@ class CfnPricingRule(
|
|
|
2044
2074
|
def free_tier(
|
|
2045
2075
|
self,
|
|
2046
2076
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnPricingRule.FreeTierProperty"]]:
|
|
2047
|
-
'''The possible
|
|
2077
|
+
'''The possible AWS Free Tier configurations.
|
|
2048
2078
|
|
|
2049
2079
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-billingconductor-pricingrule-tiering.html#cfn-billingconductor-pricingrule-tiering-freetier
|
|
2050
2080
|
'''
|
|
@@ -2375,6 +2405,7 @@ def _typecheckingstub__b79940f00b13b42629eb04481540a4b5f0ae2c81a08ba0818cb87b23a
|
|
|
2375
2405
|
def _typecheckingstub__f49e139e00b0b5c04a1b1b546023b83549fcc6843b2bc7fa73b39fd6736ee578(
|
|
2376
2406
|
*,
|
|
2377
2407
|
linked_account_ids: typing.Sequence[builtins.str],
|
|
2408
|
+
auto_associate: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
2378
2409
|
) -> None:
|
|
2379
2410
|
"""Type checking stubs"""
|
|
2380
2411
|
pass
|
|
@@ -1173,7 +1173,7 @@ class CfnConfiguredTable(
|
|
|
1173
1173
|
allowed_join_operators: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1174
1174
|
join_required: typing.Optional[builtins.str] = None,
|
|
1175
1175
|
) -> None:
|
|
1176
|
-
'''
|
|
1176
|
+
'''A type of analysis rule that enables query structure and specified queries that produce aggregate statistics.
|
|
1177
1177
|
|
|
1178
1178
|
:param aggregate_columns: The columns that query runners are allowed to use in aggregation queries.
|
|
1179
1179
|
:param dimension_columns: The columns that query runners are allowed to select, group by, or filter by.
|
|
@@ -1428,7 +1428,7 @@ class CfnConfiguredTable(
|
|
|
1428
1428
|
'''A specification about how data from the configured table can be used in a query.
|
|
1429
1429
|
|
|
1430
1430
|
:param policy: A policy that describes the associated data usage limitations.
|
|
1431
|
-
:param type: The type of analysis rule.
|
|
1431
|
+
:param type: The type of analysis rule.
|
|
1432
1432
|
|
|
1433
1433
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-analysisrule.html
|
|
1434
1434
|
:exampleMetadata: fixture=_generated
|
|
@@ -1497,8 +1497,6 @@ class CfnConfiguredTable(
|
|
|
1497
1497
|
def type(self) -> builtins.str:
|
|
1498
1498
|
'''The type of analysis rule.
|
|
1499
1499
|
|
|
1500
|
-
Valid values are ``AGGREGATION`` and ``LIST``.
|
|
1501
|
-
|
|
1502
1500
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-analysisrule.html#cfn-cleanrooms-configuredtable-analysisrule-type
|
|
1503
1501
|
'''
|
|
1504
1502
|
result = self._values.get("type")
|