Examples#
Index > NimbleStudio > Examples
Auto-generated documentation for NimbleStudio type annotations stubs module types-aiobotocore-nimble.
Client#
Implicit type annotations#
Can be used with types-aiobotocore[nimble]
package installed.
Write your NimbleStudio
code as usual,
type checking and code completion should work out of the box.
# NimbleStudioClient usage example
from aiobotocore.session import get_session
session = get_session()
async with session.create_client("nimble") as client: # (1)
result = await client.accept_eulas() # (2)
- client: NimbleStudioClient
- result: AcceptEulasResponseTypeDef
# ListEulaAcceptancesPaginator usage example
from aiobotocore.session import get_session
session = get_session()
async with session.create_client("nimble") as client: # (1)
paginator = client.get_paginator("list_eula_acceptances") # (2)
async for item in paginator.paginate(...):
print(item) # (3)
- client: NimbleStudioClient
- paginator: ListEulaAcceptancesPaginator
- item: ListEulaAcceptancesResponseTypeDef
# LaunchProfileDeletedWaiter usage example
from aiobotocore.session import get_session
session = get_session()
async with session.create_client("nimble") as client: # (1)
waiter = client.get_waiter("launch_profile_deleted") # (2)
await waiter.wait()
- client: NimbleStudioClient
- waiter: LaunchProfileDeletedWaiter
Explicit type annotations#
With types-aiobotocore-lite[nimble]
or a standalone types_aiobotocore_nimble
package, you have to explicitly specify
client: NimbleStudioClient
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.
# NimbleStudioClient usage example with type annotations
from aiobotocore.session import get_session
from types_aiobotocore_nimble.client import NimbleStudioClient
from types_aiobotocore_nimble.type_defs import AcceptEulasResponseTypeDef
from types_aiobotocore_nimble.type_defs import AcceptEulasRequestRequestTypeDef
session = get_session()
async with session.create_client("nimble") as client:
client: NimbleStudioClient
kwargs: AcceptEulasRequestRequestTypeDef = {...}
result: AcceptEulasResponseTypeDef = await client.accept_eulas(**kwargs)
# ListEulaAcceptancesPaginator usage example with type annotations
from aiobotocore.session import get_session
from types_aiobotocore_nimble.client import NimbleStudioClient
from types_aiobotocore_nimble.paginator import ListEulaAcceptancesPaginator
from types_aiobotocore_nimble.type_defs import ListEulaAcceptancesResponseTypeDef
session = get_session()
async with session.create_client("nimble") as client:
client: NimbleStudioClient
paginator: ListEulaAcceptancesPaginator = client.get_paginator("list_eula_acceptances")
async for item in paginator.paginate(...):
item: ListEulaAcceptancesResponseTypeDef
print(item)
# LaunchProfileDeletedWaiter usage example with type annotations
from aiobotocore.session import get_session
from types_aiobotocore_nimble.client import NimbleStudioClient
from types_aiobotocore_nimble.waiter import LaunchProfileDeletedWaiter
session = get_session()
async with session.create_client("nimble") as client:
client: NimbleStudioClient
waiter: LaunchProfileDeletedWaiter = client.get_waiter("launch_profile_deleted")
await waiter.wait()