associateToConfiguration method
Links a resource (for example, a custom action) to a channel configuration.
May throw InternalServiceError.
May throw InvalidRequestException.
May throw UnauthorizedException.
Parameter chatConfiguration :
The channel configuration to associate with the resource.
Parameter resource :
The resource Amazon Resource Name (ARN) to link.
Implementation
Future<void> associateToConfiguration({
required String chatConfiguration,
required String resource,
}) async {
final $payload = <String, dynamic>{
'ChatConfiguration': chatConfiguration,
'Resource': resource,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/associate-to-configuration',
exceptionFnMap: _exceptionFns,
);
}