# SourceProperty

Specifies the manifest that you want DataSync to use and where it's hosted.

- Source: Generated at build time
- Type last changed: v2.134.0 · 26 Mar 2024

## 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 sourceProperty: datasync.CfnTask.SourceProperty = {
  s3: {
    bucketAccessRoleArn: 'bucketAccessRoleArn',
    manifestObjectPath: 'manifestObjectPath',
    manifestObjectVersionId: 'manifestObjectVersionId',
    s3BucketArn: 's3BucketArn',
  },
};
```

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

source_property = datasync.CfnTask.SourceProperty(
    s3=datasync.CfnTask.ManifestConfigSourceS3Property(
        bucket_access_role_arn="bucketAccessRoleArn",
        manifest_object_path="manifestObjectPath",
        manifest_object_version_id="manifestObjectVersionId",
        s3_bucket_arn="s3BucketArn"
    )
)
```

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

SourceProperty sourceProperty = SourceProperty.builder()
        .s3(ManifestConfigSourceS3Property.builder()
                .bucketAccessRoleArn("bucketAccessRoleArn")
                .manifestObjectPath("manifestObjectPath")
                .manifestObjectVersionId("manifestObjectVersionId")
                .s3BucketArn("s3BucketArn")
                .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 sourceProperty = new SourceProperty {
    S3 = new ManifestConfigSourceS3Property {
        BucketAccessRoleArn = "bucketAccessRoleArn",
        ManifestObjectPath = "manifestObjectPath",
        ManifestObjectVersionId = "manifestObjectVersionId",
        S3BucketArn = "s3BucketArn"
    }
};
```

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"

sourceProperty := &SourceProperty{
	S3: &ManifestConfigSourceS3Property{
		BucketAccessRoleArn: jsii.String("bucketAccessRoleArn"),
		ManifestObjectPath: jsii.String("manifestObjectPath"),
		ManifestObjectVersionId: jsii.String("manifestObjectVersionId"),
		S3BucketArn: jsii.String("s3BucketArn"),
	},
}
```

## Properties

- `s3`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTask.ManifestConfigSourceS3Property](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_datasync.CfnTask.ManifestConfigSourceS3Property.html) — Specifies the S3 bucket where you're hosting the manifest that you want AWS DataSync to use.
