Skip to content

Interconnect module#

Index > Interconnect

Auto-generated documentation for Interconnect type annotations stubs module mypy-boto3-interconnect.

How to install#

You can generate type annotations for boto3 package locally with mypy-boto3-builder. Use uv for build isolation.

  1. Run mypy-boto3-builder in your package root directory: uvx --with 'boto3==1.42.89' mypy-boto3-builder
  2. Select boto3-stubs AWS SDK.
  3. Add Interconnect service.
  4. Use provided commands to install generated packages.

VSCode extension#

Add AWS Boto3 extension to your VSCode and run AWS boto3: Quick Start command.

Click Modify and select boto3 common and Interconnect.

From PyPI with pip#

Install boto3-stubs for Interconnect service.

# install with boto3 type annotations
python -m pip install 'boto3-stubs[interconnect]'

# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'boto3-stubs-lite[interconnect]'

# standalone installation
python -m pip install mypy-boto3-interconnect

How to uninstall#

python -m pip uninstall -y mypy-boto3-interconnect

Usage#

Code samples can be found in Examples.

InterconnectClient#

Type annotations and code completion for boto3.client("interconnect") as InterconnectClient boto3 documentation

# InterconnectClient usage example

from boto3.session import Session

from mypy_boto3_interconnect.client import InterconnectClient

def get_client() -> InterconnectClient:
    return Session().client("interconnect")

Paginators#

Type annotations and code completion for paginators from boto3.client("interconnect").get_paginator("...").

# ListAttachPointsPaginator usage example

from boto3.session import Session

from mypy_boto3_interconnect.paginator import ListAttachPointsPaginator

def get_list_attach_points_paginator() -> ListAttachPointsPaginator:
    return Session().client("interconnect").get_paginator("list_attach_points"))

Waiters#

Type annotations and code completion for waiters from boto3.client("interconnect").get_waiter("...").

# ConnectionAvailableWaiter usage example

from boto3.session import Session

from mypy_boto3_interconnect.waiter import ConnectionAvailableWaiter

def get_connection_available_waiter() -> ConnectionAvailableWaiter:
    return Session().client("interconnect").get_waiter("connection_available")

Literals#

Type annotations for literals used in methods and schema.

# AttachPointTypeType usage example

from mypy_boto3_interconnect.literals import AttachPointTypeType

def get_value() -> AttachPointTypeType:
    return "DirectConnectGateway"

Type definitions#

Type annotations for type definitions used in methods and schema.