describeFlywheel method

Future<DescribeFlywheelResponse> describeFlywheel({
  1. required String flywheelArn,
})

Provides configuration information about the flywheel. For more information about flywheels, see Flywheel overview in the Amazon Comprehend Developer Guide.

May throw InternalServerException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw TooManyRequestsException.

Parameter flywheelArn : The Amazon Resource Number (ARN) of the flywheel.

Implementation

Future<DescribeFlywheelResponse> describeFlywheel({
  required String flywheelArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'Comprehend_20171127.DescribeFlywheel'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'FlywheelArn': flywheelArn,
    },
  );

  return DescribeFlywheelResponse.fromJson(jsonResponse.body);
}