@aws-sdk/client-batch 3.363.0 → 3.369.0

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.
@@ -32,6 +32,14 @@ export interface CancelJobCommandOutput extends CancelJobResponse, __MetadataBea
32
32
  * in<code>RUNNABLE</code> remains in <code>RUNNABLE</code> until it reaches the head of the
33
33
  * job queue. Then the job status is updated to
34
34
  * <code>FAILED</code>.</p>
35
+ * <note>
36
+ * <p>A <code>PENDING</code> job is canceled after all dependency jobs are completed.
37
+ * Therefore, it may take longer than expected to cancel a job in <code>PENDING</code>
38
+ * status.</p>
39
+ * <p>When you try to cancel an array parent job in <code>PENDING</code>, Batch attempts to
40
+ * cancel all child jobs. The array parent job is canceled when all child jobs are
41
+ * completed.</p>
42
+ * </note>
35
43
  * <p>Jobs that progressed to the <code>STARTING</code> or
36
44
  * <code>RUNNING</code> state aren't canceled. However, the API operation still succeeds, even
37
45
  * if no job is canceled. These jobs must be terminated with the <a>TerminateJob</a>
@@ -79,8 +79,12 @@ export interface CreateComputeEnvironmentCommandOutput extends CreateComputeEnvi
79
79
  * or <code>SPOT_CAPACITY_OPTIMIZED</code>.</p>
80
80
  * </li>
81
81
  * <li>
82
- * <p>Set the update to latest image version (<code>updateToLatestImageVersion</code>) parameter to
83
- * <code>true</code>.</p>
82
+ * <p>Set the update to latest image version (<code>updateToLatestImageVersion</code>)
83
+ * parameter to
84
+ * <code>true</code>.
85
+ * The <code>updateToLatestImageVersion</code> parameter is used when you update a compute
86
+ * environment. This parameter is ignored when you create a compute
87
+ * environment.</p>
84
88
  * </li>
85
89
  * <li>
86
90
  * <p>Don't specify an AMI ID in <code>imageId</code>, <code>imageIdOverride</code> (in <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_Ec2Configuration.html">
@@ -173,6 +173,10 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti
173
173
  * // ephemeralStorage: { // EphemeralStorage
174
174
  * // sizeInGiB: Number("int"), // required
175
175
  * // },
176
+ * // runtimePlatform: { // RuntimePlatform
177
+ * // operatingSystemFamily: "STRING_VALUE",
178
+ * // cpuArchitecture: "STRING_VALUE",
179
+ * // },
176
180
  * // },
177
181
  * // timeout: { // JobTimeout
178
182
  * // attemptDurationSeconds: Number("int"),
@@ -279,6 +283,10 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti
279
283
  * // ephemeralStorage: {
280
284
  * // sizeInGiB: Number("int"), // required
281
285
  * // },
286
+ * // runtimePlatform: {
287
+ * // operatingSystemFamily: "STRING_VALUE",
288
+ * // cpuArchitecture: "STRING_VALUE",
289
+ * // },
282
290
  * // },
283
291
  * // },
284
292
  * // ],
@@ -213,6 +213,10 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
213
213
  * // ephemeralStorage: { // EphemeralStorage
214
214
  * // sizeInGiB: Number("int"), // required
215
215
  * // },
216
+ * // runtimePlatform: { // RuntimePlatform
217
+ * // operatingSystemFamily: "STRING_VALUE",
218
+ * // cpuArchitecture: "STRING_VALUE",
219
+ * // },
216
220
  * // },
217
221
  * // nodeDetails: { // NodeDetails
218
222
  * // nodeIndex: Number("int"),
@@ -320,6 +324,10 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
320
324
  * // ephemeralStorage: {
321
325
  * // sizeInGiB: Number("int"), // required
322
326
  * // },
327
+ * // runtimePlatform: {
328
+ * // operatingSystemFamily: "STRING_VALUE",
329
+ * // cpuArchitecture: "STRING_VALUE",
330
+ * // },
323
331
  * // },
324
332
  * // },
325
333
  * // ],
@@ -145,6 +145,10 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio
145
145
  * ephemeralStorage: { // EphemeralStorage
146
146
  * sizeInGiB: Number("int"), // required
147
147
  * },
148
+ * runtimePlatform: { // RuntimePlatform
149
+ * operatingSystemFamily: "STRING_VALUE",
150
+ * cpuArchitecture: "STRING_VALUE",
151
+ * },
148
152
  * },
149
153
  * nodeProperties: { // NodeProperties
150
154
  * numNodes: Number("int"), // required
@@ -248,6 +252,10 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio
248
252
  * ephemeralStorage: {
249
253
  * sizeInGiB: Number("int"), // required
250
254
  * },
255
+ * runtimePlatform: {
256
+ * operatingSystemFamily: "STRING_VALUE",
257
+ * cpuArchitecture: "STRING_VALUE",
258
+ * },
251
259
  * },
252
260
  * },
253
261
  * ],
@@ -412,15 +412,21 @@ export interface ComputeResource {
412
412
  */
413
413
  allocationStrategy?: CRAllocationStrategy | string;
414
414
  /**
415
- * <p>The minimum number of Amazon EC2 vCPUs that an environment should maintain (even if the compute
416
- * environment is <code>DISABLED</code>).</p>
415
+ * <p>The minimum number of
416
+ * vCPUs that
417
+ * a
418
+ * compute
419
+ * environment should maintain (even if the compute environment is <code>DISABLED</code>).</p>
417
420
  * <note>
418
421
  * <p>This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.</p>
419
422
  * </note>
420
423
  */
421
424
  minvCpus?: number;
422
425
  /**
423
- * <p>The maximum number of Amazon EC2 vCPUs that a compute environment can reach.</p>
426
+ * <p>The maximum number of
427
+ * vCPUs that a
428
+ * compute environment can
429
+ * support.</p>
424
430
  * <note>
425
431
  * <p>With both <code>BEST_FIT_PROGRESSIVE</code> and <code>SPOT_CAPACITY_OPTIMIZED</code>
426
432
  * allocation strategies using On-Demand or Spot Instances, and the <code>BEST_FIT</code> strategy
@@ -432,8 +438,10 @@ export interface ComputeResource {
432
438
  */
433
439
  maxvCpus: number | undefined;
434
440
  /**
435
- * <p>The desired number of Amazon EC2 vCPUS in the compute environment. Batch modifies this value
436
- * between the minimum and maximum values based on job queue demand.</p>
441
+ * <p>The desired number of
442
+ * vCPUS in the
443
+ * compute environment. Batch modifies this value between the minimum and maximum values based on
444
+ * job queue demand.</p>
437
445
  * <note>
438
446
  * <p>This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.</p>
439
447
  * </note>
@@ -1827,6 +1835,50 @@ export interface ResourceRequirement {
1827
1835
  */
1828
1836
  type: ResourceType | string | undefined;
1829
1837
  }
1838
+ /**
1839
+ * @public
1840
+ * <p>An object that represents the compute environment architecture for Batch jobs on Fargate.</p>
1841
+ */
1842
+ export interface RuntimePlatform {
1843
+ /**
1844
+ * <p>The operating system for the compute environment.
1845
+ * Valid values are:
1846
+ * <code>LINUX</code> (default), <code>WINDOWS_SERVER_2019_CORE</code>,
1847
+ * <code>WINDOWS_SERVER_2019_FULL</code>, <code>WINDOWS_SERVER_2022_CORE</code>, and
1848
+ * <code>WINDOWS_SERVER_2022_FULL</code>.</p>
1849
+ * <note>
1850
+ * <p>The following parameters can’t be set for Windows containers: <code>linuxParameters</code>,
1851
+ * <code>privileged</code>, <code>user</code>, <code>ulimits</code>,
1852
+ * <code>readonlyRootFilesystem</code>,
1853
+ * and <code>efsVolumeConfiguration</code>.</p>
1854
+ * </note>
1855
+ * <note>
1856
+ * <p>The Batch Scheduler checks before registering a task definition with Fargate. If the job
1857
+ * requires a Windows container and the first compute environment is <code>LINUX</code>, the
1858
+ * compute environment is skipped and the next is checked until a Windows-based compute environment
1859
+ * is found.</p>
1860
+ * </note>
1861
+ * <note>
1862
+ * <p>Fargate Spot is not supported for Windows-based containers on Fargate. A job
1863
+ * queue will be blocked if a Fargate Windows job is submitted to a job queue with only Fargate
1864
+ * Spot compute environments.
1865
+ * However, you can attach both <code>FARGATE</code> and <code>FARGATE_SPOT</code>
1866
+ * compute environments to the same job
1867
+ * queue.</p>
1868
+ * </note>
1869
+ */
1870
+ operatingSystemFamily?: string;
1871
+ /**
1872
+ * <p>The vCPU architecture. The default value is <code>X86_64</code>. Valid values are <code>X86_64</code> and
1873
+ * <code> ARM64</code>.</p>
1874
+ * <note>
1875
+ * <p>This parameter must be set to
1876
+ * <code>X86_64</code>
1877
+ * for Windows containers.</p>
1878
+ * </note>
1879
+ */
1880
+ cpuArchitecture?: string;
1881
+ }
1830
1882
  /**
1831
1883
  * @public
1832
1884
  * <p>The <code>ulimit</code> settings to pass to the container.</p>
@@ -2209,6 +2261,10 @@ export interface ContainerProperties {
2209
2261
  * Fargate.</p>
2210
2262
  */
2211
2263
  ephemeralStorage?: EphemeralStorage;
2264
+ /**
2265
+ * <p>An object that represents the compute environment architecture for Batch jobs on Fargate.</p>
2266
+ */
2267
+ runtimePlatform?: RuntimePlatform;
2212
2268
  }
2213
2269
  /**
2214
2270
  * @public
@@ -3204,6 +3260,10 @@ export interface ContainerDetail {
3204
3260
  * Fargate.</p>
3205
3261
  */
3206
3262
  ephemeralStorage?: EphemeralStorage;
3263
+ /**
3264
+ * <p>An object that represents the compute environment architecture for Batch jobs on Fargate.</p>
3265
+ */
3266
+ runtimePlatform?: RuntimePlatform;
3207
3267
  }
3208
3268
  /**
3209
3269
  * @public
@@ -4073,6 +4133,8 @@ export interface RegisterJobDefinitionResponse {
4073
4133
  /**
4074
4134
  * @public
4075
4135
  * <p>The overrides that should be sent to a container.</p>
4136
+ * <p>For information about using Batch overrides when you connect event sources to targets, see
4137
+ * <a href="https://docs.aws.amazon.com/eventbridge/latest/pipes-reference/API_BatchContainerOverrides.html">BatchContainerOverrides</a>.</p>
4076
4138
  */
4077
4139
  export interface ContainerOverrides {
4078
4140
  /**
@@ -4108,6 +4170,9 @@ export interface ContainerOverrides {
4108
4170
  /**
4109
4171
  * <p>The command to send to the container that overrides the default command from the Docker
4110
4172
  * image or the job definition.</p>
4173
+ * <note>
4174
+ * <p>This parameter can't contain an empty string.</p>
4175
+ * </note>
4111
4176
  */
4112
4177
  command?: string[];
4113
4178
  /**
@@ -4267,8 +4332,11 @@ export interface SubmitJobRequest {
4267
4332
  */
4268
4333
  jobQueue: string | undefined;
4269
4334
  /**
4270
- * <p>The share identifier for the job. If the job queue doesn't have a scheduling policy, then this parameter must
4271
- * not be specified. If the job queue has a scheduling policy, then this parameter must be specified.</p>
4335
+ * <p>The share identifier for the job. Don't specify this parameter if the job queue doesn't
4336
+ * have a scheduling policy. If the job queue has a scheduling policy, then this parameter must
4337
+ * be specified.</p>
4338
+ * <p>This string is limited to 255 alphanumeric characters, and can be followed by an asterisk
4339
+ * (*).</p>
4272
4340
  */
4273
4341
  shareIdentifier?: string;
4274
4342
  /**
@@ -4460,8 +4528,9 @@ export type CRUpdateAllocationStrategy = (typeof CRUpdateAllocationStrategy)[key
4460
4528
  */
4461
4529
  export interface ComputeResourceUpdate {
4462
4530
  /**
4463
- * <p>The minimum number of Amazon EC2 vCPUs that an environment should maintain (even if the compute
4464
- * environment is <code>DISABLED</code>).</p>
4531
+ * <p>The minimum number of
4532
+ * vCPUs that
4533
+ * an environment should maintain (even if the compute environment is <code>DISABLED</code>).</p>
4465
4534
  * <note>
4466
4535
  * <p>This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.</p>
4467
4536
  * </note>
@@ -4480,8 +4549,10 @@ export interface ComputeResourceUpdate {
4480
4549
  */
4481
4550
  maxvCpus?: number;
4482
4551
  /**
4483
- * <p>The desired number of Amazon EC2 vCPUS in the compute environment. Batch modifies this value
4484
- * between the minimum and maximum values based on job queue demand.</p>
4552
+ * <p>The desired number of
4553
+ * vCPUS in the
4554
+ * compute environment. Batch modifies this value between the minimum and maximum values based on
4555
+ * job queue demand.</p>
4485
4556
  * <note>
4486
4557
  * <p>This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.</p>
4487
4558
  * </note>
@@ -308,6 +308,10 @@ export interface ResourceRequirement {
308
308
  value: string | undefined;
309
309
  type: ResourceType | string | undefined;
310
310
  }
311
+ export interface RuntimePlatform {
312
+ operatingSystemFamily?: string;
313
+ cpuArchitecture?: string;
314
+ }
311
315
  export interface Ulimit {
312
316
  hardLimit: number | undefined;
313
317
  name: string | undefined;
@@ -366,6 +370,7 @@ export interface ContainerProperties {
366
370
  networkConfiguration?: NetworkConfiguration;
367
371
  fargatePlatformConfiguration?: FargatePlatformConfiguration;
368
372
  ephemeralStorage?: EphemeralStorage;
373
+ runtimePlatform?: RuntimePlatform;
369
374
  }
370
375
  export interface EksContainerEnvironmentVariable {
371
376
  name: string | undefined;
@@ -544,6 +549,7 @@ export interface ContainerDetail {
544
549
  networkConfiguration?: NetworkConfiguration;
545
550
  fargatePlatformConfiguration?: FargatePlatformConfiguration;
546
551
  ephemeralStorage?: EphemeralStorage;
552
+ runtimePlatform?: RuntimePlatform;
547
553
  }
548
554
  export interface JobDependency {
549
555
  jobId?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-batch",
3
3
  "description": "AWS SDK for JavaScript Batch Client for Node.js, Browser and React Native",
4
- "version": "3.363.0",
4
+ "version": "3.369.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,17 +21,17 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.363.0",
25
- "@aws-sdk/credential-provider-node": "3.363.0",
26
- "@aws-sdk/middleware-host-header": "3.363.0",
27
- "@aws-sdk/middleware-logger": "3.363.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.363.0",
29
- "@aws-sdk/middleware-signing": "3.363.0",
30
- "@aws-sdk/middleware-user-agent": "3.363.0",
31
- "@aws-sdk/types": "3.357.0",
32
- "@aws-sdk/util-endpoints": "3.357.0",
33
- "@aws-sdk/util-user-agent-browser": "3.363.0",
34
- "@aws-sdk/util-user-agent-node": "3.363.0",
24
+ "@aws-sdk/client-sts": "3.369.0",
25
+ "@aws-sdk/credential-provider-node": "3.369.0",
26
+ "@aws-sdk/middleware-host-header": "3.369.0",
27
+ "@aws-sdk/middleware-logger": "3.369.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.369.0",
29
+ "@aws-sdk/middleware-signing": "3.369.0",
30
+ "@aws-sdk/middleware-user-agent": "3.369.0",
31
+ "@aws-sdk/types": "3.369.0",
32
+ "@aws-sdk/util-endpoints": "3.369.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.369.0",
34
+ "@aws-sdk/util-user-agent-node": "3.369.0",
35
35
  "@smithy/config-resolver": "^1.0.1",
36
36
  "@smithy/fetch-http-handler": "^1.0.1",
37
37
  "@smithy/hash-node": "^1.0.1",
@@ -45,7 +45,7 @@
45
45
  "@smithy/node-http-handler": "^1.0.2",
46
46
  "@smithy/protocol-http": "^1.0.1",
47
47
  "@smithy/smithy-client": "^1.0.3",
48
- "@smithy/types": "^1.0.0",
48
+ "@smithy/types": "^1.1.0",
49
49
  "@smithy/url-parser": "^1.0.1",
50
50
  "@smithy/util-base64": "^1.0.1",
51
51
  "@smithy/util-body-length-browser": "^1.0.1",