Module Values.CreateBucketAccessKeyResultSource

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.

Sourcetype nonrec t = {
  1. accessKey : AccessKey.t option;
    (*

    An object that describes the access key that is created.

    *)
  2. operations : OperationList.t option;
    (*

    An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `InvalidInputException of InvalidInputException.t
  3. | `NotFoundException of NotFoundException.t
  4. | `RegionSetupInProgressException of RegionSetupInProgressException.t
  5. | `ServiceException of ServiceException.t
  6. | `UnauthenticatedException of UnauthenticatedException.t
  7. | `Unknown_operation_error of string * string option
]
Sourceval make : ?accessKey:??? -> ?operations:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `InvalidInputException of InvalidInputException.t | `NotFoundException of NotFoundException.t | `RegionSetupInProgressException of RegionSetupInProgressException.t | `ServiceException of ServiceException.t | `UnauthenticatedException of UnauthenticatedException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `InvalidInputException of InvalidInputException.t | `NotFoundException of NotFoundException.t | `RegionSetupInProgressException of RegionSetupInProgressException.t | `ServiceException of ServiceException.t | `UnauthenticatedException of UnauthenticatedException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `String of NonEmptyString.t | `Structure of (string * [> `Enum of string | `String of String_.t ]) list | `Timestamp of IsoDate.t ]) list ] list | `Structure of (string * [> `Enum of string | `String of IAMAccessKeyId.t | `Structure of (string * [> `String of String_.t | `Timestamp of IsoDate.t ]) list | `Timestamp of IsoDate.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t