aws_sdk_codebuild/client/delete_report_group.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`DeleteReportGroup`](crate::operation::delete_report_group::builders::DeleteReportGroupFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`arn(impl Into<String>)`](crate::operation::delete_report_group::builders::DeleteReportGroupFluentBuilder::arn) / [`set_arn(Option<String>)`](crate::operation::delete_report_group::builders::DeleteReportGroupFluentBuilder::set_arn):<br>required: **true**<br><p>The ARN of the report group to delete.</p><br>
7 /// - [`delete_reports(bool)`](crate::operation::delete_report_group::builders::DeleteReportGroupFluentBuilder::delete_reports) / [`set_delete_reports(Option<bool>)`](crate::operation::delete_report_group::builders::DeleteReportGroupFluentBuilder::set_delete_reports):<br>required: **false**<br><p>If <code>true</code>, deletes any reports that belong to a report group before deleting the report group.</p> <p>If <code>false</code>, you must delete any reports in the report group. Use <a href="https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ListReportsForReportGroup.html">ListReportsForReportGroup</a> to get the reports in a report group. Use <a href="https://docs.aws.amazon.com/codebuild/latest/APIReference/API_DeleteReport.html">DeleteReport</a> to delete the reports. If you call <code>DeleteReportGroup</code> for a report group that contains one or more reports, an exception is thrown.</p><br>
8 /// - On success, responds with [`DeleteReportGroupOutput`](crate::operation::delete_report_group::DeleteReportGroupOutput)
9 /// - On failure, responds with [`SdkError<DeleteReportGroupError>`](crate::operation::delete_report_group::DeleteReportGroupError)
10 pub fn delete_report_group(&self) -> crate::operation::delete_report_group::builders::DeleteReportGroupFluentBuilder {
11 crate::operation::delete_report_group::builders::DeleteReportGroupFluentBuilder::new(self.handle.clone())
12 }
13}