reserveContact method
Reserves a contact using specified parameters.
May throw DependencyException.
May throw InvalidParameterException.
May throw ResourceLimitExceededException.
May throw ResourceNotFoundException.
Parameter endTime :
End time of a contact in UTC.
Parameter groundStation :
Name of a ground station.
Parameter missionProfileArn :
ARN of a mission profile.
Parameter startTime :
Start time of a contact in UTC.
Parameter satelliteArn :
ARN of a satellite
Parameter tags :
Tags assigned to a contact.
Parameter trackingOverrides :
Tracking configuration overrides for the contact.
Implementation
Future<ContactIdResponse> reserveContact({
required DateTime endTime,
required String groundStation,
required String missionProfileArn,
required DateTime startTime,
String? satelliteArn,
Map<String, String>? tags,
TrackingOverrides? trackingOverrides,
}) async {
final $payload = <String, dynamic>{
'endTime': unixTimestampToJson(endTime),
'groundStation': groundStation,
'missionProfileArn': missionProfileArn,
'startTime': unixTimestampToJson(startTime),
if (satelliteArn != null) 'satelliteArn': satelliteArn,
if (tags != null) 'tags': tags,
if (trackingOverrides != null) 'trackingOverrides': trackingOverrides,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/contact',
exceptionFnMap: _exceptionFns,
);
return ContactIdResponse.fromJson(response);
}