libZSservicesZSamazonka-resourcegroupsZSamazonka-resourcegroups
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data UpdateGroupQuery Source #

See: newUpdateGroupQuery smart constructor.

Constructors

UpdateGroupQuery' 

Fields

  • group' :: Maybe Text

    The name or the ARN of the resource group to query.

  • groupName :: Maybe Text

    Don't use this parameter. Use Group instead.

  • resourceQuery :: 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.

Instances

Instances details
Eq UpdateGroupQuery Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

Read UpdateGroupQuery Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

Show UpdateGroupQuery Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

Generic UpdateGroupQuery Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

Associated Types

type Rep UpdateGroupQuery :: Type -> Type #

NFData UpdateGroupQuery Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

Methods

rnf :: UpdateGroupQuery -> () #

Hashable UpdateGroupQuery Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

ToJSON UpdateGroupQuery Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

AWSRequest UpdateGroupQuery Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

Associated Types

type AWSResponse UpdateGroupQuery #

ToHeaders UpdateGroupQuery Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

ToPath UpdateGroupQuery Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

ToQuery UpdateGroupQuery Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

type Rep UpdateGroupQuery Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

type Rep UpdateGroupQuery = D1 ('MetaData "UpdateGroupQuery" "Amazonka.ResourceGroups.UpdateGroupQuery" "libZSservicesZSamazonka-resourcegroupsZSamazonka-resourcegroups" 'False) (C1 ('MetaCons "UpdateGroupQuery'" 'PrefixI 'True) (S1 ('MetaSel ('Just "group'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "groupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resourceQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceQuery))))
type AWSResponse UpdateGroupQuery Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

newUpdateGroupQuery Source #

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.

$sel:groupName:UpdateGroupQuery', updateGroupQuery_groupName - Don't use this parameter. Use Group instead.

$sel:resourceQuery: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

Instances details
Eq UpdateGroupQueryResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

Read UpdateGroupQueryResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

Show UpdateGroupQueryResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

Generic UpdateGroupQueryResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

Associated Types

type Rep UpdateGroupQueryResponse :: Type -> Type #

NFData UpdateGroupQueryResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

type Rep UpdateGroupQueryResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.UpdateGroupQuery

type Rep UpdateGroupQueryResponse = D1 ('MetaData "UpdateGroupQueryResponse" "Amazonka.ResourceGroups.UpdateGroupQuery" "libZSservicesZSamazonka-resourcegroupsZSamazonka-resourcegroups" 'False) (C1 ('MetaCons "UpdateGroupQueryResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GroupQuery)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.