Skip to content
v2.278.0

CfnResourceDataSyncProps Struct ​

Properties for defining a CfnResourceDataSync.

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 cfnResourceDataSyncProps: ssm.CfnResourceDataSyncProps = {
  syncName: 'syncName',

  // the properties below are optional
  bucketName: 'bucketName',
  bucketPrefix: 'bucketPrefix',
  bucketRegion: 'bucketRegion',
  kmsKeyArn: 'kmsKeyArn',
  s3Destination: {
    bucketName: 'bucketName',
    bucketRegion: 'bucketRegion',
    syncFormat: 'syncFormat',

    // the properties below are optional
    bucketPrefix: 'bucketPrefix',
    kmsKeyArn: 'kmsKeyArn',
  },
  syncFormat: 'syncFormat',
  syncSource: {
    sourceRegions: ['sourceRegions'],
    sourceType: 'sourceType',

    // the properties below are optional
    awsOrganizationsSource: {
      organizationSourceType: 'organizationSourceType',

      // the properties below are optional
      organizationalUnits: ['organizationalUnits'],
    },
    includeFutureRegions: false,
  },
  syncType: 'syncType',
};
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

cfn_resource_data_sync_props = ssm.CfnResourceDataSyncProps(
    sync_name="syncName",

    # the properties below are optional
    bucket_name="bucketName",
    bucket_prefix="bucketPrefix",
    bucket_region="bucketRegion",
    kms_key_arn="kmsKeyArn",
    s3_destination=ssm.CfnResourceDataSync.S3DestinationProperty(
        bucket_name="bucketName",
        bucket_region="bucketRegion",
        sync_format="syncFormat",

        # the properties below are optional
        bucket_prefix="bucketPrefix",
        kms_key_arn="kmsKeyArn"
    ),
    sync_format="syncFormat",
    sync_source=ssm.CfnResourceDataSync.SyncSourceProperty(
        source_regions=["sourceRegions"],
        source_type="sourceType",

        # the properties below are optional
        aws_organizations_source=ssm.CfnResourceDataSync.AwsOrganizationsSourceProperty(
            organization_source_type="organizationSourceType",

            # the properties below are optional
            organizational_units=["organizationalUnits"]
        ),
        include_future_regions=False
    ),
    sync_type="syncType"
)
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.*;

CfnResourceDataSyncProps cfnResourceDataSyncProps = CfnResourceDataSyncProps.builder()
        .syncName("syncName")

        // the properties below are optional
        .bucketName("bucketName")
        .bucketPrefix("bucketPrefix")
        .bucketRegion("bucketRegion")
        .kmsKeyArn("kmsKeyArn")
        .s3Destination(S3DestinationProperty.builder()
                .bucketName("bucketName")
                .bucketRegion("bucketRegion")
                .syncFormat("syncFormat")

                // the properties below are optional
                .bucketPrefix("bucketPrefix")
                .kmsKeyArn("kmsKeyArn")
                .build())
        .syncFormat("syncFormat")
        .syncSource(SyncSourceProperty.builder()
                .sourceRegions(List.of("sourceRegions"))
                .sourceType("sourceType")

                // the properties below are optional
                .awsOrganizationsSource(AwsOrganizationsSourceProperty.builder()
                        .organizationSourceType("organizationSourceType")

                        // the properties below are optional
                        .organizationalUnits(List.of("organizationalUnits"))
                        .build())
                .includeFutureRegions(false)
                .build())
        .syncType("syncType")
        .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 cfnResourceDataSyncProps = new CfnResourceDataSyncProps {
    SyncName = "syncName",

    // the properties below are optional
    BucketName = "bucketName",
    BucketPrefix = "bucketPrefix",
    BucketRegion = "bucketRegion",
    KmsKeyArn = "kmsKeyArn",
    S3Destination = new S3DestinationProperty {
        BucketName = "bucketName",
        BucketRegion = "bucketRegion",
        SyncFormat = "syncFormat",

        // the properties below are optional
        BucketPrefix = "bucketPrefix",
        KmsKeyArn = "kmsKeyArn"
    },
    SyncFormat = "syncFormat",
    SyncSource = new SyncSourceProperty {
        SourceRegions = new [] { "sourceRegions" },
        SourceType = "sourceType",

        // the properties below are optional
        AwsOrganizationsSource = new AwsOrganizationsSourceProperty {
            OrganizationSourceType = "organizationSourceType",

            // the properties below are optional
            OrganizationalUnits = new [] { "organizationalUnits" }
        },
        IncludeFutureRegions = false
    },
    SyncType = "syncType"
};
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"

cfnResourceDataSyncProps := &CfnResourceDataSyncProps{
	SyncName: jsii.String("syncName"),

	// the properties below are optional
	BucketName: jsii.String("bucketName"),
	BucketPrefix: jsii.String("bucketPrefix"),
	BucketRegion: jsii.String("bucketRegion"),
	KmsKeyArn: jsii.String("kmsKeyArn"),
	S3Destination: &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"),
	},
	SyncFormat: jsii.String("syncFormat"),
	SyncSource: &SyncSourceProperty{
		SourceRegions: []*string{
			jsii.String("sourceRegions"),
		},
		SourceType: jsii.String("sourceType"),

		// the properties below are optional
		AwsOrganizationsSource: &AwsOrganizationsSourceProperty{
			OrganizationSourceType: jsii.String("organizationSourceType"),

			// the properties below are optional
			OrganizationalUnits: []*string{
				jsii.String("organizationalUnits"),
			},
		},
		IncludeFutureRegions: jsii.Boolean(false),
	},
	SyncType: jsii.String("syncType"),
}

Properties ​

bucketNameoptionalstring | IBucketRefbucket_nameoptionaltyping.Union[str, IBucketRef]bucketNameoptionalStringBucketNameoptionalstringBucketNameoptionalinterface{} #
The name of the S3 bucket where the aggregated data is stored.
bucketPrefixoptionalstringbucket_prefixoptionalstrbucketPrefixoptionalStringBucketPrefixoptionalstringBucketPrefixoptional*string #
An Amazon S3 prefix for the bucket.
bucketRegionoptionalstringbucket_regionoptionalstrbucketRegionoptionalStringBucketRegionoptionalstringBucketRegionoptional*string #
The AWS Region with the S3 bucket targeted by the resource data sync.
kmsKeyArnoptionalstringkms_key_arnoptionalstrkmsKeyArnoptionalStringKmsKeyArnoptionalstringKmsKeyArnoptional*string #
The Amazon Resource Name (ARN) of an encryption key for a destination in Amazon S3 .

You can use a KMS key to encrypt inventory data in Amazon S3 . You must specify a key that exist in the same AWS Region as the destination Amazon S3 bucket.

s3DestinationoptionalIResolvable | CfnResourceDataSync.S3DestinationPropertys3_destinationoptionaltyping.Union[IResolvable, S3DestinationProperty]s3DestinationoptionalIResolvableS3DestinationoptionalIResolvableS3Destinationoptionalinterface{} #
Configuration information for the target S3 bucket.
syncFormatoptionalstringsync_formatoptionalstrsyncFormatoptionalStringSyncFormatoptionalstringSyncFormatoptional*string #
A supported sync format.

The following format is currently supported: JsonSerDe

syncNamestringsync_namestrsyncNameStringSyncNamestringSyncName*string required #
A name for the resource data sync.
syncSourceoptionalIResolvable | CfnResourceDataSync.SyncSourcePropertysync_sourceoptionaltyping.Union[IResolvable, SyncSourceProperty]syncSourceoptionalIResolvableSyncSourceoptionalIResolvableSyncSourceoptionalinterface{} #
Information about the source where the data was synchronized.
syncTypeoptionalstringsync_typeoptionalstrsyncTypeoptionalStringSyncTypeoptionalstringSyncTypeoptional*string #
The type of resource data sync.

If SyncType is SyncToDestination , then the resource data sync synchronizes data to an S3 bucket. If the SyncType is SyncFromSource then the resource data sync synchronizes data from AWS Organizations or from multiple AWS Regions .