amazonka-cloudfront-1.4.5: Amazon CloudFront SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 #

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 #

The request to delete a streaming distribution.

See: deleteStreamingDistribution smart constructor.

Instances

Eq DeleteStreamingDistribution # 
Data DeleteStreamingDistribution # 

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 # 
Show DeleteStreamingDistribution # 
Generic DeleteStreamingDistribution # 
Hashable DeleteStreamingDistribution # 
NFData DeleteStreamingDistribution # 
AWSRequest DeleteStreamingDistribution # 
ToQuery DeleteStreamingDistribution # 
ToPath DeleteStreamingDistribution # 
ToHeaders DeleteStreamingDistribution # 
type Rep DeleteStreamingDistribution # 
type Rep DeleteStreamingDistribution = D1 (MetaData "DeleteStreamingDistribution" "Network.AWS.CloudFront.DeleteStreamingDistribution" "amazonka-cloudfront-1.4.5-ASj3DZfX0V52Qz3IKSFVrZ" 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 # 

Request Lenses

dsdIfMatch :: Lens' DeleteStreamingDistribution (Maybe Text) #

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

Destructuring the Response

deleteStreamingDistributionResponse :: DeleteStreamingDistributionResponse #

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

data DeleteStreamingDistributionResponse #

See: deleteStreamingDistributionResponse smart constructor.

Instances

Eq DeleteStreamingDistributionResponse # 
Data DeleteStreamingDistributionResponse # 

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 # 
Show DeleteStreamingDistributionResponse # 
Generic DeleteStreamingDistributionResponse # 
NFData DeleteStreamingDistributionResponse # 
type Rep DeleteStreamingDistributionResponse # 
type Rep DeleteStreamingDistributionResponse = D1 (MetaData "DeleteStreamingDistributionResponse" "Network.AWS.CloudFront.DeleteStreamingDistribution" "amazonka-cloudfront-1.4.5-ASj3DZfX0V52Qz3IKSFVrZ" False) (C1 (MetaCons "DeleteStreamingDistributionResponse'" PrefixI False) U1)