Examples#
Auto-generated documentation for Panorama type annotations stubs module types-aiobotocore-panorama.
Client#
Implicit type annotations#
Can be used with types-aioboto3[panorama]
package installed.
Write your Panorama
code as usual,
type checking and code completion should work out of the box.
# PanoramaClient usage example
from aioboto3.session import Session
session = Session()
async with session.client("panorama") as client: # (1)
result = await client.create_application_instance() # (2)
- client: PanoramaClient
- result: CreateApplicationInstanceResponseTypeDef
Explicit type annotations#
With types-aioboto3-lite[panorama]
or a standalone types_aiobotocore_panorama
package, you have to explicitly specify
client: PanoramaClient
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.
# PanoramaClient usage example with type annotations
from aioboto3.session import Session
from types_aiobotocore_panorama.client import PanoramaClient
from types_aiobotocore_panorama.type_defs import CreateApplicationInstanceResponseTypeDef
from types_aiobotocore_panorama.type_defs import CreateApplicationInstanceRequestRequestTypeDef
session = Session()
client: PanoramaClient
async with session.client("panorama") as client: # (1)
kwargs: CreateApplicationInstanceRequestRequestTypeDef = {...} # (2)
result: CreateApplicationInstanceResponseTypeDef = await client.create_application_instance(**kwargs) # (3)
- client: PanoramaClient
- kwargs: CreateApplicationInstanceRequestRequestTypeDef
- result: CreateApplicationInstanceResponseTypeDef