public static final class CfnTaskProps.Builder
extends java.lang.Object
CfnTaskProps
Constructor and Description |
---|
Builder() |
public CfnTaskProps.Builder destinationLocationArn(java.lang.String destinationLocationArn)
CfnTaskProps.getDestinationLocationArn()
destinationLocationArn
- The Amazon Resource Name (ARN) of an AWS storage resource's location. This parameter is required.this
public CfnTaskProps.Builder sourceLocationArn(java.lang.String sourceLocationArn)
CfnTaskProps.getSourceLocationArn()
sourceLocationArn
- The Amazon Resource Name (ARN) of the source location for the task. This parameter is required.this
public CfnTaskProps.Builder cloudWatchLogGroupArn(java.lang.String cloudWatchLogGroupArn)
CfnTaskProps.getCloudWatchLogGroupArn()
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 .
this
public CfnTaskProps.Builder excludes(IResolvable excludes)
CfnTaskProps.getExcludes()
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 .this
public CfnTaskProps.Builder excludes(java.util.List<? extends java.lang.Object> excludes)
CfnTaskProps.getExcludes()
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 .this
public CfnTaskProps.Builder includes(IResolvable includes)
CfnTaskProps.getIncludes()
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 .this
public CfnTaskProps.Builder includes(java.util.List<? extends java.lang.Object> includes)
CfnTaskProps.getIncludes()
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 .this
public CfnTaskProps.Builder name(java.lang.String name)
CfnTaskProps.getName()
name
- The name of a task.
This value is a text reference that is used to identify the task in the console.this
public CfnTaskProps.Builder options(IResolvable options)
CfnTaskProps.getOptions()
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 .this
public CfnTaskProps.Builder options(CfnTask.OptionsProperty options)
CfnTaskProps.getOptions()
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 .this
public CfnTaskProps.Builder schedule(IResolvable schedule)
CfnTaskProps.getSchedule()
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 .this
public CfnTaskProps.Builder schedule(CfnTask.TaskScheduleProperty schedule)
CfnTaskProps.getSchedule()
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 .this
public CfnTaskProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnTaskProps.getTags()
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.this
public CfnTaskProps build()
CfnTaskProps
java.lang.NullPointerException
- if any required attribute was not provided