Skip to content

Examples#

Index > SystemsManagerQuickSetup > Examples

Auto-generated documentation for SystemsManagerQuickSetup type annotations stubs module types-boto3-ssm-quicksetup.

Client#

Implicit type annotations#

Can be used with types-boto3[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)
  1. client: SystemsManagerQuickSetupClient
  2. result: CreateConfigurationManagerOutputTypeDef
# 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)
  1. client: SystemsManagerQuickSetupClient
  2. paginator: ListConfigurationManagersPaginator
  3. item: ListConfigurationManagersOutputTypeDef

Explicit type annotations#

With types-boto3-lite[ssm-quicksetup] or a standalone types_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 types_boto3_ssm_quicksetup.client import SystemsManagerQuickSetupClient
from types_boto3_ssm_quicksetup.type_defs import CreateConfigurationManagerOutputTypeDef
from types_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 types_boto3_ssm_quicksetup.client import SystemsManagerQuickSetupClient
from types_boto3_ssm_quicksetup.paginator import ListConfigurationManagersPaginator
from types_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)