# CfnResourceDataSyncProps

Properties for defining a `CfnResourceDataSync`.

Used as props by: [CfnResourceDataSync](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ssm.CfnResourceDataSync.html)

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

TypeScript:

```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:

```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:

```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();
```

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.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"
};
```

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"

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

- `bucketName`: string | [IBucketRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_s3.IBucketRef.html) — The name of the S3 bucket where the aggregated data is stored.

- `bucketPrefix`: string — An Amazon S3 prefix for the bucket.

- `bucketRegion`: string — The AWS Region with the S3 bucket targeted by the resource data sync.

- `kmsKeyArn`: 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.

- `s3Destination`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnResourceDataSync.S3DestinationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ssm.CfnResourceDataSync.S3DestinationProperty.html) — Configuration information for the target S3 bucket.

- `syncFormat`: string — A supported sync format.

  The following format is currently supported: JsonSerDe

- `syncName`: string (required) — A name for the resource data sync.

- `syncSource`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnResourceDataSync.SyncSourceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ssm.CfnResourceDataSync.SyncSourceProperty.html) — Information about the source where the data was synchronized.

- `syncType`: 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 .
