Creates an Amazon Lightsail content delivery network (CDN) distribution
Source:R/lightsail_operations.R
lightsail_create_distribution.RdCreates an Amazon Lightsail content delivery network (CDN) distribution.
See https://www.paws-r-sdk.com/docs/lightsail_create_distribution/ for full documentation.
Usage
lightsail_create_distribution(
distributionName,
origin,
defaultCacheBehavior,
cacheBehaviorSettings = NULL,
cacheBehaviors = NULL,
bundleId,
ipAddressType = NULL,
tags = NULL,
certificateName = NULL,
viewerMinimumTlsProtocolVersion = NULL
)Arguments
- distributionName
[required] The name for the distribution.
- origin
[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.
- defaultCacheBehavior
[required] An object that describes the default cache behavior for the distribution.
- cacheBehaviorSettings
An object that describes the cache behavior settings for the distribution.
- cacheBehaviors
An array of objects that describe the per-path cache behavior for the distribution.
- bundleId
[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_bundlesaction to get a list of distribution bundle IDs that you can specify.- ipAddressType
The IP address type for the distribution.
The possible values are
ipv4for IPv4 only, anddualstackfor IPv4 and IPv6.The default value is
dualstack.The tag keys and optional values to add to the distribution during create.
Use the
tag_resourceaction to tag a resource after it's created.- certificateName
The name of the SSL/TLS certificate that you want to attach to the distribution.
Use the
get_certificatesaction to get a list of certificate names that you can specify.- viewerMinimumTlsProtocolVersion
The minimum TLS protocol version for the SSL/TLS certificate.