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.89.0 (build 2f74b3e)",
date="2023-10-26T00:56:06.300Z")
@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 classA fluent builder forCfnTask.static interfaceThe reporting level for the deleted section of your DataSync task report.static interfaceSpecifies where DataSync uploads your task report .static interfaceSpecifies which files, folders, and objects to include or exclude when transferring files from source to destination.static interfaceRepresents the options that are available to control the behavior of a StartTaskExecution operation.static interfaceCustomizes the reporting level for aspects of your task report.static interfaceSpecifies the Amazon S3 bucket where DataSync uploads your task report .static interfaceThe reporting level for the skipped section of your DataSync task report.static interfaceSpecifies how you want to configure a task report, which provides detailed information about for your AWS DataSync transfer.static interfaceSpecifies the schedule you want your task to use for repeated executions.static interfaceThe reporting level for the transferred section of your DataSync task report.static interfaceThe 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.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTask(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTask(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.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 for your DataSync transfer.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCloudWatchLogGroupArn(String value) The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the task.voidsetDestinationLocationArn(String value) The Amazon Resource Name (ARN) of an AWS storage resource's location.voidsetExcludes(List<Object> value) Specifies a list of filter rules that exclude specific data during your transfer.voidsetExcludes(IResolvable value) Specifies a list of filter rules that exclude specific data during your transfer.voidsetIncludes(List<Object> value) Specifies a list of filter rules that include specific data during your transfer.voidsetIncludes(IResolvable value) Specifies a list of filter rules that include specific data during your transfer.voidThe name of a task.voidsetOptions(IResolvable value) Specifies the configuration options for a task.voidSpecifies the configuration options for a task.voidsetSchedule(IResolvable value) Specifies a schedule used to periodically transfer files from a source to a destination location.voidSpecifies a schedule used to periodically transfer files from a source to a destination location.voidsetSourceLocationArn(String value) The Amazon Resource Name (ARN) of the source location for the task.voidsetTagsRaw(List<CfnTag> value) Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task.voidsetTaskReportConfig(IResolvable value) Specifies how you want to configure a task report, which provides detailed information about for your DataSync transfer.voidSpecifies how you want to configure a task report, which provides detailed information about for 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, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
inspectin 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:
renderPropertiesin 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:
getCfnPropertiesin 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 for your DataSync transfer. -
setTaskReportConfig
Specifies how you want to configure a task report, which provides detailed information about for 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 for your DataSync transfer.
-