Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateTaskCommand

Configures a task, which defines where and how DataSync transfers your data.

A task includes a source location, a destination location, and the preferences for how and when you want to transfer your data (such as bandwidth limits, scheduling, among other options).

example

Use a bare-bones client and the command you need to make an API call.

import { DataSyncClient, CreateTaskCommand } from "@aws-sdk/client-datasync"; // ES Modules import
// const { DataSyncClient, CreateTaskCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
const client = new DataSyncClient(config);
const command = new CreateTaskCommand(input);
const response = await client.send(command);
see

CreateTaskCommandInput for command's input shape.

see

CreateTaskCommandOutput for command's response shape.

see

config for DataSyncClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CreateTaskCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<CreateTaskCommandInput, CreateTaskCommandOutput>

Methods

Static getEndpointParameterInstructions