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.94.0 (build b380f01)",
date="2024-03-01T20:58:22.264Z")
@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())) .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") .build()) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .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 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
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
Specifies the Amazon S3 bucket where DataSync uploads your task report .static interface
The reporting level for the skipped section of your DataSync task report.static interface
Specifies how you want to configure a task report, which provides detailed information about for your AWS DataSync transfer.static interface
Specifies the schedule you want your task to use for repeated executions.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
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
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 Amazon Resource Names (ARNs) of the destination ENIs (Elastic Network Interfaces) that were created for your subnet.The Amazon Resource Names (ARNs) of the source ENIs (Elastic Network Interfaces) that were created for your subnet.The status of the task that was described.The ARN of the task.The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the task.The Amazon Resource Name (ARN) of an AWS storage resource's location.Specifies a list of filter rules that exclude specific data during your transfer.Specifies a list of filter rules that include specific data during your transfer.getName()
The name of a task.Specifies the configuration options for a task.Specifies a schedule used to periodically transfer files from a source to a destination location.The Amazon Resource Name (ARN) of the source location for the task.getTags()
Tag Manager which manages the tags for this resource.Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task.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) The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the task.void
setDestinationLocationArn
(String value) The Amazon Resource Name (ARN) of an AWS storage resource's location.void
setExcludes
(List<Object> value) Specifies a list of filter rules that exclude specific data during your transfer.void
setExcludes
(IResolvable value) Specifies a list of filter rules that exclude specific data during your transfer.void
setIncludes
(List<Object> value) Specifies a list of filter rules that include specific data during your transfer.void
setIncludes
(IResolvable value) Specifies a list of filter rules that include specific data during your transfer.void
The name of a task.void
setOptions
(IResolvable value) Specifies the configuration options for a task.void
Specifies the configuration options for a task.void
setSchedule
(IResolvable value) Specifies a schedule used to periodically transfer files from a source to a destination location.void
Specifies a schedule used to periodically transfer files from a source to a destination location.void
setSourceLocationArn
(String value) The Amazon Resource Name (ARN) of the source location for the task.void
setTagsRaw
(List<CfnTag> value) Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task.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 Amazon Resource Names (ARNs) of the destination ENIs (Elastic Network Interfaces) that were created for your subnet. -
getAttrSourceNetworkInterfaceArns
The Amazon Resource Names (ARNs) of the source ENIs (Elastic Network Interfaces) 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
The Amazon Resource Name (ARN) of the source location for the task. -
setSourceLocationArn
The Amazon Resource Name (ARN) of the source location for the task. -
getCloudWatchLogGroupArn
The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the task. -
setCloudWatchLogGroupArn
The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the task. -
getExcludes
Specifies a list of filter rules that exclude specific data during your transfer. -
setExcludes
Specifies a list of filter rules that exclude specific data during your transfer. -
setExcludes
Specifies a list of filter rules that exclude specific data during your transfer. -
getIncludes
Specifies a list of filter rules that include specific data during your transfer. -
setIncludes
Specifies a list of filter rules that include specific data during your transfer. -
setIncludes
Specifies a list of filter rules that include specific data during your transfer. -
getName
The name of a task. -
setName
The name of a task. -
getOptions
Specifies the configuration options for a task.Some options include preserving file or object metadata and verifying data integrity.
-
setOptions
Specifies the configuration options for a task.Some options include preserving file or object metadata and verifying data integrity.
-
setOptions
Specifies the configuration options for a task.Some options include preserving file or object metadata and verifying data integrity.
-
getSchedule
Specifies a schedule used to periodically transfer files from a source to a destination location. -
setSchedule
Specifies a schedule used to periodically transfer files from a source to a destination location. -
setSchedule
Specifies a schedule used to periodically transfer files from a source to a destination location. -
getTagsRaw
Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task. -
setTagsRaw
Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task. -
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.
-