Smaws_Client_FSx.CreateDataRepositoryAssociationCreates an Amazon FSx for Lustre data repository association (DRA). A data repository association is a link between a directory on the file system and an Amazon S3 bucket or prefix. You can have a maximum of 8 data repository associations on a file system. Data repository associations are supported on all FSx for Lustre 2.12 and 2.15 file systems, excluding scratch_1 deployment type.
Each data repository association must have a unique Amazon FSx file system directory and a unique S3 bucket or prefix associated with it. You can configure a data repository association for automatic import only, for automatic export only, or for both. To learn more about linking a data repository to your file system, see Linking your file system to an S3 bucket.
CreateDataRepositoryAssociation isn't supported on Amazon File Cache resources. To create a DRA on Amazon File Cache, use the CreateFileCache operation.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `BadRequest of Types.bad_request
| `FileSystemNotFound of Types.file_system_not_found
| `IncompatibleParameterError of Types.incompatible_parameter_error
| `InternalServerError of Types.internal_server_error
| `ServiceLimitExceeded of Types.service_limit_exceeded
| `UnsupportedOperation of Types.unsupported_operation ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_data_repository_association_request ->
(Types.create_data_repository_association_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `BadRequest of Types.bad_request
| `FileSystemNotFound of Types.file_system_not_found
| `IncompatibleParameterError of Types.incompatible_parameter_error
| `InternalServerError of Types.internal_server_error
| `ServiceLimitExceeded of Types.service_limit_exceeded
| `UnsupportedOperation of Types.unsupported_operation ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_data_repository_association_request ->
(Types.create_data_repository_association_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `BadRequest of Types.bad_request
| `FileSystemNotFound of Types.file_system_not_found
| `IncompatibleParameterError of Types.incompatible_parameter_error
| `InternalServerError of Types.internal_server_error
| `ServiceLimitExceeded of Types.service_limit_exceeded
| `UnsupportedOperation of Types.unsupported_operation ]
* Smaws_Lib.Response.metadata)
Stdlib.result