disassociateLexBot method
This API is in preview release for Amazon Connect and is subject to change.
Revokes authorization from the specified instance to access the specified Amazon Lex bot.
May throw ResourceNotFoundException. May throw InternalServiceException. May throw InvalidRequestException. May throw InvalidParameterException. May throw ThrottlingException.
Parameter botName
:
The name of the Amazon Lex bot. Maximum character limit of 50.
Parameter instanceId
:
The identifier of the Amazon Connect instance.
Parameter lexRegion
:
The Region in which the Amazon Lex bot has been created.
Implementation
Future<void> disassociateLexBot({
required String botName,
required String instanceId,
required String lexRegion,
}) async {
ArgumentError.checkNotNull(botName, 'botName');
_s.validateStringLength(
'botName',
botName,
0,
50,
isRequired: true,
);
ArgumentError.checkNotNull(instanceId, 'instanceId');
_s.validateStringLength(
'instanceId',
instanceId,
1,
100,
isRequired: true,
);
ArgumentError.checkNotNull(lexRegion, 'lexRegion');
_s.validateStringLength(
'lexRegion',
lexRegion,
0,
60,
isRequired: true,
);
final $query = <String, List<String>>{
'botName': [botName],
'lexRegion': [lexRegion],
};
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/instance/${Uri.encodeComponent(instanceId)}/lex-bot',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
}