modifyReportDefinition method
Future<void>
modifyReportDefinition({
- required ReportDefinition reportDefinition,
- required String reportName,
Allows you to programatically update your report preferences.
May throw InternalErrorException. May throw ValidationException.
Implementation
Future<void> modifyReportDefinition({
required ReportDefinition reportDefinition,
required String reportName,
}) async {
ArgumentError.checkNotNull(reportDefinition, 'reportDefinition');
ArgumentError.checkNotNull(reportName, 'reportName');
_s.validateStringLength(
'reportName',
reportName,
0,
256,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSOrigamiServiceGatewayService.ModifyReportDefinition'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ReportDefinition': reportDefinition,
'ReportName': reportName,
},
);
}