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

Contents

Description

Deletes a Kinesis video stream and the data contained in the stream.

This method marks the stream for deletion, and makes the data in the stream inaccessible immediately.

To ensure that you have the latest version of the stream before deleting 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.

This operation requires permission for the KinesisVideo:DeleteStream action.

Synopsis

Creating a Request

deleteStream Source #

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

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

  • dsCurrentVersion - Optional: The version of the stream that you want to delete. Specify the version as a safeguard to ensure that your are deleting the correct stream. To get the stream version, use the DescribeStream API. If not specified, only the CreationTime is checked before deleting the stream.
  • dsStreamARN - The Amazon Resource Name (ARN) of the stream that you want to delete.

data DeleteStream Source #

See: deleteStream smart constructor.

Instances

Eq DeleteStream Source # 
Data DeleteStream Source # 

Methods

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

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

toConstr :: DeleteStream -> Constr #

dataTypeOf :: DeleteStream -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteStream Source # 
Show DeleteStream Source # 
Generic DeleteStream Source # 

Associated Types

type Rep DeleteStream :: * -> * #

Hashable DeleteStream Source # 
ToJSON DeleteStream Source # 
NFData DeleteStream Source # 

Methods

rnf :: DeleteStream -> () #

AWSRequest DeleteStream Source # 
ToHeaders DeleteStream Source # 
ToPath DeleteStream Source # 
ToQuery DeleteStream Source # 
type Rep DeleteStream Source # 
type Rep DeleteStream = D1 * (MetaData "DeleteStream" "Network.AWS.KinesisVideo.DeleteStream" "amazonka-kinesis-video-1.6.0-Evo5CFODH986fZyUSJYXKc" False) (C1 * (MetaCons "DeleteStream'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dsCurrentVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_dsStreamARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs DeleteStream Source # 

Request Lenses

dsCurrentVersion :: Lens' DeleteStream (Maybe Text) Source #

Optional: The version of the stream that you want to delete. Specify the version as a safeguard to ensure that your are deleting the correct stream. To get the stream version, use the DescribeStream API. If not specified, only the CreationTime is checked before deleting the stream.

dsStreamARN :: Lens' DeleteStream Text Source #

The Amazon Resource Name (ARN) of the stream that you want to delete.

Destructuring the Response

deleteStreamResponse Source #

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

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

data DeleteStreamResponse Source #

See: deleteStreamResponse smart constructor.

Instances

Eq DeleteStreamResponse Source # 
Data DeleteStreamResponse Source # 

Methods

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

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

toConstr :: DeleteStreamResponse -> Constr #

dataTypeOf :: DeleteStreamResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteStreamResponse Source # 
Show DeleteStreamResponse Source # 
Generic DeleteStreamResponse Source # 
NFData DeleteStreamResponse Source # 

Methods

rnf :: DeleteStreamResponse -> () #

type Rep DeleteStreamResponse Source # 
type Rep DeleteStreamResponse = D1 * (MetaData "DeleteStreamResponse" "Network.AWS.KinesisVideo.DeleteStream" "amazonka-kinesis-video-1.6.0-Evo5CFODH986fZyUSJYXKc" True) (C1 * (MetaCons "DeleteStreamResponse'" PrefixI True) (S1 * (MetaSel (Just Symbol "_dsrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Int)))

Response Lenses

dsrsResponseStatus :: Lens' DeleteStreamResponse Int Source #

  • - | The response status code.