put_synchronization_configuration
¶
put_synchronization_configuration(
file_system_id: FileSystemId,
import_data_rules: ImportDataRuleList,
expiration_data_rules: ExpirationDataRuleList,
*,
config_overrides: Optional[S3FilesClientConfig] = None,
latest_version_number: Optional[int] = None,
) -> PutSynchronizationConfigurationResponse
Creates or updates the synchronization configuration for the specified S3 File System, including import data rules and expiration data rules.
Parameters:
-
file_system_id(FileSystemId) –The ID or Amazon Resource Name (ARN) of the S3 File System to configure synchronization for.
-
latest_version_number(Optional[int], default:None) –The version number of the current synchronization configuration. Omit this value when creating a synchronization configuration for the first time. For subsequent updates, provide this value for optimistic concurrency control. If the version number does not match the current configuration, the request fails with a
ConflictException. -
import_data_rules(ImportDataRuleList) –An array of import data rules that control how data is imported from S3 into the file system.
-
expiration_data_rules(ExpirationDataRuleList) –An array of expiration data rules that control when cached data expires from the file system.
Raises:
-
ThrottlingException–The request was throttled. Retry your request using exponential backoff.
-
ConflictException–The request conflicts with the current state of the resource. This can occur when trying to create a resource that already exists or delete a resource that is in use.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceNotFoundException–The specified resource was not found. Verify that the resource exists and that you have permission to access it.
-
ValidationException–The input parameters are not valid. Check the parameter values and try again.
-
UnknownServiceError–The service returned an error code this client does not model.