getContactAttributes method

Future<GetContactAttributesResponse> getContactAttributes({
  1. required String initialContactId,
  2. required String instanceId,
})

Retrieves the contact attributes for the specified contact.

May throw InvalidRequestException. May throw ResourceNotFoundException. May throw InternalServiceException.

Parameter initialContactId : The identifier of the initial contact.

Parameter instanceId : The identifier of the Amazon Connect instance.

Implementation

Future<GetContactAttributesResponse> getContactAttributes({
  required String initialContactId,
  required String instanceId,
}) async {
  ArgumentError.checkNotNull(initialContactId, 'initialContactId');
  _s.validateStringLength(
    'initialContactId',
    initialContactId,
    1,
    256,
    isRequired: true,
  );
  ArgumentError.checkNotNull(instanceId, 'instanceId');
  _s.validateStringLength(
    'instanceId',
    instanceId,
    1,
    100,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/contact/attributes/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(initialContactId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetContactAttributesResponse.fromJson(response);
}