listOperations method

Future<ListOperationsResponse> listOperations({
  1. String? marker,
  2. int? maxItems,
  3. DateTime? submittedSince,
})

Returns information about all of the operations that return an operation ID and that have ever been performed on domains that were registered by the current account.

May throw InvalidInput.

Parameter marker : For an initial request for a list of operations, omit this element. If the number of operations that are not yet complete is greater than the value that you specified for MaxItems, you can use Marker to return additional operations. Get the value of NextPageMarker from the previous response, and submit another request that includes the value of NextPageMarker in the Marker element.

Parameter maxItems : Number of domains to be returned.

Default: 20

Parameter submittedSince : An optional parameter that lets you get information about all the operations that you submitted after a specified date and time. Specify the date and time in Unix time format and Coordinated Universal time (UTC).

Implementation

Future<ListOperationsResponse> listOperations({
  String? marker,
  int? maxItems,
  DateTime? submittedSince,
}) async {
  _s.validateStringLength(
    'marker',
    marker,
    0,
    4096,
  );
  _s.validateNumRange(
    'maxItems',
    maxItems,
    0,
    100,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'Route53Domains_v20140515.ListOperations'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (marker != null) 'Marker': marker,
      if (maxItems != null) 'MaxItems': maxItems,
      if (submittedSince != null)
        'SubmittedSince': unixTimestampToJson(submittedSince),
    },
  );

  return ListOperationsResponse.fromJson(jsonResponse.body);
}