Skip to content

AutoScalingPlans module

Index > AutoScalingPlans

Auto-generated documentation for AutoScalingPlans type annotations stubs module mypy-boto3-autoscaling-plans.

How to install

VSCode extension

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

Click Modify and select boto3 common and AutoScalingPlans.

From PyPI with pip

Install boto3-stubs for AutoScalingPlans service.

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


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


# standalone installation
python -m pip install mypy-boto3-autoscaling-plans

How to uninstall

python -m pip uninstall -y mypy-boto3-autoscaling-plans

Usage

Code samples can be found in Examples.

AutoScalingPlansClient

Type annotations and code completion for boto3.client("autoscaling-plans") as AutoScalingPlansClient boto3 documentation

Usage example
from boto3.session import Session

from mypy_boto3_autoscaling_plans.client import AutoScalingPlansClient

def get_client() -> AutoScalingPlansClient:
    return Session().client("autoscaling-plans")

Paginators

Type annotations and code completion for paginators from boto3.client("autoscaling-plans").get_paginator("...").

Usage example
from boto3.session import Session

from mypy_boto3_autoscaling_plans.paginator import DescribeScalingPlanResourcesPaginator

def get_describe_scaling_plan_resources_paginator() -> DescribeScalingPlanResourcesPaginator:
    return Session().client("autoscaling-plans").get_paginator("describe_scaling_plan_resources"))

Literals

Type annotations for literals used in methods and schemas.

Usage example
from mypy_boto3_autoscaling_plans.literals import DescribeScalingPlanResourcesPaginatorName

def get_value() -> DescribeScalingPlanResourcesPaginatorName:
    return "describe_scaling_plan_resources"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from mypy_boto3_autoscaling_plans.type_defs import TagFilterTypeDef

def get_value() -> TagFilterTypeDef:
    return {
        "Key": ...,
    }