Skip to content
v2.277.0

S3DestinationProperty Struct ​

Information about the target S3 bucket for the resource data sync.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ssm as ssm } from 'aws-cdk-lib';
const s3DestinationProperty: ssm.CfnResourceDataSync.S3DestinationProperty = {
  bucketName: 'bucketName',
  bucketRegion: 'bucketRegion',
  syncFormat: 'syncFormat',

  // the properties below are optional
  bucketPrefix: 'bucketPrefix',
  kmsKeyArn: 'kmsKeyArn',
};
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_ssm as ssm

s3_destination_property = ssm.CfnResourceDataSync.S3DestinationProperty(
    bucket_name="bucketName",
    bucket_region="bucketRegion",
    sync_format="syncFormat",

    # the properties below are optional
    bucket_prefix="bucketPrefix",
    kms_key_arn="kmsKeyArn"
)
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.ssm.*;

S3DestinationProperty s3DestinationProperty = S3DestinationProperty.builder()
        .bucketName("bucketName")
        .bucketRegion("bucketRegion")
        .syncFormat("syncFormat")

        // the properties below are optional
        .bucketPrefix("bucketPrefix")
        .kmsKeyArn("kmsKeyArn")
        .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.SSM;

var s3DestinationProperty = new S3DestinationProperty {
    BucketName = "bucketName",
    BucketRegion = "bucketRegion",
    SyncFormat = "syncFormat",

    // the properties below are optional
    BucketPrefix = "bucketPrefix",
    KmsKeyArn = "kmsKeyArn"
};
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"

s3DestinationProperty := &S3DestinationProperty{
	BucketName: jsii.String("bucketName"),
	BucketRegion: jsii.String("bucketRegion"),
	SyncFormat: jsii.String("syncFormat"),

	// the properties below are optional
	BucketPrefix: jsii.String("bucketPrefix"),
	KmsKeyArn: jsii.String("kmsKeyArn"),
}

Properties ​

bucketNamestringbucket_namestrbucketNameStringBucketNamestringBucketName*stringrequired#
The name of the S3 bucket where the aggregated data is stored.
bucketPrefixoptionalstringbucket_prefixoptionalstrbucketPrefixoptionalStringBucketPrefixoptionalstringBucketPrefixoptional*string#
An Amazon S3 prefix for the bucket.
bucketRegionstringbucket_regionstrbucketRegionStringBucketRegionstringBucketRegion*stringrequired#
The AWS Region with the S3 bucket targeted by the resource data sync.
kmsKeyArnoptionalstringkms_key_arnoptionalstrkmsKeyArnoptionalStringKmsKeyArnoptionalstringKmsKeyArnoptional*string#
The ARN of an encryption key for a destination in Amazon S3.

Must belong to the same Region as the destination S3 bucket.

syncFormatstringsync_formatstrsyncFormatStringSyncFormatstringSyncFormat*stringrequired#
A supported sync format.

The following format is currently supported: JsonSerDe