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
3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 | |