updateOutpost method

Future<UpdateOutpostOutput> updateOutpost({
  1. required String outpostId,
  2. String? description,
  3. String? name,
  4. SupportedHardwareType? supportedHardwareType,
})

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);
}