list_tasks
¶
list_tasks(
*,
config_overrides: Optional[DataSyncClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
filters: Optional[TaskFilters] = None,
) -> ListTasksResponse
Returns a list of the DataSync tasks you created.
Parameters:
-
max_results(Optional[MaxResults], default:None) –The maximum number of tasks to return.
-
next_token(Optional[NextToken], default:None) –An opaque string that indicates the position at which to begin the next list of tasks.
-
filters(Optional[TaskFilters], default:None) –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 useListTaskswith filter nameLocationIdandOperator Equalswith the ARN for the location.
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
3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 | |