Examples#
Auto-generated documentation for EVS type annotations stubs module types-boto3-evs.
Client#
Implicit type annotations#
Can be used with types-boto3[evs] package installed.
Write your EVS code as usual,
type checking and code completion should work out of the box.
Client method usage example#
# EVSClient usage example
from boto3.session import Session
session = Session()
client = session.client("evs") # (1)
result = client.associate_eip_to_vlan() # (2)
- client: EVSClient
- result: AssociateEipToVlanResponseTypeDef
Paginator usage example#
# ListEnvironmentConnectorsPaginator usage example
from boto3.session import Session
session = Session()
client = session.client("evs") # (1)
paginator = client.get_paginator("list_environment_connectors") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: EVSClient
- paginator: ListEnvironmentConnectorsPaginator
- item: ListEnvironmentConnectorsResponseTypeDef
Explicit type annotations#
With types-boto3-lite[evs]
or a standalone types_boto3_evs package, you have to explicitly specify client: EVSClient 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#
# EVSClient usage example with type annotations
from boto3.session import Session
from types_boto3_evs.client import EVSClient
from types_boto3_evs.type_defs import AssociateEipToVlanResponseTypeDef
from types_boto3_evs.type_defs import AssociateEipToVlanRequestTypeDef
session = Session()
client: EVSClient = session.client("evs")
kwargs: AssociateEipToVlanRequestTypeDef = {...}
result: AssociateEipToVlanResponseTypeDef = client.associate_eip_to_vlan(**kwargs)
Paginator usage example#
# ListEnvironmentConnectorsPaginator usage example with type annotations
from boto3.session import Session
from types_boto3_evs.client import EVSClient
from types_boto3_evs.paginator import ListEnvironmentConnectorsPaginator
from types_boto3_evs.type_defs import ListEnvironmentConnectorsResponseTypeDef
session = Session()
client: EVSClient = session.client("evs")
paginator: ListEnvironmentConnectorsPaginator = client.get_paginator("list_environment_connectors")
for item in paginator.paginate(...):
item: ListEnvironmentConnectorsResponseTypeDef
print(item)