| 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.WorkSpaces.CreateTags
Description
Creates the specified tags for the specified WorkSpaces resource.
Synopsis
- data CreateTags = CreateTags' {
- resourceId :: Text
- tags :: [Tag]
- newCreateTags :: Text -> CreateTags
- createTags_resourceId :: Lens' CreateTags Text
- createTags_tags :: Lens' CreateTags [Tag]
- data CreateTagsResponse = CreateTagsResponse' {
- httpStatus :: Int
- newCreateTagsResponse :: Int -> CreateTagsResponse
- createTagsResponse_httpStatus :: Lens' CreateTagsResponse Int
Creating a Request
data CreateTags Source #
See: newCreateTags smart constructor.
Constructors
| CreateTags' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> CreateTags |
Create a value of CreateTags 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:
CreateTags, createTags_resourceId - The identifier of the WorkSpaces resource. The supported resource types
are WorkSpaces, registered directories, images, custom bundles, IP
access control groups, and connection aliases.
CreateTags, createTags_tags - The tags. Each WorkSpaces resource can have a maximum of 50 tags.
Request Lenses
createTags_resourceId :: Lens' CreateTags Text Source #
The identifier of the WorkSpaces resource. The supported resource types are WorkSpaces, registered directories, images, custom bundles, IP access control groups, and connection aliases.
createTags_tags :: Lens' CreateTags [Tag] Source #
The tags. Each WorkSpaces resource can have a maximum of 50 tags.
Destructuring the Response
data CreateTagsResponse Source #
See: newCreateTagsResponse smart constructor.
Constructors
| CreateTagsResponse' | |
Fields
| |
Instances
newCreateTagsResponse Source #
Arguments
| :: Int | |
| -> CreateTagsResponse |
Create a value of CreateTagsResponse 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:CreateTagsResponse', createTagsResponse_httpStatus - The response's http status code.
Response Lenses
createTagsResponse_httpStatus :: Lens' CreateTagsResponse Int Source #
The response's http status code.