update_task
¶
update_task(
task_arn: TaskArn,
*,
config_overrides: Optional[DataSyncClientConfig] = 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/data_sync.py
3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 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 | |