amazonka-resourcegroups-2.0: Amazon Resource Groups SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ResourceGroups.GroupResources

Description

Adds the specified resources to the specified group.

Minimum permissions

To run this command, you must have the following permissions:

  • resource-groups:GroupResources
Synopsis

Creating a Request

data GroupResources Source #

See: newGroupResources smart constructor.

Constructors

GroupResources' 

Fields

Instances

Instances details
ToJSON GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

ToHeaders GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

ToPath GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

ToQuery GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

AWSRequest GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Associated Types

type AWSResponse GroupResources #

Generic GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Associated Types

type Rep GroupResources :: Type -> Type #

Read GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Show GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

NFData GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Methods

rnf :: GroupResources -> () #

Eq GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Hashable GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

type AWSResponse GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

type Rep GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

type Rep GroupResources = D1 ('MetaData "GroupResources" "Amazonka.ResourceGroups.GroupResources" "amazonka-resourcegroups-2.0-B1PbpVYkdAmDCiu1dJFqfU" 'False) (C1 ('MetaCons "GroupResources'" 'PrefixI 'True) (S1 ('MetaSel ('Just "group'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "resourceArns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text))))

newGroupResources Source #

Create a value of GroupResources 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':GroupResources', groupResources_group - The name or the ARN of the resource group to add resources to.

$sel:resourceArns:GroupResources', groupResources_resourceArns - The list of ARNs for resources to be added to the group.

Request Lenses

groupResources_group :: Lens' GroupResources Text Source #

The name or the ARN of the resource group to add resources to.

groupResources_resourceArns :: Lens' GroupResources (NonEmpty Text) Source #

The list of ARNs for resources to be added to the group.

Destructuring the Response

data GroupResourcesResponse Source #

See: newGroupResourcesResponse smart constructor.

Constructors

GroupResourcesResponse' 

Fields

  • failed :: Maybe [FailedResource]

    A list of ARNs of any resources that failed to be added to the group by this operation.

  • pending :: Maybe [PendingResource]

    A list of ARNs of any resources that are still in the process of being added to the group by this operation. These pending additions continue asynchronously. You can check the status of pending additions by using the ListGroupResources operation, and checking the Resources array in the response and the Status field of each object in that array.

  • succeeded :: Maybe (NonEmpty Text)

    A list of ARNs of resources that were successfully added to the group by this operation.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GroupResourcesResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Associated Types

type Rep GroupResourcesResponse :: Type -> Type #

Read GroupResourcesResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Show GroupResourcesResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

NFData GroupResourcesResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Methods

rnf :: GroupResourcesResponse -> () #

Eq GroupResourcesResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

type Rep GroupResourcesResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

type Rep GroupResourcesResponse = D1 ('MetaData "GroupResourcesResponse" "Amazonka.ResourceGroups.GroupResources" "amazonka-resourcegroups-2.0-B1PbpVYkdAmDCiu1dJFqfU" 'False) (C1 ('MetaCons "GroupResourcesResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "failed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FailedResource])) :*: S1 ('MetaSel ('Just "pending") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PendingResource]))) :*: (S1 ('MetaSel ('Just "succeeded") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGroupResourcesResponse Source #

Create a value of GroupResourcesResponse 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:failed:GroupResourcesResponse', groupResourcesResponse_failed - A list of ARNs of any resources that failed to be added to the group by this operation.

$sel:pending:GroupResourcesResponse', groupResourcesResponse_pending - A list of ARNs of any resources that are still in the process of being added to the group by this operation. These pending additions continue asynchronously. You can check the status of pending additions by using the ListGroupResources operation, and checking the Resources array in the response and the Status field of each object in that array.

$sel:succeeded:GroupResourcesResponse', groupResourcesResponse_succeeded - A list of ARNs of resources that were successfully added to the group by this operation.

$sel:httpStatus:GroupResourcesResponse', groupResourcesResponse_httpStatus - The response's http status code.

Response Lenses

groupResourcesResponse_failed :: Lens' GroupResourcesResponse (Maybe [FailedResource]) Source #

A list of ARNs of any resources that failed to be added to the group by this operation.

groupResourcesResponse_pending :: Lens' GroupResourcesResponse (Maybe [PendingResource]) Source #

A list of ARNs of any resources that are still in the process of being added to the group by this operation. These pending additions continue asynchronously. You can check the status of pending additions by using the ListGroupResources operation, and checking the Resources array in the response and the Status field of each object in that array.

groupResourcesResponse_succeeded :: Lens' GroupResourcesResponse (Maybe (NonEmpty Text)) Source #

A list of ARNs of resources that were successfully added to the group by this operation.