Skip to content

delete_report_definition

delete_report_definition(
    report_id: ReportId,
    *,
    config_overrides: Optional[ApplicationCostProfilerClientConfig] = None,
) -> DeleteReportDefinitionResult

Deletes the specified report definition in AWS Application Cost Profiler. This stops the report from being generated.

Parameters:

  • report_id (ReportId) –

    Required. ID of the report to delete.

Raises:

Source code in docs_src/capo_applicationcostprofiler/_services/application_cost_profiler.py
def delete_report_definition(
    self,
    report_id: "capo_applicationcostprofiler.types.report_id.ReportId",
    *,
    config_overrides: Optional[ApplicationCostProfilerClientConfig] = None,
) -> "capo_applicationcostprofiler.types.delete_report_definition_result.DeleteReportDefinitionResult":
    """<p>Deletes the specified report definition in AWS Application Cost Profiler. This stops the report from being generated.</p>

    Args:
        report_id: <p>Required. ID of the report to delete.</p>

    Raises:
        capo_applicationcostprofiler.errors.access_denied_exception.AccessDeniedException: <p>You do not have permission to perform this action.</p>
        capo_applicationcostprofiler.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred. Retry your request.</p>
        capo_applicationcostprofiler.errors.throttling_exception.ThrottlingException: <p>The calls to AWS Application Cost Profiler API are throttled. The request was denied.</p>
        capo_applicationcostprofiler.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints for the API.</p>
        capo_applicationcostprofiler.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_applicationcostprofiler.types.delete_report_definition_request.DeleteReportDefinitionRequest]",
    ) -> OperationResponse[
        "capo_applicationcostprofiler.types.delete_report_definition_result.DeleteReportDefinitionResult"
    ]:
        import capo_applicationcostprofiler._operations.aws_application_cost_profiler.delete_report_definition

        output, http_response = (
            capo_applicationcostprofiler._operations.aws_application_cost_profiler.delete_report_definition.delete_report_definition(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteReportDefinition")
    )
    input_: capo_applicationcostprofiler.types.delete_report_definition_request.DeleteReportDefinitionRequest = {
        "report_id": report_id
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output