Learn R Programming

paws.compute (version 0.7.0)

lightsail_create_distribution: Creates an Amazon Lightsail content delivery network (CDN) distribution

Description

Creates 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_bundles action to get a list of distribution bundle IDs that you can specify.

ipAddressType

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.

tags

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.

certificateName

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.

viewerMinimumTlsProtocolVersion

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