getUsagePlan method
Gets a usage plan of a given plan identifier.
May throw BadRequestException.
May throw NotFoundException.
May throw TooManyRequestsException.
May throw UnauthorizedException.
Parameter usagePlanId :
The identifier of the UsagePlan resource to be retrieved.
Implementation
Future<UsagePlan> getUsagePlan({
required String usagePlanId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/usageplans/${Uri.encodeComponent(usagePlanId)}',
exceptionFnMap: _exceptionFns,
);
return UsagePlan.fromJson(response);
}