@aws-sdk/client-batch 3.855.0 → 3.856.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 (53) hide show
  1. package/README.md +64 -0
  2. package/dist-cjs/index.js +490 -3
  3. package/dist-es/Batch.js +16 -0
  4. package/dist-es/commands/CreateServiceEnvironmentCommand.js +22 -0
  5. package/dist-es/commands/DeleteServiceEnvironmentCommand.js +22 -0
  6. package/dist-es/commands/DescribeServiceEnvironmentsCommand.js +22 -0
  7. package/dist-es/commands/DescribeServiceJobCommand.js +22 -0
  8. package/dist-es/commands/ListServiceJobsCommand.js +22 -0
  9. package/dist-es/commands/SubmitServiceJobCommand.js +22 -0
  10. package/dist-es/commands/TerminateServiceJobCommand.js +22 -0
  11. package/dist-es/commands/UpdateServiceEnvironmentCommand.js +22 -0
  12. package/dist-es/commands/index.js +8 -0
  13. package/dist-es/models/models_0.js +42 -0
  14. package/dist-es/pagination/DescribeServiceEnvironmentsPaginator.js +4 -0
  15. package/dist-es/pagination/ListServiceJobsPaginator.js +4 -0
  16. package/dist-es/pagination/index.js +2 -0
  17. package/dist-es/protocols/Aws_restJson1.js +257 -0
  18. package/dist-types/Batch.d.ts +58 -0
  19. package/dist-types/BatchClient.d.ts +10 -2
  20. package/dist-types/commands/CreateJobQueueCommand.d.ts +9 -2
  21. package/dist-types/commands/CreateServiceEnvironmentCommand.d.ts +92 -0
  22. package/dist-types/commands/DeleteServiceEnvironmentCommand.d.ts +78 -0
  23. package/dist-types/commands/DescribeJobQueuesCommand.d.ts +8 -1
  24. package/dist-types/commands/DescribeServiceEnvironmentsCommand.d.ts +102 -0
  25. package/dist-types/commands/DescribeServiceJobCommand.d.ts +125 -0
  26. package/dist-types/commands/ListServiceJobsCommand.d.ts +111 -0
  27. package/dist-types/commands/SubmitServiceJobCommand.d.ts +103 -0
  28. package/dist-types/commands/TerminateServiceJobCommand.d.ts +79 -0
  29. package/dist-types/commands/UpdateJobQueueCommand.d.ts +7 -1
  30. package/dist-types/commands/UpdateServiceEnvironmentCommand.d.ts +88 -0
  31. package/dist-types/commands/index.d.ts +8 -0
  32. package/dist-types/models/models_0.d.ts +843 -75
  33. package/dist-types/pagination/DescribeServiceEnvironmentsPaginator.d.ts +7 -0
  34. package/dist-types/pagination/ListServiceJobsPaginator.d.ts +7 -0
  35. package/dist-types/pagination/index.d.ts +2 -0
  36. package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
  37. package/dist-types/ts3.4/Batch.d.ts +138 -0
  38. package/dist-types/ts3.4/BatchClient.d.ts +50 -2
  39. package/dist-types/ts3.4/commands/CreateServiceEnvironmentCommand.d.ts +51 -0
  40. package/dist-types/ts3.4/commands/DeleteServiceEnvironmentCommand.d.ts +51 -0
  41. package/dist-types/ts3.4/commands/DescribeServiceEnvironmentsCommand.d.ts +51 -0
  42. package/dist-types/ts3.4/commands/DescribeServiceJobCommand.d.ts +51 -0
  43. package/dist-types/ts3.4/commands/ListServiceJobsCommand.d.ts +50 -0
  44. package/dist-types/ts3.4/commands/SubmitServiceJobCommand.d.ts +50 -0
  45. package/dist-types/ts3.4/commands/TerminateServiceJobCommand.d.ts +51 -0
  46. package/dist-types/ts3.4/commands/UpdateServiceEnvironmentCommand.d.ts +51 -0
  47. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +207 -1
  49. package/dist-types/ts3.4/pagination/DescribeServiceEnvironmentsPaginator.d.ts +11 -0
  50. package/dist-types/ts3.4/pagination/ListServiceJobsPaginator.d.ts +11 -0
  51. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  52. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +96 -0
  53. package/package.json +5 -5
@@ -0,0 +1,79 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BatchClient";
4
+ import { TerminateServiceJobRequest, TerminateServiceJobResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link TerminateServiceJobCommand}.
14
+ */
15
+ export interface TerminateServiceJobCommandInput extends TerminateServiceJobRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link TerminateServiceJobCommand}.
21
+ */
22
+ export interface TerminateServiceJobCommandOutput extends TerminateServiceJobResponse, __MetadataBearer {
23
+ }
24
+ declare const TerminateServiceJobCommand_base: {
25
+ new (input: TerminateServiceJobCommandInput): import("@smithy/smithy-client").CommandImpl<TerminateServiceJobCommandInput, TerminateServiceJobCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: TerminateServiceJobCommandInput): import("@smithy/smithy-client").CommandImpl<TerminateServiceJobCommandInput, TerminateServiceJobCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Terminates a service job in a job queue. </p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BatchClient, TerminateServiceJobCommand } from "@aws-sdk/client-batch"; // ES Modules import
35
+ * // const { BatchClient, TerminateServiceJobCommand } = require("@aws-sdk/client-batch"); // CommonJS import
36
+ * const client = new BatchClient(config);
37
+ * const input = { // TerminateServiceJobRequest
38
+ * jobId: "STRING_VALUE", // required
39
+ * reason: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new TerminateServiceJobCommand(input);
42
+ * const response = await client.send(command);
43
+ * // {};
44
+ *
45
+ * ```
46
+ *
47
+ * @param TerminateServiceJobCommandInput - {@link TerminateServiceJobCommandInput}
48
+ * @returns {@link TerminateServiceJobCommandOutput}
49
+ * @see {@link TerminateServiceJobCommandInput} for command's `input` shape.
50
+ * @see {@link TerminateServiceJobCommandOutput} for command's `response` shape.
51
+ * @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
52
+ *
53
+ * @throws {@link ClientException} (client fault)
54
+ * <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
55
+ * of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
56
+ * that's not valid.</p>
57
+ *
58
+ * @throws {@link ServerException} (server fault)
59
+ * <p>These errors are usually caused by a server issue.</p>
60
+ *
61
+ * @throws {@link BatchServiceException}
62
+ * <p>Base exception class for all service exceptions from Batch service.</p>
63
+ *
64
+ *
65
+ * @public
66
+ */
67
+ export declare class TerminateServiceJobCommand extends TerminateServiceJobCommand_base {
68
+ /** @internal type navigation helper, not in runtime. */
69
+ protected static __types: {
70
+ api: {
71
+ input: TerminateServiceJobRequest;
72
+ output: {};
73
+ };
74
+ sdk: {
75
+ input: TerminateServiceJobCommandInput;
76
+ output: TerminateServiceJobCommandOutput;
77
+ };
78
+ };
79
+ }
@@ -45,12 +45,18 @@ declare const UpdateJobQueueCommand_base: {
45
45
  * computeEnvironment: "STRING_VALUE", // required
46
46
  * },
47
47
  * ],
48
+ * serviceEnvironmentOrder: [ // ServiceEnvironmentOrders
49
+ * { // ServiceEnvironmentOrder
50
+ * order: Number("int"), // required
51
+ * serviceEnvironment: "STRING_VALUE", // required
52
+ * },
53
+ * ],
48
54
  * jobStateTimeLimitActions: [ // JobStateTimeLimitActions
49
55
  * { // JobStateTimeLimitAction
50
56
  * reason: "STRING_VALUE", // required
51
57
  * state: "RUNNABLE", // required
52
58
  * maxTimeSeconds: Number("int"), // required
53
- * action: "CANCEL", // required
59
+ * action: "CANCEL" || "TERMINATE", // required
54
60
  * },
55
61
  * ],
56
62
  * };
@@ -0,0 +1,88 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BatchClient";
4
+ import { UpdateServiceEnvironmentRequest, UpdateServiceEnvironmentResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateServiceEnvironmentCommand}.
14
+ */
15
+ export interface UpdateServiceEnvironmentCommandInput extends UpdateServiceEnvironmentRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateServiceEnvironmentCommand}.
21
+ */
22
+ export interface UpdateServiceEnvironmentCommandOutput extends UpdateServiceEnvironmentResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateServiceEnvironmentCommand_base: {
25
+ new (input: UpdateServiceEnvironmentCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateServiceEnvironmentCommandInput, UpdateServiceEnvironmentCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateServiceEnvironmentCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateServiceEnvironmentCommandInput, UpdateServiceEnvironmentCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates a service environment. You can update the state of a service environment from <code>ENABLED</code> to <code>DISABLED</code> to prevent new service jobs from being placed in the service environment.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BatchClient, UpdateServiceEnvironmentCommand } from "@aws-sdk/client-batch"; // ES Modules import
35
+ * // const { BatchClient, UpdateServiceEnvironmentCommand } = require("@aws-sdk/client-batch"); // CommonJS import
36
+ * const client = new BatchClient(config);
37
+ * const input = { // UpdateServiceEnvironmentRequest
38
+ * serviceEnvironment: "STRING_VALUE", // required
39
+ * state: "ENABLED" || "DISABLED",
40
+ * capacityLimits: [ // CapacityLimits
41
+ * { // CapacityLimit
42
+ * maxCapacity: Number("int"),
43
+ * capacityUnit: "STRING_VALUE",
44
+ * },
45
+ * ],
46
+ * };
47
+ * const command = new UpdateServiceEnvironmentCommand(input);
48
+ * const response = await client.send(command);
49
+ * // { // UpdateServiceEnvironmentResponse
50
+ * // serviceEnvironmentName: "STRING_VALUE", // required
51
+ * // serviceEnvironmentArn: "STRING_VALUE", // required
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param UpdateServiceEnvironmentCommandInput - {@link UpdateServiceEnvironmentCommandInput}
57
+ * @returns {@link UpdateServiceEnvironmentCommandOutput}
58
+ * @see {@link UpdateServiceEnvironmentCommandInput} for command's `input` shape.
59
+ * @see {@link UpdateServiceEnvironmentCommandOutput} for command's `response` shape.
60
+ * @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
61
+ *
62
+ * @throws {@link ClientException} (client fault)
63
+ * <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
64
+ * of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
65
+ * that's not valid.</p>
66
+ *
67
+ * @throws {@link ServerException} (server fault)
68
+ * <p>These errors are usually caused by a server issue.</p>
69
+ *
70
+ * @throws {@link BatchServiceException}
71
+ * <p>Base exception class for all service exceptions from Batch service.</p>
72
+ *
73
+ *
74
+ * @public
75
+ */
76
+ export declare class UpdateServiceEnvironmentCommand extends UpdateServiceEnvironmentCommand_base {
77
+ /** @internal type navigation helper, not in runtime. */
78
+ protected static __types: {
79
+ api: {
80
+ input: UpdateServiceEnvironmentRequest;
81
+ output: UpdateServiceEnvironmentResponse;
82
+ };
83
+ sdk: {
84
+ input: UpdateServiceEnvironmentCommandInput;
85
+ output: UpdateServiceEnvironmentCommandOutput;
86
+ };
87
+ };
88
+ }
@@ -3,10 +3,12 @@ export * from "./CreateComputeEnvironmentCommand";
3
3
  export * from "./CreateConsumableResourceCommand";
4
4
  export * from "./CreateJobQueueCommand";
5
5
  export * from "./CreateSchedulingPolicyCommand";
6
+ export * from "./CreateServiceEnvironmentCommand";
6
7
  export * from "./DeleteComputeEnvironmentCommand";
7
8
  export * from "./DeleteConsumableResourceCommand";
8
9
  export * from "./DeleteJobQueueCommand";
9
10
  export * from "./DeleteSchedulingPolicyCommand";
11
+ export * from "./DeleteServiceEnvironmentCommand";
10
12
  export * from "./DeregisterJobDefinitionCommand";
11
13
  export * from "./DescribeComputeEnvironmentsCommand";
12
14
  export * from "./DescribeConsumableResourceCommand";
@@ -14,18 +16,24 @@ export * from "./DescribeJobDefinitionsCommand";
14
16
  export * from "./DescribeJobQueuesCommand";
15
17
  export * from "./DescribeJobsCommand";
16
18
  export * from "./DescribeSchedulingPoliciesCommand";
19
+ export * from "./DescribeServiceEnvironmentsCommand";
20
+ export * from "./DescribeServiceJobCommand";
17
21
  export * from "./GetJobQueueSnapshotCommand";
18
22
  export * from "./ListConsumableResourcesCommand";
19
23
  export * from "./ListJobsByConsumableResourceCommand";
20
24
  export * from "./ListJobsCommand";
21
25
  export * from "./ListSchedulingPoliciesCommand";
26
+ export * from "./ListServiceJobsCommand";
22
27
  export * from "./ListTagsForResourceCommand";
23
28
  export * from "./RegisterJobDefinitionCommand";
24
29
  export * from "./SubmitJobCommand";
30
+ export * from "./SubmitServiceJobCommand";
25
31
  export * from "./TagResourceCommand";
26
32
  export * from "./TerminateJobCommand";
33
+ export * from "./TerminateServiceJobCommand";
27
34
  export * from "./UntagResourceCommand";
28
35
  export * from "./UpdateComputeEnvironmentCommand";
29
36
  export * from "./UpdateConsumableResourceCommand";
30
37
  export * from "./UpdateJobQueueCommand";
31
38
  export * from "./UpdateSchedulingPolicyCommand";
39
+ export * from "./UpdateServiceEnvironmentCommand";