Skip to content
v2.278.0

SourceProperty Struct ​

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

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 sourceProperty: datasync.CfnTask.SourceProperty = {
  s3: {
    bucketAccessRoleArn: 'bucketAccessRoleArn',
    manifestObjectPath: 'manifestObjectPath',
    manifestObjectVersionId: 'manifestObjectVersionId',
    s3BucketArn: 's3BucketArn',
  },
};
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
// 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();
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"
    }
};
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 ​

s3optionalIResolvable | CfnTask.ManifestConfigSourceS3Propertys3optionaltyping.Union[IResolvable, ManifestConfigSourceS3Property]s3optionalIResolvableS3optionalIResolvableS3optionalinterface{} #
Specifies the S3 bucket where you're hosting the manifest that you want AWS DataSync to use.