Module Smaws_Client_Lightsail.CreateBucketAccessKey

Creates a new access key for the specified Amazon Lightsail bucket. Access keys consist of an access key ID and corresponding secret access key.

Access keys grant full programmatic access to the specified bucket and its objects. You can have a maximum of two access keys per bucket. Use the GetBucketAccessKeys action to get a list of current access keys for a specific bucket. For more information about access keys, see Creating access keys for a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.

The secretAccessKey value is returned only in response to the CreateBucketAccessKey action. You can get a secret access key only when you first create an access key; you cannot get the secret access key later. If you lose the secret access key, you must create a new access key.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `InvalidInputException of Types.invalid_input_exception | `NotFoundException of Types.not_found_exception | `ServiceException of Types.service_exception | `UnauthenticatedException of Types.unauthenticated_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.create_bucket_access_key_request -> (Types.create_bucket_access_key_result, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `InvalidInputException of Types.invalid_input_exception | `NotFoundException of Types.not_found_exception | `ServiceException of Types.service_exception | `UnauthenticatedException of Types.unauthenticated_exception ]) Stdlib.result