From ef2c2a5f9631cabf48c09b3abddf91446b8b3cc2 Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 15 May 2024 18:11:49 +0000 Subject: [PATCH] feat(client-datasync): Task executions now display a CANCELLING status when an execution is in the process of being cancelled. --- .../src/commands/DescribeTaskExecutionCommand.ts | 2 +- .../src/commands/ListTaskExecutionsCommand.ts | 2 +- clients/client-datasync/src/models/models_0.ts | 1 + codegen/sdk-codegen/aws-models/datasync.json | 6 ++++++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/clients/client-datasync/src/commands/DescribeTaskExecutionCommand.ts b/clients/client-datasync/src/commands/DescribeTaskExecutionCommand.ts index 1e88e30a2f198..b6cce59a30cb9 100644 --- a/clients/client-datasync/src/commands/DescribeTaskExecutionCommand.ts +++ b/clients/client-datasync/src/commands/DescribeTaskExecutionCommand.ts @@ -43,7 +43,7 @@ export interface DescribeTaskExecutionCommandOutput extends DescribeTaskExecutio * const response = await client.send(command); * // { // DescribeTaskExecutionResponse * // TaskExecutionArn: "STRING_VALUE", - * // Status: "QUEUED" || "LAUNCHING" || "PREPARING" || "TRANSFERRING" || "VERIFYING" || "SUCCESS" || "ERROR", + * // Status: "QUEUED" || "CANCELLING" || "LAUNCHING" || "PREPARING" || "TRANSFERRING" || "VERIFYING" || "SUCCESS" || "ERROR", * // Options: { // Options * // VerifyMode: "POINT_IN_TIME_CONSISTENT" || "ONLY_FILES_TRANSFERRED" || "NONE", * // OverwriteMode: "ALWAYS" || "NEVER", diff --git a/clients/client-datasync/src/commands/ListTaskExecutionsCommand.ts b/clients/client-datasync/src/commands/ListTaskExecutionsCommand.ts index a97360ce4fcf1..a11be972b571e 100644 --- a/clients/client-datasync/src/commands/ListTaskExecutionsCommand.ts +++ b/clients/client-datasync/src/commands/ListTaskExecutionsCommand.ts @@ -45,7 +45,7 @@ export interface ListTaskExecutionsCommandOutput extends ListTaskExecutionsRespo * // TaskExecutions: [ // TaskExecutionList * // { // TaskExecutionListEntry * // TaskExecutionArn: "STRING_VALUE", - * // Status: "QUEUED" || "LAUNCHING" || "PREPARING" || "TRANSFERRING" || "VERIFYING" || "SUCCESS" || "ERROR", + * // Status: "QUEUED" || "CANCELLING" || "LAUNCHING" || "PREPARING" || "TRANSFERRING" || "VERIFYING" || "SUCCESS" || "ERROR", * // }, * // ], * // NextToken: "STRING_VALUE", diff --git a/clients/client-datasync/src/models/models_0.ts b/clients/client-datasync/src/models/models_0.ts index 63a6350e35ecc..db19efb4acc98 100644 --- a/clients/client-datasync/src/models/models_0.ts +++ b/clients/client-datasync/src/models/models_0.ts @@ -4871,6 +4871,7 @@ export interface TaskExecutionResultDetail { * @enum */ export const TaskExecutionStatus = { + CANCELLING: "CANCELLING", ERROR: "ERROR", LAUNCHING: "LAUNCHING", PREPARING: "PREPARING", diff --git a/codegen/sdk-codegen/aws-models/datasync.json b/codegen/sdk-codegen/aws-models/datasync.json index c07f471e39a23..acc1d89c5aee1 100644 --- a/codegen/sdk-codegen/aws-models/datasync.json +++ b/codegen/sdk-codegen/aws-models/datasync.json @@ -8533,6 +8533,12 @@ "smithy.api#enumValue": "QUEUED" } }, + "CANCELLING": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "CANCELLING" + } + }, "LAUNCHING": { "target": "smithy.api#Unit", "traits": {