amazonka-kinesis-video-1.6.1: 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.CreateStream

Contents

Description

Creates a new Kinesis video stream.

When you create a new stream, Kinesis Video Streams assigns it a version number. When you change the stream's metadata, Kinesis Video Streams updates the version.

CreateStream is an asynchronous operation.

For information about how the service works, see How it Works .

You must have permissions for the KinesisVideo:CreateStream action.

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:

  • csMediaType - The media type of the stream. Consumers of the stream can use this information when processing the stream. For more information about media types, see Media Types . If you choose to specify the MediaType , see Naming Requirements for guidelines. To play video on the console, the media must be H.264 encoded, and you need to specify this video type in this parameter as video/h264 . This parameter is optional; the default value is null (or empty in JSON).
  • csDataRetentionInHours - The number of hours that you want to retain the data in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream. The default value is 0, indicating that the stream does not persist data.
  • csKMSKeyId - The ID of the AWS Key Management Service (AWS KMS) key that you want Kinesis Video Streams to use to encrypt stream data. If no key ID is specified, the default, Kinesis Video-managed key (aws/kinesisvideo ) is used. For more information, see DescribeKey .
  • csDeviceName - The name of the device that is writing to the stream.
  • csStreamName - A name for the stream that you are creating. The stream name is an identifier for the stream, and must be unique for each account and region.

data CreateStream Source #

See: createStream smart constructor.

Instances
Eq CreateStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.CreateStream

Data CreateStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.CreateStream

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

Defined in Network.AWS.KinesisVideo.CreateStream

Show CreateStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.CreateStream

Generic CreateStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.CreateStream

Associated Types

type Rep CreateStream :: Type -> Type #

Hashable CreateStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.CreateStream

ToJSON CreateStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.CreateStream

AWSRequest CreateStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.CreateStream

Associated Types

type Rs CreateStream :: Type #

ToHeaders CreateStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.CreateStream

ToPath CreateStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.CreateStream

ToQuery CreateStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.CreateStream

NFData CreateStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.CreateStream

Methods

rnf :: CreateStream -> () #

type Rep CreateStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.CreateStream

type Rep CreateStream = D1 (MetaData "CreateStream" "Network.AWS.KinesisVideo.CreateStream" "amazonka-kinesis-video-1.6.1-DmBW3ngoQkA6qcsiLaMbWy" False) (C1 (MetaCons "CreateStream'" PrefixI True) ((S1 (MetaSel (Just "_csMediaType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_csDataRetentionInHours") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) :*: (S1 (MetaSel (Just "_csKMSKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_csDeviceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_csStreamName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.CreateStream

Request Lenses

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

The media type of the stream. Consumers of the stream can use this information when processing the stream. For more information about media types, see Media Types . If you choose to specify the MediaType , see Naming Requirements for guidelines. To play video on the console, the media must be H.264 encoded, and you need to specify this video type in this parameter as video/h264 . This parameter is optional; the default value is null (or empty in JSON).

csDataRetentionInHours :: Lens' CreateStream (Maybe Natural) Source #

The number of hours that you want to retain the data in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream. The default value is 0, indicating that the stream does not persist data.

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

The ID of the AWS Key Management Service (AWS KMS) key that you want Kinesis Video Streams to use to encrypt stream data. If no key ID is specified, the default, Kinesis Video-managed key (aws/kinesisvideo ) is used. For more information, see DescribeKey .

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

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

csStreamName :: Lens' CreateStream Text Source #

A name for the stream that you are creating. The stream name is an identifier for the stream, and must be unique for each account and region.

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

Defined in Network.AWS.KinesisVideo.CreateStream

Data CreateStreamResponse Source # 
Instance details

Defined in Network.AWS.KinesisVideo.CreateStream

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

Defined in Network.AWS.KinesisVideo.CreateStream

Show CreateStreamResponse Source # 
Instance details

Defined in Network.AWS.KinesisVideo.CreateStream

Generic CreateStreamResponse Source # 
Instance details

Defined in Network.AWS.KinesisVideo.CreateStream

Associated Types

type Rep CreateStreamResponse :: Type -> Type #

NFData CreateStreamResponse Source # 
Instance details

Defined in Network.AWS.KinesisVideo.CreateStream

Methods

rnf :: CreateStreamResponse -> () #

type Rep CreateStreamResponse Source # 
Instance details

Defined in Network.AWS.KinesisVideo.CreateStream

type Rep CreateStreamResponse = D1 (MetaData "CreateStreamResponse" "Network.AWS.KinesisVideo.CreateStream" "amazonka-kinesis-video-1.6.1-DmBW3ngoQkA6qcsiLaMbWy" False) (C1 (MetaCons "CreateStreamResponse'" PrefixI True) (S1 (MetaSel (Just "_csrsStreamARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_csrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

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

The Amazon Resource Name (ARN) of the stream.

csrsResponseStatus :: Lens' CreateStreamResponse Int Source #

  • - | The response status code.