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

Defined in Network.AWS.KinesisVideo.TagStream

Data TagStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.TagStream

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

Defined in Network.AWS.KinesisVideo.TagStream

Show TagStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.TagStream

Generic TagStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.TagStream

Associated Types

type Rep TagStream :: Type -> Type #

Hashable TagStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.TagStream

ToJSON TagStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.TagStream

AWSRequest TagStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.TagStream

Associated Types

type Rs TagStream :: Type #

ToHeaders TagStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.TagStream

Methods

toHeaders :: TagStream -> [Header] #

ToPath TagStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.TagStream

ToQuery TagStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.TagStream

NFData TagStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.TagStream

Methods

rnf :: TagStream -> () #

type Rep TagStream Source # 
Instance details

Defined in Network.AWS.KinesisVideo.TagStream

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

Defined in Network.AWS.KinesisVideo.TagStream

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

Defined in Network.AWS.KinesisVideo.TagStream

Data TagStreamResponse Source # 
Instance details

Defined in Network.AWS.KinesisVideo.TagStream

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

Defined in Network.AWS.KinesisVideo.TagStream

Show TagStreamResponse Source # 
Instance details

Defined in Network.AWS.KinesisVideo.TagStream

Generic TagStreamResponse Source # 
Instance details

Defined in Network.AWS.KinesisVideo.TagStream

Associated Types

type Rep TagStreamResponse :: Type -> Type #

NFData TagStreamResponse Source # 
Instance details

Defined in Network.AWS.KinesisVideo.TagStream

Methods

rnf :: TagStreamResponse -> () #

type Rep TagStreamResponse Source # 
Instance details

Defined in Network.AWS.KinesisVideo.TagStream

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

Response Lenses

tsrsResponseStatus :: Lens' TagStreamResponse Int Source #

  • - | The response status code.