Type annotations for aiobotocore.SnowDeviceManagement 2.1.0 service generated by mypy-boto3-builder 6.4.2
Project description
mypy-boto3-snow-device-management
Type annotations for boto3.SnowDeviceManagement 1.20.47 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.
Generated by mypy-boto3-builder 6.4.2.
More information can be found on boto3-stubs page and in types-aiobotocore-snow-device-management docs
See how it helps to find and fix potential bugs:
How to install
VSCode extension
Add
AWS Boto3
extension to your VSCode and run AWS boto3: Quick Start
command.
Click Modify
and select boto3 common
and SnowDeviceManagement
.
From PyPI with pip
Install types-aiobotocore
for SnowDeviceManagement
service.
python -m pip install types-aiobotocore[snow-device-management]
Usage
VSCode
- Install Python extension
- Install Pylance extension
- Set
Pylance
as your Python Language Server - Install
types-aiobotocore[snow-device-management]
in your environment:python -m pip install 'types-aiobotocore[snow-device-management]'
Both type checking and auto-complete should work for SnowDeviceManagement
service. No explicit type annotations required, write your boto3
code as
usual.
PyCharm
- Install
types-aiobotocore[snow-device-management]
in your environment:python -m pip install 'types-aiobotocore[snow-device-management]'
Both type checking and auto-complete should work for SnowDeviceManagement
service. No explicit type annotations required, write your aiobotocore
code
as usual. Auto-complete can be slow on big projects or if you have a lot of
installed types-aiobotocore
submodules.
Other IDEs
Not tested, but as long as your IDE supports mypy
or pyright
, everything
should work.
mypy
- Install
mypy
:python -m pip install mypy
- Install
types-aiobotocore[snow-device-management]
in your environment:python -m pip install 'types-aiobotocore[snow-device-management]'
- Run
mypy
as usual
Type checking should work for SnowDeviceManagement
service. No explicit type
annotations required, write your aiobotocore
code as usual.
pyright
- Install
pyright
:yarn global add pyright
- Install
types-aiobotocore[snow-device-management]
in your environment:python -m pip install 'types-aiobotocore[snow-device-management]'
- Optionally, you can install
boto3-stubs
totypings
folder.
Type checking should work for SnowDeviceManagement
service. No explicit type
annotations required, write your aiobotocore
code as usual.
Explicit type annotations
Client annotations
SnowDeviceManagementClient
provides annotations for
session.create_client("snow-device-management")
.
from aiobotocore.session import get_session
from types_aiobotocore_snow_device_management import SnowDeviceManagementClient
session = get_session()
with async session.create_client("snow-device-management") as client:
client: SnowDeviceManagementClient
# now client usage is checked by mypy and IDE should provide code auto-complete
Paginators annotations
types_aiobotocore_snow_device_management.paginator
module contains type
annotations for all paginators.
from aiobotocore.session import get_session
from types_aiobotocore_snow_device_management import SnowDeviceManagementClient
from types_aiobotocore_snow_device_management.paginator import (
ListDeviceResourcesPaginator,
ListDevicesPaginator,
ListExecutionsPaginator,
ListTasksPaginator,
)
session = get_session()
with async session.create_client("snow-device-management") as client:
client: SnowDeviceManagementClient
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
list_device_resources_paginator: ListDeviceResourcesPaginator = client.get_paginator("list_device_resources")
list_devices_paginator: ListDevicesPaginator = client.get_paginator("list_devices")
list_executions_paginator: ListExecutionsPaginator = client.get_paginator("list_executions")
list_tasks_paginator: ListTasksPaginator = client.get_paginator("list_tasks")
```
### Literals
`types_aiobotocore_snow_device_management.literals` module contains literals extracted from shapes
that can be used in user code for type checking.
```python
from types_aiobotocore_snow_device_management.literals import (
AttachmentStatusType,
ExecutionStateType,
InstanceStateNameType,
IpAddressAssignmentType,
ListDeviceResourcesPaginatorName,
ListDevicesPaginatorName,
ListExecutionsPaginatorName,
ListTasksPaginatorName,
PhysicalConnectorTypeType,
TaskStateType,
UnlockStateType,
ServiceName,
PaginatorName,
)
def check_value(value: AttachmentStatusType) -> bool:
...
Typed dictionaries
types_aiobotocore_snow_device_management.type_defs
module contains structures
and shapes assembled to typed dictionaries for additional type checking.
from types_aiobotocore_snow_device_management.type_defs import (
CancelTaskInputRequestTypeDef,
CancelTaskOutputTypeDef,
CapacityTypeDef,
CommandTypeDef,
CpuOptionsTypeDef,
CreateTaskInputRequestTypeDef,
CreateTaskOutputTypeDef,
DescribeDeviceEc2InputRequestTypeDef,
DescribeDeviceEc2OutputTypeDef,
DescribeDeviceInputRequestTypeDef,
DescribeDeviceOutputTypeDef,
DescribeExecutionInputRequestTypeDef,
DescribeExecutionOutputTypeDef,
DescribeTaskInputRequestTypeDef,
DescribeTaskOutputTypeDef,
DeviceSummaryTypeDef,
EbsInstanceBlockDeviceTypeDef,
ExecutionSummaryTypeDef,
InstanceBlockDeviceMappingTypeDef,
InstanceStateTypeDef,
InstanceSummaryTypeDef,
InstanceTypeDef,
ListDeviceResourcesInputRequestTypeDef,
ListDeviceResourcesOutputTypeDef,
ListDevicesInputRequestTypeDef,
ListDevicesOutputTypeDef,
ListExecutionsInputRequestTypeDef,
ListExecutionsOutputTypeDef,
ListTagsForResourceInputRequestTypeDef,
ListTagsForResourceOutputTypeDef,
ListTasksInputRequestTypeDef,
ListTasksOutputTypeDef,
PaginatorConfigTypeDef,
PhysicalNetworkInterfaceTypeDef,
ResourceSummaryTypeDef,
ResponseMetadataTypeDef,
SecurityGroupIdentifierTypeDef,
SoftwareInformationTypeDef,
TagResourceInputRequestTypeDef,
TaskSummaryTypeDef,
UntagResourceInputRequestTypeDef,
)
def get_structure() -> CancelTaskInputRequestTypeDef:
return {
...
}
Versioning
types-aiobotocore-snow-device-management
version is the same as related
boto3
version and follows
PEP 440 format.
Documentation
All type annotations can be found in types-aiobotocore-snow-device-management docs
Support and contributing
This package is auto-generated. Please reports any bugs or request new features in mypy-boto3-builder repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for types-aiobotocore-snow-device-management-2.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e55e03a7805e49c651b83e60d8ab70c0c67e8713dfdbded5e83a09109e73b2a6 |
|
MD5 | 9049b957e2f936a0f3199e08624b2b7c |
|
BLAKE2b-256 | a5e98739296bff0eeb84446c315a0e97bb44ea278d03a19b92ed5f409b6508ff |
Hashes for types_aiobotocore_snow_device_management-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 865cd0f65e533f5e5a7a0c0a38cfd8758885a4896a400eaa9fe445512a32a04a |
|
MD5 | c1529fe751aa6099f489aef42671371b |
|
BLAKE2b-256 | ecacd348616dd28ef8ad2026d4235dceb5c5ceb292356d449a1a4e3bb248338c |