Class CfnTask.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTask>
- Enclosing class:
CfnTask
CfnTask
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
cloudWatchLogGroupArn
(String cloudWatchLogGroupArn) The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the task.static CfnTask.Builder
destinationLocationArn
(String destinationLocationArn) The Amazon Resource Name (ARN) of an AWS storage resource's location.Specifies a list of filter rules that exclude specific data during your transfer.excludes
(IResolvable excludes) Specifies a list of filter rules that exclude specific data during your transfer.Specifies a list of filter rules that include specific data during your transfer.includes
(IResolvable includes) Specifies a list of filter rules that include specific data during your transfer.manifestConfig
(IResolvable manifestConfig) The configuration of the manifest that lists the files or objects to transfer.manifestConfig
(CfnTask.ManifestConfigProperty manifestConfig) The configuration of the manifest that lists the files or objects to transfer.The name of a task.options
(IResolvable options) Specifies the configuration options for a task.options
(CfnTask.OptionsProperty options) Specifies the configuration options for a task.schedule
(IResolvable schedule) Specifies a schedule used to periodically transfer files from a source to a destination location.schedule
(CfnTask.TaskScheduleProperty schedule) Specifies a schedule used to periodically transfer files from a source to a destination location.sourceLocationArn
(String sourceLocationArn) The Amazon Resource Name (ARN) of the source location for the task.Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task.taskReportConfig
(IResolvable taskReportConfig) Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer.taskReportConfig
(CfnTask.TaskReportConfigProperty taskReportConfig) Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer.
-
Method Details
-
create
@Stability(Stable) public static CfnTask.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnTask.Builder
.
-
destinationLocationArn
The Amazon Resource Name (ARN) of an AWS storage resource's location.- Parameters:
destinationLocationArn
- The Amazon Resource Name (ARN) of an AWS storage resource's location. This parameter is required.- Returns:
this
- See Also:
-
sourceLocationArn
The Amazon Resource Name (ARN) of the source location for the task.- Parameters:
sourceLocationArn
- The Amazon Resource Name (ARN) of the source location for the task. This parameter is required.- Returns:
this
- See Also:
-
cloudWatchLogGroupArn
The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the task.For more information about how to use CloudWatch Logs with DataSync, see Monitoring Your Task in the AWS DataSync User Guide.
For more information about these groups, see Working with Log Groups and Log Streams in the Amazon CloudWatch Logs User Guide .
- Parameters:
cloudWatchLogGroupArn
- The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the task. This parameter is required.- Returns:
this
- See Also:
-
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 .
- Parameters:
excludes
- Specifies a list of filter rules that exclude specific data during your transfer. This parameter is required.- Returns:
this
- See Also:
-
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 .
- Parameters:
excludes
- Specifies a list of filter rules that exclude specific data during your transfer. This parameter is required.- Returns:
this
- See Also:
-
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 .
- Parameters:
includes
- Specifies a list of filter rules that include specific data during your transfer. This parameter is required.- Returns:
this
- See Also:
-
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 .
- Parameters:
includes
- Specifies a list of filter rules that include specific data during your transfer. This parameter is required.- Returns:
this
- See Also:
-
manifestConfig
The configuration of the manifest that lists the files or objects to transfer.For more information, see Specifying what DataSync transfers by using a manifest .
- Parameters:
manifestConfig
- The configuration of the manifest that lists the files or objects to transfer. This parameter is required.- Returns:
this
- See Also:
-
manifestConfig
@Stability(Stable) public CfnTask.Builder manifestConfig(CfnTask.ManifestConfigProperty manifestConfig) The configuration of the manifest that lists the files or objects to transfer.For more information, see Specifying what DataSync transfers by using a manifest .
- Parameters:
manifestConfig
- The configuration of the manifest that lists the files or objects to transfer. This parameter is required.- Returns:
this
- See Also:
-
name
The name of a task.This value is a text reference that is used to identify the task in the console.
- Parameters:
name
- The name of a task. This parameter is required.- Returns:
this
- See Also:
-
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 .
- Parameters:
options
- Specifies the configuration options for a task. Some options include preserving file or object metadata and verifying data integrity. This parameter is required.- Returns:
this
- See Also:
-
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 .
- Parameters:
options
- Specifies the configuration options for a task. Some options include preserving file or object metadata and verifying data integrity. This parameter is required.- Returns:
this
- See Also:
-
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 .
- Parameters:
schedule
- Specifies a schedule used to periodically transfer files from a source to a destination location. This parameter is required.- Returns:
this
- See Also:
-
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 .
- Parameters:
schedule
- Specifies a schedule used to periodically transfer files from a source to a destination location. This parameter is required.- Returns:
this
- See Also:
-
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.
- Parameters:
tags
- Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task. This parameter is required.- Returns:
this
- See Also:
-
taskReportConfig
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 role that you're using DataSync with) must have the
iam:PassRole
permission. The AWSDataSyncFullAccess policy includes this permission.- Parameters:
taskReportConfig
- Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. This parameter is required.- Returns:
this
- See Also:
-
taskReportConfig
@Stability(Stable) public CfnTask.Builder taskReportConfig(CfnTask.TaskReportConfigProperty taskReportConfig) 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 role that you're using DataSync with) must have the
iam:PassRole
permission. The AWSDataSyncFullAccess policy includes this permission.- Parameters:
taskReportConfig
- Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. This parameter is required.- Returns:
this
- See Also:
-
build
-