@aws-sdk/client-batch 3.39.0 → 3.43.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 (80) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +2 -2
  3. package/dist-cjs/Batch.js +75 -0
  4. package/dist-cjs/commands/CreateSchedulingPolicyCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteSchedulingPolicyCommand.js +36 -0
  6. package/dist-cjs/commands/DescribeSchedulingPoliciesCommand.js +36 -0
  7. package/dist-cjs/commands/ListSchedulingPoliciesCommand.js +36 -0
  8. package/dist-cjs/commands/UpdateSchedulingPolicyCommand.js +36 -0
  9. package/dist-cjs/commands/index.js +5 -0
  10. package/dist-cjs/endpoints.js +140 -23
  11. package/dist-cjs/models/models_0.js +87 -3
  12. package/dist-cjs/pagination/ListSchedulingPoliciesPaginator.js +35 -0
  13. package/dist-cjs/pagination/index.js +1 -0
  14. package/dist-cjs/protocols/Aws_restJson1.js +509 -1
  15. package/dist-cjs/runtimeConfig.browser.js +6 -3
  16. package/dist-cjs/runtimeConfig.js +5 -3
  17. package/dist-es/Batch.js +75 -0
  18. package/dist-es/commands/CreateSchedulingPolicyCommand.js +39 -0
  19. package/dist-es/commands/DeleteSchedulingPolicyCommand.js +39 -0
  20. package/dist-es/commands/DescribeSchedulingPoliciesCommand.js +39 -0
  21. package/dist-es/commands/ListSchedulingPoliciesCommand.js +39 -0
  22. package/dist-es/commands/UpdateSchedulingPolicyCommand.js +39 -0
  23. package/dist-es/commands/index.js +5 -0
  24. package/dist-es/endpoints.js +140 -23
  25. package/dist-es/models/models_0.js +56 -0
  26. package/dist-es/pagination/ListSchedulingPoliciesPaginator.js +74 -0
  27. package/dist-es/pagination/index.js +1 -0
  28. package/dist-es/protocols/Aws_restJson1.js +584 -13
  29. package/dist-es/runtimeConfig.browser.js +3 -2
  30. package/dist-es/runtimeConfig.js +3 -3
  31. package/dist-types/Batch.d.ts +50 -12
  32. package/dist-types/BatchClient.d.ts +17 -4
  33. package/dist-types/commands/CancelJobCommand.d.ts +1 -1
  34. package/dist-types/commands/CreateComputeEnvironmentCommand.d.ts +5 -6
  35. package/dist-types/commands/CreateJobQueueCommand.d.ts +1 -1
  36. package/dist-types/commands/CreateSchedulingPolicyCommand.d.ts +35 -0
  37. package/dist-types/commands/DeleteComputeEnvironmentCommand.d.ts +1 -1
  38. package/dist-types/commands/DeleteJobQueueCommand.d.ts +1 -1
  39. package/dist-types/commands/DeleteSchedulingPolicyCommand.d.ts +36 -0
  40. package/dist-types/commands/DeregisterJobDefinitionCommand.d.ts +1 -1
  41. package/dist-types/commands/DescribeComputeEnvironmentsCommand.d.ts +1 -1
  42. package/dist-types/commands/DescribeJobDefinitionsCommand.d.ts +1 -1
  43. package/dist-types/commands/DescribeJobQueuesCommand.d.ts +1 -1
  44. package/dist-types/commands/DescribeJobsCommand.d.ts +1 -1
  45. package/dist-types/commands/DescribeSchedulingPoliciesCommand.d.ts +35 -0
  46. package/dist-types/commands/ListJobsCommand.d.ts +1 -1
  47. package/dist-types/commands/ListSchedulingPoliciesCommand.d.ts +35 -0
  48. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -3
  49. package/dist-types/commands/RegisterJobDefinitionCommand.d.ts +1 -1
  50. package/dist-types/commands/SubmitJobCommand.d.ts +5 -2
  51. package/dist-types/commands/TagResourceCommand.d.ts +3 -3
  52. package/dist-types/commands/TerminateJobCommand.d.ts +1 -1
  53. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  54. package/dist-types/commands/UpdateComputeEnvironmentCommand.d.ts +1 -1
  55. package/dist-types/commands/UpdateJobQueueCommand.d.ts +1 -1
  56. package/dist-types/commands/UpdateSchedulingPolicyCommand.d.ts +35 -0
  57. package/dist-types/commands/index.d.ts +5 -0
  58. package/dist-types/models/models_0.d.ts +455 -114
  59. package/dist-types/pagination/ListSchedulingPoliciesPaginator.d.ts +4 -0
  60. package/dist-types/pagination/index.d.ts +1 -0
  61. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  62. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  63. package/dist-types/runtimeConfig.d.ts +2 -0
  64. package/dist-types/runtimeConfig.native.d.ts +2 -0
  65. package/dist-types/ts3.4/Batch.d.ts +25 -0
  66. package/dist-types/ts3.4/BatchClient.d.ts +11 -2
  67. package/dist-types/ts3.4/commands/CreateSchedulingPolicyCommand.d.ts +17 -0
  68. package/dist-types/ts3.4/commands/DeleteSchedulingPolicyCommand.d.ts +17 -0
  69. package/dist-types/ts3.4/commands/DescribeSchedulingPoliciesCommand.d.ts +17 -0
  70. package/dist-types/ts3.4/commands/ListSchedulingPoliciesCommand.d.ts +17 -0
  71. package/dist-types/ts3.4/commands/UpdateSchedulingPolicyCommand.d.ts +17 -0
  72. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  73. package/dist-types/ts3.4/models/models_0.d.ts +164 -0
  74. package/dist-types/ts3.4/pagination/ListSchedulingPoliciesPaginator.d.ts +4 -0
  75. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  76. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
  77. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  78. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  79. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  80. package/package.json +23 -23
@@ -9,10 +9,13 @@ export interface SubmitJobCommandOutput extends SubmitJobResponse, __MetadataBea
9
9
  /**
10
10
  * <p>Submits an Batch job from a job definition. Parameters that are specified during <a>SubmitJob</a>
11
11
  * override parameters defined in the job definition. vCPU and memory requirements that are specified in the
12
- * <code>ResourceRequirements</code> objects in the job definition are the exception. They can't be overridden this way
12
+ * <code>resourceRequirements</code> objects in the job definition are the exception. They can't be overridden this way
13
13
  * using the <code>memory</code> and <code>vcpus</code> parameters. Rather, you must specify updates to job definition
14
14
  * parameters in a <code>ResourceRequirements</code> object that's included in the <code>containerOverrides</code>
15
15
  * parameter.</p>
16
+ * <note>
17
+ * <p>Job queues with a scheduling policy are limited to 500 active fair share identifiers at a time. </p>
18
+ * </note>
16
19
  * <important>
17
20
  * <p>Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. This is because, after 14
18
21
  * days, Fargate resources might become unavailable and job might be terminated.</p>
@@ -29,7 +32,7 @@ export interface SubmitJobCommandOutput extends SubmitJobResponse, __MetadataBea
29
32
  *
30
33
  * @see {@link SubmitJobCommandInput} for command's `input` shape.
31
34
  * @see {@link SubmitJobCommandOutput} for command's `response` shape.
32
- * @see {@link BatchClientResolvedConfig | config} for command's `input` shape.
35
+ * @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
33
36
  *
34
37
  */
35
38
  export declare class SubmitJobCommand extends $Command<SubmitJobCommandInput, SubmitJobCommandOutput, BatchClientResolvedConfig> {
@@ -9,8 +9,8 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
9
9
  /**
10
10
  * <p>Associates the specified tags to a resource with the specified <code>resourceArn</code>. If existing tags on a
11
11
  * resource aren't specified in the request parameters, they aren't changed. When a resource is deleted, the tags that
12
- * are associated with that resource are deleted as well. Batch resources that support tags are compute environments, jobs, job definitions, and job
13
- * queues. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.</p>
12
+ * are associated with that resource are deleted as well. Batch resources that support tags are compute environments, jobs, job definitions, job queues,
13
+ * and scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs are not supported.</p>
14
14
  * @example
15
15
  * Use a bare-bones client and the command you need to make an API call.
16
16
  * ```javascript
@@ -23,7 +23,7 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
23
23
  *
24
24
  * @see {@link TagResourceCommandInput} for command's `input` shape.
25
25
  * @see {@link TagResourceCommandOutput} for command's `response` shape.
26
- * @see {@link BatchClientResolvedConfig | config} for command's `input` shape.
26
+ * @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
27
27
  *
28
28
  */
29
29
  export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, BatchClientResolvedConfig> {
@@ -22,7 +22,7 @@ export interface TerminateJobCommandOutput extends TerminateJobResponse, __Metad
22
22
  *
23
23
  * @see {@link TerminateJobCommandInput} for command's `input` shape.
24
24
  * @see {@link TerminateJobCommandOutput} for command's `response` shape.
25
- * @see {@link BatchClientResolvedConfig | config} for command's `input` shape.
25
+ * @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
26
26
  *
27
27
  */
28
28
  export declare class TerminateJobCommand extends $Command<TerminateJobCommandInput, TerminateJobCommandOutput, BatchClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
20
20
  *
21
21
  * @see {@link UntagResourceCommandInput} for command's `input` shape.
22
22
  * @see {@link UntagResourceCommandOutput} for command's `response` shape.
23
- * @see {@link BatchClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, BatchClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface UpdateComputeEnvironmentCommandOutput extends UpdateComputeEnvi
20
20
  *
21
21
  * @see {@link UpdateComputeEnvironmentCommandInput} for command's `input` shape.
22
22
  * @see {@link UpdateComputeEnvironmentCommandOutput} for command's `response` shape.
23
- * @see {@link BatchClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class UpdateComputeEnvironmentCommand extends $Command<UpdateComputeEnvironmentCommandInput, UpdateComputeEnvironmentCommandOutput, BatchClientResolvedConfig> {
@@ -20,7 +20,7 @@ export interface UpdateJobQueueCommandOutput extends UpdateJobQueueResponse, __M
20
20
  *
21
21
  * @see {@link UpdateJobQueueCommandInput} for command's `input` shape.
22
22
  * @see {@link UpdateJobQueueCommandOutput} for command's `response` shape.
23
- * @see {@link BatchClientResolvedConfig | config} for command's `input` shape.
23
+ * @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
24
24
  *
25
25
  */
26
26
  export declare class UpdateJobQueueCommand extends $Command<UpdateJobQueueCommandInput, UpdateJobQueueCommandOutput, BatchClientResolvedConfig> {
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BatchClient";
4
+ import { UpdateSchedulingPolicyRequest, UpdateSchedulingPolicyResponse } from "../models/models_0";
5
+ export interface UpdateSchedulingPolicyCommandInput extends UpdateSchedulingPolicyRequest {
6
+ }
7
+ export interface UpdateSchedulingPolicyCommandOutput extends UpdateSchedulingPolicyResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Updates a scheduling policy.</p>
11
+ * @example
12
+ * Use a bare-bones client and the command you need to make an API call.
13
+ * ```javascript
14
+ * import { BatchClient, UpdateSchedulingPolicyCommand } from "@aws-sdk/client-batch"; // ES Modules import
15
+ * // const { BatchClient, UpdateSchedulingPolicyCommand } = require("@aws-sdk/client-batch"); // CommonJS import
16
+ * const client = new BatchClient(config);
17
+ * const command = new UpdateSchedulingPolicyCommand(input);
18
+ * const response = await client.send(command);
19
+ * ```
20
+ *
21
+ * @see {@link UpdateSchedulingPolicyCommandInput} for command's `input` shape.
22
+ * @see {@link UpdateSchedulingPolicyCommandOutput} for command's `response` shape.
23
+ * @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
24
+ *
25
+ */
26
+ export declare class UpdateSchedulingPolicyCommand extends $Command<UpdateSchedulingPolicyCommandInput, UpdateSchedulingPolicyCommandOutput, BatchClientResolvedConfig> {
27
+ readonly input: UpdateSchedulingPolicyCommandInput;
28
+ constructor(input: UpdateSchedulingPolicyCommandInput);
29
+ /**
30
+ * @internal
31
+ */
32
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BatchClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateSchedulingPolicyCommandInput, UpdateSchedulingPolicyCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -1,14 +1,18 @@
1
1
  export * from "./CancelJobCommand";
2
2
  export * from "./CreateComputeEnvironmentCommand";
3
3
  export * from "./CreateJobQueueCommand";
4
+ export * from "./CreateSchedulingPolicyCommand";
4
5
  export * from "./DeleteComputeEnvironmentCommand";
5
6
  export * from "./DeleteJobQueueCommand";
7
+ export * from "./DeleteSchedulingPolicyCommand";
6
8
  export * from "./DeregisterJobDefinitionCommand";
7
9
  export * from "./DescribeComputeEnvironmentsCommand";
8
10
  export * from "./DescribeJobDefinitionsCommand";
9
11
  export * from "./DescribeJobQueuesCommand";
10
12
  export * from "./DescribeJobsCommand";
13
+ export * from "./DescribeSchedulingPoliciesCommand";
11
14
  export * from "./ListJobsCommand";
15
+ export * from "./ListSchedulingPoliciesCommand";
12
16
  export * from "./ListTagsForResourceCommand";
13
17
  export * from "./RegisterJobDefinitionCommand";
14
18
  export * from "./SubmitJobCommand";
@@ -17,3 +21,4 @@ export * from "./TerminateJobCommand";
17
21
  export * from "./UntagResourceCommand";
18
22
  export * from "./UpdateComputeEnvironmentCommand";
19
23
  export * from "./UpdateJobQueueCommand";
24
+ export * from "./UpdateSchedulingPolicyCommand";