# S3ConfigProperty

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](https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#create-s3-location-access) .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `bucketAccessRoleArn`: string (required) — Specifies the ARN of the IAM role that DataSync uses to access your S3 bucket.
