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-aioboto3[nimble]
package installed.
Write your NimbleStudio
code as usual,
type checking and code completion should work out of the box.
Client usage example
from aioboto3.session import Session
session = Session()
async with session.client("nimble") as client: # (1)
result = await client.accept_eulas() # (2)
- client: NimbleStudioClient
- result: AcceptEulasResponseTypeDef
Paginator usage example
from aioboto3.session import Session
session = Session()
async with session.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
Waiter usage example
from aioboto3.session import Session
session = Session()
async with session.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-aioboto3-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.
Client usage example
from aioboto3.session import 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 = Session()
client: NimbleStudioClient
async with session.client("nimble") as client: # (1)
kwargs: AcceptEulasRequestRequestTypeDef = {...} # (2)
result: AcceptEulasResponseTypeDef = await client.accept_eulas(**kwargs) # (3)
- client: NimbleStudioClient
- kwargs: AcceptEulasRequestRequestTypeDef
- result: AcceptEulasResponseTypeDef
Paginator usage example
from aioboto3.session import Session
from types_aiobotocore_nimble.client import NimbleStudioClient
from types_aiobotocore_nimble.paginator import ListEulaAcceptancesPaginator
from types_aiobotocore_nimble.type_defs import ListEulaAcceptancesResponseTypeDef
session = Session()
client: NimbleStudioClient
async with session.client("nimble") as client: # (1)
paginator: ListEulaAcceptancesPaginator = client.get_paginator("list_eula_acceptances") # (2)
async for item in paginator.paginate(...):
item: ListEulaAcceptancesResponseTypeDef
print(item) # (3)
- client: NimbleStudioClient
- paginator: ListEulaAcceptancesPaginator
- item: ListEulaAcceptancesResponseTypeDef
Waiter usage example
from aioboto3.session import Session
from types_aiobotocore_nimble.client import NimbleStudioClient
from types_aiobotocore_nimble.waiter import LaunchProfileDeletedWaiter
session = Session()
async with session.client("nimble") as client: # (1)
waiter = client.get_waiter("launch_profile_deleted") # (2)
await waiter.wait()
- client: NimbleStudioClient
- waiter: LaunchProfileDeletedWaiter