getFederationToken method

Future<GetFederationTokenResponse> getFederationToken({
  1. required String instanceId,
})

Retrieves a token for federation.

May throw InvalidRequestException. May throw InvalidParameterException. May throw ResourceNotFoundException. May throw UserNotFoundException. May throw InternalServiceException. May throw DuplicateResourceException.

Parameter instanceId : The identifier of the Amazon Connect instance.

Implementation

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