Module Smaws_Client_Lightsail.CreateBucketAccessKey

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

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.