S3ConfigProperty Struct
Specifies the Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket.
For more information, see Providing DataSync access to S3 buckets .
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 s3ConfigProperty: datasync.CfnLocationS3.S3ConfigProperty = {
bucketAccessRoleArn: 'bucketAccessRoleArn',
};
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_config_property = datasync.CfnLocationS3.S3ConfigProperty(
bucket_access_role_arn="bucketAccessRoleArn"
)
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.*;
S3ConfigProperty s3ConfigProperty = S3ConfigProperty.builder()
.bucketAccessRoleArn("bucketAccessRoleArn")
.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 s3ConfigProperty = new S3ConfigProperty {
BucketAccessRoleArn = "bucketAccessRoleArn"
};
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"
s3ConfigProperty := &S3ConfigProperty{
BucketAccessRoleArn: jsii.String("bucketAccessRoleArn"),
}
Properties
bucketAccessRoleArnstringbucket_access_role_arnstrbucketAccessRoleArnStringBucketAccessRoleArnstringBucketAccessRoleArn*stringrequired#Specifies the ARN of the IAM role that DataSync uses to access your S3 bucket.