From 6771613c297cad4fbc6bb5d5d111d9db9025fe67 Mon Sep 17 00:00:00 2001 From: awstools Date: Thu, 11 Apr 2024 18:13:51 +0000 Subject: [PATCH] feat(client-batch): This release adds the task properties field to attempt details and the name field on EKS container detail. --- clients/client-batch/README.md | 2 +- clients/client-batch/src/Batch.ts | 2 +- clients/client-batch/src/BatchClient.ts | 2 +- .../src/commands/DescribeJobsCommand.ts | 31 ++- clients/client-batch/src/index.ts | 2 +- clients/client-batch/src/models/models_0.ts | 187 ++++++++++++++---- .../src/protocols/Aws_restJson1.ts | 8 + codegen/sdk-codegen/aws-models/batch.json | 140 ++++++++++--- 8 files changed, 295 insertions(+), 79 deletions(-) diff --git a/clients/client-batch/README.md b/clients/client-batch/README.md index 6f7b50e6f3f26..61914bac6ad3e 100644 --- a/clients/client-batch/README.md +++ b/clients/client-batch/README.md @@ -12,7 +12,7 @@ AWS SDK for JavaScript Batch Client for Node.js, Browser and React Native. developers, scientists, and engineers to access large amounts of compute resources. Batch uses the advantages of the batch computing to remove the undifferentiated heavy lifting of configuring and managing required infrastructure. At the same time, it also adopts a familiar batch computing software approach. You can use Batch to efficiently -provision resources d, and work toward eliminating capacity constraints, reducing your overall compute costs, and +provision resources, and work toward eliminating capacity constraints, reducing your overall compute costs, and delivering results more quickly.

As a fully managed service, Batch can run batch computing workloads of any scale. Batch automatically provisions compute resources and optimizes workload distribution based on the quantity and scale of your specific diff --git a/clients/client-batch/src/Batch.ts b/clients/client-batch/src/Batch.ts index e0a9d201bacc6..46bf147302846 100644 --- a/clients/client-batch/src/Batch.ts +++ b/clients/client-batch/src/Batch.ts @@ -505,7 +505,7 @@ export interface Batch { * developers, scientists, and engineers to access large amounts of compute resources. Batch uses the advantages of * the batch computing to remove the undifferentiated heavy lifting of configuring and managing required infrastructure. * At the same time, it also adopts a familiar batch computing software approach. You can use Batch to efficiently - * provision resources d, and work toward eliminating capacity constraints, reducing your overall compute costs, and + * provision resources, and work toward eliminating capacity constraints, reducing your overall compute costs, and * delivering results more quickly.

*

As a fully managed service, Batch can run batch computing workloads of any scale. Batch automatically * provisions compute resources and optimizes workload distribution based on the quantity and scale of your specific diff --git a/clients/client-batch/src/BatchClient.ts b/clients/client-batch/src/BatchClient.ts index b13c2dc807d53..584fc99a60da8 100644 --- a/clients/client-batch/src/BatchClient.ts +++ b/clients/client-batch/src/BatchClient.ts @@ -362,7 +362,7 @@ export interface BatchClientResolvedConfig extends BatchClientResolvedConfigType * developers, scientists, and engineers to access large amounts of compute resources. Batch uses the advantages of * the batch computing to remove the undifferentiated heavy lifting of configuring and managing required infrastructure. * At the same time, it also adopts a familiar batch computing software approach. You can use Batch to efficiently - * provision resources d, and work toward eliminating capacity constraints, reducing your overall compute costs, and + * provision resources, and work toward eliminating capacity constraints, reducing your overall compute costs, and * delivering results more quickly.

*

As a fully managed service, Batch can run batch computing workloads of any scale. Batch automatically * provisions compute resources and optimizes workload distribution based on the quantity and scale of your specific diff --git a/clients/client-batch/src/commands/DescribeJobsCommand.ts b/clients/client-batch/src/commands/DescribeJobsCommand.ts index 8b8a36233190b..7305a20d1b746 100644 --- a/clients/client-batch/src/commands/DescribeJobsCommand.ts +++ b/clients/client-batch/src/commands/DescribeJobsCommand.ts @@ -70,6 +70,27 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad * // startedAt: Number("long"), * // stoppedAt: Number("long"), * // statusReason: "STRING_VALUE", + * // taskProperties: [ // ListAttemptEcsTaskDetails + * // { // AttemptEcsTaskDetails + * // containerInstanceArn: "STRING_VALUE", + * // taskArn: "STRING_VALUE", + * // containers: [ // ListAttemptTaskContainerDetails + * // { // AttemptTaskContainerDetails + * // exitCode: Number("int"), + * // name: "STRING_VALUE", + * // reason: "STRING_VALUE", + * // logStreamName: "STRING_VALUE", + * // networkInterfaces: [ + * // { + * // attachmentId: "STRING_VALUE", + * // ipv6Address: "STRING_VALUE", + * // privateIpv4Address: "STRING_VALUE", + * // }, + * // ], + * // }, + * // ], + * // }, + * // ], * // }, * // ], * // statusReason: "STRING_VALUE", @@ -153,13 +174,7 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad * // taskArn: "STRING_VALUE", * // logStreamName: "STRING_VALUE", * // instanceType: "STRING_VALUE", - * // networkInterfaces: [ - * // { - * // attachmentId: "STRING_VALUE", - * // ipv6Address: "STRING_VALUE", - * // privateIpv4Address: "STRING_VALUE", - * // }, - * // ], + * // networkInterfaces: "", * // resourceRequirements: [ // ResourceRequirements * // { // ResourceRequirement * // value: "STRING_VALUE", // required @@ -520,12 +535,14 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad * // { // EksAttemptDetail * // containers: [ // EksAttemptContainerDetails * // { // EksAttemptContainerDetail + * // name: "STRING_VALUE", * // exitCode: Number("int"), * // reason: "STRING_VALUE", * // }, * // ], * // initContainers: [ * // { + * // name: "STRING_VALUE", * // exitCode: Number("int"), * // reason: "STRING_VALUE", * // }, diff --git a/clients/client-batch/src/index.ts b/clients/client-batch/src/index.ts index e6e81b0ecb1d5..6cfb27922f81e 100644 --- a/clients/client-batch/src/index.ts +++ b/clients/client-batch/src/index.ts @@ -6,7 +6,7 @@ * developers, scientists, and engineers to access large amounts of compute resources. Batch uses the advantages of * the batch computing to remove the undifferentiated heavy lifting of configuring and managing required infrastructure. * At the same time, it also adopts a familiar batch computing software approach. You can use Batch to efficiently - * provision resources d, and work toward eliminating capacity constraints, reducing your overall compute costs, and + * provision resources, and work toward eliminating capacity constraints, reducing your overall compute costs, and * delivering results more quickly.

*

As a fully managed service, Batch can run batch computing workloads of any scale. Batch automatically * provisions compute resources and optimizes workload distribution based on the quantity and scale of your specific diff --git a/clients/client-batch/src/models/models_0.ts b/clients/client-batch/src/models/models_0.ts index 3c9c658918975..353734d130231 100644 --- a/clients/client-batch/src/models/models_0.ts +++ b/clients/client-batch/src/models/models_0.ts @@ -159,6 +159,69 @@ export interface AttemptContainerDetail { networkInterfaces?: NetworkInterface[]; } +/** + *

An object that represents the details of a container that's part of a job attempt.

+ * @public + */ +export interface AttemptTaskContainerDetails { + /** + *

The exit code for the container’s attempt. A non-zero exit code is considered failed.

+ * @public + */ + exitCode?: number; + + /** + *

The name of a container.

+ * @public + */ + name?: string; + + /** + *

A short (255 max characters) string that's easy to understand and provides additional details for a + * running or stopped container.

+ * @public + */ + reason?: string; + + /** + *

The name of the Amazon CloudWatch Logs log stream that's associated with the container. The log + * group for Batch jobs is /aws/batch/job. Each container attempt receives a log stream name + * when they reach the RUNNING status.

+ * @public + */ + logStreamName?: string; + + /** + *

The network interfaces that are associated with the job attempt.

+ * @public + */ + networkInterfaces?: NetworkInterface[]; +} + +/** + *

An object that represents the details of a task.

+ * @public + */ +export interface AttemptEcsTaskDetails { + /** + *

The Amazon Resource Name (ARN) of the container instance that hosts the task.

+ * @public + */ + containerInstanceArn?: string; + + /** + *

The ARN of the Amazon ECS task.

+ * @public + */ + taskArn?: string; + + /** + *

A list of containers that are included in the taskProperties list.

+ * @public + */ + containers?: AttemptTaskContainerDetails[]; +} + /** *

An object that represents a job attempt.

* @public @@ -191,6 +254,13 @@ export interface AttemptDetail { * @public */ statusReason?: string; + + /** + *

The properties for a task definition that describes the container and volume definitions of + * an Amazon ECS task.

+ * @public + */ + taskProperties?: AttemptEcsTaskDetails[]; } /** @@ -998,7 +1068,7 @@ export interface JobStateTimeLimitAction { reason: string | undefined; /** - *

The state of the job needed to trigger the action. The only supported value is "RUNNABLE".

+ *

The state of the job needed to trigger the action. The only supported value is RUNNABLE.

* @public */ state: JobStateTimeLimitActionsState | undefined; @@ -1012,7 +1082,7 @@ export interface JobStateTimeLimitAction { /** *

The action to take when a job is at the head of the job queue in the specified state for the specified period of - * time. The only supported value is "CANCEL", which will cancel the job.

+ * time. The only supported value is CANCEL, which will cancel the job.

* @public */ action: JobStateTimeLimitActionsAction | undefined; @@ -2820,7 +2890,9 @@ export interface TaskContainerDependency { *