Module Smaws_Client_FSx.CreateFileCache

Creates a new Amazon File Cache resource.

You can use this operation with a client request token in the request that Amazon File Cache uses to ensure idempotent creation. If a cache with the specified client request token exists and the parameters match, CreateFileCache returns the description of the existing cache. If a cache with the specified client request token exists and the parameters don't match, this call returns IncompatibleParameterError. If a file cache with the specified client request token doesn't exist, CreateFileCache does the following:

The CreateFileCache call returns while the cache's lifecycle state is still CREATING. You can check the cache creation status by calling the DescribeFileCaches operation, which returns the cache state along with other information.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `BadRequest of Types.bad_request | `IncompatibleParameterError of Types.incompatible_parameter_error | `InternalServerError of Types.internal_server_error | `InvalidNetworkSettings of Types.invalid_network_settings | `InvalidPerUnitStorageThroughput of Types.invalid_per_unit_storage_throughput | `MissingFileCacheConfiguration of Types.missing_file_cache_configuration | `ServiceLimitExceeded of Types.service_limit_exceeded ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.create_file_cache_request -> (Types.create_file_cache_response, [> Smaws_Lib.Protocols.AwsJson.error | `BadRequest of Types.bad_request | `IncompatibleParameterError of Types.incompatible_parameter_error | `InternalServerError of Types.internal_server_error | `InvalidNetworkSettings of Types.invalid_network_settings | `InvalidPerUnitStorageThroughput of Types.invalid_per_unit_storage_throughput | `MissingFileCacheConfiguration of Types.missing_file_cache_configuration | `ServiceLimitExceeded of Types.service_limit_exceeded ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.create_file_cache_request -> (Types.create_file_cache_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `BadRequest of Types.bad_request | `IncompatibleParameterError of Types.incompatible_parameter_error | `InternalServerError of Types.internal_server_error | `InvalidNetworkSettings of Types.invalid_network_settings | `InvalidPerUnitStorageThroughput of Types.invalid_per_unit_storage_throughput | `MissingFileCacheConfiguration of Types.missing_file_cache_configuration | `ServiceLimitExceeded of Types.service_limit_exceeded ] * Smaws_Lib.Response.metadata) Stdlib.result