Examples#
Index > GroundStation > Examples
Auto-generated documentation for GroundStation type annotations stubs module types-boto3-groundstation.
Client#
Implicit type annotations#
Can be used with types-boto3[groundstation]
package installed.
Write your GroundStation
code as usual,
type checking and code completion should work out of the box.
Client method usage example#
# GroundStationClient usage example
from boto3.session import Session
session = Session()
client = session.client("groundstation") # (1)
result = client.cancel_contact() # (2)
- client: GroundStationClient
- result: ContactIdResponseTypeDef
Paginator usage example#
# 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)
- client: GroundStationClient
- paginator: ListConfigsPaginator
- item: ListConfigsResponseTypeDef
Waiter usage example#
# ContactScheduledWaiter usage example
from boto3.session import Session
session = Session()
client = session.client("groundstation") # (1)
waiter = client.get_waiter("contact_scheduled") # (2)
waiter.wait(...)
- client: GroundStationClient
- waiter: ContactScheduledWaiter
Explicit type annotations#
With types-boto3-lite[groundstation]
or a standalone types_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 functions and methods.
Client method usage example#
# GroundStationClient usage example with type annotations
from boto3.session import Session
from types_boto3_groundstation.client import GroundStationClient
from types_boto3_groundstation.type_defs import ContactIdResponseTypeDef
from types_boto3_groundstation.type_defs import CancelContactRequestTypeDef
session = Session()
client: GroundStationClient = session.client("groundstation")
kwargs: CancelContactRequestTypeDef = {...}
result: ContactIdResponseTypeDef = client.cancel_contact(**kwargs)
Paginator usage example#
# ListConfigsPaginator usage example with type annotations
from boto3.session import Session
from types_boto3_groundstation.client import GroundStationClient
from types_boto3_groundstation.paginator import ListConfigsPaginator
from types_boto3_groundstation.type_defs import ListConfigsResponseTypeDef
session = Session()
client: GroundStationClient = session.client("groundstation")
paginator: ListConfigsPaginator = client.get_paginator("list_configs")
for item in paginator.paginate(...):
item: ListConfigsResponseTypeDef
print(item)
Waiter usage example#
# ContactScheduledWaiter usage example with type annotations
from boto3.session import Session
from types_boto3_groundstation.client import GroundStationClient
from types_boto3_groundstation.waiter import ContactScheduledWaiter
session = Session()
client: GroundStationClient = session.client("groundstation")
waiter: ContactScheduledWaiter = client.get_waiter("contact_scheduled")
waiter.wait(...)