Smaws_Client_DataSync.ListLocationsReturns a list of source and destination locations.
If you have more locations than are returned in a response (that is, the response returns only a truncated list of your agents), the response contains a token that you can specify in your next request to fetch the next page of locations.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InternalException of Types.internal_exception
| `InvalidRequestException of Types.invalid_request_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.list_locations_request ->
(Types.list_locations_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalException of Types.internal_exception
| `InvalidRequestException of Types.invalid_request_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.list_locations_request ->
(Types.list_locations_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalException of Types.internal_exception
| `InvalidRequestException of Types.invalid_request_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result