| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ResourceGroups.DeleteGroup
Description
Deletes the specified resource group. Deleting a resource group does not delete any resources that are members of the group; it only deletes the group structure.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:DeleteGroup
Synopsis
- data DeleteGroup = DeleteGroup' {}
- newDeleteGroup :: DeleteGroup
- deleteGroup_group :: Lens' DeleteGroup (Maybe Text)
- deleteGroup_groupName :: Lens' DeleteGroup (Maybe Text)
- data DeleteGroupResponse = DeleteGroupResponse' {
- group' :: Maybe Group
- httpStatus :: Int
- newDeleteGroupResponse :: Int -> DeleteGroupResponse
- deleteGroupResponse_group :: Lens' DeleteGroupResponse (Maybe Group)
- deleteGroupResponse_httpStatus :: Lens' DeleteGroupResponse Int
Creating a Request
data DeleteGroup Source #
See: newDeleteGroup smart constructor.
Constructors
| DeleteGroup' | |
Instances
newDeleteGroup :: DeleteGroup Source #
Create a value of DeleteGroup 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:
DeleteGroup, deleteGroup_group - The name or the ARN of the resource group to delete.
DeleteGroup, deleteGroup_groupName - Deprecated - don't use this parameter. Use Group instead.
Request Lenses
deleteGroup_group :: Lens' DeleteGroup (Maybe Text) Source #
The name or the ARN of the resource group to delete.
deleteGroup_groupName :: Lens' DeleteGroup (Maybe Text) Source #
Deprecated - don't use this parameter. Use Group instead.
Destructuring the Response
data DeleteGroupResponse Source #
See: newDeleteGroupResponse smart constructor.
Constructors
| DeleteGroupResponse' | |
Fields
| |
Instances
newDeleteGroupResponse Source #
Arguments
| :: Int | |
| -> DeleteGroupResponse |
Create a value of DeleteGroupResponse 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:
DeleteGroup, deleteGroupResponse_group - A full description of the deleted resource group.
$sel:httpStatus:DeleteGroupResponse', deleteGroupResponse_httpStatus - The response's http status code.
Response Lenses
deleteGroupResponse_group :: Lens' DeleteGroupResponse (Maybe Group) Source #
A full description of the deleted resource group.
deleteGroupResponse_httpStatus :: Lens' DeleteGroupResponse Int Source #
The response's http status code.