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-aioboto3 for Lightsail service.

# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[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-aioboto3-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.client("lightsail") as LightsailClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_lightsail.client import LightsailClient


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

Paginators

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

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.

Usage example
from types_aiobotocore_lightsail.literals import AccessDirectionType

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

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_lightsail.type_defs import AccessKeyLastUsedTypeDef

def get_value() -> AccessKeyLastUsedTypeDef:
    return {
        "lastUsedDate": ...,
    }