updateAppInstanceBot method
Updates the name and metadata of an AppInstanceBot.
May throw BadRequestException.
May throw ConflictException.
May throw ForbiddenException.
May throw ResourceLimitExceededException.
May throw ServiceFailureException.
May throw ServiceUnavailableException.
May throw ThrottledClientException.
May throw UnauthorizedClientException.
Parameter appInstanceBotArn :
The ARN of the AppInstanceBot.
Parameter metadata :
The metadata of the AppInstanceBot.
Parameter name :
The name of the AppInstanceBot.
Parameter configuration :
The configuration for the bot update.
Implementation
Future<UpdateAppInstanceBotResponse> updateAppInstanceBot({
required String appInstanceBotArn,
required String metadata,
required String name,
Configuration? configuration,
}) async {
final $payload = <String, dynamic>{
'Metadata': metadata,
'Name': name,
if (configuration != null) 'Configuration': configuration,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/app-instance-bots/${Uri.encodeComponent(appInstanceBotArn)}',
exceptionFnMap: _exceptionFns,
);
return UpdateAppInstanceBotResponse.fromJson(response);
}