Skip to content

Commit fd2dfe5

Browse files
author
AWS
committed
AWS Batch Update: This feature allows customers to specify the minimum time (in minutes) that AWS Batch keeps instances running in a compute environment after all jobs on the instance complete
1 parent 4f3c1f3 commit fd2dfe5

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Batch",
4+
"contributor": "",
5+
"description": "This feature allows customers to specify the minimum time (in minutes) that AWS Batch keeps instances running in a compute environment after all jobs on the instance complete"
6+
}

services/batch/src/main/resources/codegen-resources/service-2.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,10 @@
10221022
"ec2Configuration":{
10231023
"shape":"Ec2ConfigurationList",
10241024
"documentation":"<p>Provides information that's used to select Amazon Machine Images (AMIs) for Amazon EC2 instances in the compute environment. If <code>Ec2Configuration</code> isn't specified, the default is <code>ECS_AL2</code>.</p> <p>One or two values can be provided.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.</p> </note>"
1025+
},
1026+
"scalingPolicy":{
1027+
"shape":"ComputeScalingPolicy",
1028+
"documentation":"<p>The scaling policy configuration for the compute environment.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.</p> </note>"
10251029
}
10261030
},
10271031
"documentation":"<p>An object that represents an Batch compute resource. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html\">Compute environments</a> in the <i>Batch User Guide</i>.</p>"
@@ -1096,10 +1100,24 @@
10961100
"imageId":{
10971101
"shape":"String",
10981102
"documentation":"<p>The Amazon Machine Image (AMI) ID used for instances launched in the compute environment. This parameter is overridden by the <code>imageIdOverride</code> member of the <code>Ec2Configuration</code> structure. To remove the custom AMI ID and use the default AMI ID, set this value to an empty string.</p> <p>When updating a compute environment, changing the AMI ID requires an infrastructure update of the compute environment. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html\">Updating compute environments</a> in the <i>Batch User Guide</i>.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.</p> </note> <note> <p>The AMI that you choose for a compute environment must match the architecture of the instance types that you intend to use for that compute environment. For example, if your compute environment uses A1 instance types, the compute resource AMI that you choose must support ARM instances. Amazon ECS vends both x86 and ARM versions of the Amazon ECS-optimized Amazon Linux 2 AMI. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html#ecs-optimized-ami-linux-variants.html\">Amazon ECS-optimized Amazon Linux 2 AMI</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> </note>"
1103+
},
1104+
"scalingPolicy":{
1105+
"shape":"ComputeScalingPolicy",
1106+
"documentation":"<p>The scaling policy configuration for the compute environment.</p> <note> <p>This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.</p> </note>"
10991107
}
11001108
},
11011109
"documentation":"<p>An object that represents the attributes of a compute environment that can be updated. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html\">Updating compute environments</a> in the <i>Batch User Guide</i>.</p>"
11021110
},
1111+
"ComputeScalingPolicy":{
1112+
"type":"structure",
1113+
"members":{
1114+
"minScaleDownDelayMinutes":{
1115+
"shape":"Integer",
1116+
"documentation":"<p>The minimum time (in minutes) that Batch keeps instances running in the compute environment after their jobs complete. For each instance, the delay period begins when the last job finishes. If no new jobs are placed on the instance during this delay, Batch terminates the instance once the delay expires.</p> <p>Valid Range: Minimum value of 20. Maximum value of 10080. Use 0 to unset and disable the scale down delay.</p> <note> <p>The scale down delay does not apply to:</p> <ul> <li> <p>Instances being replaced during infrastructure updates</p> </li> <li> <p>Newly launched instances that have not yet run any jobs</p> </li> <li> <p>Spot instances reclaimed due to interruption</p> </li> </ul> </note>"
1117+
}
1118+
},
1119+
"documentation":"<p>An object that represents a scaling policy for a compute environment.</p>"
1120+
},
11031121
"ConsumableResourceList":{
11041122
"type":"list",
11051123
"member":{"shape":"ConsumableResourceRequirement"}

0 commit comments

Comments
 (0)