Class: Aws::GroundStation::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::GroundStation::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-groundstation/client.rb
Overview
An API client for GroundStation. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::GroundStation::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#cancel_contact(params = {}) ⇒ Types::ContactIdResponse
Cancels a contact with a specified contact ID.
-
#create_config(params = {}) ⇒ Types::ConfigIdResponse
Creates a ‘Config` with the specified `configData` parameters.
-
#create_dataflow_endpoint_group(params = {}) ⇒ Types::DataflowEndpointGroupIdResponse
Creates a ‘DataflowEndpoint` group containing the specified list of `DataflowEndpoint` objects.
-
#create_dataflow_endpoint_group_v2(params = {}) ⇒ Types::CreateDataflowEndpointGroupV2Response
Creates a ‘DataflowEndpointGroupV2` containing the specified list of `DataflowEndpoint` objects.
-
#create_ephemeris(params = {}) ⇒ Types::EphemerisIdResponse
Create an ephemeris with your specified EphemerisData.
-
#create_mission_profile(params = {}) ⇒ Types::MissionProfileIdResponse
Creates a mission profile.
-
#delete_config(params = {}) ⇒ Types::ConfigIdResponse
Deletes a ‘Config`.
-
#delete_dataflow_endpoint_group(params = {}) ⇒ Types::DataflowEndpointGroupIdResponse
Deletes a dataflow endpoint group.
-
#delete_ephemeris(params = {}) ⇒ Types::EphemerisIdResponse
Delete an ephemeris.
-
#delete_mission_profile(params = {}) ⇒ Types::MissionProfileIdResponse
Deletes a mission profile.
-
#describe_contact(params = {}) ⇒ Types::DescribeContactResponse
Describes an existing contact.
-
#describe_ephemeris(params = {}) ⇒ Types::DescribeEphemerisResponse
Retrieve information about an existing ephemeris.
-
#get_agent_configuration(params = {}) ⇒ Types::GetAgentConfigurationResponse
<note markdown=“1”> For use by AWS Ground Station Agent and shouldn’t be called directly.
-
#get_agent_task_response_url(params = {}) ⇒ Types::GetAgentTaskResponseUrlResponse
<note markdown=“1”> For use by AWS Ground Station Agent and shouldn’t be called directly.
-
#get_config(params = {}) ⇒ Types::GetConfigResponse
Returns ‘Config` information.
-
#get_dataflow_endpoint_group(params = {}) ⇒ Types::GetDataflowEndpointGroupResponse
Returns the dataflow endpoint group.
-
#get_minute_usage(params = {}) ⇒ Types::GetMinuteUsageResponse
Returns the number of reserved minutes used by account.
-
#get_mission_profile(params = {}) ⇒ Types::GetMissionProfileResponse
Returns a mission profile.
-
#get_satellite(params = {}) ⇒ Types::GetSatelliteResponse
Returns a satellite.
-
#list_configs(params = {}) ⇒ Types::ListConfigsResponse
Returns a list of ‘Config` objects.
-
#list_contacts(params = {}) ⇒ Types::ListContactsResponse
Returns a list of contacts.
-
#list_dataflow_endpoint_groups(params = {}) ⇒ Types::ListDataflowEndpointGroupsResponse
Returns a list of ‘DataflowEndpoint` groups.
-
#list_ephemerides(params = {}) ⇒ Types::ListEphemeridesResponse
List your existing ephemerides.
-
#list_ground_stations(params = {}) ⇒ Types::ListGroundStationsResponse
Returns a list of ground stations.
-
#list_mission_profiles(params = {}) ⇒ Types::ListMissionProfilesResponse
Returns a list of mission profiles.
-
#list_satellites(params = {}) ⇒ Types::ListSatellitesResponse
Returns a list of satellites.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Returns a list of tags for a specified resource.
-
#register_agent(params = {}) ⇒ Types::RegisterAgentResponse
<note markdown=“1”> For use by AWS Ground Station Agent and shouldn’t be called directly.
-
#reserve_contact(params = {}) ⇒ Types::ContactIdResponse
Reserves a contact using specified parameters.
-
#tag_resource(params = {}) ⇒ Struct
Assigns a tag to a resource.
-
#untag_resource(params = {}) ⇒ Struct
Deassigns a resource tag.
-
#update_agent_status(params = {}) ⇒ Types::UpdateAgentStatusResponse
<note markdown=“1”> For use by AWS Ground Station Agent and shouldn’t be called directly.
-
#update_config(params = {}) ⇒ Types::ConfigIdResponse
Updates the ‘Config` used when scheduling contacts.
-
#update_ephemeris(params = {}) ⇒ Types::EphemerisIdResponse
Update an existing ephemeris.
-
#update_mission_profile(params = {}) ⇒ Types::MissionProfileIdResponse
Updates a mission profile.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
-
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
473 474 475 |
# File 'lib/aws-sdk-groundstation/client.rb', line 473 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2802 2803 2804 |
# File 'lib/aws-sdk-groundstation/client.rb', line 2802 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2805 2806 2807 |
# File 'lib/aws-sdk-groundstation/client.rb', line 2805 def errors_module Errors end |
Instance Method Details
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 |
# File 'lib/aws-sdk-groundstation/client.rb', line 2662 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::GroundStation') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-groundstation' context[:gem_version] = '1.76.0' Seahorse::Client::Request.new(handlers, context) end |
#cancel_contact(params = {}) ⇒ Types::ContactIdResponse
Cancels a contact with a specified contact ID.
502 503 504 505 |
# File 'lib/aws-sdk-groundstation/client.rb', line 502 def cancel_contact(params = {}, = {}) req = build_request(:cancel_contact, params) req.send_request() end |
#create_config(params = {}) ⇒ Types::ConfigIdResponse
Creates a ‘Config` with the specified `configData` parameters.
Only one type of ‘configData` can be specified.
609 610 611 612 |
# File 'lib/aws-sdk-groundstation/client.rb', line 609 def create_config(params = {}, = {}) req = build_request(:create_config, params) req.send_request() end |
#create_dataflow_endpoint_group(params = {}) ⇒ Types::DataflowEndpointGroupIdResponse
Creates a ‘DataflowEndpoint` group containing the specified list of `DataflowEndpoint` objects.
The ‘name` field in each endpoint is used in your mission profile `DataflowEndpointConfig` to specify which endpoints to use during a contact.
When a contact uses multiple ‘DataflowEndpointConfig` objects, each `Config` must match a `DataflowEndpoint` in the same group.
769 770 771 772 |
# File 'lib/aws-sdk-groundstation/client.rb', line 769 def create_dataflow_endpoint_group(params = {}, = {}) req = build_request(:create_dataflow_endpoint_group, params) req.send_request() end |
#create_dataflow_endpoint_group_v2(params = {}) ⇒ Types::CreateDataflowEndpointGroupV2Response
Creates a ‘DataflowEndpointGroupV2` containing the specified list of `DataflowEndpoint` objects.
The ‘name` field in each endpoint is used in your mission profile `DataflowEndpointConfig` to specify which endpoints to use during a contact.
When a contact uses multiple ‘DataflowEndpointConfig` objects, each `Config` must match a `DataflowEndpoint` in the same group.
877 878 879 880 |
# File 'lib/aws-sdk-groundstation/client.rb', line 877 def create_dataflow_endpoint_group_v2(params = {}, = {}) req = build_request(:create_dataflow_endpoint_group_v2, params) req.send_request() end |
#create_ephemeris(params = {}) ⇒ Types::EphemerisIdResponse
Create an ephemeris with your specified EphemerisData.
997 998 999 1000 |
# File 'lib/aws-sdk-groundstation/client.rb', line 997 def create_ephemeris(params = {}, = {}) req = build_request(:create_ephemeris, params) req.send_request() end |
#create_mission_profile(params = {}) ⇒ Types::MissionProfileIdResponse
Creates a mission profile.
‘dataflowEdges` is a list of lists of strings. Each lower level list of strings has two elements: a from ARN and a to ARN.
1074 1075 1076 1077 |
# File 'lib/aws-sdk-groundstation/client.rb', line 1074 def create_mission_profile(params = {}, = {}) req = build_request(:create_mission_profile, params) req.send_request() end |
#delete_config(params = {}) ⇒ Types::ConfigIdResponse
Deletes a ‘Config`.
1110 1111 1112 1113 |
# File 'lib/aws-sdk-groundstation/client.rb', line 1110 def delete_config(params = {}, = {}) req = build_request(:delete_config, params) req.send_request() end |
#delete_dataflow_endpoint_group(params = {}) ⇒ Types::DataflowEndpointGroupIdResponse
Deletes a dataflow endpoint group.
1138 1139 1140 1141 |
# File 'lib/aws-sdk-groundstation/client.rb', line 1138 def delete_dataflow_endpoint_group(params = {}, = {}) req = build_request(:delete_dataflow_endpoint_group, params) req.send_request() end |
#delete_ephemeris(params = {}) ⇒ Types::EphemerisIdResponse
Delete an ephemeris.
1166 1167 1168 1169 |
# File 'lib/aws-sdk-groundstation/client.rb', line 1166 def delete_ephemeris(params = {}, = {}) req = build_request(:delete_ephemeris, params) req.send_request() end |
#delete_mission_profile(params = {}) ⇒ Types::MissionProfileIdResponse
Deletes a mission profile.
1194 1195 1196 1197 |
# File 'lib/aws-sdk-groundstation/client.rb', line 1194 def delete_mission_profile(params = {}, = {}) req = build_request(:delete_mission_profile, params) req.send_request() end |
#describe_contact(params = {}) ⇒ Types::DescribeContactResponse
Describes an existing contact.
The following waiters are defined for this operation (see #wait_until for detailed usage):
* contact_scheduled
1363 1364 1365 1366 |
# File 'lib/aws-sdk-groundstation/client.rb', line 1363 def describe_contact(params = {}, = {}) req = build_request(:describe_contact, params) req.send_request() end |
#describe_ephemeris(params = {}) ⇒ Types::DescribeEphemerisResponse
Retrieve information about an existing ephemeris.
1425 1426 1427 1428 |
# File 'lib/aws-sdk-groundstation/client.rb', line 1425 def describe_ephemeris(params = {}, = {}) req = build_request(:describe_ephemeris, params) req.send_request() end |
#get_agent_configuration(params = {}) ⇒ Types::GetAgentConfigurationResponse
<note markdown=“1”> For use by AWS Ground Station Agent and shouldn’t be called directly.
</note>
Gets the latest configuration information for a registered agent.
1460 1461 1462 1463 |
# File 'lib/aws-sdk-groundstation/client.rb', line 1460 def get_agent_configuration(params = {}, = {}) req = build_request(:get_agent_configuration, params) req.send_request() end |
#get_agent_task_response_url(params = {}) ⇒ Types::GetAgentTaskResponseUrlResponse
<note markdown=“1”> For use by AWS Ground Station Agent and shouldn’t be called directly.
</note>
Gets a presigned URL for uploading agent task response logs.
1501 1502 1503 1504 |
# File 'lib/aws-sdk-groundstation/client.rb', line 1501 def get_agent_task_response_url(params = {}, = {}) req = build_request(:get_agent_task_response_url, params) req.send_request() end |
#get_config(params = {}) ⇒ Types::GetConfigResponse
Returns ‘Config` information.
Only one ‘Config` response can be returned.
1571 1572 1573 1574 |
# File 'lib/aws-sdk-groundstation/client.rb', line 1571 def get_config(params = {}, = {}) req = build_request(:get_config, params) req.send_request() end |
#get_dataflow_endpoint_group(params = {}) ⇒ Types::GetDataflowEndpointGroupResponse
Returns the dataflow endpoint group.
1653 1654 1655 1656 |
# File 'lib/aws-sdk-groundstation/client.rb', line 1653 def get_dataflow_endpoint_group(params = {}, = {}) req = build_request(:get_dataflow_endpoint_group, params) req.send_request() end |
#get_minute_usage(params = {}) ⇒ Types::GetMinuteUsageResponse
Returns the number of reserved minutes used by account.
1693 1694 1695 1696 |
# File 'lib/aws-sdk-groundstation/client.rb', line 1693 def get_minute_usage(params = {}, = {}) req = build_request(:get_minute_usage, params) req.send_request() end |
#get_mission_profile(params = {}) ⇒ Types::GetMissionProfileResponse
Returns a mission profile.
1748 1749 1750 1751 |
# File 'lib/aws-sdk-groundstation/client.rb', line 1748 def get_mission_profile(params = {}, = {}) req = build_request(:get_mission_profile, params) req.send_request() end |
#get_satellite(params = {}) ⇒ Types::GetSatelliteResponse
Returns a satellite.
1788 1789 1790 1791 |
# File 'lib/aws-sdk-groundstation/client.rb', line 1788 def get_satellite(params = {}, = {}) req = build_request(:get_satellite, params) req.send_request() end |
#list_configs(params = {}) ⇒ Types::ListConfigsResponse
Returns a list of ‘Config` objects.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1829 1830 1831 1832 |
# File 'lib/aws-sdk-groundstation/client.rb', line 1829 def list_configs(params = {}, = {}) req = build_request(:list_configs, params) req.send_request() end |
#list_contacts(params = {}) ⇒ Types::ListContactsResponse
Returns a list of contacts.
If ‘statusList` contains AVAILABLE, the request must include `groundStation`, `missionprofileArn`, and `satelliteArn`.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1920 1921 1922 1923 |
# File 'lib/aws-sdk-groundstation/client.rb', line 1920 def list_contacts(params = {}, = {}) req = build_request(:list_contacts, params) req.send_request() end |
#list_dataflow_endpoint_groups(params = {}) ⇒ Types::ListDataflowEndpointGroupsResponse
Returns a list of ‘DataflowEndpoint` groups.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1960 1961 1962 1963 |
# File 'lib/aws-sdk-groundstation/client.rb', line 1960 def list_dataflow_endpoint_groups(params = {}, = {}) req = build_request(:list_dataflow_endpoint_groups, params) req.send_request() end |
#list_ephemerides(params = {}) ⇒ Types::ListEphemeridesResponse
List your existing ephemerides.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2029 2030 2031 2032 |
# File 'lib/aws-sdk-groundstation/client.rb', line 2029 def list_ephemerides(params = {}, = {}) req = build_request(:list_ephemerides, params) req.send_request() end |
#list_ground_stations(params = {}) ⇒ Types::ListGroundStationsResponse
Returns a list of ground stations.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2073 2074 2075 2076 |
# File 'lib/aws-sdk-groundstation/client.rb', line 2073 def list_ground_stations(params = {}, = {}) req = build_request(:list_ground_stations, params) req.send_request() end |
#list_mission_profiles(params = {}) ⇒ Types::ListMissionProfilesResponse
Returns a list of mission profiles.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2114 2115 2116 2117 |
# File 'lib/aws-sdk-groundstation/client.rb', line 2114 def list_mission_profiles(params = {}, = {}) req = build_request(:list_mission_profiles, params) req.send_request() end |
#list_satellites(params = {}) ⇒ Types::ListSatellitesResponse
Returns a list of satellites.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2160 2161 2162 2163 |
# File 'lib/aws-sdk-groundstation/client.rb', line 2160 def list_satellites(params = {}, = {}) req = build_request(:list_satellites, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Returns a list of tags for a specified resource.
2189 2190 2191 2192 |
# File 'lib/aws-sdk-groundstation/client.rb', line 2189 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#register_agent(params = {}) ⇒ Types::RegisterAgentResponse
<note markdown=“1”> For use by AWS Ground Station Agent and shouldn’t be called directly.
</note>
Registers a new agent with AWS Ground Station.
2248 2249 2250 2251 |
# File 'lib/aws-sdk-groundstation/client.rb', line 2248 def register_agent(params = {}, = {}) req = build_request(:register_agent, params) req.send_request() end |
#reserve_contact(params = {}) ⇒ Types::ContactIdResponse
Reserves a contact using specified parameters.
2308 2309 2310 2311 |
# File 'lib/aws-sdk-groundstation/client.rb', line 2308 def reserve_contact(params = {}, = {}) req = build_request(:reserve_contact, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Assigns a tag to a resource.
2336 2337 2338 2339 |
# File 'lib/aws-sdk-groundstation/client.rb', line 2336 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Deassigns a resource tag.
2362 2363 2364 2365 |
# File 'lib/aws-sdk-groundstation/client.rb', line 2362 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_agent_status(params = {}) ⇒ Types::UpdateAgentStatusResponse
<note markdown=“1”> For use by AWS Ground Station Agent and shouldn’t be called directly.
</note>
Update the status of the agent.
2422 2423 2424 2425 |
# File 'lib/aws-sdk-groundstation/client.rb', line 2422 def update_agent_status(params = {}, = {}) req = build_request(:update_agent_status, params) req.send_request() end |
#update_config(params = {}) ⇒ Types::ConfigIdResponse
Updates the ‘Config` used when scheduling contacts.
Updating a ‘Config` will not update the execution parameters for existing future contacts scheduled with this `Config`.
2532 2533 2534 2535 |
# File 'lib/aws-sdk-groundstation/client.rb', line 2532 def update_config(params = {}, = {}) req = build_request(:update_config, params) req.send_request() end |
#update_ephemeris(params = {}) ⇒ Types::EphemerisIdResponse
Update an existing ephemeris.
2577 2578 2579 2580 |
# File 'lib/aws-sdk-groundstation/client.rb', line 2577 def update_ephemeris(params = {}, = {}) req = build_request(:update_ephemeris, params) req.send_request() end |
#update_mission_profile(params = {}) ⇒ Types::MissionProfileIdResponse
Updates a mission profile.
Updating a mission profile will not update the execution parameters for existing future contacts.
2653 2654 2655 2656 |
# File 'lib/aws-sdk-groundstation/client.rb', line 2653 def update_mission_profile(params = {}, = {}) req = build_request(:update_mission_profile, params) req.send_request() end |
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
## Basic Usage
A waiter will call an API operation until:
-
It is successful
-
It enters a terminal state
-
It makes the maximum number of attempts
In between attempts, the waiter will sleep.
# polls in a loop, sleeping between attempts
client.wait_until(waiter_name, params)
## Configuration
You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You can pass configuration as the final arguments hash.
# poll for ~25 seconds
client.wait_until(waiter_name, params, {
max_attempts: 5,
delay: 5,
})
## Callbacks
You can be notified before each polling attempt and before each delay. If you throw ‘:success` or `:failure` from these callbacks, it will terminate the waiter.
started_at = Time.now
client.wait_until(waiter_name, params, {
# disable max attempts
max_attempts: nil,
# poll for 1 hour, instead of a number of attempts
before_wait: -> (attempts, response) do
throw :failure if Time.now - started_at > 3600
end
})
## Handling Errors
When a waiter is unsuccessful, it will raise an error. All of the failure errors extend from Waiters::Errors::WaiterFailed.
begin
client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
# resource did not enter the desired state in time
end
## Valid Waiters
The following table lists the valid waiter names, the operations they call, and the default ‘:delay` and `:max_attempts` values.
| waiter_name | params | :delay | :max_attempts | | —————– | ————————- | ——– | ————- | | contact_scheduled | #describe_contact | 5 | 180 |
2768 2769 2770 2771 2772 |
# File 'lib/aws-sdk-groundstation/client.rb', line 2768 def wait_until(waiter_name, params = {}, = {}) w = waiter(waiter_name, ) yield(w.waiter) if block_given? # deprecated w.wait(params) end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2776 2777 2778 |
# File 'lib/aws-sdk-groundstation/client.rb', line 2776 def waiter_names waiters.keys end |