# SyncSourceProperty

Information about the source of the data included in the resource data sync.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 syncSourceProperty: ssm.CfnResourceDataSync.SyncSourceProperty = {
  sourceRegions: ['sourceRegions'],
  sourceType: 'sourceType',

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

    // the properties below are optional
    organizationalUnits: ['organizationalUnits'],
  },
  includeFutureRegions: false,
};
```

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

sync_source_property = 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
)
```

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

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

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 syncSourceProperty = 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
};
```

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"

syncSourceProperty := &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),
}
```

## Properties

- `awsOrganizationsSource`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnResourceDataSync.AwsOrganizationsSourceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ssm.CfnResourceDataSync.AwsOrganizationsSourceProperty.html) — Information about the AwsOrganizationsSource resource data sync source.

  A sync source of this type can synchronize data from AWS Organizations .

- `includeFutureRegions`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Whether to automatically synchronize and aggregate data from new AWS Regions when those Regions come online.

- `sourceRegions`: string[] (required) — The `SyncSource` AWS Regions included in the resource data sync.

- `sourceType`: string (required) — The type of data source for the resource data sync.

  `SourceType` is either `AwsOrganizations` (if an organization is present in AWS Organizations ) or `SingleAccountMultiRegions` .
