Class: AWS.DataSync
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.DataSync
- Identifier:
- datasync
- API Version:
- 2018-11-09
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
DataSync is an online data movement and discovery service that simplifies data migration and helps you quickly, easily, and securely transfer your file or object data to, from, and between Amazon Web Services storage services.
This API interface reference includes documentation for using DataSync programmatically. For complete information, see the DataSync User Guide .
Sending a Request Using DataSync
var datasync = new AWS.DataSync();
datasync.addStorageSystem(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the DataSync object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var datasync = new AWS.DataSync({apiVersion: '2018-11-09'});
You can also set the API version globally in AWS.config.apiVersions
using
the datasync service identifier:
AWS.config.apiVersions = {
datasync: '2018-11-09',
// other service API versions
};
var datasync = new AWS.DataSync();
Version:
-
2018-11-09
Constructor Summary collapse
-
new AWS.DataSync(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
addStorageSystem(params = {}, callback) ⇒ AWS.Request
Creates an Amazon Web Services resource for an on-premises storage system that you want DataSync Discovery to collect information about.
.
-
cancelTaskExecution(params = {}, callback) ⇒ AWS.Request
Stops an DataSync task execution that's in progress.
-
createAgent(params = {}, callback) ⇒ AWS.Request
Activates an DataSync agent that you've deployed in your storage environment.
-
createLocationAzureBlob(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for a Microsoft Azure Blob Storage container.
-
createLocationEfs(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for an Amazon EFS file system.
-
createLocationFsxLustre(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for an Amazon FSx for Lustre file system.
-
createLocationFsxOntap(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for an Amazon FSx for NetApp ONTAP file system.
-
createLocationFsxOpenZfs(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for an Amazon FSx for OpenZFS file system.
-
createLocationFsxWindows(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for an Amazon FSx for Windows File Server file system.
-
createLocationHdfs(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for a Hadoop Distributed File System (HDFS).
-
createLocationNfs(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for a Network File System (NFS) file server.
-
createLocationObjectStorage(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for an object storage system.
-
createLocationS3(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for an Amazon S3 bucket.
-
createLocationSmb(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for a Server Message Block (SMB) file server.
-
createTask(params = {}, callback) ⇒ AWS.Request
Configures a task, which defines where and how DataSync transfers your data.
A task includes a source location, destination location, and transfer options (such as bandwidth limits, scheduling, and more).
If you're planning to transfer data to or from an Amazon S3 location, review how DataSync can affect your S3 request charges and the DataSync pricing page before you begin.
-
deleteAgent(params = {}, callback) ⇒ AWS.Request
Removes an DataSync agent resource from your Amazon Web Services account.
Keep in mind that this operation (which can't be undone) doesn't remove the agent's virtual machine (VM) or Amazon EC2 instance from your storage environment.
-
deleteLocation(params = {}, callback) ⇒ AWS.Request
Deletes a transfer location resource from DataSync.
-
deleteTask(params = {}, callback) ⇒ AWS.Request
Deletes a transfer task resource from DataSync.
.
-
describeAgent(params = {}, callback) ⇒ AWS.Request
Returns information about an DataSync agent, such as its name, service endpoint type, and status.
.
-
describeDiscoveryJob(params = {}, callback) ⇒ AWS.Request
Returns information about a DataSync discovery job.
.
-
describeLocationAzureBlob(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for Microsoft Azure Blob Storage is configured.
.
-
describeLocationEfs(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for an Amazon EFS file system is configured.
.
-
describeLocationFsxLustre(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for an Amazon FSx for Lustre file system is configured.
.
-
describeLocationFsxOntap(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for an Amazon FSx for NetApp ONTAP file system is configured.
Note: If your location uses SMB, theDescribeLocationFsxOntap
operation doesn't actually return aPassword
.- describeLocationFsxOpenZfs(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for an Amazon FSx for OpenZFS file system is configured.
Note: Response elements related toSMB
aren't supported with theDescribeLocationFsxOpenZfs
operation.- describeLocationFsxWindows(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for an Amazon FSx for Windows File Server file system is configured.
.
- describeLocationHdfs(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for a Hadoop Distributed File System (HDFS) is configured.
.
- describeLocationNfs(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for a Network File System (NFS) file server is configured.
.
- describeLocationObjectStorage(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for an object storage system is configured.
.
- describeLocationS3(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for an S3 bucket is configured.
.
- describeLocationSmb(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for a Server Message Block (SMB) file server is configured.
.
- describeStorageSystem(params = {}, callback) ⇒ AWS.Request
Returns information about an on-premises storage system that you're using with DataSync Discovery.
.
- describeStorageSystemResourceMetrics(params = {}, callback) ⇒ AWS.Request
Returns information, including performance data and capacity usage, which DataSync Discovery collects about a specific resource in your-premises storage system.
.
- describeStorageSystemResources(params = {}, callback) ⇒ AWS.Request
Returns information that DataSync Discovery collects about resources in your on-premises storage system.
.
- describeTask(params = {}, callback) ⇒ AWS.Request
Provides information about a task, which defines where and how DataSync transfers your data.
.
- describeTaskExecution(params = {}, callback) ⇒ AWS.Request
Provides information about an execution of your DataSync task.
- generateRecommendations(params = {}, callback) ⇒ AWS.Request
Creates recommendations about where to migrate your data to in Amazon Web Services.
- listAgents(params = {}, callback) ⇒ AWS.Request
Returns a list of DataSync agents that belong to an Amazon Web Services account in the Amazon Web Services Region specified in the request.
With pagination, you can reduce the number of agents returned in a response.
- listDiscoveryJobs(params = {}, callback) ⇒ AWS.Request
Provides a list of the existing discovery jobs in the Amazon Web Services Region and Amazon Web Services account where you're using DataSync Discovery.
.
- listLocations(params = {}, callback) ⇒ AWS.Request
Returns a list of source and destination locations.
If you have more locations than are returned in a response (that is, the response returns only a truncated list of your agents), the response contains a token that you can specify in your next request to fetch the next page of locations.
.- listStorageSystems(params = {}, callback) ⇒ AWS.Request
Lists the on-premises storage systems that you're using with DataSync Discovery.
.
- listTagsForResource(params = {}, callback) ⇒ AWS.Request
Returns all the tags associated with an Amazon Web Services resource.
.
- listTaskExecutions(params = {}, callback) ⇒ AWS.Request
Returns a list of executions for an DataSync transfer task.
.
- listTasks(params = {}, callback) ⇒ AWS.Request
Returns a list of the DataSync tasks you created.
.
- removeStorageSystem(params = {}, callback) ⇒ AWS.Request
Permanently removes a storage system resource from DataSync Discovery, including the associated discovery jobs, collected data, and recommendations.
.
- startDiscoveryJob(params = {}, callback) ⇒ AWS.Request
Runs a DataSync discovery job on your on-premises storage system.
- startTaskExecution(params = {}, callback) ⇒ AWS.Request
Starts an DataSync transfer task.
- stopDiscoveryJob(params = {}, callback) ⇒ AWS.Request
Stops a running DataSync discovery job.
You can stop a discovery job anytime.
- tagResource(params = {}, callback) ⇒ AWS.Request
Applies a tag to an Amazon Web Services resource.
- untagResource(params = {}, callback) ⇒ AWS.Request
Removes tags from an Amazon Web Services resource.
.
- updateAgent(params = {}, callback) ⇒ AWS.Request
Updates the name of an DataSync agent.
.
- updateDiscoveryJob(params = {}, callback) ⇒ AWS.Request
Edits a DataSync discovery job configuration.
.
- updateLocationAzureBlob(params = {}, callback) ⇒ AWS.Request
Modifies some configurations of the Microsoft Azure Blob Storage transfer location that you're using with DataSync.
.
- updateLocationHdfs(params = {}, callback) ⇒ AWS.Request
Updates some parameters of a previously created location for a Hadoop Distributed File System cluster.
.
- updateLocationNfs(params = {}, callback) ⇒ AWS.Request
Modifies some configurations of the Network File System (NFS) transfer location that you're using with DataSync.
For more information, see Configuring transfers to or from an NFS file server.
.- updateLocationObjectStorage(params = {}, callback) ⇒ AWS.Request
Updates some parameters of an existing DataSync location for an object storage system.
.
- updateLocationSmb(params = {}, callback) ⇒ AWS.Request
Updates some of the parameters of a Server Message Block (SMB) file server location that you can use for DataSync transfers.
.
- updateStorageSystem(params = {}, callback) ⇒ AWS.Request
Modifies some configurations of an on-premises storage system resource that you're using with DataSync Discovery.
.
- updateTask(params = {}, callback) ⇒ AWS.Request
Updates the configuration of a task, which defines where and how DataSync transfers your data.
.
- updateTaskExecution(params = {}, callback) ⇒ AWS.Request
Updates the configuration of a running DataSync task execution.
Note: Currently, the onlyOption
that you can modify withUpdateTaskExecution
isBytesPerSecond
, which throttles bandwidth for a running or queued task execution.Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.DataSync(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Examples:
Constructing a DataSync object
var datasync = new AWS.DataSync({apiVersion: '2018-11-09'});
Options Hash (options):
-
params
(map)
—
An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.
-
endpoint
(String|AWS.Endpoint)
—
The endpoint URI to send requests to. The default endpoint is built from the configured
region
. The endpoint should be a string like'https://{service}.{region}.amazonaws.com'
or an Endpoint object. -
accessKeyId
(String)
—
your AWS access key ID.
-
secretAccessKey
(String)
—
your AWS secret access key.
-
sessionToken
(AWS.Credentials)
—
the optional AWS session token to sign requests with.
-
credentials
(AWS.Credentials)
—
the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.
-
credentialProvider
(AWS.CredentialProviderChain)
—
the provider chain used to resolve credentials if no static
credentials
property is set. -
region
(String)
—
the region to send service requests to. See AWS.DataSync.region for more information.
-
maxRetries
(Integer)
—
the maximum amount of retries to attempt with a request. See AWS.DataSync.maxRetries for more information.
-
maxRedirects
(Integer)
—
the maximum amount of redirects to follow with a request. See AWS.DataSync.maxRedirects for more information.
-
sslEnabled
(Boolean)
—
whether to enable SSL for requests.
-
paramValidation
(Boolean|map)
—
whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
true
. - max [Boolean] — Validates that a value meets the max constraint.
- pattern [Boolean] — Validates that a string value matches a regular expression.
- enum [Boolean] — Validates that a string value matches one of the allowable enum values.
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
-
computeChecksums
(Boolean)
—
whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)
-
convertResponseTypes
(Boolean)
—
whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to
true
. -
correctClockSkew
(Boolean)
—
whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to
false
. -
s3ForcePathStyle
(Boolean)
—
whether to force path style URLs for S3 objects.
-
s3BucketEndpoint
(Boolean)
—
whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an
endpoint
to be provided explicitly to the service constructor. -
s3DisableBodySigning
(Boolean)
—
whether S3 body signing should be disabled when using signature version
v4
. Body signing can only be disabled when using https. Defaults totrue
. -
s3UsEast1RegionalEndpoint
('legacy'|'regional')
—
when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to
legacy
-
s3UseArnRegion
(Boolean)
—
whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to
true
-
retryDelayOptions
(map)
—
A set of options to configure the retry delay on retryable errors. Currently supported options are:
- base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
- customBackoff [function] — A custom function that accepts a
retry count and error and returns the amount of time to delay in
milliseconds. If the result is a non-zero negative value, no further
retry attempts will be made. The
base
option will be ignored if this option is supplied. The function is only called for retryable errors.
-
httpOptions
(map)
—
A set of options to pass to the low-level HTTP request. Currently supported options are:
- proxy [String] — the URL to proxy requests through
- agent [http.Agent, https.Agent] — the Agent object to perform
HTTP requests with. Used for connection pooling. Defaults to the global
agent (
http.globalAgent
) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment. - connectTimeout [Integer] — Sets the socket to timeout after
failing to establish a connection with the server after
connectTimeout
milliseconds. This timeout has no effect once a socket connection has been established. - timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
- xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
- xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
-
apiVersion
(String, Date)
—
a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by
apiVersions
). Specify 'latest' to use the latest possible version. -
apiVersions
(map<String, String|Date>)
—
a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.
-
logger
(#write, #log)
—
an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests
-
systemClockOffset
(Number)
—
an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global
AWS.config
object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds. -
signatureVersion
(String)
—
the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.
-
signatureCache
(Boolean)
—
whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to
true
. -
dynamoDbCrc32
(Boolean)
—
whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default:
true
. -
useAccelerateEndpoint
(Boolean)
—
Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default:
false
. -
clientSideMonitoring
(Boolean)
—
whether to collect and publish this client's performance metrics of all its API requests.
-
endpointDiscoveryEnabled
(Boolean|undefined)
—
whether to call operations with endpoints given by service dynamically. Setting this
-
endpointCacheSize
(Number)
—
the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000
-
hostPrefixEnabled
(Boolean)
—
whether to marshal request parameters to the prefix of hostname. Defaults to
true
. -
stsRegionalEndpoints
('legacy'|'regional')
—
whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.
-
useFipsEndpoint
(Boolean)
—
Enables FIPS compatible endpoints. Defaults to
false
. -
useDualstackEndpoint
(Boolean)
—
Enables IPv6 dualstack endpoint. Defaults to
false
.
Property Details
Method Details
addStorageSystem(params = {}, callback) ⇒ AWS.Request
Creates an Amazon Web Services resource for an on-premises storage system that you want DataSync Discovery to collect information about.
Service Reference:
Examples:
Calling the addStorageSystem operation
var params = { AgentArns: [ /* required */ 'STRING_VALUE', /* more items */ ], ClientToken: 'STRING_VALUE', /* required */ Credentials: { /* required */ Password: 'STRING_VALUE', /* required */ Username: 'STRING_VALUE' /* required */ }, ServerConfiguration: { /* required */ ServerHostname: 'STRING_VALUE', /* required */ ServerPort: 'NUMBER_VALUE' }, SystemType: NetAppONTAP, /* required */ CloudWatchLogGroupArn: 'STRING_VALUE', Name: 'STRING_VALUE', Tags: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' }, /* more items */ ] }; datasync.addStorageSystem(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ServerConfiguration
— (map
)Specifies the server name and network port required to connect with the management interface of your on-premises storage system.
ServerHostname
— required — (String
)The domain name or IP address of your storage system's management interface.
ServerPort
— (Integer
)The network port for accessing the storage system's management interface.
SystemType
— (String
)Specifies the type of on-premises storage system that you want DataSync Discovery to collect information about.
Note: DataSync Discovery currently supports NetApp Fabric-Attached Storage (FAS) and All Flash FAS (AFF) systems running ONTAP 9.7 or later.Possible values include:"NetAppONTAP"
AgentArns
— (Array<String>
)Specifies the Amazon Resource Name (ARN) of the DataSync agent that connects to and reads from your on-premises storage system's management interface. You can only specify one ARN.
CloudWatchLogGroupArn
— (String
)Specifies the ARN of the Amazon CloudWatch log group for monitoring and logging discovery job events.
Tags
— (Array<map>
)Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your on-premises storage system.
Key
— required — (String
)The key for an Amazon Web Services resource tag.
Value
— (String
)The value for an Amazon Web Services resource tag.
Name
— (String
)Specifies a familiar name for your on-premises storage system.
ClientToken
— (String
)Specifies a client token to make sure requests with this API operation are idempotent. If you don't specify a client token, DataSync generates one for you automatically.
If a token is not provided, the SDK will use a version 4 UUID.Credentials
— (map
)Specifies the user name and password for accessing your on-premises storage system's management interface.
Username
— required — (String
)Specifies the user name for your storage system's management interface.
Password
— required — (String
)Specifies the password for your storage system's management interface.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:StorageSystemArn
— (String
)The ARN of the on-premises storage system that you can use with DataSync Discovery.
-
(AWS.Response)
—
Returns:
cancelTaskExecution(params = {}, callback) ⇒ AWS.Request
Stops an DataSync task execution that's in progress. The transfer of some files are abruptly interrupted. File contents that're transferred to the destination might be incomplete or inconsistent with the source files.
However, if you start a new task execution using the same task and allow it to finish, file content on the destination will be complete and consistent. This applies to other unexpected failures that interrupt a task execution. In all of these cases, DataSync successfully completes the transfer when you start the next task execution.
Service Reference:
Examples:
Calling the cancelTaskExecution operation
var params = { TaskExecutionArn: 'STRING_VALUE' /* required */ }; datasync.cancelTaskExecution(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
TaskExecutionArn
— (String
)The Amazon Resource Name (ARN) of the task execution to stop.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
createAgent(params = {}, callback) ⇒ AWS.Request
Activates an DataSync agent that you've deployed in your storage environment. The activation process associates the agent with your Amazon Web Services account.
If you haven't deployed an agent yet, see the following topics to learn more:
Note: If you're transferring between Amazon Web Services storage services, you don't need a DataSync agent.Service Reference:
Examples:
Calling the createAgent operation
var params = { ActivationKey: 'STRING_VALUE', /* required */ AgentName: 'STRING_VALUE', SecurityGroupArns: [ 'STRING_VALUE', /* more items */ ], SubnetArns: [ 'STRING_VALUE', /* more items */ ], Tags: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' }, /* more items */ ], VpcEndpointId: 'STRING_VALUE' }; datasync.createAgent(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ActivationKey
— (String
)Specifies your DataSync agent's activation key. If you don't have an activation key, see Activate your agent.
AgentName
— (String
)Specifies a name for your agent. You can see this name in the DataSync console.
Tags
— (Array<map>
)Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least one tag for your agent.
Key
— required — (String
)The key for an Amazon Web Services resource tag.
Value
— (String
)The value for an Amazon Web Services resource tag.
VpcEndpointId
— (String
)Specifies the ID of the VPC endpoint that you want your agent to connect to. For example, a VPC endpoint ID looks like
vpce-01234d5aff67890e1
.The VPC endpoint you use must include the DataSync service name (for example,
com.amazonaws.us-east-2.datasync
).SubnetArns
— (Array<String>
)Specifies the ARN of the subnet where you want to run your DataSync task when using a VPC endpoint. This is the subnet where DataSync creates and manages the network interfaces for your transfer. You can only specify one ARN.
SecurityGroupArns
— (Array<String>
)Specifies the Amazon Resource Name (ARN) of the security group that protects your task's network interfaces when using a virtual private cloud (VPC) endpoint. You can only specify one ARN.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:AgentArn
— (String
)The ARN of the agent that you just activated. Use the ListAgents operation to return a list of agents in your Amazon Web Services account and Amazon Web Services Region.
-
(AWS.Response)
—
Returns:
createLocationAzureBlob(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for a Microsoft Azure Blob Storage container. DataSync can use this location as a transfer source or destination.
Before you begin, make sure you know how DataSync accesses Azure Blob Storage and works with access tiers and blob types. You also need a DataSync agent that can connect to your container.
Service Reference:
Examples:
Calling the createLocationAzureBlob operation
var params = { AgentArns: [ /* required */ 'STRING_VALUE', /* more items */ ], AuthenticationType: SAS, /* required */ ContainerUrl: 'STRING_VALUE', /* required */ AccessTier: HOT | COOL | ARCHIVE, BlobType: BLOCK, SasConfiguration: { Token: 'STRING_VALUE' /* required */ }, Subdirectory: 'STRING_VALUE', Tags: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' }, /* more items */ ] }; datasync.createLocationAzureBlob(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ContainerUrl
— (String
)Specifies the URL of the Azure Blob Storage container involved in your transfer.
AuthenticationType
— (String
)Specifies the authentication method DataSync uses to access your Azure Blob Storage. DataSync can access blob storage using a shared access signature (SAS).
Possible values include:"SAS"
SasConfiguration
— (map
)Specifies the SAS configuration that allows DataSync to access your Azure Blob Storage.
Token
— required — (String
)Specifies a SAS token that provides permissions to access your Azure Blob Storage.
The token is part of the SAS URI string that comes after the storage resource URI and a question mark. A token looks something like this:
sp=r&st=2023-12-20T14:54:52Z&se=2023-12-20T22:54:52Z&spr=https&sv=2021-06-08&sr=c&sig=aBBKDWQvyuVcTPH9EBp%2FXTI9E%2F%2Fmq171%2BZU178wcwqU%3D
BlobType
— (String
)Specifies the type of blob that you want your objects or files to be when transferring them into Azure Blob Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For more information on blob types, see the Azure Blob Storage documentation.
Possible values include:"BLOCK"
AccessTier
— (String
)Specifies the access tier that you want your objects or files transferred into. This only applies when using the location as a transfer destination. For more information, see Access tiers.
Possible values include:"HOT"
"COOL"
"ARCHIVE"
Subdirectory
— (String
)Specifies path segments if you want to limit your transfer to a virtual directory in your container (for example,
/my/images
).AgentArns
— (Array<String>
)Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob Storage container.
You can specify more than one agent. For more information, see Using multiple agents for your transfer.
Tags
— (Array<map>
)Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your transfer location.
Key
— required — (String
)The key for an Amazon Web Services resource tag.
Value
— (String
)The value for an Amazon Web Services resource tag.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The ARN of the Azure Blob Storage transfer location that you created.
-
(AWS.Response)
—
Returns:
createLocationEfs(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for an Amazon EFS file system. DataSync can use this location as a source or destination for transferring data.
Before you begin, make sure that you understand how DataSync accesses Amazon EFS file systems.
Service Reference:
Examples:
Calling the createLocationEfs operation
var params = { Ec2Config: { /* required */ SecurityGroupArns: [ /* required */ 'STRING_VALUE', /* more items */ ], SubnetArn: 'STRING_VALUE' /* required */ }, EfsFilesystemArn: 'STRING_VALUE', /* required */ AccessPointArn: 'STRING_VALUE', FileSystemAccessRoleArn: 'STRING_VALUE', InTransitEncryption: NONE | TLS1_2, Subdirectory: 'STRING_VALUE', Tags: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' }, /* more items */ ] }; datasync.createLocationEfs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
Subdirectory
— (String
)Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data (depending on if this is a source or destination location). By default, DataSync uses the root directory, but you can also include subdirectories.
Note: You must specify a value with forward slashes (for example,/path/to/folder
).EfsFilesystemArn
— (String
)Specifies the ARN for the Amazon EFS file system.
Ec2Config
— (map
)Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system.
SubnetArn
— required — (String
)Specifies the ARN of a subnet where DataSync creates the network interfaces for managing traffic during your transfer.
The subnet must be located:
-
In the same virtual private cloud (VPC) as the Amazon EFS file system.
-
In the same Availability Zone as at least one mount target for the Amazon EFS file system.
Note: You don't need to specify a subnet that includes a file system mount target.-
SecurityGroupArns
— required — (Array<String>
)Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system's mount target.
Tags
— (Array<map>
)Specifies the key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location.
Key
— required — (String
)The key for an Amazon Web Services resource tag.
Value
— (String
)The value for an Amazon Web Services resource tag.
AccessPointArn
— (String
)Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file system.
FileSystemAccessRoleArn
— (String
)Specifies an Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system.
InTransitEncryption
— (String
)Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies data to or from the Amazon EFS file system.
If you specify an access point using
Possible values include:AccessPointArn
or an IAM role usingFileSystemAccessRoleArn
, you must set this parameter toTLS1_2
."NONE"
"TLS1_2"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The Amazon Resource Name (ARN) of the Amazon EFS file system location that you create.
-
(AWS.Response)
—
Returns:
createLocationFsxLustre(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for an Amazon FSx for Lustre file system. DataSync can use this location as a source or destination for transferring data.
Before you begin, make sure that you understand how DataSync accesses FSx for Lustre file systems.
Service Reference:
Examples:
Calling the createLocationFsxLustre operation
var params = { FsxFilesystemArn: 'STRING_VALUE', /* required */ SecurityGroupArns: [ /* required */ 'STRING_VALUE', /* more items */ ], Subdirectory: 'STRING_VALUE', Tags: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' }, /* more items */ ] }; datasync.createLocationFsxLustre(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
FsxFilesystemArn
— (String
)The Amazon Resource Name (ARN) for the FSx for Lustre file system.
SecurityGroupArns
— (Array<String>
)The Amazon Resource Names (ARNs) of the security groups that are used to configure the FSx for Lustre file system.
Subdirectory
— (String
)A subdirectory in the location's path. This subdirectory in the FSx for Lustre file system is used to read data from the FSx for Lustre source location or write data to the FSx for Lustre destination.
Tags
— (Array<map>
)The key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location.
Key
— required — (String
)The key for an Amazon Web Services resource tag.
Value
— (String
)The value for an Amazon Web Services resource tag.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The Amazon Resource Name (ARN) of the FSx for Lustre file system location that's created.
-
(AWS.Response)
—
Returns:
createLocationFsxOntap(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for an Amazon FSx for NetApp ONTAP file system. DataSync can use this location as a source or destination for transferring data.
Before you begin, make sure that you understand how DataSync accesses FSx for ONTAP file systems.
Service Reference:
Examples:
Calling the createLocationFsxOntap operation
var params = { Protocol: { /* required */ NFS: { MountOptions: { Version: AUTOMATIC | NFS3 | NFS4_0 | NFS4_1 } }, SMB: { Password: 'STRING_VALUE', /* required */ User: 'STRING_VALUE', /* required */ Domain: 'STRING_VALUE', MountOptions: { Version: AUTOMATIC | SMB2 | SMB3 | SMB1 | SMB2_0 } } }, SecurityGroupArns: [ /* required */ 'STRING_VALUE', /* more items */ ], StorageVirtualMachineArn: 'STRING_VALUE', /* required */ Subdirectory: 'STRING_VALUE', Tags: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' }, /* more items */ ] }; datasync.createLocationFsxOntap(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
Protocol
— (map
)Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.
NFS
— (map
)Specifies the Network File System (NFS) protocol configuration that DataSync uses to access your FSx for OpenZFS file system or FSx for ONTAP file system's storage virtual machine (SVM).
MountOptions
— (map
)Specifies how DataSync can access a location using the NFS protocol.
Version
— (String
)Specifies the NFS version that you want DataSync to use when mounting your NFS share. If the server refuses to use the version specified, the task fails.
You can specify the following options:
-
AUTOMATIC
(default): DataSync chooses NFS version 4.1. -
NFS3
: Stateless protocol version that allows for asynchronous writes on the server. -
NFSv4_0
: Stateful, firewall-friendly protocol version that supports delegations and pseudo file systems. -
NFSv4_1
: Stateful protocol version that supports sessions, directory delegations, and parallel data processing. NFS version 4.1 also includes all features available in version 4.0.
Note: DataSync currently only supports NFS version 3 with Amazon FSx for NetApp ONTAP locations.Possible values include:"AUTOMATIC"
"NFS3"
"NFS4_0"
"NFS4_1"
-
SMB
— (map
)Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your FSx for ONTAP file system's SVM.
Domain
— (String
)Specifies the fully qualified domain name (FQDN) of the Microsoft Active Directory that your storage virtual machine (SVM) belongs to.
If you have multiple domains in your environment, configuring this setting makes sure that DataSync connects to the right SVM.
MountOptions
— (map
)Specifies the version of the Server Message Block (SMB) protocol that DataSync uses to access an SMB file server.
Version
— (String
)By default, DataSync automatically chooses an SMB protocol version based on negotiation with your SMB file server. You also can configure DataSync to use a specific SMB version, but we recommend doing this only if DataSync has trouble negotiating with the SMB file server automatically.
These are the following options for configuring the SMB version:
-
AUTOMATIC
(default): DataSync and the SMB file server negotiate the highest version of SMB that they mutually support between 2.1 and 3.1.1.This is the recommended option. If you instead choose a specific version that your file server doesn't support, you may get an
Operation Not Supported
error. -
SMB3
: Restricts the protocol negotiation to only SMB version 3.0.2. -
SMB2
: Restricts the protocol negotiation to only SMB version 2.1. -
SMB2_0
: Restricts the protocol negotiation to only SMB version 2.0. -
SMB1
: Restricts the protocol negotiation to only SMB version 1.0.Note: TheSMB1
option isn't available when creating an Amazon FSx for NetApp ONTAP location.
"AUTOMATIC"
"SMB2"
"SMB3"
"SMB1"
"SMB2_0"
-
Password
— required — (String
)Specifies the password of a user who has permission to access your SVM.
User
— required — (String
)Specifies a user that can mount and access the files, folders, and metadata in your SVM.
For information about choosing a user with the right level of access for your transfer, see Using the SMB protocol.
SecurityGroupArns
— (Array<String>
)Specifies the Amazon EC2 security groups that provide access to your file system's preferred subnet.
The security groups must allow outbound traffic on the following ports (depending on the protocol you use):
-
Network File System (NFS): TCP ports 111, 635, and 2049
-
Server Message Block (SMB): TCP port 445
Your file system's security groups must also allow inbound traffic on the same ports.
-
StorageVirtualMachineArn
— (String
)Specifies the ARN of the storage virtual machine (SVM) in your file system where you want to copy data to or from.
Subdirectory
— (String
)Specifies a path to the file share in the SVM where you'll copy your data.
You can specify a junction path (also known as a mount point), qtree path (for NFS file shares), or share name (for SMB file shares). For example, your mount path might be
/vol1
,/vol1/tree1
, or/share1
.Note: Don't specify a junction path in the SVM's root volume. For more information, see Managing FSx for ONTAP storage virtual machines in the Amazon FSx for NetApp ONTAP User Guide.Tags
— (Array<map>
)Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.
Key
— required — (String
)The key for an Amazon Web Services resource tag.
Value
— (String
)The value for an Amazon Web Services resource tag.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)Specifies the ARN of the FSx for ONTAP file system location that you create.
-
(AWS.Response)
—
Returns:
createLocationFsxOpenZfs(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for an Amazon FSx for OpenZFS file system. DataSync can use this location as a source or destination for transferring data.
Before you begin, make sure that you understand how DataSync accesses FSx for OpenZFS file systems.
Note: Request parameters related toSMB
aren't supported with theCreateLocationFsxOpenZfs
operation.Service Reference:
Examples:
Calling the createLocationFsxOpenZfs operation
var params = { FsxFilesystemArn: 'STRING_VALUE', /* required */ Protocol: { /* required */ NFS: { MountOptions: { Version: AUTOMATIC | NFS3 | NFS4_0 | NFS4_1 } }, SMB: { Password: 'STRING_VALUE', /* required */ User: 'STRING_VALUE', /* required */ Domain: 'STRING_VALUE', MountOptions: { Version: AUTOMATIC | SMB2 | SMB3 | SMB1 | SMB2_0 } } }, SecurityGroupArns: [ /* required */ 'STRING_VALUE', /* more items */ ], Subdirectory: 'STRING_VALUE', Tags: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' }, /* more items */ ] }; datasync.createLocationFsxOpenZfs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
FsxFilesystemArn
— (String
)The Amazon Resource Name (ARN) of the FSx for OpenZFS file system.
Protocol
— (map
)The type of protocol that DataSync uses to access your file system.
NFS
— (map
)Specifies the Network File System (NFS) protocol configuration that DataSync uses to access your FSx for OpenZFS file system or FSx for ONTAP file system's storage virtual machine (SVM).
MountOptions
— (map
)Specifies how DataSync can access a location using the NFS protocol.
Version
— (String
)Specifies the NFS version that you want DataSync to use when mounting your NFS share. If the server refuses to use the version specified, the task fails.
You can specify the following options:
-
AUTOMATIC
(default): DataSync chooses NFS version 4.1. -
NFS3
: Stateless protocol version that allows for asynchronous writes on the server. -
NFSv4_0
: Stateful, firewall-friendly protocol version that supports delegations and pseudo file systems. -
NFSv4_1
: Stateful protocol version that supports sessions, directory delegations, and parallel data processing. NFS version 4.1 also includes all features available in version 4.0.
Note: DataSync currently only supports NFS version 3 with Amazon FSx for NetApp ONTAP locations.Possible values include:"AUTOMATIC"
"NFS3"
"NFS4_0"
"NFS4_1"
-
SMB
— (map
)Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your FSx for ONTAP file system's SVM.
Domain
— (String
)Specifies the fully qualified domain name (FQDN) of the Microsoft Active Directory that your storage virtual machine (SVM) belongs to.
If you have multiple domains in your environment, configuring this setting makes sure that DataSync connects to the right SVM.
MountOptions
— (map
)Specifies the version of the Server Message Block (SMB) protocol that DataSync uses to access an SMB file server.
Version
— (String
)By default, DataSync automatically chooses an SMB protocol version based on negotiation with your SMB file server. You also can configure DataSync to use a specific SMB version, but we recommend doing this only if DataSync has trouble negotiating with the SMB file server automatically.
These are the following options for configuring the SMB version:
-
AUTOMATIC
(default): DataSync and the SMB file server negotiate the highest version of SMB that they mutually support between 2.1 and 3.1.1.This is the recommended option. If you instead choose a specific version that your file server doesn't support, you may get an
Operation Not Supported
error. -
SMB3
: Restricts the protocol negotiation to only SMB version 3.0.2. -
SMB2
: Restricts the protocol negotiation to only SMB version 2.1. -
SMB2_0
: Restricts the protocol negotiation to only SMB version 2.0. -
SMB1
: Restricts the protocol negotiation to only SMB version 1.0.Note: TheSMB1
option isn't available when creating an Amazon FSx for NetApp ONTAP location.
"AUTOMATIC"
"SMB2"
"SMB3"
"SMB1"
"SMB2_0"
-
Password
— required — (String
)Specifies the password of a user who has permission to access your SVM.
User
— required — (String
)Specifies a user that can mount and access the files, folders, and metadata in your SVM.
For information about choosing a user with the right level of access for your transfer, see Using the SMB protocol.
SecurityGroupArns
— (Array<String>
)The ARNs of the security groups that are used to configure the FSx for OpenZFS file system.
Subdirectory
— (String
)A subdirectory in the location's path that must begin with
/fsx
. DataSync uses this subdirectory to read or write data (depending on whether the file system is a source or destination location).Tags
— (Array<map>
)The key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location.
Key
— required — (String
)The key for an Amazon Web Services resource tag.
Value
— (String
)The value for an Amazon Web Services resource tag.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The ARN of the FSx for OpenZFS file system location that you created.
-
(AWS.Response)
—
Returns:
createLocationFsxWindows(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for an Amazon FSx for Windows File Server file system. DataSync can use this location as a source or destination for transferring data.
Before you begin, make sure that you understand how DataSync accesses FSx for Windows File Server file systems.
Service Reference:
Examples:
Calling the createLocationFsxWindows operation
var params = { FsxFilesystemArn: 'STRING_VALUE', /* required */ Password: 'STRING_VALUE', /* required */ SecurityGroupArns: [ /* required */ 'STRING_VALUE', /* more items */ ], User: 'STRING_VALUE', /* required */ Domain: 'STRING_VALUE', Subdirectory: 'STRING_VALUE', Tags: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' }, /* more items */ ] }; datasync.createLocationFsxWindows(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
Subdirectory
— (String
)Specifies a mount path for your file system using forward slashes. This is where DataSync reads or writes data (depending on if this is a source or destination location).
FsxFilesystemArn
— (String
)Specifies the Amazon Resource Name (ARN) for the FSx for Windows File Server file system.
SecurityGroupArns
— (Array<String>
)Specifies the ARNs of the security groups that provide access to your file system's preferred subnet.
Note: If you choose a security group that doesn't allow connections from within itself, do one of the following:- Configure the security group to allow it to communicate within itself.
- Choose a different security group that can communicate with the mount target's security group.
Tags
— (Array<map>
)Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.
Key
— required — (String
)The key for an Amazon Web Services resource tag.
Value
— (String
)The value for an Amazon Web Services resource tag.
User
— (String
)Specifies the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system.
For information about choosing a user with the right level of access for your transfer, see required permissions for FSx for Windows File Server locations.
Domain
— (String
)Specifies the name of the Microsoft Active Directory domain that the FSx for Windows File Server file system belongs to.
If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right file system.
Password
— (String
)Specifies the password of the user with the permissions to mount and access the files, folders, and file metadata in your FSx for Windows File Server file system.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The ARN of the FSx for Windows File Server file system location you created.
-
(AWS.Response)
—
Returns:
createLocationHdfs(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for a Hadoop Distributed File System (HDFS). DataSync can use this location as a source or destination for transferring data.
Before you begin, make sure that you understand how DataSync accesses HDFS clusters.
Service Reference:
Examples:
Calling the createLocationHdfs operation
var params = { AgentArns: [ /* required */ 'STRING_VALUE', /* more items */ ], AuthenticationType: SIMPLE | KERBEROS, /* required */ NameNodes: [ /* required */ { Hostname: 'STRING_VALUE', /* required */ Port: 'NUMBER_VALUE' /* required */ }, /* more items */ ], BlockSize: 'NUMBER_VALUE', KerberosKeytab: Buffer.from('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */, KerberosKrb5Conf: Buffer.from('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */, KerberosPrincipal: 'STRING_VALUE', KmsKeyProviderUri: 'STRING_VALUE', QopConfiguration: { DataTransferProtection: DISABLED | AUTHENTICATION | INTEGRITY | PRIVACY, RpcProtection: DISABLED | AUTHENTICATION | INTEGRITY | PRIVACY }, ReplicationFactor: 'NUMBER_VALUE', SimpleUser: 'STRING_VALUE', Subdirectory: 'STRING_VALUE', Tags: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' }, /* more items */ ] }; datasync.createLocationHdfs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
Subdirectory
— (String
)A subdirectory in the HDFS cluster. This subdirectory is used to read data from or write data to the HDFS cluster. If the subdirectory isn't specified, it will default to
/
.NameNodes
— (Array<map>
)The NameNode that manages the HDFS namespace. The NameNode performs operations such as opening, closing, and renaming files and directories. The NameNode contains the information to map blocks of data to the DataNodes. You can use only one NameNode.
Hostname
— required — (String
)The hostname of the NameNode in the HDFS cluster. This value is the IP address or Domain Name Service (DNS) name of the NameNode. An agent that's installed on-premises uses this hostname to communicate with the NameNode in the network.
Port
— required — (Integer
)The port that the NameNode uses to listen to client requests.
BlockSize
— (Integer
)The size of data blocks to write into the HDFS cluster. The block size must be a multiple of 512 bytes. The default block size is 128 mebibytes (MiB).
ReplicationFactor
— (Integer
)The number of DataNodes to replicate the data to when writing to the HDFS cluster. By default, data is replicated to three DataNodes.
KmsKeyProviderUri
— (String
)The URI of the HDFS cluster's Key Management Server (KMS).
QopConfiguration
— (map
)The Quality of Protection (QOP) configuration specifies the Remote Procedure Call (RPC) and data transfer protection settings configured on the Hadoop Distributed File System (HDFS) cluster. If
QopConfiguration
isn't specified,RpcProtection
andDataTransferProtection
default toPRIVACY
. If you setRpcProtection
orDataTransferProtection
, the other parameter assumes the same value.RpcProtection
— (String
)The RPC protection setting configured on the HDFS cluster. This setting corresponds to your
Possible values include:hadoop.rpc.protection
setting in yourcore-site.xml
file on your Hadoop cluster."DISABLED"
"AUTHENTICATION"
"INTEGRITY"
"PRIVACY"
DataTransferProtection
— (String
)The data transfer protection setting configured on the HDFS cluster. This setting corresponds to your
Possible values include:dfs.data.transfer.protection
setting in thehdfs-site.xml
file on your Hadoop cluster."DISABLED"
"AUTHENTICATION"
"INTEGRITY"
"PRIVACY"
AuthenticationType
— (String
)The type of authentication used to determine the identity of the user.
Possible values include:"SIMPLE"
"KERBEROS"
SimpleUser
— (String
)The user name used to identify the client on the host operating system.
Note: IfSIMPLE
is specified forAuthenticationType
, this parameter is required.KerberosPrincipal
— (String
)The Kerberos principal with access to the files and folders on the HDFS cluster.
Note: IfKERBEROS
is specified forAuthenticationType
, this parameter is required.KerberosKeytab
— (Buffer, Typed Array, Blob, String
)The Kerberos key table (keytab) that contains mappings between the defined Kerberos principal and the encrypted keys. You can load the keytab from a file by providing the file's address. If you're using the CLI, it performs base64 encoding for you. Otherwise, provide the base64-encoded text.
Note: IfKERBEROS
is specified forAuthenticationType
, this parameter is required.KerberosKrb5Conf
— (Buffer, Typed Array, Blob, String
)The
krb5.conf
file that contains the Kerberos configuration information. You can load thekrb5.conf
file by providing the file's address. If you're using the CLI, it performs the base64 encoding for you. Otherwise, provide the base64-encoded text.Note: IfKERBEROS
is specified forAuthenticationType
, this parameter is required.AgentArns
— (Array<String>
)The Amazon Resource Names (ARNs) of the agents that are used to connect to the HDFS cluster.
Tags
— (Array<map>
)The key-value pair that represents the tag that you want to add to the location. The value can be an empty string. We recommend using tags to name your resources.
Key
— required — (String
)The key for an Amazon Web Services resource tag.
Value
— (String
)The value for an Amazon Web Services resource tag.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The ARN of the source HDFS cluster location that's created.
-
(AWS.Response)
—
Returns:
createLocationNfs(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for a Network File System (NFS) file server. DataSync can use this location as a source or destination for transferring data.
Before you begin, make sure that you understand how DataSync accesses NFS file servers.
Note: If you're copying data to or from an Snowcone device, you can also useCreateLocationNfs
to create your transfer location. For more information, see Configuring transfers with Snowcone.Service Reference:
Examples:
Calling the createLocationNfs operation
var params = { OnPremConfig: { /* required */ AgentArns: [ /* required */ 'STRING_VALUE', /* more items */ ] }, ServerHostname: 'STRING_VALUE', /* required */ Subdirectory: 'STRING_VALUE', /* required */ MountOptions: { Version: AUTOMATIC | NFS3 | NFS4_0 | NFS4_1 }, Tags: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' }, /* more items */ ] }; datasync.createLocationNfs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
Subdirectory
— (String
)Specifies the export path in your NFS file server that you want DataSync to mount.
This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see Accessing NFS file servers.
ServerHostname
— (String
)Specifies the Domain Name System (DNS) name or IP version 4 address of the NFS file server that your DataSync agent connects to.
OnPremConfig
— (map
)Specifies the Amazon Resource Name (ARN) of the DataSync agent that want to connect to your NFS file server.
You can specify more than one agent. For more information, see Using multiple agents for transfers.
AgentArns
— required — (Array<String>
)The Amazon Resource Names (ARNs) of the agents connecting to a transfer location.
MountOptions
— (map
)Specifies the options that DataSync can use to mount your NFS file server.
Version
— (String
)Specifies the NFS version that you want DataSync to use when mounting your NFS share. If the server refuses to use the version specified, the task fails.
You can specify the following options:
-
AUTOMATIC
(default): DataSync chooses NFS version 4.1. -
NFS3
: Stateless protocol version that allows for asynchronous writes on the server. -
NFSv4_0
: Stateful, firewall-friendly protocol version that supports delegations and pseudo file systems. -
NFSv4_1
: Stateful protocol version that supports sessions, directory delegations, and parallel data processing. NFS version 4.1 also includes all features available in version 4.0.
Note: DataSync currently only supports NFS version 3 with Amazon FSx for NetApp ONTAP locations.Possible values include:"AUTOMATIC"
"NFS3"
"NFS4_0"
"NFS4_1"
-
Tags
— (Array<map>
)Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.
Key
— required — (String
)The key for an Amazon Web Services resource tag.
Value
— (String
)The value for an Amazon Web Services resource tag.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The ARN of the transfer location that you created for your NFS file server.
-
(AWS.Response)
—
Returns:
createLocationObjectStorage(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for an object storage system. DataSync can use this location as a source or destination for transferring data.
Before you begin, make sure that you understand the prerequisites for DataSync to work with object storage systems.
Service Reference:
Examples:
Calling the createLocationObjectStorage operation
var params = { AgentArns: [ /* required */ 'STRING_VALUE', /* more items */ ], BucketName: 'STRING_VALUE', /* required */ ServerHostname: 'STRING_VALUE', /* required */ AccessKey: 'STRING_VALUE', SecretKey: 'STRING_VALUE', ServerCertificate: Buffer.from('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */, ServerPort: 'NUMBER_VALUE', ServerProtocol: HTTPS | HTTP, Subdirectory: 'STRING_VALUE', Tags: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' }, /* more items */ ] }; datasync.createLocationObjectStorage(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ServerHostname
— (String
)Specifies the domain name or IP address of the object storage server. A DataSync agent uses this hostname to mount the object storage server in a network.
ServerPort
— (Integer
)Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
ServerProtocol
— (String
)Specifies the protocol that your object storage server uses to communicate.
Possible values include:"HTTPS"
"HTTP"
Subdirectory
— (String
)Specifies the object prefix for your object storage server. If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.
BucketName
— (String
)Specifies the name of the object storage bucket involved in the transfer.
AccessKey
— (String
)Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.
SecretKey
— (String
)Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.
AgentArns
— (Array<String>
)Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your location.
Tags
— (Array<map>
)Specifies the key-value pair that represents a tag that you want to add to the resource. Tags can help you manage, filter, and search for your resources. We recommend creating a name tag for your location.
Key
— required — (String
)The key for an Amazon Web Services resource tag.
Value
— (String
)The value for an Amazon Web Services resource tag.
ServerCertificate
— (Buffer, Typed Array, Blob, String
)Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). You must specify a single
.pem
file with a full certificate chain (for example,file:///home/user/.ssh/object_storage_certificates.pem
).The certificate chain might include:
-
The object storage system's certificate
-
All intermediate certificates (if there are any)
-
The root certificate of the signing CA
You can concatenate your certificates into a
.pem
file (which can be up to 32768 bytes before base64 encoding). The following examplecat
command creates anobject_storage_certificates.pem
file that includes three certificates:cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem
To use this parameter, configure
ServerProtocol
toHTTPS
.-
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)Specifies the ARN of the object storage system location that you create.
-
(AWS.Response)
—
Returns:
createLocationS3(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for an Amazon S3 bucket. DataSync can use this location as a source or destination for transferring data.
Before you begin, make sure that you read the following topics:
For more information, see Configuring transfers with Amazon S3.
Service Reference:
Examples:
Calling the createLocationS3 operation
var params = { S3BucketArn: 'STRING_VALUE', /* required */ S3Config: { /* required */ BucketAccessRoleArn: 'STRING_VALUE' /* required */ }, AgentArns: [ 'STRING_VALUE', /* more items */ ], S3StorageClass: STANDARD | STANDARD_IA | ONEZONE_IA | INTELLIGENT_TIERING | GLACIER | DEEP_ARCHIVE | OUTPOSTS | GLACIER_INSTANT_RETRIEVAL, Subdirectory: 'STRING_VALUE', Tags: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' }, /* more items */ ] }; datasync.createLocationS3(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
Subdirectory
— (String
)Specifies a prefix in the S3 bucket that DataSync reads from or writes to (depending on whether the bucket is a source or destination location).
Note: DataSync can't transfer objects with a prefix that begins with a slash (/
) or includes//
,/./
, or/../
patterns. For example:-
/photos
-
photos//2006/January
-
photos/./2006/February
-
photos/../2006/March
-
S3BucketArn
— (String
)Specifies the ARN of the S3 bucket that you want to use as a location. (When creating your DataSync task later, you specify whether this location is a transfer source or destination.)
If your S3 bucket is located on an Outposts resource, you must specify an Amazon S3 access point. For more information, see Managing data access with Amazon S3 access points in the Amazon S3 User Guide.
S3StorageClass
— (String
)Specifies the storage class that you want your objects to use when Amazon S3 is a transfer destination.
For buckets in Amazon Web Services Regions, the storage class defaults to
STANDARD
. For buckets on Outposts, the storage class defaults toOUTPOSTS
.For more information, see Storage class considerations with Amazon S3 transfers.
Possible values include:"STANDARD"
"STANDARD_IA"
"ONEZONE_IA"
"INTELLIGENT_TIERING"
"GLACIER"
"DEEP_ARCHIVE"
"OUTPOSTS"
"GLACIER_INSTANT_RETRIEVAL"
S3Config
— (map
)Specifies the Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket.
For more information, see Accessing S3 buckets.
BucketAccessRoleArn
— required — (String
)Specifies the ARN of the IAM role that DataSync uses to access your S3 bucket.
AgentArns
— (Array<String>
)(Amazon S3 on Outposts only) Specifies the Amazon Resource Name (ARN) of the DataSync agent on your Outpost.
For more information, see Deploy your DataSync agent on Outposts.
Tags
— (Array<map>
)Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your transfer location.
Key
— required — (String
)The key for an Amazon Web Services resource tag.
Value
— (String
)The value for an Amazon Web Services resource tag.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The ARN of the S3 location that you created.
-
(AWS.Response)
—
Returns:
createLocationSmb(params = {}, callback) ⇒ AWS.Request
Creates a transfer location for a Server Message Block (SMB) file server. DataSync can use this location as a source or destination for transferring data.
Before you begin, make sure that you understand how DataSync accesses SMB file servers.
Service Reference:
Examples:
Calling the createLocationSmb operation
var params = { AgentArns: [ /* required */ 'STRING_VALUE', /* more items */ ], Password: 'STRING_VALUE', /* required */ ServerHostname: 'STRING_VALUE', /* required */ Subdirectory: 'STRING_VALUE', /* required */ User: 'STRING_VALUE', /* required */ Domain: 'STRING_VALUE', MountOptions: { Version: AUTOMATIC | SMB2 | SMB3 | SMB1 | SMB2_0 }, Tags: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' }, /* more items */ ] }; datasync.createLocationSmb(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
Subdirectory
— (String
)Specifies the name of the share exported by your SMB file server where DataSync will read or write data. You can include a subdirectory in the share path (for example,
/path/to/subdirectory
). Make sure that other SMB clients in your network can also mount this path.To copy all data in the subdirectory, DataSync must be able to mount the SMB share and access all of its data. For more information, see required permissions for SMB locations.
ServerHostname
— (String
)Specifies the Domain Name Service (DNS) name or IP address of the SMB file server that your DataSync agent will mount.
Note: You can't specify an IP version 6 (IPv6) address.User
— (String
)Specifies the user that can mount and access the files, folders, and file metadata in your SMB file server.
For information about choosing a user with the right level of access for your transfer, see required permissions for SMB locations.
Domain
— (String
)Specifies the name of the Active Directory domain that your SMB file server belongs to.
If you have multiple Active Directory domains in your environment, configuring this parameter makes sure that DataSync connects to the right file server.
Password
— (String
)Specifies the password of the user who can mount your SMB file server and has permission to access the files and folders involved in your transfer.
For more information, see required permissions for SMB locations.
AgentArns
— (Array<String>
)Specifies the DataSync agent (or agents) which you want to connect to your SMB file server. You specify an agent by using its Amazon Resource Name (ARN).
MountOptions
— (map
)Specifies the version of the SMB protocol that DataSync uses to access your SMB file server.
Version
— (String
)By default, DataSync automatically chooses an SMB protocol version based on negotiation with your SMB file server. You also can configure DataSync to use a specific SMB version, but we recommend doing this only if DataSync has trouble negotiating with the SMB file server automatically.
These are the following options for configuring the SMB version:
-
AUTOMATIC
(default): DataSync and the SMB file server negotiate the highest version of SMB that they mutually support between 2.1 and 3.1.1.This is the recommended option. If you instead choose a specific version that your file server doesn't support, you may get an
Operation Not Supported
error. -
SMB3
: Restricts the protocol negotiation to only SMB version 3.0.2. -
SMB2
: Restricts the protocol negotiation to only SMB version 2.1. -
SMB2_0
: Restricts the protocol negotiation to only SMB version 2.0. -
SMB1
: Restricts the protocol negotiation to only SMB version 1.0.Note: TheSMB1
option isn't available when creating an Amazon FSx for NetApp ONTAP location.
"AUTOMATIC"
"SMB2"
"SMB3"
"SMB1"
"SMB2_0"
-
Tags
— (Array<map>
)Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.
Key
— required — (String
)The key for an Amazon Web Services resource tag.
Value
— (String
)The value for an Amazon Web Services resource tag.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The ARN of the SMB location that you created.
-
(AWS.Response)
—
Returns:
createTask(params = {}, callback) ⇒ AWS.Request
Configures a task, which defines where and how DataSync transfers your data.
A task includes a source location, destination location, and transfer options (such as bandwidth limits, scheduling, and more).
If you're planning to transfer data to or from an Amazon S3 location, review how DataSync can affect your S3 request charges and the DataSync pricing page before you begin.
Service Reference:
Examples:
Calling the createTask operation
var params = { DestinationLocationArn: 'STRING_VALUE', /* required */ SourceLocationArn: 'STRING_VALUE', /* required */ CloudWatchLogGroupArn: 'STRING_VALUE', Excludes: [ { FilterType: SIMPLE_PATTERN, Value: 'STRING_VALUE' }, /* more items */ ], Includes: [ { FilterType: SIMPLE_PATTERN, Value: 'STRING_VALUE' }, /* more items */ ], ManifestConfig: { Action: TRANSFER, Format: CSV, Source: { S3: { /* required */ BucketAccessRoleArn: 'STRING_VALUE', /* required */ ManifestObjectPath: 'STRING_VALUE', /* required */ S3BucketArn: 'STRING_VALUE', /* required */ ManifestObjectVersionId: 'STRING_VALUE' } } }, Name: 'STRING_VALUE', Options: { Atime: NONE | BEST_EFFORT, BytesPerSecond: 'NUMBER_VALUE', Gid: NONE | INT_VALUE | NAME | BOTH, LogLevel: OFF | BASIC | TRANSFER, Mtime: NONE | PRESERVE, ObjectTags: PRESERVE | NONE, OverwriteMode: ALWAYS | NEVER, PosixPermissions: NONE | PRESERVE, PreserveDeletedFiles: PRESERVE | REMOVE, PreserveDevices: NONE | PRESERVE, SecurityDescriptorCopyFlags: NONE | OWNER_DACL | OWNER_DACL_SACL, TaskQueueing: ENABLED | DISABLED, TransferMode: CHANGED | ALL, Uid: NONE | INT_VALUE | NAME | BOTH, VerifyMode: POINT_IN_TIME_CONSISTENT | ONLY_FILES_TRANSFERRED | NONE }, Schedule: { ScheduleExpression: 'STRING_VALUE', /* required */ Status: ENABLED | DISABLED }, Tags: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' }, /* more items */ ], TaskReportConfig: { Destination: { S3: { BucketAccessRoleArn: 'STRING_VALUE', /* required */ S3BucketArn: 'STRING_VALUE', /* required */ Subdirectory: 'STRING_VALUE' } }, ObjectVersionIds: INCLUDE | NONE, OutputType: SUMMARY_ONLY | STANDARD, Overrides: { Deleted: { ReportLevel: ERRORS_ONLY | SUCCESSES_AND_ERRORS }, Skipped: { ReportLevel: ERRORS_ONLY | SUCCESSES_AND_ERRORS }, Transferred: { ReportLevel: ERRORS_ONLY | SUCCESSES_AND_ERRORS }, Verified: { ReportLevel: ERRORS_ONLY | SUCCESSES_AND_ERRORS } }, ReportLevel: ERRORS_ONLY | SUCCESSES_AND_ERRORS } }; datasync.createTask(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
SourceLocationArn
— (String
)Specifies the ARN of your transfer's source location.
DestinationLocationArn
— (String
)Specifies the ARN of your transfer's destination location.
CloudWatchLogGroupArn
— (String
)Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.
Name
— (String
)Specifies the name of your task.
Options
— (map
)Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options.
VerifyMode
— (String
)Specifies how and when DataSync checks the integrity of your data during a transfer.
-
ONLY_FILES_TRANSFERRED
(recommended) - DataSync calculates the checksum of transferred files and metadata at the source location. At the end of the transfer, DataSync then compares this checksum to the checksum calculated on those files at the destination.We recommend this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations.
-
POINT_IN_TIME_CONSISTENT
(default) - At the end of the transfer, DataSync scans the entire source and destination to verify that both locations are fully synchronized.If you use a manifest, DataSync only scans and verifies what's listed in the manifest.
You can't use this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations.
-
NONE
- DataSync doesn't run additional verification at the end of the transfer. All data transmissions are still integrity-checked with checksum verification during the transfer.
"POINT_IN_TIME_CONSISTENT"
"ONLY_FILES_TRANSFERRED"
"NONE"
-
OverwriteMode
— (String
)Specifies whether DataSync should modify or preserve data at the destination location.
-
ALWAYS
(default) - DataSync modifies data in the destination location when source data (including metadata) has changed.If DataSync overwrites objects, you might incur additional charges for certain Amazon S3 storage classes (for example, for retrieval or early deletion). For more information, see Storage class considerations with Amazon S3 transfers.
-
NEVER
- DataSync doesn't overwrite data in the destination location even if the source data has changed. You can use this option to protect against overwriting changes made to files or objects in the destination.
"ALWAYS"
"NEVER"
-
Atime
— (String
)Specifies whether to preserve metadata indicating the last time a file was read or written to.
Note: The behavior ofAtime
isn't fully standard across platforms, so DataSync can only do this on a best-effort basis.-
BEST_EFFORT
(default) - DataSync attempts to preserve the originalAtime
attribute on all source files (that is, the version before thePREPARING
phase of the task execution). This option is recommended. -
NONE
- IgnoresAtime
.
Note: IfPossible values include:Atime
is set toBEST_EFFORT
,Mtime
must be set toPRESERVE
. IfAtime
is set toNONE
,Mtime
must also beNONE
."NONE"
"BEST_EFFORT"
-
Mtime
— (String
)Specifies whether to preserve metadata indicating the last time that a file was written to before the
PREPARING
phase of your task execution. This option is required when you need to run the a task more than once.-
PRESERVE
(default) - Preserves originalMtime
, which is recommended. -
NONE
- IgnoresMtime
.
Note: IfPossible values include:Mtime
is set toPRESERVE
,Atime
must be set toBEST_EFFORT
. IfMtime
is set toNONE
,Atime
must also be set toNONE
."NONE"
"PRESERVE"
-
Uid
— (String
)Specifies the POSIX user ID (UID) of the file's owner.
-
INT_VALUE
(default) - Preserves the integer value of UID and group ID (GID), which is recommended. -
NONE
- Ignores UID and GID.
For more information, see Metadata copied by DataSync.
Possible values include:"NONE"
"INT_VALUE"
"NAME"
"BOTH"
-
Gid
— (String
)Specifies the POSIX group ID (GID) of the file's owners.
-
INT_VALUE
(default) - Preserves the integer value of user ID (UID) and GID, which is recommended. -
NONE
- Ignores UID and GID.
For more information, see Metadata copied by DataSync.
Possible values include:"NONE"
"INT_VALUE"
"NAME"
"BOTH"
-
PreserveDeletedFiles
— (String
)Specifies whether files in the destination location that don't exist in the source should be preserved. This option can affect your Amazon S3 storage cost. If your task deletes objects, you might incur minimum storage duration charges for certain storage classes. For detailed information, see Considerations when working with Amazon S3 storage classes in DataSync.
-
PRESERVE
(default) - Ignores such destination files, which is recommended. -
REMOVE
- Deletes destination files that aren’t present in the source.
Note: If you set this parameter toPossible values include:REMOVE
, you can't setTransferMode
toALL
. When you transfer all data, DataSync doesn't scan your destination location and doesn't know what to delete."PRESERVE"
"REMOVE"
-
PreserveDevices
— (String
)Specifies whether DataSync should preserve the metadata of block and character devices in the source location and recreate the files with that device name and metadata on the destination. DataSync copies only the name and metadata of such devices.
Note: DataSync can't copy the actual contents of these devices because they're nonterminal and don't return an end-of-file (EOF) marker.-
NONE
(default) - Ignores special devices (recommended). -
PRESERVE
- Preserves character and block device metadata. This option currently isn't supported for Amazon EFS.
"NONE"
"PRESERVE"
-
PosixPermissions
— (String
)Specifies which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file.
For more information, see Metadata copied by DataSync.
-
PRESERVE
(default) - Preserves POSIX-style permissions, which is recommended. -
NONE
- Ignores POSIX-style permissions.
Note: DataSync can preserve extant permissions of a source location.Possible values include:"NONE"
"PRESERVE"
-
BytesPerSecond
— (Integer
)Limits the bandwidth used by a DataSync task. For example, if you want DataSync to use a maximum of 1 MB, set this value to
1048576
(=1024*1024
).TaskQueueing
— (String
)Specifies whether your transfer tasks should be put into a queue during certain scenarios when running multiple tasks. This is
Possible values include:ENABLED
by default."ENABLED"
"DISABLED"
LogLevel
— (String
)Specifies the type of logs that DataSync publishes to a Amazon CloudWatch Logs log group. To specify the log group, see CloudWatchLogGroupArn.
-
BASIC
- Publishes logs with only basic information (such as transfer errors). -
TRANSFER
- Publishes logs for all files or objects that your DataSync task transfers and performs data-integrity checks on. -
OFF
- No logs are published.
"OFF"
"BASIC"
"TRANSFER"
-
TransferMode
— (String
)Determines whether DataSync transfers only the data and metadata that differ between the source and the destination location or transfers all the content from the source (without comparing what's in the destination).
-
CHANGED
(default) - DataSync copies only data or metadata that is new or different content from the source location to the destination location. -
ALL
- DataSync copies everything in the source to the destination without comparing differences between the locations.
"CHANGED"
"ALL"
-
SecurityDescriptorCopyFlags
— (String
)Specifies which components of the SMB security descriptor are copied from source to destination objects.
This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations or between two FSx for Windows File Server locations. For more information, see how DataSync handles metadata.
-
OWNER_DACL
(default) - For each copied object, DataSync copies the following metadata:-
The object owner.
-
NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.
DataSync won't copy NTFS system access control lists (SACLs) with this option.
-
-
OWNER_DACL_SACL
- For each copied object, DataSync copies the following metadata:-
The object owner.
-
NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.
-
SACLs, which are used by administrators to log attempts to access a secured object.
Copying SACLs requires granting additional permissions to the Windows user that DataSync uses to access your SMB location. For information about choosing a user with the right permissions, see required permissions for SMB, FSx for Windows File Server, or FSx for ONTAP (depending on the type of location in your transfer).
-
-
NONE
- None of the SMB security descriptor components are copied. Destination objects are owned by the user that was provided for accessing the destination location. DACLs and SACLs are set based on the destination server’s configuration.
"NONE"
"OWNER_DACL"
"OWNER_DACL_SACL"
-
ObjectTags
— (String
)Specifies whether you want DataSync to
Possible values include:PRESERVE
object tags (default behavior) when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify theNONE
value."PRESERVE"
"NONE"
Excludes
— (Array<map>
)Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters.
FilterType
— (String
)The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.
Possible values include:"SIMPLE_PATTERN"
Value
— (String
)A single filter string that consists of the patterns to include or exclude. The patterns are delimited by "|" (that is, a pipe), for example:
/folder1|/folder2
Schedule
— (map
)Specifies a schedule for when you want your task to run. For more information, see Scheduling your task.
ScheduleExpression
— required — (String
)Specifies your task schedule by using a cron expression in UTC time. For information about cron expression syntax, see the Amazon EventBridge User Guide .
Status
— (String
)Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there can be situations where you need to disable it. For example, you might need to pause a recurring transfer to fix an issue with your task or perform maintenance on your storage system.
DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails.
Possible values include:"ENABLED"
"DISABLED"
Tags
— (Array<map>
)Specifies the tags that you want to apply to your task.
Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.
Key
— required — (String
)The key for an Amazon Web Services resource tag.
Value
— (String
)The value for an Amazon Web Services resource tag.
Includes
— (Array<map>
)Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters.
FilterType
— (String
)The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.
Possible values include:"SIMPLE_PATTERN"
Value
— (String
)A single filter string that consists of the patterns to include or exclude. The patterns are delimited by "|" (that is, a pipe), for example:
/folder1|/folder2
ManifestConfig
— (map
)Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest.
When using this parameter, your caller identity (the role that you're using DataSync with) must have the
iam:PassRole
permission. The AWSDataSyncFullAccess policy includes this permission.Action
— (String
)Specifies what DataSync uses the manifest for.
Possible values include:"TRANSFER"
Format
— (String
)Specifies the file format of your manifest. For more information, see Creating a manifest.
Possible values include:"CSV"
Source
— (map
)Specifies the manifest that you want DataSync to use and where it's hosted.
Note: You must specify this parameter if you're configuring a new manifest on or after February 7, 2024. If you don't, you'll get a 400 status code andValidationException
error stating that you're missing the IAM role for DataSync to access the S3 bucket where you're hosting your manifest. For more information, see Providing DataSync access to your manifest.S3
— required — (map
)Specifies the S3 bucket where you're hosting your manifest.
ManifestObjectPath
— required — (String
)Specifies the Amazon S3 object key of your manifest. This can include a prefix (for example,
prefix/my-manifest.csv
).BucketAccessRoleArn
— required — (String
)Specifies the Identity and Access Management (IAM) role that allows DataSync to access your manifest. For more information, see Providing DataSync access to your manifest.
S3BucketArn
— required — (String
)Specifies the Amazon Resource Name (ARN) of the S3 bucket where you're hosting your manifest.
ManifestObjectVersionId
— (String
)Specifies the object version ID of the manifest that you want DataSync to use. If you don't set this, DataSync uses the latest version of the object.
TaskReportConfig
— (map
)Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports.
When using this parameter, your caller identity (the role that you're using DataSync with) must have the
iam:PassRole
permission. The AWSDataSyncFullAccess policy includes this permission.Destination
— (map
)Specifies the Amazon S3 bucket where DataSync uploads your task report. For more information, see Task reports.
S3
— (map
)Specifies the Amazon S3 bucket where DataSync uploads your task report.
Subdirectory
— (String
)Specifies a bucket prefix for your report.
S3BucketArn
— required — (String
)Specifies the ARN of the S3 bucket where DataSync uploads your report.
BucketAccessRoleArn
— required — (String
)Specifies the Amazon Resource Name (ARN) of the IAM policy that allows DataSync to upload a task report to your S3 bucket. For more information, see Allowing DataSync to upload a task report to an Amazon S3 bucket.
OutputType
— (String
)Specifies the type of task report that you want:
-
SUMMARY_ONLY
: Provides necessary details about your task, including the number of files, objects, and directories transferred and transfer duration. -
STANDARD
: Provides complete details about your task, including a full list of files, objects, and directories that were transferred, skipped, verified, and more.
"SUMMARY_ONLY"
"STANDARD"
-
ReportLevel
— (String
)Specifies whether you want your task report to include only what went wrong with your transfer or a list of what succeeded and didn't.
-
ERRORS_ONLY
: A report shows what DataSync was unable to transfer, skip, verify, and delete. -
SUCCESSES_AND_ERRORS
: A report shows what DataSync was able and unable to transfer, skip, verify, and delete.
"ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
-
ObjectVersionIds
— (String
)Specifies whether your task report includes the new version of each object transferred into an S3 bucket. This only applies if you enable versioning on your bucket. Keep in mind that setting this to
Possible values include:INCLUDE
can increase the duration of your task execution."INCLUDE"
"NONE"
Overrides
— (map
)Customizes the reporting level for aspects of your task report. For example, your report might generally only include errors, but you could specify that you want a list of successes and errors just for the files that DataSync attempted to delete in your destination location.
Transferred
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to transfer.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
Verified
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to verify at the end of your transfer.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
Deleted
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to delete in your destination location. This only applies if you configure your task to delete data in the destination that isn't in the source.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
Skipped
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to skip during your transfer.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:TaskArn
— (String
)The Amazon Resource Name (ARN) of the task.
-
(AWS.Response)
—
Returns:
deleteAgent(params = {}, callback) ⇒ AWS.Request
Removes an DataSync agent resource from your Amazon Web Services account.
Keep in mind that this operation (which can't be undone) doesn't remove the agent's virtual machine (VM) or Amazon EC2 instance from your storage environment. For next steps, you can delete the VM or instance from your storage environment or reuse it to activate a new agent.
Service Reference:
Examples:
Calling the deleteAgent operation
var params = { AgentArn: 'STRING_VALUE' /* required */ }; datasync.deleteAgent(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
AgentArn
— (String
)The Amazon Resource Name (ARN) of the agent to delete. Use the
ListAgents
operation to return a list of agents for your account and Amazon Web Services Region.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteLocation(params = {}, callback) ⇒ AWS.Request
Deletes a transfer location resource from DataSync.
Service Reference:
Examples:
Calling the deleteLocation operation
var params = { LocationArn: 'STRING_VALUE' /* required */ }; datasync.deleteLocation(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LocationArn
— (String
)The Amazon Resource Name (ARN) of the location to delete.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
deleteTask(params = {}, callback) ⇒ AWS.Request
Deletes a transfer task resource from DataSync.
Service Reference:
Examples:
Calling the deleteTask operation
var params = { TaskArn: 'STRING_VALUE' /* required */ }; datasync.deleteTask(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
TaskArn
— (String
)Specifies the Amazon Resource Name (ARN) of the task that you want to delete.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
describeAgent(params = {}, callback) ⇒ AWS.Request
Returns information about an DataSync agent, such as its name, service endpoint type, and status.
Service Reference:
Examples:
Calling the describeAgent operation
var params = { AgentArn: 'STRING_VALUE' /* required */ }; datasync.describeAgent(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
AgentArn
— (String
)Specifies the Amazon Resource Name (ARN) of the DataSync agent that you want information about.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:AgentArn
— (String
)The ARN of the agent.
Name
— (String
)The name of the agent.
Status
— (String
)The status of the agent.
-
If the status is
ONLINE
, the agent is configured properly and ready to use. -
If the status is
OFFLINE
, the agent has been out of contact with DataSync for five minutes or longer. This can happen for a few reasons. For more information, see What do I do if my agent is offline?
"ONLINE"
"OFFLINE"
-
LastConnectionTime
— (Date
)The last time that the agent was communicating with the DataSync service.
CreationTime
— (Date
)The time that the agent was activated.
EndpointType
— (String
)The type of service endpoint that your agent is connected to.
Possible values include:"PUBLIC"
"PRIVATE_LINK"
"FIPS"
PrivateLinkConfig
— (map
)The network configuration that the agent uses when connecting to a VPC service endpoint.
VpcEndpointId
— (String
)Specifies the ID of the VPC endpoint that your agent connects to.
PrivateLinkEndpoint
— (String
)Specifies the VPC endpoint provided by Amazon Web Services PrivateLink that your agent connects to.
SubnetArns
— (Array<String>
)Specifies the ARN of the subnet where your VPC endpoint is located. You can only specify one ARN.
SecurityGroupArns
— (Array<String>
)Specifies the Amazon Resource Names (ARN) of the security group that provides DataSync access to your VPC endpoint. You can only specify one ARN.
Platform
— (map
)The platform-related details about the agent, such as the version number.
Version
— (String
)The version of the DataSync agent.
-
(AWS.Response)
—
Returns:
describeDiscoveryJob(params = {}, callback) ⇒ AWS.Request
Returns information about a DataSync discovery job.
Service Reference:
Examples:
Calling the describeDiscoveryJob operation
var params = { DiscoveryJobArn: 'STRING_VALUE' /* required */ }; datasync.describeDiscoveryJob(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
DiscoveryJobArn
— (String
)Specifies the Amazon Resource Name (ARN) of the discovery job that you want information about.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:StorageSystemArn
— (String
)The ARN of the on-premises storage system you're running the discovery job on.
DiscoveryJobArn
— (String
)The ARN of the discovery job.
CollectionDurationMinutes
— (Integer
)The number of minutes that the discovery job runs.
Status
— (String
)Indicates the status of a discovery job. For more information, see Discovery job statuses.
Possible values include:"RUNNING"
"WARNING"
"TERMINATED"
"FAILED"
"STOPPED"
"COMPLETED"
"COMPLETED_WITH_ISSUES"
JobStartTime
— (Date
)The time when the discovery job started.
JobEndTime
— (Date
)The time when the discovery job ended.
-
(AWS.Response)
—
Returns:
describeLocationAzureBlob(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for Microsoft Azure Blob Storage is configured.
Service Reference:
Examples:
Calling the describeLocationAzureBlob operation
var params = { LocationArn: 'STRING_VALUE' /* required */ }; datasync.describeLocationAzureBlob(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LocationArn
— (String
)Specifies the Amazon Resource Name (ARN) of your Azure Blob Storage transfer location.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The ARN of your Azure Blob Storage transfer location.
LocationUri
— (String
)The URL of the Azure Blob Storage container involved in your transfer.
AuthenticationType
— (String
)The authentication method DataSync uses to access your Azure Blob Storage. DataSync can access blob storage using a shared access signature (SAS).
Possible values include:"SAS"
BlobType
— (String
)The type of blob that you want your objects or files to be when transferring them into Azure Blob Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For more information on blob types, see the Azure Blob Storage documentation.
Possible values include:"BLOCK"
AccessTier
— (String
)The access tier that you want your objects or files transferred into. This only applies when using the location as a transfer destination. For more information, see Access tiers.
Possible values include:"HOT"
"COOL"
"ARCHIVE"
AgentArns
— (Array<String>
)The ARNs of the DataSync agents that can connect with your Azure Blob Storage container.
CreationTime
— (Date
)The time that your Azure Blob Storage transfer location was created.
-
(AWS.Response)
—
Returns:
describeLocationEfs(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for an Amazon EFS file system is configured.
Service Reference:
Examples:
Calling the describeLocationEfs operation
var params = { LocationArn: 'STRING_VALUE' /* required */ }; datasync.describeLocationEfs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LocationArn
— (String
)The Amazon Resource Name (ARN) of the Amazon EFS file system location that you want information about.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The ARN of the Amazon EFS file system location.
LocationUri
— (String
)The URL of the Amazon EFS file system location.
Ec2Config
— (map
)The subnet and security groups that DataSync uses to access your Amazon EFS file system.
SubnetArn
— required — (String
)Specifies the ARN of a subnet where DataSync creates the network interfaces for managing traffic during your transfer.
The subnet must be located:
-
In the same virtual private cloud (VPC) as the Amazon EFS file system.
-
In the same Availability Zone as at least one mount target for the Amazon EFS file system.
Note: You don't need to specify a subnet that includes a file system mount target.-
SecurityGroupArns
— required — (Array<String>
)Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system's mount target.
CreationTime
— (Date
)The time that the location was created.
AccessPointArn
— (String
)The ARN of the access point that DataSync uses to access the Amazon EFS file system.
FileSystemAccessRoleArn
— (String
)The Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system.
InTransitEncryption
— (String
)Describes whether DataSync uses Transport Layer Security (TLS) encryption when copying data to or from the Amazon EFS file system.
Possible values include:"NONE"
"TLS1_2"
-
(AWS.Response)
—
Returns:
describeLocationFsxLustre(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for an Amazon FSx for Lustre file system is configured.
Service Reference:
Examples:
Calling the describeLocationFsxLustre operation
var params = { LocationArn: 'STRING_VALUE' /* required */ }; datasync.describeLocationFsxLustre(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LocationArn
— (String
)The Amazon Resource Name (ARN) of the FSx for Lustre location to describe.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The Amazon Resource Name (ARN) of the FSx for Lustre location that was described.
LocationUri
— (String
)The URI of the FSx for Lustre location that was described.
SecurityGroupArns
— (Array<String>
)The Amazon Resource Names (ARNs) of the security groups that are configured for the FSx for Lustre file system.
CreationTime
— (Date
)The time that the FSx for Lustre location was created.
-
(AWS.Response)
—
Returns:
describeLocationFsxOntap(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for an Amazon FSx for NetApp ONTAP file system is configured.
Note: If your location uses SMB, theDescribeLocationFsxOntap
operation doesn't actually return aPassword
.Service Reference:
Examples:
Calling the describeLocationFsxOntap operation
var params = { LocationArn: 'STRING_VALUE' /* required */ }; datasync.describeLocationFsxOntap(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LocationArn
— (String
)Specifies the Amazon Resource Name (ARN) of the FSx for ONTAP file system location that you want information about.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:CreationTime
— (Date
)The time that the location was created.
LocationArn
— (String
)The ARN of the FSx for ONTAP file system location.
LocationUri
— (String
)The uniform resource identifier (URI) of the FSx for ONTAP file system location.
Protocol
— (map
)Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.
NFS
— (map
)Specifies the Network File System (NFS) protocol configuration that DataSync uses to access your FSx for OpenZFS file system or FSx for ONTAP file system's storage virtual machine (SVM).
MountOptions
— (map
)Specifies how DataSync can access a location using the NFS protocol.
Version
— (String
)Specifies the NFS version that you want DataSync to use when mounting your NFS share. If the server refuses to use the version specified, the task fails.
You can specify the following options:
-
AUTOMATIC
(default): DataSync chooses NFS version 4.1. -
NFS3
: Stateless protocol version that allows for asynchronous writes on the server. -
NFSv4_0
: Stateful, firewall-friendly protocol version that supports delegations and pseudo file systems. -
NFSv4_1
: Stateful protocol version that supports sessions, directory delegations, and parallel data processing. NFS version 4.1 also includes all features available in version 4.0.
Note: DataSync currently only supports NFS version 3 with Amazon FSx for NetApp ONTAP locations.Possible values include:"AUTOMATIC"
"NFS3"
"NFS4_0"
"NFS4_1"
-
SMB
— (map
)Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your FSx for ONTAP file system's SVM.
Domain
— (String
)Specifies the fully qualified domain name (FQDN) of the Microsoft Active Directory that your storage virtual machine (SVM) belongs to.
If you have multiple domains in your environment, configuring this setting makes sure that DataSync connects to the right SVM.
MountOptions
— (map
)Specifies the version of the Server Message Block (SMB) protocol that DataSync uses to access an SMB file server.
Version
— (String
)By default, DataSync automatically chooses an SMB protocol version based on negotiation with your SMB file server. You also can configure DataSync to use a specific SMB version, but we recommend doing this only if DataSync has trouble negotiating with the SMB file server automatically.
These are the following options for configuring the SMB version:
-
AUTOMATIC
(default): DataSync and the SMB file server negotiate the highest version of SMB that they mutually support between 2.1 and 3.1.1.This is the recommended option. If you instead choose a specific version that your file server doesn't support, you may get an
Operation Not Supported
error. -
SMB3
: Restricts the protocol negotiation to only SMB version 3.0.2. -
SMB2
: Restricts the protocol negotiation to only SMB version 2.1. -
SMB2_0
: Restricts the protocol negotiation to only SMB version 2.0. -
SMB1
: Restricts the protocol negotiation to only SMB version 1.0.Note: TheSMB1
option isn't available when creating an Amazon FSx for NetApp ONTAP location.
"AUTOMATIC"
"SMB2"
"SMB3"
"SMB1"
"SMB2_0"
-
Password
— required — (String
)Specifies the password of a user who has permission to access your SVM.
User
— required — (String
)Specifies a user that can mount and access the files, folders, and metadata in your SVM.
For information about choosing a user with the right level of access for your transfer, see Using the SMB protocol.
SecurityGroupArns
— (Array<String>
)The security groups that DataSync uses to access your FSx for ONTAP file system.
StorageVirtualMachineArn
— (String
)The ARN of the storage virtual machine (SVM) on your FSx for ONTAP file system where you're copying data to or from.
FsxFilesystemArn
— (String
)The ARN of the FSx for ONTAP file system.
-
(AWS.Response)
—
Returns:
describeLocationFsxOpenZfs(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for an Amazon FSx for OpenZFS file system is configured.
Note: Response elements related toSMB
aren't supported with theDescribeLocationFsxOpenZfs
operation.Service Reference:
Examples:
Calling the describeLocationFsxOpenZfs operation
var params = { LocationArn: 'STRING_VALUE' /* required */ }; datasync.describeLocationFsxOpenZfs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LocationArn
— (String
)The Amazon Resource Name (ARN) of the FSx for OpenZFS location to describe.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The ARN of the FSx for OpenZFS location that was described.
LocationUri
— (String
)The uniform resource identifier (URI) of the FSx for OpenZFS location that was described.
Example:
fsxz://us-west-2.fs-1234567890abcdef02/fsx/folderA/folder
SecurityGroupArns
— (Array<String>
)The ARNs of the security groups that are configured for the FSx for OpenZFS file system.
Protocol
— (map
)The type of protocol that DataSync uses to access your file system.
NFS
— (map
)Specifies the Network File System (NFS) protocol configuration that DataSync uses to access your FSx for OpenZFS file system or FSx for ONTAP file system's storage virtual machine (SVM).
MountOptions
— (map
)Specifies how DataSync can access a location using the NFS protocol.
Version
— (String
)Specifies the NFS version that you want DataSync to use when mounting your NFS share. If the server refuses to use the version specified, the task fails.
You can specify the following options:
-
AUTOMATIC
(default): DataSync chooses NFS version 4.1. -
NFS3
: Stateless protocol version that allows for asynchronous writes on the server. -
NFSv4_0
: Stateful, firewall-friendly protocol version that supports delegations and pseudo file systems. -
NFSv4_1
: Stateful protocol version that supports sessions, directory delegations, and parallel data processing. NFS version 4.1 also includes all features available in version 4.0.
Note: DataSync currently only supports NFS version 3 with Amazon FSx for NetApp ONTAP locations.Possible values include:"AUTOMATIC"
"NFS3"
"NFS4_0"
"NFS4_1"
-
SMB
— (map
)Specifies the Server Message Block (SMB) protocol configuration that DataSync uses to access your FSx for ONTAP file system's SVM.
Domain
— (String
)Specifies the fully qualified domain name (FQDN) of the Microsoft Active Directory that your storage virtual machine (SVM) belongs to.
If you have multiple domains in your environment, configuring this setting makes sure that DataSync connects to the right SVM.
MountOptions
— (map
)Specifies the version of the Server Message Block (SMB) protocol that DataSync uses to access an SMB file server.
Version
— (String
)By default, DataSync automatically chooses an SMB protocol version based on negotiation with your SMB file server. You also can configure DataSync to use a specific SMB version, but we recommend doing this only if DataSync has trouble negotiating with the SMB file server automatically.
These are the following options for configuring the SMB version:
-
AUTOMATIC
(default): DataSync and the SMB file server negotiate the highest version of SMB that they mutually support between 2.1 and 3.1.1.This is the recommended option. If you instead choose a specific version that your file server doesn't support, you may get an
Operation Not Supported
error. -
SMB3
: Restricts the protocol negotiation to only SMB version 3.0.2. -
SMB2
: Restricts the protocol negotiation to only SMB version 2.1. -
SMB2_0
: Restricts the protocol negotiation to only SMB version 2.0. -
SMB1
: Restricts the protocol negotiation to only SMB version 1.0.Note: TheSMB1
option isn't available when creating an Amazon FSx for NetApp ONTAP location.
"AUTOMATIC"
"SMB2"
"SMB3"
"SMB1"
"SMB2_0"
-
Password
— required — (String
)Specifies the password of a user who has permission to access your SVM.
User
— required — (String
)Specifies a user that can mount and access the files, folders, and metadata in your SVM.
For information about choosing a user with the right level of access for your transfer, see Using the SMB protocol.
CreationTime
— (Date
)The time that the FSx for OpenZFS location was created.
-
(AWS.Response)
—
Returns:
describeLocationFsxWindows(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for an Amazon FSx for Windows File Server file system is configured.
Service Reference:
Examples:
Calling the describeLocationFsxWindows operation
var params = { LocationArn: 'STRING_VALUE' /* required */ }; datasync.describeLocationFsxWindows(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LocationArn
— (String
)Specifies the Amazon Resource Name (ARN) of the FSx for Windows File Server location.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The ARN of the FSx for Windows File Server location.
LocationUri
— (String
)The uniform resource identifier (URI) of the FSx for Windows File Server location.
SecurityGroupArns
— (Array<String>
)The ARNs of the security groups that are configured for the FSx for Windows File Server file system.
CreationTime
— (Date
)The time that the FSx for Windows File Server location was created.
User
— (String
)The user with the permissions to mount and access the FSx for Windows File Server file system.
Domain
— (String
)The name of the Microsoft Active Directory domain that the FSx for Windows File Server file system belongs to.
-
(AWS.Response)
—
Returns:
describeLocationHdfs(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for a Hadoop Distributed File System (HDFS) is configured.
Service Reference:
Examples:
Calling the describeLocationHdfs operation
var params = { LocationArn: 'STRING_VALUE' /* required */ }; datasync.describeLocationHdfs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LocationArn
— (String
)Specifies the Amazon Resource Name (ARN) of the HDFS location.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The ARN of the HDFS location.
LocationUri
— (String
)The URI of the HDFS location.
NameNodes
— (Array<map>
)The NameNode that manages the HDFS namespace.
Hostname
— required — (String
)The hostname of the NameNode in the HDFS cluster. This value is the IP address or Domain Name Service (DNS) name of the NameNode. An agent that's installed on-premises uses this hostname to communicate with the NameNode in the network.
Port
— required — (Integer
)The port that the NameNode uses to listen to client requests.
BlockSize
— (Integer
)The size of the data blocks to write into the HDFS cluster.
ReplicationFactor
— (Integer
)The number of DataNodes to replicate the data to when writing to the HDFS cluster.
KmsKeyProviderUri
— (String
)The URI of the HDFS cluster's Key Management Server (KMS).
QopConfiguration
— (map
)The Quality of Protection (QOP) configuration, which specifies the Remote Procedure Call (RPC) and data transfer protection settings configured on the HDFS cluster.
RpcProtection
— (String
)The RPC protection setting configured on the HDFS cluster. This setting corresponds to your
Possible values include:hadoop.rpc.protection
setting in yourcore-site.xml
file on your Hadoop cluster."DISABLED"
"AUTHENTICATION"
"INTEGRITY"
"PRIVACY"
DataTransferProtection
— (String
)The data transfer protection setting configured on the HDFS cluster. This setting corresponds to your
Possible values include:dfs.data.transfer.protection
setting in thehdfs-site.xml
file on your Hadoop cluster."DISABLED"
"AUTHENTICATION"
"INTEGRITY"
"PRIVACY"
AuthenticationType
— (String
)The type of authentication used to determine the identity of the user.
Possible values include:"SIMPLE"
"KERBEROS"
SimpleUser
— (String
)The user name to identify the client on the host operating system. This parameter is used if the
AuthenticationType
is defined asSIMPLE
.KerberosPrincipal
— (String
)The Kerberos principal with access to the files and folders on the HDFS cluster. This parameter is used if the
AuthenticationType
is defined asKERBEROS
.AgentArns
— (Array<String>
)The ARNs of the DataSync agents that can connect with your HDFS cluster.
CreationTime
— (Date
)The time that the HDFS location was created.
-
(AWS.Response)
—
Returns:
describeLocationNfs(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for a Network File System (NFS) file server is configured.
Service Reference:
Examples:
Calling the describeLocationNfs operation
var params = { LocationArn: 'STRING_VALUE' /* required */ }; datasync.describeLocationNfs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LocationArn
— (String
)Specifies the Amazon Resource Name (ARN) of the NFS location that you want information about.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The ARN of the NFS location.
LocationUri
— (String
)The URI of the NFS location.
OnPremConfig
— (map
)The DataSync agents that are connecting to a Network File System (NFS) location.
AgentArns
— required — (Array<String>
)The Amazon Resource Names (ARNs) of the agents connecting to a transfer location.
MountOptions
— (map
)The mount options that DataSync uses to mount your NFS file server.
Version
— (String
)Specifies the NFS version that you want DataSync to use when mounting your NFS share. If the server refuses to use the version specified, the task fails.
You can specify the following options:
-
AUTOMATIC
(default): DataSync chooses NFS version 4.1. -
NFS3
: Stateless protocol version that allows for asynchronous writes on the server. -
NFSv4_0
: Stateful, firewall-friendly protocol version that supports delegations and pseudo file systems. -
NFSv4_1
: Stateful protocol version that supports sessions, directory delegations, and parallel data processing. NFS version 4.1 also includes all features available in version 4.0.
Note: DataSync currently only supports NFS version 3 with Amazon FSx for NetApp ONTAP locations.Possible values include:"AUTOMATIC"
"NFS3"
"NFS4_0"
"NFS4_1"
-
CreationTime
— (Date
)The time when the NFS location was created.
-
(AWS.Response)
—
Returns:
describeLocationObjectStorage(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for an object storage system is configured.
Service Reference:
Examples:
Calling the describeLocationObjectStorage operation
var params = { LocationArn: 'STRING_VALUE' /* required */ }; datasync.describeLocationObjectStorage(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LocationArn
— (String
)Specifies the Amazon Resource Name (ARN) of the object storage system location.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The ARN of the object storage system location.
LocationUri
— (String
)The URI of the object storage system location.
AccessKey
— (String
)The access key (for example, a user name) required to authenticate with the object storage system.
ServerPort
— (Integer
)The port that your object storage server accepts inbound network traffic on (for example, port 443).
ServerProtocol
— (String
)The protocol that your object storage system uses to communicate.
Possible values include:"HTTPS"
"HTTP"
AgentArns
— (Array<String>
)The ARNs of the DataSync agents that can connect with your object storage system.
CreationTime
— (Date
)The time that the location was created.
ServerCertificate
— (Buffer(Node.js), Typed Array(Browser)
)The certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA).
-
(AWS.Response)
—
Returns:
describeLocationS3(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for an S3 bucket is configured.
Service Reference:
Examples:
Calling the describeLocationS3 operation
var params = { LocationArn: 'STRING_VALUE' /* required */ }; datasync.describeLocationS3(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LocationArn
— (String
)Specifies the Amazon Resource Name (ARN) of the Amazon S3 location.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The ARN of the Amazon S3 location.
LocationUri
— (String
)The URL of the Amazon S3 location that was described.
S3StorageClass
— (String
)When Amazon S3 is a destination location, this is the storage class that you chose for your objects.
Some storage classes have behaviors that can affect your Amazon S3 storage costs. For more information, see Storage class considerations with Amazon S3 transfers.
Possible values include:"STANDARD"
"STANDARD_IA"
"ONEZONE_IA"
"INTELLIGENT_TIERING"
"GLACIER"
"DEEP_ARCHIVE"
"OUTPOSTS"
"GLACIER_INSTANT_RETRIEVAL"
S3Config
— (map
)Specifies the Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket.
For more information, see Accessing S3 buckets.
BucketAccessRoleArn
— required — (String
)Specifies the ARN of the IAM role that DataSync uses to access your S3 bucket.
AgentArns
— (Array<String>
)The ARNs of the DataSync agents deployed on your Outpost when using working with Amazon S3 on Outposts.
For more information, see Deploy your DataSync agent on Outposts.
CreationTime
— (Date
)The time that the Amazon S3 location was created.
-
(AWS.Response)
—
Returns:
describeLocationSmb(params = {}, callback) ⇒ AWS.Request
Provides details about how an DataSync transfer location for a Server Message Block (SMB) file server is configured.
Service Reference:
Examples:
Calling the describeLocationSmb operation
var params = { LocationArn: 'STRING_VALUE' /* required */ }; datasync.describeLocationSmb(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LocationArn
— (String
)Specifies the Amazon Resource Name (ARN) of the SMB location that you want information about.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:LocationArn
— (String
)The ARN of the SMB location.
LocationUri
— (String
)The URI of the SMB location.
AgentArns
— (Array<String>
)The ARNs of the DataSync agents that can connect with your SMB file server.
User
— (String
)The user that can mount and access the files, folders, and file metadata in your SMB file server.
Domain
— (String
)The name of the Microsoft Active Directory domain that the SMB file server belongs to.
MountOptions
— (map
)The protocol that DataSync use to access your SMB file.
Version
— (String
)By default, DataSync automatically chooses an SMB protocol version based on negotiation with your SMB file server. You also can configure DataSync to use a specific SMB version, but we recommend doing this only if DataSync has trouble negotiating with the SMB file server automatically.
These are the following options for configuring the SMB version:
-
AUTOMATIC
(default): DataSync and the SMB file server negotiate the highest version of SMB that they mutually support between 2.1 and 3.1.1.This is the recommended option. If you instead choose a specific version that your file server doesn't support, you may get an
Operation Not Supported
error. -
SMB3
: Restricts the protocol negotiation to only SMB version 3.0.2. -
SMB2
: Restricts the protocol negotiation to only SMB version 2.1. -
SMB2_0
: Restricts the protocol negotiation to only SMB version 2.0. -
SMB1
: Restricts the protocol negotiation to only SMB version 1.0.Note: TheSMB1
option isn't available when creating an Amazon FSx for NetApp ONTAP location.
"AUTOMATIC"
"SMB2"
"SMB3"
"SMB1"
"SMB2_0"
-
CreationTime
— (Date
)The time that the SMB location was created.
-
(AWS.Response)
—
Returns:
describeStorageSystem(params = {}, callback) ⇒ AWS.Request
Returns information about an on-premises storage system that you're using with DataSync Discovery.
Service Reference:
Examples:
Calling the describeStorageSystem operation
var params = { StorageSystemArn: 'STRING_VALUE' /* required */ }; datasync.describeStorageSystem(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
StorageSystemArn
— (String
)Specifies the Amazon Resource Name (ARN) of an on-premises storage system that you're using with DataSync Discovery.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:StorageSystemArn
— (String
)The ARN of the on-premises storage system that the discovery job looked at.
ServerConfiguration
— (map
)The server name and network port required to connect with your on-premises storage system's management interface.
ServerHostname
— required — (String
)The domain name or IP address of your storage system's management interface.
ServerPort
— (Integer
)The network port for accessing the storage system's management interface.
SystemType
— (String
)The type of on-premises storage system.
Note: DataSync Discovery currently only supports NetApp Fabric-Attached Storage (FAS) and All Flash FAS (AFF) systems running ONTAP 9.7 or later.Possible values include:"NetAppONTAP"
AgentArns
— (Array<String>
)The ARN of the DataSync agent that connects to and reads from your on-premises storage system.
Name
— (String
)The name that you gave your on-premises storage system when adding it to DataSync Discovery.
ErrorMessage
— (String
)Describes the connectivity error that the DataSync agent is encountering with your on-premises storage system.
ConnectivityStatus
— (String
)Indicates whether your DataSync agent can connect to your on-premises storage system.
Possible values include:"PASS"
"FAIL"
"UNKNOWN"
CloudWatchLogGroupArn
— (String
)The ARN of the Amazon CloudWatch log group that's used to monitor and log discovery job events.
CreationTime
— (Date
)The time when you added the on-premises storage system to DataSync Discovery.
SecretsManagerArn
— (String
)The ARN of the secret that stores your on-premises storage system's credentials. DataSync Discovery stores these credentials in Secrets Manager.
-
(AWS.Response)
—
Returns:
describeStorageSystemResourceMetrics(params = {}, callback) ⇒ AWS.Request
Returns information, including performance data and capacity usage, which DataSync Discovery collects about a specific resource in your-premises storage system.
Service Reference:
Examples:
Calling the describeStorageSystemResourceMetrics operation
var params = { DiscoveryJobArn: 'STRING_VALUE', /* required */ ResourceId: 'STRING_VALUE', /* required */ ResourceType: SVM | VOLUME | CLUSTER, /* required */ EndTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE', StartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789 }; datasync.describeStorageSystemResourceMetrics(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
DiscoveryJobArn
— (String
)Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your on-premises storage system.
ResourceType
— (String
)Specifies the kind of storage system resource that you want information about.
Possible values include:"SVM"
"VOLUME"
"CLUSTER"
ResourceId
— (String
)Specifies the universally unique identifier (UUID) of the storage system resource that you want information about.
StartTime
— (Date
)Specifies a time within the total duration that the discovery job ran. To see information gathered during a certain time frame, use this parameter with
EndTime
.EndTime
— (Date
)Specifies a time within the total duration that the discovery job ran. To see information gathered during a certain time frame, use this parameter with
StartTime
.MaxResults
— (Integer
)Specifies how many results that you want in the response.
NextToken
— (String
)Specifies an opaque string that indicates the position to begin the next list of results in the response.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Metrics
— (Array<map>
)The details that your discovery job collected about your storage system resource.
Timestamp
— (Date
)The time when DataSync Discovery collected this information from the resource.
P95Metrics
— (map
)The types of performance data that DataSync Discovery collects about the on-premises storage system resource.
IOPS
— (map
)The IOPS peaks for an on-premises storage system resource. Each data point represents the 95th percentile peak value during a 1-hour interval.
Read
— (Float
)Peak IOPS related to read operations.
Write
— (Float
)Peak IOPS related to write operations.
Other
— (Float
)Peak IOPS unrelated to read and write operations.
Total
— (Float
)Peak total IOPS on your on-premises storage system resource.
Throughput
— (map
)The throughput peaks for an on-premises storage system resource. Each data point represents the 95th percentile peak value during a 1-hour interval.
Read
— (Float
)Peak throughput related to read operations.
Write
— (Float
)Peak throughput related to write operations.
Other
— (Float
)Peak throughput unrelated to read and write operations.
Total
— (Float
)Peak total throughput on your on-premises storage system resource.
Latency
— (map
)The latency peaks for an on-premises storage system resource. Each data point represents the 95th percentile peak value during a 1-hour interval.
Read
— (Float
)Peak latency for read operations.
Write
— (Float
)Peak latency for write operations.
Other
— (Float
)Peak latency for operations unrelated to read and write operations.
Capacity
— (map
)The storage capacity of the on-premises storage system resource.
Used
— (Integer
)The amount of space that's being used in a storage system resource.
Provisioned
— (Integer
)The total amount of space available in a storage system resource.
LogicalUsed
— (Integer
)The amount of space that's being used in a storage system resource without accounting for compression or deduplication.
ClusterCloudStorageUsed
— (Integer
)The amount of space in the cluster that's in cloud storage (for example, if you're using data tiering).
ResourceId
— (String
)The universally unique identifier (UUID) of the on-premises storage system resource.
ResourceType
— (String
)The type of on-premises storage system resource.
Possible values include:"SVM"
"VOLUME"
"CLUSTER"
NextToken
— (String
)The opaque string that indicates the position to begin the next list of results in the response.
-
(AWS.Response)
—
Returns:
describeStorageSystemResources(params = {}, callback) ⇒ AWS.Request
Returns information that DataSync Discovery collects about resources in your on-premises storage system.
Service Reference:
Examples:
Calling the describeStorageSystemResources operation
var params = { DiscoveryJobArn: 'STRING_VALUE', /* required */ ResourceType: SVM | VOLUME | CLUSTER, /* required */ Filter: { '<DiscoveryResourceFilter>': [ 'STRING_VALUE', /* more items */ ], /* '<DiscoveryResourceFilter>': ... */ }, MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE', ResourceIds: [ 'STRING_VALUE', /* more items */ ] }; datasync.describeStorageSystemResources(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
DiscoveryJobArn
— (String
)Specifies the Amazon Resource Name (ARN) of the discovery job that's collecting data from your on-premises storage system.
ResourceType
— (String
)Specifies what kind of storage system resources that you want information about.
Possible values include:"SVM"
"VOLUME"
"CLUSTER"
ResourceIds
— (Array<String>
)Specifies the universally unique identifiers (UUIDs) of the storage system resources that you want information about. You can't use this parameter in combination with the
Filter
parameter.Filter
— (map<Array<String>>
)Filters the storage system resources that you want returned. For example, this might be volumes associated with a specific storage virtual machine (SVM).
MaxResults
— (Integer
)Specifies the maximum number of storage system resources that you want to list in a response.
NextToken
— (String
)Specifies an opaque string that indicates the position to begin the next list of results in the response.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:ResourceDetails
— (map
)The information collected about your storage system's resources. A response can also include Amazon Web Services storage service recommendations.
For more information, see storage resource information collected by and recommendations provided by DataSync Discovery.
NetAppONTAPSVMs
— (Array<map>
)The information that DataSync Discovery collects about storage virtual machines (SVMs) in your on-premises storage system.
ClusterUuid
— (String
)The universally unique identifier (UUID) of the cluster associated with the SVM.
ResourceId
— (String
)The UUID of the SVM.
SvmName
— (String
)The name of the SVM
CifsShareCount
— (Integer
)The number of CIFS shares in the SVM.
EnabledProtocols
— (Array<String>
)The data transfer protocols (such as NFS) configured for the SVM.
TotalCapacityUsed
— (Integer
)The storage space that's being used in the SVM.
TotalCapacityProvisioned
— (Integer
)The total storage space that's available in the SVM.
TotalLogicalCapacityUsed
— (Integer
)The storage space that's being used in the SVM without accounting for compression or deduplication.
MaxP95Performance
— (map
)The performance data that DataSync Discovery collects about the SVM.
IopsRead
— (Float
)Peak IOPS related to read operations.
IopsWrite
— (Float
)Peak IOPS related to write operations.
IopsOther
— (Float
)Peak IOPS unrelated to read and write operations.
IopsTotal
— (Float
)Peak total IOPS on your on-premises storage system resource.
ThroughputRead
— (Float
)Peak throughput related to read operations.
ThroughputWrite
— (Float
)Peak throughput related to write operations.
ThroughputOther
— (Float
)Peak throughput unrelated to read and write operations.
ThroughputTotal
— (Float
)Peak total throughput on your on-premises storage system resource.
LatencyRead
— (Float
)Peak latency for read operations.
LatencyWrite
— (Float
)Peak latency for write operations.
LatencyOther
— (Float
)Peak latency for operations unrelated to read and write operations.
Recommendations
— (Array<map>
)The Amazon Web Services storage services that DataSync Discovery recommends for the SVM. For more information, see Recommendations provided by DataSync Discovery.
StorageType
— (String
)A recommended Amazon Web Services storage service that you can migrate data to based on information that DataSync Discovery collects about your on-premises storage system.
StorageConfiguration
— (map<String>
)Information about how you can set up a recommended Amazon Web Services storage service.
EstimatedMonthlyStorageCost
— (String
)The estimated monthly cost of the recommended Amazon Web Services storage service.
NfsExportedVolumes
— (Integer
)The number of NFS volumes in the SVM.
RecommendationStatus
— (String
)Indicates whether DataSync Discovery recommendations for the SVM are ready to view, incomplete, or can't be determined.
For more information, see Recommendation statuses.
Possible values include:"NONE"
"IN_PROGRESS"
"COMPLETED"
"FAILED"
TotalSnapshotCapacityUsed
— (Integer
)The amount of storage in the SVM that's being used for snapshots.
LunCount
— (Integer
)The number of LUNs (logical unit numbers) in the SVM.
NetAppONTAPVolumes
— (Array<map>
)The information that DataSync Discovery collects about volumes in your on-premises storage system.
VolumeName
— (String
)The name of the volume.
ResourceId
— (String
)The universally unique identifier (UUID) of the volume.
CifsShareCount
— (Integer
)The number of CIFS shares in the volume.
SecurityStyle
— (String
)The volume's security style (such as Unix or NTFS).
SvmUuid
— (String
)The UUID of the storage virtual machine (SVM) associated with the volume.
SvmName
— (String
)The name of the SVM associated with the volume.
CapacityUsed
— (Integer
)The storage space that's being used in the volume.
CapacityProvisioned
— (Integer
)The total storage space that's available in the volume.
LogicalCapacityUsed
— (Integer
)The storage space that's being used in the volume without accounting for compression or deduplication.
NfsExported
— (Boolean
)The number of NFS volumes in the volume.
SnapshotCapacityUsed
— (Integer
)The amount of storage in the volume that's being used for snapshots.
MaxP95Performance
— (map
)The performance data that DataSync Discovery collects about the volume.
IopsRead
— (Float
)Peak IOPS related to read operations.
IopsWrite
— (Float
)Peak IOPS related to write operations.
IopsOther
— (Float
)Peak IOPS unrelated to read and write operations.
IopsTotal
— (Float
)Peak total IOPS on your on-premises storage system resource.
ThroughputRead
— (Float
)Peak throughput related to read operations.
ThroughputWrite
— (Float
)Peak throughput related to write operations.
ThroughputOther
— (Float
)Peak throughput unrelated to read and write operations.
ThroughputTotal
— (Float
)Peak total throughput on your on-premises storage system resource.
LatencyRead
— (Float
)Peak latency for read operations.
LatencyWrite
— (Float
)Peak latency for write operations.
LatencyOther
— (Float
)Peak latency for operations unrelated to read and write operations.
Recommendations
— (Array<map>
)The Amazon Web Services storage services that DataSync Discovery recommends for the volume. For more information, see Recommendations provided by DataSync Discovery.
StorageType
— (String
)A recommended Amazon Web Services storage service that you can migrate data to based on information that DataSync Discovery collects about your on-premises storage system.
StorageConfiguration
— (map<String>
)Information about how you can set up a recommended Amazon Web Services storage service.
EstimatedMonthlyStorageCost
— (String
)The estimated monthly cost of the recommended Amazon Web Services storage service.
RecommendationStatus
— (String
)Indicates whether DataSync Discovery recommendations for the volume are ready to view, incomplete, or can't be determined.
For more information, see Recommendation statuses.
Possible values include:"NONE"
"IN_PROGRESS"
"COMPLETED"
"FAILED"
LunCount
— (Integer
)The number of LUNs (logical unit numbers) in the volume.
NetAppONTAPClusters
— (Array<map>
)The information that DataSync Discovery collects about the cluster in your on-premises storage system.
CifsShareCount
— (Integer
)The number of CIFS shares in the cluster.
NfsExportedVolumes
— (Integer
)The number of NFS volumes in the cluster.
ResourceId
— (String
)The universally unique identifier (UUID) of the cluster.
ClusterName
— (String
)The name of the cluster.
MaxP95Performance
— (map
)The performance data that DataSync Discovery collects about the cluster.
IopsRead
— (Float
)Peak IOPS related to read operations.
IopsWrite
— (Float
)Peak IOPS related to write operations.
IopsOther
— (Float
)Peak IOPS unrelated to read and write operations.
IopsTotal
— (Float
)Peak total IOPS on your on-premises storage system resource.
ThroughputRead
— (Float
)Peak throughput related to read operations.
ThroughputWrite
— (Float
)Peak throughput related to write operations.
ThroughputOther
— (Float
)Peak throughput unrelated to read and write operations.
ThroughputTotal
— (Float
)Peak total throughput on your on-premises storage system resource.
LatencyRead
— (Float
)Peak latency for read operations.
LatencyWrite
— (Float
)Peak latency for write operations.
LatencyOther
— (Float
)Peak latency for operations unrelated to read and write operations.
ClusterBlockStorageSize
— (Integer
)The total storage space that's available in the cluster.
ClusterBlockStorageUsed
— (Integer
)The storage space that's being used in a cluster.
ClusterBlockStorageLogicalUsed
— (Integer
)The storage space that's being used in the cluster without accounting for compression or deduplication.
Recommendations
— (Array<map>
)The Amazon Web Services storage services that DataSync Discovery recommends for the cluster. For more information, see Recommendations provided by DataSync Discovery.
StorageType
— (String
)A recommended Amazon Web Services storage service that you can migrate data to based on information that DataSync Discovery collects about your on-premises storage system.
StorageConfiguration
— (map<String>
)Information about how you can set up a recommended Amazon Web Services storage service.
EstimatedMonthlyStorageCost
— (String
)The estimated monthly cost of the recommended Amazon Web Services storage service.
RecommendationStatus
— (String
)Indicates whether DataSync Discovery recommendations for the cluster are ready to view, incomplete, or can't be determined.
For more information, see Recommendation statuses.
Possible values include:"NONE"
"IN_PROGRESS"
"COMPLETED"
"FAILED"
LunCount
— (Integer
)The number of LUNs (logical unit numbers) in the cluster.
ClusterCloudStorageUsed
— (Integer
)The amount of space in the cluster that's in cloud storage (for example, if you're using data tiering).
NextToken
— (String
)The opaque string that indicates the position to begin the next list of results in the response.
-
(AWS.Response)
—
Returns:
describeTask(params = {}, callback) ⇒ AWS.Request
Provides information about a task, which defines where and how DataSync transfers your data.
Service Reference:
Examples:
Calling the describeTask operation
var params = { TaskArn: 'STRING_VALUE' /* required */ }; datasync.describeTask(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
TaskArn
— (String
)Specifies the Amazon Resource Name (ARN) of the transfer task that you want information about.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:TaskArn
— (String
)The ARN of your task.
Status
— (String
)The status of your task. For information about what each status means, see Task statuses.
Possible values include:"AVAILABLE"
"CREATING"
"QUEUED"
"RUNNING"
"UNAVAILABLE"
Name
— (String
)The name of your task.
CurrentTaskExecutionArn
— (String
)The ARN of the most recent task execution.
SourceLocationArn
— (String
)The ARN of your transfer's source location.
DestinationLocationArn
— (String
)The ARN of your transfer's destination location.
CloudWatchLogGroupArn
— (String
)The Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.
For more information, see Monitoring DataSync with Amazon CloudWatch.
SourceNetworkInterfaceArns
— (Array<String>
)The ARNs of the network interfaces that DataSync created for your source location.
DestinationNetworkInterfaceArns
— (Array<String>
)The ARNs of the network interfaces that DataSync created for your destination location.
Options
— (map
)The task's settings. For example, what file metadata gets preserved, how data integrity gets verified at the end of your transfer, bandwidth limits, among other options.
VerifyMode
— (String
)Specifies how and when DataSync checks the integrity of your data during a transfer.
-
ONLY_FILES_TRANSFERRED
(recommended) - DataSync calculates the checksum of transferred files and metadata at the source location. At the end of the transfer, DataSync then compares this checksum to the checksum calculated on those files at the destination.We recommend this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations.
-
POINT_IN_TIME_CONSISTENT
(default) - At the end of the transfer, DataSync scans the entire source and destination to verify that both locations are fully synchronized.If you use a manifest, DataSync only scans and verifies what's listed in the manifest.
You can't use this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations.
-
NONE
- DataSync doesn't run additional verification at the end of the transfer. All data transmissions are still integrity-checked with checksum verification during the transfer.
"POINT_IN_TIME_CONSISTENT"
"ONLY_FILES_TRANSFERRED"
"NONE"
-
OverwriteMode
— (String
)Specifies whether DataSync should modify or preserve data at the destination location.
-
ALWAYS
(default) - DataSync modifies data in the destination location when source data (including metadata) has changed.If DataSync overwrites objects, you might incur additional charges for certain Amazon S3 storage classes (for example, for retrieval or early deletion). For more information, see Storage class considerations with Amazon S3 transfers.
-
NEVER
- DataSync doesn't overwrite data in the destination location even if the source data has changed. You can use this option to protect against overwriting changes made to files or objects in the destination.
"ALWAYS"
"NEVER"
-
Atime
— (String
)Specifies whether to preserve metadata indicating the last time a file was read or written to.
Note: The behavior ofAtime
isn't fully standard across platforms, so DataSync can only do this on a best-effort basis.-
BEST_EFFORT
(default) - DataSync attempts to preserve the originalAtime
attribute on all source files (that is, the version before thePREPARING
phase of the task execution). This option is recommended. -
NONE
- IgnoresAtime
.
Note: IfPossible values include:Atime
is set toBEST_EFFORT
,Mtime
must be set toPRESERVE
. IfAtime
is set toNONE
,Mtime
must also beNONE
."NONE"
"BEST_EFFORT"
-
Mtime
— (String
)Specifies whether to preserve metadata indicating the last time that a file was written to before the
PREPARING
phase of your task execution. This option is required when you need to run the a task more than once.-
PRESERVE
(default) - Preserves originalMtime
, which is recommended. -
NONE
- IgnoresMtime
.
Note: IfPossible values include:Mtime
is set toPRESERVE
,Atime
must be set toBEST_EFFORT
. IfMtime
is set toNONE
,Atime
must also be set toNONE
."NONE"
"PRESERVE"
-
Uid
— (String
)Specifies the POSIX user ID (UID) of the file's owner.
-
INT_VALUE
(default) - Preserves the integer value of UID and group ID (GID), which is recommended. -
NONE
- Ignores UID and GID.
For more information, see Metadata copied by DataSync.
Possible values include:"NONE"
"INT_VALUE"
"NAME"
"BOTH"
-
Gid
— (String
)Specifies the POSIX group ID (GID) of the file's owners.
-
INT_VALUE
(default) - Preserves the integer value of user ID (UID) and GID, which is recommended. -
NONE
- Ignores UID and GID.
For more information, see Metadata copied by DataSync.
Possible values include:"NONE"
"INT_VALUE"
"NAME"
"BOTH"
-
PreserveDeletedFiles
— (String
)Specifies whether files in the destination location that don't exist in the source should be preserved. This option can affect your Amazon S3 storage cost. If your task deletes objects, you might incur minimum storage duration charges for certain storage classes. For detailed information, see Considerations when working with Amazon S3 storage classes in DataSync.
-
PRESERVE
(default) - Ignores such destination files, which is recommended. -
REMOVE
- Deletes destination files that aren’t present in the source.
Note: If you set this parameter toPossible values include:REMOVE
, you can't setTransferMode
toALL
. When you transfer all data, DataSync doesn't scan your destination location and doesn't know what to delete."PRESERVE"
"REMOVE"
-
PreserveDevices
— (String
)Specifies whether DataSync should preserve the metadata of block and character devices in the source location and recreate the files with that device name and metadata on the destination. DataSync copies only the name and metadata of such devices.
Note: DataSync can't copy the actual contents of these devices because they're nonterminal and don't return an end-of-file (EOF) marker.-
NONE
(default) - Ignores special devices (recommended). -
PRESERVE
- Preserves character and block device metadata. This option currently isn't supported for Amazon EFS.
"NONE"
"PRESERVE"
-
PosixPermissions
— (String
)Specifies which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file.
For more information, see Metadata copied by DataSync.
-
PRESERVE
(default) - Preserves POSIX-style permissions, which is recommended. -
NONE
- Ignores POSIX-style permissions.
Note: DataSync can preserve extant permissions of a source location.Possible values include:"NONE"
"PRESERVE"
-
BytesPerSecond
— (Integer
)Limits the bandwidth used by a DataSync task. For example, if you want DataSync to use a maximum of 1 MB, set this value to
1048576
(=1024*1024
).TaskQueueing
— (String
)Specifies whether your transfer tasks should be put into a queue during certain scenarios when running multiple tasks. This is
Possible values include:ENABLED
by default."ENABLED"
"DISABLED"
LogLevel
— (String
)Specifies the type of logs that DataSync publishes to a Amazon CloudWatch Logs log group. To specify the log group, see CloudWatchLogGroupArn.
-
BASIC
- Publishes logs with only basic information (such as transfer errors). -
TRANSFER
- Publishes logs for all files or objects that your DataSync task transfers and performs data-integrity checks on. -
OFF
- No logs are published.
"OFF"
"BASIC"
"TRANSFER"
-
TransferMode
— (String
)Determines whether DataSync transfers only the data and metadata that differ between the source and the destination location or transfers all the content from the source (without comparing what's in the destination).
-
CHANGED
(default) - DataSync copies only data or metadata that is new or different content from the source location to the destination location. -
ALL
- DataSync copies everything in the source to the destination without comparing differences between the locations.
"CHANGED"
"ALL"
-
SecurityDescriptorCopyFlags
— (String
)Specifies which components of the SMB security descriptor are copied from source to destination objects.
This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations or between two FSx for Windows File Server locations. For more information, see how DataSync handles metadata.
-
OWNER_DACL
(default) - For each copied object, DataSync copies the following metadata:-
The object owner.
-
NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.
DataSync won't copy NTFS system access control lists (SACLs) with this option.
-
-
OWNER_DACL_SACL
- For each copied object, DataSync copies the following metadata:-
The object owner.
-
NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.
-
SACLs, which are used by administrators to log attempts to access a secured object.
Copying SACLs requires granting additional permissions to the Windows user that DataSync uses to access your SMB location. For information about choosing a user with the right permissions, see required permissions for SMB, FSx for Windows File Server, or FSx for ONTAP (depending on the type of location in your transfer).
-
-
NONE
- None of the SMB security descriptor components are copied. Destination objects are owned by the user that was provided for accessing the destination location. DACLs and SACLs are set based on the destination server’s configuration.
"NONE"
"OWNER_DACL"
"OWNER_DACL_SACL"
-
ObjectTags
— (String
)Specifies whether you want DataSync to
Possible values include:PRESERVE
object tags (default behavior) when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify theNONE
value."PRESERVE"
"NONE"
Excludes
— (Array<map>
)The exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters.
FilterType
— (String
)The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.
Possible values include:"SIMPLE_PATTERN"
Value
— (String
)A single filter string that consists of the patterns to include or exclude. The patterns are delimited by "|" (that is, a pipe), for example:
/folder1|/folder2
Schedule
— (map
)The schedule for when you want your task to run. For more information, see Scheduling your task.
ScheduleExpression
— required — (String
)Specifies your task schedule by using a cron expression in UTC time. For information about cron expression syntax, see the Amazon EventBridge User Guide .
Status
— (String
)Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there can be situations where you need to disable it. For example, you might need to pause a recurring transfer to fix an issue with your task or perform maintenance on your storage system.
DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails.
Possible values include:"ENABLED"
"DISABLED"
ErrorCode
— (String
)If there's an issue with your task, you can use the error code to help you troubleshoot the problem. For more information, see Troubleshooting issues with DataSync transfers.
ErrorDetail
— (String
)If there's an issue with your task, you can use the error details to help you troubleshoot the problem. For more information, see Troubleshooting issues with DataSync transfers.
CreationTime
— (Date
)The time that the task was created.
Includes
— (Array<map>
)The include filters that define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters.
FilterType
— (String
)The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.
Possible values include:"SIMPLE_PATTERN"
Value
— (String
)A single filter string that consists of the patterns to include or exclude. The patterns are delimited by "|" (that is, a pipe), for example:
/folder1|/folder2
ManifestConfig
— (map
)The configuration of the manifest that lists the files or objects that you want DataSync to transfer. For more information, see Specifying what DataSync transfers by using a manifest.
Action
— (String
)Specifies what DataSync uses the manifest for.
Possible values include:"TRANSFER"
Format
— (String
)Specifies the file format of your manifest. For more information, see Creating a manifest.
Possible values include:"CSV"
Source
— (map
)Specifies the manifest that you want DataSync to use and where it's hosted.
Note: You must specify this parameter if you're configuring a new manifest on or after February 7, 2024. If you don't, you'll get a 400 status code andValidationException
error stating that you're missing the IAM role for DataSync to access the S3 bucket where you're hosting your manifest. For more information, see Providing DataSync access to your manifest.S3
— required — (map
)Specifies the S3 bucket where you're hosting your manifest.
ManifestObjectPath
— required — (String
)Specifies the Amazon S3 object key of your manifest. This can include a prefix (for example,
prefix/my-manifest.csv
).BucketAccessRoleArn
— required — (String
)Specifies the Identity and Access Management (IAM) role that allows DataSync to access your manifest. For more information, see Providing DataSync access to your manifest.
S3BucketArn
— required — (String
)Specifies the Amazon Resource Name (ARN) of the S3 bucket where you're hosting your manifest.
ManifestObjectVersionId
— (String
)Specifies the object version ID of the manifest that you want DataSync to use. If you don't set this, DataSync uses the latest version of the object.
TaskReportConfig
— (map
)The configuration of your task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports.
Destination
— (map
)Specifies the Amazon S3 bucket where DataSync uploads your task report. For more information, see Task reports.
S3
— (map
)Specifies the Amazon S3 bucket where DataSync uploads your task report.
Subdirectory
— (String
)Specifies a bucket prefix for your report.
S3BucketArn
— required — (String
)Specifies the ARN of the S3 bucket where DataSync uploads your report.
BucketAccessRoleArn
— required — (String
)Specifies the Amazon Resource Name (ARN) of the IAM policy that allows DataSync to upload a task report to your S3 bucket. For more information, see Allowing DataSync to upload a task report to an Amazon S3 bucket.
OutputType
— (String
)Specifies the type of task report that you want:
-
SUMMARY_ONLY
: Provides necessary details about your task, including the number of files, objects, and directories transferred and transfer duration. -
STANDARD
: Provides complete details about your task, including a full list of files, objects, and directories that were transferred, skipped, verified, and more.
"SUMMARY_ONLY"
"STANDARD"
-
ReportLevel
— (String
)Specifies whether you want your task report to include only what went wrong with your transfer or a list of what succeeded and didn't.
-
ERRORS_ONLY
: A report shows what DataSync was unable to transfer, skip, verify, and delete. -
SUCCESSES_AND_ERRORS
: A report shows what DataSync was able and unable to transfer, skip, verify, and delete.
"ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
-
ObjectVersionIds
— (String
)Specifies whether your task report includes the new version of each object transferred into an S3 bucket. This only applies if you enable versioning on your bucket. Keep in mind that setting this to
Possible values include:INCLUDE
can increase the duration of your task execution."INCLUDE"
"NONE"
Overrides
— (map
)Customizes the reporting level for aspects of your task report. For example, your report might generally only include errors, but you could specify that you want a list of successes and errors just for the files that DataSync attempted to delete in your destination location.
Transferred
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to transfer.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
Verified
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to verify at the end of your transfer.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
Deleted
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to delete in your destination location. This only applies if you configure your task to delete data in the destination that isn't in the source.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
Skipped
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to skip during your transfer.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
ScheduleDetails
— (map
)The details about your task schedule.
StatusUpdateTime
— (Date
)Indicates the last time the status of your task schedule changed. For example, if DataSync automatically disables your schedule because of a repeated error, you can see when the schedule was disabled.
DisabledReason
— (String
)Provides a reason if the task schedule is disabled.
If your schedule is disabled by
USER
, you see aManually disabled by user.
message.If your schedule is disabled by
SERVICE
, you see an error message to help you understand why the task keeps failing. For information on resolving DataSync errors, see Troubleshooting issues with DataSync transfers.DisabledBy
— (String
)Indicates how your task schedule was disabled.
-
USER
- Your schedule was manually disabled by using the UpdateTask operation or DataSync console. -
SERVICE
- Your schedule was automatically disabled by DataSync because the task failed repeatedly with the same error.
"USER"
"SERVICE"
-
-
(AWS.Response)
—
Returns:
describeTaskExecution(params = {}, callback) ⇒ AWS.Request
Provides information about an execution of your DataSync task. You can use this operation to help monitor the progress of an ongoing transfer or check the results of the transfer.
Service Reference:
Examples:
Calling the describeTaskExecution operation
var params = { TaskExecutionArn: 'STRING_VALUE' /* required */ }; datasync.describeTaskExecution(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
TaskExecutionArn
— (String
)Specifies the Amazon Resource Name (ARN) of the task execution that you want information about.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:TaskExecutionArn
— (String
)The ARN of the task execution that you wanted information about.
TaskExecutionArn
is hierarchical and includesTaskArn
for the task that was executed.For example, a
TaskExecution
value with the ARNarn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b
executed the task with the ARNarn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2
.Status
— (String
)The status of the task execution.
Possible values include:"QUEUED"
"CANCELLING"
"LAUNCHING"
"PREPARING"
"TRANSFERRING"
"VERIFYING"
"SUCCESS"
"ERROR"
Options
— (map
)Indicates how your transfer task is configured. These options include how DataSync handles files, objects, and their associated metadata during your transfer. You also can specify how to verify data integrity, set bandwidth limits for your task, among other options.
Each option has a default value. Unless you need to, you don't have to configure any option before calling StartTaskExecution.
You also can override your task options for each task execution. For example, you might want to adjust the
LogLevel
for an individual execution.VerifyMode
— (String
)Specifies how and when DataSync checks the integrity of your data during a transfer.
-
ONLY_FILES_TRANSFERRED
(recommended) - DataSync calculates the checksum of transferred files and metadata at the source location. At the end of the transfer, DataSync then compares this checksum to the checksum calculated on those files at the destination.We recommend this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations.
-
POINT_IN_TIME_CONSISTENT
(default) - At the end of the transfer, DataSync scans the entire source and destination to verify that both locations are fully synchronized.If you use a manifest, DataSync only scans and verifies what's listed in the manifest.
You can't use this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations.
-
NONE
- DataSync doesn't run additional verification at the end of the transfer. All data transmissions are still integrity-checked with checksum verification during the transfer.
"POINT_IN_TIME_CONSISTENT"
"ONLY_FILES_TRANSFERRED"
"NONE"
-
OverwriteMode
— (String
)Specifies whether DataSync should modify or preserve data at the destination location.
-
ALWAYS
(default) - DataSync modifies data in the destination location when source data (including metadata) has changed.If DataSync overwrites objects, you might incur additional charges for certain Amazon S3 storage classes (for example, for retrieval or early deletion). For more information, see Storage class considerations with Amazon S3 transfers.
-
NEVER
- DataSync doesn't overwrite data in the destination location even if the source data has changed. You can use this option to protect against overwriting changes made to files or objects in the destination.
"ALWAYS"
"NEVER"
-
Atime
— (String
)Specifies whether to preserve metadata indicating the last time a file was read or written to.
Note: The behavior ofAtime
isn't fully standard across platforms, so DataSync can only do this on a best-effort basis.-
BEST_EFFORT
(default) - DataSync attempts to preserve the originalAtime
attribute on all source files (that is, the version before thePREPARING
phase of the task execution). This option is recommended. -
NONE
- IgnoresAtime
.
Note: IfPossible values include:Atime
is set toBEST_EFFORT
,Mtime
must be set toPRESERVE
. IfAtime
is set toNONE
,Mtime
must also beNONE
."NONE"
"BEST_EFFORT"
-
Mtime
— (String
)Specifies whether to preserve metadata indicating the last time that a file was written to before the
PREPARING
phase of your task execution. This option is required when you need to run the a task more than once.-
PRESERVE
(default) - Preserves originalMtime
, which is recommended. -
NONE
- IgnoresMtime
.
Note: IfPossible values include:Mtime
is set toPRESERVE
,Atime
must be set toBEST_EFFORT
. IfMtime
is set toNONE
,Atime
must also be set toNONE
."NONE"
"PRESERVE"
-
Uid
— (String
)Specifies the POSIX user ID (UID) of the file's owner.
-
INT_VALUE
(default) - Preserves the integer value of UID and group ID (GID), which is recommended. -
NONE
- Ignores UID and GID.
For more information, see Metadata copied by DataSync.
Possible values include:"NONE"
"INT_VALUE"
"NAME"
"BOTH"
-
Gid
— (String
)Specifies the POSIX group ID (GID) of the file's owners.
-
INT_VALUE
(default) - Preserves the integer value of user ID (UID) and GID, which is recommended. -
NONE
- Ignores UID and GID.
For more information, see Metadata copied by DataSync.
Possible values include:"NONE"
"INT_VALUE"
"NAME"
"BOTH"
-
PreserveDeletedFiles
— (String
)Specifies whether files in the destination location that don't exist in the source should be preserved. This option can affect your Amazon S3 storage cost. If your task deletes objects, you might incur minimum storage duration charges for certain storage classes. For detailed information, see Considerations when working with Amazon S3 storage classes in DataSync.
-
PRESERVE
(default) - Ignores such destination files, which is recommended. -
REMOVE
- Deletes destination files that aren’t present in the source.
Note: If you set this parameter toPossible values include:REMOVE
, you can't setTransferMode
toALL
. When you transfer all data, DataSync doesn't scan your destination location and doesn't know what to delete."PRESERVE"
"REMOVE"
-
PreserveDevices
— (String
)Specifies whether DataSync should preserve the metadata of block and character devices in the source location and recreate the files with that device name and metadata on the destination. DataSync copies only the name and metadata of such devices.
Note: DataSync can't copy the actual contents of these devices because they're nonterminal and don't return an end-of-file (EOF) marker.-
NONE
(default) - Ignores special devices (recommended). -
PRESERVE
- Preserves character and block device metadata. This option currently isn't supported for Amazon EFS.
"NONE"
"PRESERVE"
-
PosixPermissions
— (String
)Specifies which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file.
For more information, see Metadata copied by DataSync.
-
PRESERVE
(default) - Preserves POSIX-style permissions, which is recommended. -
NONE
- Ignores POSIX-style permissions.
Note: DataSync can preserve extant permissions of a source location.Possible values include:"NONE"
"PRESERVE"
-
BytesPerSecond
— (Integer
)Limits the bandwidth used by a DataSync task. For example, if you want DataSync to use a maximum of 1 MB, set this value to
1048576
(=1024*1024
).TaskQueueing
— (String
)Specifies whether your transfer tasks should be put into a queue during certain scenarios when running multiple tasks. This is
Possible values include:ENABLED
by default."ENABLED"
"DISABLED"
LogLevel
— (String
)Specifies the type of logs that DataSync publishes to a Amazon CloudWatch Logs log group. To specify the log group, see CloudWatchLogGroupArn.
-
BASIC
- Publishes logs with only basic information (such as transfer errors). -
TRANSFER
- Publishes logs for all files or objects that your DataSync task transfers and performs data-integrity checks on. -
OFF
- No logs are published.
"OFF"
"BASIC"
"TRANSFER"
-
TransferMode
— (String
)Determines whether DataSync transfers only the data and metadata that differ between the source and the destination location or transfers all the content from the source (without comparing what's in the destination).
-
CHANGED
(default) - DataSync copies only data or metadata that is new or different content from the source location to the destination location. -
ALL
- DataSync copies everything in the source to the destination without comparing differences between the locations.
"CHANGED"
"ALL"
-
SecurityDescriptorCopyFlags
— (String
)Specifies which components of the SMB security descriptor are copied from source to destination objects.
This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations or between two FSx for Windows File Server locations. For more information, see how DataSync handles metadata.
-
OWNER_DACL
(default) - For each copied object, DataSync copies the following metadata:-
The object owner.
-
NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.
DataSync won't copy NTFS system access control lists (SACLs) with this option.
-
-
OWNER_DACL_SACL
- For each copied object, DataSync copies the following metadata:-
The object owner.
-
NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.
-
SACLs, which are used by administrators to log attempts to access a secured object.
Copying SACLs requires granting additional permissions to the Windows user that DataSync uses to access your SMB location. For information about choosing a user with the right permissions, see required permissions for SMB, FSx for Windows File Server, or FSx for ONTAP (depending on the type of location in your transfer).
-
-
NONE
- None of the SMB security descriptor components are copied. Destination objects are owned by the user that was provided for accessing the destination location. DACLs and SACLs are set based on the destination server’s configuration.
"NONE"
"OWNER_DACL"
"OWNER_DACL_SACL"
-
ObjectTags
— (String
)Specifies whether you want DataSync to
Possible values include:PRESERVE
object tags (default behavior) when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify theNONE
value."PRESERVE"
"NONE"
Excludes
— (Array<map>
)A list of filter rules that exclude specific data during your transfer. For more information and examples, see Filtering data transferred by DataSync.
FilterType
— (String
)The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.
Possible values include:"SIMPLE_PATTERN"
Value
— (String
)A single filter string that consists of the patterns to include or exclude. The patterns are delimited by "|" (that is, a pipe), for example:
/folder1|/folder2
Includes
— (Array<map>
)A list of filter rules that include specific data during your transfer. For more information and examples, see Filtering data transferred by DataSync.
FilterType
— (String
)The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.
Possible values include:"SIMPLE_PATTERN"
Value
— (String
)A single filter string that consists of the patterns to include or exclude. The patterns are delimited by "|" (that is, a pipe), for example:
/folder1|/folder2
ManifestConfig
— (map
)The configuration of the manifest that lists the files or objects to transfer. For more information, see Specifying what DataSync transfers by using a manifest.
Action
— (String
)Specifies what DataSync uses the manifest for.
Possible values include:"TRANSFER"
Format
— (String
)Specifies the file format of your manifest. For more information, see Creating a manifest.
Possible values include:"CSV"
Source
— (map
)Specifies the manifest that you want DataSync to use and where it's hosted.
Note: You must specify this parameter if you're configuring a new manifest on or after February 7, 2024. If you don't, you'll get a 400 status code andValidationException
error stating that you're missing the IAM role for DataSync to access the S3 bucket where you're hosting your manifest. For more information, see Providing DataSync access to your manifest.S3
— required — (map
)Specifies the S3 bucket where you're hosting your manifest.
ManifestObjectPath
— required — (String
)Specifies the Amazon S3 object key of your manifest. This can include a prefix (for example,
prefix/my-manifest.csv
).BucketAccessRoleArn
— required — (String
)Specifies the Identity and Access Management (IAM) role that allows DataSync to access your manifest. For more information, see Providing DataSync access to your manifest.
S3BucketArn
— required — (String
)Specifies the Amazon Resource Name (ARN) of the S3 bucket where you're hosting your manifest.
ManifestObjectVersionId
— (String
)Specifies the object version ID of the manifest that you want DataSync to use. If you don't set this, DataSync uses the latest version of the object.
StartTime
— (Date
)The time when the task execution started.
EstimatedFilesToTransfer
— (Integer
)The expected number of files, objects, and directories that DataSync will transfer over the network. This value is calculated during the task execution's
PREPARING
phase before theTRANSFERRING
phase. The calculation is based on comparing the content of the source and destination locations and finding the difference that needs to be transferred.EstimatedBytesToTransfer
— (Integer
)The estimated physical number of bytes that will transfer over the network.
FilesTransferred
— (Integer
)The actual number of files, objects, and directories that DataSync transferred over the network. This value is updated periodically during the task execution's
TRANSFERRING
phase when something is read from the source and sent over the network.If DataSync fails to transfer something, this value can be less than
EstimatedFilesToTransfer
. In some cases, this value can also be greater thanEstimatedFilesToTransfer
. This element is implementation-specific for some location types, so don't use it as an exact indication of what transferred or to monitor your task execution.BytesWritten
— (Integer
)The number of logical bytes written to the destination location.
BytesTransferred
— (Integer
)The total number of bytes that are involved in the transfer. For the number of bytes sent over the network, see
BytesCompressed
.BytesCompressed
— (Integer
)The physical number of bytes transferred over the network after compression was applied. In most cases, this number is less than
BytesTransferred
unless the data isn't compressible.Result
— (map
)The result of the task execution.
PrepareDuration
— (Integer
)The total time in milliseconds that DataSync spent in the PREPARING phase.
PrepareStatus
— (String
)The status of the PREPARING phase.
Possible values include:"PENDING"
"SUCCESS"
"ERROR"
TotalDuration
— (Integer
)The total time in milliseconds that DataSync took to transfer the file from the source to the destination location.
TransferDuration
— (Integer
)The total time in milliseconds that DataSync spent in the TRANSFERRING phase.
TransferStatus
— (String
)The status of the TRANSFERRING phase.
Possible values include:"PENDING"
"SUCCESS"
"ERROR"
VerifyDuration
— (Integer
)The total time in milliseconds that DataSync spent in the VERIFYING phase.
VerifyStatus
— (String
)The status of the VERIFYING phase.
Possible values include:"PENDING"
"SUCCESS"
"ERROR"
ErrorCode
— (String
)Errors that DataSync encountered during execution of the task. You can use this error code to help troubleshoot issues.
ErrorDetail
— (String
)Detailed description of an error that was encountered during the task execution. You can use this information to help troubleshoot issues.
TaskReportConfig
— (map
)The configuration of your task report, which provides detailed information about for your DataSync transfer. For more information, see Creating a task report.
Destination
— (map
)Specifies the Amazon S3 bucket where DataSync uploads your task report. For more information, see Task reports.
S3
— (map
)Specifies the Amazon S3 bucket where DataSync uploads your task report.
Subdirectory
— (String
)Specifies a bucket prefix for your report.
S3BucketArn
— required — (String
)Specifies the ARN of the S3 bucket where DataSync uploads your report.
BucketAccessRoleArn
— required — (String
)Specifies the Amazon Resource Name (ARN) of the IAM policy that allows DataSync to upload a task report to your S3 bucket. For more information, see Allowing DataSync to upload a task report to an Amazon S3 bucket.
OutputType
— (String
)Specifies the type of task report that you want:
-
SUMMARY_ONLY
: Provides necessary details about your task, including the number of files, objects, and directories transferred and transfer duration. -
STANDARD
: Provides complete details about your task, including a full list of files, objects, and directories that were transferred, skipped, verified, and more.
"SUMMARY_ONLY"
"STANDARD"
-
ReportLevel
— (String
)Specifies whether you want your task report to include only what went wrong with your transfer or a list of what succeeded and didn't.
-
ERRORS_ONLY
: A report shows what DataSync was unable to transfer, skip, verify, and delete. -
SUCCESSES_AND_ERRORS
: A report shows what DataSync was able and unable to transfer, skip, verify, and delete.
"ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
-
ObjectVersionIds
— (String
)Specifies whether your task report includes the new version of each object transferred into an S3 bucket. This only applies if you enable versioning on your bucket. Keep in mind that setting this to
Possible values include:INCLUDE
can increase the duration of your task execution."INCLUDE"
"NONE"
Overrides
— (map
)Customizes the reporting level for aspects of your task report. For example, your report might generally only include errors, but you could specify that you want a list of successes and errors just for the files that DataSync attempted to delete in your destination location.
Transferred
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to transfer.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
Verified
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to verify at the end of your transfer.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
Deleted
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to delete in your destination location. This only applies if you configure your task to delete data in the destination that isn't in the source.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
Skipped
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to skip during your transfer.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
FilesDeleted
— (Integer
)The number of files, objects, and directories that DataSync deleted in your destination location. If you don't configure your task to delete data in the destination that isn't in the source, the value is always
0
.FilesSkipped
— (Integer
)The number of files, objects, and directories that DataSync skipped during your transfer.
FilesVerified
— (Integer
)The number of files, objects, and directories that DataSync verified during your transfer.
Note: When you configure your task to verify only the data that's transferred, DataSync doesn't verify directories in some situations or files that fail to transfer.ReportResult
— (map
)Indicates whether DataSync generated a complete task report for your transfer.
Status
— (String
)Indicates whether DataSync is still working on your report, created a report, or can't create a complete report.
Possible values include:"PENDING"
"SUCCESS"
"ERROR"
ErrorCode
— (String
)Indicates the code associated with the error if DataSync can't create a complete report.
ErrorDetail
— (String
)Provides details about issues creating a report.
EstimatedFilesToDelete
— (Integer
)The expected number of files, objects, and directories that DataSync will delete in your destination location. If you don't configure your task to delete data in the destination that isn't in the source, the value is always
0
.
-
(AWS.Response)
—
Returns:
generateRecommendations(params = {}, callback) ⇒ AWS.Request
Creates recommendations about where to migrate your data to in Amazon Web Services. Recommendations are generated based on information that DataSync Discovery collects about your on-premises storage system's resources. For more information, see Recommendations provided by DataSync Discovery.
Once generated, you can view your recommendations by using the DescribeStorageSystemResources operation.
Service Reference:
Examples:
Calling the generateRecommendations operation
var params = { DiscoveryJobArn: 'STRING_VALUE', /* required */ ResourceIds: [ /* required */ 'STRING_VALUE', /* more items */ ], ResourceType: SVM | VOLUME | CLUSTER /* required */ }; datasync.generateRecommendations(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
DiscoveryJobArn
— (String
)Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your on-premises storage system.
ResourceIds
— (Array<String>
)Specifies the universally unique identifiers (UUIDs) of the resources in your storage system that you want recommendations on.
ResourceType
— (String
)Specifies the type of resource in your storage system that you want recommendations on.
Possible values include:"SVM"
"VOLUME"
"CLUSTER"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
listAgents(params = {}, callback) ⇒ AWS.Request
Returns a list of DataSync agents that belong to an Amazon Web Services account in the Amazon Web Services Region specified in the request.
With pagination, you can reduce the number of agents returned in a response. If you get a truncated list of agents in a response, the response contains a marker that you can specify in your next request to fetch the next page of agents.
ListAgents
is eventually consistent. This means the result of running the operation might not reflect that you just created or deleted an agent. For example, if you create an agent with CreateAgent and then immediately runListAgents
, that agent might not show up in the list right away. In situations like this, you can always confirm whether an agent has been created (or deleted) by using DescribeAgent.Service Reference:
Examples:
Calling the listAgents operation
var params = { MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; datasync.listAgents(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
MaxResults
— (Integer
)Specifies the maximum number of DataSync agents to list in a response. By default, a response shows a maximum of 100 agents.
NextToken
— (String
)Specifies an opaque string that indicates the position to begin the next list of results in the response.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Agents
— (Array<map>
)A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).
AgentArn
— (String
)The Amazon Resource Name (ARN) of a DataSync agent.
Name
— (String
)The name of an agent.
Status
— (String
)The status of an agent.
-
If the status is
ONLINE
, the agent is configured properly and ready to use. -
If the status is
OFFLINE
, the agent has been out of contact with DataSync for five minutes or longer. This can happen for a few reasons. For more information, see What do I do if my agent is offline?
"ONLINE"
"OFFLINE"
-
Platform
— (map
)The platform-related details about the agent, such as the version number.
Version
— (String
)The version of the DataSync agent.
NextToken
— (String
)The opaque string that indicates the position to begin the next list of results in the response.
-
(AWS.Response)
—
Returns:
listDiscoveryJobs(params = {}, callback) ⇒ AWS.Request
Provides a list of the existing discovery jobs in the Amazon Web Services Region and Amazon Web Services account where you're using DataSync Discovery.
Service Reference:
Examples:
Calling the listDiscoveryJobs operation
var params = { MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE', StorageSystemArn: 'STRING_VALUE' }; datasync.listDiscoveryJobs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
StorageSystemArn
— (String
)Specifies the Amazon Resource Name (ARN) of an on-premises storage system. Use this parameter if you only want to list the discovery jobs that are associated with a specific storage system.
MaxResults
— (Integer
)Specifies how many results you want in the response.
NextToken
— (String
)Specifies an opaque string that indicates the position to begin the next list of results in the response.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:DiscoveryJobs
— (Array<map>
)The discovery jobs that you've run.
DiscoveryJobArn
— (String
)The Amazon Resource Name (ARN) of a discovery job.
Status
— (String
)The status of a discovery job. For more information, see Discovery job statuses.
Possible values include:"RUNNING"
"WARNING"
"TERMINATED"
"FAILED"
"STOPPED"
"COMPLETED"
"COMPLETED_WITH_ISSUES"
NextToken
— (String
)The opaque string that indicates the position to begin the next list of results in the response.
-
(AWS.Response)
—
Returns:
listLocations(params = {}, callback) ⇒ AWS.Request
Returns a list of source and destination locations.
If you have more locations than are returned in a response (that is, the response returns only a truncated list of your agents), the response contains a token that you can specify in your next request to fetch the next page of locations.
Service Reference:
Examples:
Calling the listLocations operation
var params = { Filters: [ { Name: LocationUri | LocationType | CreationTime, /* required */ Operator: Equals | NotEquals | In | LessThanOrEqual | LessThan | GreaterThanOrEqual | GreaterThan | Contains | NotContains | BeginsWith, /* required */ Values: [ /* required */ 'STRING_VALUE', /* more items */ ] }, /* more items */ ], MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; datasync.listLocations(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
MaxResults
— (Integer
)The maximum number of locations to return.
NextToken
— (String
)An opaque string that indicates the position at which to begin the next list of locations.
Filters
— (Array<map>
)You can use API filters to narrow down the list of resources returned by
ListLocations
. For example, to retrieve all tasks on a specific source location, you can useListLocations
with filter nameLocationType S3
andOperator Equals
.Name
— required — (String
)The name of the filter being used. Each API call supports a list of filters that are available for it (for example,
Possible values include:LocationType
forListLocations
)."LocationUri"
"LocationType"
"CreationTime"
Values
— required — (Array<String>
)The values that you want to filter for. For example, you might want to display only Amazon S3 locations.
Operator
— required — (String
)The operator that is used to compare filter values (for example,
Possible values include:Equals
orContains
)."Equals"
"NotEquals"
"In"
"LessThanOrEqual"
"LessThan"
"GreaterThanOrEqual"
"GreaterThan"
"Contains"
"NotContains"
"BeginsWith"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Locations
— (Array<map>
)An array that contains a list of locations.
LocationArn
— (String
)The Amazon Resource Name (ARN) of the location. For Network File System (NFS) or Amazon EFS, the location is the export path. For Amazon S3, the location is the prefix path that you want to mount and use as the root of the location.
LocationUri
— (String
)Represents a list of URIs of a location.
LocationUri
returns an array that contains a list of locations when the ListLocations operation is called.Format:
TYPE://GLOBAL_ID/SUBDIR
.TYPE designates the type of location (for example,
nfs
ors3
).GLOBAL_ID is the globally unique identifier of the resource that backs the location. An example for EFS is
us-east-2.fs-abcd1234
. An example for Amazon S3 is the bucket name, such asmyBucket
. An example for NFS is a valid IPv4 address or a hostname that is compliant with Domain Name Service (DNS).SUBDIR is a valid file system path, delimited by forward slashes as is the *nix convention. For NFS and Amazon EFS, it's the export path to mount the location. For Amazon S3, it's the prefix path that you mount to and treat as the root of the location.
NextToken
— (String
)An opaque string that indicates the position at which to begin returning the next list of locations.
-
(AWS.Response)
—
Returns:
listStorageSystems(params = {}, callback) ⇒ AWS.Request
Lists the on-premises storage systems that you're using with DataSync Discovery.
Service Reference:
Examples:
Calling the listStorageSystems operation
var params = { MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; datasync.listStorageSystems(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
MaxResults
— (Integer
)Specifies how many results you want in the response.
NextToken
— (String
)Specifies an opaque string that indicates the position to begin the next list of results in the response.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:StorageSystems
— (Array<map>
)The Amazon Resource Names ARNs) of the on-premises storage systems that you're using with DataSync Discovery.
StorageSystemArn
— (String
)The Amazon Resource Names (ARN) of an on-premises storage system that you added to DataSync Discovery.
Name
— (String
)The name of an on-premises storage system that you added to DataSync Discovery.
NextToken
— (String
)The opaque string that indicates the position to begin the next list of results in the response.
-
(AWS.Response)
—
Returns:
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Returns all the tags associated with an Amazon Web Services resource.
Service Reference:
Examples:
Calling the listTagsForResource operation
var params = { ResourceArn: 'STRING_VALUE', /* required */ MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; datasync.listTagsForResource(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn
— (String
)Specifies the Amazon Resource Name (ARN) of the resource that you want tag information on.
MaxResults
— (Integer
)Specifies how many results that you want in the response.
NextToken
— (String
)Specifies an opaque string that indicates the position to begin the next list of results in the response.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Tags
— (Array<map>
)An array of tags applied to the specified resource.
Key
— required — (String
)The key for an Amazon Web Services resource tag.
Value
— (String
)The value for an Amazon Web Services resource tag.
NextToken
— (String
)The opaque string that indicates the position to begin the next list of results in the response.
-
(AWS.Response)
—
Returns:
listTaskExecutions(params = {}, callback) ⇒ AWS.Request
Returns a list of executions for an DataSync transfer task.
Service Reference:
Examples:
Calling the listTaskExecutions operation
var params = { MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE', TaskArn: 'STRING_VALUE' }; datasync.listTaskExecutions(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
TaskArn
— (String
)Specifies the Amazon Resource Name (ARN) of the task that you want execution information about.
MaxResults
— (Integer
)Specifies how many results you want in the response.
NextToken
— (String
)Specifies an opaque string that indicates the position at which to begin the next list of results in the response.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:TaskExecutions
— (Array<map>
)A list of the task's executions.
TaskExecutionArn
— (String
)The Amazon Resource Name (ARN) of a task execution.
Status
— (String
)The status of a task execution. For more information, see Task execution statuses.
Possible values include:"QUEUED"
"CANCELLING"
"LAUNCHING"
"PREPARING"
"TRANSFERRING"
"VERIFYING"
"SUCCESS"
"ERROR"
NextToken
— (String
)The opaque string that indicates the position to begin the next list of results in the response.
-
(AWS.Response)
—
Returns:
listTasks(params = {}, callback) ⇒ AWS.Request
Returns a list of the DataSync tasks you created.
Service Reference:
Examples:
Calling the listTasks operation
var params = { Filters: [ { Name: LocationId | CreationTime, /* required */ Operator: Equals | NotEquals | In | LessThanOrEqual | LessThan | GreaterThanOrEqual | GreaterThan | Contains | NotContains | BeginsWith, /* required */ Values: [ /* required */ 'STRING_VALUE', /* more items */ ] }, /* more items */ ], MaxResults: 'NUMBER_VALUE', NextToken: 'STRING_VALUE' }; datasync.listTasks(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
MaxResults
— (Integer
)The maximum number of tasks to return.
NextToken
— (String
)An opaque string that indicates the position at which to begin the next list of tasks.
Filters
— (Array<map>
)You can use API filters to narrow down the list of resources returned by
ListTasks
. For example, to retrieve all tasks on a specific source location, you can useListTasks
with filter nameLocationId
andOperator Equals
with the ARN for the location.Name
— required — (String
)The name of the filter being used. Each API call supports a list of filters that are available for it. For example,
Possible values include:LocationId
forListTasks
."LocationId"
"CreationTime"
Values
— required — (Array<String>
)The values that you want to filter for. For example, you might want to display only tasks for a specific destination location.
Operator
— required — (String
)The operator that is used to compare filter values (for example,
Possible values include:Equals
orContains
)."Equals"
"NotEquals"
"In"
"LessThanOrEqual"
"LessThan"
"GreaterThanOrEqual"
"GreaterThan"
"Contains"
"NotContains"
"BeginsWith"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:Tasks
— (Array<map>
)A list of all the tasks that are returned.
TaskArn
— (String
)The Amazon Resource Name (ARN) of the task.
Status
— (String
)The status of the task.
Possible values include:"AVAILABLE"
"CREATING"
"QUEUED"
"RUNNING"
"UNAVAILABLE"
Name
— (String
)The name of the task.
NextToken
— (String
)An opaque string that indicates the position at which to begin returning the next list of tasks.
-
(AWS.Response)
—
Returns:
removeStorageSystem(params = {}, callback) ⇒ AWS.Request
Permanently removes a storage system resource from DataSync Discovery, including the associated discovery jobs, collected data, and recommendations.
Service Reference:
Examples:
Calling the removeStorageSystem operation
var params = { StorageSystemArn: 'STRING_VALUE' /* required */ }; datasync.removeStorageSystem(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
StorageSystemArn
— (String
)Specifies the Amazon Resource Name (ARN) of the storage system that you want to permanently remove from DataSync Discovery.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
startDiscoveryJob(params = {}, callback) ⇒ AWS.Request
Runs a DataSync discovery job on your on-premises storage system. If you haven't added the storage system to DataSync Discovery yet, do this first by using the AddStorageSystem operation.
Service Reference:
Examples:
Calling the startDiscoveryJob operation
var params = { ClientToken: 'STRING_VALUE', /* required */ CollectionDurationMinutes: 'NUMBER_VALUE', /* required */ StorageSystemArn: 'STRING_VALUE', /* required */ Tags: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' }, /* more items */ ] }; datasync.startDiscoveryJob(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
StorageSystemArn
— (String
)Specifies the Amazon Resource Name (ARN) of the on-premises storage system that you want to run the discovery job on.
CollectionDurationMinutes
— (Integer
)Specifies in minutes how long you want the discovery job to run.
Note: For more accurate recommendations, we recommend a duration of at least 14 days. Longer durations allow time to collect a sufficient number of data points and provide a realistic representation of storage performance and utilization.ClientToken
— (String
)Specifies a client token to make sure requests with this API operation are idempotent. If you don't specify a client token, DataSync generates one for you automatically.
If a token is not provided, the SDK will use a version 4 UUID.Tags
— (Array<map>
)Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources.
Key
— required — (String
)The key for an Amazon Web Services resource tag.
Value
— (String
)The value for an Amazon Web Services resource tag.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:DiscoveryJobArn
— (String
)The ARN of the discovery job that you started.
-
(AWS.Response)
—
Returns:
startTaskExecution(params = {}, callback) ⇒ AWS.Request
Starts an DataSync transfer task. For each task, you can only run one task execution at a time.
There are several phases to a task execution. For more information, see Task execution statuses.
If you're planning to transfer data to or from an Amazon S3 location, review how DataSync can affect your S3 request charges and the DataSync pricing page before you begin.
Service Reference:
Examples:
Calling the startTaskExecution operation
var params = { TaskArn: 'STRING_VALUE', /* required */ Excludes: [ { FilterType: SIMPLE_PATTERN, Value: 'STRING_VALUE' }, /* more items */ ], Includes: [ { FilterType: SIMPLE_PATTERN, Value: 'STRING_VALUE' }, /* more items */ ], ManifestConfig: { Action: TRANSFER, Format: CSV, Source: { S3: { /* required */ BucketAccessRoleArn: 'STRING_VALUE', /* required */ ManifestObjectPath: 'STRING_VALUE', /* required */ S3BucketArn: 'STRING_VALUE', /* required */ ManifestObjectVersionId: 'STRING_VALUE' } } }, OverrideOptions: { Atime: NONE | BEST_EFFORT, BytesPerSecond: 'NUMBER_VALUE', Gid: NONE | INT_VALUE | NAME | BOTH, LogLevel: OFF | BASIC | TRANSFER, Mtime: NONE | PRESERVE, ObjectTags: PRESERVE | NONE, OverwriteMode: ALWAYS | NEVER, PosixPermissions: NONE | PRESERVE, PreserveDeletedFiles: PRESERVE | REMOVE, PreserveDevices: NONE | PRESERVE, SecurityDescriptorCopyFlags: NONE | OWNER_DACL | OWNER_DACL_SACL, TaskQueueing: ENABLED | DISABLED, TransferMode: CHANGED | ALL, Uid: NONE | INT_VALUE | NAME | BOTH, VerifyMode: POINT_IN_TIME_CONSISTENT | ONLY_FILES_TRANSFERRED | NONE }, Tags: [ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' }, /* more items */ ], TaskReportConfig: { Destination: { S3: { BucketAccessRoleArn: 'STRING_VALUE', /* required */ S3BucketArn: 'STRING_VALUE', /* required */ Subdirectory: 'STRING_VALUE' } }, ObjectVersionIds: INCLUDE | NONE, OutputType: SUMMARY_ONLY | STANDARD, Overrides: { Deleted: { ReportLevel: ERRORS_ONLY | SUCCESSES_AND_ERRORS }, Skipped: { ReportLevel: ERRORS_ONLY | SUCCESSES_AND_ERRORS }, Transferred: { ReportLevel: ERRORS_ONLY | SUCCESSES_AND_ERRORS }, Verified: { ReportLevel: ERRORS_ONLY | SUCCESSES_AND_ERRORS } }, ReportLevel: ERRORS_ONLY | SUCCESSES_AND_ERRORS } }; datasync.startTaskExecution(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
TaskArn
— (String
)Specifies the Amazon Resource Name (ARN) of the task that you want to start.
OverrideOptions
— (map
)Indicates how your transfer task is configured. These options include how DataSync handles files, objects, and their associated metadata during your transfer. You also can specify how to verify data integrity, set bandwidth limits for your task, among other options.
Each option has a default value. Unless you need to, you don't have to configure any option before calling StartTaskExecution.
You also can override your task options for each task execution. For example, you might want to adjust the
LogLevel
for an individual execution.VerifyMode
— (String
)Specifies how and when DataSync checks the integrity of your data during a transfer.
-
ONLY_FILES_TRANSFERRED
(recommended) - DataSync calculates the checksum of transferred files and metadata at the source location. At the end of the transfer, DataSync then compares this checksum to the checksum calculated on those files at the destination.We recommend this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations.
-
POINT_IN_TIME_CONSISTENT
(default) - At the end of the transfer, DataSync scans the entire source and destination to verify that both locations are fully synchronized.If you use a manifest, DataSync only scans and verifies what's listed in the manifest.
You can't use this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations.
-
NONE
- DataSync doesn't run additional verification at the end of the transfer. All data transmissions are still integrity-checked with checksum verification during the transfer.
"POINT_IN_TIME_CONSISTENT"
"ONLY_FILES_TRANSFERRED"
"NONE"
-
OverwriteMode
— (String
)Specifies whether DataSync should modify or preserve data at the destination location.
-
ALWAYS
(default) - DataSync modifies data in the destination location when source data (including metadata) has changed.If DataSync overwrites objects, you might incur additional charges for certain Amazon S3 storage classes (for example, for retrieval or early deletion). For more information, see Storage class considerations with Amazon S3 transfers.
-
NEVER
- DataSync doesn't overwrite data in the destination location even if the source data has changed. You can use this option to protect against overwriting changes made to files or objects in the destination.
"ALWAYS"
"NEVER"
-
Atime
— (String
)Specifies whether to preserve metadata indicating the last time a file was read or written to.
Note: The behavior ofAtime
isn't fully standard across platforms, so DataSync can only do this on a best-effort basis.-
BEST_EFFORT
(default) - DataSync attempts to preserve the originalAtime
attribute on all source files (that is, the version before thePREPARING
phase of the task execution). This option is recommended. -
NONE
- IgnoresAtime
.
Note: IfPossible values include:Atime
is set toBEST_EFFORT
,Mtime
must be set toPRESERVE
. IfAtime
is set toNONE
,Mtime
must also beNONE
."NONE"
"BEST_EFFORT"
-
Mtime
— (String
)Specifies whether to preserve metadata indicating the last time that a file was written to before the
PREPARING
phase of your task execution. This option is required when you need to run the a task more than once.-
PRESERVE
(default) - Preserves originalMtime
, which is recommended. -
NONE
- IgnoresMtime
.
Note: IfPossible values include:Mtime
is set toPRESERVE
,Atime
must be set toBEST_EFFORT
. IfMtime
is set toNONE
,Atime
must also be set toNONE
."NONE"
"PRESERVE"
-
Uid
— (String
)Specifies the POSIX user ID (UID) of the file's owner.
-
INT_VALUE
(default) - Preserves the integer value of UID and group ID (GID), which is recommended. -
NONE
- Ignores UID and GID.
For more information, see Metadata copied by DataSync.
Possible values include:"NONE"
"INT_VALUE"
"NAME"
"BOTH"
-
Gid
— (String
)Specifies the POSIX group ID (GID) of the file's owners.
-
INT_VALUE
(default) - Preserves the integer value of user ID (UID) and GID, which is recommended. -
NONE
- Ignores UID and GID.
For more information, see Metadata copied by DataSync.
Possible values include:"NONE"
"INT_VALUE"
"NAME"
"BOTH"
-
PreserveDeletedFiles
— (String
)Specifies whether files in the destination location that don't exist in the source should be preserved. This option can affect your Amazon S3 storage cost. If your task deletes objects, you might incur minimum storage duration charges for certain storage classes. For detailed information, see Considerations when working with Amazon S3 storage classes in DataSync.
-
PRESERVE
(default) - Ignores such destination files, which is recommended. -
REMOVE
- Deletes destination files that aren’t present in the source.
Note: If you set this parameter toPossible values include:REMOVE
, you can't setTransferMode
toALL
. When you transfer all data, DataSync doesn't scan your destination location and doesn't know what to delete."PRESERVE"
"REMOVE"
-
PreserveDevices
— (String
)Specifies whether DataSync should preserve the metadata of block and character devices in the source location and recreate the files with that device name and metadata on the destination. DataSync copies only the name and metadata of such devices.
Note: DataSync can't copy the actual contents of these devices because they're nonterminal and don't return an end-of-file (EOF) marker.-
NONE
(default) - Ignores special devices (recommended). -
PRESERVE
- Preserves character and block device metadata. This option currently isn't supported for Amazon EFS.
"NONE"
"PRESERVE"
-
PosixPermissions
— (String
)Specifies which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file.
For more information, see Metadata copied by DataSync.
-
PRESERVE
(default) - Preserves POSIX-style permissions, which is recommended. -
NONE
- Ignores POSIX-style permissions.
Note: DataSync can preserve extant permissions of a source location.Possible values include:"NONE"
"PRESERVE"
-
BytesPerSecond
— (Integer
)Limits the bandwidth used by a DataSync task. For example, if you want DataSync to use a maximum of 1 MB, set this value to
1048576
(=1024*1024
).TaskQueueing
— (String
)Specifies whether your transfer tasks should be put into a queue during certain scenarios when running multiple tasks. This is
Possible values include:ENABLED
by default."ENABLED"
"DISABLED"
LogLevel
— (String
)Specifies the type of logs that DataSync publishes to a Amazon CloudWatch Logs log group. To specify the log group, see CloudWatchLogGroupArn.
-
BASIC
- Publishes logs with only basic information (such as transfer errors). -
TRANSFER
- Publishes logs for all files or objects that your DataSync task transfers and performs data-integrity checks on. -
OFF
- No logs are published.
"OFF"
"BASIC"
"TRANSFER"
-
TransferMode
— (String
)Determines whether DataSync transfers only the data and metadata that differ between the source and the destination location or transfers all the content from the source (without comparing what's in the destination).
-
CHANGED
(default) - DataSync copies only data or metadata that is new or different content from the source location to the destination location. -
ALL
- DataSync copies everything in the source to the destination without comparing differences between the locations.
"CHANGED"
"ALL"
-
SecurityDescriptorCopyFlags
— (String
)Specifies which components of the SMB security descriptor are copied from source to destination objects.
This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations or between two FSx for Windows File Server locations. For more information, see how DataSync handles metadata.
-
OWNER_DACL
(default) - For each copied object, DataSync copies the following metadata:-
The object owner.
-
NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.
DataSync won't copy NTFS system access control lists (SACLs) with this option.
-
-
OWNER_DACL_SACL
- For each copied object, DataSync copies the following metadata:-
The object owner.
-
NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.
-
SACLs, which are used by administrators to log attempts to access a secured object.
Copying SACLs requires granting additional permissions to the Windows user that DataSync uses to access your SMB location. For information about choosing a user with the right permissions, see required permissions for SMB, FSx for Windows File Server, or FSx for ONTAP (depending on the type of location in your transfer).
-
-
NONE
- None of the SMB security descriptor components are copied. Destination objects are owned by the user that was provided for accessing the destination location. DACLs and SACLs are set based on the destination server’s configuration.
"NONE"
"OWNER_DACL"
"OWNER_DACL_SACL"
-
ObjectTags
— (String
)Specifies whether you want DataSync to
Possible values include:PRESERVE
object tags (default behavior) when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify theNONE
value."PRESERVE"
"NONE"
Includes
— (Array<map>
)Specifies a list of filter rules that determines which files to include when running a task. The pattern should contain a single filter string that consists of the patterns to include. The patterns are delimited by "|" (that is, a pipe), for example,
"/folder1|/folder2"
.FilterType
— (String
)The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.
Possible values include:"SIMPLE_PATTERN"
Value
— (String
)A single filter string that consists of the patterns to include or exclude. The patterns are delimited by "|" (that is, a pipe), for example:
/folder1|/folder2
Excludes
— (Array<map>
)Specifies a list of filter rules that determines which files to exclude from a task. The list contains a single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example,
"/folder1|/folder2"
.FilterType
— (String
)The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.
Possible values include:"SIMPLE_PATTERN"
Value
— (String
)A single filter string that consists of the patterns to include or exclude. The patterns are delimited by "|" (that is, a pipe), for example:
/folder1|/folder2
ManifestConfig
— (map
)Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest.
When using this parameter, your caller identity (the role that you're using DataSync with) must have the
iam:PassRole
permission. The AWSDataSyncFullAccess policy includes this permission.To remove a manifest configuration, specify this parameter with an empty value.
Action
— (String
)Specifies what DataSync uses the manifest for.
Possible values include:"TRANSFER"
Format
— (String
)Specifies the file format of your manifest. For more information, see Creating a manifest.
Possible values include:"CSV"
Source
— (map
)Specifies the manifest that you want DataSync to use and where it's hosted.
Note: You must specify this parameter if you're configuring a new manifest on or after February 7, 2024. If you don't, you'll get a 400 status code andValidationException
error stating that you're missing the IAM role for DataSync to access the S3 bucket where you're hosting your manifest. For more information, see Providing DataSync access to your manifest.S3
— required — (map
)Specifies the S3 bucket where you're hosting your manifest.
ManifestObjectPath
— required — (String
)Specifies the Amazon S3 object key of your manifest. This can include a prefix (for example,
prefix/my-manifest.csv
).BucketAccessRoleArn
— required — (String
)Specifies the Identity and Access Management (IAM) role that allows DataSync to access your manifest. For more information, see Providing DataSync access to your manifest.
S3BucketArn
— required — (String
)Specifies the Amazon Resource Name (ARN) of the S3 bucket where you're hosting your manifest.
ManifestObjectVersionId
— (String
)Specifies the object version ID of the manifest that you want DataSync to use. If you don't set this, DataSync uses the latest version of the object.
TaskReportConfig
— (map
)Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports.
When using this parameter, your caller identity (the role that you're using DataSync with) must have the
iam:PassRole
permission. The AWSDataSyncFullAccess policy includes this permission.To remove a task report configuration, specify this parameter as empty.
Destination
— (map
)Specifies the Amazon S3 bucket where DataSync uploads your task report. For more information, see Task reports.
S3
— (map
)Specifies the Amazon S3 bucket where DataSync uploads your task report.
Subdirectory
— (String
)Specifies a bucket prefix for your report.
S3BucketArn
— required — (String
)Specifies the ARN of the S3 bucket where DataSync uploads your report.
BucketAccessRoleArn
— required — (String
)Specifies the Amazon Resource Name (ARN) of the IAM policy that allows DataSync to upload a task report to your S3 bucket. For more information, see Allowing DataSync to upload a task report to an Amazon S3 bucket.
OutputType
— (String
)Specifies the type of task report that you want:
-
SUMMARY_ONLY
: Provides necessary details about your task, including the number of files, objects, and directories transferred and transfer duration. -
STANDARD
: Provides complete details about your task, including a full list of files, objects, and directories that were transferred, skipped, verified, and more.
"SUMMARY_ONLY"
"STANDARD"
-
ReportLevel
— (String
)Specifies whether you want your task report to include only what went wrong with your transfer or a list of what succeeded and didn't.
-
ERRORS_ONLY
: A report shows what DataSync was unable to transfer, skip, verify, and delete. -
SUCCESSES_AND_ERRORS
: A report shows what DataSync was able and unable to transfer, skip, verify, and delete.
"ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
-
ObjectVersionIds
— (String
)Specifies whether your task report includes the new version of each object transferred into an S3 bucket. This only applies if you enable versioning on your bucket. Keep in mind that setting this to
Possible values include:INCLUDE
can increase the duration of your task execution."INCLUDE"
"NONE"
Overrides
— (map
)Customizes the reporting level for aspects of your task report. For example, your report might generally only include errors, but you could specify that you want a list of successes and errors just for the files that DataSync attempted to delete in your destination location.
Transferred
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to transfer.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
Verified
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to verify at the end of your transfer.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
Deleted
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to delete in your destination location. This only applies if you configure your task to delete data in the destination that isn't in the source.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
Skipped
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to skip during your transfer.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
Tags
— (Array<map>
)Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task execution.
Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.
Key
— required — (String
)The key for an Amazon Web Services resource tag.
Value
— (String
)The value for an Amazon Web Services resource tag.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:TaskExecutionArn
— (String
)The ARN of the running task execution.
-
(AWS.Response)
—
Returns:
stopDiscoveryJob(params = {}, callback) ⇒ AWS.Request
Stops a running DataSync discovery job.
You can stop a discovery job anytime. A job that's stopped before it's scheduled to end likely will provide you some information about your on-premises storage system resources. To get recommendations for a stopped job, you must use the GenerateRecommendations operation.
Service Reference:
Examples:
Calling the stopDiscoveryJob operation
var params = { DiscoveryJobArn: 'STRING_VALUE' /* required */ }; datasync.stopDiscoveryJob(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
DiscoveryJobArn
— (String
)Specifies the Amazon Resource Name (ARN) of the discovery job that you want to stop.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
tagResource(params = {}, callback) ⇒ AWS.Request
Applies a tag to an Amazon Web Services resource. Tags are key-value pairs that can help you manage, filter, and search for your resources.
These include DataSync resources, such as locations, tasks, and task executions.
Service Reference:
Examples:
Calling the tagResource operation
var params = { ResourceArn: 'STRING_VALUE', /* required */ Tags: [ /* required */ { Key: 'STRING_VALUE', /* required */ Value: 'STRING_VALUE' }, /* more items */ ] }; datasync.tagResource(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn
— (String
)Specifies the Amazon Resource Name (ARN) of the resource to apply the tag to.
Tags
— (Array<map>
)Specifies the tags that you want to apply to the resource.
Key
— required — (String
)The key for an Amazon Web Services resource tag.
Value
— (String
)The value for an Amazon Web Services resource tag.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
untagResource(params = {}, callback) ⇒ AWS.Request
Removes tags from an Amazon Web Services resource.
Service Reference:
Examples:
Calling the untagResource operation
var params = { Keys: [ /* required */ 'STRING_VALUE', /* more items */ ], ResourceArn: 'STRING_VALUE' /* required */ }; datasync.untagResource(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
ResourceArn
— (String
)Specifies the Amazon Resource Name (ARN) of the resource to remove the tags from.
Keys
— (Array<String>
)Specifies the keys in the tags that you want to remove.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateAgent(params = {}, callback) ⇒ AWS.Request
Updates the name of an DataSync agent.
Service Reference:
Examples:
Calling the updateAgent operation
var params = { AgentArn: 'STRING_VALUE', /* required */ Name: 'STRING_VALUE' }; datasync.updateAgent(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
AgentArn
— (String
)The Amazon Resource Name (ARN) of the agent to update.
Name
— (String
)The name that you want to use to configure the agent.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateDiscoveryJob(params = {}, callback) ⇒ AWS.Request
Edits a DataSync discovery job configuration.
Service Reference:
Examples:
Calling the updateDiscoveryJob operation
var params = { CollectionDurationMinutes: 'NUMBER_VALUE', /* required */ DiscoveryJobArn: 'STRING_VALUE' /* required */ }; datasync.updateDiscoveryJob(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
DiscoveryJobArn
— (String
)Specifies the Amazon Resource Name (ARN) of the discovery job that you want to update.
CollectionDurationMinutes
— (Integer
)Specifies in minutes how long that you want the discovery job to run. (You can't set this parameter to less than the number of minutes that the job has already run for.)
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateLocationAzureBlob(params = {}, callback) ⇒ AWS.Request
Modifies some configurations of the Microsoft Azure Blob Storage transfer location that you're using with DataSync.
Service Reference:
Examples:
Calling the updateLocationAzureBlob operation
var params = { LocationArn: 'STRING_VALUE', /* required */ AccessTier: HOT | COOL | ARCHIVE, AgentArns: [ 'STRING_VALUE', /* more items */ ], AuthenticationType: SAS, BlobType: BLOCK, SasConfiguration: { Token: 'STRING_VALUE' /* required */ }, Subdirectory: 'STRING_VALUE' }; datasync.updateLocationAzureBlob(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LocationArn
— (String
)Specifies the ARN of the Azure Blob Storage transfer location that you're updating.
Subdirectory
— (String
)Specifies path segments if you want to limit your transfer to a virtual directory in your container (for example,
/my/images
).AuthenticationType
— (String
)Specifies the authentication method DataSync uses to access your Azure Blob Storage. DataSync can access blob storage using a shared access signature (SAS).
Possible values include:"SAS"
SasConfiguration
— (map
)Specifies the SAS configuration that allows DataSync to access your Azure Blob Storage.
Token
— required — (String
)Specifies a SAS token that provides permissions to access your Azure Blob Storage.
The token is part of the SAS URI string that comes after the storage resource URI and a question mark. A token looks something like this:
sp=r&st=2023-12-20T14:54:52Z&se=2023-12-20T22:54:52Z&spr=https&sv=2021-06-08&sr=c&sig=aBBKDWQvyuVcTPH9EBp%2FXTI9E%2F%2Fmq171%2BZU178wcwqU%3D
BlobType
— (String
)Specifies the type of blob that you want your objects or files to be when transferring them into Azure Blob Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For more information on blob types, see the Azure Blob Storage documentation.
Possible values include:"BLOCK"
AccessTier
— (String
)Specifies the access tier that you want your objects or files transferred into. This only applies when using the location as a transfer destination. For more information, see Access tiers.
Possible values include:"HOT"
"COOL"
"ARCHIVE"
AgentArns
— (Array<String>
)Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob Storage container.
You can specify more than one agent. For more information, see Using multiple agents for your transfer.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateLocationHdfs(params = {}, callback) ⇒ AWS.Request
Updates some parameters of a previously created location for a Hadoop Distributed File System cluster.
Service Reference:
Examples:
Calling the updateLocationHdfs operation
var params = { LocationArn: 'STRING_VALUE', /* required */ AgentArns: [ 'STRING_VALUE', /* more items */ ], AuthenticationType: SIMPLE | KERBEROS, BlockSize: 'NUMBER_VALUE', KerberosKeytab: Buffer.from('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */, KerberosKrb5Conf: Buffer.from('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */, KerberosPrincipal: 'STRING_VALUE', KmsKeyProviderUri: 'STRING_VALUE', NameNodes: [ { Hostname: 'STRING_VALUE', /* required */ Port: 'NUMBER_VALUE' /* required */ }, /* more items */ ], QopConfiguration: { DataTransferProtection: DISABLED | AUTHENTICATION | INTEGRITY | PRIVACY, RpcProtection: DISABLED | AUTHENTICATION | INTEGRITY | PRIVACY }, ReplicationFactor: 'NUMBER_VALUE', SimpleUser: 'STRING_VALUE', Subdirectory: 'STRING_VALUE' }; datasync.updateLocationHdfs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LocationArn
— (String
)The Amazon Resource Name (ARN) of the source HDFS cluster location.
Subdirectory
— (String
)A subdirectory in the HDFS cluster. This subdirectory is used to read data from or write data to the HDFS cluster.
NameNodes
— (Array<map>
)The NameNode that manages the HDFS namespace. The NameNode performs operations such as opening, closing, and renaming files and directories. The NameNode contains the information to map blocks of data to the DataNodes. You can use only one NameNode.
Hostname
— required — (String
)The hostname of the NameNode in the HDFS cluster. This value is the IP address or Domain Name Service (DNS) name of the NameNode. An agent that's installed on-premises uses this hostname to communicate with the NameNode in the network.
Port
— required — (Integer
)The port that the NameNode uses to listen to client requests.
BlockSize
— (Integer
)The size of the data blocks to write into the HDFS cluster.
ReplicationFactor
— (Integer
)The number of DataNodes to replicate the data to when writing to the HDFS cluster.
KmsKeyProviderUri
— (String
)The URI of the HDFS cluster's Key Management Server (KMS).
QopConfiguration
— (map
)The Quality of Protection (QOP) configuration specifies the Remote Procedure Call (RPC) and data transfer privacy settings configured on the Hadoop Distributed File System (HDFS) cluster.
RpcProtection
— (String
)The RPC protection setting configured on the HDFS cluster. This setting corresponds to your
Possible values include:hadoop.rpc.protection
setting in yourcore-site.xml
file on your Hadoop cluster."DISABLED"
"AUTHENTICATION"
"INTEGRITY"
"PRIVACY"
DataTransferProtection
— (String
)The data transfer protection setting configured on the HDFS cluster. This setting corresponds to your
Possible values include:dfs.data.transfer.protection
setting in thehdfs-site.xml
file on your Hadoop cluster."DISABLED"
"AUTHENTICATION"
"INTEGRITY"
"PRIVACY"
AuthenticationType
— (String
)The type of authentication used to determine the identity of the user.
Possible values include:"SIMPLE"
"KERBEROS"
SimpleUser
— (String
)The user name used to identify the client on the host operating system.
KerberosPrincipal
— (String
)The Kerberos principal with access to the files and folders on the HDFS cluster.
KerberosKeytab
— (Buffer, Typed Array, Blob, String
)The Kerberos key table (keytab) that contains mappings between the defined Kerberos principal and the encrypted keys. You can load the keytab from a file by providing the file's address. If you use the CLI, it performs base64 encoding for you. Otherwise, provide the base64-encoded text.
KerberosKrb5Conf
— (Buffer, Typed Array, Blob, String
)The
krb5.conf
file that contains the Kerberos configuration information. You can load thekrb5.conf
file by providing the file's address. If you're using the CLI, it performs the base64 encoding for you. Otherwise, provide the base64-encoded text.AgentArns
— (Array<String>
)The ARNs of the agents that are used to connect to the HDFS cluster.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateLocationNfs(params = {}, callback) ⇒ AWS.Request
Modifies some configurations of the Network File System (NFS) transfer location that you're using with DataSync.
For more information, see Configuring transfers to or from an NFS file server.
Service Reference:
Examples:
Calling the updateLocationNfs operation
var params = { LocationArn: 'STRING_VALUE', /* required */ MountOptions: { Version: AUTOMATIC | NFS3 | NFS4_0 | NFS4_1 }, OnPremConfig: { AgentArns: [ /* required */ 'STRING_VALUE', /* more items */ ] }, Subdirectory: 'STRING_VALUE' }; datasync.updateLocationNfs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LocationArn
— (String
)Specifies the Amazon Resource Name (ARN) of the NFS transfer location that you want to update.
Subdirectory
— (String
)Specifies the export path in your NFS file server that you want DataSync to mount.
This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see Accessing NFS file servers.
OnPremConfig
— (map
)The DataSync agents that are connecting to a Network File System (NFS) location.
AgentArns
— required — (Array<String>
)The Amazon Resource Names (ARNs) of the agents connecting to a transfer location.
MountOptions
— (map
)Specifies how DataSync can access a location using the NFS protocol.
Version
— (String
)Specifies the NFS version that you want DataSync to use when mounting your NFS share. If the server refuses to use the version specified, the task fails.
You can specify the following options:
-
AUTOMATIC
(default): DataSync chooses NFS version 4.1. -
NFS3
: Stateless protocol version that allows for asynchronous writes on the server. -
NFSv4_0
: Stateful, firewall-friendly protocol version that supports delegations and pseudo file systems. -
NFSv4_1
: Stateful protocol version that supports sessions, directory delegations, and parallel data processing. NFS version 4.1 also includes all features available in version 4.0.
Note: DataSync currently only supports NFS version 3 with Amazon FSx for NetApp ONTAP locations.Possible values include:"AUTOMATIC"
"NFS3"
"NFS4_0"
"NFS4_1"
-
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateLocationObjectStorage(params = {}, callback) ⇒ AWS.Request
Updates some parameters of an existing DataSync location for an object storage system.
Service Reference:
Examples:
Calling the updateLocationObjectStorage operation
var params = { LocationArn: 'STRING_VALUE', /* required */ AccessKey: 'STRING_VALUE', AgentArns: [ 'STRING_VALUE', /* more items */ ], SecretKey: 'STRING_VALUE', ServerCertificate: Buffer.from('...') || 'STRING_VALUE' /* Strings will be Base-64 encoded on your behalf */, ServerPort: 'NUMBER_VALUE', ServerProtocol: HTTPS | HTTP, Subdirectory: 'STRING_VALUE' }; datasync.updateLocationObjectStorage(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LocationArn
— (String
)Specifies the ARN of the object storage system location that you're updating.
ServerPort
— (Integer
)Specifies the port that your object storage server accepts inbound network traffic on (for example, port 443).
ServerProtocol
— (String
)Specifies the protocol that your object storage server uses to communicate.
Possible values include:"HTTPS"
"HTTP"
Subdirectory
— (String
)Specifies the object prefix for your object storage server. If this is a source location, DataSync only copies objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.
AccessKey
— (String
)Specifies the access key (for example, a user name) if credentials are required to authenticate with the object storage server.
SecretKey
— (String
)Specifies the secret key (for example, a password) if credentials are required to authenticate with the object storage server.
AgentArns
— (Array<String>
)Specifies the Amazon Resource Names (ARNs) of the DataSync agents that can securely connect with your location.
ServerCertificate
— (Buffer, Typed Array, Blob, String
)Specifies a certificate chain for DataSync to authenticate with your object storage system if the system uses a private or self-signed certificate authority (CA). You must specify a single
.pem
file with a full certificate chain (for example,file:///home/user/.ssh/object_storage_certificates.pem
).The certificate chain might include:
-
The object storage system's certificate
-
All intermediate certificates (if there are any)
-
The root certificate of the signing CA
You can concatenate your certificates into a
.pem
file (which can be up to 32768 bytes before base64 encoding). The following examplecat
command creates anobject_storage_certificates.pem
file that includes three certificates:cat object_server_certificate.pem intermediate_certificate.pem ca_root_certificate.pem > object_storage_certificates.pem
To use this parameter, configure
ServerProtocol
toHTTPS
.Updating this parameter doesn't interfere with tasks that you have in progress.
-
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateLocationSmb(params = {}, callback) ⇒ AWS.Request
Updates some of the parameters of a Server Message Block (SMB) file server location that you can use for DataSync transfers.
Service Reference:
Examples:
Calling the updateLocationSmb operation
var params = { LocationArn: 'STRING_VALUE', /* required */ AgentArns: [ 'STRING_VALUE', /* more items */ ], Domain: 'STRING_VALUE', MountOptions: { Version: AUTOMATIC | SMB2 | SMB3 | SMB1 | SMB2_0 }, Password: 'STRING_VALUE', Subdirectory: 'STRING_VALUE', User: 'STRING_VALUE' }; datasync.updateLocationSmb(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
LocationArn
— (String
)Specifies the ARN of the SMB location that you want to update.
Subdirectory
— (String
)Specifies the name of the share exported by your SMB file server where DataSync will read or write data. You can include a subdirectory in the share path (for example,
/path/to/subdirectory
). Make sure that other SMB clients in your network can also mount this path.To copy all data in the specified subdirectory, DataSync must be able to mount the SMB share and access all of its data. For more information, see required permissions for SMB locations.
User
— (String
)Specifies the user name that can mount your SMB file server and has permission to access the files and folders involved in your transfer.
For information about choosing a user with the right level of access for your transfer, see required permissions for SMB locations.
Domain
— (String
)Specifies the Windows domain name that your SMB file server belongs to.
If you have multiple domains in your environment, configuring this parameter makes sure that DataSync connects to the right file server.
For more information, see required permissions for SMB locations.
Password
— (String
)Specifies the password of the user who can mount your SMB file server and has permission to access the files and folders involved in your transfer.
For more information, see required permissions for SMB locations.
AgentArns
— (Array<String>
)Specifies the DataSync agent (or agents) which you want to connect to your SMB file server. You specify an agent by using its Amazon Resource Name (ARN).
MountOptions
— (map
)Specifies the version of the Server Message Block (SMB) protocol that DataSync uses to access an SMB file server.
Version
— (String
)By default, DataSync automatically chooses an SMB protocol version based on negotiation with your SMB file server. You also can configure DataSync to use a specific SMB version, but we recommend doing this only if DataSync has trouble negotiating with the SMB file server automatically.
These are the following options for configuring the SMB version:
-
AUTOMATIC
(default): DataSync and the SMB file server negotiate the highest version of SMB that they mutually support between 2.1 and 3.1.1.This is the recommended option. If you instead choose a specific version that your file server doesn't support, you may get an
Operation Not Supported
error. -
SMB3
: Restricts the protocol negotiation to only SMB version 3.0.2. -
SMB2
: Restricts the protocol negotiation to only SMB version 2.1. -
SMB2_0
: Restricts the protocol negotiation to only SMB version 2.0. -
SMB1
: Restricts the protocol negotiation to only SMB version 1.0.Note: TheSMB1
option isn't available when creating an Amazon FSx for NetApp ONTAP location.
"AUTOMATIC"
"SMB2"
"SMB3"
"SMB1"
"SMB2_0"
-
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateStorageSystem(params = {}, callback) ⇒ AWS.Request
Modifies some configurations of an on-premises storage system resource that you're using with DataSync Discovery.
Service Reference:
Examples:
Calling the updateStorageSystem operation
var params = { StorageSystemArn: 'STRING_VALUE', /* required */ AgentArns: [ 'STRING_VALUE', /* more items */ ], CloudWatchLogGroupArn: 'STRING_VALUE', Credentials: { Password: 'STRING_VALUE', /* required */ Username: 'STRING_VALUE' /* required */ }, Name: 'STRING_VALUE', ServerConfiguration: { ServerHostname: 'STRING_VALUE', /* required */ ServerPort: 'NUMBER_VALUE' } }; datasync.updateStorageSystem(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
StorageSystemArn
— (String
)Specifies the ARN of the on-premises storage system that you want reconfigure.
ServerConfiguration
— (map
)Specifies the server name and network port required to connect with your on-premises storage system's management interface.
ServerHostname
— required — (String
)The domain name or IP address of your storage system's management interface.
ServerPort
— (Integer
)The network port for accessing the storage system's management interface.
AgentArns
— (Array<String>
)Specifies the Amazon Resource Name (ARN) of the DataSync agent that connects to and reads your on-premises storage system. You can only specify one ARN.
Name
— (String
)Specifies a familiar name for your on-premises storage system.
CloudWatchLogGroupArn
— (String
)Specifies the ARN of the Amazon CloudWatch log group for monitoring and logging discovery job events.
Credentials
— (map
)Specifies the user name and password for accessing your on-premises storage system's management interface.
Username
— required — (String
)Specifies the user name for your storage system's management interface.
Password
— required — (String
)Specifies the password for your storage system's management interface.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateTask(params = {}, callback) ⇒ AWS.Request
Updates the configuration of a task, which defines where and how DataSync transfers your data.
Service Reference:
Examples:
Calling the updateTask operation
var params = { TaskArn: 'STRING_VALUE', /* required */ CloudWatchLogGroupArn: 'STRING_VALUE', Excludes: [ { FilterType: SIMPLE_PATTERN, Value: 'STRING_VALUE' }, /* more items */ ], Includes: [ { FilterType: SIMPLE_PATTERN, Value: 'STRING_VALUE' }, /* more items */ ], ManifestConfig: { Action: TRANSFER, Format: CSV, Source: { S3: { /* required */ BucketAccessRoleArn: 'STRING_VALUE', /* required */ ManifestObjectPath: 'STRING_VALUE', /* required */ S3BucketArn: 'STRING_VALUE', /* required */ ManifestObjectVersionId: 'STRING_VALUE' } } }, Name: 'STRING_VALUE', Options: { Atime: NONE | BEST_EFFORT, BytesPerSecond: 'NUMBER_VALUE', Gid: NONE | INT_VALUE | NAME | BOTH, LogLevel: OFF | BASIC | TRANSFER, Mtime: NONE | PRESERVE, ObjectTags: PRESERVE | NONE, OverwriteMode: ALWAYS | NEVER, PosixPermissions: NONE | PRESERVE, PreserveDeletedFiles: PRESERVE | REMOVE, PreserveDevices: NONE | PRESERVE, SecurityDescriptorCopyFlags: NONE | OWNER_DACL | OWNER_DACL_SACL, TaskQueueing: ENABLED | DISABLED, TransferMode: CHANGED | ALL, Uid: NONE | INT_VALUE | NAME | BOTH, VerifyMode: POINT_IN_TIME_CONSISTENT | ONLY_FILES_TRANSFERRED | NONE }, Schedule: { ScheduleExpression: 'STRING_VALUE', /* required */ Status: ENABLED | DISABLED }, TaskReportConfig: { Destination: { S3: { BucketAccessRoleArn: 'STRING_VALUE', /* required */ S3BucketArn: 'STRING_VALUE', /* required */ Subdirectory: 'STRING_VALUE' } }, ObjectVersionIds: INCLUDE | NONE, OutputType: SUMMARY_ONLY | STANDARD, Overrides: { Deleted: { ReportLevel: ERRORS_ONLY | SUCCESSES_AND_ERRORS }, Skipped: { ReportLevel: ERRORS_ONLY | SUCCESSES_AND_ERRORS }, Transferred: { ReportLevel: ERRORS_ONLY | SUCCESSES_AND_ERRORS }, Verified: { ReportLevel: ERRORS_ONLY | SUCCESSES_AND_ERRORS } }, ReportLevel: ERRORS_ONLY | SUCCESSES_AND_ERRORS } }; datasync.updateTask(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
TaskArn
— (String
)Specifies the ARN of the task that you want to update.
Options
— (map
)Indicates how your transfer task is configured. These options include how DataSync handles files, objects, and their associated metadata during your transfer. You also can specify how to verify data integrity, set bandwidth limits for your task, among other options.
Each option has a default value. Unless you need to, you don't have to configure any option before calling StartTaskExecution.
You also can override your task options for each task execution. For example, you might want to adjust the
LogLevel
for an individual execution.VerifyMode
— (String
)Specifies how and when DataSync checks the integrity of your data during a transfer.
-
ONLY_FILES_TRANSFERRED
(recommended) - DataSync calculates the checksum of transferred files and metadata at the source location. At the end of the transfer, DataSync then compares this checksum to the checksum calculated on those files at the destination.We recommend this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations.
-
POINT_IN_TIME_CONSISTENT
(default) - At the end of the transfer, DataSync scans the entire source and destination to verify that both locations are fully synchronized.If you use a manifest, DataSync only scans and verifies what's listed in the manifest.
You can't use this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations.
-
NONE
- DataSync doesn't run additional verification at the end of the transfer. All data transmissions are still integrity-checked with checksum verification during the transfer.
"POINT_IN_TIME_CONSISTENT"
"ONLY_FILES_TRANSFERRED"
"NONE"
-
OverwriteMode
— (String
)Specifies whether DataSync should modify or preserve data at the destination location.
-
ALWAYS
(default) - DataSync modifies data in the destination location when source data (including metadata) has changed.If DataSync overwrites objects, you might incur additional charges for certain Amazon S3 storage classes (for example, for retrieval or early deletion). For more information, see Storage class considerations with Amazon S3 transfers.
-
NEVER
- DataSync doesn't overwrite data in the destination location even if the source data has changed. You can use this option to protect against overwriting changes made to files or objects in the destination.
"ALWAYS"
"NEVER"
-
Atime
— (String
)Specifies whether to preserve metadata indicating the last time a file was read or written to.
Note: The behavior ofAtime
isn't fully standard across platforms, so DataSync can only do this on a best-effort basis.-
BEST_EFFORT
(default) - DataSync attempts to preserve the originalAtime
attribute on all source files (that is, the version before thePREPARING
phase of the task execution). This option is recommended. -
NONE
- IgnoresAtime
.
Note: IfPossible values include:Atime
is set toBEST_EFFORT
,Mtime
must be set toPRESERVE
. IfAtime
is set toNONE
,Mtime
must also beNONE
."NONE"
"BEST_EFFORT"
-
Mtime
— (String
)Specifies whether to preserve metadata indicating the last time that a file was written to before the
PREPARING
phase of your task execution. This option is required when you need to run the a task more than once.-
PRESERVE
(default) - Preserves originalMtime
, which is recommended. -
NONE
- IgnoresMtime
.
Note: IfPossible values include:Mtime
is set toPRESERVE
,Atime
must be set toBEST_EFFORT
. IfMtime
is set toNONE
,Atime
must also be set toNONE
."NONE"
"PRESERVE"
-
Uid
— (String
)Specifies the POSIX user ID (UID) of the file's owner.
-
INT_VALUE
(default) - Preserves the integer value of UID and group ID (GID), which is recommended. -
NONE
- Ignores UID and GID.
For more information, see Metadata copied by DataSync.
Possible values include:"NONE"
"INT_VALUE"
"NAME"
"BOTH"
-
Gid
— (String
)Specifies the POSIX group ID (GID) of the file's owners.
-
INT_VALUE
(default) - Preserves the integer value of user ID (UID) and GID, which is recommended. -
NONE
- Ignores UID and GID.
For more information, see Metadata copied by DataSync.
Possible values include:"NONE"
"INT_VALUE"
"NAME"
"BOTH"
-
PreserveDeletedFiles
— (String
)Specifies whether files in the destination location that don't exist in the source should be preserved. This option can affect your Amazon S3 storage cost. If your task deletes objects, you might incur minimum storage duration charges for certain storage classes. For detailed information, see Considerations when working with Amazon S3 storage classes in DataSync.
-
PRESERVE
(default) - Ignores such destination files, which is recommended. -
REMOVE
- Deletes destination files that aren’t present in the source.
Note: If you set this parameter toPossible values include:REMOVE
, you can't setTransferMode
toALL
. When you transfer all data, DataSync doesn't scan your destination location and doesn't know what to delete."PRESERVE"
"REMOVE"
-
PreserveDevices
— (String
)Specifies whether DataSync should preserve the metadata of block and character devices in the source location and recreate the files with that device name and metadata on the destination. DataSync copies only the name and metadata of such devices.
Note: DataSync can't copy the actual contents of these devices because they're nonterminal and don't return an end-of-file (EOF) marker.-
NONE
(default) - Ignores special devices (recommended). -
PRESERVE
- Preserves character and block device metadata. This option currently isn't supported for Amazon EFS.
"NONE"
"PRESERVE"
-
PosixPermissions
— (String
)Specifies which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file.
For more information, see Metadata copied by DataSync.
-
PRESERVE
(default) - Preserves POSIX-style permissions, which is recommended. -
NONE
- Ignores POSIX-style permissions.
Note: DataSync can preserve extant permissions of a source location.Possible values include:"NONE"
"PRESERVE"
-
BytesPerSecond
— (Integer
)Limits the bandwidth used by a DataSync task. For example, if you want DataSync to use a maximum of 1 MB, set this value to
1048576
(=1024*1024
).TaskQueueing
— (String
)Specifies whether your transfer tasks should be put into a queue during certain scenarios when running multiple tasks. This is
Possible values include:ENABLED
by default."ENABLED"
"DISABLED"
LogLevel
— (String
)Specifies the type of logs that DataSync publishes to a Amazon CloudWatch Logs log group. To specify the log group, see CloudWatchLogGroupArn.
-
BASIC
- Publishes logs with only basic information (such as transfer errors). -
TRANSFER
- Publishes logs for all files or objects that your DataSync task transfers and performs data-integrity checks on. -
OFF
- No logs are published.
"OFF"
"BASIC"
"TRANSFER"
-
TransferMode
— (String
)Determines whether DataSync transfers only the data and metadata that differ between the source and the destination location or transfers all the content from the source (without comparing what's in the destination).
-
CHANGED
(default) - DataSync copies only data or metadata that is new or different content from the source location to the destination location. -
ALL
- DataSync copies everything in the source to the destination without comparing differences between the locations.
"CHANGED"
"ALL"
-
SecurityDescriptorCopyFlags
— (String
)Specifies which components of the SMB security descriptor are copied from source to destination objects.
This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations or between two FSx for Windows File Server locations. For more information, see how DataSync handles metadata.
-
OWNER_DACL
(default) - For each copied object, DataSync copies the following metadata:-
The object owner.
-
NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.
DataSync won't copy NTFS system access control lists (SACLs) with this option.
-
-
OWNER_DACL_SACL
- For each copied object, DataSync copies the following metadata:-
The object owner.
-
NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.
-
SACLs, which are used by administrators to log attempts to access a secured object.
Copying SACLs requires granting additional permissions to the Windows user that DataSync uses to access your SMB location. For information about choosing a user with the right permissions, see required permissions for SMB, FSx for Windows File Server, or FSx for ONTAP (depending on the type of location in your transfer).
-
-
NONE
- None of the SMB security descriptor components are copied. Destination objects are owned by the user that was provided for accessing the destination location. DACLs and SACLs are set based on the destination server’s configuration.
"NONE"
"OWNER_DACL"
"OWNER_DACL_SACL"
-
ObjectTags
— (String
)Specifies whether you want DataSync to
Possible values include:PRESERVE
object tags (default behavior) when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify theNONE
value."PRESERVE"
"NONE"
Excludes
— (Array<map>
)Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters.
FilterType
— (String
)The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.
Possible values include:"SIMPLE_PATTERN"
Value
— (String
)A single filter string that consists of the patterns to include or exclude. The patterns are delimited by "|" (that is, a pipe), for example:
/folder1|/folder2
Schedule
— (map
)Specifies a schedule for when you want your task to run. For more information, see Scheduling your task.
ScheduleExpression
— required — (String
)Specifies your task schedule by using a cron expression in UTC time. For information about cron expression syntax, see the Amazon EventBridge User Guide .
Status
— (String
)Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there can be situations where you need to disable it. For example, you might need to pause a recurring transfer to fix an issue with your task or perform maintenance on your storage system.
DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails.
Possible values include:"ENABLED"
"DISABLED"
Name
— (String
)Specifies the name of your task.
CloudWatchLogGroupArn
— (String
)Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.
Includes
— (Array<map>
)Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters.
FilterType
— (String
)The type of filter rule to apply. DataSync only supports the SIMPLE_PATTERN rule type.
Possible values include:"SIMPLE_PATTERN"
Value
— (String
)A single filter string that consists of the patterns to include or exclude. The patterns are delimited by "|" (that is, a pipe), for example:
/folder1|/folder2
ManifestConfig
— (map
)Configures a manifest, which is a list of files or objects that you want DataSync to transfer. For more information and configuration examples, see Specifying what DataSync transfers by using a manifest.
When using this parameter, your caller identity (the IAM role that you're using DataSync with) must have the
iam:PassRole
permission. The AWSDataSyncFullAccess policy includes this permission.To remove a manifest configuration, specify this parameter as empty.
Action
— (String
)Specifies what DataSync uses the manifest for.
Possible values include:"TRANSFER"
Format
— (String
)Specifies the file format of your manifest. For more information, see Creating a manifest.
Possible values include:"CSV"
Source
— (map
)Specifies the manifest that you want DataSync to use and where it's hosted.
Note: You must specify this parameter if you're configuring a new manifest on or after February 7, 2024. If you don't, you'll get a 400 status code andValidationException
error stating that you're missing the IAM role for DataSync to access the S3 bucket where you're hosting your manifest. For more information, see Providing DataSync access to your manifest.S3
— required — (map
)Specifies the S3 bucket where you're hosting your manifest.
ManifestObjectPath
— required — (String
)Specifies the Amazon S3 object key of your manifest. This can include a prefix (for example,
prefix/my-manifest.csv
).BucketAccessRoleArn
— required — (String
)Specifies the Identity and Access Management (IAM) role that allows DataSync to access your manifest. For more information, see Providing DataSync access to your manifest.
S3BucketArn
— required — (String
)Specifies the Amazon Resource Name (ARN) of the S3 bucket where you're hosting your manifest.
ManifestObjectVersionId
— (String
)Specifies the object version ID of the manifest that you want DataSync to use. If you don't set this, DataSync uses the latest version of the object.
TaskReportConfig
— (map
)Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. For more information, see Monitoring your DataSync transfers with task reports.
When using this parameter, your caller identity (the IAM role that you're using DataSync with) must have the
iam:PassRole
permission. The AWSDataSyncFullAccess policy includes this permission.To remove a task report configuration, specify this parameter as empty.
Destination
— (map
)Specifies the Amazon S3 bucket where DataSync uploads your task report. For more information, see Task reports.
S3
— (map
)Specifies the Amazon S3 bucket where DataSync uploads your task report.
Subdirectory
— (String
)Specifies a bucket prefix for your report.
S3BucketArn
— required — (String
)Specifies the ARN of the S3 bucket where DataSync uploads your report.
BucketAccessRoleArn
— required — (String
)Specifies the Amazon Resource Name (ARN) of the IAM policy that allows DataSync to upload a task report to your S3 bucket. For more information, see Allowing DataSync to upload a task report to an Amazon S3 bucket.
OutputType
— (String
)Specifies the type of task report that you want:
-
SUMMARY_ONLY
: Provides necessary details about your task, including the number of files, objects, and directories transferred and transfer duration. -
STANDARD
: Provides complete details about your task, including a full list of files, objects, and directories that were transferred, skipped, verified, and more.
"SUMMARY_ONLY"
"STANDARD"
-
ReportLevel
— (String
)Specifies whether you want your task report to include only what went wrong with your transfer or a list of what succeeded and didn't.
-
ERRORS_ONLY
: A report shows what DataSync was unable to transfer, skip, verify, and delete. -
SUCCESSES_AND_ERRORS
: A report shows what DataSync was able and unable to transfer, skip, verify, and delete.
"ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
-
ObjectVersionIds
— (String
)Specifies whether your task report includes the new version of each object transferred into an S3 bucket. This only applies if you enable versioning on your bucket. Keep in mind that setting this to
Possible values include:INCLUDE
can increase the duration of your task execution."INCLUDE"
"NONE"
Overrides
— (map
)Customizes the reporting level for aspects of your task report. For example, your report might generally only include errors, but you could specify that you want a list of successes and errors just for the files that DataSync attempted to delete in your destination location.
Transferred
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to transfer.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
Verified
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to verify at the end of your transfer.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
Deleted
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to delete in your destination location. This only applies if you configure your task to delete data in the destination that isn't in the source.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
Skipped
— (map
)Specifies the level of reporting for the files, objects, and directories that DataSync attempted to skip during your transfer.
ReportLevel
— (String
)Specifies whether your task report includes errors only or successes and errors.
For example, your report might mostly include only what didn't go well in your transfer (
Possible values include:ERRORS_ONLY
). At the same time, you want to verify that your task filter is working correctly. In this situation, you can get a list of what files DataSync successfully skipped and if something transferred that you didn't to transfer (SUCCESSES_AND_ERRORS
)."ERRORS_ONLY"
"SUCCESSES_AND_ERRORS"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateTaskExecution(params = {}, callback) ⇒ AWS.Request
Updates the configuration of a running DataSync task execution.
Note: Currently, the onlyOption
that you can modify withUpdateTaskExecution
isBytesPerSecond
, which throttles bandwidth for a running or queued task execution.Service Reference:
Examples:
Calling the updateTaskExecution operation
var params = { Options: { /* required */ Atime: NONE | BEST_EFFORT, BytesPerSecond: 'NUMBER_VALUE', Gid: NONE | INT_VALUE | NAME | BOTH, LogLevel: OFF | BASIC | TRANSFER, Mtime: NONE | PRESERVE, ObjectTags: PRESERVE | NONE, OverwriteMode: ALWAYS | NEVER, PosixPermissions: NONE | PRESERVE, PreserveDeletedFiles: PRESERVE | REMOVE, PreserveDevices: NONE | PRESERVE, SecurityDescriptorCopyFlags: NONE | OWNER_DACL | OWNER_DACL_SACL, TaskQueueing: ENABLED | DISABLED, TransferMode: CHANGED | ALL, Uid: NONE | INT_VALUE | NAME | BOTH, VerifyMode: POINT_IN_TIME_CONSISTENT | ONLY_FILES_TRANSFERRED | NONE }, TaskExecutionArn: 'STRING_VALUE' /* required */ }; datasync.updateTaskExecution(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
TaskExecutionArn
— (String
)Specifies the Amazon Resource Name (ARN) of the task execution that you're updating.
Options
— (map
)Indicates how your transfer task is configured. These options include how DataSync handles files, objects, and their associated metadata during your transfer. You also can specify how to verify data integrity, set bandwidth limits for your task, among other options.
Each option has a default value. Unless you need to, you don't have to configure any option before calling StartTaskExecution.
You also can override your task options for each task execution. For example, you might want to adjust the
LogLevel
for an individual execution.VerifyMode
— (String
)Specifies how and when DataSync checks the integrity of your data during a transfer.
-
ONLY_FILES_TRANSFERRED
(recommended) - DataSync calculates the checksum of transferred files and metadata at the source location. At the end of the transfer, DataSync then compares this checksum to the checksum calculated on those files at the destination.We recommend this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations.
-
POINT_IN_TIME_CONSISTENT
(default) - At the end of the transfer, DataSync scans the entire source and destination to verify that both locations are fully synchronized.If you use a manifest, DataSync only scans and verifies what's listed in the manifest.
You can't use this option when transferring to S3 Glacier Flexible Retrieval or S3 Glacier Deep Archive storage classes. For more information, see Storage class considerations with Amazon S3 locations.
-
NONE
- DataSync doesn't run additional verification at the end of the transfer. All data transmissions are still integrity-checked with checksum verification during the transfer.
"POINT_IN_TIME_CONSISTENT"
"ONLY_FILES_TRANSFERRED"
"NONE"
-
OverwriteMode
— (String
)Specifies whether DataSync should modify or preserve data at the destination location.
-
ALWAYS
(default) - DataSync modifies data in the destination location when source data (including metadata) has changed.If DataSync overwrites objects, you might incur additional charges for certain Amazon S3 storage classes (for example, for retrieval or early deletion). For more information, see Storage class considerations with Amazon S3 transfers.
-
NEVER
- DataSync doesn't overwrite data in the destination location even if the source data has changed. You can use this option to protect against overwriting changes made to files or objects in the destination.
"ALWAYS"
"NEVER"
-
Atime
— (String
)Specifies whether to preserve metadata indicating the last time a file was read or written to.
Note: The behavior ofAtime
isn't fully standard across platforms, so DataSync can only do this on a best-effort basis.-
BEST_EFFORT
(default) - DataSync attempts to preserve the originalAtime
attribute on all source files (that is, the version before thePREPARING
phase of the task execution). This option is recommended. -
NONE
- IgnoresAtime
.
Note: IfPossible values include:Atime
is set toBEST_EFFORT
,Mtime
must be set toPRESERVE
. IfAtime
is set toNONE
,Mtime
must also beNONE
."NONE"
"BEST_EFFORT"
-
Mtime
— (String
)Specifies whether to preserve metadata indicating the last time that a file was written to before the
PREPARING
phase of your task execution. This option is required when you need to run the a task more than once.-
PRESERVE
(default) - Preserves originalMtime
, which is recommended. -
NONE
- IgnoresMtime
.
Note: IfPossible values include:Mtime
is set toPRESERVE
,Atime
must be set toBEST_EFFORT
. IfMtime
is set toNONE
,Atime
must also be set toNONE
."NONE"
"PRESERVE"
-
Uid
— (String
)Specifies the POSIX user ID (UID) of the file's owner.
-
INT_VALUE
(default) - Preserves the integer value of UID and group ID (GID), which is recommended. -
NONE
- Ignores UID and GID.
For more information, see Metadata copied by DataSync.
Possible values include:"NONE"
"INT_VALUE"
"NAME"
"BOTH"
-
Gid
— (String
)Specifies the POSIX group ID (GID) of the file's owners.
-
INT_VALUE
(default) - Preserves the integer value of user ID (UID) and GID, which is recommended. -
NONE
- Ignores UID and GID.
For more information, see Metadata copied by DataSync.
Possible values include:"NONE"
"INT_VALUE"
"NAME"
"BOTH"
-
PreserveDeletedFiles
— (String
)Specifies whether files in the destination location that don't exist in the source should be preserved. This option can affect your Amazon S3 storage cost. If your task deletes objects, you might incur minimum storage duration charges for certain storage classes. For detailed information, see Considerations when working with Amazon S3 storage classes in DataSync.
-
PRESERVE
(default) - Ignores such destination files, which is recommended. -
REMOVE
- Deletes destination files that aren’t present in the source.
Note: If you set this parameter toPossible values include:REMOVE
, you can't setTransferMode
toALL
. When you transfer all data, DataSync doesn't scan your destination location and doesn't know what to delete."PRESERVE"
"REMOVE"
-
PreserveDevices
— (String
)Specifies whether DataSync should preserve the metadata of block and character devices in the source location and recreate the files with that device name and metadata on the destination. DataSync copies only the name and metadata of such devices.
Note: DataSync can't copy the actual contents of these devices because they're nonterminal and don't return an end-of-file (EOF) marker.-
NONE
(default) - Ignores special devices (recommended). -
PRESERVE
- Preserves character and block device metadata. This option currently isn't supported for Amazon EFS.
"NONE"
"PRESERVE"
-
PosixPermissions
— (String
)Specifies which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file.
For more information, see Metadata copied by DataSync.
-
PRESERVE
(default) - Preserves POSIX-style permissions, which is recommended. -
NONE
- Ignores POSIX-style permissions.
Note: DataSync can preserve extant permissions of a source location.Possible values include:"NONE"
"PRESERVE"
-
BytesPerSecond
— (Integer
)Limits the bandwidth used by a DataSync task. For example, if you want DataSync to use a maximum of 1 MB, set this value to
1048576
(=1024*1024
).TaskQueueing
— (String
)Specifies whether your transfer tasks should be put into a queue during certain scenarios when running multiple tasks. This is
Possible values include:ENABLED
by default."ENABLED"
"DISABLED"
LogLevel
— (String
)Specifies the type of logs that DataSync publishes to a Amazon CloudWatch Logs log group. To specify the log group, see CloudWatchLogGroupArn.
-
BASIC
- Publishes logs with only basic information (such as transfer errors). -
TRANSFER
- Publishes logs for all files or objects that your DataSync task transfers and performs data-integrity checks on. -
OFF
- No logs are published.
"OFF"
"BASIC"
"TRANSFER"
-
TransferMode
— (String
)Determines whether DataSync transfers only the data and metadata that differ between the source and the destination location or transfers all the content from the source (without comparing what's in the destination).
-
CHANGED
(default) - DataSync copies only data or metadata that is new or different content from the source location to the destination location. -
ALL
- DataSync copies everything in the source to the destination without comparing differences between the locations.
"CHANGED"
"ALL"
-
SecurityDescriptorCopyFlags
— (String
)Specifies which components of the SMB security descriptor are copied from source to destination objects.
This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations or between two FSx for Windows File Server locations. For more information, see how DataSync handles metadata.
-
OWNER_DACL
(default) - For each copied object, DataSync copies the following metadata:-
The object owner.
-
NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.
DataSync won't copy NTFS system access control lists (SACLs) with this option.
-
-
OWNER_DACL_SACL
- For each copied object, DataSync copies the following metadata:-
The object owner.
-
NTFS discretionary access control lists (DACLs), which determine whether to grant access to an object.
-
SACLs, which are used by administrators to log attempts to access a secured object.
Copying SACLs requires granting additional permissions to the Windows user that DataSync uses to access your SMB location. For information about choosing a user with the right permissions, see required permissions for SMB, FSx for Windows File Server, or FSx for ONTAP (depending on the type of location in your transfer).
-
-
NONE
- None of the SMB security descriptor components are copied. Destination objects are owned by the user that was provided for accessing the destination location. DACLs and SACLs are set based on the destination server’s configuration.
"NONE"
"OWNER_DACL"
"OWNER_DACL_SACL"
-
ObjectTags
— (String
)Specifies whether you want DataSync to
Possible values include:PRESERVE
object tags (default behavior) when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify theNONE
value."PRESERVE"
"NONE"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
Generated on Fri Sep 6 18:22:06 2024 by yard 0.9.36 (ruby-2.5.1). - describeLocationFsxOpenZfs(params = {}, callback) ⇒ AWS.Request