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 StringThe task mode that you're using.default ObjectThe configuration of your 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 .
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTask.FilterRuleProperty>- 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 .
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTask.FilterRuleProperty>- 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 .
Returns union: either
IResolvableorCfnTask.ManifestConfigProperty- 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.Returns union: either
IResolvableorCfnTask.OptionsProperty- See Also:
-
getSchedule
Specifies a schedule for when you want your task to run.For more information, see Scheduling your task .
Returns union: either
IResolvableorCfnTask.TaskScheduleProperty- 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
The task mode that you're using.For more information, see Choosing a task mode for your data transfer .
- See Also:
-
getTaskReportConfig
The configuration of your task report, which provides detailed information about your DataSync transfer.For more information, see Monitoring your DataSync transfers with task reports .
Returns union: either
IResolvableorCfnTask.TaskReportConfigProperty- See Also:
-
builder
- Returns:
- a
CfnTaskProps.BuilderofCfnTaskProps
-