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

View source: R/lightsail_operations.R

lightsail_create_distributionR Documentation

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
)

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.


paws.compute documentation built on Sept. 12, 2023, 1:28 a.m.