cloudfront_copy_distribution: Creates a staging distribution using the configuration of the...

View source: R/cloudfront_operations.R

cloudfront_copy_distributionR Documentation

Creates a staging distribution using the configuration of the provided primary distribution

Description

Creates a staging distribution using the configuration of the provided primary distribution. A staging distribution is a copy of an existing distribution (called the primary distribution) that you can use in a continuous deployment workflow.

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

Usage

cloudfront_copy_distribution(
  PrimaryDistributionId,
  Staging = NULL,
  IfMatch = NULL,
  CallerReference,
  Enabled = NULL
)

Arguments

PrimaryDistributionId

[required] The identifier of the primary distribution whose configuration you are copying. To get a distribution ID, use list_distributions.

Staging

The type of distribution that your primary distribution will be copied to. The only valid value is True, indicating that you are copying to a staging distribution.

IfMatch

The version identifier of the primary distribution whose configuration you are copying. This is the ETag value returned in the response to get_distribution and get_distribution_config.

CallerReference

[required] A value that uniquely identifies a request to create a resource. This helps to prevent CloudFront from creating a duplicate resource if you accidentally resubmit an identical request.

Enabled

A Boolean flag to specify the state of the staging distribution when it's created. When you set this value to True, the staging distribution is enabled. When you set this value to False, the staging distribution is disabled.

If you omit this field, the default value is True.


paws.networking documentation built on Sept. 12, 2024, 7:32 a.m.