# DestinationProperty

Specifies where DataSync uploads your task report.

- 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 destinationProperty: datasync.CfnTask.DestinationProperty = {
  s3: {
    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

destination_property = datasync.CfnTask.DestinationProperty(
    s3=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.*;

DestinationProperty destinationProperty = DestinationProperty.builder()
        .s3(S3Property.builder()
                .bucketAccessRoleArn("bucketAccessRoleArn")
                .s3BucketArn("s3BucketArn")
                .subdirectory("subdirectory")
                .build())
        .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 destinationProperty = new DestinationProperty {
    S3 = 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"

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

## Properties

- `s3`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTask.S3Property](/cdk/api/v2/docs/aws-cdk-lib.aws_datasync.CfnTask.S3Property.html) — Specifies the Amazon S3 bucket where DataSync uploads your task report.
