getOperationDetail method

Future<GetOperationDetailResponse> getOperationDetail({
  1. required String operationId,
})

This operation returns the current status of an operation that is not completed.

May throw InvalidInput.

Parameter operationId : The identifier for the operation for which you want to get the status. Route 53 returned the identifier in the response to the original request.

Implementation

Future<GetOperationDetailResponse> getOperationDetail({
  required String operationId,
}) async {
  ArgumentError.checkNotNull(operationId, 'operationId');
  _s.validateStringLength(
    'operationId',
    operationId,
    0,
    255,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'Route53Domains_v20140515.GetOperationDetail'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'OperationId': operationId,
    },
  );

  return GetOperationDetailResponse.fromJson(jsonResponse.body);
}