Type annotations for boto3.EC2InstanceConnect 1.17.7 service, generated by mypy-boto3-buider 4.4.0
Project description
mypy-boto3-ec2-instance-connect
Type annotations for boto3.EC2InstanceConnect 1.17.7 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.
Generated by mypy-boto3-buider 4.4.0.
More information can be found on boto3-stubs page.
See how it helps to find and fix potential bugs:
How to install
Install boto3-stubs
for EC2InstanceConnect
service.
python -m pip install boto3-stubs[ec2-instance-connect]
Usage
VSCode
- Install Python extension
- Install Pylance extension
- Set
Pylance
as your Python Language Server - Install
boto-stubs[ec2-instance-connect]
in your environment:python -m pip install 'boto3-stubs[ec2-instance-connect]'
Both type checking and auto-complete should work for EC2InstanceConnect
service.
No explicit type annotations required, write your boto3
code as usual.
PyCharm
- Install
boto-stubs[ec2-instance-connect]
in your environment:python -m pip install 'boto3-stubs[ec2-instance-connect]'
Both type checking and auto-complete should work for EC2InstanceConnect
service.
No explicit type annotations required, write your boto3
code as usual.
Auto-complete can be slow on big projects or if you have a lot of installed boto3-stubs
submodules.
Other IDEs
Not tested, but as long as your IDE support mypy
or pyright
, everything should work.
mypy
- Install
mypy
:python -m pip install mypy
- Install
boto-stubs[ec2-instance-connect]
in your environment:python -m pip install 'boto3-stubs[ec2-instance-connect]'
- Run
mypy
as usual
Type checking should work for EC2InstanceConnect
service.
No explicit type annotations required, write your boto3
code as usual.
pyright
- Install
pyright
:yarn global add pyright
- Install
boto-stubs[ec2-instance-connect]
in your environment:python -m pip install 'boto3-stubs[ec2-instance-connect]'
- Optionally, you can install
boto3-stubs
totypings
folder.
Type checking should work for EC2InstanceConnect
service.
No explicit type annotations required, write your boto3
code as usual.
Explicit type annotations
Client annotations
EC2InstanceConnectClient
provides annotations for boto3.client("ec2-instance-connect")
.
import boto3
from mypy_boto3_ec2_instance_connect import EC2InstanceConnectClient
client: EC2InstanceConnectClient = boto3.client("ec2-instance-connect")
# now client usage is checked by mypy and IDE should provide code auto-complete
# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: EC2InstanceConnectClient = session.client("ec2-instance-connect")
Typed dictionations
mypy_boto3_ec2_instance_connect.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
from mypy_boto3_ec2_instance_connect.type_defs import (
SendSSHPublicKeyResponseTypeDef,
)
def get_structure() -> SendSSHPublicKeyResponseTypeDef:
return {
...
}
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 mypy-boto3-ec2-instance-connect-1.17.7.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ab543069ca078f83277ae8757802d2b343426b6a4ea8856cba1d2a5fede1777 |
|
MD5 | 5219549e611d889947fc68ff70a6943c |
|
BLAKE2b-256 | dd7319157f8df0c47a6a83bcbe694d4fd57d307373591f59c5847d9200771b85 |
Hashes for mypy_boto3_ec2_instance_connect-1.17.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd47550414da6c993099841ae18d516f6104d8dc360424e59085a547540d768e |
|
MD5 | c646e14e3d371836e809fadf5bbbe2ca |
|
BLAKE2b-256 | 5b91b726fc4d2434a28450ac3a525469df75e5b47a97e685da7cfa978dee1835 |