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