updateOutpost method
Updates an Outpost.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw NotFoundException.
May throw ValidationException.
Parameter outpostId :
The ID or ARN of the Outpost.
Parameter supportedHardwareType :
The type of hardware for this Outpost.
Implementation
Future<UpdateOutpostOutput> updateOutpost({
required String outpostId,
String? description,
String? name,
SupportedHardwareType? supportedHardwareType,
}) async {
final $payload = <String, dynamic>{
if (description != null) 'Description': description,
if (name != null) 'Name': name,
if (supportedHardwareType != null)
'SupportedHardwareType': supportedHardwareType.value,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/outposts/${Uri.encodeComponent(outpostId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateOutpostOutput.fromJson(response);
}