| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.MachineLearning.AddTags
Description
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.
Constructors
| AddTags' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> TaggableResourceType | |
| -> AddTags |
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.
AddTags, addTags_resourceId - The ID of the ML object to tag. For example, exampleModelId.
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.
Constructors
| AddTagsResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> AddTagsResponse |
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:
AddTags, addTagsResponse_resourceId - The ID of the ML object that was tagged.
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.