Interface CfnTaskProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTaskProps.Jsii$Proxy
CfnTask.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.datasync.*;
CfnTaskProps cfnTaskProps = CfnTaskProps.builder()
.destinationLocationArn("destinationLocationArn")
.sourceLocationArn("sourceLocationArn")
// the properties below are optional
.cloudWatchLogGroupArn("cloudWatchLogGroupArn")
.excludes(List.of(FilterRuleProperty.builder()
.filterType("filterType")
.value("value")
.build()))
.includes(List.of(FilterRuleProperty.builder()
.filterType("filterType")
.value("value")
.build()))
.manifestConfig(ManifestConfigProperty.builder()
.source(SourceProperty.builder()
.s3(ManifestConfigSourceS3Property.builder()
.bucketAccessRoleArn("bucketAccessRoleArn")
.manifestObjectPath("manifestObjectPath")
.manifestObjectVersionId("manifestObjectVersionId")
.s3BucketArn("s3BucketArn")
.build())
.build())
// the properties below are optional
.action("action")
.format("format")
.build())
.name("name")
.options(OptionsProperty.builder()
.atime("atime")
.bytesPerSecond(123)
.gid("gid")
.logLevel("logLevel")
.mtime("mtime")
.objectTags("objectTags")
.overwriteMode("overwriteMode")
.posixPermissions("posixPermissions")
.preserveDeletedFiles("preserveDeletedFiles")
.preserveDevices("preserveDevices")
.securityDescriptorCopyFlags("securityDescriptorCopyFlags")
.taskQueueing("taskQueueing")
.transferMode("transferMode")
.uid("uid")
.verifyMode("verifyMode")
.build())
.schedule(TaskScheduleProperty.builder()
.scheduleExpression("scheduleExpression")
.status("status")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.taskMode("taskMode")
.taskReportConfig(TaskReportConfigProperty.builder()
.destination(DestinationProperty.builder()
.s3(S3Property.builder()
.bucketAccessRoleArn("bucketAccessRoleArn")
.s3BucketArn("s3BucketArn")
.subdirectory("subdirectory")
.build())
.build())
.outputType("outputType")
// the properties below are optional
.objectVersionIds("objectVersionIds")
.overrides(OverridesProperty.builder()
.deleted(DeletedProperty.builder()
.reportLevel("reportLevel")
.build())
.skipped(SkippedProperty.builder()
.reportLevel("reportLevel")
.build())
.transferred(TransferredProperty.builder()
.reportLevel("reportLevel")
.build())
.verified(VerifiedProperty.builder()
.reportLevel("reportLevel")
.build())
.build())
.reportLevel("reportLevel")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnTaskPropsstatic final classAn implementation forCfnTaskProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnTaskProps.Builderbuilder()default StringSpecifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.The Amazon Resource Name (ARN) of an AWS storage resource's location.default ObjectSpecifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer.default ObjectSpecifies include filters that define the files, objects, and folders in your source location that you want DataSync to transfer.default ObjectThe configuration of the manifest that lists the files or objects that you want DataSync to transfer.default StringgetName()Specifies the name of your task.default ObjectSpecifies your task's settings, such as preserving file metadata, verifying data integrity, among other options.default ObjectSpecifies a schedule for when you want your task to run.Specifies the ARN of your transfer's source location.getTags()Specifies the tags that you want to apply to your task.default StringSpecifies one of the following task modes for your data transfer:.default ObjectSpecifies how you want to configure a task report, which provides detailed information about your DataSync transfer.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDestinationLocationArn
The Amazon Resource Name (ARN) of an AWS storage resource's location.- See Also:
-
getSourceLocationArn
Specifies the ARN of your transfer's source location.- See Also:
-
getCloudWatchLogGroupArn
Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.For Enhanced mode tasks, you don't need to specify anything. DataSync automatically sends logs to a CloudWatch log group named
/aws/datasync.For more information, see Monitoring data transfers with CloudWatch Logs .
- See Also:
-
getExcludes
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 .
- See Also:
-
getIncludes
Specifies include filters that 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 .
- See Also:
-
getManifestConfig
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 .
- See Also:
-
getName
Specifies the name of your task.- See Also:
-
getOptions
Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options.- See Also:
-
getSchedule
Specifies a schedule for when you want your task to run.For more information, see Scheduling your task .
- See Also:
-
getTags
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.
- See Also:
-
getTaskMode
Specifies one of the following task modes for your data transfer:.ENHANCED- Transfer virtually unlimited numbers of objects with higher performance than Basic mode. Enhanced mode tasks optimize the data transfer process by listing, preparing, transferring, and verifying data in parallel. Enhanced mode is currently available for transfers between Amazon S3 locations.
To create an Enhanced mode task, the IAM role that you use to call the
CreateTaskoperation must have theiam:CreateServiceLinkedRolepermission.BASIC(default) - Transfer files or objects between AWS storage and all other supported DataSync locations. Basic mode tasks are subject to quotas on the number of files, objects, and directories in a dataset. Basic mode sequentially prepares, transfers, and verifies data, making it slower than Enhanced mode for most workloads.
For more information, see Understanding task mode differences .
- See Also:
-
getTaskReportConfig
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:PassRolepermission. The AWSDataSyncFullAccess policy includes this permission.- See Also:
-
builder
- Returns:
- a
CfnTaskProps.BuilderofCfnTaskProps
-