| 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.ResourceGroups.UpdateGroupQuery
Description
Updates the resource query of a group. For more information about resource queries, see Create a tag-based group in Resource Groups.
Minimum permissions
To run this command, you must have the following permissions:
- resource-groups:UpdateGroupQuery 
Synopsis
- data UpdateGroupQuery = UpdateGroupQuery' {}
- newUpdateGroupQuery :: ResourceQuery -> UpdateGroupQuery
- updateGroupQuery_group :: Lens' UpdateGroupQuery (Maybe Text)
- updateGroupQuery_groupName :: Lens' UpdateGroupQuery (Maybe Text)
- updateGroupQuery_resourceQuery :: Lens' UpdateGroupQuery ResourceQuery
- data UpdateGroupQueryResponse = UpdateGroupQueryResponse' {}
- newUpdateGroupQueryResponse :: Int -> UpdateGroupQueryResponse
- updateGroupQueryResponse_groupQuery :: Lens' UpdateGroupQueryResponse (Maybe GroupQuery)
- updateGroupQueryResponse_httpStatus :: Lens' UpdateGroupQueryResponse Int
Creating a Request
data UpdateGroupQuery Source #
See: newUpdateGroupQuery smart constructor.
Constructors
| UpdateGroupQuery' | |
| Fields 
 | |
Instances
Arguments
| :: ResourceQuery | |
| -> UpdateGroupQuery | 
Create a value of UpdateGroupQuery 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':UpdateGroupQuery', updateGroupQuery_group - The name or the ARN of the resource group to query.
UpdateGroupQuery, updateGroupQuery_groupName - Don't use this parameter. Use Group instead.
UpdateGroupQuery, updateGroupQuery_resourceQuery - The resource query to determine which AWS resources are members of this
 resource group.
A resource group can contain either a Configuration or a
 ResourceQuery, but not both.
Request Lenses
updateGroupQuery_group :: Lens' UpdateGroupQuery (Maybe Text) Source #
The name or the ARN of the resource group to query.
updateGroupQuery_groupName :: Lens' UpdateGroupQuery (Maybe Text) Source #
Don't use this parameter. Use Group instead.
updateGroupQuery_resourceQuery :: Lens' UpdateGroupQuery ResourceQuery Source #
The resource query to determine which AWS resources are members of this resource group.
A resource group can contain either a Configuration or a
 ResourceQuery, but not both.
Destructuring the Response
data UpdateGroupQueryResponse Source #
See: newUpdateGroupQueryResponse smart constructor.
Constructors
| UpdateGroupQueryResponse' | |
| Fields 
 | |
Instances
newUpdateGroupQueryResponse Source #
Create a value of UpdateGroupQueryResponse 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:groupQuery:UpdateGroupQueryResponse', updateGroupQueryResponse_groupQuery - The updated resource query associated with the resource group after the
 update.
$sel:httpStatus:UpdateGroupQueryResponse', updateGroupQueryResponse_httpStatus - The response's http status code.
Response Lenses
updateGroupQueryResponse_groupQuery :: Lens' UpdateGroupQueryResponse (Maybe GroupQuery) Source #
The updated resource query associated with the resource group after the update.
updateGroupQueryResponse_httpStatus :: Lens' UpdateGroupQueryResponse Int Source #
The response's http status code.