aws-cdk-lib 2.181.1__py3-none-any.whl → 2.183.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 +751 -41
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.181.1.jsii.tgz → aws-cdk-lib@2.183.0.jsii.tgz} +0 -0
- aws_cdk/assertions/__init__.py +59 -0
- aws_cdk/aws_apigateway/__init__.py +122 -66
- aws_cdk/aws_applicationautoscaling/__init__.py +4 -0
- aws_cdk/aws_appsync/__init__.py +30 -4
- aws_cdk/aws_autoscaling/__init__.py +409 -36
- aws_cdk/aws_batch/__init__.py +638 -14
- aws_cdk/aws_bedrock/__init__.py +6009 -2326
- aws_cdk/aws_ce/__init__.py +141 -3
- aws_cdk/aws_certificatemanager/__init__.py +24 -0
- aws_cdk/aws_cloudformation/__init__.py +310 -35
- aws_cdk/aws_cloudfront/__init__.py +1 -0
- aws_cdk/aws_cloudtrail/__init__.py +8 -8
- aws_cdk/aws_codebuild/__init__.py +4 -10
- aws_cdk/aws_cognito/__init__.py +3 -3
- aws_cdk/aws_datazone/__init__.py +82 -0
- aws_cdk/aws_dms/__init__.py +350 -0
- aws_cdk/aws_ec2/__init__.py +95 -17
- aws_cdk/aws_ecr/__init__.py +10 -4
- aws_cdk/aws_ecs/__init__.py +58 -9
- aws_cdk/aws_eks/__init__.py +32 -3
- aws_cdk/aws_elasticache/__init__.py +3 -3
- aws_cdk/aws_emr/__init__.py +9 -3
- aws_cdk/aws_fsx/__init__.py +2 -0
- aws_cdk/aws_gameliftstreams/__init__.py +1205 -0
- aws_cdk/aws_guardduty/__init__.py +38 -26
- aws_cdk/aws_iam/__init__.py +295 -37
- aws_cdk/aws_inspector/__init__.py +180 -1
- aws_cdk/aws_iot/__init__.py +616 -22
- aws_cdk/aws_iotfleetwise/__init__.py +72 -10
- aws_cdk/aws_iotsitewise/__init__.py +14 -11
- aws_cdk/aws_kafkaconnect/__init__.py +4 -2
- aws_cdk/aws_kinesisfirehose/__init__.py +6 -0
- aws_cdk/aws_lambda/__init__.py +17 -0
- aws_cdk/aws_logs/__init__.py +135 -0
- aws_cdk/aws_medialive/__init__.py +86 -86
- aws_cdk/aws_mediapackagev2/__init__.py +22 -14
- aws_cdk/aws_msk/__init__.py +236 -128
- aws_cdk/aws_neptunegraph/__init__.py +3 -3
- aws_cdk/aws_opensearchserverless/__init__.py +1031 -0
- aws_cdk/aws_opensearchservice/__init__.py +261 -1
- aws_cdk/aws_pcaconnectorad/__init__.py +30 -4
- aws_cdk/aws_pipes/__init__.py +6 -2
- aws_cdk/aws_quicksight/__init__.py +6712 -20758
- aws_cdk/aws_rds/__init__.py +174 -30
- aws_cdk/aws_redshift/__init__.py +8 -8
- aws_cdk/aws_s3/__init__.py +8 -0
- aws_cdk/aws_sagemaker/__init__.py +80 -18
- aws_cdk/aws_securitylake/__init__.py +3 -0
- aws_cdk/aws_sns/__init__.py +76 -1
- aws_cdk/aws_synthetics/__init__.py +2 -0
- aws_cdk/aws_transfer/__init__.py +241 -40
- aws_cdk/aws_vpclattice/__init__.py +144 -9
- aws_cdk/aws_wafv2/__init__.py +790 -0
- aws_cdk/aws_wisdom/__init__.py +3 -110
- aws_cdk/aws_workspacesthinclient/__init__.py +4 -4
- aws_cdk/aws_workspacesweb/__init__.py +179 -2
- aws_cdk/aws_xray/__init__.py +195 -0
- aws_cdk/cloud_assembly_schema/__init__.py +224 -4
- aws_cdk/custom_resources/__init__.py +65 -8
- aws_cdk/cx_api/__init__.py +2 -1
- {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/RECORD +69 -68
- {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_batch/__init__.py
CHANGED
|
@@ -755,6 +755,7 @@ from .. import (
|
|
|
755
755
|
IResolvable as _IResolvable_da3f097b,
|
|
756
756
|
IResource as _IResource_c80c4260,
|
|
757
757
|
ITaggable as _ITaggable_36806126,
|
|
758
|
+
ITaggableV2 as _ITaggableV2_4e6798f8,
|
|
758
759
|
Resource as _Resource_45bc6135,
|
|
759
760
|
Size as _Size_7b441c34,
|
|
760
761
|
TagManager as _TagManager_0a598cb3,
|
|
@@ -1024,7 +1025,7 @@ class CfnComputeEnvironment(
|
|
|
1024
1025
|
:param compute_resources: The ComputeResources property type specifies details of the compute resources managed by the compute environment. 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 ** .
|
|
1025
1026
|
:param context: Reserved.
|
|
1026
1027
|
:param eks_configuration: The details for the Amazon EKS cluster that supports the compute environment.
|
|
1027
|
-
:param replace_compute_environment: Specifies whether the compute environment is replaced if an update is made that requires replacing the instances in the compute environment. The default value is ``true`` . To enable more properties to be updated, set this property to ``false`` . When changing the value of this property to ``false`` , do not change any other properties at the same time. If other properties are changed at the same time, and the change needs to be rolled back but it can't, it's possible for the stack to go into the ``UPDATE_ROLLBACK_FAILED`` state. You can't update a stack that is in the ``UPDATE_ROLLBACK_FAILED`` state. However, if you can continue to roll it back, you can return the stack to its original settings and then try to update it again. For more information, see `Continue rolling back an update <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html>`_ in the *AWS CloudFormation User Guide* . The properties that can't be changed without replacing the compute environment are in the ```ComputeResources`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html>`_ property type: ```AllocationStrategy`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-allocationstrategy>`_ , ```BidPercentage`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-bidpercentage>`_ , ```Ec2Configuration`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2configuration>`_ , ```Ec2KeyPair`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair>`_ , ```Ec2KeyPair`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair>`_ , ```ImageId`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-imageid>`_ , ```InstanceRole`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancerole>`_ , ```InstanceTypes`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancetypes>`_ , ```LaunchTemplate`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-launchtemplate>`_ , ```MaxvCpus`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-maxvcpus>`_ , ```MinvCpus`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-minvcpus>`_ , ```PlacementGroup`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-placementgroup>`_ , ```SecurityGroupIds`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-securitygroupids>`_ , ```Subnets`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-subnets>`_ , `Tags <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-tags>`_ , ```Type`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-type>`_ , and ```UpdateToLatestImageVersion`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-updatetolatestimageversion>`_ . Default: - true
|
|
1028
|
+
:param replace_compute_environment: Specifies whether the compute environment is replaced if an update is made that requires replacing the instances in the compute environment. The default value is ``true`` . To enable more properties to be updated, set this property to ``false`` . When changing the value of this property to ``false`` , do not change any other properties at the same time. If other properties are changed at the same time, and the change needs to be rolled back but it can't, it's possible for the stack to go into the ``UPDATE_ROLLBACK_FAILED`` state. You can't update a stack that is in the ``UPDATE_ROLLBACK_FAILED`` state. However, if you can continue to roll it back, you can return the stack to its original settings and then try to update it again. For more information, see `Continue rolling back an update <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html>`_ in the *AWS CloudFormation User Guide* . ``ReplaceComputeEnvironment`` is not applicable for Fargate compute environments. Fargate compute environments are always updated without interruption. The properties that can't be changed without replacing the compute environment are in the ```ComputeResources`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html>`_ property type: ```AllocationStrategy`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-allocationstrategy>`_ , ```BidPercentage`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-bidpercentage>`_ , ```Ec2Configuration`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2configuration>`_ , ```Ec2KeyPair`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair>`_ , ```Ec2KeyPair`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair>`_ , ```ImageId`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-imageid>`_ , ```InstanceRole`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancerole>`_ , ```InstanceTypes`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancetypes>`_ , ```LaunchTemplate`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-launchtemplate>`_ , ```MaxvCpus`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-maxvcpus>`_ , ```MinvCpus`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-minvcpus>`_ , ```PlacementGroup`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-placementgroup>`_ , ```SecurityGroupIds`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-securitygroupids>`_ , ```Subnets`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-subnets>`_ , `Tags <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-tags>`_ , ```Type`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-type>`_ , and ```UpdateToLatestImageVersion`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-updatetolatestimageversion>`_ . Default: - true
|
|
1028
1029
|
:param service_role: The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. For more information, see `AWS Batch service IAM role <https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html>`_ in the *AWS Batch User Guide* . .. epigraph:: If your account already created the AWS Batch service-linked role, that role is used by default for your compute environment unless you specify a different role here. If the AWS Batch service-linked role doesn't exist in your account, and no role is specified here, the service attempts to create the AWS Batch service-linked role in your account. If your specified role has a path other than ``/`` , then you must specify either the full role ARN (recommended) or prefix the role name with the path. For example, if a role with the name ``bar`` has a path of ``/foo/`` , specify ``/foo/bar`` as the role name. For more information, see `Friendly names and paths <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names>`_ in the *IAM User Guide* . .. epigraph:: Depending on how you created your AWS Batch service role, its ARN might contain the ``service-role`` path prefix. When you only specify the name of the service role, AWS Batch assumes that your ARN doesn't use the ``service-role`` path prefix. Because of this, we recommend that you specify the full ARN of your service role when you create compute environments.
|
|
1029
1030
|
:param state: The state of the compute environment. If the state is ``ENABLED`` , then the compute environment accepts jobs from a queue and can scale out automatically based on queues. If the state is ``ENABLED`` , then the AWS Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically, based on the job queue demand. If the state is ``DISABLED`` , then the AWS Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a ``STARTING`` or ``RUNNING`` state continue to progress normally. Managed compute environments in the ``DISABLED`` state don't scale out. .. epigraph:: Compute environments in a ``DISABLED`` state may continue to incur billing charges. To prevent additional charges, turn off and then delete the compute environment. For more information, see `State <https://docs.aws.amazon.com/batch/latest/userguide/compute_environment_parameters.html#compute_environment_state>`_ in the *AWS Batch User Guide* . When an instance is idle, the instance scales down to the ``minvCpus`` value. However, the instance size doesn't change. For example, consider a ``c5.8xlarge`` instance with a ``minvCpus`` value of ``4`` and a ``desiredvCpus`` value of ``36`` . This instance doesn't scale down to a ``c5.large`` instance.
|
|
1030
1031
|
:param tags: The tags applied to the compute environment.
|
|
@@ -2244,7 +2245,7 @@ class CfnComputeEnvironment(
|
|
|
2244
2245
|
job_execution_timeout_minutes: typing.Optional[jsii.Number] = None,
|
|
2245
2246
|
terminate_jobs_on_update: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
2246
2247
|
) -> None:
|
|
2247
|
-
'''Specifies the infrastructure update policy for the compute environment.
|
|
2248
|
+
'''Specifies the infrastructure update policy for the Amazon EC2 compute environment.
|
|
2248
2249
|
|
|
2249
2250
|
For more information about infrastructure updates, see `Updating compute environments <https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html>`_ in the *AWS Batch User Guide* .
|
|
2250
2251
|
|
|
@@ -2355,7 +2356,7 @@ class CfnComputeEnvironmentProps:
|
|
|
2355
2356
|
:param compute_resources: The ComputeResources property type specifies details of the compute resources managed by the compute environment. 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 ** .
|
|
2356
2357
|
:param context: Reserved.
|
|
2357
2358
|
:param eks_configuration: The details for the Amazon EKS cluster that supports the compute environment.
|
|
2358
|
-
:param replace_compute_environment: Specifies whether the compute environment is replaced if an update is made that requires replacing the instances in the compute environment. The default value is ``true`` . To enable more properties to be updated, set this property to ``false`` . When changing the value of this property to ``false`` , do not change any other properties at the same time. If other properties are changed at the same time, and the change needs to be rolled back but it can't, it's possible for the stack to go into the ``UPDATE_ROLLBACK_FAILED`` state. You can't update a stack that is in the ``UPDATE_ROLLBACK_FAILED`` state. However, if you can continue to roll it back, you can return the stack to its original settings and then try to update it again. For more information, see `Continue rolling back an update <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html>`_ in the *AWS CloudFormation User Guide* . The properties that can't be changed without replacing the compute environment are in the ```ComputeResources`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html>`_ property type: ```AllocationStrategy`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-allocationstrategy>`_ , ```BidPercentage`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-bidpercentage>`_ , ```Ec2Configuration`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2configuration>`_ , ```Ec2KeyPair`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair>`_ , ```Ec2KeyPair`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair>`_ , ```ImageId`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-imageid>`_ , ```InstanceRole`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancerole>`_ , ```InstanceTypes`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancetypes>`_ , ```LaunchTemplate`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-launchtemplate>`_ , ```MaxvCpus`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-maxvcpus>`_ , ```MinvCpus`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-minvcpus>`_ , ```PlacementGroup`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-placementgroup>`_ , ```SecurityGroupIds`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-securitygroupids>`_ , ```Subnets`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-subnets>`_ , `Tags <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-tags>`_ , ```Type`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-type>`_ , and ```UpdateToLatestImageVersion`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-updatetolatestimageversion>`_ . Default: - true
|
|
2359
|
+
:param replace_compute_environment: Specifies whether the compute environment is replaced if an update is made that requires replacing the instances in the compute environment. The default value is ``true`` . To enable more properties to be updated, set this property to ``false`` . When changing the value of this property to ``false`` , do not change any other properties at the same time. If other properties are changed at the same time, and the change needs to be rolled back but it can't, it's possible for the stack to go into the ``UPDATE_ROLLBACK_FAILED`` state. You can't update a stack that is in the ``UPDATE_ROLLBACK_FAILED`` state. However, if you can continue to roll it back, you can return the stack to its original settings and then try to update it again. For more information, see `Continue rolling back an update <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html>`_ in the *AWS CloudFormation User Guide* . ``ReplaceComputeEnvironment`` is not applicable for Fargate compute environments. Fargate compute environments are always updated without interruption. The properties that can't be changed without replacing the compute environment are in the ```ComputeResources`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html>`_ property type: ```AllocationStrategy`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-allocationstrategy>`_ , ```BidPercentage`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-bidpercentage>`_ , ```Ec2Configuration`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2configuration>`_ , ```Ec2KeyPair`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair>`_ , ```Ec2KeyPair`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair>`_ , ```ImageId`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-imageid>`_ , ```InstanceRole`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancerole>`_ , ```InstanceTypes`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancetypes>`_ , ```LaunchTemplate`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-launchtemplate>`_ , ```MaxvCpus`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-maxvcpus>`_ , ```MinvCpus`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-minvcpus>`_ , ```PlacementGroup`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-placementgroup>`_ , ```SecurityGroupIds`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-securitygroupids>`_ , ```Subnets`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-subnets>`_ , `Tags <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-tags>`_ , ```Type`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-type>`_ , and ```UpdateToLatestImageVersion`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-updatetolatestimageversion>`_ . Default: - true
|
|
2359
2360
|
:param service_role: The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. For more information, see `AWS Batch service IAM role <https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html>`_ in the *AWS Batch User Guide* . .. epigraph:: If your account already created the AWS Batch service-linked role, that role is used by default for your compute environment unless you specify a different role here. If the AWS Batch service-linked role doesn't exist in your account, and no role is specified here, the service attempts to create the AWS Batch service-linked role in your account. If your specified role has a path other than ``/`` , then you must specify either the full role ARN (recommended) or prefix the role name with the path. For example, if a role with the name ``bar`` has a path of ``/foo/`` , specify ``/foo/bar`` as the role name. For more information, see `Friendly names and paths <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names>`_ in the *IAM User Guide* . .. epigraph:: Depending on how you created your AWS Batch service role, its ARN might contain the ``service-role`` path prefix. When you only specify the name of the service role, AWS Batch assumes that your ARN doesn't use the ``service-role`` path prefix. Because of this, we recommend that you specify the full ARN of your service role when you create compute environments.
|
|
2360
2361
|
:param state: The state of the compute environment. If the state is ``ENABLED`` , then the compute environment accepts jobs from a queue and can scale out automatically based on queues. If the state is ``ENABLED`` , then the AWS Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically, based on the job queue demand. If the state is ``DISABLED`` , then the AWS Batch scheduler doesn't attempt to place jobs within the environment. Jobs in a ``STARTING`` or ``RUNNING`` state continue to progress normally. Managed compute environments in the ``DISABLED`` state don't scale out. .. epigraph:: Compute environments in a ``DISABLED`` state may continue to incur billing charges. To prevent additional charges, turn off and then delete the compute environment. For more information, see `State <https://docs.aws.amazon.com/batch/latest/userguide/compute_environment_parameters.html#compute_environment_state>`_ in the *AWS Batch User Guide* . When an instance is idle, the instance scales down to the ``minvCpus`` value. However, the instance size doesn't change. For example, consider a ``c5.8xlarge`` instance with a ``minvCpus`` value of ``4`` and a ``desiredvCpus`` value of ``36`` . This instance doesn't scale down to a ``c5.large`` instance.
|
|
2361
2362
|
:param tags: The tags applied to the compute environment.
|
|
@@ -2535,6 +2536,8 @@ class CfnComputeEnvironmentProps:
|
|
|
2535
2536
|
|
|
2536
2537
|
The default value is ``true`` . To enable more properties to be updated, set this property to ``false`` . When changing the value of this property to ``false`` , do not change any other properties at the same time. If other properties are changed at the same time, and the change needs to be rolled back but it can't, it's possible for the stack to go into the ``UPDATE_ROLLBACK_FAILED`` state. You can't update a stack that is in the ``UPDATE_ROLLBACK_FAILED`` state. However, if you can continue to roll it back, you can return the stack to its original settings and then try to update it again. For more information, see `Continue rolling back an update <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html>`_ in the *AWS CloudFormation User Guide* .
|
|
2537
2538
|
|
|
2539
|
+
``ReplaceComputeEnvironment`` is not applicable for Fargate compute environments. Fargate compute environments are always updated without interruption.
|
|
2540
|
+
|
|
2538
2541
|
The properties that can't be changed without replacing the compute environment are in the ```ComputeResources`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html>`_ property type: ```AllocationStrategy`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-allocationstrategy>`_ , ```BidPercentage`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-bidpercentage>`_ , ```Ec2Configuration`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2configuration>`_ , ```Ec2KeyPair`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair>`_ , ```Ec2KeyPair`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair>`_ , ```ImageId`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-imageid>`_ , ```InstanceRole`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancerole>`_ , ```InstanceTypes`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancetypes>`_ , ```LaunchTemplate`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-launchtemplate>`_ , ```MaxvCpus`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-maxvcpus>`_ , ```MinvCpus`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-minvcpus>`_ , ```PlacementGroup`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-placementgroup>`_ , ```SecurityGroupIds`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-securitygroupids>`_ , ```Subnets`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-subnets>`_ , `Tags <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-tags>`_ , ```Type`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-type>`_ , and ```UpdateToLatestImageVersion`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-updatetolatestimageversion>`_ .
|
|
2539
2542
|
|
|
2540
2543
|
:default: - true
|
|
@@ -2631,6 +2634,321 @@ class CfnComputeEnvironmentProps:
|
|
|
2631
2634
|
)
|
|
2632
2635
|
|
|
2633
2636
|
|
|
2637
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
2638
|
+
class CfnConsumableResource(
|
|
2639
|
+
_CfnResource_9df397a6,
|
|
2640
|
+
metaclass=jsii.JSIIMeta,
|
|
2641
|
+
jsii_type="aws-cdk-lib.aws_batch.CfnConsumableResource",
|
|
2642
|
+
):
|
|
2643
|
+
'''The ``AWS::Batch::ConsumableResource`` resource specifies the parameters for an AWS Batch consumable resource.
|
|
2644
|
+
|
|
2645
|
+
For more information, see `Resource-aware scheduling <https://docs.aws.amazon.com/batch/latest/userguide/resource-aware-scheduling.html>`_ in the ** .
|
|
2646
|
+
|
|
2647
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-consumableresource.html
|
|
2648
|
+
:cloudformationResource: AWS::Batch::ConsumableResource
|
|
2649
|
+
:exampleMetadata: fixture=_generated
|
|
2650
|
+
|
|
2651
|
+
Example::
|
|
2652
|
+
|
|
2653
|
+
# The code below shows an example of how to instantiate this type.
|
|
2654
|
+
# The values are placeholders you should change.
|
|
2655
|
+
from aws_cdk import aws_batch as batch
|
|
2656
|
+
|
|
2657
|
+
cfn_consumable_resource = batch.CfnConsumableResource(self, "MyCfnConsumableResource",
|
|
2658
|
+
resource_type="resourceType",
|
|
2659
|
+
total_quantity=123,
|
|
2660
|
+
|
|
2661
|
+
# the properties below are optional
|
|
2662
|
+
consumable_resource_name="consumableResourceName",
|
|
2663
|
+
tags={
|
|
2664
|
+
"tags_key": "tags"
|
|
2665
|
+
}
|
|
2666
|
+
)
|
|
2667
|
+
'''
|
|
2668
|
+
|
|
2669
|
+
def __init__(
|
|
2670
|
+
self,
|
|
2671
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
2672
|
+
id: builtins.str,
|
|
2673
|
+
*,
|
|
2674
|
+
resource_type: builtins.str,
|
|
2675
|
+
total_quantity: jsii.Number,
|
|
2676
|
+
consumable_resource_name: typing.Optional[builtins.str] = None,
|
|
2677
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
2678
|
+
) -> None:
|
|
2679
|
+
'''
|
|
2680
|
+
:param scope: Scope in which this resource is defined.
|
|
2681
|
+
:param id: Construct identifier for this resource (unique in its scope).
|
|
2682
|
+
:param resource_type: Indicates whether the resource is available to be re-used after a job completes. Can be one of:. - ``REPLENISHABLE`` - ``NON_REPLENISHABLE``
|
|
2683
|
+
:param total_quantity: The total amount of the consumable resource that is available.
|
|
2684
|
+
:param consumable_resource_name: The name of the consumable resource.
|
|
2685
|
+
:param tags: The tags that you apply to the consumable resource to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see `Tagging your AWS Batch resources <https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html>`_ .
|
|
2686
|
+
'''
|
|
2687
|
+
if __debug__:
|
|
2688
|
+
type_hints = typing.get_type_hints(_typecheckingstub__5c99b0cde97c1da7fcdbc520729f9e431c6aa0879ca2c3f310f91017cfee5007)
|
|
2689
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
2690
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
2691
|
+
props = CfnConsumableResourceProps(
|
|
2692
|
+
resource_type=resource_type,
|
|
2693
|
+
total_quantity=total_quantity,
|
|
2694
|
+
consumable_resource_name=consumable_resource_name,
|
|
2695
|
+
tags=tags,
|
|
2696
|
+
)
|
|
2697
|
+
|
|
2698
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
2699
|
+
|
|
2700
|
+
@jsii.member(jsii_name="inspect")
|
|
2701
|
+
def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
|
|
2702
|
+
'''Examines the CloudFormation resource and discloses attributes.
|
|
2703
|
+
|
|
2704
|
+
:param inspector: tree inspector to collect and process attributes.
|
|
2705
|
+
'''
|
|
2706
|
+
if __debug__:
|
|
2707
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b41c1f0a4fca10f0b198693331d558f57596f6e4a572a4cf64008e1ca42e3534)
|
|
2708
|
+
check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
|
|
2709
|
+
return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
|
|
2710
|
+
|
|
2711
|
+
@jsii.member(jsii_name="renderProperties")
|
|
2712
|
+
def _render_properties(
|
|
2713
|
+
self,
|
|
2714
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
2715
|
+
) -> typing.Mapping[builtins.str, typing.Any]:
|
|
2716
|
+
'''
|
|
2717
|
+
:param props: -
|
|
2718
|
+
'''
|
|
2719
|
+
if __debug__:
|
|
2720
|
+
type_hints = typing.get_type_hints(_typecheckingstub__5511de8b41a1f295801ff1c0ea7a9ee2822d462f774ec168cdb7e0a49196a1ed)
|
|
2721
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
2722
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
|
|
2723
|
+
|
|
2724
|
+
@jsii.python.classproperty
|
|
2725
|
+
@jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
|
|
2726
|
+
def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
|
|
2727
|
+
'''The CloudFormation resource type name for this resource class.'''
|
|
2728
|
+
return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
|
|
2729
|
+
|
|
2730
|
+
@builtins.property
|
|
2731
|
+
@jsii.member(jsii_name="attrAvailableQuantity")
|
|
2732
|
+
def attr_available_quantity(self) -> jsii.Number:
|
|
2733
|
+
'''The amount of the consumable resource that is currently available to use.
|
|
2734
|
+
|
|
2735
|
+
:cloudformationAttribute: AvailableQuantity
|
|
2736
|
+
'''
|
|
2737
|
+
return typing.cast(jsii.Number, jsii.get(self, "attrAvailableQuantity"))
|
|
2738
|
+
|
|
2739
|
+
@builtins.property
|
|
2740
|
+
@jsii.member(jsii_name="attrConsumableResourceArn")
|
|
2741
|
+
def attr_consumable_resource_arn(self) -> builtins.str:
|
|
2742
|
+
'''The Amazon Resource Name (ARN) of the consumable resource.
|
|
2743
|
+
|
|
2744
|
+
:cloudformationAttribute: ConsumableResourceArn
|
|
2745
|
+
'''
|
|
2746
|
+
return typing.cast(builtins.str, jsii.get(self, "attrConsumableResourceArn"))
|
|
2747
|
+
|
|
2748
|
+
@builtins.property
|
|
2749
|
+
@jsii.member(jsii_name="attrCreatedAt")
|
|
2750
|
+
def attr_created_at(self) -> jsii.Number:
|
|
2751
|
+
'''The Unix timestamp (in milliseconds) for when the consumable resource was created.
|
|
2752
|
+
|
|
2753
|
+
:cloudformationAttribute: CreatedAt
|
|
2754
|
+
'''
|
|
2755
|
+
return typing.cast(jsii.Number, jsii.get(self, "attrCreatedAt"))
|
|
2756
|
+
|
|
2757
|
+
@builtins.property
|
|
2758
|
+
@jsii.member(jsii_name="attrInUseQuantity")
|
|
2759
|
+
def attr_in_use_quantity(self) -> jsii.Number:
|
|
2760
|
+
'''The amount of the consumable resource that is currently in use.
|
|
2761
|
+
|
|
2762
|
+
:cloudformationAttribute: InUseQuantity
|
|
2763
|
+
'''
|
|
2764
|
+
return typing.cast(jsii.Number, jsii.get(self, "attrInUseQuantity"))
|
|
2765
|
+
|
|
2766
|
+
@builtins.property
|
|
2767
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
2768
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
2769
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
2770
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
2771
|
+
|
|
2772
|
+
@builtins.property
|
|
2773
|
+
@jsii.member(jsii_name="cfnProperties")
|
|
2774
|
+
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
2775
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
|
|
2776
|
+
|
|
2777
|
+
@builtins.property
|
|
2778
|
+
@jsii.member(jsii_name="resourceType")
|
|
2779
|
+
def resource_type(self) -> builtins.str:
|
|
2780
|
+
'''Indicates whether the resource is available to be re-used after a job completes.
|
|
2781
|
+
|
|
2782
|
+
Can be one of:.
|
|
2783
|
+
'''
|
|
2784
|
+
return typing.cast(builtins.str, jsii.get(self, "resourceType"))
|
|
2785
|
+
|
|
2786
|
+
@resource_type.setter
|
|
2787
|
+
def resource_type(self, value: builtins.str) -> None:
|
|
2788
|
+
if __debug__:
|
|
2789
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9e365d37f3f984f47f3e9155d90709d48dab3b5c99de23c31edf3e0524a3302d)
|
|
2790
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2791
|
+
jsii.set(self, "resourceType", value) # pyright: ignore[reportArgumentType]
|
|
2792
|
+
|
|
2793
|
+
@builtins.property
|
|
2794
|
+
@jsii.member(jsii_name="totalQuantity")
|
|
2795
|
+
def total_quantity(self) -> jsii.Number:
|
|
2796
|
+
'''The total amount of the consumable resource that is available.'''
|
|
2797
|
+
return typing.cast(jsii.Number, jsii.get(self, "totalQuantity"))
|
|
2798
|
+
|
|
2799
|
+
@total_quantity.setter
|
|
2800
|
+
def total_quantity(self, value: jsii.Number) -> None:
|
|
2801
|
+
if __debug__:
|
|
2802
|
+
type_hints = typing.get_type_hints(_typecheckingstub__267ecfd211d87fefa6a82e181ae34839f62811b27349a340c7dd7af7b1d643ac)
|
|
2803
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2804
|
+
jsii.set(self, "totalQuantity", value) # pyright: ignore[reportArgumentType]
|
|
2805
|
+
|
|
2806
|
+
@builtins.property
|
|
2807
|
+
@jsii.member(jsii_name="consumableResourceName")
|
|
2808
|
+
def consumable_resource_name(self) -> typing.Optional[builtins.str]:
|
|
2809
|
+
'''The name of the consumable resource.'''
|
|
2810
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "consumableResourceName"))
|
|
2811
|
+
|
|
2812
|
+
@consumable_resource_name.setter
|
|
2813
|
+
def consumable_resource_name(self, value: typing.Optional[builtins.str]) -> None:
|
|
2814
|
+
if __debug__:
|
|
2815
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6b8701734e05768bb24c412344b9c0ac7a78b14234dfd357ae9125b48b5ce5e2)
|
|
2816
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2817
|
+
jsii.set(self, "consumableResourceName", value) # pyright: ignore[reportArgumentType]
|
|
2818
|
+
|
|
2819
|
+
@builtins.property
|
|
2820
|
+
@jsii.member(jsii_name="tags")
|
|
2821
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
2822
|
+
'''The tags that you apply to the consumable resource to help you categorize and organize your resources.'''
|
|
2823
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], jsii.get(self, "tags"))
|
|
2824
|
+
|
|
2825
|
+
@tags.setter
|
|
2826
|
+
def tags(
|
|
2827
|
+
self,
|
|
2828
|
+
value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
|
|
2829
|
+
) -> None:
|
|
2830
|
+
if __debug__:
|
|
2831
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6aeb610201199cf9ed022e6ce90ed818369482ef25877943acf468ba6509693e)
|
|
2832
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2833
|
+
jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
|
|
2834
|
+
|
|
2835
|
+
|
|
2836
|
+
@jsii.data_type(
|
|
2837
|
+
jsii_type="aws-cdk-lib.aws_batch.CfnConsumableResourceProps",
|
|
2838
|
+
jsii_struct_bases=[],
|
|
2839
|
+
name_mapping={
|
|
2840
|
+
"resource_type": "resourceType",
|
|
2841
|
+
"total_quantity": "totalQuantity",
|
|
2842
|
+
"consumable_resource_name": "consumableResourceName",
|
|
2843
|
+
"tags": "tags",
|
|
2844
|
+
},
|
|
2845
|
+
)
|
|
2846
|
+
class CfnConsumableResourceProps:
|
|
2847
|
+
def __init__(
|
|
2848
|
+
self,
|
|
2849
|
+
*,
|
|
2850
|
+
resource_type: builtins.str,
|
|
2851
|
+
total_quantity: jsii.Number,
|
|
2852
|
+
consumable_resource_name: typing.Optional[builtins.str] = None,
|
|
2853
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
2854
|
+
) -> None:
|
|
2855
|
+
'''Properties for defining a ``CfnConsumableResource``.
|
|
2856
|
+
|
|
2857
|
+
:param resource_type: Indicates whether the resource is available to be re-used after a job completes. Can be one of:. - ``REPLENISHABLE`` - ``NON_REPLENISHABLE``
|
|
2858
|
+
:param total_quantity: The total amount of the consumable resource that is available.
|
|
2859
|
+
:param consumable_resource_name: The name of the consumable resource.
|
|
2860
|
+
:param tags: The tags that you apply to the consumable resource to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see `Tagging your AWS Batch resources <https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html>`_ .
|
|
2861
|
+
|
|
2862
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-consumableresource.html
|
|
2863
|
+
:exampleMetadata: fixture=_generated
|
|
2864
|
+
|
|
2865
|
+
Example::
|
|
2866
|
+
|
|
2867
|
+
# The code below shows an example of how to instantiate this type.
|
|
2868
|
+
# The values are placeholders you should change.
|
|
2869
|
+
from aws_cdk import aws_batch as batch
|
|
2870
|
+
|
|
2871
|
+
cfn_consumable_resource_props = batch.CfnConsumableResourceProps(
|
|
2872
|
+
resource_type="resourceType",
|
|
2873
|
+
total_quantity=123,
|
|
2874
|
+
|
|
2875
|
+
# the properties below are optional
|
|
2876
|
+
consumable_resource_name="consumableResourceName",
|
|
2877
|
+
tags={
|
|
2878
|
+
"tags_key": "tags"
|
|
2879
|
+
}
|
|
2880
|
+
)
|
|
2881
|
+
'''
|
|
2882
|
+
if __debug__:
|
|
2883
|
+
type_hints = typing.get_type_hints(_typecheckingstub__273574f20d47e157a9e993b6d91e9496f22d80d24c48e2d755bfe2493e0fe9cc)
|
|
2884
|
+
check_type(argname="argument resource_type", value=resource_type, expected_type=type_hints["resource_type"])
|
|
2885
|
+
check_type(argname="argument total_quantity", value=total_quantity, expected_type=type_hints["total_quantity"])
|
|
2886
|
+
check_type(argname="argument consumable_resource_name", value=consumable_resource_name, expected_type=type_hints["consumable_resource_name"])
|
|
2887
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
2888
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
2889
|
+
"resource_type": resource_type,
|
|
2890
|
+
"total_quantity": total_quantity,
|
|
2891
|
+
}
|
|
2892
|
+
if consumable_resource_name is not None:
|
|
2893
|
+
self._values["consumable_resource_name"] = consumable_resource_name
|
|
2894
|
+
if tags is not None:
|
|
2895
|
+
self._values["tags"] = tags
|
|
2896
|
+
|
|
2897
|
+
@builtins.property
|
|
2898
|
+
def resource_type(self) -> builtins.str:
|
|
2899
|
+
'''Indicates whether the resource is available to be re-used after a job completes. Can be one of:.
|
|
2900
|
+
|
|
2901
|
+
- ``REPLENISHABLE``
|
|
2902
|
+
- ``NON_REPLENISHABLE``
|
|
2903
|
+
|
|
2904
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-consumableresource.html#cfn-batch-consumableresource-resourcetype
|
|
2905
|
+
'''
|
|
2906
|
+
result = self._values.get("resource_type")
|
|
2907
|
+
assert result is not None, "Required property 'resource_type' is missing"
|
|
2908
|
+
return typing.cast(builtins.str, result)
|
|
2909
|
+
|
|
2910
|
+
@builtins.property
|
|
2911
|
+
def total_quantity(self) -> jsii.Number:
|
|
2912
|
+
'''The total amount of the consumable resource that is available.
|
|
2913
|
+
|
|
2914
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-consumableresource.html#cfn-batch-consumableresource-totalquantity
|
|
2915
|
+
'''
|
|
2916
|
+
result = self._values.get("total_quantity")
|
|
2917
|
+
assert result is not None, "Required property 'total_quantity' is missing"
|
|
2918
|
+
return typing.cast(jsii.Number, result)
|
|
2919
|
+
|
|
2920
|
+
@builtins.property
|
|
2921
|
+
def consumable_resource_name(self) -> typing.Optional[builtins.str]:
|
|
2922
|
+
'''The name of the consumable resource.
|
|
2923
|
+
|
|
2924
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-consumableresource.html#cfn-batch-consumableresource-consumableresourcename
|
|
2925
|
+
'''
|
|
2926
|
+
result = self._values.get("consumable_resource_name")
|
|
2927
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2928
|
+
|
|
2929
|
+
@builtins.property
|
|
2930
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
2931
|
+
'''The tags that you apply to the consumable resource to help you categorize and organize your resources.
|
|
2932
|
+
|
|
2933
|
+
Each tag consists of a key and an optional value. For more information, see `Tagging your AWS Batch resources <https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html>`_ .
|
|
2934
|
+
|
|
2935
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-consumableresource.html#cfn-batch-consumableresource-tags
|
|
2936
|
+
'''
|
|
2937
|
+
result = self._values.get("tags")
|
|
2938
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
2939
|
+
|
|
2940
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2941
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2942
|
+
|
|
2943
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2944
|
+
return not (rhs == self)
|
|
2945
|
+
|
|
2946
|
+
def __repr__(self) -> str:
|
|
2947
|
+
return "CfnConsumableResourceProps(%s)" % ", ".join(
|
|
2948
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2949
|
+
)
|
|
2950
|
+
|
|
2951
|
+
|
|
2634
2952
|
@jsii.implements(_IInspectable_c2943556, _ITaggable_36806126)
|
|
2635
2953
|
class CfnJobDefinition(
|
|
2636
2954
|
_CfnResource_9df397a6,
|
|
@@ -2656,6 +2974,7 @@ class CfnJobDefinition(
|
|
|
2656
2974
|
id: builtins.str,
|
|
2657
2975
|
*,
|
|
2658
2976
|
type: builtins.str,
|
|
2977
|
+
consumable_resource_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.ConsumableResourcePropertiesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2659
2978
|
container_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.ContainerPropertiesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2660
2979
|
ecs_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.EcsPropertiesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2661
2980
|
eks_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.EksPropertiesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -2673,6 +2992,7 @@ class CfnJobDefinition(
|
|
|
2673
2992
|
:param scope: Scope in which this resource is defined.
|
|
2674
2993
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
2675
2994
|
:param type: The type of job definition. For more information about multi-node parallel jobs, see `Creating a multi-node parallel job definition <https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html>`_ in the *AWS Batch User Guide* . - If the value is ``container`` , then one of the following is required: ``containerProperties`` , ``ecsProperties`` , or ``eksProperties`` . - If the value is ``multinode`` , then ``nodeProperties`` is required. .. epigraph:: If the job is run on Fargate resources, then ``multinode`` isn't supported.
|
|
2995
|
+
:param consumable_resource_properties: Contains a list of consumable resources required by the job.
|
|
2676
2996
|
:param container_properties: An object with properties specific to Amazon ECS-based jobs. When ``containerProperties`` is used in the job definition, it can't be used in addition to ``eksProperties`` , ``ecsProperties`` , or ``nodeProperties`` .
|
|
2677
2997
|
:param ecs_properties: An object that contains the properties for the Amazon ECS resources of a job.When ``ecsProperties`` is used in the job definition, it can't be used in addition to ``containerProperties`` , ``eksProperties`` , or ``nodeProperties`` .
|
|
2678
2998
|
:param eks_properties: An object with properties that are specific to Amazon EKS-based jobs. When ``eksProperties`` is used in the job definition, it can't be used in addition to ``containerProperties`` , ``ecsProperties`` , or ``nodeProperties`` .
|
|
@@ -2692,6 +3012,7 @@ class CfnJobDefinition(
|
|
|
2692
3012
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
2693
3013
|
props = CfnJobDefinitionProps(
|
|
2694
3014
|
type=type,
|
|
3015
|
+
consumable_resource_properties=consumable_resource_properties,
|
|
2695
3016
|
container_properties=container_properties,
|
|
2696
3017
|
ecs_properties=ecs_properties,
|
|
2697
3018
|
eks_properties=eks_properties,
|
|
@@ -2762,6 +3083,24 @@ class CfnJobDefinition(
|
|
|
2762
3083
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2763
3084
|
jsii.set(self, "type", value) # pyright: ignore[reportArgumentType]
|
|
2764
3085
|
|
|
3086
|
+
@builtins.property
|
|
3087
|
+
@jsii.member(jsii_name="consumableResourceProperties")
|
|
3088
|
+
def consumable_resource_properties(
|
|
3089
|
+
self,
|
|
3090
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.ConsumableResourcePropertiesProperty"]]:
|
|
3091
|
+
'''Contains a list of consumable resources required by the job.'''
|
|
3092
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.ConsumableResourcePropertiesProperty"]], jsii.get(self, "consumableResourceProperties"))
|
|
3093
|
+
|
|
3094
|
+
@consumable_resource_properties.setter
|
|
3095
|
+
def consumable_resource_properties(
|
|
3096
|
+
self,
|
|
3097
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.ConsumableResourcePropertiesProperty"]],
|
|
3098
|
+
) -> None:
|
|
3099
|
+
if __debug__:
|
|
3100
|
+
type_hints = typing.get_type_hints(_typecheckingstub__c368ee191818b7f44968cb3ae44c5bb147fa195ae7df416283fff61f6efc1dd9)
|
|
3101
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
3102
|
+
jsii.set(self, "consumableResourceProperties", value) # pyright: ignore[reportArgumentType]
|
|
3103
|
+
|
|
2765
3104
|
@builtins.property
|
|
2766
3105
|
@jsii.member(jsii_name="containerProperties")
|
|
2767
3106
|
def container_properties(
|
|
@@ -3023,6 +3362,141 @@ class CfnJobDefinition(
|
|
|
3023
3362
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
3024
3363
|
)
|
|
3025
3364
|
|
|
3365
|
+
@jsii.data_type(
|
|
3366
|
+
jsii_type="aws-cdk-lib.aws_batch.CfnJobDefinition.ConsumableResourcePropertiesProperty",
|
|
3367
|
+
jsii_struct_bases=[],
|
|
3368
|
+
name_mapping={"consumable_resource_list": "consumableResourceList"},
|
|
3369
|
+
)
|
|
3370
|
+
class ConsumableResourcePropertiesProperty:
|
|
3371
|
+
def __init__(
|
|
3372
|
+
self,
|
|
3373
|
+
*,
|
|
3374
|
+
consumable_resource_list: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.ConsumableResourceRequirementProperty", typing.Dict[builtins.str, typing.Any]]]]],
|
|
3375
|
+
) -> None:
|
|
3376
|
+
'''Contains a list of consumable resources required by a job.
|
|
3377
|
+
|
|
3378
|
+
:param consumable_resource_list: The list of consumable resources required by a job.
|
|
3379
|
+
|
|
3380
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-consumableresourceproperties.html
|
|
3381
|
+
:exampleMetadata: fixture=_generated
|
|
3382
|
+
|
|
3383
|
+
Example::
|
|
3384
|
+
|
|
3385
|
+
# The code below shows an example of how to instantiate this type.
|
|
3386
|
+
# The values are placeholders you should change.
|
|
3387
|
+
from aws_cdk import aws_batch as batch
|
|
3388
|
+
|
|
3389
|
+
consumable_resource_properties_property = batch.CfnJobDefinition.ConsumableResourcePropertiesProperty(
|
|
3390
|
+
consumable_resource_list=[batch.CfnJobDefinition.ConsumableResourceRequirementProperty(
|
|
3391
|
+
consumable_resource="consumableResource",
|
|
3392
|
+
quantity=123
|
|
3393
|
+
)]
|
|
3394
|
+
)
|
|
3395
|
+
'''
|
|
3396
|
+
if __debug__:
|
|
3397
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3b629a35b0e74fbc3eff29818b9c44bbd57ebdeb0ab63ab735a548e6880a79ea)
|
|
3398
|
+
check_type(argname="argument consumable_resource_list", value=consumable_resource_list, expected_type=type_hints["consumable_resource_list"])
|
|
3399
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3400
|
+
"consumable_resource_list": consumable_resource_list,
|
|
3401
|
+
}
|
|
3402
|
+
|
|
3403
|
+
@builtins.property
|
|
3404
|
+
def consumable_resource_list(
|
|
3405
|
+
self,
|
|
3406
|
+
) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.ConsumableResourceRequirementProperty"]]]:
|
|
3407
|
+
'''The list of consumable resources required by a job.
|
|
3408
|
+
|
|
3409
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-consumableresourceproperties.html#cfn-batch-jobdefinition-consumableresourceproperties-consumableresourcelist
|
|
3410
|
+
'''
|
|
3411
|
+
result = self._values.get("consumable_resource_list")
|
|
3412
|
+
assert result is not None, "Required property 'consumable_resource_list' is missing"
|
|
3413
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.ConsumableResourceRequirementProperty"]]], result)
|
|
3414
|
+
|
|
3415
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3416
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3417
|
+
|
|
3418
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3419
|
+
return not (rhs == self)
|
|
3420
|
+
|
|
3421
|
+
def __repr__(self) -> str:
|
|
3422
|
+
return "ConsumableResourcePropertiesProperty(%s)" % ", ".join(
|
|
3423
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3424
|
+
)
|
|
3425
|
+
|
|
3426
|
+
@jsii.data_type(
|
|
3427
|
+
jsii_type="aws-cdk-lib.aws_batch.CfnJobDefinition.ConsumableResourceRequirementProperty",
|
|
3428
|
+
jsii_struct_bases=[],
|
|
3429
|
+
name_mapping={
|
|
3430
|
+
"consumable_resource": "consumableResource",
|
|
3431
|
+
"quantity": "quantity",
|
|
3432
|
+
},
|
|
3433
|
+
)
|
|
3434
|
+
class ConsumableResourceRequirementProperty:
|
|
3435
|
+
def __init__(
|
|
3436
|
+
self,
|
|
3437
|
+
*,
|
|
3438
|
+
consumable_resource: builtins.str,
|
|
3439
|
+
quantity: jsii.Number,
|
|
3440
|
+
) -> None:
|
|
3441
|
+
'''Information about a consumable resource required to run a job.
|
|
3442
|
+
|
|
3443
|
+
:param consumable_resource: The name or ARN of the consumable resource.
|
|
3444
|
+
:param quantity: The quantity of the consumable resource that is needed.
|
|
3445
|
+
|
|
3446
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-consumableresourcerequirement.html
|
|
3447
|
+
:exampleMetadata: fixture=_generated
|
|
3448
|
+
|
|
3449
|
+
Example::
|
|
3450
|
+
|
|
3451
|
+
# The code below shows an example of how to instantiate this type.
|
|
3452
|
+
# The values are placeholders you should change.
|
|
3453
|
+
from aws_cdk import aws_batch as batch
|
|
3454
|
+
|
|
3455
|
+
consumable_resource_requirement_property = batch.CfnJobDefinition.ConsumableResourceRequirementProperty(
|
|
3456
|
+
consumable_resource="consumableResource",
|
|
3457
|
+
quantity=123
|
|
3458
|
+
)
|
|
3459
|
+
'''
|
|
3460
|
+
if __debug__:
|
|
3461
|
+
type_hints = typing.get_type_hints(_typecheckingstub__14cb9e21c298e41a083a856c9790ba0510d4434a296b7c70c86b029921622e58)
|
|
3462
|
+
check_type(argname="argument consumable_resource", value=consumable_resource, expected_type=type_hints["consumable_resource"])
|
|
3463
|
+
check_type(argname="argument quantity", value=quantity, expected_type=type_hints["quantity"])
|
|
3464
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
3465
|
+
"consumable_resource": consumable_resource,
|
|
3466
|
+
"quantity": quantity,
|
|
3467
|
+
}
|
|
3468
|
+
|
|
3469
|
+
@builtins.property
|
|
3470
|
+
def consumable_resource(self) -> builtins.str:
|
|
3471
|
+
'''The name or ARN of the consumable resource.
|
|
3472
|
+
|
|
3473
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-consumableresourcerequirement.html#cfn-batch-jobdefinition-consumableresourcerequirement-consumableresource
|
|
3474
|
+
'''
|
|
3475
|
+
result = self._values.get("consumable_resource")
|
|
3476
|
+
assert result is not None, "Required property 'consumable_resource' is missing"
|
|
3477
|
+
return typing.cast(builtins.str, result)
|
|
3478
|
+
|
|
3479
|
+
@builtins.property
|
|
3480
|
+
def quantity(self) -> jsii.Number:
|
|
3481
|
+
'''The quantity of the consumable resource that is needed.
|
|
3482
|
+
|
|
3483
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-consumableresourcerequirement.html#cfn-batch-jobdefinition-consumableresourcerequirement-quantity
|
|
3484
|
+
'''
|
|
3485
|
+
result = self._values.get("quantity")
|
|
3486
|
+
assert result is not None, "Required property 'quantity' is missing"
|
|
3487
|
+
return typing.cast(jsii.Number, result)
|
|
3488
|
+
|
|
3489
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3490
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3491
|
+
|
|
3492
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
3493
|
+
return not (rhs == self)
|
|
3494
|
+
|
|
3495
|
+
def __repr__(self) -> str:
|
|
3496
|
+
return "ConsumableResourceRequirementProperty(%s)" % ", ".join(
|
|
3497
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
3498
|
+
)
|
|
3499
|
+
|
|
3026
3500
|
@jsii.data_type(
|
|
3027
3501
|
jsii_type="aws-cdk-lib.aws_batch.CfnJobDefinition.ContainerPropertiesProperty",
|
|
3028
3502
|
jsii_struct_bases=[],
|
|
@@ -6833,6 +7307,12 @@ class CfnJobDefinition(
|
|
|
6833
7307
|
target_nodes="targetNodes",
|
|
6834
7308
|
|
|
6835
7309
|
# the properties below are optional
|
|
7310
|
+
consumable_resource_properties=batch.CfnJobDefinition.ConsumableResourcePropertiesProperty(
|
|
7311
|
+
consumable_resource_list=[batch.CfnJobDefinition.ConsumableResourceRequirementProperty(
|
|
7312
|
+
consumable_resource="consumableResource",
|
|
7313
|
+
quantity=123
|
|
7314
|
+
)]
|
|
7315
|
+
),
|
|
6836
7316
|
container=batch.CfnJobDefinition.ContainerPropertiesProperty(
|
|
6837
7317
|
image="image",
|
|
6838
7318
|
|
|
@@ -7195,6 +7675,7 @@ class CfnJobDefinition(
|
|
|
7195
7675
|
jsii_struct_bases=[],
|
|
7196
7676
|
name_mapping={
|
|
7197
7677
|
"target_nodes": "targetNodes",
|
|
7678
|
+
"consumable_resource_properties": "consumableResourceProperties",
|
|
7198
7679
|
"container": "container",
|
|
7199
7680
|
"ecs_properties": "ecsProperties",
|
|
7200
7681
|
"eks_properties": "eksProperties",
|
|
@@ -7206,6 +7687,7 @@ class CfnJobDefinition(
|
|
|
7206
7687
|
self,
|
|
7207
7688
|
*,
|
|
7208
7689
|
target_nodes: builtins.str,
|
|
7690
|
+
consumable_resource_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.ConsumableResourcePropertiesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7209
7691
|
container: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.ContainerPropertiesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7210
7692
|
ecs_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.MultiNodeEcsPropertiesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7211
7693
|
eks_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnJobDefinition.EksPropertiesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -7214,6 +7696,7 @@ class CfnJobDefinition(
|
|
|
7214
7696
|
'''This is an object that represents the properties of the node range for a multi-node parallel job.
|
|
7215
7697
|
|
|
7216
7698
|
:param target_nodes: The range of nodes, using node index values. A range of ``0:3`` indicates nodes with index values of ``0`` through ``3`` . If the starting range value is omitted ( ``:n`` ), then ``0`` is used to start the range. If the ending range value is omitted ( ``n:`` ), then the highest possible node index is used to end the range. Your accumulative node ranges must account for all nodes ( ``0:n`` ). You can nest node ranges (for example, ``0:10`` and ``4:5`` ). In this case, the ``4:5`` range properties override the ``0:10`` properties.
|
|
7699
|
+
:param consumable_resource_properties: Contains a list of consumable resources required by a job.
|
|
7217
7700
|
:param container: The container details for the node range.
|
|
7218
7701
|
:param ecs_properties: This is an object that represents the properties of the node range for a multi-node parallel job.
|
|
7219
7702
|
:param eks_properties: This is an object that represents the properties of the node range for a multi-node parallel job.
|
|
@@ -7237,6 +7720,12 @@ class CfnJobDefinition(
|
|
|
7237
7720
|
target_nodes="targetNodes",
|
|
7238
7721
|
|
|
7239
7722
|
# the properties below are optional
|
|
7723
|
+
consumable_resource_properties=batch.CfnJobDefinition.ConsumableResourcePropertiesProperty(
|
|
7724
|
+
consumable_resource_list=[batch.CfnJobDefinition.ConsumableResourceRequirementProperty(
|
|
7725
|
+
consumable_resource="consumableResource",
|
|
7726
|
+
quantity=123
|
|
7727
|
+
)]
|
|
7728
|
+
),
|
|
7240
7729
|
container=batch.CfnJobDefinition.ContainerPropertiesProperty(
|
|
7241
7730
|
image="image",
|
|
7242
7731
|
|
|
@@ -7539,6 +8028,7 @@ class CfnJobDefinition(
|
|
|
7539
8028
|
if __debug__:
|
|
7540
8029
|
type_hints = typing.get_type_hints(_typecheckingstub__005c21025a81827c3f5ed456b171eb7ffdf652583c7da0ff6ff67186436afeee)
|
|
7541
8030
|
check_type(argname="argument target_nodes", value=target_nodes, expected_type=type_hints["target_nodes"])
|
|
8031
|
+
check_type(argname="argument consumable_resource_properties", value=consumable_resource_properties, expected_type=type_hints["consumable_resource_properties"])
|
|
7542
8032
|
check_type(argname="argument container", value=container, expected_type=type_hints["container"])
|
|
7543
8033
|
check_type(argname="argument ecs_properties", value=ecs_properties, expected_type=type_hints["ecs_properties"])
|
|
7544
8034
|
check_type(argname="argument eks_properties", value=eks_properties, expected_type=type_hints["eks_properties"])
|
|
@@ -7546,6 +8036,8 @@ class CfnJobDefinition(
|
|
|
7546
8036
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
7547
8037
|
"target_nodes": target_nodes,
|
|
7548
8038
|
}
|
|
8039
|
+
if consumable_resource_properties is not None:
|
|
8040
|
+
self._values["consumable_resource_properties"] = consumable_resource_properties
|
|
7549
8041
|
if container is not None:
|
|
7550
8042
|
self._values["container"] = container
|
|
7551
8043
|
if ecs_properties is not None:
|
|
@@ -7567,6 +8059,17 @@ class CfnJobDefinition(
|
|
|
7567
8059
|
assert result is not None, "Required property 'target_nodes' is missing"
|
|
7568
8060
|
return typing.cast(builtins.str, result)
|
|
7569
8061
|
|
|
8062
|
+
@builtins.property
|
|
8063
|
+
def consumable_resource_properties(
|
|
8064
|
+
self,
|
|
8065
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.ConsumableResourcePropertiesProperty"]]:
|
|
8066
|
+
'''Contains a list of consumable resources required by a job.
|
|
8067
|
+
|
|
8068
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-noderangeproperty.html#cfn-batch-jobdefinition-noderangeproperty-consumableresourceproperties
|
|
8069
|
+
'''
|
|
8070
|
+
result = self._values.get("consumable_resource_properties")
|
|
8071
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnJobDefinition.ConsumableResourcePropertiesProperty"]], result)
|
|
8072
|
+
|
|
7570
8073
|
@builtins.property
|
|
7571
8074
|
def container(
|
|
7572
8075
|
self,
|
|
@@ -9464,6 +9967,7 @@ class CfnJobDefinition(
|
|
|
9464
9967
|
jsii_struct_bases=[],
|
|
9465
9968
|
name_mapping={
|
|
9466
9969
|
"type": "type",
|
|
9970
|
+
"consumable_resource_properties": "consumableResourceProperties",
|
|
9467
9971
|
"container_properties": "containerProperties",
|
|
9468
9972
|
"ecs_properties": "ecsProperties",
|
|
9469
9973
|
"eks_properties": "eksProperties",
|
|
@@ -9483,6 +9987,7 @@ class CfnJobDefinitionProps:
|
|
|
9483
9987
|
self,
|
|
9484
9988
|
*,
|
|
9485
9989
|
type: builtins.str,
|
|
9990
|
+
consumable_resource_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.ConsumableResourcePropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
9486
9991
|
container_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.ContainerPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
9487
9992
|
ecs_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.EcsPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
9488
9993
|
eks_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.EksPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -9499,6 +10004,7 @@ class CfnJobDefinitionProps:
|
|
|
9499
10004
|
'''Properties for defining a ``CfnJobDefinition``.
|
|
9500
10005
|
|
|
9501
10006
|
:param type: The type of job definition. For more information about multi-node parallel jobs, see `Creating a multi-node parallel job definition <https://docs.aws.amazon.com/batch/latest/userguide/multi-node-job-def.html>`_ in the *AWS Batch User Guide* . - If the value is ``container`` , then one of the following is required: ``containerProperties`` , ``ecsProperties`` , or ``eksProperties`` . - If the value is ``multinode`` , then ``nodeProperties`` is required. .. epigraph:: If the job is run on Fargate resources, then ``multinode`` isn't supported.
|
|
10007
|
+
:param consumable_resource_properties: Contains a list of consumable resources required by the job.
|
|
9502
10008
|
:param container_properties: An object with properties specific to Amazon ECS-based jobs. When ``containerProperties`` is used in the job definition, it can't be used in addition to ``eksProperties`` , ``ecsProperties`` , or ``nodeProperties`` .
|
|
9503
10009
|
:param ecs_properties: An object that contains the properties for the Amazon ECS resources of a job.When ``ecsProperties`` is used in the job definition, it can't be used in addition to ``containerProperties`` , ``eksProperties`` , or ``nodeProperties`` .
|
|
9504
10010
|
:param eks_properties: An object with properties that are specific to Amazon EKS-based jobs. When ``eksProperties`` is used in the job definition, it can't be used in addition to ``containerProperties`` , ``ecsProperties`` , or ``nodeProperties`` .
|
|
@@ -9522,6 +10028,7 @@ class CfnJobDefinitionProps:
|
|
|
9522
10028
|
if __debug__:
|
|
9523
10029
|
type_hints = typing.get_type_hints(_typecheckingstub__ed150d027b29486332c3fd2205a51f3c6f64c25946114fb86a6eba38434e87c9)
|
|
9524
10030
|
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
10031
|
+
check_type(argname="argument consumable_resource_properties", value=consumable_resource_properties, expected_type=type_hints["consumable_resource_properties"])
|
|
9525
10032
|
check_type(argname="argument container_properties", value=container_properties, expected_type=type_hints["container_properties"])
|
|
9526
10033
|
check_type(argname="argument ecs_properties", value=ecs_properties, expected_type=type_hints["ecs_properties"])
|
|
9527
10034
|
check_type(argname="argument eks_properties", value=eks_properties, expected_type=type_hints["eks_properties"])
|
|
@@ -9537,6 +10044,8 @@ class CfnJobDefinitionProps:
|
|
|
9537
10044
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
9538
10045
|
"type": type,
|
|
9539
10046
|
}
|
|
10047
|
+
if consumable_resource_properties is not None:
|
|
10048
|
+
self._values["consumable_resource_properties"] = consumable_resource_properties
|
|
9540
10049
|
if container_properties is not None:
|
|
9541
10050
|
self._values["container_properties"] = container_properties
|
|
9542
10051
|
if ecs_properties is not None:
|
|
@@ -9581,6 +10090,17 @@ class CfnJobDefinitionProps:
|
|
|
9581
10090
|
assert result is not None, "Required property 'type' is missing"
|
|
9582
10091
|
return typing.cast(builtins.str, result)
|
|
9583
10092
|
|
|
10093
|
+
@builtins.property
|
|
10094
|
+
def consumable_resource_properties(
|
|
10095
|
+
self,
|
|
10096
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnJobDefinition.ConsumableResourcePropertiesProperty]]:
|
|
10097
|
+
'''Contains a list of consumable resources required by the job.
|
|
10098
|
+
|
|
10099
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-jobdefinition.html#cfn-batch-jobdefinition-consumableresourceproperties
|
|
10100
|
+
'''
|
|
10101
|
+
result = self._values.get("consumable_resource_properties")
|
|
10102
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnJobDefinition.ConsumableResourcePropertiesProperty]], result)
|
|
10103
|
+
|
|
9584
10104
|
@builtins.property
|
|
9585
10105
|
def container_properties(
|
|
9586
10106
|
self,
|
|
@@ -17544,7 +18064,7 @@ class ManagedComputeEnvironmentProps(ComputeEnvironmentProps):
|
|
|
17544
18064
|
:param spot: Whether or not to use spot instances. Spot instances are less expensive EC2 instances that can be reclaimed by EC2 at any time; your job will be given two minutes of notice before reclamation. Default: false
|
|
17545
18065
|
:param terminate_on_update: Whether or not any running jobs will be immediately terminated when an infrastructure update occurs. If this is enabled, any terminated jobs may be retried, depending on the job's retry policy. Default: false
|
|
17546
18066
|
:param update_timeout: Only meaningful if ``terminateOnUpdate`` is ``false``. If so, when an infrastructure update is triggered, any running jobs will be allowed to run until ``updateTimeout`` has expired. Default: 30 minutes
|
|
17547
|
-
:param update_to_latest_image_version: Whether or not the AMI is updated to the latest one supported by Batch when an infrastructure update occurs. If you specify a specific AMI, this property will be ignored. Default:
|
|
18067
|
+
:param update_to_latest_image_version: Whether or not the AMI is updated to the latest one supported by Batch when an infrastructure update occurs. If you specify a specific AMI, this property will be ignored. Note: the CDK will never set this value by default, ``false`` will set by CFN. This is to avoid a deployment failure that occurs when this value is set. Default: false
|
|
17548
18068
|
:param vpc_subnets: The VPC Subnets this Compute Environment will launch instances in. Default: new subnets will be created
|
|
17549
18069
|
|
|
17550
18070
|
:exampleMetadata: fixture=_generated
|
|
@@ -17769,7 +18289,12 @@ class ManagedComputeEnvironmentProps(ComputeEnvironmentProps):
|
|
|
17769
18289
|
|
|
17770
18290
|
If you specify a specific AMI, this property will be ignored.
|
|
17771
18291
|
|
|
17772
|
-
:default
|
|
18292
|
+
Note: the CDK will never set this value by default, ``false`` will set by CFN.
|
|
18293
|
+
This is to avoid a deployment failure that occurs when this value is set.
|
|
18294
|
+
|
|
18295
|
+
:default: false
|
|
18296
|
+
|
|
18297
|
+
:see: https://github.com/aws/aws-cdk/issues/27054
|
|
17773
18298
|
'''
|
|
17774
18299
|
result = self._values.get("update_to_latest_image_version")
|
|
17775
18300
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
@@ -17868,7 +18393,7 @@ class ManagedEc2EcsComputeEnvironment(
|
|
|
17868
18393
|
:param spot: Whether or not to use spot instances. Spot instances are less expensive EC2 instances that can be reclaimed by EC2 at any time; your job will be given two minutes of notice before reclamation. Default: false
|
|
17869
18394
|
:param terminate_on_update: Whether or not any running jobs will be immediately terminated when an infrastructure update occurs. If this is enabled, any terminated jobs may be retried, depending on the job's retry policy. Default: false
|
|
17870
18395
|
:param update_timeout: Only meaningful if ``terminateOnUpdate`` is ``false``. If so, when an infrastructure update is triggered, any running jobs will be allowed to run until ``updateTimeout`` has expired. Default: 30 minutes
|
|
17871
|
-
:param update_to_latest_image_version: Whether or not the AMI is updated to the latest one supported by Batch when an infrastructure update occurs. If you specify a specific AMI, this property will be ignored. Default:
|
|
18396
|
+
:param update_to_latest_image_version: Whether or not the AMI is updated to the latest one supported by Batch when an infrastructure update occurs. If you specify a specific AMI, this property will be ignored. Note: the CDK will never set this value by default, ``false`` will set by CFN. This is to avoid a deployment failure that occurs when this value is set. Default: false
|
|
17872
18397
|
:param vpc_subnets: The VPC Subnets this Compute Environment will launch instances in. Default: new subnets will be created
|
|
17873
18398
|
:param compute_environment_name: The name of the ComputeEnvironment. Default: - generated by CloudFormation
|
|
17874
18399
|
:param enabled: Whether or not this ComputeEnvironment can accept jobs from a Queue. Enabled ComputeEnvironments can accept jobs from a Queue and can scale instances up or down. Disabled ComputeEnvironments cannot accept jobs from a Queue or scale instances up or down. If you change a ComputeEnvironment from enabled to disabled while it is executing jobs, Jobs in the ``STARTED`` or ``RUNNING`` states will not be interrupted. As jobs complete, the ComputeEnvironment will scale instances down to ``minvCpus``. To ensure you aren't billed for unused capacity, set ``minvCpus`` to ``0``. Default: true
|
|
@@ -18236,7 +18761,7 @@ class ManagedEc2EcsComputeEnvironmentProps(ManagedComputeEnvironmentProps):
|
|
|
18236
18761
|
:param spot: Whether or not to use spot instances. Spot instances are less expensive EC2 instances that can be reclaimed by EC2 at any time; your job will be given two minutes of notice before reclamation. Default: false
|
|
18237
18762
|
:param terminate_on_update: Whether or not any running jobs will be immediately terminated when an infrastructure update occurs. If this is enabled, any terminated jobs may be retried, depending on the job's retry policy. Default: false
|
|
18238
18763
|
:param update_timeout: Only meaningful if ``terminateOnUpdate`` is ``false``. If so, when an infrastructure update is triggered, any running jobs will be allowed to run until ``updateTimeout`` has expired. Default: 30 minutes
|
|
18239
|
-
:param update_to_latest_image_version: Whether or not the AMI is updated to the latest one supported by Batch when an infrastructure update occurs. If you specify a specific AMI, this property will be ignored. Default:
|
|
18764
|
+
:param update_to_latest_image_version: Whether or not the AMI is updated to the latest one supported by Batch when an infrastructure update occurs. If you specify a specific AMI, this property will be ignored. Note: the CDK will never set this value by default, ``false`` will set by CFN. This is to avoid a deployment failure that occurs when this value is set. Default: false
|
|
18240
18765
|
:param vpc_subnets: The VPC Subnets this Compute Environment will launch instances in. Default: new subnets will be created
|
|
18241
18766
|
:param allocation_strategy: The allocation strategy to use if not enough instances of the best fitting instance type can be allocated. Default: - ``BEST_FIT_PROGRESSIVE`` if not using Spot instances, ``SPOT_CAPACITY_OPTIMIZED`` if using Spot instances.
|
|
18242
18767
|
:param images: Configure which AMIs this Compute Environment can launch. If you specify this property with only ``image`` specified, then the ``imageType`` will default to ``ECS_AL2``. *If your image needs GPU resources, specify ``ECS_AL2_NVIDIA``; otherwise, the instances will not be able to properly join the ComputeEnvironment*. Default: - ECS_AL2 for non-GPU instances, ECS_AL2_NVIDIA for GPU instances
|
|
@@ -18477,7 +19002,12 @@ class ManagedEc2EcsComputeEnvironmentProps(ManagedComputeEnvironmentProps):
|
|
|
18477
19002
|
|
|
18478
19003
|
If you specify a specific AMI, this property will be ignored.
|
|
18479
19004
|
|
|
18480
|
-
:default
|
|
19005
|
+
Note: the CDK will never set this value by default, ``false`` will set by CFN.
|
|
19006
|
+
This is to avoid a deployment failure that occurs when this value is set.
|
|
19007
|
+
|
|
19008
|
+
:default: false
|
|
19009
|
+
|
|
19010
|
+
:see: https://github.com/aws/aws-cdk/issues/27054
|
|
18481
19011
|
'''
|
|
18482
19012
|
result = self._values.get("update_to_latest_image_version")
|
|
18483
19013
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
@@ -18764,7 +19294,7 @@ class ManagedEc2EksComputeEnvironment(
|
|
|
18764
19294
|
:param spot: Whether or not to use spot instances. Spot instances are less expensive EC2 instances that can be reclaimed by EC2 at any time; your job will be given two minutes of notice before reclamation. Default: false
|
|
18765
19295
|
:param terminate_on_update: Whether or not any running jobs will be immediately terminated when an infrastructure update occurs. If this is enabled, any terminated jobs may be retried, depending on the job's retry policy. Default: false
|
|
18766
19296
|
:param update_timeout: Only meaningful if ``terminateOnUpdate`` is ``false``. If so, when an infrastructure update is triggered, any running jobs will be allowed to run until ``updateTimeout`` has expired. Default: 30 minutes
|
|
18767
|
-
:param update_to_latest_image_version: Whether or not the AMI is updated to the latest one supported by Batch when an infrastructure update occurs. If you specify a specific AMI, this property will be ignored. Default:
|
|
19297
|
+
:param update_to_latest_image_version: Whether or not the AMI is updated to the latest one supported by Batch when an infrastructure update occurs. If you specify a specific AMI, this property will be ignored. Note: the CDK will never set this value by default, ``false`` will set by CFN. This is to avoid a deployment failure that occurs when this value is set. Default: false
|
|
18768
19298
|
:param vpc_subnets: The VPC Subnets this Compute Environment will launch instances in. Default: new subnets will be created
|
|
18769
19299
|
:param compute_environment_name: The name of the ComputeEnvironment. Default: - generated by CloudFormation
|
|
18770
19300
|
:param enabled: Whether or not this ComputeEnvironment can accept jobs from a Queue. Enabled ComputeEnvironments can accept jobs from a Queue and can scale instances up or down. Disabled ComputeEnvironments cannot accept jobs from a Queue or scale instances up or down. If you change a ComputeEnvironment from enabled to disabled while it is executing jobs, Jobs in the ``STARTED`` or ``RUNNING`` states will not be interrupted. As jobs complete, the ComputeEnvironment will scale instances down to ``minvCpus``. To ensure you aren't billed for unused capacity, set ``minvCpus`` to ``0``. Default: true
|
|
@@ -19130,7 +19660,7 @@ class ManagedEc2EksComputeEnvironmentProps(ManagedComputeEnvironmentProps):
|
|
|
19130
19660
|
:param spot: Whether or not to use spot instances. Spot instances are less expensive EC2 instances that can be reclaimed by EC2 at any time; your job will be given two minutes of notice before reclamation. Default: false
|
|
19131
19661
|
:param terminate_on_update: Whether or not any running jobs will be immediately terminated when an infrastructure update occurs. If this is enabled, any terminated jobs may be retried, depending on the job's retry policy. Default: false
|
|
19132
19662
|
:param update_timeout: Only meaningful if ``terminateOnUpdate`` is ``false``. If so, when an infrastructure update is triggered, any running jobs will be allowed to run until ``updateTimeout`` has expired. Default: 30 minutes
|
|
19133
|
-
:param update_to_latest_image_version: Whether or not the AMI is updated to the latest one supported by Batch when an infrastructure update occurs. If you specify a specific AMI, this property will be ignored. Default:
|
|
19663
|
+
:param update_to_latest_image_version: Whether or not the AMI is updated to the latest one supported by Batch when an infrastructure update occurs. If you specify a specific AMI, this property will be ignored. Note: the CDK will never set this value by default, ``false`` will set by CFN. This is to avoid a deployment failure that occurs when this value is set. Default: false
|
|
19134
19664
|
:param vpc_subnets: The VPC Subnets this Compute Environment will launch instances in. Default: new subnets will be created
|
|
19135
19665
|
:param eks_cluster: The cluster that backs this Compute Environment. Required for Compute Environments running Kubernetes jobs. Please ensure that you have followed the steps at https://docs.aws.amazon.com/batch/latest/userguide/getting-started-eks.html before attempting to deploy a ``ManagedEc2EksComputeEnvironment`` that uses this cluster. If you do not follow the steps in the link, the deployment fail with a message that the compute environment did not stabilize.
|
|
19136
19666
|
:param kubernetes_namespace: The namespace of the Cluster.
|
|
@@ -19422,7 +19952,12 @@ class ManagedEc2EksComputeEnvironmentProps(ManagedComputeEnvironmentProps):
|
|
|
19422
19952
|
|
|
19423
19953
|
If you specify a specific AMI, this property will be ignored.
|
|
19424
19954
|
|
|
19425
|
-
:default
|
|
19955
|
+
Note: the CDK will never set this value by default, ``false`` will set by CFN.
|
|
19956
|
+
This is to avoid a deployment failure that occurs when this value is set.
|
|
19957
|
+
|
|
19958
|
+
:default: false
|
|
19959
|
+
|
|
19960
|
+
:see: https://github.com/aws/aws-cdk/issues/27054
|
|
19426
19961
|
'''
|
|
19427
19962
|
result = self._values.get("update_to_latest_image_version")
|
|
19428
19963
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
@@ -22891,7 +23426,7 @@ class FargateComputeEnvironmentProps(ManagedComputeEnvironmentProps):
|
|
|
22891
23426
|
:param spot: Whether or not to use spot instances. Spot instances are less expensive EC2 instances that can be reclaimed by EC2 at any time; your job will be given two minutes of notice before reclamation. Default: false
|
|
22892
23427
|
:param terminate_on_update: Whether or not any running jobs will be immediately terminated when an infrastructure update occurs. If this is enabled, any terminated jobs may be retried, depending on the job's retry policy. Default: false
|
|
22893
23428
|
:param update_timeout: Only meaningful if ``terminateOnUpdate`` is ``false``. If so, when an infrastructure update is triggered, any running jobs will be allowed to run until ``updateTimeout`` has expired. Default: 30 minutes
|
|
22894
|
-
:param update_to_latest_image_version: Whether or not the AMI is updated to the latest one supported by Batch when an infrastructure update occurs. If you specify a specific AMI, this property will be ignored. Default:
|
|
23429
|
+
:param update_to_latest_image_version: Whether or not the AMI is updated to the latest one supported by Batch when an infrastructure update occurs. If you specify a specific AMI, this property will be ignored. Note: the CDK will never set this value by default, ``false`` will set by CFN. This is to avoid a deployment failure that occurs when this value is set. Default: false
|
|
22895
23430
|
:param vpc_subnets: The VPC Subnets this Compute Environment will launch instances in. Default: new subnets will be created
|
|
22896
23431
|
|
|
22897
23432
|
:exampleMetadata: infused
|
|
@@ -23094,7 +23629,12 @@ class FargateComputeEnvironmentProps(ManagedComputeEnvironmentProps):
|
|
|
23094
23629
|
|
|
23095
23630
|
If you specify a specific AMI, this property will be ignored.
|
|
23096
23631
|
|
|
23097
|
-
:default
|
|
23632
|
+
Note: the CDK will never set this value by default, ``false`` will set by CFN.
|
|
23633
|
+
This is to avoid a deployment failure that occurs when this value is set.
|
|
23634
|
+
|
|
23635
|
+
:default: false
|
|
23636
|
+
|
|
23637
|
+
:see: https://github.com/aws/aws-cdk/issues/27054
|
|
23098
23638
|
'''
|
|
23099
23639
|
result = self._values.get("update_to_latest_image_version")
|
|
23100
23640
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
@@ -23782,7 +24322,7 @@ class FargateComputeEnvironment(
|
|
|
23782
24322
|
:param spot: Whether or not to use spot instances. Spot instances are less expensive EC2 instances that can be reclaimed by EC2 at any time; your job will be given two minutes of notice before reclamation. Default: false
|
|
23783
24323
|
:param terminate_on_update: Whether or not any running jobs will be immediately terminated when an infrastructure update occurs. If this is enabled, any terminated jobs may be retried, depending on the job's retry policy. Default: false
|
|
23784
24324
|
:param update_timeout: Only meaningful if ``terminateOnUpdate`` is ``false``. If so, when an infrastructure update is triggered, any running jobs will be allowed to run until ``updateTimeout`` has expired. Default: 30 minutes
|
|
23785
|
-
:param update_to_latest_image_version: Whether or not the AMI is updated to the latest one supported by Batch when an infrastructure update occurs. If you specify a specific AMI, this property will be ignored. Default:
|
|
24325
|
+
:param update_to_latest_image_version: Whether or not the AMI is updated to the latest one supported by Batch when an infrastructure update occurs. If you specify a specific AMI, this property will be ignored. Note: the CDK will never set this value by default, ``false`` will set by CFN. This is to avoid a deployment failure that occurs when this value is set. Default: false
|
|
23786
24326
|
:param vpc_subnets: The VPC Subnets this Compute Environment will launch instances in. Default: new subnets will be created
|
|
23787
24327
|
:param compute_environment_name: The name of the ComputeEnvironment. Default: - generated by CloudFormation
|
|
23788
24328
|
:param enabled: Whether or not this ComputeEnvironment can accept jobs from a Queue. Enabled ComputeEnvironments can accept jobs from a Queue and can scale instances up or down. Disabled ComputeEnvironments cannot accept jobs from a Queue or scale instances up or down. If you change a ComputeEnvironment from enabled to disabled while it is executing jobs, Jobs in the ``STARTED`` or ``RUNNING`` states will not be interrupted. As jobs complete, the ComputeEnvironment will scale instances down to ``minvCpus``. To ensure you aren't billed for unused capacity, set ``minvCpus`` to ``0``. Default: true
|
|
@@ -23965,6 +24505,8 @@ __all__ = [
|
|
|
23965
24505
|
"AllocationStrategy",
|
|
23966
24506
|
"CfnComputeEnvironment",
|
|
23967
24507
|
"CfnComputeEnvironmentProps",
|
|
24508
|
+
"CfnConsumableResource",
|
|
24509
|
+
"CfnConsumableResourceProps",
|
|
23968
24510
|
"CfnJobDefinition",
|
|
23969
24511
|
"CfnJobDefinitionProps",
|
|
23970
24512
|
"CfnJobQueue",
|
|
@@ -24242,11 +24784,70 @@ def _typecheckingstub__a81ed1de03c840384ae49a0a4dbeb244507d2327c304fc093af8d7209
|
|
|
24242
24784
|
"""Type checking stubs"""
|
|
24243
24785
|
pass
|
|
24244
24786
|
|
|
24787
|
+
def _typecheckingstub__5c99b0cde97c1da7fcdbc520729f9e431c6aa0879ca2c3f310f91017cfee5007(
|
|
24788
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
24789
|
+
id: builtins.str,
|
|
24790
|
+
*,
|
|
24791
|
+
resource_type: builtins.str,
|
|
24792
|
+
total_quantity: jsii.Number,
|
|
24793
|
+
consumable_resource_name: typing.Optional[builtins.str] = None,
|
|
24794
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
24795
|
+
) -> None:
|
|
24796
|
+
"""Type checking stubs"""
|
|
24797
|
+
pass
|
|
24798
|
+
|
|
24799
|
+
def _typecheckingstub__b41c1f0a4fca10f0b198693331d558f57596f6e4a572a4cf64008e1ca42e3534(
|
|
24800
|
+
inspector: _TreeInspector_488e0dd5,
|
|
24801
|
+
) -> None:
|
|
24802
|
+
"""Type checking stubs"""
|
|
24803
|
+
pass
|
|
24804
|
+
|
|
24805
|
+
def _typecheckingstub__5511de8b41a1f295801ff1c0ea7a9ee2822d462f774ec168cdb7e0a49196a1ed(
|
|
24806
|
+
props: typing.Mapping[builtins.str, typing.Any],
|
|
24807
|
+
) -> None:
|
|
24808
|
+
"""Type checking stubs"""
|
|
24809
|
+
pass
|
|
24810
|
+
|
|
24811
|
+
def _typecheckingstub__9e365d37f3f984f47f3e9155d90709d48dab3b5c99de23c31edf3e0524a3302d(
|
|
24812
|
+
value: builtins.str,
|
|
24813
|
+
) -> None:
|
|
24814
|
+
"""Type checking stubs"""
|
|
24815
|
+
pass
|
|
24816
|
+
|
|
24817
|
+
def _typecheckingstub__267ecfd211d87fefa6a82e181ae34839f62811b27349a340c7dd7af7b1d643ac(
|
|
24818
|
+
value: jsii.Number,
|
|
24819
|
+
) -> None:
|
|
24820
|
+
"""Type checking stubs"""
|
|
24821
|
+
pass
|
|
24822
|
+
|
|
24823
|
+
def _typecheckingstub__6b8701734e05768bb24c412344b9c0ac7a78b14234dfd357ae9125b48b5ce5e2(
|
|
24824
|
+
value: typing.Optional[builtins.str],
|
|
24825
|
+
) -> None:
|
|
24826
|
+
"""Type checking stubs"""
|
|
24827
|
+
pass
|
|
24828
|
+
|
|
24829
|
+
def _typecheckingstub__6aeb610201199cf9ed022e6ce90ed818369482ef25877943acf468ba6509693e(
|
|
24830
|
+
value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
|
|
24831
|
+
) -> None:
|
|
24832
|
+
"""Type checking stubs"""
|
|
24833
|
+
pass
|
|
24834
|
+
|
|
24835
|
+
def _typecheckingstub__273574f20d47e157a9e993b6d91e9496f22d80d24c48e2d755bfe2493e0fe9cc(
|
|
24836
|
+
*,
|
|
24837
|
+
resource_type: builtins.str,
|
|
24838
|
+
total_quantity: jsii.Number,
|
|
24839
|
+
consumable_resource_name: typing.Optional[builtins.str] = None,
|
|
24840
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
24841
|
+
) -> None:
|
|
24842
|
+
"""Type checking stubs"""
|
|
24843
|
+
pass
|
|
24844
|
+
|
|
24245
24845
|
def _typecheckingstub__37959c68856ab28ea1a57515db976bc2215806d52c75f6166834df6ae651417f(
|
|
24246
24846
|
scope: _constructs_77d1e7e8.Construct,
|
|
24247
24847
|
id: builtins.str,
|
|
24248
24848
|
*,
|
|
24249
24849
|
type: builtins.str,
|
|
24850
|
+
consumable_resource_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.ConsumableResourcePropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24250
24851
|
container_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.ContainerPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24251
24852
|
ecs_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.EcsPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24252
24853
|
eks_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.EksPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -24281,6 +24882,12 @@ def _typecheckingstub__c96b92c09c064b55548b6669735edc8ffa8187ffae08746200ea2113f
|
|
|
24281
24882
|
"""Type checking stubs"""
|
|
24282
24883
|
pass
|
|
24283
24884
|
|
|
24885
|
+
def _typecheckingstub__c368ee191818b7f44968cb3ae44c5bb147fa195ae7df416283fff61f6efc1dd9(
|
|
24886
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnJobDefinition.ConsumableResourcePropertiesProperty]],
|
|
24887
|
+
) -> None:
|
|
24888
|
+
"""Type checking stubs"""
|
|
24889
|
+
pass
|
|
24890
|
+
|
|
24284
24891
|
def _typecheckingstub__f69a394e899a3c712c6499f6fcffa98702eb3ab7de5e4489e6e69fb85ae55491(
|
|
24285
24892
|
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnJobDefinition.ContainerPropertiesProperty]],
|
|
24286
24893
|
) -> None:
|
|
@@ -24361,6 +24968,21 @@ def _typecheckingstub__a944ff69de809bc564eb18b81b5fe5aaf841b525a61c70b907da2a96b
|
|
|
24361
24968
|
"""Type checking stubs"""
|
|
24362
24969
|
pass
|
|
24363
24970
|
|
|
24971
|
+
def _typecheckingstub__3b629a35b0e74fbc3eff29818b9c44bbd57ebdeb0ab63ab735a548e6880a79ea(
|
|
24972
|
+
*,
|
|
24973
|
+
consumable_resource_list: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.ConsumableResourceRequirementProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
24974
|
+
) -> None:
|
|
24975
|
+
"""Type checking stubs"""
|
|
24976
|
+
pass
|
|
24977
|
+
|
|
24978
|
+
def _typecheckingstub__14cb9e21c298e41a083a856c9790ba0510d4434a296b7c70c86b029921622e58(
|
|
24979
|
+
*,
|
|
24980
|
+
consumable_resource: builtins.str,
|
|
24981
|
+
quantity: jsii.Number,
|
|
24982
|
+
) -> None:
|
|
24983
|
+
"""Type checking stubs"""
|
|
24984
|
+
pass
|
|
24985
|
+
|
|
24364
24986
|
def _typecheckingstub__09b3c38642739790560033cae597f009c106d353ddc5faf85f6a7bf4891ac4d1(
|
|
24365
24987
|
*,
|
|
24366
24988
|
image: builtins.str,
|
|
@@ -24645,6 +25267,7 @@ def _typecheckingstub__b765fef4e53f81f8c1a37eea0ea015533bd4621e0f00e5e8692393146
|
|
|
24645
25267
|
def _typecheckingstub__005c21025a81827c3f5ed456b171eb7ffdf652583c7da0ff6ff67186436afeee(
|
|
24646
25268
|
*,
|
|
24647
25269
|
target_nodes: builtins.str,
|
|
25270
|
+
consumable_resource_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.ConsumableResourcePropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24648
25271
|
container: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.ContainerPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24649
25272
|
ecs_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.MultiNodeEcsPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24650
25273
|
eks_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.EksPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -24801,6 +25424,7 @@ def _typecheckingstub__a4a9d90db8477ca586c3c89fb2ce5a548e9a3bb699ae625a80a8a105b
|
|
|
24801
25424
|
def _typecheckingstub__ed150d027b29486332c3fd2205a51f3c6f64c25946114fb86a6eba38434e87c9(
|
|
24802
25425
|
*,
|
|
24803
25426
|
type: builtins.str,
|
|
25427
|
+
consumable_resource_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.ConsumableResourcePropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24804
25428
|
container_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.ContainerPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24805
25429
|
ecs_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.EcsPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
24806
25430
|
eks_properties: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnJobDefinition.EksPropertiesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|