deleteGatewayRule method
Deletes a gateway rule.
May throw AccessDeniedException.
May throw ConflictException.
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 delete.
Implementation
Future<DeleteGatewayRuleResponse> deleteGatewayRule({
required String gatewayIdentifier,
required String ruleId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/gateways/${Uri.encodeComponent(gatewayIdentifier)}/rules/${Uri.encodeComponent(ruleId)}',
exceptionFnMap: _exceptionFns,
);
return DeleteGatewayRuleResponse.fromJson(response);
}