Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a group with a specified name, description, and resource query.
Synopsis
- createGroup :: Text -> ResourceQuery -> CreateGroup
- data CreateGroup
- cgDescription :: Lens' CreateGroup (Maybe Text)
- cgTags :: Lens' CreateGroup (HashMap Text Text)
- cgName :: Lens' CreateGroup Text
- cgResourceQuery :: Lens' CreateGroup ResourceQuery
- createGroupResponse :: Int -> CreateGroupResponse
- data CreateGroupResponse
- cgrsGroup :: Lens' CreateGroupResponse (Maybe Group)
- cgrsResourceQuery :: Lens' CreateGroupResponse (Maybe ResourceQuery)
- cgrsTags :: Lens' CreateGroupResponse (HashMap Text Text)
- cgrsResponseStatus :: Lens' CreateGroupResponse Int
Creating a Request
Creates a value of CreateGroup
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cgDescription
- The description of the resource group. Descriptions can have a maximum of 511 characters, including letters, numbers, hyphens, underscores, punctuation, and spaces.cgTags
- The tags to add to the group. A tag is a string-to-string map of key-value pairs. Tag keys can have a maximum character length of 127 characters, and tag values can have a maximum length of 255 characters.cgName
- The name of the group, which is the identifier of the group in other operations. A resource group name cannot be updated after it is created. A resource group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start withAWS
oraws
; these are reserved. A resource group name must be unique within your account.cgResourceQuery
- The resource query that determines which AWS resources are members of this group.
data CreateGroup Source #
See: createGroup
smart constructor.
Instances
Request Lenses
cgDescription :: Lens' CreateGroup (Maybe Text) Source #
The description of the resource group. Descriptions can have a maximum of 511 characters, including letters, numbers, hyphens, underscores, punctuation, and spaces.
cgTags :: Lens' CreateGroup (HashMap Text Text) Source #
The tags to add to the group. A tag is a string-to-string map of key-value pairs. Tag keys can have a maximum character length of 127 characters, and tag values can have a maximum length of 255 characters.
cgName :: Lens' CreateGroup Text Source #
The name of the group, which is the identifier of the group in other operations. A resource group name cannot be updated after it is created. A resource group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS
or aws
; these are reserved. A resource group name must be unique within your account.
cgResourceQuery :: Lens' CreateGroup ResourceQuery Source #
The resource query that determines which AWS resources are members of this group.
Destructuring the Response
Creates a value of CreateGroupResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cgrsGroup
- A full description of the resource group after it is created.cgrsResourceQuery
- The resource query associated with the group.cgrsTags
- The tags associated with the group.cgrsResponseStatus
- -- | The response status code.
data CreateGroupResponse Source #
See: createGroupResponse
smart constructor.
Instances
Response Lenses
cgrsGroup :: Lens' CreateGroupResponse (Maybe Group) Source #
A full description of the resource group after it is created.
cgrsResourceQuery :: Lens' CreateGroupResponse (Maybe ResourceQuery) Source #
The resource query associated with the group.
cgrsTags :: Lens' CreateGroupResponse (HashMap Text Text) Source #
The tags associated with the group.
cgrsResponseStatus :: Lens' CreateGroupResponse Int Source #
- - | The response status code.