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

Contents

Description

Updates an existing stream. The stream version will be incremented by one.

Synopsis

Creating a Request

updateStream Source #

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

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

  • usFiles - The files associated with the stream.
  • usDescription - The description of the stream.
  • usRoleARN - An IAM role that allows the IoT service principal assumes to access your S3 files.
  • usStreamId - The stream ID.

data UpdateStream Source #

See: updateStream smart constructor.

Instances

Eq UpdateStream Source # 
Data UpdateStream Source # 

Methods

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

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

toConstr :: UpdateStream -> Constr #

dataTypeOf :: UpdateStream -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateStream Source # 
Show UpdateStream Source # 
Generic UpdateStream Source # 

Associated Types

type Rep UpdateStream :: * -> * #

Hashable UpdateStream Source # 
ToJSON UpdateStream Source # 
NFData UpdateStream Source # 

Methods

rnf :: UpdateStream -> () #

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

Request Lenses

usFiles :: Lens' UpdateStream (Maybe (NonEmpty StreamFile)) Source #

The files associated with the stream.

usDescription :: Lens' UpdateStream (Maybe Text) Source #

The description of the stream.

usRoleARN :: Lens' UpdateStream (Maybe Text) Source #

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

Destructuring the Response

updateStreamResponse Source #

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

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

data UpdateStreamResponse Source #

See: updateStreamResponse smart constructor.

Instances

Eq UpdateStreamResponse Source # 
Data UpdateStreamResponse Source # 

Methods

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

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

toConstr :: UpdateStreamResponse -> Constr #

dataTypeOf :: UpdateStreamResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateStreamResponse Source # 
Show UpdateStreamResponse Source # 
Generic UpdateStreamResponse Source # 
NFData UpdateStreamResponse Source # 

Methods

rnf :: UpdateStreamResponse -> () #

type Rep UpdateStreamResponse Source # 
type Rep UpdateStreamResponse = D1 * (MetaData "UpdateStreamResponse" "Network.AWS.IoT.UpdateStream" "amazonka-iot-1.6.0-GZYdsKS1TEjHFZo6BqaYJk" False) (C1 * (MetaCons "UpdateStreamResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_usrsStreamVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) (S1 * (MetaSel (Just Symbol "_usrsStreamARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_usrsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_usrsStreamId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_usrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))))

Response Lenses

usrsDescription :: Lens' UpdateStreamResponse (Maybe Text) Source #

A description of the stream.

usrsResponseStatus :: Lens' UpdateStreamResponse Int Source #

  • - | The response status code.