# S3Property

- Source: Generated at build time
- Type last changed: v2.95.0 · 7 Sep 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 s3Property: datasync.CfnTask.S3Property = {
  bucketAccessRoleArn: 'bucketAccessRoleArn',
  s3BucketArn: 's3BucketArn',
  subdirectory: 'subdirectory',
};
```

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_property = datasync.CfnTask.S3Property(
    bucket_access_role_arn="bucketAccessRoleArn",
    s3_bucket_arn="s3BucketArn",
    subdirectory="subdirectory"
)
```

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

S3Property s3Property = S3Property.builder()
        .bucketAccessRoleArn("bucketAccessRoleArn")
        .s3BucketArn("s3BucketArn")
        .subdirectory("subdirectory")
        .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 s3Property = new S3Property {
    BucketAccessRoleArn = "bucketAccessRoleArn",
    S3BucketArn = "s3BucketArn",
    Subdirectory = "subdirectory"
};
```

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"

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

## Properties

- `bucketAccessRoleArn`: string

- `s3BucketArn`: string

- `subdirectory`: string
