Module Values.BucketSource

Describes an Amazon Lightsail bucket.

Sourcetype nonrec t = {
  1. resourceType : NonEmptyString.t option;
    (*

    The Lightsail resource type of the bucket.

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

    An object that describes the access rules of the bucket.

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

    The Amazon Resource Name (ARN) of the bucket.

    *)
  4. bundleId : NonEmptyString.t option;
    (*

    The ID of the bundle currently applied to the bucket. A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. Use the UpdateBucketBundle action to change the bundle of a bucket.

    *)
  5. createdAt : IsoDate.t option;
    (*

    The timestamp when the distribution was created.

    *)
  6. url : NonEmptyString.t option;
    (*

    The URL of the bucket.

    *)
  7. location : ResourceLocation.t option;
    (*

    An object that describes the location of the bucket, such as the Amazon Web Services Region and Availability Zone.

    *)
  8. name : BucketName.t option;
    (*

    The name of the bucket.

    *)
  9. supportCode : NonEmptyString.t option;
    (*

    The support code for a bucket. Include this code in your email to support when you have questions about a Lightsail bucket. This code enables our support team to look up your Lightsail information more easily.

    *)
  10. tags : TagList.t option;
    (*

    The tag keys and optional values for the bucket. For more information, see Tags in Amazon Lightsail in the Amazon Lightsail Developer Guide.

    *)
  11. objectVersioning : NonEmptyString.t option;
    (*

    Indicates whether object versioning is enabled for the bucket. The following options can be configured: Enabled - Object versioning is enabled. Suspended - Object versioning was previously enabled but is currently suspended. Existing object versions are retained. NeverEnabled - Object versioning has never been enabled.

    *)
  12. ableToUpdateBundle : Boolean.t option;
    (*

    Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle. You can update a bucket's bundle only one time within a monthly Amazon Web Services billing cycle. Use the UpdateBucketBundle action to change a bucket's bundle.

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

    An array of strings that specify the Amazon Web Services account IDs that have read-only access to the bucket.

    *)
  14. resourcesReceivingAccess : AccessReceiverList.t option;
    (*

    An array of objects that describe Lightsail instances that have access to the bucket. Use the SetResourceAccessForBucket action to update the instances that have access to a bucket.

    *)
  15. state : BucketState.t option;
    (*

    An object that describes the state of the bucket.

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

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

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

    An array of cross-origin resource sharing (CORS) rules that identify origins and the HTTP methods that can be executed on your bucket. This field is only included in the response when CORS configuration is requested or when updating CORS configuration. For more information, see Configuring cross-origin resource sharing (CORS).

    *)
}
Sourceval make : ?resourceType:??? -> ?accessRules:??? -> ?arn:??? -> ?bundleId:??? -> ?createdAt:??? -> ?url:??? -> ?location:??? -> ?name:??? -> ?supportCode:??? -> ?tags:??? -> ?objectVersioning:??? -> ?ableToUpdateBundle:??? -> ?readonlyAccessAccounts:??? -> ?resourcesReceivingAccess:??? -> ?state:??? -> ?accessLogConfig:??? -> ?cors:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `List of [> `String of NonEmptyString.t | `Structure of (string * [> `String of TagKey.t ]) list ] list | `String of NonEmptyString.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 String_.t ]) list | `Timestamp of IsoDate.t ]) 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