Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Configures a task, which defines where and how DataSync transfers your data.
A task includes a source location, a destination location, and the preferences for how and when you want to transfer your data (such as bandwidth limits, scheduling, among other options).
Synopsis
- data CreateTask = CreateTask' {}
- newCreateTask :: Text -> Text -> CreateTask
- createTask_cloudWatchLogGroupArn :: Lens' CreateTask (Maybe Text)
- createTask_excludes :: Lens' CreateTask (Maybe [FilterRule])
- createTask_includes :: Lens' CreateTask (Maybe [FilterRule])
- createTask_name :: Lens' CreateTask (Maybe Text)
- createTask_options :: Lens' CreateTask (Maybe Options)
- createTask_schedule :: Lens' CreateTask (Maybe TaskSchedule)
- createTask_tags :: Lens' CreateTask (Maybe [TagListEntry])
- createTask_sourceLocationArn :: Lens' CreateTask Text
- createTask_destinationLocationArn :: Lens' CreateTask Text
- data CreateTaskResponse = CreateTaskResponse' {
- taskArn :: Maybe Text
- httpStatus :: Int
- newCreateTaskResponse :: Int -> CreateTaskResponse
- createTaskResponse_taskArn :: Lens' CreateTaskResponse (Maybe Text)
- createTaskResponse_httpStatus :: Lens' CreateTaskResponse Int
Creating a Request
data CreateTask Source #
CreateTaskRequest
See: newCreateTask
smart constructor.
CreateTask' | |
|
Instances
:: Text | |
-> Text | |
-> CreateTask |
Create a value of CreateTask
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:cloudWatchLogGroupArn:CreateTask'
, createTask_cloudWatchLogGroupArn
- The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that
is used to monitor and log events in the task.
$sel:excludes:CreateTask'
, createTask_excludes
- Specifies a list of filter rules that exclude specific data during your
transfer. For more information and examples, see
Filtering data transferred by DataSync.
$sel:includes:CreateTask'
, createTask_includes
- Specifies a list of filter rules that include specific data during your
transfer. For more information and examples, see
Filtering data transferred by DataSync.
CreateTask
, createTask_name
- The name of a task. This value is a text reference that is used to
identify the task in the console.
$sel:options:CreateTask'
, createTask_options
- Specifies the configuration options for a task. Some options include
preserving file or object metadata and verifying data integrity.
You can also override these options before starting an individual run of a task (also known as a task execution). For more information, see StartTaskExecution.
$sel:schedule:CreateTask'
, createTask_schedule
- Specifies a schedule used to periodically transfer files from a source
to a destination location. The schedule should be specified in UTC time.
For more information, see
Scheduling your task.
$sel:tags:CreateTask'
, createTask_tags
- Specifies the tags that you want to apply to the Amazon Resource Name
(ARN) representing the task.
Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.
$sel:sourceLocationArn:CreateTask'
, createTask_sourceLocationArn
- The Amazon Resource Name (ARN) of the source location for the task.
$sel:destinationLocationArn:CreateTask'
, createTask_destinationLocationArn
- The Amazon Resource Name (ARN) of an Amazon Web Services storage
resource's location.
Request Lenses
createTask_cloudWatchLogGroupArn :: Lens' CreateTask (Maybe Text) Source #
The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the task.
createTask_excludes :: Lens' CreateTask (Maybe [FilterRule]) Source #
Specifies a list of filter rules that exclude specific data during your transfer. For more information and examples, see Filtering data transferred by DataSync.
createTask_includes :: Lens' CreateTask (Maybe [FilterRule]) Source #
Specifies a list of filter rules that include specific data during your transfer. For more information and examples, see Filtering data transferred by DataSync.
createTask_name :: Lens' CreateTask (Maybe Text) Source #
The name of a task. This value is a text reference that is used to identify the task in the console.
createTask_options :: Lens' CreateTask (Maybe Options) Source #
Specifies the configuration options for a task. Some options include preserving file or object metadata and verifying data integrity.
You can also override these options before starting an individual run of a task (also known as a task execution). For more information, see StartTaskExecution.
createTask_schedule :: Lens' CreateTask (Maybe TaskSchedule) Source #
Specifies a schedule used to periodically transfer files from a source to a destination location. The schedule should be specified in UTC time. For more information, see Scheduling your task.
createTask_tags :: Lens' CreateTask (Maybe [TagListEntry]) Source #
Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task.
Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.
createTask_sourceLocationArn :: Lens' CreateTask Text Source #
The Amazon Resource Name (ARN) of the source location for the task.
createTask_destinationLocationArn :: Lens' CreateTask Text Source #
The Amazon Resource Name (ARN) of an Amazon Web Services storage resource's location.
Destructuring the Response
data CreateTaskResponse Source #
CreateTaskResponse
See: newCreateTaskResponse
smart constructor.
CreateTaskResponse' | |
|
Instances
newCreateTaskResponse Source #
Create a value of CreateTaskResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateTaskResponse
, createTaskResponse_taskArn
- The Amazon Resource Name (ARN) of the task.
$sel:httpStatus:CreateTaskResponse'
, createTaskResponse_httpStatus
- The response's http status code.
Response Lenses
createTaskResponse_taskArn :: Lens' CreateTaskResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the task.
createTaskResponse_httpStatus :: Lens' CreateTaskResponse Int Source #
The response's http status code.