getGatewayRule method
Retrieves detailed information about a specific gateway rule.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter gatewayIdentifier :
The identifier of the gateway containing the rule.
Parameter ruleId :
The unique identifier of the rule to retrieve.
Implementation
Future<GetGatewayRuleResponse> getGatewayRule({
required String gatewayIdentifier,
required String ruleId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/gateways/${Uri.encodeComponent(gatewayIdentifier)}/rules/${Uri.encodeComponent(ruleId)}',
exceptionFnMap: _exceptionFns,
);
return GetGatewayRuleResponse.fromJson(response);
}