amazonka-iot-1.6.1: 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 # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

Data UpdateStream Source # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

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 # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

Show UpdateStream Source # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

Generic UpdateStream Source # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

Associated Types

type Rep UpdateStream :: Type -> Type #

Hashable UpdateStream Source # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

ToJSON UpdateStream Source # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

AWSRequest UpdateStream Source # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

Associated Types

type Rs UpdateStream :: Type #

ToHeaders UpdateStream Source # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

ToPath UpdateStream Source # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

ToQuery UpdateStream Source # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

NFData UpdateStream Source # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

Methods

rnf :: UpdateStream -> () #

type Rep UpdateStream Source # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

type Rep UpdateStream = D1 (MetaData "UpdateStream" "Network.AWS.IoT.UpdateStream" "amazonka-iot-1.6.1-1U0NSVSRVsCEeZIE9W0TkV" False) (C1 (MetaCons "UpdateStream'" PrefixI True) ((S1 (MetaSel (Just "_usFiles") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (List1 StreamFile))) :*: S1 (MetaSel (Just "_usDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_usRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_usStreamId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs UpdateStream Source # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

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 # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

Data UpdateStreamResponse Source # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

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 # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

Show UpdateStreamResponse Source # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

Generic UpdateStreamResponse Source # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

Associated Types

type Rep UpdateStreamResponse :: Type -> Type #

NFData UpdateStreamResponse Source # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

Methods

rnf :: UpdateStreamResponse -> () #

type Rep UpdateStreamResponse Source # 
Instance details

Defined in Network.AWS.IoT.UpdateStream

type Rep UpdateStreamResponse = D1 (MetaData "UpdateStreamResponse" "Network.AWS.IoT.UpdateStream" "amazonka-iot-1.6.1-1U0NSVSRVsCEeZIE9W0TkV" False) (C1 (MetaCons "UpdateStreamResponse'" PrefixI True) ((S1 (MetaSel (Just "_usrsStreamVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: S1 (MetaSel (Just "_usrsStreamARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_usrsDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_usrsStreamId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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.