Skip to content

Examples#

Index > GroundStation > Examples

Auto-generated documentation for GroundStation type annotations stubs module mypy-boto3-groundstation.

Client#

Implicit type annotations#

Can be used with boto3-stubs[groundstation] package installed.

Write your GroundStation code as usual, type checking and code completion should work out of the box.

# GroundStationClient usage example

from boto3.session import Session


session = Session()

client = session.client("groundstation")  # (1)
result = client.cancel_contact()  # (2)
  1. client: GroundStationClient
  2. result: ContactIdResponseTypeDef
# ListConfigsPaginator usage example

from boto3.session import Session


session = Session()
client = session.client("groundstation")  # (1)

paginator = client.get_paginator("list_configs")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: GroundStationClient
  2. paginator: ListConfigsPaginator
  3. item: ListConfigsResponseTypeDef
# ContactScheduledWaiter usage example

from boto3.session import Session


session = Session()
client = session.client("groundstation")  # (1)

waiter = client.get_waiter("contact_scheduled")  # (2)
waiter.wait()
  1. client: GroundStationClient
  2. waiter: ContactScheduledWaiter

Explicit type annotations#

With boto3-stubs-lite[groundstation] or a standalone mypy_boto3_groundstation package, you have to explicitly specify client: GroundStationClient type annotation.

All other type annotations are optional, as types should be discovered automatically. However, these type annotations can be helpful in your f