create_resource_data_sync
async
¶
create_resource_data_sync(
sync_name: ResourceDataSyncName,
*,
config_overrides: Optional[AsyncSSMClientConfig] = None,
s3_destination: Optional[ResourceDataSyncS3Destination] = None,
sync_type: Optional[ResourceDataSyncType] = None,
sync_source: Optional[ResourceDataSyncSource] = None,
) -> CreateResourceDataSyncResult
A resource data sync helps you view data from multiple sources in a single location. Amazon Web Services Systems Manager offers two types of resource data sync: SyncToDestination and SyncFromSource.
You can configure Systems Manager Inventory to use the SyncToDestination type to synchronize Inventory data from multiple Amazon Web Services Regions to a single Amazon Simple Storage Service (Amazon S3) bucket. For more information, see Creating a resource data sync for Inventory in the Amazon Web Services Systems Manager User Guide.
You can configure Systems Manager Explorer to use the SyncFromSource type to synchronize operational work items (OpsItems) and operational data (OpsData) from multiple Amazon Web Services Regions to a single Amazon S3 bucket. This type can synchronize OpsItems and OpsData from multiple Amazon Web Services accounts and Amazon Web Services Regions or EntireOrganization by using Organizations. For more information, see Setting up Systems Manager Explorer to display data from multiple accounts and Regions in the Amazon Web Services Systems Manager User Guide.
A resource data sync is an asynchronous operation that returns immediately. After a successful initial sync is completed, the system continuously syncs data. To check the status of a sync, use the ListResourceDataSync.
By default, data isn't encrypted in Amazon S3. We strongly recommend that you enable encryption in Amazon S3 to ensure secure data storage. We also recommend that you secure access to the Amazon S3 bucket by creating a restrictive bucket policy.
Parameters:
-
sync_name(ResourceDataSyncName) –A name for the configuration.
-
s3_destination(Optional[ResourceDataSyncS3Destination], default:None) –Amazon S3 configuration details for the sync. This parameter is required if the
SyncTypevalue is SyncToDestination. -
sync_type(Optional[ResourceDataSyncType], default:None) –Specify
SyncToDestinationto create a resource data sync that synchronizes data to an S3 bucket for Inventory. If you specifySyncToDestination, you must provide a value forS3Destination. SpecifySyncFromSourceto synchronize data from a single account and multiple Regions, or multiple Amazon Web Services accounts and Amazon Web Services Regions, as listed in Organizations for Explorer. If you specifySyncFromSource, you must provide a value forSyncSource. The default value isSyncToDestination. -
sync_source(Optional[ResourceDataSyncSource], default:None) –Specify information about the data sources to synchronize. This parameter is required if the
SyncTypevalue is SyncFromSource.
Raises:
-
InternalServerError–An error occurred on the server side.
-
ResourceDataSyncAlreadyExistsException–A sync configuration with the same name already exists.
-
ResourceDataSyncCountExceededException–You have exceeded the allowed maximum sync configurations.
-
ResourceDataSyncInvalidConfigurationException–The specified sync configuration is invalid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/async_ssm.py
1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 | |