class CfnTaskPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.DataSync.Mixins.CfnTaskPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsdatasync/mixins#CfnTaskPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.datasync.mixins.CfnTaskPropsMixin |
Python | aws_cdk.mixins_preview.aws_datasync.mixins.CfnTaskPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_datasync » mixins » CfnTaskPropsMixin |
Implements
IMixin
Extends
Mixin
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.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-task.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as datasync_mixins } from '@aws-cdk/mixins-preview/aws-datasync';
const cfnTaskPropsMixin = new datasync_mixins.CfnTaskPropsMixin({
cloudWatchLogGroupArn: 'cloudWatchLogGroupArn',
destinationLocationArn: 'destinationLocationArn',
excludes: [{
filterType: 'filterType',
value: 'value',
}],
includes: [{
filterType: 'filterType',
value: 'value',
}],
manifestConfig: {
action: 'action',
format: 'format',
source: {
s3: {
bucketAccessRoleArn: 'bucketAccessRoleArn',
manifestObjectPath: 'manifestObjectPath',
manifestObjectVersionId: 'manifestObjectVersionId',
s3BucketArn: 's3BucketArn',
},
},
},
name: 'name',
options: {
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',
},
schedule: {
scheduleExpression: 'scheduleExpression',
status: 'status',
},
sourceLocationArn: 'sourceLocationArn',
tags: [{
key: 'key',
value: 'value',
}],
taskMode: 'taskMode',
taskReportConfig: {
destination: {
s3: {
bucketAccessRoleArn: 'bucketAccessRoleArn',
s3BucketArn: 's3BucketArn',
subdirectory: 'subdirectory',
},
},
objectVersionIds: 'objectVersionIds',
outputType: 'outputType',
overrides: {
deleted: {
reportLevel: 'reportLevel',
},
skipped: {
reportLevel: 'reportLevel',
},
transferred: {
reportLevel: 'reportLevel',
},
verified: {
reportLevel: 'reportLevel',
},
},
reportLevel: 'reportLevel',
},
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnTaskPropsMixin(props: CfnTaskMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Task Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::DataSync::Task.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript