CfnTaskProps
- class aws_cdk.aws_datasync.CfnTaskProps(*, destination_location_arn, source_location_arn, cloud_watch_log_group_arn=None, excludes=None, includes=None, manifest_config=None, name=None, options=None, schedule=None, tags=None, task_report_config=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
) – Specifies the ARN of your transfer’s source location.cloud_watch_log_group_arn (
Optional
[str
]) – Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task. For more information, see Monitoring DataSync with Amazon CloudWatch .excludes (
Union
[IResolvable
,Sequence
[Union
[IResolvable
,FilterRuleProperty
,Dict
[str
,Any
]]],None
]) – Specifies exclude filters that define the files, objects, and folders in your source location that you don’t want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters .includes (
Union
[IResolvable
,Sequence
[Union
[IResolvable
,FilterRuleProperty
,Dict
[str
,Any
]]],None
]) –Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by using filters .
manifest_config (
Union
[IResolvable
,ManifestConfigProperty
,Dict
[str
,Any
],None
]) – The configuration of the manifest that lists the files or objects that you want DataSync to transfer. For more information, see Specifying what DataSync transfers by using a manifest .name (
Optional
[str
]) – Specifies the name of your task.options (
Union
[IResolvable
,OptionsProperty
,Dict
[str
,Any
],None
]) – Specifies your task’s settings, such as preserving file metadata, verifying data integrity, among other options.schedule (
Union
[IResolvable
,TaskScheduleProperty
,Dict
[str
,Any
],None
]) – Specifies a schedule for when you want your task to run. For more information, see Scheduling your task .tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – Specifies the tags that you want to apply to your task. Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.task_report_config (
Union
[IResolvable
,TaskReportConfigProperty
,Dict
[str
,Any
],None
]) – 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 theiam:PassRole
permission. The AWSDataSyncFullAccess policy includes this permission.
- See:
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. from aws_cdk import 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" )], manifest_config=datasync.CfnTask.ManifestConfigProperty( source=datasync.CfnTask.SourceProperty( s3=datasync.CfnTask.ManifestConfigSourceS3Property( bucket_access_role_arn="bucketAccessRoleArn", manifest_object_path="manifestObjectPath", manifest_object_version_id="manifestObjectVersionId", s3_bucket_arn="s3BucketArn" ) ), # the properties below are optional action="action", format="format" ), 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", status="status" ), tags=[CfnTag( key="key", value="value" )], task_report_config=datasync.CfnTask.TaskReportConfigProperty( destination=datasync.CfnTask.DestinationProperty( s3=datasync.CfnTask.S3Property( bucket_access_role_arn="bucketAccessRoleArn", s3_bucket_arn="s3BucketArn", subdirectory="subdirectory" ) ), output_type="outputType", # the properties below are optional object_version_ids="objectVersionIds", overrides=datasync.CfnTask.OverridesProperty( deleted=datasync.CfnTask.DeletedProperty( report_level="reportLevel" ), skipped=datasync.CfnTask.SkippedProperty( report_level="reportLevel" ), transferred=datasync.CfnTask.TransferredProperty( report_level="reportLevel" ), verified=datasync.CfnTask.VerifiedProperty( report_level="reportLevel" ) ), report_level="reportLevel" ) )
Attributes
- cloud_watch_log_group_arn
Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.
For more information, see Monitoring DataSync with Amazon CloudWatch .
- destination_location_arn
The Amazon Resource Name (ARN) of an AWS storage resource’s location.
- excludes
Specifies exclude filters that define the files, objects, and folders in your source location that you don’t want DataSync to transfer.
For more information and examples, see Specifying what DataSync transfers by using filters .
- includes
Specifies include filters define the files, objects, and folders in your source location that you want DataSync to transfer.
For more information and examples, see Specifying what DataSync transfers by using filters .
- manifest_config
The configuration of the manifest that lists the files or objects that you want DataSync to transfer.
For more information, see Specifying what DataSync transfers by using a manifest .
- name
Specifies the name of your task.
- options
Specifies your task’s settings, such as preserving file metadata, verifying data integrity, among other options.
- schedule
Specifies a schedule for when you want your task to run.
For more information, see Scheduling your task .
- source_location_arn
Specifies the ARN of your transfer’s source location.
- tags
Specifies the tags that you want to apply to your task.
Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.
- task_report_config
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.