async def update_report_definition(
self,
report_id: "capo_applicationcostprofiler.types.report_id.ReportId",
report_description: "capo_applicationcostprofiler.types.report_description.ReportDescription",
report_frequency: "capo_applicationcostprofiler.types.report_frequency.ReportFrequency",
format: "capo_applicationcostprofiler.types.format.Format",
destination_s3_location: "capo_applicationcostprofiler.types.s3_location.S3Location",
*,
config_overrides: Optional[AsyncApplicationCostProfilerClientConfig] = None,
) -> "capo_applicationcostprofiler.types.update_report_definition_result.UpdateReportDefinitionResult":
"""<p>Updates existing report in AWS Application Cost Profiler.</p>
Args:
report_id: <p>Required. ID of the report to update.</p>
report_description: <p>Required. Description of the report.</p>
report_frequency: <p>Required. The cadence to generate the report.</p>
format: <p>Required. The format to use for the generated report.</p>
destination_s3_location: <p>Required. Amazon Simple Storage Service (Amazon S3) location where Application Cost Profiler uploads the report.</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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_applicationcostprofiler.types.update_report_definition_request.UpdateReportDefinitionRequest]",
) -> AsyncOperationResponse[
"capo_applicationcostprofiler.types.update_report_definition_result.UpdateReportDefinitionResult"
]:
import capo_applicationcostprofiler._operations.aws_application_cost_profiler.update_report_definition
(
output,
http_response,
) = await capo_applicationcostprofiler._operations.aws_application_cost_profiler.update_report_definition.async_update_report_definition(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UpdateReportDefinition")
)
input_: capo_applicationcostprofiler.types.update_report_definition_request.UpdateReportDefinitionRequest = {
"report_id": report_id,
"report_description": report_description,
"report_frequency": report_frequency,
"format": format,
"destination_s3_location": destination_s3_location,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output