Smaws_Client_FSx.CreateFileSystemCreates a new, empty Amazon FSx file system. You can create the following supported Amazon FSx file systems using the CreateFileSystem API operation:
This operation requires a client request token in the request that Amazon FSx uses to ensure idempotent creation. This means that calling the operation multiple times with the same client request token has no effect. By using the idempotent operation, you can retry a CreateFileSystem operation without the risk of creating an extra file system. This approach can be useful when an initial call fails in a way that makes it unclear whether a file system was created. Examples are if a transport level timeout occurred, or your connection was reset. If you use the same client request token and the initial call created a file system, the client receives success as long as the parameters are the same.
If a file system with the specified client request token exists and the parameters match, CreateFileSystem returns the description of the existing file system. If a file system with the specified client request token exists and the parameters don't match, this call returns IncompatibleParameterError. If a file system with the specified client request token doesn't exist, CreateFileSystem does the following:
CREATING.The CreateFileSystem call returns while the file system's lifecycle state is still CREATING. You can check the file-system creation status by calling the DescribeFileSystems operation, which returns the file system state along with other information.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `ActiveDirectoryError of Types.active_directory_error
| `BadRequest of Types.bad_request
| `IncompatibleParameterError of Types.incompatible_parameter_error
| `InternalServerError of Types.internal_server_error
| `InvalidExportPath of Types.invalid_export_path
| `InvalidImportPath of Types.invalid_import_path
| `InvalidNetworkSettings of Types.invalid_network_settings
| `InvalidPerUnitStorageThroughput of
Types.invalid_per_unit_storage_throughput
| `MissingFileSystemConfiguration of Types.missing_file_system_configuration
| `ServiceLimitExceeded of Types.service_limit_exceeded ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_file_system_request ->
(Types.create_file_system_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `ActiveDirectoryError of Types.active_directory_error
| `BadRequest of Types.bad_request
| `IncompatibleParameterError of Types.incompatible_parameter_error
| `InternalServerError of Types.internal_server_error
| `InvalidExportPath of Types.invalid_export_path
| `InvalidImportPath of Types.invalid_import_path
| `InvalidNetworkSettings of Types.invalid_network_settings
| `InvalidPerUnitStorageThroughput of
Types.invalid_per_unit_storage_throughput
| `MissingFileSystemConfiguration of
Types.missing_file_system_configuration
| `ServiceLimitExceeded of Types.service_limit_exceeded ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_file_system_request ->
(Types.create_file_system_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `ActiveDirectoryError of Types.active_directory_error
| `BadRequest of Types.bad_request
| `IncompatibleParameterError of Types.incompatible_parameter_error
| `InternalServerError of Types.internal_server_error
| `InvalidExportPath of Types.invalid_export_path
| `InvalidImportPath of Types.invalid_import_path
| `InvalidNetworkSettings of Types.invalid_network_settings
| `InvalidPerUnitStorageThroughput of
Types.invalid_per_unit_storage_throughput
| `MissingFileSystemConfiguration of
Types.missing_file_system_configuration
| `ServiceLimitExceeded of Types.service_limit_exceeded ]
* Smaws_Lib.Response.metadata)
Stdlib.result