Skip to content

SavingsPlans module

Index > SavingsPlans

Auto-generated documentation for SavingsPlans type annotations stubs module types-aiobotocore-savingsplans.

How to install

From PyPI with pip

Install types-aioboto3 for SavingsPlans service.

# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[savingsplans]'


# 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[savingsplans]'


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

How to uninstall

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

Usage

Code samples can be found in Examples.

SavingsPlansClient

Type annotations and code completion for session.client("savingsplans") as SavingsPlansClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_savingsplans.client import SavingsPlansClient


session = Session()
async with session.client("savingsplans") as client:
    client: SavingsPlansClient

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_savingsplans.literals import CurrencyCodeType

def get_value() -> CurrencyCodeType:
    return "CNY"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_savingsplans.type_defs import CreateSavingsPlanRequestRequestTypeDef

def get_value() -> CreateSavingsPlanRequestRequestTypeDef:
    return {
        "savingsPlanOfferingId": ...,
        "commitment": ...,
    }