Class CfnTask
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.datasync.CfnTask
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-15T10:24:57.347Z")
@Stability(Stable)
public class CfnTask
extends CfnResource
implements IInspectable, ITaggable
The
AWS::DataSync::Task
resource specifies a task.
A task is a set of two locations (source and destination) and a set of Options
that you use to control the behavior of a task. If you don't specify Options
when you create a task, AWS DataSync populates them with service defaults.
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.*; CfnTask cfnTask = CfnTask.Builder.create(this, "MyCfnTask") .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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnTask
.static interface
The reporting level for the deleted section of your DataSync task report.static interface
Specifies where DataSync uploads your task report .static interface
Specifies which files, folders, and objects to include or exclude when transferring files from source to destination.static interface
Configures a manifest, which is a list of files or objects that you want AWS DataSync to transfer.static interface
Specifies the S3 bucket where you're hosting the manifest that you want AWS DataSync to use.static interface
Represents the options that are available to control the behavior of a StartTaskExecution operation.static interface
Customizes the reporting level for aspects of your task report.static interface
Example:static interface
The reporting level for the skipped section of your DataSync task report.static interface
Specifies the manifest that you want AWS DataSync to use and where it's hosted.static interface
Specifies how you want to configure a task report, which provides detailed information about for your AWS DataSync transfer.static interface
Configures your AWS DataSync task to run on a schedule (at a minimum interval of 1 hour).static interface
The reporting level for the transferred section of your DataSync task report.static interface
The reporting level for the verified section of your DataSync task report.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnTask
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnTask
(software.amazon.jsii.JsiiObjectRef objRef) CfnTask
(software.constructs.Construct scope, String id, CfnTaskProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe ARNs of the destination elastic network interfaces (ENIs) that were created for your subnet.The ARNs of the source ENIs that were created for your subnet.The status of the task that was described.The ARN of the task.Specifies 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.Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer.Specifies include filters that define the files, objects, and folders in your source location that you want DataSync to transfer.The configuration of the manifest that lists the files or objects that you want DataSync to transfer.getName()
Specifies the name of your task.Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options.Specifies a schedule for when you want your task to run.Specifies the ARN of your transfer's source location.getTags()
Tag Manager which manages the tags for this resource.Specifies the tags that you want to apply to your task.Specifies one of the following task modes for your data transfer:.Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setCloudWatchLogGroupArn
(String value) Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.void
setDestinationLocationArn
(String value) The Amazon Resource Name (ARN) of an AWS storage resource's location.void
setExcludes
(List<Object> value) Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer.void
setExcludes
(IResolvable value) Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer.void
setIncludes
(List<Object> value) Specifies include filters that define the files, objects, and folders in your source location that you want DataSync to transfer.void
setIncludes
(IResolvable value) Specifies include filters that define the files, objects, and folders in your source location that you want DataSync to transfer.void
setManifestConfig
(IResolvable value) The configuration of the manifest that lists the files or objects that you want DataSync to transfer.void
The configuration of the manifest that lists the files or objects that you want DataSync to transfer.void
Specifies the name of your task.void
setOptions
(IResolvable value) Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options.void
Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options.void
setSchedule
(IResolvable value) Specifies a schedule for when you want your task to run.void
Specifies a schedule for when you want your task to run.void
setSourceLocationArn
(String value) Specifies the ARN of your transfer's source location.void
setTagsRaw
(List<CfnTag> value) Specifies the tags that you want to apply to your task.void
setTaskMode
(String value) Specifies one of the following task modes for your data transfer:.void
setTaskReportConfig
(IResolvable value) Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer.void
Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTask
protected CfnTask(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTask
protected CfnTask(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTask
@Stability(Stable) public CfnTask(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTaskProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrDestinationNetworkInterfaceArns
The ARNs of the destination elastic network interfaces (ENIs) that were created for your subnet. -
getAttrSourceNetworkInterfaceArns
The ARNs of the source ENIs that were created for your subnet. -
getAttrStatus
The status of the task that was described. -
getAttrTaskArn
The ARN of the task. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getDestinationLocationArn
The Amazon Resource Name (ARN) of an AWS storage resource's location. -
setDestinationLocationArn
The Amazon Resource Name (ARN) of an AWS storage resource's location. -
getSourceLocationArn
Specifies the ARN of your transfer's source location. -
setSourceLocationArn
Specifies the ARN of your transfer's source location. -
getCloudWatchLogGroupArn
Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task. -
setCloudWatchLogGroupArn
Specifies the Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task. -
getExcludes
Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. -
setExcludes
Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. -
setExcludes
Specifies exclude filters that define the files, objects, and folders in your source location that you don't want DataSync to transfer. -
getIncludes
Specifies include filters that define the files, objects, and folders in your source location that you want DataSync to transfer. -
setIncludes
Specifies include filters that define the files, objects, and folders in your source location that you want DataSync to transfer. -
setIncludes
Specifies include filters that define the files, objects, and folders in your source location that you want DataSync to transfer. -
getManifestConfig
The configuration of the manifest that lists the files or objects that you want DataSync to transfer. -
setManifestConfig
The configuration of the manifest that lists the files or objects that you want DataSync to transfer. -
setManifestConfig
The configuration of the manifest that lists the files or objects that you want DataSync to transfer. -
getName
Specifies the name of your task. -
setName
Specifies the name of your task. -
getOptions
Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options. -
setOptions
Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options. -
setOptions
Specifies your task's settings, such as preserving file metadata, verifying data integrity, among other options. -
getSchedule
Specifies a schedule for when you want your task to run. -
setSchedule
Specifies a schedule for when you want your task to run. -
setSchedule
Specifies a schedule for when you want your task to run. -
getTagsRaw
Specifies the tags that you want to apply to your task. -
setTagsRaw
Specifies the tags that you want to apply to your task. -
getTaskMode
Specifies one of the following task modes for your data transfer:. -
setTaskMode
Specifies one of the following task modes for your data transfer:. -
getTaskReportConfig
Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. -
setTaskReportConfig
Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer. -
setTaskReportConfig
@Stability(Stable) public void setTaskReportConfig(@Nullable CfnTask.TaskReportConfigProperty value) Specifies how you want to configure a task report, which provides detailed information about your DataSync transfer.
-