updateAppInstance method
Updates AppInstance metadata.
May throw BadRequestException.
May throw ConflictException.
May throw ForbiddenException.
May throw ServiceFailureException.
May throw ServiceUnavailableException.
May throw ThrottledClientException.
May throw UnauthorizedClientException.
Parameter appInstanceArn :
The ARN of the AppInstance.
Parameter metadata :
The metadata that you want to change.
Parameter name :
The name that you want to change.
Implementation
Future<UpdateAppInstanceResponse> updateAppInstance({
required String appInstanceArn,
required String metadata,
required String name,
}) async {
final $payload = <String, dynamic>{
'Metadata': metadata,
'Name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/app-instances/${Uri.encodeComponent(appInstanceArn)}',
exceptionFnMap: _exceptionFns,
);
return UpdateAppInstanceResponse.fromJson(response);
}