Skip to main content

task

Gets an individual task resource

Overview

Nametask
TypeResource
Descriptiontask
Idawscc.datasync.task

Fields

NameDatatypeDescription
excludesarray
includesarray
tagsarrayAn array of key-value pairs to apply to this resource.
cloud_watch_log_group_arnstringThe ARN of the Amazon CloudWatch log group that is used to monitor and log events in the task.
destination_location_arnstringThe ARN of an AWS storage resource's location.
namestringThe name of a task. This value is a text reference that is used to identify the task in the console.
optionsobject
task_report_configobject
scheduleobject
source_location_arnstringThe ARN of the source location for the task.
task_arnstringThe ARN of the task.
statusstringThe status of the task that was described.
source_network_interface_arnsarray
destination_network_interface_arnsarray
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
excludes,
includes,
tags,
cloud_watch_log_group_arn,
destination_location_arn,
name,
options,
task_report_config,
schedule,
source_location_arn,
task_arn,
status,
source_network_interface_arns,
destination_network_interface_arns
FROM awscc.datasync.task
WHERE data__Identifier = '<TaskArn>';

Permissions

To operate on the task resource, the following permissions are required:

Read

datasync:DescribeTask,
datasync:ListTagsForResource

Update

datasync:UpdateTask,
datasync:DescribeTask,
datasync:ListTagsForResource,
datasync:TagResource,
datasync:UntagResource,
logs:DescribeLogGroups,
iam:PassRole

Delete

datasync:DeleteTask,
ec2:DescribeNetworkInterfaces,
ec2:DeleteNetworkInterface,
ec2:DescribeSecurityGroups,
ec2:DescribeSubnets,
fsx:DescribeFileSystems,
elasticfilesystem:DescribeFileSystems,
elasticfilesystem:DescribeMountTargets,
iam:GetRole