Skip to content

Lightsail module#

Index > Lightsail

Auto-generated documentation for Lightsail type annotations stubs module types-aiobotocore-lightsail.

How to install#

From PyPI with pip#

Install types-aiobotocore for Lightsail service.

# install with aiobotocore type annotations
python -m pip install 'types-aiobotocore[lightsail]'


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


# standalone installation
python -m pip install types-aiobotocore-lightsail

How to uninstall#

python -m pip uninstall -y types-aiobotocore-lightsail

Usage#

Code samples can be found in Examples.

LightsailClient#

Type annotations and code completion for session.create_client("lightsail") as LightsailClient boto3 documentation

# LightsailClient usage example

from aiobotocore.session import get_session

from types_aiobotocore_lightsail.client import LightsailClient


session = get_session()
async with session.create_client("lightsail") as client:
    client: LightsailClient

Paginators#

Type annotations and code completion for paginators from session.create_client("lightsail").get_paginator("...").

# GetActiveNamesPaginator usage example

from types_aiobotocore_lightsail.paginator import GetActiveNamesPaginator

def get_get_active_names_paginator() -> GetActiveNamesPaginator:
    return client.get_paginator("get_active_names"))

Literals#

Type annotations for literals used in methods and schema.

# AccessDirectionType usage example

from types_aiobotocore_lightsail.literals import AccessDirectionType

def get_value() -> AccessDirectionType:
    return "inbound"

Type definitions#

Type annotations for type definitions used in methods and schema.