Retrieves the definition of a report already configured in AWS Application Cost Profiler.
Parameters:
-
report_id
(ReportId)
–
ID of the report to retrieve.
Raises:
Source code in docs_src/capo_applicationcostprofiler/_services/application_cost_profiler.py
| def get_report_definition(
self,
report_id: "capo_applicationcostprofiler.types.report_id.ReportId",
*,
config_overrides: Optional[ApplicationCostProfilerClientConfig] = None,
) -> "capo_applicationcostprofiler.types.get_report_definition_result.GetReportDefinitionResult":
"""<p>Retrieves the definition of a report already configured in AWS Application Cost Profiler.</p>
Args:
report_id: <p>ID of the report to retrieve.</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.get_report_definition_request.GetReportDefinitionRequest]",
) -> OperationResponse[
"capo_applicationcostprofiler.types.get_report_definition_result.GetReportDefinitionResult"
]:
import capo_applicationcostprofiler._operations.aws_application_cost_profiler.get_report_definition
output, http_response = (
capo_applicationcostprofiler._operations.aws_application_cost_profiler.get_report_definition.get_report_definition(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetReportDefinition")
)
input_: capo_applicationcostprofiler.types.get_report_definition_request.GetReportDefinitionRequest = {
"report_id": report_id
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|