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

Description

Removes the specified resources from the specified group.

Minimum permissions

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

  • resource-groups:UngroupResources
Synopsis

Creating a Request

data UngroupResources Source #

See: newUngroupResources smart constructor.

Constructors

UngroupResources' 

Fields

  • group' :: Text

    The name or the ARN of the resource group from which to remove the resources.

  • resourceArns :: NonEmpty Text

    The ARNs of the resources to be removed from the group.

Instances

Instances details
Eq UngroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.UngroupResources

Read UngroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.UngroupResources

Show UngroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.UngroupResources

Generic UngroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.UngroupResources

Associated Types

type Rep UngroupResources :: Type -> Type #

NFData UngroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.UngroupResources

Methods

rnf :: UngroupResources -> () #

Hashable UngroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.UngroupResources

ToJSON UngroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.UngroupResources

AWSRequest UngroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.UngroupResources

Associated Types

type AWSResponse UngroupResources #

ToHeaders UngroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.UngroupResources

ToPath UngroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.UngroupResources

ToQuery UngroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.UngroupResources

type Rep UngroupResources Source # 
Instance details

Defined in Amazonka.ResourceGroups.UngroupResources

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

Defined in Amazonka.ResourceGroups.UngroupResources

newUngroupResources Source #

Create a value of UngroupResources 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':UngroupResources', ungroupResources_group - The name or the ARN of the resource group from which to remove the resources.

$sel:resourceArns:UngroupResources', ungroupResources_resourceArns - The ARNs of the resources to be removed from the group.

Request Lenses

ungroupResources_group :: Lens' UngroupResources Text Source #

The name or the ARN of the resource group from which to remove the resources.

ungroupResources_resourceArns :: Lens' UngroupResources (NonEmpty Text) Source #

The ARNs of the resources to be removed from the group.

Destructuring the Response

data UngroupResourcesResponse Source #

See: newUngroupResourcesResponse smart constructor.

Constructors

UngroupResourcesResponse' 

Fields

  • pending :: Maybe [PendingResource]

    A list of any resources that are still in the process of being removed from the group by this operation. These pending removals continue asynchronously. You can check the status of pending removals by using the ListGroupResources operation. After the resource is successfully removed, it no longer appears in the response.

  • succeeded :: Maybe (NonEmpty Text)

    A list of resources that were successfully removed from the group by this operation.

  • failed :: Maybe [FailedResource]

    A list of any resources that failed to be removed from the group by this operation.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq UngroupResourcesResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.UngroupResources

Read UngroupResourcesResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.UngroupResources

Show UngroupResourcesResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.UngroupResources

Generic UngroupResourcesResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.UngroupResources

Associated Types

type Rep UngroupResourcesResponse :: Type -> Type #

NFData UngroupResourcesResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.UngroupResources

type Rep UngroupResourcesResponse Source # 
Instance details

Defined in Amazonka.ResourceGroups.UngroupResources

type Rep UngroupResourcesResponse = D1 ('MetaData "UngroupResourcesResponse" "Amazonka.ResourceGroups.UngroupResources" "libZSservicesZSamazonka-resourcegroupsZSamazonka-resourcegroups" 'False) (C1 ('MetaCons "UngroupResourcesResponse'" '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))))

newUngroupResourcesResponse Source #

Create a value of UngroupResourcesResponse 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:UngroupResourcesResponse', ungroupResourcesResponse_pending - A list of any resources that are still in the process of being removed from the group by this operation. These pending removals continue asynchronously. You can check the status of pending removals by using the ListGroupResources operation. After the resource is successfully removed, it no longer appears in the response.

$sel:succeeded:UngroupResourcesResponse', ungroupResourcesResponse_succeeded - A list of resources that were successfully removed from the group by this operation.

$sel:failed:UngroupResourcesResponse', ungroupResourcesResponse_failed - A list of any resources that failed to be removed from the group by this operation.

$sel:httpStatus:UngroupResourcesResponse', ungroupResourcesResponse_httpStatus - The response's http status code.

Response Lenses

ungroupResourcesResponse_pending :: Lens' UngroupResourcesResponse (Maybe [PendingResource]) Source #

A list of any resources that are still in the process of being removed from the group by this operation. These pending removals continue asynchronously. You can check the status of pending removals by using the ListGroupResources operation. After the resource is successfully removed, it no longer appears in the response.

ungroupResourcesResponse_succeeded :: Lens' UngroupResourcesResponse (Maybe (NonEmpty Text)) Source #

A list of resources that were successfully removed from the group by this operation.

ungroupResourcesResponse_failed :: Lens' UngroupResourcesResponse (Maybe [FailedResource]) Source #

A list of any resources that failed to be removed from the group by this operation.