DestinationProperty Struct
Specifies where DataSync uploads your task report.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_datasync as datasync } from 'aws-cdk-lib';
const destinationProperty: datasync.CfnTask.DestinationProperty = {
s3: {
bucketAccessRoleArn: 'bucketAccessRoleArn',
s3BucketArn: 's3BucketArn',
subdirectory: 'subdirectory',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_datasync as datasync
destination_property = datasync.CfnTask.DestinationProperty(
s3=datasync.CfnTask.S3Property(
bucket_access_role_arn="bucketAccessRoleArn",
s3_bucket_arn="s3BucketArn",
subdirectory="subdirectory"
)
)
java
// 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.*;
DestinationProperty destinationProperty = DestinationProperty.builder()
.s3(S3Property.builder()
.bucketAccessRoleArn("bucketAccessRoleArn")
.s3BucketArn("s3BucketArn")
.subdirectory("subdirectory")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DataSync;
var destinationProperty = new DestinationProperty {
S3 = new S3Property {
BucketAccessRoleArn = "bucketAccessRoleArn",
S3BucketArn = "s3BucketArn",
Subdirectory = "subdirectory"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
destinationProperty := &DestinationProperty{
S3: &S3Property{
BucketAccessRoleArn: jsii.String("bucketAccessRoleArn"),
S3BucketArn: jsii.String("s3BucketArn"),
Subdirectory: jsii.String("subdirectory"),
},
}
Properties
s3optionalIResolvable | CfnTask.S3Propertys3optionaltyping.Union[IResolvable, S3Property]s3optionalIResolvableS3optionalIResolvableS3optionalinterface{}#Specifies the Amazon S3 bucket where DataSync uploads your task report.