/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include This action deletes a web distribution. To delete a web distribution using
* the CloudFront API, perform the following steps. To delete a web
* distribution using the CloudFront API: Disable the web
* distribution Submit a Update the XML document that was returned in
* the response to your Submit a
* Review the response to the Submit a Submit a Review the response to your For information about deleting a distribution using
* the CloudFront console, see Deleting
* a Distribution in the Amazon CloudFront Developer
* Guide.
GET Distribution Config
* request to get the current configuration and the Etag
header for
* the distribution.GET Distribution Config
request to change the
* value of Enabled
to false
.PUT Distribution Config
request to update the configuration for
* your distribution. In the request body, include the XML document that you
* updated in Step 3. Set the value of the HTTP If-Match
header to the
* value of the ETag
header that CloudFront returned when you
* submitted the GET Distribution Config
request in Step 2.PUT Distribution Config
request
* to confirm that the distribution was successfully disabled.GET Distribution
request to confirm that your changes
* have propagated. When propagation is complete, the value of Status
* is Deployed
.DELETE
* Distribution
request. Set the value of the HTTP If-Match
* header to the value of the ETag
header that CloudFront returned
* when you submitted the GET Distribution Config
request in Step
* 6.DELETE
* Distribution
request to confirm that the distribution was successfully
* deleted.See Also:
AWS
* API Reference
The distribution ID.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The distribution ID.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The distribution ID.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The distribution ID.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The distribution ID.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The distribution ID.
*/ inline DeleteDistribution2020_05_31Request& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The distribution ID.
*/ inline DeleteDistribution2020_05_31Request& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The distribution ID.
*/ inline DeleteDistribution2020_05_31Request& WithId(const char* value) { SetId(value); return *this;} /** *The value of the ETag
header that you received when you disabled
* the distribution. For example: E2QWRUHAPOMQZL
.
The value of the ETag
header that you received when you disabled
* the distribution. For example: E2QWRUHAPOMQZL
.
The value of the ETag
header that you received when you disabled
* the distribution. For example: E2QWRUHAPOMQZL
.
The value of the ETag
header that you received when you disabled
* the distribution. For example: E2QWRUHAPOMQZL
.
The value of the ETag
header that you received when you disabled
* the distribution. For example: E2QWRUHAPOMQZL
.
The value of the ETag
header that you received when you disabled
* the distribution. For example: E2QWRUHAPOMQZL
.
The value of the ETag
header that you received when you disabled
* the distribution. For example: E2QWRUHAPOMQZL
.
The value of the ETag
header that you received when you disabled
* the distribution. For example: E2QWRUHAPOMQZL
.