putReportDefinition method

Future<void> putReportDefinition({
  1. required ReportDefinition reportDefinition,
})

Creates a new report using the description that you provide.

May throw DuplicateReportNameException. May throw ReportLimitReachedException. May throw InternalErrorException. May throw ValidationException.

Parameter reportDefinition : Represents the output of the PutReportDefinition operation. The content consists of the detailed metadata and data file information.

Implementation

Future<void> putReportDefinition({
  required ReportDefinition reportDefinition,
}) async {
  ArgumentError.checkNotNull(reportDefinition, 'reportDefinition');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSOrigamiServiceGatewayService.PutReportDefinition'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ReportDefinition': reportDefinition,
    },
  );
}