createEphemeris method
Create an ephemeris with your specified EphemerisData.
May throw DependencyException.
May throw InvalidParameterException.
May throw ResourceNotFoundException.
Parameter name :
A name that you can use to identify the ephemeris.
Parameter enabled :
Set to true to enable the ephemeris after validation. Set to
false to keep it disabled.
Parameter ephemeris :
Ephemeris data.
Parameter expirationTime :
An overall expiration time for the ephemeris in UTC, after which it will
become EXPIRED.
Parameter kmsKeyArn :
The ARN of the KMS key to use for encrypting 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.
Parameter satelliteId :
The satellite ID that associates this ephemeris with a satellite in AWS
Ground Station.
Parameter tags :
Tags assigned to an ephemeris.
Implementation
Future<EphemerisIdResponse> createEphemeris({
required String name,
bool? enabled,
EphemerisData? ephemeris,
DateTime? expirationTime,
String? kmsKeyArn,
int? priority,
String? satelliteId,
Map<String, String>? tags,
}) async {
_s.validateNumRange(
'priority',
priority,
1,
99999,
);
final $payload = <String, dynamic>{
'name': name,
if (enabled != null) 'enabled': enabled,
if (ephemeris != null) 'ephemeris': ephemeris,
if (expirationTime != null)
'expirationTime': unixTimestampToJson(expirationTime),
if (kmsKeyArn != null) 'kmsKeyArn': kmsKeyArn,
if (priority != null) 'priority': priority,
if (satelliteId != null) 'satelliteId': satelliteId,
if (tags != null) 'tags': tags,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/ephemeris',
exceptionFnMap: _exceptionFns,
);
return EphemerisIdResponse.fromJson(response);
}