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