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 |
Adds the specified resources to the specified group.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:GroupResources
Synopsis
- data GroupResources = GroupResources' {
- group' :: Text
- resourceArns :: NonEmpty Text
- newGroupResources :: Text -> NonEmpty Text -> GroupResources
- groupResources_group :: Lens' GroupResources Text
- groupResources_resourceArns :: Lens' GroupResources (NonEmpty Text)
- data GroupResourcesResponse = GroupResourcesResponse' {
- pending :: Maybe [PendingResource]
- succeeded :: Maybe (NonEmpty Text)
- failed :: Maybe [FailedResource]
- httpStatus :: Int
- newGroupResourcesResponse :: Int -> GroupResourcesResponse
- groupResourcesResponse_pending :: Lens' GroupResourcesResponse (Maybe [PendingResource])
- groupResourcesResponse_succeeded :: Lens' GroupResourcesResponse (Maybe (NonEmpty Text))
- groupResourcesResponse_failed :: Lens' GroupResourcesResponse (Maybe [FailedResource])
- groupResourcesResponse_httpStatus :: Lens' GroupResourcesResponse Int
Creating a Request
data GroupResources Source #
See: newGroupResources
smart constructor.
GroupResources' | |
|
Instances
:: Text | |
-> NonEmpty Text | |
-> GroupResources |
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.
GroupResourcesResponse' | |
|
Instances
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.
groupResourcesResponse_httpStatus :: Lens' GroupResourcesResponse Int Source #
The response's http status code.