amazonka-cloudfront-1.5.0: Amazon CloudFront SDK.

Copyright(c) 2013-2017 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.DeleteStreamingDistribution

Contents

Description

Delete a streaming distribution. To delete an RTMP distribution using the CloudFront API, perform the following steps.

To delete an RTMP distribution using the CloudFront API :

  • Disable the RTMP distribution.
  • Submit a GET Streaming 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 Streaming Distribution Config request to change the value of Enabled to false .
  • Submit a PUT Streaming Distribution Config request to update the configuration for your distribution. In the request body, include the XML document that you updated in Step 3. Then set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Streaming Distribution Config request in Step 2.
  • Review the response to the PUT Streaming Distribution Config request to confirm that the distribution was successfully disabled.
  • Submit a GET Streaming Distribution Config request to confirm that your changes have propagated. When propagation is complete, the value of Status is Deployed .
  • Submit a DELETE Streaming 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 Streaming Distribution Config request in Step 2.
  • Review the response to your DELETE Streaming 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 .

Synopsis

Creating a Request

deleteStreamingDistribution Source #

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

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

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

data DeleteStreamingDistribution Source #

The request to delete a streaming distribution.

See: deleteStreamingDistribution smart constructor.

Instances

Eq DeleteStreamingDistribution Source # 
Data DeleteStreamingDistribution Source # 

Methods

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

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

toConstr :: DeleteStreamingDistribution -> Constr #

dataTypeOf :: DeleteStreamingDistribution -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteStreamingDistribution Source # 
Show DeleteStreamingDistribution Source # 
Generic DeleteStreamingDistribution Source # 
Hashable DeleteStreamingDistribution Source # 
NFData DeleteStreamingDistribution Source # 
AWSRequest DeleteStreamingDistribution Source # 
ToQuery DeleteStreamingDistribution Source # 
ToPath DeleteStreamingDistribution Source # 
ToHeaders DeleteStreamingDistribution Source # 
type Rep DeleteStreamingDistribution Source # 
type Rep DeleteStreamingDistribution = D1 (MetaData "DeleteStreamingDistribution" "Network.AWS.CloudFront.DeleteStreamingDistribution" "amazonka-cloudfront-1.5.0-Dxb5BZwkJKgBNtTmWcA8zz" False) (C1 (MetaCons "DeleteStreamingDistribution'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dsdIfMatch") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dsdId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs DeleteStreamingDistribution Source # 

Request Lenses

dsdIfMatch :: Lens' DeleteStreamingDistribution (Maybe Text) Source #

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

Destructuring the Response

deleteStreamingDistributionResponse :: DeleteStreamingDistributionResponse Source #

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

data DeleteStreamingDistributionResponse Source #

See: deleteStreamingDistributionResponse smart constructor.

Instances

Eq DeleteStreamingDistributionResponse Source # 
Data DeleteStreamingDistributionResponse Source # 

Methods

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

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

toConstr :: DeleteStreamingDistributionResponse -> Constr #

dataTypeOf :: DeleteStreamingDistributionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteStreamingDistributionResponse Source # 
Show DeleteStreamingDistributionResponse Source # 
Generic DeleteStreamingDistributionResponse Source # 
NFData DeleteStreamingDistributionResponse Source # 
type Rep DeleteStreamingDistributionResponse Source # 
type Rep DeleteStreamingDistributionResponse = D1 (MetaData "DeleteStreamingDistributionResponse" "Network.AWS.CloudFront.DeleteStreamingDistribution" "amazonka-cloudfront-1.5.0-Dxb5BZwkJKgBNtTmWcA8zz" False) (C1 (MetaCons "DeleteStreamingDistributionResponse'" PrefixI False) U1)