Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Adds tags to the specified AWS Elemental MediaStore container. Tags are key:value pairs that you can associate with AWS resources. For example, the tag key might be "customer" and the tag value might be "companyA." You can specify one or more tags to add to each container. You can add up to 50 tags to each container. For more information about tagging, including naming and usage conventions, see Tagging Resources in MediaStore.
Synopsis
- data TagResource = TagResource' {}
- newTagResource :: Text -> NonEmpty Tag -> TagResource
- tagResource_resource :: Lens' TagResource Text
- tagResource_tags :: Lens' TagResource (NonEmpty Tag)
- data TagResourceResponse = TagResourceResponse' {
- httpStatus :: Int
- newTagResourceResponse :: Int -> TagResourceResponse
- tagResourceResponse_httpStatus :: Lens' TagResourceResponse Int
Creating a Request
data TagResource Source #
See: newTagResource
smart constructor.
TagResource' | |
|
Instances
Create a value of TagResource
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:resource:TagResource'
, tagResource_resource
- The Amazon Resource Name (ARN) for the container.
$sel:tags:TagResource'
, tagResource_tags
- An array of key:value pairs that you want to add to the container. You
need to specify only the tags that you want to add or update. For
example, suppose a container already has two tags (customer:CompanyA and
priority:High). You want to change the priority tag and also add a third
tag (type:Contract). For TagResource, you specify the following tags:
priority:Medium, type:Contract. The result is that your container has
three tags: customer:CompanyA, priority:Medium, and type:Contract.
Request Lenses
tagResource_resource :: Lens' TagResource Text Source #
The Amazon Resource Name (ARN) for the container.
tagResource_tags :: Lens' TagResource (NonEmpty Tag) Source #
An array of key:value pairs that you want to add to the container. You need to specify only the tags that you want to add or update. For example, suppose a container already has two tags (customer:CompanyA and priority:High). You want to change the priority tag and also add a third tag (type:Contract). For TagResource, you specify the following tags: priority:Medium, type:Contract. The result is that your container has three tags: customer:CompanyA, priority:Medium, and type:Contract.
Destructuring the Response
data TagResourceResponse Source #
See: newTagResourceResponse
smart constructor.
TagResourceResponse' | |
|
Instances
newTagResourceResponse Source #
Create a value of TagResourceResponse
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:TagResourceResponse'
, tagResourceResponse_httpStatus
- The response's http status code.
Response Lenses
tagResourceResponse_httpStatus :: Lens' TagResourceResponse Int Source #
The response's http status code.