Creates an Amazon Lightsail content delivery network (CDN) distribution.
See https://www.paws-r-sdk.com/docs/lightsail_create_distribution/ for full documentation.
lightsail_create_distribution(
distributionName,
origin,
defaultCacheBehavior,
cacheBehaviorSettings = NULL,
cacheBehaviors = NULL,
bundleId,
ipAddressType = NULL,
tags = NULL,
certificateName = NULL,
viewerMinimumTlsProtocolVersion = NULL
)
[required] The name for the distribution.
[required] 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.
[required] An object that describes the default cache behavior for the distribution.
An object that describes the cache behavior settings for the distribution.
An array of objects that describe the per-path cache behavior for the distribution.
[required] 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 get_distribution_bundles
action to get a list of distribution bundle IDs that you can specify.
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
.
The tag keys and optional values to add to the distribution during create.
Use the tag_resource
action to tag a
resource after it's created.
The name of the SSL/TLS certificate that you want to attach to the distribution.
Use the get_certificates
action to get a
list of certificate names that you can specify.
The minimum TLS protocol version for the SSL/TLS certificate.