Examples#
Index > SystemsManagerQuickSetup > Examples
Auto-generated documentation for SystemsManagerQuickSetup type annotations stubs module mypy-boto3-ssm-quicksetup.
Client#
Implicit type annotations#
Can be used with boto3-stubs[ssm-quicksetup]
package installed.
Write your SystemsManagerQuickSetup
code as usual,
type checking and code completion should work out of the box.
# SystemsManagerQuickSetupClient usage example
from boto3.session import Session
session = Session()
client = session.client("ssm-quicksetup") # (1)
result = client.create_configuration_manager() # (2)
# ListConfigurationManagersPaginator usage example
from boto3.session import Session
session = Session()
client = session.client("ssm-quicksetup") # (1)
paginator = client.get_paginator("list_configuration_managers") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: SystemsManagerQuickSetupClient
- paginator: ListConfigurationManagersPaginator
- item: ListConfigurationManagersOutputTypeDef
Explicit type annotations#
With boto3-stubs-lite[ssm-quicksetup]
or a standalone mypy_boto3_ssm_quicksetup
package, you have to explicitly specify client: SystemsManagerQuickSetupClient
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.
# SystemsManagerQuickSetupClient usage example with type annotations
from boto3.session import Session
from mypy_boto3_ssm_quicksetup.client import SystemsManagerQuickSetupClient
from mypy_boto3_ssm_quicksetup.type_defs import CreateConfigurationManagerOutputTypeDef
from mypy_boto3_ssm_quicksetup.type_defs import CreateConfigurationManagerInputRequestTypeDef
session = Session()
client: SystemsManagerQuickSetupClient = session.client("ssm-quicksetup")
kwargs: CreateConfigurationManagerInputRequestTypeDef = {...}
result: CreateConfigurationManagerOutputTypeDef = client.create_configuration_manager(**kwargs)
# ListConfigurationManagersPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_ssm_quicksetup.client import SystemsManagerQuickSetupClient
from mypy_boto3_ssm_quicksetup.paginator import ListConfigurationManagersPaginator
from mypy_boto3_ssm_quicksetup.type_defs import ListConfigurationManagersOutputTypeDef
session = Session()
client: SystemsManagerQuickSetupClient = session.client("ssm-quicksetup")
paginator: ListConfigurationManagersPaginator = client.get_paginator("list_configuration_managers")
for item in paginator.paginate(...):
item: ListConfigurationManagersOutputTypeDef
print(item)