Skip to content

Examples#

Index > Panorama > Examples

Auto-generated documentation for Panorama type annotations stubs module types-boto3-panorama.

Client#

Implicit type annotations#

Can be used with types-boto3[panorama] package installed.

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

# PanoramaClient usage example

from boto3.session import Session


session = Session()

client = session.client("panorama")  # (1)
result = client.create_application_instance()  # (2)
  1. client: PanoramaClient
  2. result: CreateApplicationInstanceResponseTypeDef

Explicit type annotations#

With types-boto3-lite[panorama] or a standalone types_boto3_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 boto3.session import Session

from types_boto3_panorama.client import PanoramaClient
from types_boto3_panorama.type_defs import CreateApplicationInstanceResponseTypeDef
from types_boto3_panorama.type_defs import CreateApplicationInstanceRequestRequestTypeDef


session = Session()

client: PanoramaClient = session.client("panorama")

kwargs: CreateApplicationInstanceRequestRequestTypeDef = {...}
result: CreateApplicationInstanceResponseTypeDef = client.create_application_instance(**kwargs)