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.CreateStreamingDistribution

Contents

Description

Creates a new RMTP distribution. An RTMP distribution is similar to a web distribution, but an RTMP distribution streams media files using the Adobe Real-Time Messaging Protocol (RTMP) instead of serving files using HTTP.

To create a new web distribution, submit a POST request to the CloudFront API version distribution resource. The request body must include a document with a StreamingDistributionConfig/ element. The response echoes the StreamingDistributionConfig element and returns other information about the RTMP distribution.

To get the status of your request, use the GET StreamingDistribution API action. When the value of Enabled is true and the value of Status is Deployed , your distribution is ready. A distribution usually deploys in less than 15 minutes.

For more information about web distributions, see Working with RTMP Distributions in the Amazon CloudFront Developer Guide .

Important: Beginning with the 2012-05-05 version of the CloudFront API, we made substantial changes to the format of the XML document that you include in the request body when you create or update a web distribution or an RTMP distribution, and when you invalidate objects. With previous versions of the API, we discovered that it was too easy to accidentally delete one or more values for an element that accepts multiple values, for example, CNAMEs and trusted signers. Our changes for the 2012-05-05 release are intended to prevent these accidental deletions and to notify you when there's a mismatch between the number of values you say you're specifying in the Quantity element and the number of values specified.

Synopsis

Creating a Request

createStreamingDistribution #

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

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

data CreateStreamingDistribution #

The request to create a new streaming distribution.

See: createStreamingDistribution smart constructor.

Instances

Eq CreateStreamingDistribution # 
Data CreateStreamingDistribution # 

Methods

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

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

toConstr :: CreateStreamingDistribution -> Constr #

dataTypeOf :: CreateStreamingDistribution -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateStreamingDistribution # 
Show CreateStreamingDistribution # 
Generic CreateStreamingDistribution # 
Hashable CreateStreamingDistribution # 
NFData CreateStreamingDistribution # 
AWSRequest CreateStreamingDistribution # 
ToElement CreateStreamingDistribution # 
ToQuery CreateStreamingDistribution # 
ToPath CreateStreamingDistribution # 
ToHeaders CreateStreamingDistribution # 
type Rep CreateStreamingDistribution # 
type Rep CreateStreamingDistribution = D1 (MetaData "CreateStreamingDistribution" "Network.AWS.CloudFront.CreateStreamingDistribution" "amazonka-cloudfront-1.4.5-ASj3DZfX0V52Qz3IKSFVrZ" True) (C1 (MetaCons "CreateStreamingDistribution'" PrefixI True) (S1 (MetaSel (Just Symbol "_csdStreamingDistributionConfig") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 StreamingDistributionConfig)))
type Rs CreateStreamingDistribution # 

Request Lenses

csdStreamingDistributionConfig :: Lens' CreateStreamingDistribution StreamingDistributionConfig #

The streaming distribution's configuration information.

Destructuring the Response

createStreamingDistributionResponse #

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

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

data CreateStreamingDistributionResponse #

The returned result of the corresponding request.

See: createStreamingDistributionResponse smart constructor.

Instances

Eq CreateStreamingDistributionResponse # 
Data CreateStreamingDistributionResponse # 

Methods

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

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

toConstr :: CreateStreamingDistributionResponse -> Constr #

dataTypeOf :: CreateStreamingDistributionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateStreamingDistributionResponse # 
Show CreateStreamingDistributionResponse # 
Generic CreateStreamingDistributionResponse # 
NFData CreateStreamingDistributionResponse # 
type Rep CreateStreamingDistributionResponse # 
type Rep CreateStreamingDistributionResponse = D1 (MetaData "CreateStreamingDistributionResponse" "Network.AWS.CloudFront.CreateStreamingDistribution" "amazonka-cloudfront-1.4.5-ASj3DZfX0V52Qz3IKSFVrZ" False) (C1 (MetaCons "CreateStreamingDistributionResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_csdrsETag") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_csdrsLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_csdrsStreamingDistribution") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe StreamingDistribution))) (S1 (MetaSel (Just Symbol "_csdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

csdrsETag :: Lens' CreateStreamingDistributionResponse (Maybe Text) #

The current version of the streaming distribution created.

csdrsLocation :: Lens' CreateStreamingDistributionResponse (Maybe Text) #

The fully qualified URI of the new streaming distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/streaming-distribution/EGTXBD79H29TRA8 .