amazonka-kinesis-video-2.0: Amazon Kinesis Video Streams SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.KinesisVideo.TagStream

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 Amazon Web Services 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 Billing and Cost Management and Cost Management User Guide.

You must provide either the StreamName or the StreamARN.

This operation requires permission for the KinesisVideo:TagStream action.

A Kinesis video stream can support up to 50 tags.

Synopsis

Creating a Request

data TagStream Source #

See: newTagStream smart constructor.

Constructors

TagStream' 

Fields

  • streamARN :: Maybe Text

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

  • streamName :: Maybe Text

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

  • tags :: HashMap Text Text

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

Instances

Instances details
ToJSON TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

ToHeaders TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Methods

toHeaders :: TagStream -> [Header] #

ToPath TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

ToQuery TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

AWSRequest TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Associated Types

type AWSResponse TagStream #

Generic TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Associated Types

type Rep TagStream :: Type -> Type #

Read TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Show TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

NFData TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Methods

rnf :: TagStream -> () #

Eq TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Hashable TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

type AWSResponse TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

type Rep TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

type Rep TagStream = D1 ('MetaData "TagStream" "Amazonka.KinesisVideo.TagStream" "amazonka-kinesis-video-2.0-5DR7d8jw2IyAvZJM3U7dwM" 'False) (C1 ('MetaCons "TagStream'" 'PrefixI 'True) (S1 ('MetaSel ('Just "streamARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "streamName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text Text)))))

newTagStream :: TagStream Source #

Create a value of TagStream with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

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

TagStream, tagStream_streamName - The name of the stream that you want to add the tag or tags to.

$sel:tags:TagStream', tagStream_tags - A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional).

Request Lenses

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

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

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

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

tagStream_tags :: 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

data TagStreamResponse Source #

See: newTagStreamResponse smart constructor.

Constructors

TagStreamResponse' 

Fields

Instances

Instances details
Generic TagStreamResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Associated Types

type Rep TagStreamResponse :: Type -> Type #

Read TagStreamResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Show TagStreamResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

NFData TagStreamResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Methods

rnf :: TagStreamResponse -> () #

Eq TagStreamResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

type Rep TagStreamResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

type Rep TagStreamResponse = D1 ('MetaData "TagStreamResponse" "Amazonka.KinesisVideo.TagStream" "amazonka-kinesis-video-2.0-5DR7d8jw2IyAvZJM3U7dwM" 'False) (C1 ('MetaCons "TagStreamResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newTagStreamResponse Source #

Create a value of TagStreamResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:TagStreamResponse', tagStreamResponse_httpStatus - The response's http status code.

Response Lenses

tagStreamResponse_httpStatus :: Lens' TagStreamResponse Int Source #

The response's http status code.