describeRule method

Future<DescribeRuleResponse> describeRule({
  1. required String instanceId,
  2. required String ruleId,
})

Describes a rule for the specified Connect Customer instance.

May throw AccessDeniedException. May throw InternalServiceException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter instanceId : The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

Parameter ruleId : A unique identifier for the rule.

Implementation

Future<DescribeRuleResponse> describeRule({
  required String instanceId,
  required String ruleId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/rules/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(ruleId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeRuleResponse.fromJson(response);
}