updateAppInstanceUser method
Updates the details for an AppInstanceUser
. You can update
names and metadata.
May throw BadRequestException. May throw ConflictException. May throw ForbiddenException. May throw ThrottledClientException. May throw UnauthorizedClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.
Parameter appInstanceUserArn
:
The ARN of the app instance user.
Parameter name
:
The name of the app instance user.
Parameter metadata
:
The metadata of the app instance user.
Implementation
Future<UpdateAppInstanceUserResponse> updateAppInstanceUser({
required String appInstanceUserArn,
required String name,
String? metadata,
}) async {
ArgumentError.checkNotNull(appInstanceUserArn, 'appInstanceUserArn');
_s.validateStringLength(
'appInstanceUserArn',
appInstanceUserArn,
5,
1600,
isRequired: true,
);
ArgumentError.checkNotNull(name, 'name');
_s.validateStringLength(
'name',
name,
1,
100,
isRequired: true,
);
_s.validateStringLength(
'metadata',
metadata,
0,
1024,
);
final $payload = <String, dynamic>{
'Name': name,
if (metadata != null) 'Metadata': metadata,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/app-instance-users/${Uri.encodeComponent(appInstanceUserArn)}',
exceptionFnMap: _exceptionFns,
);
return UpdateAppInstanceUserResponse.fromJson(response);
}