listFailuresForLicenseConfigurationOperations method

Future<ListFailuresForLicenseConfigurationOperationsResponse> listFailuresForLicenseConfigurationOperations({
  1. required String licenseConfigurationArn,
  2. int? maxResults,
  3. String? nextToken,
})

Lists the license configuration operations that failed.

May throw InvalidParameterValueException. May throw ServerInternalException. May throw AuthorizationException. May throw AccessDeniedException. May throw RateLimitExceededException.

Parameter licenseConfigurationArn : Amazon Resource Name of the license configuration.

Parameter maxResults : Maximum number of results to return in a single call.

Parameter nextToken : Token for the next set of results.

Implementation

Future<ListFailuresForLicenseConfigurationOperationsResponse>
    listFailuresForLicenseConfigurationOperations({
  required String licenseConfigurationArn,
  int? maxResults,
  String? nextToken,
}) async {
  ArgumentError.checkNotNull(
      licenseConfigurationArn, 'licenseConfigurationArn');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target':
        'AWSLicenseManager.ListFailuresForLicenseConfigurationOperations'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'LicenseConfigurationArn': licenseConfigurationArn,
      if (maxResults != null) 'MaxResults': maxResults,
      if (nextToken != null) 'NextToken': nextToken,
    },
  );

  return ListFailuresForLicenseConfigurationOperationsResponse.fromJson(
      jsonResponse.body);
}