associateLexBot method
This API is in preview release for Amazon Connect and is subject to change.
Allows the specified Amazon Connect instance to access the specified Amazon Lex bot.
May throw ResourceNotFoundException. May throw ResourceConflictException. May throw InternalServiceException. May throw InvalidRequestException. May throw InvalidParameterException. May throw ServiceQuotaExceededException. May throw ThrottlingException.
Parameter instanceId
:
The identifier of the Amazon Connect instance.
Parameter lexBot
:
The Amazon Lex box to associate with the instance.
Implementation
Future<void> associateLexBot({
required String instanceId,
required LexBot lexBot,
}) async {
ArgumentError.checkNotNull(instanceId, 'instanceId');
_s.validateStringLength(
'instanceId',
instanceId,
1,
100,
isRequired: true,
);
ArgumentError.checkNotNull(lexBot, 'lexBot');
final $payload = <String, dynamic>{
'LexBot': lexBot,
};
await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/instance/${Uri.encodeComponent(instanceId)}/lex-bot',
exceptionFnMap: _exceptionFns,
);
}