CfnTaskProps
- class aws_cdk.aws_datasync.CfnTaskProps(*, destination_location_arn, source_location_arn, cloud_watch_log_group_arn=None, excludes=None, includes=None, name=None, options=None, schedule=None, tags=None)
Bases:
object
Properties for defining a
CfnTask
.- Parameters:
destination_location_arn (
str
) – The Amazon Resource Name (ARN) of an AWS storage resource’s location.source_location_arn (
str
) – The Amazon Resource Name (ARN) of the source location for the task.cloud_watch_log_group_arn (
Optional
[str
]) – 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 .excludes (
Union
[IResolvable
,Sequence
[Union
[IResolvable
,FilterRuleProperty
,Dict
[str
,Any
]]],None
]) – Specifies a list of filter rules that exclude specific data during your transfer. For more information and examples, see Filtering data transferred by DataSync .includes (
Union
[IResolvable
,Sequence
[Union
[IResolvable
,FilterRuleProperty
,Dict
[str
,Any
]]],None
]) –Specifies a list of filter rules that include specific data during your transfer. For more information and examples, see Filtering data transferred by DataSync .
name (
Optional
[str
]) – The name of a task. This value is a text reference that is used to identify the task in the console.options (
Union
[IResolvable
,OptionsProperty
,Dict
[str
,Any
],None
]) – 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 .schedule (
Union
[IResolvable
,TaskScheduleProperty
,Dict
[str
,Any
],None
]) – 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 .tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – 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.
- Link:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_datasync as datasync cfn_task_props = datasync.CfnTaskProps( destination_location_arn="destinationLocationArn", source_location_arn="sourceLocationArn", # the properties below are optional cloud_watch_log_group_arn="cloudWatchLogGroupArn", excludes=[datasync.CfnTask.FilterRuleProperty( filter_type="filterType", value="value" )], includes=[datasync.CfnTask.FilterRuleProperty( filter_type="filterType", value="value" )], name="name", options=datasync.CfnTask.OptionsProperty( atime="atime", bytes_per_second=123, gid="gid", log_level="logLevel", mtime="mtime", object_tags="objectTags", overwrite_mode="overwriteMode", posix_permissions="posixPermissions", preserve_deleted_files="preserveDeletedFiles", preserve_devices="preserveDevices", security_descriptor_copy_flags="securityDescriptorCopyFlags", task_queueing="taskQueueing", transfer_mode="transferMode", uid="uid", verify_mode="verifyMode" ), schedule=datasync.CfnTask.TaskScheduleProperty( schedule_expression="scheduleExpression" ), tags=[CfnTag( key="key", value="value" )] )
Attributes
- cloud_watch_log_group_arn
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 .
- destination_location_arn
The Amazon Resource Name (ARN) of an AWS storage resource’s location.
- 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 .
- 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 .
- name
The name of a task.
This value is a text reference that is used to identify the task in the console.
- 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 .
- 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 .
- source_location_arn
The Amazon Resource Name (ARN) of the source location for the task.
- 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.