Skip to content
v2.277.0

S3Property Struct ​

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 s3Property: datasync.CfnTask.S3Property = {
  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

s3_property = 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.*;

S3Property s3Property = S3Property.builder()
        .bucketAccessRoleArn("bucketAccessRoleArn")
        .s3BucketArn("s3BucketArn")
        .subdirectory("subdirectory")
        .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 s3Property = 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"

s3Property := &S3Property{
	BucketAccessRoleArn: jsii.String("bucketAccessRoleArn"),
	S3BucketArn: jsii.String("s3BucketArn"),
	Subdirectory: jsii.String("subdirectory"),
}

Properties ​

bucketAccessRoleArnoptionalstringbucket_access_role_arnoptionalstrbucketAccessRoleArnoptionalStringBucketAccessRoleArnoptionalstringBucketAccessRoleArnoptional*string #
s3BucketArnoptionalstrings3_bucket_arnoptionalstrs3BucketArnoptionalStringS3BucketArnoptionalstringS3BucketArnoptional*string #
subdirectoryoptionalstringsubdirectoryoptionalstrsubdirectoryoptionalStringSubdirectoryoptionalstringSubdirectoryoptional*string #