updateEphemeris method

Future<EphemerisIdResponse> updateEphemeris({
  1. required bool enabled,
  2. required String ephemerisId,
  3. String? name,
  4. int? priority,
})

Update an existing ephemeris.

May throw DependencyException. May throw InvalidParameterException. May throw ResourceNotFoundException.

Parameter enabled : Enable or disable the ephemeris. Changing this value doesn't require re-validation.

Parameter ephemerisId : The AWS Ground Station ephemeris ID.

Parameter name : A name that you can use to identify the ephemeris.

Parameter priority : A priority score that determines which ephemeris to use when multiple ephemerides overlap.

Higher numbers take precedence. The default is 1. Must be 1 or greater.

Implementation

Future<EphemerisIdResponse> updateEphemeris({
  required bool enabled,
  required String ephemerisId,
  String? name,
  int? priority,
}) async {
  _s.validateNumRange(
    'priority',
    priority,
    0,
    99999,
  );
  final $payload = <String, dynamic>{
    'enabled': enabled,
    if (name != null) 'name': name,
    if (priority != null) 'priority': priority,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/ephemeris/${Uri.encodeComponent(ephemerisId)}',
    exceptionFnMap: _exceptionFns,
  );
  return EphemerisIdResponse.fromJson(response);
}