@aws-sdk/client-batch 3.300.0 → 3.303.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.
Files changed (31) hide show
  1. package/dist-cjs/models/models_0.js +103 -123
  2. package/dist-cjs/protocols/Aws_restJson1.js +1 -0
  3. package/dist-es/models/models_0.js +103 -123
  4. package/dist-es/protocols/Aws_restJson1.js +1 -0
  5. package/dist-types/commands/CancelJobCommand.d.ts +1 -1
  6. package/dist-types/commands/CreateComputeEnvironmentCommand.d.ts +9 -9
  7. package/dist-types/commands/CreateJobQueueCommand.d.ts +4 -4
  8. package/dist-types/commands/CreateSchedulingPolicyCommand.d.ts +5 -5
  9. package/dist-types/commands/DeleteComputeEnvironmentCommand.d.ts +1 -1
  10. package/dist-types/commands/DeleteJobQueueCommand.d.ts +1 -1
  11. package/dist-types/commands/DeleteSchedulingPolicyCommand.d.ts +1 -1
  12. package/dist-types/commands/DeregisterJobDefinitionCommand.d.ts +1 -1
  13. package/dist-types/commands/DescribeComputeEnvironmentsCommand.d.ts +2 -2
  14. package/dist-types/commands/DescribeJobDefinitionsCommand.d.ts +2 -2
  15. package/dist-types/commands/DescribeJobQueuesCommand.d.ts +2 -2
  16. package/dist-types/commands/DescribeJobsCommand.d.ts +2 -2
  17. package/dist-types/commands/DescribeSchedulingPoliciesCommand.d.ts +2 -2
  18. package/dist-types/commands/ListJobsCommand.d.ts +4 -4
  19. package/dist-types/commands/ListSchedulingPoliciesCommand.d.ts +1 -1
  20. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  21. package/dist-types/commands/RegisterJobDefinitionCommand.d.ts +65 -75
  22. package/dist-types/commands/SubmitJobCommand.d.ts +30 -30
  23. package/dist-types/commands/TagResourceCommand.d.ts +2 -2
  24. package/dist-types/commands/TerminateJobCommand.d.ts +1 -1
  25. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  26. package/dist-types/commands/UpdateComputeEnvironmentCommand.d.ts +8 -8
  27. package/dist-types/commands/UpdateJobQueueCommand.d.ts +3 -3
  28. package/dist-types/commands/UpdateSchedulingPolicyCommand.d.ts +4 -4
  29. package/dist-types/models/models_0.d.ts +233 -105
  30. package/dist-types/ts3.4/models/models_0.d.ts +134 -103
  31. package/package.json +34 -34
@@ -1,9 +1,11 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { BatchServiceException as __BaseException } from "./BatchServiceException";
3
- export declare enum ArrayJobDependency {
4
- N_TO_N = "N_TO_N",
5
- SEQUENTIAL = "SEQUENTIAL",
6
- }
3
+ export declare const ArrayJobDependency: {
4
+ readonly N_TO_N: "N_TO_N";
5
+ readonly SEQUENTIAL: "SEQUENTIAL";
6
+ };
7
+ export type ArrayJobDependency =
8
+ (typeof ArrayJobDependency)[keyof typeof ArrayJobDependency];
7
9
  export interface ArrayProperties {
8
10
  size?: number;
9
11
  }
@@ -16,10 +18,12 @@ export interface ArrayPropertiesSummary {
16
18
  size?: number;
17
19
  index?: number;
18
20
  }
19
- export declare enum AssignPublicIp {
20
- DISABLED = "DISABLED",
21
- ENABLED = "ENABLED",
22
- }
21
+ export declare const AssignPublicIp: {
22
+ readonly DISABLED: "DISABLED";
23
+ readonly ENABLED: "ENABLED";
24
+ };
25
+ export type AssignPublicIp =
26
+ (typeof AssignPublicIp)[keyof typeof AssignPublicIp];
23
27
  export interface NetworkInterface {
24
28
  attachmentId?: string;
25
29
  ipv6Address?: string;
@@ -54,11 +58,13 @@ export declare class ServerException extends __BaseException {
54
58
  readonly $fault: "server";
55
59
  constructor(opts: __ExceptionOptionType<ServerException, __BaseException>);
56
60
  }
57
- export declare enum CRAllocationStrategy {
58
- BEST_FIT = "BEST_FIT",
59
- BEST_FIT_PROGRESSIVE = "BEST_FIT_PROGRESSIVE",
60
- SPOT_CAPACITY_OPTIMIZED = "SPOT_CAPACITY_OPTIMIZED",
61
- }
61
+ export declare const CRAllocationStrategy: {
62
+ readonly BEST_FIT: "BEST_FIT";
63
+ readonly BEST_FIT_PROGRESSIVE: "BEST_FIT_PROGRESSIVE";
64
+ readonly SPOT_CAPACITY_OPTIMIZED: "SPOT_CAPACITY_OPTIMIZED";
65
+ };
66
+ export type CRAllocationStrategy =
67
+ (typeof CRAllocationStrategy)[keyof typeof CRAllocationStrategy];
62
68
  export interface Ec2Configuration {
63
69
  imageType: string | undefined;
64
70
  imageIdOverride?: string;
@@ -69,12 +75,13 @@ export interface LaunchTemplateSpecification {
69
75
  launchTemplateName?: string;
70
76
  version?: string;
71
77
  }
72
- export declare enum CRType {
73
- EC2 = "EC2",
74
- FARGATE = "FARGATE",
75
- FARGATE_SPOT = "FARGATE_SPOT",
76
- SPOT = "SPOT",
77
- }
78
+ export declare const CRType: {
79
+ readonly EC2: "EC2";
80
+ readonly FARGATE: "FARGATE";
81
+ readonly FARGATE_SPOT: "FARGATE_SPOT";
82
+ readonly SPOT: "SPOT";
83
+ };
84
+ export type CRType = (typeof CRType)[keyof typeof CRType];
78
85
  export interface ComputeResource {
79
86
  type: CRType | string | undefined;
80
87
  allocationStrategy?: CRAllocationStrategy | string;
@@ -98,14 +105,16 @@ export interface EksConfiguration {
98
105
  eksClusterArn: string | undefined;
99
106
  kubernetesNamespace: string | undefined;
100
107
  }
101
- export declare enum CEState {
102
- DISABLED = "DISABLED",
103
- ENABLED = "ENABLED",
104
- }
105
- export declare enum CEType {
106
- MANAGED = "MANAGED",
107
- UNMANAGED = "UNMANAGED",
108
- }
108
+ export declare const CEState: {
109
+ readonly DISABLED: "DISABLED";
110
+ readonly ENABLED: "ENABLED";
111
+ };
112
+ export type CEState = (typeof CEState)[keyof typeof CEState];
113
+ export declare const CEType: {
114
+ readonly MANAGED: "MANAGED";
115
+ readonly UNMANAGED: "UNMANAGED";
116
+ };
117
+ export type CEType = (typeof CEType)[keyof typeof CEType];
109
118
  export interface CreateComputeEnvironmentRequest {
110
119
  computeEnvironmentName: string | undefined;
111
120
  type: CEType | string | undefined;
@@ -124,10 +133,11 @@ export interface ComputeEnvironmentOrder {
124
133
  order: number | undefined;
125
134
  computeEnvironment: string | undefined;
126
135
  }
127
- export declare enum JQState {
128
- DISABLED = "DISABLED",
129
- ENABLED = "ENABLED",
130
- }
136
+ export declare const JQState: {
137
+ readonly DISABLED: "DISABLED";
138
+ readonly ENABLED: "ENABLED";
139
+ };
140
+ export type JQState = (typeof JQState)[keyof typeof JQState];
131
141
  export interface CreateJobQueueRequest {
132
142
  jobQueueName: string | undefined;
133
143
  state?: JQState | string;
@@ -179,18 +189,21 @@ export interface DescribeComputeEnvironmentsRequest {
179
189
  maxResults?: number;
180
190
  nextToken?: string;
181
191
  }
182
- export declare enum OrchestrationType {
183
- ECS = "ECS",
184
- EKS = "EKS",
185
- }
186
- export declare enum CEStatus {
187
- CREATING = "CREATING",
188
- DELETED = "DELETED",
189
- DELETING = "DELETING",
190
- INVALID = "INVALID",
191
- UPDATING = "UPDATING",
192
- VALID = "VALID",
193
- }
192
+ export declare const OrchestrationType: {
193
+ readonly ECS: "ECS";
194
+ readonly EKS: "EKS";
195
+ };
196
+ export type OrchestrationType =
197
+ (typeof OrchestrationType)[keyof typeof OrchestrationType];
198
+ export declare const CEStatus: {
199
+ readonly CREATING: "CREATING";
200
+ readonly DELETED: "DELETED";
201
+ readonly DELETING: "DELETING";
202
+ readonly INVALID: "INVALID";
203
+ readonly UPDATING: "UPDATING";
204
+ readonly VALID: "VALID";
205
+ };
206
+ export type CEStatus = (typeof CEStatus)[keyof typeof CEStatus];
194
207
  export interface UpdatePolicy {
195
208
  terminateJobsOnUpdate?: boolean;
196
209
  jobExecutionTimeoutMinutes?: number;
@@ -233,11 +246,13 @@ export interface EphemeralStorage {
233
246
  export interface FargatePlatformConfiguration {
234
247
  platformVersion?: string;
235
248
  }
236
- export declare enum DeviceCgroupPermission {
237
- MKNOD = "MKNOD",
238
- READ = "READ",
239
- WRITE = "WRITE",
240
- }
249
+ export declare const DeviceCgroupPermission: {
250
+ readonly MKNOD: "MKNOD";
251
+ readonly READ: "READ";
252
+ readonly WRITE: "WRITE";
253
+ };
254
+ export type DeviceCgroupPermission =
255
+ (typeof DeviceCgroupPermission)[keyof typeof DeviceCgroupPermission];
241
256
  export interface Device {
242
257
  hostPath: string | undefined;
243
258
  containerPath?: string;
@@ -256,15 +271,16 @@ export interface LinuxParameters {
256
271
  maxSwap?: number;
257
272
  swappiness?: number;
258
273
  }
259
- export declare enum LogDriver {
260
- AWSLOGS = "awslogs",
261
- FLUENTD = "fluentd",
262
- GELF = "gelf",
263
- JOURNALD = "journald",
264
- JSON_FILE = "json-file",
265
- SPLUNK = "splunk",
266
- SYSLOG = "syslog",
267
- }
274
+ export declare const LogDriver: {
275
+ readonly AWSLOGS: "awslogs";
276
+ readonly FLUENTD: "fluentd";
277
+ readonly GELF: "gelf";
278
+ readonly JOURNALD: "journald";
279
+ readonly JSON_FILE: "json-file";
280
+ readonly SPLUNK: "splunk";
281
+ readonly SYSLOG: "syslog";
282
+ };
283
+ export type LogDriver = (typeof LogDriver)[keyof typeof LogDriver];
268
284
  export interface Secret {
269
285
  name: string | undefined;
270
286
  valueFrom: string | undefined;
@@ -282,11 +298,12 @@ export interface MountPoint {
282
298
  export interface NetworkConfiguration {
283
299
  assignPublicIp?: AssignPublicIp | string;
284
300
  }
285
- export declare enum ResourceType {
286
- GPU = "GPU",
287
- MEMORY = "MEMORY",
288
- VCPU = "VCPU",
289
- }
301
+ export declare const ResourceType: {
302
+ readonly GPU: "GPU";
303
+ readonly MEMORY: "MEMORY";
304
+ readonly VCPU: "VCPU";
305
+ };
306
+ export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
290
307
  export interface ResourceRequirement {
291
308
  value: string | undefined;
292
309
  type: ResourceType | string | undefined;
@@ -296,18 +313,22 @@ export interface Ulimit {
296
313
  name: string | undefined;
297
314
  softLimit: number | undefined;
298
315
  }
299
- export declare enum EFSAuthorizationConfigIAM {
300
- DISABLED = "DISABLED",
301
- ENABLED = "ENABLED",
302
- }
316
+ export declare const EFSAuthorizationConfigIAM: {
317
+ readonly DISABLED: "DISABLED";
318
+ readonly ENABLED: "ENABLED";
319
+ };
320
+ export type EFSAuthorizationConfigIAM =
321
+ (typeof EFSAuthorizationConfigIAM)[keyof typeof EFSAuthorizationConfigIAM];
303
322
  export interface EFSAuthorizationConfig {
304
323
  accessPointId?: string;
305
324
  iam?: EFSAuthorizationConfigIAM | string;
306
325
  }
307
- export declare enum EFSTransitEncryption {
308
- DISABLED = "DISABLED",
309
- ENABLED = "ENABLED",
310
- }
326
+ export declare const EFSTransitEncryption: {
327
+ readonly DISABLED: "DISABLED";
328
+ readonly ENABLED: "ENABLED";
329
+ };
330
+ export type EFSTransitEncryption =
331
+ (typeof EFSTransitEncryption)[keyof typeof EFSTransitEncryption];
311
332
  export interface EFSVolumeConfiguration {
312
333
  fileSystemId: string | undefined;
313
334
  rootDirectory?: string;
@@ -417,14 +438,17 @@ export interface NodeProperties {
417
438
  mainNode: number | undefined;
418
439
  nodeRangeProperties: NodeRangeProperty[] | undefined;
419
440
  }
420
- export declare enum PlatformCapability {
421
- EC2 = "EC2",
422
- FARGATE = "FARGATE",
423
- }
424
- export declare enum RetryAction {
425
- EXIT = "EXIT",
426
- RETRY = "RETRY",
427
- }
441
+ export declare const PlatformCapability: {
442
+ readonly EC2: "EC2";
443
+ readonly FARGATE: "FARGATE";
444
+ };
445
+ export type PlatformCapability =
446
+ (typeof PlatformCapability)[keyof typeof PlatformCapability];
447
+ export declare const RetryAction: {
448
+ readonly EXIT: "EXIT";
449
+ readonly RETRY: "RETRY";
450
+ };
451
+ export type RetryAction = (typeof RetryAction)[keyof typeof RetryAction];
428
452
  export interface EvaluateOnExit {
429
453
  onStatusReason?: string;
430
454
  onReason?: string;
@@ -465,14 +489,15 @@ export interface DescribeJobQueuesRequest {
465
489
  maxResults?: number;
466
490
  nextToken?: string;
467
491
  }
468
- export declare enum JQStatus {
469
- CREATING = "CREATING",
470
- DELETED = "DELETED",
471
- DELETING = "DELETING",
472
- INVALID = "INVALID",
473
- UPDATING = "UPDATING",
474
- VALID = "VALID",
475
- }
492
+ export declare const JQStatus: {
493
+ readonly CREATING: "CREATING";
494
+ readonly DELETED: "DELETED";
495
+ readonly DELETING: "DELETING";
496
+ readonly INVALID: "INVALID";
497
+ readonly UPDATING: "UPDATING";
498
+ readonly VALID: "VALID";
499
+ };
500
+ export type JQStatus = (typeof JQStatus)[keyof typeof JQStatus];
476
501
  export interface JobQueueDetail {
477
502
  jobQueueName: string | undefined;
478
503
  jobQueueArn: string | undefined;
@@ -557,6 +582,7 @@ export interface EksPodPropertiesDetail {
557
582
  volumes?: EksVolume[];
558
583
  podName?: string;
559
584
  nodeName?: string;
585
+ metadata?: EksMetadata;
560
586
  }
561
587
  export interface EksPropertiesDetail {
562
588
  podProperties?: EksPodPropertiesDetail;
@@ -565,15 +591,16 @@ export interface NodeDetails {
565
591
  nodeIndex?: number;
566
592
  isMainNode?: boolean;
567
593
  }
568
- export declare enum JobStatus {
569
- FAILED = "FAILED",
570
- PENDING = "PENDING",
571
- RUNNABLE = "RUNNABLE",
572
- RUNNING = "RUNNING",
573
- STARTING = "STARTING",
574
- SUBMITTED = "SUBMITTED",
575
- SUCCEEDED = "SUCCEEDED",
576
- }
594
+ export declare const JobStatus: {
595
+ readonly FAILED: "FAILED";
596
+ readonly PENDING: "PENDING";
597
+ readonly RUNNABLE: "RUNNABLE";
598
+ readonly RUNNING: "RUNNING";
599
+ readonly STARTING: "STARTING";
600
+ readonly SUBMITTED: "SUBMITTED";
601
+ readonly SUCCEEDED: "SUCCEEDED";
602
+ };
603
+ export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
577
604
  export interface JobDetail {
578
605
  jobArn?: string;
579
606
  jobName: string | undefined;
@@ -676,10 +703,12 @@ export interface ListTagsForResourceRequest {
676
703
  export interface ListTagsForResourceResponse {
677
704
  tags?: Record<string, string>;
678
705
  }
679
- export declare enum JobDefinitionType {
680
- Container = "container",
681
- Multinode = "multinode",
682
- }
706
+ export declare const JobDefinitionType: {
707
+ readonly Container: "container";
708
+ readonly Multinode: "multinode";
709
+ };
710
+ export type JobDefinitionType =
711
+ (typeof JobDefinitionType)[keyof typeof JobDefinitionType];
683
712
  export interface RegisterJobDefinitionRequest {
684
713
  jobDefinitionName: string | undefined;
685
714
  type: JobDefinitionType | string | undefined;
@@ -766,10 +795,12 @@ export interface UntagResourceRequest {
766
795
  tagKeys: string[] | undefined;
767
796
  }
768
797
  export interface UntagResourceResponse {}
769
- export declare enum CRUpdateAllocationStrategy {
770
- BEST_FIT_PROGRESSIVE = "BEST_FIT_PROGRESSIVE",
771
- SPOT_CAPACITY_OPTIMIZED = "SPOT_CAPACITY_OPTIMIZED",
772
- }
798
+ export declare const CRUpdateAllocationStrategy: {
799
+ readonly BEST_FIT_PROGRESSIVE: "BEST_FIT_PROGRESSIVE";
800
+ readonly SPOT_CAPACITY_OPTIMIZED: "SPOT_CAPACITY_OPTIMIZED";
801
+ };
802
+ export type CRUpdateAllocationStrategy =
803
+ (typeof CRUpdateAllocationStrategy)[keyof typeof CRUpdateAllocationStrategy];
773
804
  export interface ComputeResourceUpdate {
774
805
  minvCpus?: number;
775
806
  maxvCpus?: number;
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.300.0",
4
+ "version": "3.303.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,42 +21,42 @@
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.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",