Module Values.CreateFileCacheResponseSource

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: Creates a new, empty Amazon File Cache resource with an assigned ID, and an initial lifecycle state of CREATING. Returns the description of the cache in JSON format. 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.

Sourcetype nonrec t = {
  1. fileCache : FileCacheCreating.t option;
    (*

    A description of the cache that was created.

    *)
}
Sourcetype nonrec error = [
  1. | `BadRequest of BadRequest.t
  2. | `IncompatibleParameterError of IncompatibleParameterError.t
  3. | `InternalServerError of InternalServerError.t
  4. | `InvalidNetworkSettings of InvalidNetworkSettings.t
  5. | `InvalidPerUnitStorageThroughput of InvalidPerUnitStorageThroughput.t
  6. | `MissingFileCacheConfiguration of MissingFileCacheConfiguration.t
  7. | `ServiceLimitExceeded of ServiceLimitExceeded.t
  8. | `Unknown_operation_error of string * string option
]
Sourceval make : ?fileCache:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `BadRequest of BadRequest.t | `IncompatibleParameterError of IncompatibleParameterError.t | `InternalServerError of InternalServerError.t | `InvalidNetworkSettings of InvalidNetworkSettings.t | `InvalidPerUnitStorageThroughput of InvalidPerUnitStorageThroughput.t | `MissingFileCacheConfiguration of MissingFileCacheConfiguration.t | `ServiceLimitExceeded of ServiceLimitExceeded.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `BadRequest of BadRequest.t | `IncompatibleParameterError of IncompatibleParameterError.t | `InternalServerError of InternalServerError.t | `InvalidNetworkSettings of InvalidNetworkSettings.t | `InvalidPerUnitStorageThroughput of InvalidPerUnitStorageThroughput.t | `MissingFileCacheConfiguration of MissingFileCacheConfiguration.t | `ServiceLimitExceeded of ServiceLimitExceeded.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Boolean of CopyTagsToDataRepositoryAssociations.t | `Enum of string | `Integer of StorageCapacity.t | `List of [> `String of SubnetId.t | `Structure of (string * [> `String of TagKey.t ]) list ] list | `String of AWSAccountId.t | `Structure of (string * [> `Enum of string | `Integer of PerUnitStorageThroughput.t | `String of ErrorMessage.t | `Structure of (string * [> `Enum of string | `Integer of MetadataStorageCapacity.t | `String of GeneralARN.t ]) list ]) list | `Timestamp of CreationTime.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t