libZSservicesZSamazonka-kinesis-videoZSamazonka-kinesis-video
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

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
Eq TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Read TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Show TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Generic TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Associated Types

type Rep TagStream :: Type -> Type #

NFData TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Methods

rnf :: TagStream -> () #

Hashable TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

ToJSON TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

AWSRequest TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Associated Types

type AWSResponse 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

type Rep TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

type Rep TagStream = D1 ('MetaData "TagStream" "Amazonka.KinesisVideo.TagStream" "libZSservicesZSamazonka-kinesis-videoZSamazonka-kinesis-video" '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)))))
type AWSResponse TagStream Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

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:

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

$sel:streamName: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
Eq TagStreamResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Read TagStreamResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Show TagStreamResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Generic TagStreamResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Associated Types

type Rep TagStreamResponse :: Type -> Type #

NFData TagStreamResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

Methods

rnf :: TagStreamResponse -> () #

type Rep TagStreamResponse Source # 
Instance details

Defined in Amazonka.KinesisVideo.TagStream

type Rep TagStreamResponse = D1 ('MetaData "TagStreamResponse" "Amazonka.KinesisVideo.TagStream" "libZSservicesZSamazonka-kinesis-videoZSamazonka-kinesis-video" '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.