mission_profiles
Creates, updates, deletes or gets a mission_profile resource or lists mission_profiles in a region
Overview
| Name | mission_profiles |
| Type | Resource |
| Description | AWS Ground Station Mission Profile resource type for CloudFormation. |
| Id | awscc.groundstation.mission_profiles |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
name | string | A name used to identify a mission profile. |
contact_pre_pass_duration_seconds | integer | Pre-pass time needed before the contact. |
contact_post_pass_duration_seconds | integer | Post-pass time needed after the contact. |
minimum_viable_contact_duration_seconds | integer | Visibilities with shorter duration than the specified minimum viable contact duration will be ignored when searching for available contacts. |
streams_kms_key | object | The ARN of a KMS Key used for encrypting data during transmission from the source to destination locations. |
streams_kms_role | string | The ARN of the KMS Key or Alias Key role used to define permissions on KMS Key usage. |
dataflow_edges | array | |
tracking_config_arn | string | |
tags | array | |
id | string | |
arn | string | |
region | string | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
id | string | |
arn | string | |
region | string | |
region | string | AWS region. |
For more information, see AWS::GroundStation::MissionProfile.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | mission_profiles | INSERT | Name, MinimumViableContactDurationSeconds, DataflowEdges, TrackingConfigArn, region |
delete_resource | mission_profiles | DELETE | Identifier, region |
update_resource | mission_profiles | UPDATE | Identifier, PatchDocument, region |
list_resources | mission_profiles_list_only | SELECT | region |
get_resource | mission_profiles | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual mission_profile.
SELECT
region,
name,
contact_pre_pass_duration_seconds,
contact_post_pass_duration_seconds,
minimum_viable_contact_duration_seconds,
streams_kms_key,
streams_kms_role,
dataflow_edges,
tracking_config_arn,
tags,
id,
arn,
region
FROM awscc.groundstation.mission_profiles
WHERE
region = 'us-east-1' AND
Identifier = '{{ id }}|{{ arn }}';
Lists all mission_profiles in a region.
SELECT
region,
id,
arn
FROM awscc.groundstation.mission_profiles_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new mission_profile resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.groundstation.mission_profiles (
Name,
MinimumViableContactDurationSeconds,
DataflowEdges,
TrackingConfigArn,
region
)
SELECT
'{{ name }}',
'{{ minimum_viable_contact_duration_seconds }}',
'{{ dataflow_edges }}',
'{{ tracking_config_arn }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.groundstation.mission_profiles (
Name,
ContactPrePassDurationSeconds,
ContactPostPassDurationSeconds,
MinimumViableContactDurationSeconds,
StreamsKmsKey,
StreamsKmsRole,
DataflowEdges,
TrackingConfigArn,
Tags,
region
)
SELECT
'{{ name }}',
'{{ contact_pre_pass_duration_seconds }}',
'{{ contact_post_pass_duration_seconds }}',
'{{ minimum_viable_contact_duration_seconds }}',
'{{ streams_kms_key }}',
'{{ streams_kms_role }}',
'{{ dataflow_edges }}',
'{{ tracking_config_arn }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: mission_profile
props:
- name: name
value: '{{ name }}'
- name: contact_pre_pass_duration_seconds
value: '{{ contact_pre_pass_duration_seconds }}'
- name: contact_post_pass_duration_seconds
value: '{{ contact_post_pass_duration_seconds }}'
- name: minimum_viable_contact_duration_seconds
value: '{{ minimum_viable_contact_duration_seconds }}'
- name: streams_kms_key
value:
kms_key_arn: '{{ kms_key_arn }}'
kms_alias_arn: '{{ kms_alias_arn }}'
kms_alias_name: '{{ kms_alias_name }}'
- name: streams_kms_role
value: '{{ streams_kms_role }}'
- name: dataflow_edges
value:
- source: '{{ source }}'
destination: '{{ destination }}'
- name: tracking_config_arn
value: '{{ tracking_config_arn }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
UPDATE example
Use the following StackQL query and manifest file to update a mission_profile resource, using stack-deploy.
/*+ update */
UPDATE awscc.groundstation.mission_profiles
SET PatchDocument = string('{{ {
"Name": name,
"ContactPrePassDurationSeconds": contact_pre_pass_duration_seconds,
"ContactPostPassDurationSeconds": contact_post_pass_duration_seconds,
"MinimumViableContactDurationSeconds": minimum_viable_contact_duration_seconds,
"StreamsKmsKey": streams_kms_key,
"StreamsKmsRole": streams_kms_role,
"DataflowEdges": dataflow_edges,
"TrackingConfigArn": tracking_config_arn,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}|{{ arn }}';
DELETE example
/*+ delete */
DELETE FROM awscc.groundstation.mission_profiles
WHERE
Identifier = '{{ id }}|{{ arn }}' AND
region = 'us-east-1';
Permissions
To operate on the mission_profiles resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
groundstation:CreateMissionProfile,
groundstation:GetMissionProfile,
groundstation:TagResource,
iam:PassRole,
kms:DescribeKey,
kms:CreateGrant
groundstation:GetMissionProfile,
groundstation:ListTagsForResource,
kms:DescribeKey,
kms:CreateGrant
groundstation:UpdateMissionProfile,
groundstation:GetMissionProfile,
groundstation:ListTagsForResource,
groundstation:TagResource,
groundstation:UntagResource,
iam:PassRole,
kms:DescribeKey,
kms:CreateGrant
groundstation:DeleteMissionProfile,
groundstation:GetMissionProfile
groundstation:ListMissionProfiles