Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- addTags :: Text -> TaggableResourceType -> AddTags
- data AddTags
- atTags :: Lens' AddTags [Tag]
- atResourceId :: Lens' AddTags Text
- atResourceType :: Lens' AddTags TaggableResourceType
- addTagsResponse :: Int -> AddTagsResponse
- data AddTagsResponse
- atrsResourceId :: Lens' AddTagsResponse (Maybe Text)
- atrsResourceType :: Lens' AddTagsResponse (Maybe TaggableResourceType)
- atrsResponseStatus :: Lens' AddTagsResponse Int
Creating a Request
Creates a value of AddTags
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
atTags
- 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.atResourceId
- The ID of the ML object to tag. For example,exampleModelId
.atResourceType
- The type of the ML object to tag.
See: addTags
smart constructor.
Request Lenses
atTags :: 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.
atResourceId :: Lens' AddTags Text Source #
The ID of the ML object to tag. For example, exampleModelId
.
atResourceType :: Lens' AddTags TaggableResourceType Source #
The type of the ML object to tag.
Destructuring the Response
Creates a value of AddTagsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
atrsResourceId
- The ID of the ML object that was tagged.atrsResourceType
- The type of the ML object that was tagged.atrsResponseStatus
- -- | The response status code.
data AddTagsResponse Source #
Amazon ML returns the following elements.
See: addTagsResponse
smart constructor.
Response Lenses
atrsResourceId :: Lens' AddTagsResponse (Maybe Text) Source #
The ID of the ML object that was tagged.
atrsResourceType :: Lens' AddTagsResponse (Maybe TaggableResourceType) Source #
The type of the ML object that was tagged.
atrsResponseStatus :: Lens' AddTagsResponse Int Source #
- - | The response status code.