Skip to content

CopyDistributionRequest

Source code in docs_src/capo_cloudfront/types/copy_distribution_request.py
class CopyDistributionRequest(TypedDict, closed=True):
    primary_distribution_id: "capo_cloudfront.types.string.string"
    """<p>The identifier of the primary distribution whose configuration you are copying. To get a distribution ID, use <code>ListDistributions</code>.</p>"""
    staging: NotRequired["capo_cloudfront.types.boolean.boolean"]
    """<p>The type of distribution that your primary distribution will be copied to. The only valid value is <code>True</code>, indicating that you are copying to a staging distribution.</p>"""
    if_match: NotRequired["capo_cloudfront.types.string.string"]
    """<p>The version identifier of the primary distribution whose configuration you are copying. This is the <code>ETag</code> value returned in the response to <code>GetDistribution</code> and <code>GetDistributionConfig</code>.</p>"""
    caller_reference: "capo_cloudfront.types.string.string"
    """<p>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.</p>"""
    enabled: NotRequired["capo_cloudfront.types.boolean.boolean"]
    """<p>A Boolean flag to specify the state of the staging distribution when it's created. When you set this value to <code>True</code>, the staging distribution is enabled. When you set this value to <code>False</code>, the staging distribution is disabled.</p> <p>If you omit this field, the default value is <code>True</code>.</p>"""

caller_reference instance-attribute

caller_reference: string

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 instance-attribute

enabled: NotRequired[boolean]

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.

if_match instance-attribute

if_match: NotRequired[string]

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

primary_distribution_id instance-attribute

primary_distribution_id: string

The identifier of the primary distribution whose configuration you are copying. To get a distribution ID, use ListDistributions.

staging instance-attribute

staging: NotRequired[boolean]

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.