Skip to content

Commit 02eab1f

Browse files
author
awstools
committed
feat(client-datasync): This change allows users to disable and enable the schedules associated with their tasks.
1 parent 87c90f1 commit 02eab1f

File tree

6 files changed

+308
-137
lines changed

6 files changed

+308
-137
lines changed

clients/client-datasync/src/commands/CreateTaskCommand.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ export interface CreateTaskCommandInput extends CreateTaskRequest {}
2727
export interface CreateTaskCommandOutput extends CreateTaskResponse, __MetadataBearer {}
2828

2929
/**
30-
* <p>Configures a transfer task, which defines where and how DataSync moves your
30+
* <p>Configures a <i>task</i>, which defines where and how DataSync transfers your
3131
* data.</p>
32-
* <p>A task includes a source location, destination location, and the options for how and
33-
* when you want to transfer your data (such as bandwidth limits, scheduling, among other
34-
* options).</p>
32+
* <p>A task includes a source location, destination location, and transfer options (such as bandwidth limits, scheduling, and more).</p>
3533
* <important>
3634
* <p>If you're planning to transfer data to or from an Amazon S3 location, review
3735
* <a href="https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#create-s3-location-s3-requests">how
@@ -74,6 +72,7 @@ export interface CreateTaskCommandOutput extends CreateTaskResponse, __MetadataB
7472
* ],
7573
* Schedule: { // TaskSchedule
7674
* ScheduleExpression: "STRING_VALUE", // required
75+
* Status: "ENABLED" || "DISABLED",
7776
* },
7877
* Tags: [ // InputTagList
7978
* { // TagListEntry

clients/client-datasync/src/commands/DescribeTaskCommand.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface DescribeTaskCommandInput extends DescribeTaskRequest {}
2727
export interface DescribeTaskCommandOutput extends DescribeTaskResponse, __MetadataBearer {}
2828

2929
/**
30-
* <p>Provides information about an DataSync transfer task.</p>
30+
* <p>Provides information about a <i>task</i>, which defines where and how DataSync transfers your data.</p>
3131
* @example
3232
* Use a bare-bones client and the command you need to make an API call.
3333
* ```javascript
@@ -78,6 +78,7 @@ export interface DescribeTaskCommandOutput extends DescribeTaskResponse, __Metad
7878
* // ],
7979
* // Schedule: { // TaskSchedule
8080
* // ScheduleExpression: "STRING_VALUE", // required
81+
* // Status: "ENABLED" || "DISABLED",
8182
* // },
8283
* // ErrorCode: "STRING_VALUE",
8384
* // ErrorDetail: "STRING_VALUE",
@@ -126,6 +127,11 @@ export interface DescribeTaskCommandOutput extends DescribeTaskResponse, __Metad
126127
* // },
127128
* // },
128129
* // },
130+
* // ScheduleDetails: { // TaskScheduleDetails
131+
* // StatusUpdateTime: new Date("TIMESTAMP"),
132+
* // DisabledReason: "STRING_VALUE",
133+
* // DisabledBy: "USER" || "SERVICE",
134+
* // },
129135
* // };
130136
*
131137
* ```

clients/client-datasync/src/commands/UpdateTaskCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface UpdateTaskCommandInput extends UpdateTaskRequest {}
2727
export interface UpdateTaskCommandOutput extends UpdateTaskResponse, __MetadataBearer {}
2828

2929
/**
30-
* <p>Updates the configuration of an DataSync transfer task.</p>
30+
* <p>Updates the configuration of a <i>task</i>, which defines where and how DataSync transfers your data.</p>
3131
* @example
3232
* Use a bare-bones client and the command you need to make an API call.
3333
* ```javascript
@@ -61,6 +61,7 @@ export interface UpdateTaskCommandOutput extends UpdateTaskResponse, __MetadataB
6161
* ],
6262
* Schedule: { // TaskSchedule
6363
* ScheduleExpression: "STRING_VALUE", // required
64+
* Status: "ENABLED" || "DISABLED",
6465
* },
6566
* Name: "STRING_VALUE",
6667
* CloudWatchLogGroupArn: "STRING_VALUE",

0 commit comments

Comments
 (0)