update_task
async
¶
update_task(
task_arn: TaskArn,
*,
config_overrides: Optional[AsyncDataSyncClientConfig] = None,
options: Optional[Options] = None,
excludes: Optional[FilterList] = None,
schedule: Optional[TaskSchedule] = None,
name: Optional[TagValue] = None,
cloud_watch_log_group_arn: Optional[LogGroupArn] = None,
includes: Optional[FilterList] = None,
manifest_config: Optional[ManifestConfig] = None,
task_report_config: Optional[TaskReportConfig] = None,
) -> UpdateTaskResponse
Updates the configuration of a task, which defines where and how DataSync transfers your data.
Parameters:
-
task_arn(TaskArn) –Specifies the ARN of the task that you want to update.
-
excludes(Optional[FilterList], default:None) –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.
-
schedule(Optional[TaskSchedule], default:None) –Specifies a schedule for when you want your task to run. For more information, see Scheduling your task.
-
name(Optional[TagValue], default:None) –Specifies the name of your task.
-
cloud_watch_log_group_arn(Optional[LogGroupArn], default:None) –Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.
For Enhanced mode tasks, you must use
/aws/datasyncas your log group name. For example:arn:aws:logs:us-east-1:111222333444:log-group:/aws/datasync:*For more information, see Monitoring data transfers with CloudWatch Logs.
-
includes(Optional[FilterList], default:None) –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.
-
manifest_config(Optional[ManifestConfig], default:None) –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:PassRolepermission. The AWSDataSyncFullAccess policy includes this permission.To remove a manifest configuration, specify this parameter as empty.
-
task_report_config(Optional[TaskReportConfig], default:None) –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:PassRolepermission. The AWSDataSyncFullAccess policy includes this permission.To remove a task report configuration, specify this parameter as empty.
Raises:
-
InternalException–This exception is thrown when an error occurs in the DataSync service.
-
InvalidRequestException–This exception is thrown when the client submits a malformed request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_datasync/_services/async_data_sync.py
4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 | |