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 |
Creates a resource group with the specified name and description. You can optionally include a resource query, or a service configuration. For more information about constructing a resource query, see Create a tag-based group in Resource Groups. For more information about service configurations, see Service configurations for resource groups.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:CreateGroup
Synopsis
- data CreateGroup = CreateGroup' {}
- newCreateGroup :: Text -> CreateGroup
- createGroup_resourceQuery :: Lens' CreateGroup (Maybe ResourceQuery)
- createGroup_configuration :: Lens' CreateGroup (Maybe [GroupConfigurationItem])
- createGroup_description :: Lens' CreateGroup (Maybe Text)
- createGroup_tags :: Lens' CreateGroup (Maybe (HashMap Text Text))
- createGroup_name :: Lens' CreateGroup Text
- data CreateGroupResponse = CreateGroupResponse' {}
- newCreateGroupResponse :: Int -> CreateGroupResponse
- createGroupResponse_group :: Lens' CreateGroupResponse (Maybe Group)
- createGroupResponse_groupConfiguration :: Lens' CreateGroupResponse (Maybe GroupConfiguration)
- createGroupResponse_resourceQuery :: Lens' CreateGroupResponse (Maybe ResourceQuery)
- createGroupResponse_tags :: Lens' CreateGroupResponse (Maybe (HashMap Text Text))
- createGroupResponse_httpStatus :: Lens' CreateGroupResponse Int
Creating a Request
data CreateGroup Source #
See: newCreateGroup
smart constructor.
CreateGroup' | |
|
Instances
Create a value of CreateGroup
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:resourceQuery:CreateGroup'
, createGroup_resourceQuery
- The resource query that determines which AWS resources are members of
this group. For more information about resource queries, see
Create a tag-based group in Resource Groups.
A resource group can contain either a ResourceQuery
or a
Configuration
, but not both.
$sel:configuration:CreateGroup'
, createGroup_configuration
- A configuration associates the resource group with an AWS service and
specifies how the service can interact with the resources in the group.
A configuration is an array of GroupConfigurationItem elements. For
details about the syntax of service configurations, see
Service configurations for resource groups.
A resource group can contain either a Configuration
or a
ResourceQuery
, but not both.
$sel:description:CreateGroup'
, createGroup_description
- The description of the resource group. Descriptions can consist of
letters, numbers, hyphens, underscores, periods, and spaces.
$sel:tags:CreateGroup'
, createGroup_tags
- The tags to add to the group. A tag is key-value pair string.
$sel:name:CreateGroup'
, createGroup_name
- The name of the group, which is the identifier of the group in other
operations. You can't change the name of a resource group after you
create it. A resource group name can consist of letters, numbers,
hyphens, periods, and underscores. The name cannot start with AWS
or
aws
; these are reserved. A resource group name must be unique within
each AWS Region in your AWS account.
Request Lenses
createGroup_resourceQuery :: Lens' CreateGroup (Maybe ResourceQuery) Source #
The resource query that determines which AWS resources are members of this group. For more information about resource queries, see Create a tag-based group in Resource Groups.
A resource group can contain either a ResourceQuery
or a
Configuration
, but not both.
createGroup_configuration :: Lens' CreateGroup (Maybe [GroupConfigurationItem]) Source #
A configuration associates the resource group with an AWS service and specifies how the service can interact with the resources in the group. A configuration is an array of GroupConfigurationItem elements. For details about the syntax of service configurations, see Service configurations for resource groups.
A resource group can contain either a Configuration
or a
ResourceQuery
, but not both.
createGroup_description :: Lens' CreateGroup (Maybe Text) Source #
The description of the resource group. Descriptions can consist of letters, numbers, hyphens, underscores, periods, and spaces.
createGroup_tags :: Lens' CreateGroup (Maybe (HashMap Text Text)) Source #
The tags to add to the group. A tag is key-value pair string.
createGroup_name :: Lens' CreateGroup Text Source #
The name of the group, which is the identifier of the group in other
operations. You can't change the name of a resource group after you
create it. A resource group name can consist of letters, numbers,
hyphens, periods, and underscores. The name cannot start with AWS
or
aws
; these are reserved. A resource group name must be unique within
each AWS Region in your AWS account.
Destructuring the Response
data CreateGroupResponse Source #
See: newCreateGroupResponse
smart constructor.
CreateGroupResponse' | |
|
Instances
newCreateGroupResponse Source #
Create a value of CreateGroupResponse
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:group':CreateGroupResponse'
, createGroupResponse_group
- The description of the resource group.
$sel:groupConfiguration:CreateGroupResponse'
, createGroupResponse_groupConfiguration
- The service configuration associated with the resource group. For
details about the syntax of a service configuration, see
Service configurations for resource groups.
$sel:resourceQuery:CreateGroup'
, createGroupResponse_resourceQuery
- The resource query associated with the group. For more information about
resource queries, see
Create a tag-based group in Resource Groups.
$sel:tags:CreateGroup'
, createGroupResponse_tags
- The tags associated with the group.
$sel:httpStatus:CreateGroupResponse'
, createGroupResponse_httpStatus
- The response's http status code.
Response Lenses
createGroupResponse_group :: Lens' CreateGroupResponse (Maybe Group) Source #
The description of the resource group.
createGroupResponse_groupConfiguration :: Lens' CreateGroupResponse (Maybe GroupConfiguration) Source #
The service configuration associated with the resource group. For details about the syntax of a service configuration, see Service configurations for resource groups.
createGroupResponse_resourceQuery :: Lens' CreateGroupResponse (Maybe ResourceQuery) Source #
The resource query associated with the group. For more information about resource queries, see Create a tag-based group in Resource Groups.
createGroupResponse_tags :: Lens' CreateGroupResponse (Maybe (HashMap Text Text)) Source #
The tags associated with the group.
createGroupResponse_httpStatus :: Lens' CreateGroupResponse Int Source #
The response's http status code.