update_resource_data_sync
(**kwargs)¶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 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
.
See also: AWS API Documentation
Request Syntax
response = client.update_resource_data_sync(
SyncName='string',
SyncType='string',
SyncSource={
'SourceType': 'string',
'AwsOrganizationsSource': {
'OrganizationSourceType': 'string',
'OrganizationalUnits': [
{
'OrganizationalUnitId': 'string'
},
]
},
'SourceRegions': [
'string',
],
'IncludeFutureRegions': True|False,
'EnableAllOpsDataSources': True|False
}
)
[REQUIRED]
The name of the resource data sync you want to update.
[REQUIRED]
The type of resource data sync. The supported SyncType
is SyncFromSource.
[REQUIRED]
Specify information about the data sources to synchronize.
The type of data source for the resource data sync. SourceType
is either AwsOrganizations
(if an organization is present in Organizations) or SingleAccountMultiRegions
.
Information about the AwsOrganizationsSource
resource data sync source. A sync source of this type can synchronize data from Organizations.
If an Amazon Web Services organization is present, this is either OrganizationalUnits
or EntireOrganization
. For OrganizationalUnits
, the data is aggregated from a set of organization units. For EntireOrganization
, the data is aggregated from the entire Amazon Web Services organization.
The Organizations organization units included in the sync.
The Organizations organizational unit data source for the sync.
The Organizations unit ID data source for the sync.
The SyncSource
Amazon Web Services Regions included in the resource data sync.
Whether to automatically synchronize and aggregate data from new Amazon Web Services Regions when those Regions come online.
When you create a resource data sync, if you choose one of the Organizations options, then Systems Manager automatically enables all OpsData sources in the selected Amazon Web Services Regions for all Amazon Web Services accounts in your organization (or in the selected organization units). For more information, see About multiple account and Region resource data syncs in the Amazon Web Services Systems Manager User Guide .
dict
Response Syntax
{}
Response Structure
Exceptions
SSM.Client.exceptions.ResourceDataSyncNotFoundException
SSM.Client.exceptions.ResourceDataSyncInvalidConfigurationException
SSM.Client.exceptions.ResourceDataSyncConflictException
SSM.Client.exceptions.InternalServerError