@aws-sdk/client-batch 3.299.0 → 3.301.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.
- package/dist-types/commands/CancelJobCommand.d.ts +4 -0
- package/dist-types/commands/CreateComputeEnvironmentCommand.d.ts +51 -0
- package/dist-types/commands/CreateJobQueueCommand.d.ts +15 -0
- package/dist-types/commands/CreateSchedulingPolicyCommand.d.ts +16 -0
- package/dist-types/commands/DeleteComputeEnvironmentCommand.d.ts +3 -0
- package/dist-types/commands/DeleteJobQueueCommand.d.ts +3 -0
- package/dist-types/commands/DeleteSchedulingPolicyCommand.d.ts +3 -0
- package/dist-types/commands/DeregisterJobDefinitionCommand.d.ts +3 -0
- package/dist-types/commands/DescribeComputeEnvironmentsCommand.d.ts +7 -0
- package/dist-types/commands/DescribeJobDefinitionsCommand.d.ts +9 -0
- package/dist-types/commands/DescribeJobQueuesCommand.d.ts +7 -0
- package/dist-types/commands/DescribeJobsCommand.d.ts +5 -0
- package/dist-types/commands/DescribeSchedulingPoliciesCommand.d.ts +5 -0
- package/dist-types/commands/ListJobsCommand.d.ts +16 -0
- package/dist-types/commands/ListSchedulingPoliciesCommand.d.ts +4 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -0
- package/dist-types/commands/RegisterJobDefinitionCommand.d.ts +309 -0
- package/dist-types/commands/SubmitJobCommand.d.ts +119 -0
- package/dist-types/commands/TagResourceCommand.d.ts +6 -0
- package/dist-types/commands/TerminateJobCommand.d.ts +4 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
- package/dist-types/commands/UpdateComputeEnvironmentCommand.d.ts +47 -0
- package/dist-types/commands/UpdateJobQueueCommand.d.ts +12 -0
- package/dist-types/commands/UpdateSchedulingPolicyCommand.d.ts +13 -0
- package/package.json +8 -8
|
@@ -38,6 +38,10 @@ export interface CancelJobCommandOutput extends CancelJobResponse, __MetadataBea
|
|
|
38
38
|
* import { BatchClient, CancelJobCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
39
39
|
* // const { BatchClient, CancelJobCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
40
40
|
* const client = new BatchClient(config);
|
|
41
|
+
* const input = { // CancelJobRequest
|
|
42
|
+
* jobId: "STRING_VALUE", // required
|
|
43
|
+
* reason: "STRING_VALUE", // required
|
|
44
|
+
* };
|
|
41
45
|
* const command = new CancelJobCommand(input);
|
|
42
46
|
* const response = await client.send(command);
|
|
43
47
|
* ```
|
|
@@ -104,6 +104,57 @@ export interface CreateComputeEnvironmentCommandOutput extends CreateComputeEnvi
|
|
|
104
104
|
* import { BatchClient, CreateComputeEnvironmentCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
105
105
|
* // const { BatchClient, CreateComputeEnvironmentCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
106
106
|
* const client = new BatchClient(config);
|
|
107
|
+
* const input = { // CreateComputeEnvironmentRequest
|
|
108
|
+
* computeEnvironmentName: "STRING_VALUE", // required
|
|
109
|
+
* type: "MANAGED" || "UNMANAGED", // required
|
|
110
|
+
* state: "ENABLED" || "DISABLED",
|
|
111
|
+
* unmanagedvCpus: Number("int"),
|
|
112
|
+
* computeResources: { // ComputeResource
|
|
113
|
+
* type: "EC2" || "SPOT" || "FARGATE" || "FARGATE_SPOT", // required
|
|
114
|
+
* allocationStrategy: "BEST_FIT" || "BEST_FIT_PROGRESSIVE" || "SPOT_CAPACITY_OPTIMIZED",
|
|
115
|
+
* minvCpus: Number("int"),
|
|
116
|
+
* maxvCpus: Number("int"), // required
|
|
117
|
+
* desiredvCpus: Number("int"),
|
|
118
|
+
* instanceTypes: [ // StringList
|
|
119
|
+
* "STRING_VALUE",
|
|
120
|
+
* ],
|
|
121
|
+
* imageId: "STRING_VALUE",
|
|
122
|
+
* subnets: [ // required
|
|
123
|
+
* "STRING_VALUE",
|
|
124
|
+
* ],
|
|
125
|
+
* securityGroupIds: [
|
|
126
|
+
* "STRING_VALUE",
|
|
127
|
+
* ],
|
|
128
|
+
* ec2KeyPair: "STRING_VALUE",
|
|
129
|
+
* instanceRole: "STRING_VALUE",
|
|
130
|
+
* tags: { // TagsMap
|
|
131
|
+
* "<keys>": "STRING_VALUE",
|
|
132
|
+
* },
|
|
133
|
+
* placementGroup: "STRING_VALUE",
|
|
134
|
+
* bidPercentage: Number("int"),
|
|
135
|
+
* spotIamFleetRole: "STRING_VALUE",
|
|
136
|
+
* launchTemplate: { // LaunchTemplateSpecification
|
|
137
|
+
* launchTemplateId: "STRING_VALUE",
|
|
138
|
+
* launchTemplateName: "STRING_VALUE",
|
|
139
|
+
* version: "STRING_VALUE",
|
|
140
|
+
* },
|
|
141
|
+
* ec2Configuration: [ // Ec2ConfigurationList
|
|
142
|
+
* { // Ec2Configuration
|
|
143
|
+
* imageType: "STRING_VALUE", // required
|
|
144
|
+
* imageIdOverride: "STRING_VALUE",
|
|
145
|
+
* imageKubernetesVersion: "STRING_VALUE",
|
|
146
|
+
* },
|
|
147
|
+
* ],
|
|
148
|
+
* },
|
|
149
|
+
* serviceRole: "STRING_VALUE",
|
|
150
|
+
* tags: { // TagrisTagsMap
|
|
151
|
+
* "<keys>": "STRING_VALUE",
|
|
152
|
+
* },
|
|
153
|
+
* eksConfiguration: { // EksConfiguration
|
|
154
|
+
* eksClusterArn: "STRING_VALUE", // required
|
|
155
|
+
* kubernetesNamespace: "STRING_VALUE", // required
|
|
156
|
+
* },
|
|
157
|
+
* };
|
|
107
158
|
* const command = new CreateComputeEnvironmentCommand(input);
|
|
108
159
|
* const response = await client.send(command);
|
|
109
160
|
* ```
|
|
@@ -31,6 +31,21 @@ export interface CreateJobQueueCommandOutput extends CreateJobQueueResponse, __M
|
|
|
31
31
|
* import { BatchClient, CreateJobQueueCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
32
32
|
* // const { BatchClient, CreateJobQueueCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
33
33
|
* const client = new BatchClient(config);
|
|
34
|
+
* const input = { // CreateJobQueueRequest
|
|
35
|
+
* jobQueueName: "STRING_VALUE", // required
|
|
36
|
+
* state: "ENABLED" || "DISABLED",
|
|
37
|
+
* schedulingPolicyArn: "STRING_VALUE",
|
|
38
|
+
* priority: Number("int"), // required
|
|
39
|
+
* computeEnvironmentOrder: [ // ComputeEnvironmentOrders // required
|
|
40
|
+
* { // ComputeEnvironmentOrder
|
|
41
|
+
* order: Number("int"), // required
|
|
42
|
+
* computeEnvironment: "STRING_VALUE", // required
|
|
43
|
+
* },
|
|
44
|
+
* ],
|
|
45
|
+
* tags: { // TagrisTagsMap
|
|
46
|
+
* "<keys>": "STRING_VALUE",
|
|
47
|
+
* },
|
|
48
|
+
* };
|
|
34
49
|
* const command = new CreateJobQueueCommand(input);
|
|
35
50
|
* const response = await client.send(command);
|
|
36
51
|
* ```
|
|
@@ -26,6 +26,22 @@ export interface CreateSchedulingPolicyCommandOutput extends CreateSchedulingPol
|
|
|
26
26
|
* import { BatchClient, CreateSchedulingPolicyCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
27
27
|
* // const { BatchClient, CreateSchedulingPolicyCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
28
28
|
* const client = new BatchClient(config);
|
|
29
|
+
* const input = { // CreateSchedulingPolicyRequest
|
|
30
|
+
* name: "STRING_VALUE", // required
|
|
31
|
+
* fairsharePolicy: { // FairsharePolicy
|
|
32
|
+
* shareDecaySeconds: Number("int"),
|
|
33
|
+
* computeReservation: Number("int"),
|
|
34
|
+
* shareDistribution: [ // ShareAttributesList
|
|
35
|
+
* { // ShareAttributes
|
|
36
|
+
* shareIdentifier: "STRING_VALUE", // required
|
|
37
|
+
* weightFactor: Number("float"),
|
|
38
|
+
* },
|
|
39
|
+
* ],
|
|
40
|
+
* },
|
|
41
|
+
* tags: { // TagrisTagsMap
|
|
42
|
+
* "<keys>": "STRING_VALUE",
|
|
43
|
+
* },
|
|
44
|
+
* };
|
|
29
45
|
* const command = new CreateSchedulingPolicyCommand(input);
|
|
30
46
|
* const response = await client.send(command);
|
|
31
47
|
* ```
|
|
@@ -29,6 +29,9 @@ export interface DeleteComputeEnvironmentCommandOutput extends DeleteComputeEnvi
|
|
|
29
29
|
* import { BatchClient, DeleteComputeEnvironmentCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
30
30
|
* // const { BatchClient, DeleteComputeEnvironmentCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
31
31
|
* const client = new BatchClient(config);
|
|
32
|
+
* const input = { // DeleteComputeEnvironmentRequest
|
|
33
|
+
* computeEnvironment: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
32
35
|
* const command = new DeleteComputeEnvironmentCommand(input);
|
|
33
36
|
* const response = await client.send(command);
|
|
34
37
|
* ```
|
|
@@ -29,6 +29,9 @@ export interface DeleteJobQueueCommandOutput extends DeleteJobQueueResponse, __M
|
|
|
29
29
|
* import { BatchClient, DeleteJobQueueCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
30
30
|
* // const { BatchClient, DeleteJobQueueCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
31
31
|
* const client = new BatchClient(config);
|
|
32
|
+
* const input = { // DeleteJobQueueRequest
|
|
33
|
+
* jobQueue: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
32
35
|
* const command = new DeleteJobQueueCommand(input);
|
|
33
36
|
* const response = await client.send(command);
|
|
34
37
|
* ```
|
|
@@ -27,6 +27,9 @@ export interface DeleteSchedulingPolicyCommandOutput extends DeleteSchedulingPol
|
|
|
27
27
|
* import { BatchClient, DeleteSchedulingPolicyCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
28
28
|
* // const { BatchClient, DeleteSchedulingPolicyCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
29
29
|
* const client = new BatchClient(config);
|
|
30
|
+
* const input = { // DeleteSchedulingPolicyRequest
|
|
31
|
+
* arn: "STRING_VALUE", // required
|
|
32
|
+
* };
|
|
30
33
|
* const command = new DeleteSchedulingPolicyCommand(input);
|
|
31
34
|
* const response = await client.send(command);
|
|
32
35
|
* ```
|
|
@@ -26,6 +26,9 @@ export interface DeregisterJobDefinitionCommandOutput extends DeregisterJobDefin
|
|
|
26
26
|
* import { BatchClient, DeregisterJobDefinitionCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
27
27
|
* // const { BatchClient, DeregisterJobDefinitionCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
28
28
|
* const client = new BatchClient(config);
|
|
29
|
+
* const input = { // DeregisterJobDefinitionRequest
|
|
30
|
+
* jobDefinition: "STRING_VALUE", // required
|
|
31
|
+
* };
|
|
29
32
|
* const command = new DeregisterJobDefinitionCommand(input);
|
|
30
33
|
* const response = await client.send(command);
|
|
31
34
|
* ```
|
|
@@ -29,6 +29,13 @@ export interface DescribeComputeEnvironmentsCommandOutput extends DescribeComput
|
|
|
29
29
|
* import { BatchClient, DescribeComputeEnvironmentsCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
30
30
|
* // const { BatchClient, DescribeComputeEnvironmentsCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
31
31
|
* const client = new BatchClient(config);
|
|
32
|
+
* const input = { // DescribeComputeEnvironmentsRequest
|
|
33
|
+
* computeEnvironments: [ // StringList
|
|
34
|
+
* "STRING_VALUE",
|
|
35
|
+
* ],
|
|
36
|
+
* maxResults: Number("int"),
|
|
37
|
+
* nextToken: "STRING_VALUE",
|
|
38
|
+
* };
|
|
32
39
|
* const command = new DescribeComputeEnvironmentsCommand(input);
|
|
33
40
|
* const response = await client.send(command);
|
|
34
41
|
* ```
|
|
@@ -27,6 +27,15 @@ export interface DescribeJobDefinitionsCommandOutput extends DescribeJobDefiniti
|
|
|
27
27
|
* import { BatchClient, DescribeJobDefinitionsCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
28
28
|
* // const { BatchClient, DescribeJobDefinitionsCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
29
29
|
* const client = new BatchClient(config);
|
|
30
|
+
* const input = { // DescribeJobDefinitionsRequest
|
|
31
|
+
* jobDefinitions: [ // StringList
|
|
32
|
+
* "STRING_VALUE",
|
|
33
|
+
* ],
|
|
34
|
+
* maxResults: Number("int"),
|
|
35
|
+
* jobDefinitionName: "STRING_VALUE",
|
|
36
|
+
* status: "STRING_VALUE",
|
|
37
|
+
* nextToken: "STRING_VALUE",
|
|
38
|
+
* };
|
|
30
39
|
* const command = new DescribeJobDefinitionsCommand(input);
|
|
31
40
|
* const response = await client.send(command);
|
|
32
41
|
* ```
|
|
@@ -26,6 +26,13 @@ export interface DescribeJobQueuesCommandOutput extends DescribeJobQueuesRespons
|
|
|
26
26
|
* import { BatchClient, DescribeJobQueuesCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
27
27
|
* // const { BatchClient, DescribeJobQueuesCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
28
28
|
* const client = new BatchClient(config);
|
|
29
|
+
* const input = { // DescribeJobQueuesRequest
|
|
30
|
+
* jobQueues: [ // StringList
|
|
31
|
+
* "STRING_VALUE",
|
|
32
|
+
* ],
|
|
33
|
+
* maxResults: Number("int"),
|
|
34
|
+
* nextToken: "STRING_VALUE",
|
|
35
|
+
* };
|
|
29
36
|
* const command = new DescribeJobQueuesCommand(input);
|
|
30
37
|
* const response = await client.send(command);
|
|
31
38
|
* ```
|
|
@@ -26,6 +26,11 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
|
|
|
26
26
|
* import { BatchClient, DescribeJobsCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
27
27
|
* // const { BatchClient, DescribeJobsCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
28
28
|
* const client = new BatchClient(config);
|
|
29
|
+
* const input = { // DescribeJobsRequest
|
|
30
|
+
* jobs: [ // StringList // required
|
|
31
|
+
* "STRING_VALUE",
|
|
32
|
+
* ],
|
|
33
|
+
* };
|
|
29
34
|
* const command = new DescribeJobsCommand(input);
|
|
30
35
|
* const response = await client.send(command);
|
|
31
36
|
* ```
|
|
@@ -26,6 +26,11 @@ export interface DescribeSchedulingPoliciesCommandOutput extends DescribeSchedul
|
|
|
26
26
|
* import { BatchClient, DescribeSchedulingPoliciesCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
27
27
|
* // const { BatchClient, DescribeSchedulingPoliciesCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
28
28
|
* const client = new BatchClient(config);
|
|
29
|
+
* const input = { // DescribeSchedulingPoliciesRequest
|
|
30
|
+
* arns: [ // StringList // required
|
|
31
|
+
* "STRING_VALUE",
|
|
32
|
+
* ],
|
|
33
|
+
* };
|
|
29
34
|
* const command = new DescribeSchedulingPoliciesCommand(input);
|
|
30
35
|
* const response = await client.send(command);
|
|
31
36
|
* ```
|
|
@@ -40,6 +40,22 @@ export interface ListJobsCommandOutput extends ListJobsResponse, __MetadataBeare
|
|
|
40
40
|
* import { BatchClient, ListJobsCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
41
41
|
* // const { BatchClient, ListJobsCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
42
42
|
* const client = new BatchClient(config);
|
|
43
|
+
* const input = { // ListJobsRequest
|
|
44
|
+
* jobQueue: "STRING_VALUE",
|
|
45
|
+
* arrayJobId: "STRING_VALUE",
|
|
46
|
+
* multiNodeJobId: "STRING_VALUE",
|
|
47
|
+
* jobStatus: "SUBMITTED" || "PENDING" || "RUNNABLE" || "STARTING" || "RUNNING" || "SUCCEEDED" || "FAILED",
|
|
48
|
+
* maxResults: Number("int"),
|
|
49
|
+
* nextToken: "STRING_VALUE",
|
|
50
|
+
* filters: [ // ListJobsFilterList
|
|
51
|
+
* { // KeyValuesPair
|
|
52
|
+
* name: "STRING_VALUE",
|
|
53
|
+
* values: [ // StringList
|
|
54
|
+
* "STRING_VALUE",
|
|
55
|
+
* ],
|
|
56
|
+
* },
|
|
57
|
+
* ],
|
|
58
|
+
* };
|
|
43
59
|
* const command = new ListJobsCommand(input);
|
|
44
60
|
* const response = await client.send(command);
|
|
45
61
|
* ```
|
|
@@ -26,6 +26,10 @@ export interface ListSchedulingPoliciesCommandOutput extends ListSchedulingPolic
|
|
|
26
26
|
* import { BatchClient, ListSchedulingPoliciesCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
27
27
|
* // const { BatchClient, ListSchedulingPoliciesCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
28
28
|
* const client = new BatchClient(config);
|
|
29
|
+
* const input = { // ListSchedulingPoliciesRequest
|
|
30
|
+
* maxResults: Number("int"),
|
|
31
|
+
* nextToken: "STRING_VALUE",
|
|
32
|
+
* };
|
|
29
33
|
* const command = new ListSchedulingPoliciesCommand(input);
|
|
30
34
|
* const response = await client.send(command);
|
|
31
35
|
* ```
|
|
@@ -27,6 +27,9 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
|
|
|
27
27
|
* import { BatchClient, ListTagsForResourceCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
28
28
|
* // const { BatchClient, ListTagsForResourceCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
29
29
|
* const client = new BatchClient(config);
|
|
30
|
+
* const input = { // ListTagsForResourceRequest
|
|
31
|
+
* resourceArn: "STRING_VALUE", // required
|
|
32
|
+
* };
|
|
30
33
|
* const command = new ListTagsForResourceCommand(input);
|
|
31
34
|
* const response = await client.send(command);
|
|
32
35
|
* ```
|
|
@@ -26,6 +26,315 @@ export interface RegisterJobDefinitionCommandOutput extends RegisterJobDefinitio
|
|
|
26
26
|
* import { BatchClient, RegisterJobDefinitionCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
27
27
|
* // const { BatchClient, RegisterJobDefinitionCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
28
28
|
* const client = new BatchClient(config);
|
|
29
|
+
* const input = { // RegisterJobDefinitionRequest
|
|
30
|
+
* jobDefinitionName: "STRING_VALUE", // required
|
|
31
|
+
* type: "container" || "multinode", // required
|
|
32
|
+
* parameters: { // ParametersMap
|
|
33
|
+
* "<keys>": "STRING_VALUE",
|
|
34
|
+
* },
|
|
35
|
+
* schedulingPriority: Number("int"),
|
|
36
|
+
* containerProperties: { // ContainerProperties
|
|
37
|
+
* image: "STRING_VALUE",
|
|
38
|
+
* vcpus: Number("int"),
|
|
39
|
+
* memory: Number("int"),
|
|
40
|
+
* command: [ // StringList
|
|
41
|
+
* "STRING_VALUE",
|
|
42
|
+
* ],
|
|
43
|
+
* jobRoleArn: "STRING_VALUE",
|
|
44
|
+
* executionRoleArn: "STRING_VALUE",
|
|
45
|
+
* volumes: [ // Volumes
|
|
46
|
+
* { // Volume
|
|
47
|
+
* host: { // Host
|
|
48
|
+
* sourcePath: "STRING_VALUE",
|
|
49
|
+
* },
|
|
50
|
+
* name: "STRING_VALUE",
|
|
51
|
+
* efsVolumeConfiguration: { // EFSVolumeConfiguration
|
|
52
|
+
* fileSystemId: "STRING_VALUE", // required
|
|
53
|
+
* rootDirectory: "STRING_VALUE",
|
|
54
|
+
* transitEncryption: "ENABLED" || "DISABLED",
|
|
55
|
+
* transitEncryptionPort: Number("int"),
|
|
56
|
+
* authorizationConfig: { // EFSAuthorizationConfig
|
|
57
|
+
* accessPointId: "STRING_VALUE",
|
|
58
|
+
* iam: "ENABLED" || "DISABLED",
|
|
59
|
+
* },
|
|
60
|
+
* },
|
|
61
|
+
* },
|
|
62
|
+
* ],
|
|
63
|
+
* environment: [ // EnvironmentVariables
|
|
64
|
+
* { // KeyValuePair
|
|
65
|
+
* name: "STRING_VALUE",
|
|
66
|
+
* value: "STRING_VALUE",
|
|
67
|
+
* },
|
|
68
|
+
* ],
|
|
69
|
+
* mountPoints: [ // MountPoints
|
|
70
|
+
* { // MountPoint
|
|
71
|
+
* containerPath: "STRING_VALUE",
|
|
72
|
+
* readOnly: true || false,
|
|
73
|
+
* sourceVolume: "STRING_VALUE",
|
|
74
|
+
* },
|
|
75
|
+
* ],
|
|
76
|
+
* readonlyRootFilesystem: true || false,
|
|
77
|
+
* privileged: true || false,
|
|
78
|
+
* ulimits: [ // Ulimits
|
|
79
|
+
* { // Ulimit
|
|
80
|
+
* hardLimit: Number("int"), // required
|
|
81
|
+
* name: "STRING_VALUE", // required
|
|
82
|
+
* softLimit: Number("int"), // required
|
|
83
|
+
* },
|
|
84
|
+
* ],
|
|
85
|
+
* user: "STRING_VALUE",
|
|
86
|
+
* instanceType: "STRING_VALUE",
|
|
87
|
+
* resourceRequirements: [ // ResourceRequirements
|
|
88
|
+
* { // ResourceRequirement
|
|
89
|
+
* value: "STRING_VALUE", // required
|
|
90
|
+
* type: "GPU" || "VCPU" || "MEMORY", // required
|
|
91
|
+
* },
|
|
92
|
+
* ],
|
|
93
|
+
* linuxParameters: { // LinuxParameters
|
|
94
|
+
* devices: [ // DevicesList
|
|
95
|
+
* { // Device
|
|
96
|
+
* hostPath: "STRING_VALUE", // required
|
|
97
|
+
* containerPath: "STRING_VALUE",
|
|
98
|
+
* permissions: [ // DeviceCgroupPermissions
|
|
99
|
+
* "READ" || "WRITE" || "MKNOD",
|
|
100
|
+
* ],
|
|
101
|
+
* },
|
|
102
|
+
* ],
|
|
103
|
+
* initProcessEnabled: true || false,
|
|
104
|
+
* sharedMemorySize: Number("int"),
|
|
105
|
+
* tmpfs: [ // TmpfsList
|
|
106
|
+
* { // Tmpfs
|
|
107
|
+
* containerPath: "STRING_VALUE", // required
|
|
108
|
+
* size: Number("int"), // required
|
|
109
|
+
* mountOptions: [
|
|
110
|
+
* "STRING_VALUE",
|
|
111
|
+
* ],
|
|
112
|
+
* },
|
|
113
|
+
* ],
|
|
114
|
+
* maxSwap: Number("int"),
|
|
115
|
+
* swappiness: Number("int"),
|
|
116
|
+
* },
|
|
117
|
+
* logConfiguration: { // LogConfiguration
|
|
118
|
+
* logDriver: "json-file" || "syslog" || "journald" || "gelf" || "fluentd" || "awslogs" || "splunk", // required
|
|
119
|
+
* options: { // LogConfigurationOptionsMap
|
|
120
|
+
* "<keys>": "STRING_VALUE",
|
|
121
|
+
* },
|
|
122
|
+
* secretOptions: [ // SecretList
|
|
123
|
+
* { // Secret
|
|
124
|
+
* name: "STRING_VALUE", // required
|
|
125
|
+
* valueFrom: "STRING_VALUE", // required
|
|
126
|
+
* },
|
|
127
|
+
* ],
|
|
128
|
+
* },
|
|
129
|
+
* secrets: [
|
|
130
|
+
* {
|
|
131
|
+
* name: "STRING_VALUE", // required
|
|
132
|
+
* valueFrom: "STRING_VALUE", // required
|
|
133
|
+
* },
|
|
134
|
+
* ],
|
|
135
|
+
* networkConfiguration: { // NetworkConfiguration
|
|
136
|
+
* assignPublicIp: "ENABLED" || "DISABLED",
|
|
137
|
+
* },
|
|
138
|
+
* fargatePlatformConfiguration: { // FargatePlatformConfiguration
|
|
139
|
+
* platformVersion: "STRING_VALUE",
|
|
140
|
+
* },
|
|
141
|
+
* ephemeralStorage: { // EphemeralStorage
|
|
142
|
+
* sizeInGiB: Number("int"), // required
|
|
143
|
+
* },
|
|
144
|
+
* },
|
|
145
|
+
* nodeProperties: { // NodeProperties
|
|
146
|
+
* numNodes: Number("int"), // required
|
|
147
|
+
* mainNode: Number("int"), // required
|
|
148
|
+
* nodeRangeProperties: [ // NodeRangeProperties // required
|
|
149
|
+
* { // NodeRangeProperty
|
|
150
|
+
* targetNodes: "STRING_VALUE", // required
|
|
151
|
+
* container: {
|
|
152
|
+
* image: "STRING_VALUE",
|
|
153
|
+
* vcpus: Number("int"),
|
|
154
|
+
* memory: Number("int"),
|
|
155
|
+
* command: [
|
|
156
|
+
* "STRING_VALUE",
|
|
157
|
+
* ],
|
|
158
|
+
* jobRoleArn: "STRING_VALUE",
|
|
159
|
+
* executionRoleArn: "STRING_VALUE",
|
|
160
|
+
* volumes: [
|
|
161
|
+
* {
|
|
162
|
+
* host: {
|
|
163
|
+
* sourcePath: "STRING_VALUE",
|
|
164
|
+
* },
|
|
165
|
+
* name: "STRING_VALUE",
|
|
166
|
+
* efsVolumeConfiguration: {
|
|
167
|
+
* fileSystemId: "STRING_VALUE", // required
|
|
168
|
+
* rootDirectory: "STRING_VALUE",
|
|
169
|
+
* transitEncryption: "ENABLED" || "DISABLED",
|
|
170
|
+
* transitEncryptionPort: Number("int"),
|
|
171
|
+
* authorizationConfig: {
|
|
172
|
+
* accessPointId: "STRING_VALUE",
|
|
173
|
+
* iam: "ENABLED" || "DISABLED",
|
|
174
|
+
* },
|
|
175
|
+
* },
|
|
176
|
+
* },
|
|
177
|
+
* ],
|
|
178
|
+
* environment: [
|
|
179
|
+
* {
|
|
180
|
+
* name: "STRING_VALUE",
|
|
181
|
+
* value: "STRING_VALUE",
|
|
182
|
+
* },
|
|
183
|
+
* ],
|
|
184
|
+
* mountPoints: [
|
|
185
|
+
* {
|
|
186
|
+
* containerPath: "STRING_VALUE",
|
|
187
|
+
* readOnly: true || false,
|
|
188
|
+
* sourceVolume: "STRING_VALUE",
|
|
189
|
+
* },
|
|
190
|
+
* ],
|
|
191
|
+
* readonlyRootFilesystem: true || false,
|
|
192
|
+
* privileged: true || false,
|
|
193
|
+
* ulimits: [
|
|
194
|
+
* {
|
|
195
|
+
* hardLimit: Number("int"), // required
|
|
196
|
+
* name: "STRING_VALUE", // required
|
|
197
|
+
* softLimit: Number("int"), // required
|
|
198
|
+
* },
|
|
199
|
+
* ],
|
|
200
|
+
* user: "STRING_VALUE",
|
|
201
|
+
* instanceType: "STRING_VALUE",
|
|
202
|
+
* resourceRequirements: [
|
|
203
|
+
* {
|
|
204
|
+
* value: "STRING_VALUE", // required
|
|
205
|
+
* type: "GPU" || "VCPU" || "MEMORY", // required
|
|
206
|
+
* },
|
|
207
|
+
* ],
|
|
208
|
+
* linuxParameters: {
|
|
209
|
+
* devices: [
|
|
210
|
+
* {
|
|
211
|
+
* hostPath: "STRING_VALUE", // required
|
|
212
|
+
* containerPath: "STRING_VALUE",
|
|
213
|
+
* permissions: [
|
|
214
|
+
* "READ" || "WRITE" || "MKNOD",
|
|
215
|
+
* ],
|
|
216
|
+
* },
|
|
217
|
+
* ],
|
|
218
|
+
* initProcessEnabled: true || false,
|
|
219
|
+
* sharedMemorySize: Number("int"),
|
|
220
|
+
* tmpfs: [
|
|
221
|
+
* {
|
|
222
|
+
* containerPath: "STRING_VALUE", // required
|
|
223
|
+
* size: Number("int"), // required
|
|
224
|
+
* mountOptions: "<StringList>",
|
|
225
|
+
* },
|
|
226
|
+
* ],
|
|
227
|
+
* maxSwap: Number("int"),
|
|
228
|
+
* swappiness: Number("int"),
|
|
229
|
+
* },
|
|
230
|
+
* logConfiguration: {
|
|
231
|
+
* logDriver: "json-file" || "syslog" || "journald" || "gelf" || "fluentd" || "awslogs" || "splunk", // required
|
|
232
|
+
* options: {
|
|
233
|
+
* "<keys>": "STRING_VALUE",
|
|
234
|
+
* },
|
|
235
|
+
* secretOptions: "<SecretList>",
|
|
236
|
+
* },
|
|
237
|
+
* secrets: "<SecretList>",
|
|
238
|
+
* networkConfiguration: {
|
|
239
|
+
* assignPublicIp: "ENABLED" || "DISABLED",
|
|
240
|
+
* },
|
|
241
|
+
* fargatePlatformConfiguration: {
|
|
242
|
+
* platformVersion: "STRING_VALUE",
|
|
243
|
+
* },
|
|
244
|
+
* ephemeralStorage: {
|
|
245
|
+
* sizeInGiB: Number("int"), // required
|
|
246
|
+
* },
|
|
247
|
+
* },
|
|
248
|
+
* },
|
|
249
|
+
* ],
|
|
250
|
+
* },
|
|
251
|
+
* retryStrategy: { // RetryStrategy
|
|
252
|
+
* attempts: Number("int"),
|
|
253
|
+
* evaluateOnExit: [ // EvaluateOnExitList
|
|
254
|
+
* { // EvaluateOnExit
|
|
255
|
+
* onStatusReason: "STRING_VALUE",
|
|
256
|
+
* onReason: "STRING_VALUE",
|
|
257
|
+
* onExitCode: "STRING_VALUE",
|
|
258
|
+
* action: "RETRY" || "EXIT", // required
|
|
259
|
+
* },
|
|
260
|
+
* ],
|
|
261
|
+
* },
|
|
262
|
+
* propagateTags: true || false,
|
|
263
|
+
* timeout: { // JobTimeout
|
|
264
|
+
* attemptDurationSeconds: Number("int"),
|
|
265
|
+
* },
|
|
266
|
+
* tags: { // TagrisTagsMap
|
|
267
|
+
* "<keys>": "STRING_VALUE",
|
|
268
|
+
* },
|
|
269
|
+
* platformCapabilities: [ // PlatformCapabilityList
|
|
270
|
+
* "EC2" || "FARGATE",
|
|
271
|
+
* ],
|
|
272
|
+
* eksProperties: { // EksProperties
|
|
273
|
+
* podProperties: { // EksPodProperties
|
|
274
|
+
* serviceAccountName: "STRING_VALUE",
|
|
275
|
+
* hostNetwork: true || false,
|
|
276
|
+
* dnsPolicy: "STRING_VALUE",
|
|
277
|
+
* containers: [ // EksContainers
|
|
278
|
+
* { // EksContainer
|
|
279
|
+
* name: "STRING_VALUE",
|
|
280
|
+
* image: "STRING_VALUE", // required
|
|
281
|
+
* imagePullPolicy: "STRING_VALUE",
|
|
282
|
+
* command: "<StringList>",
|
|
283
|
+
* args: "<StringList>",
|
|
284
|
+
* env: [ // EksContainerEnvironmentVariables
|
|
285
|
+
* { // EksContainerEnvironmentVariable
|
|
286
|
+
* name: "STRING_VALUE", // required
|
|
287
|
+
* value: "STRING_VALUE",
|
|
288
|
+
* },
|
|
289
|
+
* ],
|
|
290
|
+
* resources: { // EksContainerResourceRequirements
|
|
291
|
+
* limits: { // EksLimits
|
|
292
|
+
* "<keys>": "STRING_VALUE",
|
|
293
|
+
* },
|
|
294
|
+
* requests: { // EksRequests
|
|
295
|
+
* "<keys>": "STRING_VALUE",
|
|
296
|
+
* },
|
|
297
|
+
* },
|
|
298
|
+
* volumeMounts: [ // EksContainerVolumeMounts
|
|
299
|
+
* { // EksContainerVolumeMount
|
|
300
|
+
* name: "STRING_VALUE",
|
|
301
|
+
* mountPath: "STRING_VALUE",
|
|
302
|
+
* readOnly: true || false,
|
|
303
|
+
* },
|
|
304
|
+
* ],
|
|
305
|
+
* securityContext: { // EksContainerSecurityContext
|
|
306
|
+
* runAsUser: Number("long"),
|
|
307
|
+
* runAsGroup: Number("long"),
|
|
308
|
+
* privileged: true || false,
|
|
309
|
+
* readOnlyRootFilesystem: true || false,
|
|
310
|
+
* runAsNonRoot: true || false,
|
|
311
|
+
* },
|
|
312
|
+
* },
|
|
313
|
+
* ],
|
|
314
|
+
* volumes: [ // EksVolumes
|
|
315
|
+
* { // EksVolume
|
|
316
|
+
* name: "STRING_VALUE", // required
|
|
317
|
+
* hostPath: { // EksHostPath
|
|
318
|
+
* path: "STRING_VALUE",
|
|
319
|
+
* },
|
|
320
|
+
* emptyDir: { // EksEmptyDir
|
|
321
|
+
* medium: "STRING_VALUE",
|
|
322
|
+
* sizeLimit: "STRING_VALUE",
|
|
323
|
+
* },
|
|
324
|
+
* secret: { // EksSecret
|
|
325
|
+
* secretName: "STRING_VALUE", // required
|
|
326
|
+
* optional: true || false,
|
|
327
|
+
* },
|
|
328
|
+
* },
|
|
329
|
+
* ],
|
|
330
|
+
* metadata: { // EksMetadata
|
|
331
|
+
* labels: { // EksLabelsMap
|
|
332
|
+
* "<keys>": "STRING_VALUE",
|
|
333
|
+
* },
|
|
334
|
+
* },
|
|
335
|
+
* },
|
|
336
|
+
* },
|
|
337
|
+
* };
|
|
29
338
|
* const command = new RegisterJobDefinitionCommand(input);
|
|
30
339
|
* const response = await client.send(command);
|
|
31
340
|
* ```
|
|
@@ -38,6 +38,125 @@ export interface SubmitJobCommandOutput extends SubmitJobResponse, __MetadataBea
|
|
|
38
38
|
* import { BatchClient, SubmitJobCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
39
39
|
* // const { BatchClient, SubmitJobCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
40
40
|
* const client = new BatchClient(config);
|
|
41
|
+
* const input = { // SubmitJobRequest
|
|
42
|
+
* jobName: "STRING_VALUE", // required
|
|
43
|
+
* jobQueue: "STRING_VALUE", // required
|
|
44
|
+
* shareIdentifier: "STRING_VALUE",
|
|
45
|
+
* schedulingPriorityOverride: Number("int"),
|
|
46
|
+
* arrayProperties: { // ArrayProperties
|
|
47
|
+
* size: Number("int"),
|
|
48
|
+
* },
|
|
49
|
+
* dependsOn: [ // JobDependencyList
|
|
50
|
+
* { // JobDependency
|
|
51
|
+
* jobId: "STRING_VALUE",
|
|
52
|
+
* type: "N_TO_N" || "SEQUENTIAL",
|
|
53
|
+
* },
|
|
54
|
+
* ],
|
|
55
|
+
* jobDefinition: "STRING_VALUE", // required
|
|
56
|
+
* parameters: { // ParametersMap
|
|
57
|
+
* "<keys>": "STRING_VALUE",
|
|
58
|
+
* },
|
|
59
|
+
* containerOverrides: { // ContainerOverrides
|
|
60
|
+
* vcpus: Number("int"),
|
|
61
|
+
* memory: Number("int"),
|
|
62
|
+
* command: [ // StringList
|
|
63
|
+
* "STRING_VALUE",
|
|
64
|
+
* ],
|
|
65
|
+
* instanceType: "STRING_VALUE",
|
|
66
|
+
* environment: [ // EnvironmentVariables
|
|
67
|
+
* { // KeyValuePair
|
|
68
|
+
* name: "STRING_VALUE",
|
|
69
|
+
* value: "STRING_VALUE",
|
|
70
|
+
* },
|
|
71
|
+
* ],
|
|
72
|
+
* resourceRequirements: [ // ResourceRequirements
|
|
73
|
+
* { // ResourceRequirement
|
|
74
|
+
* value: "STRING_VALUE", // required
|
|
75
|
+
* type: "GPU" || "VCPU" || "MEMORY", // required
|
|
76
|
+
* },
|
|
77
|
+
* ],
|
|
78
|
+
* },
|
|
79
|
+
* nodeOverrides: { // NodeOverrides
|
|
80
|
+
* numNodes: Number("int"),
|
|
81
|
+
* nodePropertyOverrides: [ // NodePropertyOverrides
|
|
82
|
+
* { // NodePropertyOverride
|
|
83
|
+
* targetNodes: "STRING_VALUE", // required
|
|
84
|
+
* containerOverrides: {
|
|
85
|
+
* vcpus: Number("int"),
|
|
86
|
+
* memory: Number("int"),
|
|
87
|
+
* command: [
|
|
88
|
+
* "STRING_VALUE",
|
|
89
|
+
* ],
|
|
90
|
+
* instanceType: "STRING_VALUE",
|
|
91
|
+
* environment: [
|
|
92
|
+
* {
|
|
93
|
+
* name: "STRING_VALUE",
|
|
94
|
+
* value: "STRING_VALUE",
|
|
95
|
+
* },
|
|
96
|
+
* ],
|
|
97
|
+
* resourceRequirements: [
|
|
98
|
+
* {
|
|
99
|
+
* value: "STRING_VALUE", // required
|
|
100
|
+
* type: "GPU" || "VCPU" || "MEMORY", // required
|
|
101
|
+
* },
|
|
102
|
+
* ],
|
|
103
|
+
* },
|
|
104
|
+
* },
|
|
105
|
+
* ],
|
|
106
|
+
* },
|
|
107
|
+
* retryStrategy: { // RetryStrategy
|
|
108
|
+
* attempts: Number("int"),
|
|
109
|
+
* evaluateOnExit: [ // EvaluateOnExitList
|
|
110
|
+
* { // EvaluateOnExit
|
|
111
|
+
* onStatusReason: "STRING_VALUE",
|
|
112
|
+
* onReason: "STRING_VALUE",
|
|
113
|
+
* onExitCode: "STRING_VALUE",
|
|
114
|
+
* action: "RETRY" || "EXIT", // required
|
|
115
|
+
* },
|
|
116
|
+
* ],
|
|
117
|
+
* },
|
|
118
|
+
* propagateTags: true || false,
|
|
119
|
+
* timeout: { // JobTimeout
|
|
120
|
+
* attemptDurationSeconds: Number("int"),
|
|
121
|
+
* },
|
|
122
|
+
* tags: { // TagrisTagsMap
|
|
123
|
+
* "<keys>": "STRING_VALUE",
|
|
124
|
+
* },
|
|
125
|
+
* eksPropertiesOverride: { // EksPropertiesOverride
|
|
126
|
+
* podProperties: { // EksPodPropertiesOverride
|
|
127
|
+
* containers: [ // EksContainerOverrideList
|
|
128
|
+
* { // EksContainerOverride
|
|
129
|
+
* image: "STRING_VALUE",
|
|
130
|
+
* command: [
|
|
131
|
+
* "STRING_VALUE",
|
|
132
|
+
* ],
|
|
133
|
+
* args: [
|
|
134
|
+
* "STRING_VALUE",
|
|
135
|
+
* ],
|
|
136
|
+
* env: [ // EksContainerEnvironmentVariables
|
|
137
|
+
* { // EksContainerEnvironmentVariable
|
|
138
|
+
* name: "STRING_VALUE", // required
|
|
139
|
+
* value: "STRING_VALUE",
|
|
140
|
+
* },
|
|
141
|
+
* ],
|
|
142
|
+
* resources: { // EksContainerResourceRequirements
|
|
143
|
+
* limits: { // EksLimits
|
|
144
|
+
* "<keys>": "STRING_VALUE",
|
|
145
|
+
* },
|
|
146
|
+
* requests: { // EksRequests
|
|
147
|
+
* "<keys>": "STRING_VALUE",
|
|
148
|
+
* },
|
|
149
|
+
* },
|
|
150
|
+
* },
|
|
151
|
+
* ],
|
|
152
|
+
* metadata: { // EksMetadata
|
|
153
|
+
* labels: { // EksLabelsMap
|
|
154
|
+
* "<keys>": "STRING_VALUE",
|
|
155
|
+
* },
|
|
156
|
+
* },
|
|
157
|
+
* },
|
|
158
|
+
* },
|
|
159
|
+
* };
|
|
41
160
|
* const command = new SubmitJobCommand(input);
|
|
42
161
|
* const response = await client.send(command);
|
|
43
162
|
* ```
|
|
@@ -29,6 +29,12 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
29
29
|
* import { BatchClient, TagResourceCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
30
30
|
* // const { BatchClient, TagResourceCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
31
31
|
* const client = new BatchClient(config);
|
|
32
|
+
* const input = { // TagResourceRequest
|
|
33
|
+
* resourceArn: "STRING_VALUE", // required
|
|
34
|
+
* tags: { // TagrisTagsMap // required
|
|
35
|
+
* "<keys>": "STRING_VALUE",
|
|
36
|
+
* },
|
|
37
|
+
* };
|
|
32
38
|
* const command = new TagResourceCommand(input);
|
|
33
39
|
* const response = await client.send(command);
|
|
34
40
|
* ```
|
|
@@ -28,6 +28,10 @@ export interface TerminateJobCommandOutput extends TerminateJobResponse, __Metad
|
|
|
28
28
|
* import { BatchClient, TerminateJobCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
29
29
|
* // const { BatchClient, TerminateJobCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
30
30
|
* const client = new BatchClient(config);
|
|
31
|
+
* const input = { // TerminateJobRequest
|
|
32
|
+
* jobId: "STRING_VALUE", // required
|
|
33
|
+
* reason: "STRING_VALUE", // required
|
|
34
|
+
* };
|
|
31
35
|
* const command = new TerminateJobCommand(input);
|
|
32
36
|
* const response = await client.send(command);
|
|
33
37
|
* ```
|
|
@@ -26,6 +26,12 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
|
|
|
26
26
|
* import { BatchClient, UntagResourceCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
27
27
|
* // const { BatchClient, UntagResourceCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
28
28
|
* const client = new BatchClient(config);
|
|
29
|
+
* const input = { // UntagResourceRequest
|
|
30
|
+
* resourceArn: "STRING_VALUE", // required
|
|
31
|
+
* tagKeys: [ // TagKeysList // required
|
|
32
|
+
* "STRING_VALUE",
|
|
33
|
+
* ],
|
|
34
|
+
* };
|
|
29
35
|
* const command = new UntagResourceCommand(input);
|
|
30
36
|
* const response = await client.send(command);
|
|
31
37
|
* ```
|
|
@@ -26,6 +26,53 @@ export interface UpdateComputeEnvironmentCommandOutput extends UpdateComputeEnvi
|
|
|
26
26
|
* import { BatchClient, UpdateComputeEnvironmentCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
27
27
|
* // const { BatchClient, UpdateComputeEnvironmentCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
28
28
|
* const client = new BatchClient(config);
|
|
29
|
+
* const input = { // UpdateComputeEnvironmentRequest
|
|
30
|
+
* computeEnvironment: "STRING_VALUE", // required
|
|
31
|
+
* state: "ENABLED" || "DISABLED",
|
|
32
|
+
* unmanagedvCpus: Number("int"),
|
|
33
|
+
* computeResources: { // ComputeResourceUpdate
|
|
34
|
+
* minvCpus: Number("int"),
|
|
35
|
+
* maxvCpus: Number("int"),
|
|
36
|
+
* desiredvCpus: Number("int"),
|
|
37
|
+
* subnets: [ // StringList
|
|
38
|
+
* "STRING_VALUE",
|
|
39
|
+
* ],
|
|
40
|
+
* securityGroupIds: [
|
|
41
|
+
* "STRING_VALUE",
|
|
42
|
+
* ],
|
|
43
|
+
* allocationStrategy: "BEST_FIT_PROGRESSIVE" || "SPOT_CAPACITY_OPTIMIZED",
|
|
44
|
+
* instanceTypes: [
|
|
45
|
+
* "STRING_VALUE",
|
|
46
|
+
* ],
|
|
47
|
+
* ec2KeyPair: "STRING_VALUE",
|
|
48
|
+
* instanceRole: "STRING_VALUE",
|
|
49
|
+
* tags: { // TagsMap
|
|
50
|
+
* "<keys>": "STRING_VALUE",
|
|
51
|
+
* },
|
|
52
|
+
* placementGroup: "STRING_VALUE",
|
|
53
|
+
* bidPercentage: Number("int"),
|
|
54
|
+
* launchTemplate: { // LaunchTemplateSpecification
|
|
55
|
+
* launchTemplateId: "STRING_VALUE",
|
|
56
|
+
* launchTemplateName: "STRING_VALUE",
|
|
57
|
+
* version: "STRING_VALUE",
|
|
58
|
+
* },
|
|
59
|
+
* ec2Configuration: [ // Ec2ConfigurationList
|
|
60
|
+
* { // Ec2Configuration
|
|
61
|
+
* imageType: "STRING_VALUE", // required
|
|
62
|
+
* imageIdOverride: "STRING_VALUE",
|
|
63
|
+
* imageKubernetesVersion: "STRING_VALUE",
|
|
64
|
+
* },
|
|
65
|
+
* ],
|
|
66
|
+
* updateToLatestImageVersion: true || false,
|
|
67
|
+
* type: "EC2" || "SPOT" || "FARGATE" || "FARGATE_SPOT",
|
|
68
|
+
* imageId: "STRING_VALUE",
|
|
69
|
+
* },
|
|
70
|
+
* serviceRole: "STRING_VALUE",
|
|
71
|
+
* updatePolicy: { // UpdatePolicy
|
|
72
|
+
* terminateJobsOnUpdate: true || false,
|
|
73
|
+
* jobExecutionTimeoutMinutes: Number("long"),
|
|
74
|
+
* },
|
|
75
|
+
* };
|
|
29
76
|
* const command = new UpdateComputeEnvironmentCommand(input);
|
|
30
77
|
* const response = await client.send(command);
|
|
31
78
|
* ```
|
|
@@ -26,6 +26,18 @@ export interface UpdateJobQueueCommandOutput extends UpdateJobQueueResponse, __M
|
|
|
26
26
|
* import { BatchClient, UpdateJobQueueCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
27
27
|
* // const { BatchClient, UpdateJobQueueCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
28
28
|
* const client = new BatchClient(config);
|
|
29
|
+
* const input = { // UpdateJobQueueRequest
|
|
30
|
+
* jobQueue: "STRING_VALUE", // required
|
|
31
|
+
* state: "ENABLED" || "DISABLED",
|
|
32
|
+
* schedulingPolicyArn: "STRING_VALUE",
|
|
33
|
+
* priority: Number("int"),
|
|
34
|
+
* computeEnvironmentOrder: [ // ComputeEnvironmentOrders
|
|
35
|
+
* { // ComputeEnvironmentOrder
|
|
36
|
+
* order: Number("int"), // required
|
|
37
|
+
* computeEnvironment: "STRING_VALUE", // required
|
|
38
|
+
* },
|
|
39
|
+
* ],
|
|
40
|
+
* };
|
|
29
41
|
* const command = new UpdateJobQueueCommand(input);
|
|
30
42
|
* const response = await client.send(command);
|
|
31
43
|
* ```
|
|
@@ -26,6 +26,19 @@ export interface UpdateSchedulingPolicyCommandOutput extends UpdateSchedulingPol
|
|
|
26
26
|
* import { BatchClient, UpdateSchedulingPolicyCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
27
27
|
* // const { BatchClient, UpdateSchedulingPolicyCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
28
28
|
* const client = new BatchClient(config);
|
|
29
|
+
* const input = { // UpdateSchedulingPolicyRequest
|
|
30
|
+
* arn: "STRING_VALUE", // required
|
|
31
|
+
* fairsharePolicy: { // FairsharePolicy
|
|
32
|
+
* shareDecaySeconds: Number("int"),
|
|
33
|
+
* computeReservation: Number("int"),
|
|
34
|
+
* shareDistribution: [ // ShareAttributesList
|
|
35
|
+
* { // ShareAttributes
|
|
36
|
+
* shareIdentifier: "STRING_VALUE", // required
|
|
37
|
+
* weightFactor: Number("float"),
|
|
38
|
+
* },
|
|
39
|
+
* ],
|
|
40
|
+
* },
|
|
41
|
+
* };
|
|
29
42
|
* const command = new UpdateSchedulingPolicyCommand(input);
|
|
30
43
|
* const response = await client.send(command);
|
|
31
44
|
* ```
|
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.
|
|
4
|
+
"version": "3.301.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,9 +21,9 @@
|
|
|
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.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.301.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.300.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.301.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.296.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.296.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.296.0",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"@aws-sdk/middleware-host-header": "3.296.0",
|
|
33
33
|
"@aws-sdk/middleware-logger": "3.296.0",
|
|
34
34
|
"@aws-sdk/middleware-recursion-detection": "3.296.0",
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.300.0",
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.296.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.299.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.296.0",
|
|
39
39
|
"@aws-sdk/middleware-user-agent": "3.299.0",
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.300.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.296.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.296.0",
|
|
43
43
|
"@aws-sdk/smithy-client": "3.296.0",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.295.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.295.0",
|
|
49
49
|
"@aws-sdk/util-defaults-mode-browser": "3.296.0",
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.300.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.296.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.296.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.299.0",
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.300.0",
|
|
55
55
|
"@aws-sdk/util-utf8": "3.295.0",
|
|
56
56
|
"tslib": "^2.5.0"
|
|
57
57
|
},
|