UpdateResourceDataSync - Amazon Systems Manager
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

UpdateResourceDataSync

Update a resource data sync. After you create a resource data sync for a Region, you can't change the account options for that sync. For example, if you create a sync in the us-east-2 (Ohio) Region and you choose the Include only the current account option, you can't edit that sync later and choose the Include all accounts from my Amazon Organizations configuration option. Instead, you must delete the first resource data sync, and create a new one.

Note

This API operation only supports a resource data sync that was created with a SyncFromSource SyncType.

Request Syntax

{ "SyncName": "string", "SyncSource": { "AwsOrganizationsSource": { "OrganizationalUnits": [ { "OrganizationalUnitId": "string" } ], "OrganizationSourceType": "string" }, "EnableAllOpsDataSources": boolean, "IncludeFutureRegions": boolean, "SourceRegions": [ "string" ], "SourceType": "string" }, "SyncType": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

SyncName

The name of the resource data sync you want to update.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Required: Yes

SyncSource

Specify information about the data sources to synchronize.

Type: ResourceDataSyncSource object

Required: Yes

SyncType

The type of resource data sync. The supported SyncType is SyncFromSource.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Required: Yes

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors.

InternalServerError

An error occurred on the server side.

HTTP Status Code: 500

ResourceDataSyncConflictException

Another UpdateResourceDataSync request is being processed. Wait a few minutes and try again.

HTTP Status Code: 400

ResourceDataSyncInvalidConfigurationException

The specified sync configuration is invalid.

HTTP Status Code: 400

ResourceDataSyncNotFoundException

The specified sync name wasn't found.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of UpdateResourceDataSync.

Sample Request

POST / HTTP/1.1 Host: ssm.us-east-2.amazonaws.com Accept-Encoding: identity X-Amz-Target: AmazonSSM.UpdateResourceDataSync Content-Type: application/x-amz-json-1.1 User-Agent: aws-cli/1.17.12 Python/3.6.8 Darwin/18.7.0 botocore/1.14.12 X-Amz-Date: 20200327T160454Z Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20200327/us-east-2/ssm/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-target, Signature=39c3b3042cd2aEXAMPLE Content-Length: 161 { "SyncName": "exampleSync", "SyncType": "SyncFromSource", "SyncSource": { "SourceType": "SingleAccountMultiRegions", "SourceRegions": [ "us-east-2", "us-west-2" ] } }

Sample Response

{}

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: