Skip to main content

contacts

Creates, updates, deletes, gets or lists a contacts resource.

Overview

Namecontacts
TypeResource
Idaws.groundstation.contacts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
contact_idstringUUID of a contact. (pattern: <code>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
contact_statusstringStatus of a contact. (SCHEDULING, FAILED_TO_SCHEDULE, SCHEDULED, CANCELLED, AWS_CANCELLED, PREPASS, PASS, POSTPASS, COMPLETED, FAILED, AVAILABLE, CANCELLING, AWS_FAILED)
end_timestring (date-time)End time of a contact in UTC.
ephemerisobjectThe ephemeris that determines antenna pointing for the contact.
error_messagestringError message of a contact.
ground_stationstringName of a ground station.
maximum_elevationobjectMaximum elevation angle of a contact.
mission_profile_arnstringARN of a mission profile. (pattern: <code>arn:aws:groundstation:[-a-z0-9]{1,50}:[0-9]{12}:mission-profile/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
post_pass_end_timestring (date-time)End time in UTC of the post-pass period, at which you receive a CloudWatch event indicating the pass has finished.
pre_pass_start_timestring (date-time)Start time in UTC of the pre-pass period, at which you receive a CloudWatch event indicating an upcoming pass.
regionstringRegion of a contact.
satellite_arnstringARN of a satellite. (pattern: <code>arn:aws:groundstation:([-a-z0-9]{1,50})?:[0-9]{12}:satellite/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}</code>)
start_timestring (date-time)Start time of a contact in UTC.
tagsobjectTags assigned to a contact.
versionobjectVersion information for a contact.
visibility_end_timestring (date-time)Projected time in UTC your satellite will set below the receive mask. This time is based on the satellite's current active ephemeris for future contacts and the ephemeris that was active during contact execution for completed contacts. This field is not present for contacts with a SCHEDULING or SCHEDULED status.
visibility_start_timestring (date-time)Projected time in UTC your satellite will rise above the receive mask. This time is based on the satellite's current active ephemeris for future contacts and the ephemeris that was active during contact execution for completed contacts. This field is not present for contacts with a SCHEDULING or SCHEDULED status.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_contactsselectregionReturns a list of contacts. If statusList contains AVAILABLE, the request must include groundStation, missionprofileArn, and satelliteArn.
describe_contactselectcontact_id, regionDescribes an existing contact.
update_contactupdatecontact_id, regionUpdates a specific contact.
cancel_contactexeccontact_id, regionCancels or stops a contact with a specified contact ID based on its position in the contact lifecycle. For contacts that: Have yet to start, the contact will be cancelled. Have started but have yet to finish, the contact will be stopped.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
contact_idstringUUID of a contact.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a list of contacts. If statusList contains AVAILABLE, the request must include groundStation, missionprofileArn, and satelliteArn.

SELECT
contact_id,
contact_status,
end_time,
ephemeris,
error_message,
ground_station,
maximum_elevation,
mission_profile_arn,
post_pass_end_time,
pre_pass_start_time,
region,
satellite_arn,
start_time,
tags,
version,
visibility_end_time,
visibility_start_time
FROM aws.groundstation.contacts
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates a specific contact.

UPDATE aws.groundstation.contacts
SET
clientToken = '{{ clientToken }}',
trackingOverrides = '{{ trackingOverrides }}',
satelliteArn = '{{ satelliteArn }}'
WHERE
contact_id = '{{ contact_id }}' --required
AND region = '{{ region }}' --required
RETURNING
contact_id,
version_id;

Lifecycle Methods

Cancels or stops a contact with a specified contact ID based on its position in the contact lifecycle. For contacts that: Have yet to start, the contact will be cancelled. Have started but have yet to finish, the contact will be stopped.

EXEC aws.groundstation.contacts.cancel_contact
@contact_id='{{ contact_id }}' --required,
@region='{{ region }}' --required
;