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

Contents

Description

Adds one or more tags to a stream. A tag is a key-value pair (the value is optional) that you can define and assign to AWS resources. If you specify a tag that already exists, the tag value is replaced with the value that you specify in the request. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .

You must provide either the StreamName or the StreamARN .

This operation requires permission for the KinesisVideo:TagStream action.

Kinesis video streams support up to 50 tags.

Synopsis

Creating a Request

tagStream :: TagStream Source #

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

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

  • tsStreamARN - The Amazon Resource Name (ARN) of the resource that you want to add the tag or tags to.
  • tsStreamName - The name of the stream that you want to add the tag or tags to.
  • tsTags - A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional).

data TagStream Source #

See: tagStream smart constructor.

Instances

Eq TagStream Source # 
Data TagStream Source # 

Methods

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

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

toConstr :: TagStream -> Constr #

dataTypeOf :: TagStream -> DataType #

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

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

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

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

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

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

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

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

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

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

Read TagStream Source # 
Show TagStream Source # 
Generic TagStream Source # 

Associated Types

type Rep TagStream :: * -> * #

Hashable TagStream Source # 
ToJSON TagStream Source # 
NFData TagStream Source # 

Methods

rnf :: TagStream -> () #

AWSRequest TagStream Source # 
ToHeaders TagStream Source # 

Methods

toHeaders :: TagStream -> [Header] #

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

Request Lenses

tsStreamARN :: Lens' TagStream (Maybe Text) Source #

The Amazon Resource Name (ARN) of the resource that you want to add the tag or tags to.

tsStreamName :: Lens' TagStream (Maybe Text) Source #

The name of the stream that you want to add the tag or tags to.

tsTags :: Lens' TagStream (HashMap Text Text) Source #

A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional).

Destructuring the Response

tagStreamResponse Source #

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

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

data TagStreamResponse Source #

See: tagStreamResponse smart constructor.

Instances

Eq TagStreamResponse Source # 
Data TagStreamResponse Source # 

Methods

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

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

toConstr :: TagStreamResponse -> Constr #

dataTypeOf :: TagStreamResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read TagStreamResponse Source # 
Show TagStreamResponse Source # 
Generic TagStreamResponse Source # 
NFData TagStreamResponse Source # 

Methods

rnf :: TagStreamResponse -> () #

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

Response Lenses

tsrsResponseStatus :: Lens' TagStreamResponse Int Source #

  • - | The response status code.