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 |
Deletes a report group. Before you delete a report group, you must delete its reports.
Synopsis
- data DeleteReportGroup = DeleteReportGroup' {
- deleteReports :: Maybe Bool
- arn :: Text
- newDeleteReportGroup :: Text -> DeleteReportGroup
- deleteReportGroup_deleteReports :: Lens' DeleteReportGroup (Maybe Bool)
- deleteReportGroup_arn :: Lens' DeleteReportGroup Text
- data DeleteReportGroupResponse = DeleteReportGroupResponse' {
- httpStatus :: Int
- newDeleteReportGroupResponse :: Int -> DeleteReportGroupResponse
- deleteReportGroupResponse_httpStatus :: Lens' DeleteReportGroupResponse Int
Creating a Request
data DeleteReportGroup Source #
See: newDeleteReportGroup
smart constructor.
DeleteReportGroup' | |
|
Instances
Create a value of DeleteReportGroup
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:deleteReports:DeleteReportGroup'
, deleteReportGroup_deleteReports
- If true
, deletes any reports that belong to a report group before
deleting the report group.
If false
, you must delete any reports in the report group. Use
ListReportsForReportGroup
to get the reports in a report group. Use
DeleteReport
to delete the reports. If you call DeleteReportGroup
for a report
group that contains one or more reports, an exception is thrown.
$sel:arn:DeleteReportGroup'
, deleteReportGroup_arn
- The ARN of the report group to delete.
Request Lenses
deleteReportGroup_deleteReports :: Lens' DeleteReportGroup (Maybe Bool) Source #
If true
, deletes any reports that belong to a report group before
deleting the report group.
If false
, you must delete any reports in the report group. Use
ListReportsForReportGroup
to get the reports in a report group. Use
DeleteReport
to delete the reports. If you call DeleteReportGroup
for a report
group that contains one or more reports, an exception is thrown.
deleteReportGroup_arn :: Lens' DeleteReportGroup Text Source #
The ARN of the report group to delete.
Destructuring the Response
data DeleteReportGroupResponse Source #
See: newDeleteReportGroupResponse
smart constructor.
DeleteReportGroupResponse' | |
|
Instances
newDeleteReportGroupResponse Source #
Create a value of DeleteReportGroupResponse
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:httpStatus:DeleteReportGroupResponse'
, deleteReportGroupResponse_httpStatus
- The response's http status code.
Response Lenses
deleteReportGroupResponse_httpStatus :: Lens' DeleteReportGroupResponse Int Source #
The response's http status code.