amazonka-cloudfront-1.6.1: Amazon CloudFront SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudFront.DeleteDistribution

Contents

Description

Delete a distribution.

Synopsis

Creating a Request

deleteDistribution Source #

Creates a value of DeleteDistribution with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ddIfMatch - The value of the ETag header that you received when you disabled the distribution. For example: E2QWRUHAPOMQZL .
  • ddId - The distribution ID.

data DeleteDistribution Source #

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 GET Distribution Config request to get the current configuration and the Etag header for the distribution.
  • Update the XML document that was returned in the response to your GET Distribution Config request to change the value of Enabled to false .
  • Submit a 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.
  • Review the response to the PUT Distribution Config request to confirm that the distribution was successfully disabled.
  • Submit a GET Distribution request to confirm that your changes have propagated. When propagation is complete, the value of Status is Deployed .
  • Submit a 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.
  • Review the response to your DELETE Distribution request to confirm that the distribution was successfully deleted.

For information about deleting a distribution using the CloudFront console, see Deleting a Distribution in the Amazon CloudFront Developer Guide .

See: deleteDistribution smart constructor.

Instances
Eq DeleteDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

Data DeleteDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteDistribution -> c DeleteDistribution #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteDistribution #

toConstr :: DeleteDistribution -> Constr #

dataTypeOf :: DeleteDistribution -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DeleteDistribution) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteDistribution) #

gmapT :: (forall b. Data b => b -> b) -> DeleteDistribution -> DeleteDistribution #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteDistribution -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteDistribution -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteDistribution -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteDistribution -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteDistribution -> m DeleteDistribution #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteDistribution -> m DeleteDistribution #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteDistribution -> m DeleteDistribution #

Read DeleteDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

Show DeleteDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

Generic DeleteDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

Associated Types

type Rep DeleteDistribution :: Type -> Type #

Hashable DeleteDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

AWSRequest DeleteDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

Associated Types

type Rs DeleteDistribution :: Type #

ToHeaders DeleteDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

ToPath DeleteDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

ToQuery DeleteDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

NFData DeleteDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

Methods

rnf :: DeleteDistribution -> () #

type Rep DeleteDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

type Rep DeleteDistribution = D1 (MetaData "DeleteDistribution" "Network.AWS.CloudFront.DeleteDistribution" "amazonka-cloudfront-1.6.1-4jyCxtauObV85CKHrmGQe5" False) (C1 (MetaCons "DeleteDistribution'" PrefixI True) (S1 (MetaSel (Just "_ddIfMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ddId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs DeleteDistribution Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

Request Lenses

ddIfMatch :: Lens' DeleteDistribution (Maybe Text) Source #

The value of the ETag header that you received when you disabled the distribution. For example: E2QWRUHAPOMQZL .

ddId :: Lens' DeleteDistribution Text Source #

The distribution ID.

Destructuring the Response

deleteDistributionResponse :: DeleteDistributionResponse Source #

Creates a value of DeleteDistributionResponse with the minimum fields required to make a request.

data DeleteDistributionResponse Source #

See: deleteDistributionResponse smart constructor.

Instances
Eq DeleteDistributionResponse Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

Data DeleteDistributionResponse Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteDistributionResponse -> c DeleteDistributionResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteDistributionResponse #

toConstr :: DeleteDistributionResponse -> Constr #

dataTypeOf :: DeleteDistributionResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DeleteDistributionResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteDistributionResponse) #

gmapT :: (forall b. Data b => b -> b) -> DeleteDistributionResponse -> DeleteDistributionResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteDistributionResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteDistributionResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteDistributionResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteDistributionResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteDistributionResponse -> m DeleteDistributionResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteDistributionResponse -> m DeleteDistributionResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteDistributionResponse -> m DeleteDistributionResponse #

Read DeleteDistributionResponse Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

Show DeleteDistributionResponse Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

Generic DeleteDistributionResponse Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

Associated Types

type Rep DeleteDistributionResponse :: Type -> Type #

NFData DeleteDistributionResponse Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

type Rep DeleteDistributionResponse Source # 
Instance details

Defined in Network.AWS.CloudFront.DeleteDistribution

type Rep DeleteDistributionResponse = D1 (MetaData "DeleteDistributionResponse" "Network.AWS.CloudFront.DeleteDistribution" "amazonka-cloudfront-1.6.1-4jyCxtauObV85CKHrmGQe5" False) (C1 (MetaCons "DeleteDistributionResponse'" PrefixI False) (U1 :: Type -> Type))