Module Values.UpdateBucketRequestSource

Updates an existing Amazon Lightsail bucket. Use this action to update the configuration of an existing bucket, such as versioning, public accessibility, and the Amazon Web Services accounts that can access the bucket.

Sourcetype nonrec t = {
  1. bucketName : BucketName.t;
    (*

    The name of the bucket to update.

    *)
  2. accessRules : AccessRules.t option;
    (*

    An object that sets the public accessibility of objects in the specified bucket.

    *)
  3. versioning : NonEmptyString.t option;
    (*

    Specifies whether to enable or suspend versioning of objects in the bucket. The following options can be specified: Enabled - Enables versioning of objects in the specified bucket. Suspended - Suspends versioning of objects in the specified bucket. Existing object versions are retained.

    *)
  4. readonlyAccessAccounts : PartnerIdList.t option;
    (*

    An array of strings to specify the Amazon Web Services account IDs that can access the bucket. You can give a maximum of 10 Amazon Web Services accounts access to a bucket.

    *)
  5. accessLogConfig : BucketAccessLogConfig.t option;
    (*

    An object that describes the access log configuration for the bucket.

    *)
  6. cors : BucketCorsConfig.t option;
    (*

    Sets the cross-origin resource sharing (CORS) configuration for your bucket. If a CORS configuration exists, it is replaced with the specified configuration. For AWS CLI operations, this parameter can also be passed as a file. For more information, see Configuring cross-origin resource sharing (CORS). CORS information is only returned in a response when you update the CORS policy.

    *)
}
Sourceval context_ : string
Sourceval make : ?accessRules:??? -> ?versioning:??? -> ?readonlyAccessAccounts:??? -> ?accessLogConfig:??? -> ?cors:??? -> bucketName:BucketName.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `String of NonEmptyString.t ] list | `String of BucketName.t | `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `List of [> `Structure of (string * [> `Integer of Integer.t | `List of [> `String of BucketCorsAllowedMethod.t ] list | `String of BucketCorsRuleId.t ]) list ] list | `String of BucketName.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