amazonka-iot-1.6.0: Amazon IoT 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.IoT.CreateStream

Contents

Description

Creates a stream for delivering one or more large files in chunks over MQTT. A stream transports data bytes in chunks or blocks packaged as MQTT messages from a source like S3. You can have one or more files associated with a stream. The total size of a file associated with the stream cannot exceed more than 2 MB. The stream will be created with version 0. If a stream is created with the same streamID as a stream that existed and was deleted within last 90 days, we will resurrect that old stream by incrementing the version by 1.

Synopsis

Creating a Request

createStream Source #

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

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

  • csDescription - A description of the stream.
  • csStreamId - The stream ID.
  • csFiles - The files to stream.
  • csRoleARN - An IAM role that allows the IoT service principal assumes to access your S3 files.

data CreateStream Source #

See: createStream smart constructor.

Instances

Eq CreateStream Source # 
Data CreateStream Source # 

Methods

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

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

toConstr :: CreateStream -> Constr #

dataTypeOf :: CreateStream -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateStream Source # 
Show CreateStream Source # 
Generic CreateStream Source # 

Associated Types

type Rep CreateStream :: * -> * #

Hashable CreateStream Source # 
ToJSON CreateStream Source # 
NFData CreateStream Source # 

Methods

rnf :: CreateStream -> () #

AWSRequest CreateStream Source # 
ToHeaders CreateStream Source # 
ToPath CreateStream Source # 
ToQuery CreateStream Source # 
type Rep CreateStream Source # 
type Rep CreateStream = D1 * (MetaData "CreateStream" "Network.AWS.IoT.CreateStream" "amazonka-iot-1.6.0-GZYdsKS1TEjHFZo6BqaYJk" False) (C1 * (MetaCons "CreateStream'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_csDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_csStreamId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_csFiles") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (List1 StreamFile))) (S1 * (MetaSel (Just Symbol "_csRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs CreateStream Source # 

Request Lenses

csDescription :: Lens' CreateStream (Maybe Text) Source #

A description of the stream.

csRoleARN :: Lens' CreateStream Text Source #

An IAM role that allows the IoT service principal assumes to access your S3 files.

Destructuring the Response

createStreamResponse Source #

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

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

data CreateStreamResponse Source #

See: createStreamResponse smart constructor.

Instances

Eq CreateStreamResponse Source # 
Data CreateStreamResponse Source # 

Methods

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

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

toConstr :: CreateStreamResponse -> Constr #

dataTypeOf :: CreateStreamResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateStreamResponse Source # 
Show CreateStreamResponse Source # 
Generic CreateStreamResponse Source # 
NFData CreateStreamResponse Source # 

Methods

rnf :: CreateStreamResponse -> () #

type Rep CreateStreamResponse Source # 
type Rep CreateStreamResponse = D1 * (MetaData "CreateStreamResponse" "Network.AWS.IoT.CreateStream" "amazonka-iot-1.6.0-GZYdsKS1TEjHFZo6BqaYJk" False) (C1 * (MetaCons "CreateStreamResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_csrsStreamVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) (S1 * (MetaSel (Just Symbol "_csrsStreamARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_csrsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_csrsStreamId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_csrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))))

Response Lenses

csrsDescription :: Lens' CreateStreamResponse (Maybe Text) Source #

A description of the stream.

csrsResponseStatus :: Lens' CreateStreamResponse Int Source #

  • - | The response status code.