Module Values.CreateDistributionRequestSource

Creates an Amazon Lightsail content delivery network (CDN) distribution. A distribution is a globally distributed network of caching servers that improve the performance of your website or web application hosted on a Lightsail instance. For more information, see Content delivery networks in Amazon Lightsail.

Sourcetype nonrec t = {
  1. distributionName : ResourceName.t;
    (*

    The name for the distribution.

    *)
  2. origin : InputOrigin.t;
    (*

    An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer. The distribution pulls, caches, and serves content from the origin.

    *)
  3. defaultCacheBehavior : CacheBehavior.t;
    (*

    An object that describes the default cache behavior for the distribution.

    *)
  4. cacheBehaviorSettings : CacheSettings.t option;
    (*

    An object that describes the cache behavior settings for the distribution.

    *)
  5. cacheBehaviors : CacheBehaviorList.t option;
    (*

    An array of objects that describe the per-path cache behavior for the distribution.

    *)
  6. bundleId : String_.t;
    (*

    The bundle ID to use for the distribution. A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota. Use the GetDistributionBundles action to get a list of distribution bundle IDs that you can specify.

    *)
  7. ipAddressType : IpAddressType.t option;
    (*

    The IP address type for the distribution. The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6. The default value is dualstack.

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

    The tag keys and optional values to add to the distribution during create. Use the TagResource action to tag a resource after it's created.

    *)
  9. certificateName : ResourceName.t option;
    (*

    The name of the SSL/TLS certificate that you want to attach to the distribution. Use the GetCertificates action to get a list of certificate names that you can specify.

    *)
  10. viewerMinimumTlsProtocolVersion : ViewerMinimumTlsProtocolVersionEnum.t option;
    (*

    The minimum TLS protocol version for the SSL/TLS certificate.

    *)
}
Sourceval context_ : string
Sourceval make : ?cacheBehaviorSettings:??? -> ?cacheBehaviors:??? -> ?ipAddressType:??? -> ?tags:??? -> ?certificateName:??? -> ?viewerMinimumTlsProtocolVersion:??? -> distributionName:ResourceName.t -> origin:InputOrigin.t -> defaultCacheBehavior:CacheBehavior.t -> bundleId:String_.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Enum of string | `String of String_.t ]) list ] list | `String of ResourceName.t | `Structure of (string * [> `Enum of string | `Integer of Integer.t | `Long of Long.t | `String of ResourceName.t | `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `List of [> `Enum of string | `String of String_.t ] list ]) list ]) 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