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 one or more tags to an object, up to a limit of 10. Each tag
consists of a key and an optional value. If you add a tag using a key
that is already associated with the ML object, AddTags
updates the
tag's value.
Synopsis
- data AddTags = AddTags' {
- tags :: [Tag]
- resourceId :: Text
- resourceType :: TaggableResourceType
- newAddTags :: Text -> TaggableResourceType -> AddTags
- addTags_tags :: Lens' AddTags [Tag]
- addTags_resourceId :: Lens' AddTags Text
- addTags_resourceType :: Lens' AddTags TaggableResourceType
- data AddTagsResponse = AddTagsResponse' {}
- newAddTagsResponse :: Int -> AddTagsResponse
- addTagsResponse_resourceId :: Lens' AddTagsResponse (Maybe Text)
- addTagsResponse_resourceType :: Lens' AddTagsResponse (Maybe TaggableResourceType)
- addTagsResponse_httpStatus :: Lens' AddTagsResponse Int
Creating a Request
See: newAddTags
smart constructor.
AddTags' | |
|
Instances
Create a value of AddTags
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:tags:AddTags'
, addTags_tags
- The key-value pairs to use to create tags. If you specify a key without
specifying a value, Amazon ML creates a tag with the specified key and a
value of null.
$sel:resourceId:AddTags'
, addTags_resourceId
- The ID of the ML object to tag. For example, exampleModelId
.
$sel:resourceType:AddTags'
, addTags_resourceType
- The type of the ML object to tag.
Request Lenses
addTags_tags :: Lens' AddTags [Tag] Source #
The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.
addTags_resourceId :: Lens' AddTags Text Source #
The ID of the ML object to tag. For example, exampleModelId
.
addTags_resourceType :: Lens' AddTags TaggableResourceType Source #
The type of the ML object to tag.
Destructuring the Response
data AddTagsResponse Source #
Amazon ML returns the following elements.
See: newAddTagsResponse
smart constructor.
AddTagsResponse' | |
|
Instances
Create a value of AddTagsResponse
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:resourceId:AddTags'
, addTagsResponse_resourceId
- The ID of the ML object that was tagged.
$sel:resourceType:AddTags'
, addTagsResponse_resourceType
- The type of the ML object that was tagged.
$sel:httpStatus:AddTagsResponse'
, addTagsResponse_httpStatus
- The response's http status code.
Response Lenses
addTagsResponse_resourceId :: Lens' AddTagsResponse (Maybe Text) Source #
The ID of the ML object that was tagged.
addTagsResponse_resourceType :: Lens' AddTagsResponse (Maybe TaggableResourceType) Source #
The type of the ML object that was tagged.
addTagsResponse_httpStatus :: Lens' AddTagsResponse Int Source #
The response's http status code.