Smaws_Client_Lightsail.CreateBucketCreates an Amazon Lightsail bucket.
A bucket is a cloud storage resource available in the Lightsail object storage service. Use buckets to store objects such as data and its descriptive metadata. For more information about buckets, see Buckets in Amazon Lightsail in the Amazon Lightsail Developer Guide.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `InvalidInputException of Types.invalid_input_exception
| `RegionSetupInProgressException of Types.region_setup_in_progress_exception
| `ServiceException of Types.service_exception
| `UnauthenticatedException of Types.unauthenticated_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_bucket_request ->
(Types.create_bucket_result,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `InvalidInputException of Types.invalid_input_exception
| `RegionSetupInProgressException of
Types.region_setup_in_progress_exception
| `ServiceException of Types.service_exception
| `UnauthenticatedException of Types.unauthenticated_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_bucket_request ->
(Types.create_bucket_result Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `InvalidInputException of Types.invalid_input_exception
| `RegionSetupInProgressException of
Types.region_setup_in_progress_exception
| `ServiceException of Types.service_exception
| `UnauthenticatedException of Types.unauthenticated_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result