lightsail_update_distribution: Updates an existing Amazon Lightsail content delivery network...

View source: R/lightsail_operations.R

lightsail_update_distributionR Documentation

Updates an existing Amazon Lightsail content delivery network (CDN) distribution

Description

Updates an existing Amazon Lightsail content delivery network (CDN) distribution.

See https://www.paws-r-sdk.com/docs/lightsail_update_distribution/ for full documentation.

Usage

lightsail_update_distribution(
  distributionName,
  origin = NULL,
  defaultCacheBehavior = NULL,
  cacheBehaviorSettings = NULL,
  cacheBehaviors = NULL,
  isEnabled = NULL,
  viewerMinimumTlsProtocolVersion = NULL,
  certificateName = NULL,
  useDefaultCertificate = NULL
)

Arguments

distributionName

[required] The name of the distribution to update.

Use the get_distributions action to get a list of distribution names that you can specify.

origin

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

An object that describes the default cache behavior for the distribution.

cacheBehaviorSettings

An object that describes the cache behavior settings for the distribution.

The cacheBehaviorSettings specified in your UpdateDistributionRequest will replace your distribution's existing settings.

cacheBehaviors

An array of objects that describe the per-path cache behavior for the distribution.

isEnabled

Indicates whether to enable the distribution.

viewerMinimumTlsProtocolVersion

Use this parameter to update the minimum TLS protocol version for the SSL/TLS certificate that's attached to the distribution.

certificateName

The name of the SSL/TLS certificate that you want to attach to the distribution.

Only certificates with a status of ISSUED can be attached to a distribution.

Use the get_certificates action to get a list of certificate names that you can specify.

useDefaultCertificate

Indicates whether the default SSL/TLS certificate is attached to the distribution. The default value is true. When true, the distribution uses the default domain name such as d111111abcdef8.cloudfront.net.

Set this value to false to attach a new certificate to the distribution.


paws.compute documentation built on Sept. 12, 2024, 6:12 a.m.