updateReportDefinition method
Updates existing report in AWS Application Cost Profiler.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter destinationS3Location :
Required. Amazon Simple Storage Service (Amazon S3) location where
Application Cost Profiler uploads the report.
Parameter format :
Required. The format to use for the generated report.
Parameter reportDescription :
Required. Description of the report.
Parameter reportFrequency :
Required. The cadence to generate the report.
Parameter reportId :
Required. ID of the report to update.
Implementation
Future<UpdateReportDefinitionResult> updateReportDefinition({
required S3Location destinationS3Location,
required Format format,
required String reportDescription,
required ReportFrequency reportFrequency,
required String reportId,
}) async {
final $payload = <String, dynamic>{
'destinationS3Location': destinationS3Location,
'format': format.value,
'reportDescription': reportDescription,
'reportFrequency': reportFrequency.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/reportDefinition/${Uri.encodeComponent(reportId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateReportDefinitionResult.fromJson(response);
}