Deletes a specified scheduled report. This is an irreversible operation.
Parameters:
Raises:
-
AccessDeniedException
–
You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.
-
InternalServerException
–
An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.
-
ResourceNotFoundException
–
The specified resource (dashboard, policy, or widget) was not found. Verify the ARN and try again.
-
ThrottlingException
–
The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.
-
ValidationException
–
The input parameters do not satisfy the requirements. Check the error message for specific validation details.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_bcm_dashboards/_services/bcm_dashboards.py
| def delete_scheduled_report(
self,
arn: "capo_bcm_dashboards.types.scheduled_report_arn.ScheduledReportArn",
*,
config_overrides: Optional[BCMDashboardsClientConfig] = None,
) -> "capo_bcm_dashboards.types.delete_scheduled_report_response.DeleteScheduledReportResponse":
"""<p>Deletes a specified scheduled report. This is an irreversible operation.</p>
Args:
arn: <p>The ARN of the scheduled report to delete.</p>
Raises:
capo_bcm_dashboards.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.</p>
capo_bcm_dashboards.errors.internal_server_exception.InternalServerException: <p>An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.</p>
capo_bcm_dashboards.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource (dashboard, policy, or widget) was not found. Verify the ARN and try again.</p>
capo_bcm_dashboards.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.</p>
capo_bcm_dashboards.errors.validation_exception.ValidationException: <p>The input parameters do not satisfy the requirements. Check the error message for specific validation details.</p>
capo_bcm_dashboards.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_bcm_dashboards.types.delete_scheduled_report_request.DeleteScheduledReportRequest]",
) -> OperationResponse[
"capo_bcm_dashboards.types.delete_scheduled_report_response.DeleteScheduledReportResponse"
]:
import capo_bcm_dashboards._operations.awsbcm_dashboards_service.delete_scheduled_report
output, http_response = (
capo_bcm_dashboards._operations.awsbcm_dashboards_service.delete_scheduled_report.delete_scheduled_report(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteScheduledReport")
)
input_: capo_bcm_dashboards.types.delete_scheduled_report_request.DeleteScheduledReportRequest = {
"arn": arn
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|