@aws-sdk/client-batch 3.774.0 → 3.777.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 (41) hide show
  1. package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
  2. package/dist-cjs/index.js +24 -18
  3. package/dist-es/BatchClient.js +2 -1
  4. package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
  5. package/dist-es/endpoint/EndpointParameters.js +2 -3
  6. package/dist-es/models/models_0.js +5 -0
  7. package/dist-es/runtimeExtensions.js +2 -14
  8. package/dist-types/commands/CancelJobCommand.d.ts +8 -5
  9. package/dist-types/commands/CreateComputeEnvironmentCommand.d.ts +44 -45
  10. package/dist-types/commands/CreateConsumableResourceCommand.d.ts +11 -11
  11. package/dist-types/commands/CreateJobQueueCommand.d.ts +22 -23
  12. package/dist-types/commands/CreateSchedulingPolicyCommand.d.ts +1 -0
  13. package/dist-types/commands/DeleteComputeEnvironmentCommand.d.ts +7 -4
  14. package/dist-types/commands/DeleteConsumableResourceCommand.d.ts +7 -4
  15. package/dist-types/commands/DeleteJobQueueCommand.d.ts +7 -4
  16. package/dist-types/commands/DeleteSchedulingPolicyCommand.d.ts +1 -0
  17. package/dist-types/commands/DeregisterJobDefinitionCommand.d.ts +7 -4
  18. package/dist-types/commands/DescribeComputeEnvironmentsCommand.d.ts +26 -26
  19. package/dist-types/commands/DescribeConsumableResourceCommand.d.ts +14 -14
  20. package/dist-types/commands/DescribeJobDefinitionsCommand.d.ts +40 -24
  21. package/dist-types/commands/DescribeJobQueuesCommand.d.ts +14 -14
  22. package/dist-types/commands/DescribeJobsCommand.d.ts +44 -28
  23. package/dist-types/commands/DescribeSchedulingPoliciesCommand.d.ts +1 -0
  24. package/dist-types/commands/GetJobQueueSnapshotCommand.d.ts +1 -0
  25. package/dist-types/commands/ListConsumableResourcesCommand.d.ts +13 -13
  26. package/dist-types/commands/ListJobsByConsumableResourceCommand.d.ts +20 -20
  27. package/dist-types/commands/ListJobsCommand.d.ts +13 -14
  28. package/dist-types/commands/ListSchedulingPoliciesCommand.d.ts +1 -0
  29. package/dist-types/commands/ListTagsForResourceCommand.d.ts +8 -8
  30. package/dist-types/commands/RegisterJobDefinitionCommand.d.ts +58 -43
  31. package/dist-types/commands/SubmitJobCommand.d.ts +9 -9
  32. package/dist-types/commands/TagResourceCommand.d.ts +9 -6
  33. package/dist-types/commands/TerminateJobCommand.d.ts +8 -5
  34. package/dist-types/commands/UntagResourceCommand.d.ts +8 -5
  35. package/dist-types/commands/UpdateComputeEnvironmentCommand.d.ts +7 -7
  36. package/dist-types/commands/UpdateConsumableResourceCommand.d.ts +9 -9
  37. package/dist-types/commands/UpdateJobQueueCommand.d.ts +7 -7
  38. package/dist-types/commands/UpdateSchedulingPolicyCommand.d.ts +1 -0
  39. package/dist-types/models/models_0.d.ts +127 -45
  40. package/dist-types/ts3.4/models/models_0.d.ts +17 -0
  41. package/package.json +33 -33
@@ -40,8 +40,6 @@ const defaultBatchHttpAuthSchemeProvider = (authParameters) => {
40
40
  exports.defaultBatchHttpAuthSchemeProvider = defaultBatchHttpAuthSchemeProvider;
41
41
  const resolveHttpAuthSchemeConfig = (config) => {
42
42
  const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
43
- return {
44
- ...config_0,
45
- };
43
+ return Object.assign(config_0, {});
46
44
  };
47
45
  exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
package/dist-cjs/index.js CHANGED
@@ -52,6 +52,7 @@ __export(index_exports, {
52
52
  DeviceCgroupPermission: () => DeviceCgroupPermission,
53
53
  EFSAuthorizationConfigIAM: () => EFSAuthorizationConfigIAM,
54
54
  EFSTransitEncryption: () => EFSTransitEncryption,
55
+ FirelensConfigurationType: () => FirelensConfigurationType,
55
56
  GetJobQueueSnapshotCommand: () => GetJobQueueSnapshotCommand,
56
57
  JQState: () => JQState,
57
58
  JQStatus: () => JQStatus,
@@ -105,12 +106,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
105
106
 
106
107
  // src/endpoint/EndpointParameters.ts
107
108
  var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
108
- return {
109
- ...options,
109
+ return Object.assign(options, {
110
110
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
111
111
  useFipsEndpoint: options.useFipsEndpoint ?? false,
112
112
  defaultSigningName: "batch"
113
- };
113
+ });
114
114
  }, "resolveClientEndpointParameters");
115
115
  var commonParams = {
116
116
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -167,22 +167,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
167
167
  }, "resolveHttpAuthRuntimeConfig");
168
168
 
169
169
  // src/runtimeExtensions.ts
170
- var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
171
170
  var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
172
- const extensionConfiguration = {
173
- ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
174
- ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
175
- ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
176
- ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
177
- };
171
+ const extensionConfiguration = Object.assign(
172
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
173
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
174
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
175
+ getHttpAuthExtensionConfiguration(runtimeConfig)
176
+ );
178
177
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
179
- return {
180
- ...runtimeConfig,
181
- ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
182
- ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
183
- ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
184
- ...resolveHttpAuthRuntimeConfig(extensionConfiguration)
185
- };
178
+ return Object.assign(
179
+ runtimeConfig,
180
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
181
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
182
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
183
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
184
+ );
186
185
  }, "resolveRuntimeExtensions");
187
186
 
188
187
  // src/BatchClient.ts
@@ -196,6 +195,8 @@ var BatchClient = class extends import_smithy_client.Client {
196
195
  config;
197
196
  constructor(...[configuration]) {
198
197
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
198
+ super(_config_0);
199
+ this.initConfig = _config_0;
199
200
  const _config_1 = resolveClientEndpointParameters(_config_0);
200
201
  const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
201
202
  const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
@@ -204,7 +205,6 @@ var BatchClient = class extends import_smithy_client.Client {
204
205
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
205
206
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
206
207
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
207
- super(_config_8);
208
208
  this.config = _config_8;
209
209
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
210
210
  this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
@@ -354,6 +354,7 @@ var DeviceCgroupPermission = {
354
354
  WRITE: "WRITE"
355
355
  };
356
356
  var LogDriver = {
357
+ AWSFIRELENS: "awsfirelens",
357
358
  AWSLOGS: "awslogs",
358
359
  FLUENTD: "fluentd",
359
360
  GELF: "gelf",
@@ -375,6 +376,10 @@ var EFSTransitEncryption = {
375
376
  DISABLED: "DISABLED",
376
377
  ENABLED: "ENABLED"
377
378
  };
379
+ var FirelensConfigurationType = {
380
+ FLUENTBIT: "fluentbit",
381
+ FLUENTD: "fluentd"
382
+ };
378
383
  var PlatformCapability = {
379
384
  EC2: "EC2",
380
385
  FARGATE: "FARGATE"
@@ -2168,6 +2173,7 @@ var paginateListSchedulingPolicies = (0, import_core.createPaginator)(BatchClien
2168
2173
  ResourceType,
2169
2174
  EFSAuthorizationConfigIAM,
2170
2175
  EFSTransitEncryption,
2176
+ FirelensConfigurationType,
2171
2177
  PlatformCapability,
2172
2178
  RetryAction,
2173
2179
  JQStatus,
@@ -17,6 +17,8 @@ export class BatchClient extends __Client {
17
17
  config;
18
18
  constructor(...[configuration]) {
19
19
  const _config_0 = __getRuntimeConfig(configuration || {});
20
+ super(_config_0);
21
+ this.initConfig = _config_0;
20
22
  const _config_1 = resolveClientEndpointParameters(_config_0);
21
23
  const _config_2 = resolveUserAgentConfig(_config_1);
22
24
  const _config_3 = resolveRetryConfig(_config_2);
@@ -25,7 +27,6 @@ export class BatchClient extends __Client {
25
27
  const _config_6 = resolveEndpointConfig(_config_5);
26
28
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
27
29
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
28
- super(_config_8);
29
30
  this.config = _config_8;
30
31
  this.middlewareStack.use(getUserAgentPlugin(this.config));
31
32
  this.middlewareStack.use(getRetryPlugin(this.config));
@@ -35,7 +35,5 @@ export const defaultBatchHttpAuthSchemeProvider = (authParameters) => {
35
35
  };
36
36
  export const resolveHttpAuthSchemeConfig = (config) => {
37
37
  const config_0 = resolveAwsSdkSigV4Config(config);
38
- return {
39
- ...config_0,
40
- };
38
+ return Object.assign(config_0, {});
41
39
  };
@@ -1,10 +1,9 @@
1
1
  export const resolveClientEndpointParameters = (options) => {
2
- return {
3
- ...options,
2
+ return Object.assign(options, {
4
3
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
5
4
  useFipsEndpoint: options.useFipsEndpoint ?? false,
6
5
  defaultSigningName: "batch",
7
- };
6
+ });
8
7
  };
9
8
  export const commonParams = {
10
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -79,6 +79,7 @@ export const DeviceCgroupPermission = {
79
79
  WRITE: "WRITE",
80
80
  };
81
81
  export const LogDriver = {
82
+ AWSFIRELENS: "awsfirelens",
82
83
  AWSLOGS: "awslogs",
83
84
  FLUENTD: "fluentd",
84
85
  GELF: "gelf",
@@ -100,6 +101,10 @@ export const EFSTransitEncryption = {
100
101
  DISABLED: "DISABLED",
101
102
  ENABLED: "ENABLED",
102
103
  };
104
+ export const FirelensConfigurationType = {
105
+ FLUENTBIT: "fluentbit",
106
+ FLUENTD: "fluentd",
107
+ };
103
108
  export const PlatformCapability = {
104
109
  EC2: "EC2",
105
110
  FARGATE: "FARGATE",
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
2
2
  import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
3
3
  import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
4
4
  import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
5
- const asPartial = (t) => t;
6
5
  export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
- const extensionConfiguration = {
8
- ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
9
- ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
10
- ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
11
- ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
12
- };
6
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
13
7
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
14
- return {
15
- ...runtimeConfig,
16
- ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
17
- ...resolveDefaultRuntimeConfig(extensionConfiguration),
18
- ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
19
- ...resolveHttpAuthRuntimeConfig(extensionConfiguration),
20
- };
8
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
21
9
  };
@@ -73,19 +73,22 @@ declare const CancelJobCommand_base: {
73
73
  * @throws {@link BatchServiceException}
74
74
  * <p>Base exception class for all service exceptions from Batch service.</p>
75
75
  *
76
- * @public
76
+ *
77
77
  * @example To cancel a job
78
78
  * ```javascript
79
79
  * // This example cancels a job with the specified job ID.
80
80
  * const input = {
81
- * "jobId": "1d828f65-7a4d-42e8-996d-3b900ed59dc4",
82
- * "reason": "Cancelling job."
81
+ * jobId: "1d828f65-7a4d-42e8-996d-3b900ed59dc4",
82
+ * reason: "Cancelling job."
83
83
  * };
84
84
  * const command = new CancelJobCommand(input);
85
- * await client.send(command);
86
- * // example id: to-cancel-a-job-1481152314733
85
+ * const response = await client.send(command);
86
+ * /* response is
87
+ * { /* empty *\/ }
88
+ * *\/
87
89
  * ```
88
90
  *
91
+ * @public
89
92
  */
90
93
  export declare class CancelJobCommand extends CancelJobCommand_base {
91
94
  /** @internal type navigation helper, not in runtime. */
@@ -216,97 +216,96 @@ declare const CreateComputeEnvironmentCommand_base: {
216
216
  * @throws {@link BatchServiceException}
217
217
  * <p>Base exception class for all service exceptions from Batch service.</p>
218
218
  *
219
- * @public
219
+ *
220
220
  * @example To create a managed EC2 compute environment
221
221
  * ```javascript
222
222
  * // This example creates a managed compute environment with specific C4 instance types that are launched on demand. The compute environment is called C4OnDemand.
223
223
  * const input = {
224
- * "type": "MANAGED",
225
- * "computeEnvironmentName": "C4OnDemand",
226
- * "computeResources": {
227
- * "type": "EC2",
228
- * "desiredvCpus": 48,
229
- * "ec2KeyPair": "id_rsa",
230
- * "instanceRole": "ecsInstanceRole",
231
- * "instanceTypes": [
224
+ * computeEnvironmentName: "C4OnDemand",
225
+ * computeResources: {
226
+ * desiredvCpus: 48,
227
+ * ec2KeyPair: "id_rsa",
228
+ * instanceRole: "ecsInstanceRole",
229
+ * instanceTypes: [
232
230
  * "c4.large",
233
231
  * "c4.xlarge",
234
232
  * "c4.2xlarge",
235
233
  * "c4.4xlarge",
236
234
  * "c4.8xlarge"
237
235
  * ],
238
- * "maxvCpus": 128,
239
- * "minvCpus": 0,
240
- * "securityGroupIds": [
236
+ * maxvCpus: 128,
237
+ * minvCpus: 0,
238
+ * securityGroupIds: [
241
239
  * "sg-cf5093b2"
242
240
  * ],
243
- * "subnets": [
241
+ * subnets: [
244
242
  * "subnet-220c0e0a",
245
243
  * "subnet-1a95556d",
246
244
  * "subnet-978f6dce"
247
245
  * ],
248
- * "tags": {
249
- * "Name": "Batch Instance - C4OnDemand"
250
- * }
246
+ * tags: {
247
+ * Name: "Batch Instance - C4OnDemand"
248
+ * },
249
+ * type: "EC2"
251
250
  * },
252
- * "serviceRole": "arn:aws:iam::012345678910:role/AWSBatchServiceRole",
253
- * "state": "ENABLED"
251
+ * serviceRole: "arn:aws:iam::012345678910:role/AWSBatchServiceRole",
252
+ * state: "ENABLED",
253
+ * type: "MANAGED"
254
254
  * };
255
255
  * const command = new CreateComputeEnvironmentCommand(input);
256
256
  * const response = await client.send(command);
257
- * /* response ==
257
+ * /* response is
258
258
  * {
259
- * "computeEnvironmentArn": "arn:aws:batch:us-east-1:012345678910:compute-environment/C4OnDemand",
260
- * "computeEnvironmentName": "C4OnDemand"
259
+ * computeEnvironmentArn: "arn:aws:batch:us-east-1:012345678910:compute-environment/C4OnDemand",
260
+ * computeEnvironmentName: "C4OnDemand"
261
261
  * }
262
262
  * *\/
263
- * // example id: to-create-a-managed-ec2-compute-environment-1481152600017
264
263
  * ```
265
264
  *
266
265
  * @example To create a managed EC2 Spot compute environment
267
266
  * ```javascript
268
267
  * // This example creates a managed compute environment with the M4 instance type that is launched when the Spot bid price is at or below 20% of the On-Demand price for the instance type. The compute environment is called M4Spot.
269
268
  * const input = {
270
- * "type": "MANAGED",
271
- * "computeEnvironmentName": "M4Spot",
272
- * "computeResources": {
273
- * "type": "SPOT",
274
- * "bidPercentage": 20,
275
- * "desiredvCpus": 4,
276
- * "ec2KeyPair": "id_rsa",
277
- * "instanceRole": "ecsInstanceRole",
278
- * "instanceTypes": [
269
+ * computeEnvironmentName: "M4Spot",
270
+ * computeResources: {
271
+ * bidPercentage: 20,
272
+ * desiredvCpus: 4,
273
+ * ec2KeyPair: "id_rsa",
274
+ * instanceRole: "ecsInstanceRole",
275
+ * instanceTypes: [
279
276
  * "m4"
280
277
  * ],
281
- * "maxvCpus": 128,
282
- * "minvCpus": 0,
283
- * "securityGroupIds": [
278
+ * maxvCpus: 128,
279
+ * minvCpus: 0,
280
+ * securityGroupIds: [
284
281
  * "sg-cf5093b2"
285
282
  * ],
286
- * "spotIamFleetRole": "arn:aws:iam::012345678910:role/aws-ec2-spot-fleet-role",
287
- * "subnets": [
283
+ * spotIamFleetRole: "arn:aws:iam::012345678910:role/aws-ec2-spot-fleet-role",
284
+ * subnets: [
288
285
  * "subnet-220c0e0a",
289
286
  * "subnet-1a95556d",
290
287
  * "subnet-978f6dce"
291
288
  * ],
292
- * "tags": {
293
- * "Name": "Batch Instance - M4Spot"
294
- * }
289
+ * tags: {
290
+ * Name: "Batch Instance - M4Spot"
291
+ * },
292
+ * type: "SPOT"
295
293
  * },
296
- * "serviceRole": "arn:aws:iam::012345678910:role/AWSBatchServiceRole",
297
- * "state": "ENABLED"
294
+ * serviceRole: "arn:aws:iam::012345678910:role/AWSBatchServiceRole",
295
+ * state: "ENABLED",
296
+ * type: "MANAGED"
298
297
  * };
299
298
  * const command = new CreateComputeEnvironmentCommand(input);
300
299
  * const response = await client.send(command);
301
- * /* response ==
300
+ * /* response is
302
301
  * {
303
- * "computeEnvironmentArn": "arn:aws:batch:us-east-1:012345678910:compute-environment/M4Spot",
304
- * "computeEnvironmentName": "M4Spot"
302
+ * computeEnvironmentArn: "arn:aws:batch:us-east-1:012345678910:compute-environment/M4Spot",
303
+ * computeEnvironmentName: "M4Spot"
305
304
  * }
306
305
  * *\/
307
- * // example id: to-create-a-managed-ec2-spot-compute-environment-1481152844190
308
306
  * ```
309
307
  *
308
+ * @public
310
309
  */
311
310
  export declare class CreateComputeEnvironmentCommand extends CreateComputeEnvironmentCommand_base {
312
311
  /** @internal type navigation helper, not in runtime. */
@@ -68,30 +68,30 @@ declare const CreateConsumableResourceCommand_base: {
68
68
  * @throws {@link BatchServiceException}
69
69
  * <p>Base exception class for all service exceptions from Batch service.</p>
70
70
  *
71
- * @public
71
+ *
72
72
  * @example To create a consumable resource
73
73
  * ```javascript
74
74
  * // Creates a Batch consumable resource.
75
75
  * const input = {
76
- * "consumableResourceName": "myConsumableResource",
77
- * "resourceType": "REPLENISHABLE",
78
- * "tags": {
79
- * "Department": "Engineering",
80
- * "User": "JaneDoe"
76
+ * consumableResourceName: "myConsumableResource",
77
+ * resourceType: "REPLENISHABLE",
78
+ * tags: {
79
+ * Department: "Engineering",
80
+ * User: "JaneDoe"
81
81
  * },
82
- * "totalQuantity": 123
82
+ * totalQuantity: 123
83
83
  * };
84
84
  * const command = new CreateConsumableResourceCommand(input);
85
85
  * const response = await client.send(command);
86
- * /* response ==
86
+ * /* response is
87
87
  * {
88
- * "consumableResourceArn": "arn:aws:batch:us-east-1:012345678910:consumable-resource/myConsumableResource",
89
- * "consumableResourceName": "myConsumableResource"
88
+ * consumableResourceArn: "arn:aws:batch:us-east-1:012345678910:consumable-resource/myConsumableResource",
89
+ * consumableResourceName: "myConsumableResource"
90
90
  * }
91
91
  * *\/
92
- * // example id: to-create-a-consumable-resource-1739494856623
93
92
  * ```
94
93
  *
94
+ * @public
95
95
  */
96
96
  export declare class CreateConsumableResourceCommand extends CreateConsumableResourceCommand_base {
97
97
  /** @internal type navigation helper, not in runtime. */
@@ -89,61 +89,60 @@ declare const CreateJobQueueCommand_base: {
89
89
  * @throws {@link BatchServiceException}
90
90
  * <p>Base exception class for all service exceptions from Batch service.</p>
91
91
  *
92
- * @public
92
+ *
93
93
  * @example To create a job queue with a single compute environment
94
94
  * ```javascript
95
95
  * // This example creates a job queue called LowPriority that uses the M4Spot compute environment.
96
96
  * const input = {
97
- * "computeEnvironmentOrder": [
97
+ * computeEnvironmentOrder: [
98
98
  * {
99
- * "computeEnvironment": "M4Spot",
100
- * "order": 1
99
+ * computeEnvironment: "M4Spot",
100
+ * order: 1
101
101
  * }
102
102
  * ],
103
- * "jobQueueName": "LowPriority",
104
- * "priority": 1,
105
- * "state": "ENABLED"
103
+ * jobQueueName: "LowPriority",
104
+ * priority: 1,
105
+ * state: "ENABLED"
106
106
  * };
107
107
  * const command = new CreateJobQueueCommand(input);
108
108
  * const response = await client.send(command);
109
- * /* response ==
109
+ * /* response is
110
110
  * {
111
- * "jobQueueArn": "arn:aws:batch:us-east-1:012345678910:job-queue/LowPriority",
112
- * "jobQueueName": "LowPriority"
111
+ * jobQueueArn: "arn:aws:batch:us-east-1:012345678910:job-queue/LowPriority",
112
+ * jobQueueName: "LowPriority"
113
113
  * }
114
114
  * *\/
115
- * // example id: to-create-a-job-queue-with-a-single-compute-environment-1481152967946
116
115
  * ```
117
116
  *
118
117
  * @example To create a job queue with multiple compute environments
119
118
  * ```javascript
120
119
  * // This example creates a job queue called HighPriority that uses the C4OnDemand compute environment with an order of 1 and the M4Spot compute environment with an order of 2.
121
120
  * const input = {
122
- * "computeEnvironmentOrder": [
121
+ * computeEnvironmentOrder: [
123
122
  * {
124
- * "computeEnvironment": "C4OnDemand",
125
- * "order": 1
123
+ * computeEnvironment: "C4OnDemand",
124
+ * order: 1
126
125
  * },
127
126
  * {
128
- * "computeEnvironment": "M4Spot",
129
- * "order": 2
127
+ * computeEnvironment: "M4Spot",
128
+ * order: 2
130
129
  * }
131
130
  * ],
132
- * "jobQueueName": "HighPriority",
133
- * "priority": 10,
134
- * "state": "ENABLED"
131
+ * jobQueueName: "HighPriority",
132
+ * priority: 10,
133
+ * state: "ENABLED"
135
134
  * };
136
135
  * const command = new CreateJobQueueCommand(input);
137
136
  * const response = await client.send(command);
138
- * /* response ==
137
+ * /* response is
139
138
  * {
140
- * "jobQueueArn": "arn:aws:batch:us-east-1:012345678910:job-queue/HighPriority",
141
- * "jobQueueName": "HighPriority"
139
+ * jobQueueArn: "arn:aws:batch:us-east-1:012345678910:job-queue/HighPriority",
140
+ * jobQueueName: "HighPriority"
142
141
  * }
143
142
  * *\/
144
- * // example id: to-create-a-job-queue-with-multiple-compute-environments-1481153027051
145
143
  * ```
146
144
  *
145
+ * @public
147
146
  */
148
147
  export declare class CreateJobQueueCommand extends CreateJobQueueCommand_base {
149
148
  /** @internal type navigation helper, not in runtime. */
@@ -76,6 +76,7 @@ declare const CreateSchedulingPolicyCommand_base: {
76
76
  * @throws {@link BatchServiceException}
77
77
  * <p>Base exception class for all service exceptions from Batch service.</p>
78
78
  *
79
+ *
79
80
  * @public
80
81
  */
81
82
  export declare class CreateSchedulingPolicyCommand extends CreateSchedulingPolicyCommand_base {
@@ -66,18 +66,21 @@ declare const DeleteComputeEnvironmentCommand_base: {
66
66
  * @throws {@link BatchServiceException}
67
67
  * <p>Base exception class for all service exceptions from Batch service.</p>
68
68
  *
69
- * @public
69
+ *
70
70
  * @example To delete a compute environment
71
71
  * ```javascript
72
72
  * // This example deletes the P2OnDemand compute environment.
73
73
  * const input = {
74
- * "computeEnvironment": "P2OnDemand"
74
+ * computeEnvironment: "P2OnDemand"
75
75
  * };
76
76
  * const command = new DeleteComputeEnvironmentCommand(input);
77
- * await client.send(command);
78
- * // example id: to-delete-a-compute-environment-1481153105644
77
+ * const response = await client.send(command);
78
+ * /* response is
79
+ * { /* empty *\/ }
80
+ * *\/
79
81
  * ```
80
82
  *
83
+ * @public
81
84
  */
82
85
  export declare class DeleteComputeEnvironmentCommand extends DeleteComputeEnvironmentCommand_base {
83
86
  /** @internal type navigation helper, not in runtime. */
@@ -60,18 +60,21 @@ declare const DeleteConsumableResourceCommand_base: {
60
60
  * @throws {@link BatchServiceException}
61
61
  * <p>Base exception class for all service exceptions from Batch service.</p>
62
62
  *
63
- * @public
63
+ *
64
64
  * @example To delete a consumable resource
65
65
  * ```javascript
66
66
  * // Deletes the specified consumable resource.
67
67
  * const input = {
68
- * "consumableResource": "myConsumableResource"
68
+ * consumableResource: "myConsumableResource"
69
69
  * };
70
70
  * const command = new DeleteConsumableResourceCommand(input);
71
- * await client.send(command);
72
- * // example id: to-delete-a-consumable-resource-1739495667751
71
+ * const response = await client.send(command);
72
+ * /* response is
73
+ * { /* empty *\/ }
74
+ * *\/
73
75
  * ```
74
76
  *
77
+ * @public
75
78
  */
76
79
  export declare class DeleteConsumableResourceCommand extends DeleteConsumableResourceCommand_base {
77
80
  /** @internal type navigation helper, not in runtime. */
@@ -65,18 +65,21 @@ declare const DeleteJobQueueCommand_base: {
65
65
  * @throws {@link BatchServiceException}
66
66
  * <p>Base exception class for all service exceptions from Batch service.</p>
67
67
  *
68
- * @public
68
+ *
69
69
  * @example To delete a job queue
70
70
  * ```javascript
71
71
  * // This example deletes the GPGPU job queue.
72
72
  * const input = {
73
- * "jobQueue": "GPGPU"
73
+ * jobQueue: "GPGPU"
74
74
  * };
75
75
  * const command = new DeleteJobQueueCommand(input);
76
- * await client.send(command);
77
- * // example id: to-delete-a-job-queue-1481153508134
76
+ * const response = await client.send(command);
77
+ * /* response is
78
+ * { /* empty *\/ }
79
+ * *\/
78
80
  * ```
79
81
  *
82
+ * @public
80
83
  */
81
84
  export declare class DeleteJobQueueCommand extends DeleteJobQueueCommand_base {
82
85
  /** @internal type navigation helper, not in runtime. */
@@ -61,6 +61,7 @@ declare const DeleteSchedulingPolicyCommand_base: {
61
61
  * @throws {@link BatchServiceException}
62
62
  * <p>Base exception class for all service exceptions from Batch service.</p>
63
63
  *
64
+ *
64
65
  * @public
65
66
  */
66
67
  export declare class DeleteSchedulingPolicyCommand extends DeleteSchedulingPolicyCommand_base {
@@ -61,18 +61,21 @@ declare const DeregisterJobDefinitionCommand_base: {
61
61
  * @throws {@link BatchServiceException}
62
62
  * <p>Base exception class for all service exceptions from Batch service.</p>
63
63
  *
64
- * @public
64
+ *
65
65
  * @example To deregister a job definition
66
66
  * ```javascript
67
67
  * // This example deregisters a job definition called sleep10.
68
68
  * const input = {
69
- * "jobDefinition": "sleep10"
69
+ * jobDefinition: "sleep10"
70
70
  * };
71
71
  * const command = new DeregisterJobDefinitionCommand(input);
72
- * await client.send(command);
73
- * // example id: to-deregister-a-job-definition-1481153579565
72
+ * const response = await client.send(command);
73
+ * /* response is
74
+ * { /* empty *\/ }
75
+ * *\/
74
76
  * ```
75
77
  *
78
+ * @public
76
79
  */
77
80
  export declare class DeregisterJobDefinitionCommand extends DeregisterJobDefinitionCommand_base {
78
81
  /** @internal type navigation helper, not in runtime. */