describeRoutingProfile method

Future<DescribeRoutingProfileResponse> describeRoutingProfile({
  1. required String instanceId,
  2. required String routingProfileId,
})

Describes the specified routing profile.

May throw InvalidRequestException. May throw InvalidParameterException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalServiceException.

Parameter instanceId : The identifier of the Amazon Connect instance.

Parameter routingProfileId : The identifier of the routing profile.

Implementation

Future<DescribeRoutingProfileResponse> describeRoutingProfile({
  required String instanceId,
  required String routingProfileId,
}) async {
  ArgumentError.checkNotNull(instanceId, 'instanceId');
  _s.validateStringLength(
    'instanceId',
    instanceId,
    1,
    100,
    isRequired: true,
  );
  ArgumentError.checkNotNull(routingProfileId, 'routingProfileId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/routing-profiles/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(routingProfileId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeRoutingProfileResponse.fromJson(response);
}