Skip to content

Commit 8995e03

Browse files
author
awstools
committed
docs(client-batch): Documentation updates related to Batch on EKS
1 parent 4c8f3dc commit 8995e03

File tree

3 files changed

+63
-11
lines changed

3 files changed

+63
-11
lines changed

clients/client-batch/src/Batch.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ export class Batch extends BatchClient {
170170
* your container instances into that Amazon ECS cluster. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html">Launching an Amazon ECS container instance</a> in the
171171
* <i>Amazon Elastic Container Service Developer Guide</i>.</p>
172172
* <note>
173+
* <p>To create a compute environment that uses EKS resources, the caller must have permissions to call
174+
* <code>eks:DescribeCluster</code>.</p>
175+
* </note>
176+
* <note>
173177
* <p>Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. For example, it
174178
* also doesn't update the AMIs in your compute environment when a newer version of the Amazon ECS optimized AMI is
175179
* available. You're responsible for the management of the guest operating system. This includes any updates and

clients/client-batch/src/commands/CreateComputeEnvironmentCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ export interface CreateComputeEnvironmentCommandOutput extends CreateComputeEnvi
4848
* your container instances into that Amazon ECS cluster. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html">Launching an Amazon ECS container instance</a> in the
4949
* <i>Amazon Elastic Container Service Developer Guide</i>.</p>
5050
* <note>
51+
* <p>To create a compute environment that uses EKS resources, the caller must have permissions to call
52+
* <code>eks:DescribeCluster</code>.</p>
53+
* </note>
54+
* <note>
5155
* <p>Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. For example, it
5256
* also doesn't update the AMIs in your compute environment when a newer version of the Amazon ECS optimized AMI is
5357
* available. You're responsible for the management of the guest operating system. This includes any updates and

clients/client-batch/src/models/models_0.ts

Lines changed: 55 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,8 +1014,8 @@ export enum CEStatus {
10141014

10151015
/**
10161016
* <p>Specifies the infrastructure update policy for the compute environment. For more information about
1017-
* infrastructure updates, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/infrastructure-updates.html">Infrastructure
1018-
* updates</a> in the <i>Batch User Guide</i>.</p>
1017+
* infrastructure updates, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating
1018+
* compute environments</a> in the <i>Batch User Guide</i>.</p>
10191019
*/
10201020
export interface UpdatePolicy {
10211021
/**
@@ -1617,18 +1617,43 @@ export interface ResourceRequirement {
16171617
* <dt>value = 8192</dt>
16181618
* <dd>
16191619
* <p>
1620-
* <code>VCPU</code> = 1, 2, or 4</p>
1620+
* <code>VCPU</code> = 1, 2, 4, or 8</p>
16211621
* </dd>
1622-
* <dt>value = 9216, 10240, 11264, 12288, 13312, 14336, 15360, or 16384</dt>
1622+
* <dt>value = 9216, 10240, 11264, 12288, 13312, 14336, or 15360</dt>
16231623
* <dd>
16241624
* <p>
16251625
* <code>VCPU</code> = 2 or 4</p>
16261626
* </dd>
1627-
* <dt>value = 17408, 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720</dt>
1627+
* <dt>value = 16384</dt>
1628+
* <dd>
1629+
* <p>
1630+
* <code>VCPU</code> = 2, 4, or 8</p>
1631+
* </dd>
1632+
* <dt>value = 17408, 18432, 19456, 21504, 22528, 23552, 25600, 26624, 27648, 29696, or 30720</dt>
16281633
* <dd>
16291634
* <p>
16301635
* <code>VCPU</code> = 4</p>
16311636
* </dd>
1637+
* <dt>value = 20480, 24576, or 28672</dt>
1638+
* <dd>
1639+
* <p>
1640+
* <code>VCPU</code> = 4 or 8</p>
1641+
* </dd>
1642+
* <dt>value = 36864, 45056, 53248, or 61440</dt>
1643+
* <dd>
1644+
* <p>
1645+
* <code>VCPU</code> = 8</p>
1646+
* </dd>
1647+
* <dt>value = 32768, 40960, 49152, or 57344</dt>
1648+
* <dd>
1649+
* <p>
1650+
* <code>VCPU</code> = 8 or 16</p>
1651+
* </dd>
1652+
* <dt>value = 65536, 73728, 81920, 90112, 98304, 106496, 114688, or 122880</dt>
1653+
* <dd>
1654+
* <p>
1655+
* <code>VCPU</code> = 16</p>
1656+
* </dd>
16321657
* </dl>
16331658
* </dd>
16341659
* <dt>type="VCPU"</dt>
@@ -1638,9 +1663,11 @@ export interface ResourceRequirement {
16381663
* <a href="https://docs.docker.com/engine/reference/run/">docker run</a>. Each vCPU is equivalent to 1,024 CPU shares. For EC2
16391664
* resources, you must specify at least one vCPU. This is required but can be specified in several places; it must be
16401665
* specified for each node at least once.</p>
1666+
* <p>The default for the Fargate On-Demand vCPU resource count quota is 6 vCPUs. For more information about
1667+
* Fargate quotas, see <a href="https://docs.aws.amazon.com/general/latest/gr/ecs-service.html#service-quotas-fargate">Fargate quotas</a> in the <i>Amazon Web Services General Reference</i>.</p>
16411668
* <p>For jobs that are running on Fargate resources, then <code>value</code> must match one of the supported
16421669
* values and the <code>MEMORY</code> values must be one of the values supported for that <code>VCPU</code> value.
1643-
* The supported values are 0.25, 0.5, 1, 2, and 4</p>
1670+
* The supported values are 0.25, 0.5, 1, 2, 4, 8, and 16</p>
16441671
* <dl>
16451672
* <dt>value = 0.25</dt>
16461673
* <dd>
@@ -1668,6 +1695,18 @@ export interface ResourceRequirement {
16681695
* <code>MEMORY</code> = 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, 16384, 17408, 18432, 19456,
16691696
* 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672, 29696, or 30720</p>
16701697
* </dd>
1698+
* <dt>value = 8</dt>
1699+
* <dd>
1700+
* <p>
1701+
* <code>MEMORY</code> = 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, or 61440
1702+
* </p>
1703+
* </dd>
1704+
* <dt>value = 16</dt>
1705+
* <dd>
1706+
* <p>
1707+
* <code>MEMORY</code> = 32768, 40960, 49152, 57344, 65536, 73728, 81920, 90112, 98304, 106496, 114688, or 122880
1708+
* </p>
1709+
* </dd>
16711710
* </dl>
16721711
* </dd>
16731712
* </dl>
@@ -2411,8 +2450,7 @@ export interface EksPodProperties {
24112450
* that any DNS query that does not match the configured cluster domain suffix is forwarded to the upstream nameserver
24122451
* inherited from the node. For more information, see <a href="https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy">Pod's DNS
24132452
* policy</a> in the <i>Kubernetes documentation</i>.</p>
2414-
* <p>Valid values: <code>Default</code> | <code>ClusterFirst</code> | <code>ClusterFirstWithHostNet</code> |
2415-
* <code>None</code>
2453+
* <p>Valid values: <code>Default</code> | <code>ClusterFirst</code> | <code>ClusterFirstWithHostNet</code>
24162454
* </p>
24172455
*/
24182456
dnsPolicy?: string;
@@ -3189,10 +3227,12 @@ export interface EksPodPropertiesDetail {
31893227
* <p>The DNS policy for the pod. The default value is <code>ClusterFirst</code>. If the <code>hostNetwork</code>
31903228
* parameter is not specified, the default is <code>ClusterFirstWithHostNet</code>. <code>ClusterFirst</code> indicates
31913229
* that any DNS query that does not match the configured cluster domain suffix is forwarded to the upstream nameserver
3192-
* inherited from the node. For more information, see <a href="https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy">Pod's DNS
3230+
* inherited from the node. If no value was specified for <code>dnsPolicy</code> in the <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_RegisterJobDefinition.html">RegisterJobDefinition</a> API operation, then no
3231+
* value will be returned for <code>dnsPolicy</code> by either of <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeJobDefinitions.html">DescribeJobDefinitions</a> or <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeJobs.html">DescribeJobs</a> API operations. The
3232+
* pod spec setting will contain either <code>ClusterFirst</code> or <code>ClusterFirstWithHostNet</code>, depending
3233+
* on the value of the <code>hostNetwork</code> parameter. For more information, see <a href="https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy">Pod's DNS
31933234
* policy</a> in the <i>Kubernetes documentation</i>.</p>
3194-
* <p>Valid values: <code>Default</code> | <code>ClusterFirst</code> | <code>ClusterFirstWithHostNet</code> |
3195-
* <code>None</code>
3235+
* <p>Valid values: <code>Default</code> | <code>ClusterFirst</code> | <code>ClusterFirstWithHostNet</code>
31963236
* </p>
31973237
*/
31983238
dnsPolicy?: string;
@@ -4309,6 +4349,10 @@ export interface ComputeResourceUpdate {
43094349
* <note>
43104350
* <p>This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.</p>
43114351
* </note>
4352+
* <note>
4353+
* <p>Batch doesn't support changing the desired number of vCPUs of an existing compute environment. Don't specify
4354+
* this parameter for compute environments using Amazon EKS clusters.</p>
4355+
* </note>
43124356
*/
43134357
desiredvCpus?: number;
43144358

0 commit comments

Comments
 (0)