amazonka-kinesis-video-1.6.0: Amazon Kinesis Video Streams 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.KinesisVideo.UpdateStream

Contents

Description

Updates stream metadata, such as the device name and media type.

You must provide the stream name or the Amazon Resource Name (ARN) of the stream.

To make sure that you have the latest version of the stream before updating it, you can specify the stream version. Kinesis Video Streams assigns a version to each stream. When you update a stream, Kinesis Video Streams assigns a new version number. To get the latest stream version, use the DescribeStream API.

UpdateStream is an asynchronous operation, and takes time to complete.

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:

  • uMediaType - The stream's media type. Use MediaType to specify the type of content that the stream contains to the consumers of the stream. For more information about media types, see Media Types . If you choose to specify the MediaType , see Naming Requirements . To play video on the console, you must specify the correct video type. For example, if the video in the stream is H.264, specify video/h264 as the MediaType .
  • uStreamARN - The ARN of the stream whose metadata you want to update.
  • uDeviceName - The name of the device that is writing to the stream.
  • uStreamName - The name of the stream whose metadata you want to update. The stream name is an identifier for the stream, and must be unique for each account and region.
  • uCurrentVersion - The version of the stream whose metadata you want to update.

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.KinesisVideo.UpdateStream" "amazonka-kinesis-video-1.6.0-Evo5CFODH986fZyUSJYXKc" False) (C1 * (MetaCons "UpdateStream'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_uMediaType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_uStreamARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_uDeviceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_uStreamName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_uCurrentVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))
type Rs UpdateStream Source # 

Request Lenses

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

The stream's media type. Use MediaType to specify the type of content that the stream contains to the consumers of the stream. For more information about media types, see Media Types . If you choose to specify the MediaType , see Naming Requirements . To play video on the console, you must specify the correct video type. For example, if the video in the stream is H.264, specify video/h264 as the MediaType .

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

The ARN of the stream whose metadata you want to update.

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

The name of the device that is writing to the stream.

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

The name of the stream whose metadata you want to update. The stream name is an identifier for the stream, and must be unique for each account and region.

uCurrentVersion :: Lens' UpdateStream Text Source #

The version of the stream whose metadata you want to update.

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.KinesisVideo.UpdateStream" "amazonka-kinesis-video-1.6.0-Evo5CFODH986fZyUSJYXKc" True) (C1 * (MetaCons "UpdateStreamResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_usrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses

usrsResponseStatus :: Lens' UpdateStreamResponse Int Source #

  • - | The response status code.