View source: R/lightsail_operations.R
lightsail_create_distribution | R Documentation |
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
)
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 |
ipAddressType |
The IP address type for the distribution. The possible values are The default value is |
tags |
The tag keys and optional values to add to the distribution during create. Use the |
certificateName |
The name of the SSL/TLS certificate that you want to attach to the distribution. Use the |
viewerMinimumTlsProtocolVersion |
The minimum TLS protocol version for the SSL/TLS certificate. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.