getMethod method
Describe an existing Method resource.
May throw NotFoundException.
May throw TooManyRequestsException.
May throw UnauthorizedException.
Parameter httpMethod :
Specifies the method request's HTTP method type.
Parameter resourceId :
The Resource identifier for the Method resource.
Parameter restApiId :
The string identifier of the associated RestApi.
Implementation
Future<Method> getMethod({
required String httpMethod,
required String resourceId,
required String restApiId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/restapis/${Uri.encodeComponent(restApiId)}/resources/${Uri.encodeComponent(resourceId)}/methods/${Uri.encodeComponent(httpMethod)}',
exceptionFnMap: _exceptionFns,
);
return Method.fromJson(response);
}