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.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
Eq GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Read GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Show GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Generic GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Associated Types

type Rep GroupResources :: Type -> Type #

NFData GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Methods

rnf :: GroupResources -> () #

Hashable GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

ToJSON GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

AWSRequest GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Associated Types

type AWSResponse 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

type Rep GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

type Rep GroupResources = D1 ('MetaData "GroupResources" "Amazonka.ResourceGroups.GroupResources" "libZSservicesZSamazonka-resourcegroupsZSamazonka-resourcegroups" '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))))
type AWSResponse GroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

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

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

  • failed :: Maybe [FailedResource]

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GroupResourcesResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Read GroupResourcesResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Show GroupResourcesResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Generic GroupResourcesResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Associated Types

type Rep GroupResourcesResponse :: Type -> Type #

NFData GroupResourcesResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

Methods

rnf :: GroupResourcesResponse -> () #

type Rep GroupResourcesResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.GroupResources

type Rep GroupResourcesResponse = D1 ('MetaData "GroupResourcesResponse" "Amazonka.ResourceGroups.GroupResources" "libZSservicesZSamazonka-resourcegroupsZSamazonka-resourcegroups" 'False) (C1 ('MetaCons "GroupResourcesResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "pending") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PendingResource])) :*: S1 ('MetaSel ('Just "succeeded") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text)))) :*: (S1 ('MetaSel ('Just "failed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FailedResource])) :*: 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: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:failed:GroupResourcesResponse', groupResourcesResponse_failed - A list of ARNs of any resources that failed to be added to the group by this operation.

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

Response Lenses

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.

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.