Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Removes the specified resources from the specified group.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:UngroupResources
Synopsis
- data UngroupResources = UngroupResources' {
- group' :: Text
- resourceArns :: NonEmpty Text
- newUngroupResources :: Text -> NonEmpty Text -> UngroupResources
- ungroupResources_group :: Lens' UngroupResources Text
- ungroupResources_resourceArns :: Lens' UngroupResources (NonEmpty Text)
- data UngroupResourcesResponse = UngroupResourcesResponse' {
- pending :: Maybe [PendingResource]
- succeeded :: Maybe (NonEmpty Text)
- failed :: Maybe [FailedResource]
- httpStatus :: Int
- newUngroupResourcesResponse :: Int -> UngroupResourcesResponse
- ungroupResourcesResponse_pending :: Lens' UngroupResourcesResponse (Maybe [PendingResource])
- ungroupResourcesResponse_succeeded :: Lens' UngroupResourcesResponse (Maybe (NonEmpty Text))
- ungroupResourcesResponse_failed :: Lens' UngroupResourcesResponse (Maybe [FailedResource])
- ungroupResourcesResponse_httpStatus :: Lens' UngroupResourcesResponse Int
Creating a Request
data UngroupResources Source #
See: newUngroupResources
smart constructor.
UngroupResources' | |
|
Instances
:: Text | |
-> NonEmpty Text | |
-> UngroupResources |
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.
UngroupResourcesResponse' | |
|
Instances
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.
ungroupResourcesResponse_httpStatus :: Lens' UngroupResourcesResponse Int Source #
The response's http status code.