Skip to content

Type definitions#

Index > AutoScalingPlans > Type definitions

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

TimestampTypeDef#

# TimestampTypeDef Union usage example

from mypy_boto3_autoscaling_plans.type_defs import TimestampTypeDef


def get_value() -> TimestampTypeDef:
    return ...


# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime.datetime,
    str,
]

TagFilterUnionTypeDef#

# TagFilterUnionTypeDef Union usage example

from mypy_boto3_autoscaling_plans.type_defs import TagFilterUnionTypeDef


def get_value() -> TagFilterUnionTypeDef:
    return ...


# TagFilterUnionTypeDef definition

TagFilterUnionTypeDef = Union[
    TagFilterTypeDef,  # (1)
    TagFilterOutputTypeDef,  # (2)
]
  1. See TagFilterTypeDef
  2. See TagFilterOutputTypeDef

CustomizedLoadMetricSpecificationUnionTypeDef#

# CustomizedLoadMetricSpecificationUnionTypeDef Union usage example

from mypy_boto3_autoscaling_plans.type_defs import CustomizedLoadMetricSpecificationUnionTypeDef


def get_value() -> CustomizedLoadMetricSpecificationUnionTypeDef:
    return ...


# CustomizedLoadMetricSpecificationUnionTypeDef definition

CustomizedLoadMetricSpecificationUnionTypeDef = Union[
    CustomizedLoadMetricSpecificationTypeDef,  # (1)
    CustomizedLoadMetricSpecificationOutputTypeDef,  # (2)
]
  1. See CustomizedLoadMetricSpecificationTypeDef
  2. See CustomizedLoadMetricSpecificationOutputTypeDef

CustomizedScalingMetricSpecificationUnionTypeDef#

# CustomizedScalingMetricSpecificationUnionTypeDef Union usage example

from mypy_boto3_autoscaling_plans.type_defs import CustomizedScalingMetricSpecificationUnionTypeDef


def get_value() -> CustomizedScalingMetricSpecificationUnionTypeDef:
    return ...


# CustomizedScalingMetricSpecificationUnionTypeDef definition

CustomizedScalingMetricSpecificationUnionTypeDef = Union[
    CustomizedScalingMetricSpecificationTypeDef,  # (1)
    CustomizedScalingMetricSpecificationOutputTypeDef,  # (2)
]
  1. See CustomizedScalingMetricSpecificationTypeDef
  2. See CustomizedScalingMetricSpecificationOutputTypeDef

ApplicationSourceUnionTypeDef#

# ApplicationSourceUnionTypeDef Union usage example

from mypy_boto3_autoscaling_plans.type_defs import ApplicationSourceUnionTypeDef


def get_value() -> ApplicationSourceUnionTypeDef:
    return ...


# ApplicationSourceUnionTypeDef definition

ApplicationSourceUnionTypeDef = Union[
    ApplicationSourceTypeDef,  # (1)
    ApplicationSourceOutputTypeDef,  # (2)
]
  1. See ApplicationSourceTypeDef
  2. See ApplicationSourceOutputTypeDef

TargetTrackingConfigurationUnionTypeDef#

# TargetTrackingConfigurationUnionTypeDef Union usage example

from mypy_boto3_autoscaling_plans.type_defs import TargetTrackingConfigurationUnionTypeDef


def get_value() -> TargetTrackingConfigurationUnionTypeDef:
    return ...


# TargetTrackingConfigurationUnionTypeDef definition

TargetTrackingConfigurationUnionTypeDef = Union[
    TargetTrackingConfigurationTypeDef,  # (1)
    TargetTrackingConfigurationOutputTypeDef,  # (2)
]
  1. See TargetTrackingConfigurationTypeDef
  2. See TargetTrackingConfigurationOutputTypeDef

ScalingInstructionUnionTypeDef#

# ScalingInstructionUnionTypeDef Union usage example

from mypy_boto3_autoscaling_plans.type_defs import ScalingInstructionUnionTypeDef


def get_value() -> ScalingInstructionUnionTypeDef:
    return ...


# ScalingInstructionUnionTypeDef definition

ScalingInstructionUnionTypeDef = Union[
    ScalingInstructionTypeDef,  # (1)
    ScalingInstructionOutputTypeDef,  # (2)
]
  1. See ScalingInstructionTypeDef
  2. See ScalingInstructionOutputTypeDef

TagFilterOutputTypeDef#

# TagFilterOutputTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import TagFilterOutputTypeDef


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


# TagFilterOutputTypeDef definition

class TagFilterOutputTypeDef(TypedDict):
    Key: NotRequired[str],
    Values: NotRequired[List[str]],

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import ResponseMetadataTypeDef


def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
    }


# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

MetricDimensionTypeDef#

# MetricDimensionTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import MetricDimensionTypeDef


def get_value() -> MetricDimensionTypeDef:
    return {
        "Name": ...,
    }


# MetricDimensionTypeDef definition

class MetricDimensionTypeDef(TypedDict):
    Name: str,
    Value: str,

DatapointTypeDef#

# DatapointTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import DatapointTypeDef


def get_value() -> DatapointTypeDef:
    return {
        "Timestamp": ...,
    }


# DatapointTypeDef definition

class DatapointTypeDef(TypedDict):
    Timestamp: NotRequired[datetime.datetime],
    Value: NotRequired[float],

DeleteScalingPlanRequestTypeDef#

# DeleteScalingPlanRequestTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import DeleteScalingPlanRequestTypeDef


def get_value() -> DeleteScalingPlanRequestTypeDef:
    return {
        "ScalingPlanName": ...,
    }


# DeleteScalingPlanRequestTypeDef definition

class DeleteScalingPlanRequestTypeDef(TypedDict):
    ScalingPlanName: str,
    ScalingPlanVersion: int,

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import PaginatorConfigTypeDef


def get_value() -> PaginatorConfigTypeDef:
    return {
        "MaxItems": ...,
    }


# PaginatorConfigTypeDef definition

class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

DescribeScalingPlanResourcesRequestTypeDef#

# DescribeScalingPlanResourcesRequestTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import DescribeScalingPlanResourcesRequestTypeDef


def get_value() -> DescribeScalingPlanResourcesRequestTypeDef:
    return {
        "ScalingPlanName": ...,
    }


# DescribeScalingPlanResourcesRequestTypeDef definition

class DescribeScalingPlanResourcesRequestTypeDef(TypedDict):
    ScalingPlanName: str,
    ScalingPlanVersion: int,
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],

PredefinedLoadMetricSpecificationTypeDef#

# PredefinedLoadMetricSpecificationTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import PredefinedLoadMetricSpecificationTypeDef


def get_value() -> PredefinedLoadMetricSpecificationTypeDef:
    return {
        "PredefinedLoadMetricType": ...,
    }


# PredefinedLoadMetricSpecificationTypeDef definition

class PredefinedLoadMetricSpecificationTypeDef(TypedDict):
    PredefinedLoadMetricType: LoadMetricTypeType,  # (1)
    ResourceLabel: NotRequired[str],
  1. See LoadMetricTypeType

PredefinedScalingMetricSpecificationTypeDef#

# PredefinedScalingMetricSpecificationTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import PredefinedScalingMetricSpecificationTypeDef


def get_value() -> PredefinedScalingMetricSpecificationTypeDef:
    return {
        "PredefinedScalingMetricType": ...,
    }


# PredefinedScalingMetricSpecificationTypeDef definition

class PredefinedScalingMetricSpecificationTypeDef(TypedDict):
    PredefinedScalingMetricType: ScalingMetricTypeType,  # (1)
    ResourceLabel: NotRequired[str],
  1. See ScalingMetricTypeType

TagFilterTypeDef#

# TagFilterTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import TagFilterTypeDef


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


# TagFilterTypeDef definition

class TagFilterTypeDef(TypedDict):
    Key: NotRequired[str],
    Values: NotRequired[Sequence[str]],

ApplicationSourceOutputTypeDef#

# ApplicationSourceOutputTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import ApplicationSourceOutputTypeDef


def get_value() -> ApplicationSourceOutputTypeDef:
    return {
        "CloudFormationStackARN": ...,
    }


# ApplicationSourceOutputTypeDef definition

class ApplicationSourceOutputTypeDef(TypedDict):
    CloudFormationStackARN: NotRequired[str],
    TagFilters: NotRequired[List[TagFilterOutputTypeDef]],  # (1)
  1. See List[TagFilterOutputTypeDef]

CreateScalingPlanResponseTypeDef#

# CreateScalingPlanResponseTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import CreateScalingPlanResponseTypeDef


def get_value() -> CreateScalingPlanResponseTypeDef:
    return {
        "ScalingPlanVersion": ...,
    }


# CreateScalingPlanResponseTypeDef definition

class CreateScalingPlanResponseTypeDef(TypedDict):
    ScalingPlanVersion: int,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

CustomizedLoadMetricSpecificationOutputTypeDef#

# CustomizedLoadMetricSpecificationOutputTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import CustomizedLoadMetricSpecificationOutputTypeDef


def get_value() -> CustomizedLoadMetricSpecificationOutputTypeDef:
    return {
        "MetricName": ...,
    }


# CustomizedLoadMetricSpecificationOutputTypeDef definition

class CustomizedLoadMetricSpecificationOutputTypeDef(TypedDict):
    MetricName: str,
    Namespace: str,
    Statistic: MetricStatisticType,  # (2)
    Dimensions: NotRequired[List[MetricDimensionTypeDef]],  # (1)
    Unit: NotRequired[str],
  1. See List[MetricDimensionTypeDef]
  2. See MetricStatisticType

CustomizedLoadMetricSpecificationTypeDef#

# CustomizedLoadMetricSpecificationTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import CustomizedLoadMetricSpecificationTypeDef


def get_value() -> CustomizedLoadMetricSpecificationTypeDef:
    return {
        "MetricName": ...,
    }


# CustomizedLoadMetricSpecificationTypeDef definition

class CustomizedLoadMetricSpecificationTypeDef(TypedDict):
    MetricName: str,
    Namespace: str,
    Statistic: MetricStatisticType,  # (2)
    Dimensions: NotRequired[Sequence[MetricDimensionTypeDef]],  # (1)
    Unit: NotRequired[str],
  1. See Sequence[MetricDimensionTypeDef]
  2. See MetricStatisticType

CustomizedScalingMetricSpecificationOutputTypeDef#

# CustomizedScalingMetricSpecificationOutputTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import CustomizedScalingMetricSpecificationOutputTypeDef


def get_value() -> CustomizedScalingMetricSpecificationOutputTypeDef:
    return {
        "MetricName": ...,
    }


# CustomizedScalingMetricSpecificationOutputTypeDef definition

class CustomizedScalingMetricSpecificationOutputTypeDef(TypedDict):
    MetricName: str,
    Namespace: str,
    Statistic: MetricStatisticType,  # (2)
    Dimensions: NotRequired[List[MetricDimensionTypeDef]],  # (1)
    Unit: NotRequired[str],
  1. See List[MetricDimensionTypeDef]
  2. See MetricStatisticType

CustomizedScalingMetricSpecificationTypeDef#

# CustomizedScalingMetricSpecificationTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import CustomizedScalingMetricSpecificationTypeDef


def get_value() -> CustomizedScalingMetricSpecificationTypeDef:
    return {
        "MetricName": ...,
    }


# CustomizedScalingMetricSpecificationTypeDef definition

class CustomizedScalingMetricSpecificationTypeDef(TypedDict):
    MetricName: str,
    Namespace: str,
    Statistic: MetricStatisticType,  # (2)
    Dimensions: NotRequired[Sequence[MetricDimensionTypeDef]],  # (1)
    Unit: NotRequired[str],
  1. See Sequence[MetricDimensionTypeDef]
  2. See MetricStatisticType

GetScalingPlanResourceForecastDataResponseTypeDef#

# GetScalingPlanResourceForecastDataResponseTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import GetScalingPlanResourceForecastDataResponseTypeDef


def get_value() -> GetScalingPlanResourceForecastDataResponseTypeDef:
    return {
        "Datapoints": ...,
    }


# GetScalingPlanResourceForecastDataResponseTypeDef definition

class GetScalingPlanResourceForecastDataResponseTypeDef(TypedDict):
    Datapoints: List[DatapointTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See List[DatapointTypeDef]
  2. See ResponseMetadataTypeDef

DescribeScalingPlanResourcesRequestPaginateTypeDef#

# DescribeScalingPlanResourcesRequestPaginateTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import DescribeScalingPlanResourcesRequestPaginateTypeDef


def get_value() -> DescribeScalingPlanResourcesRequestPaginateTypeDef:
    return {
        "ScalingPlanName": ...,
    }


# DescribeScalingPlanResourcesRequestPaginateTypeDef definition

class DescribeScalingPlanResourcesRequestPaginateTypeDef(TypedDict):
    ScalingPlanName: str,
    ScalingPlanVersion: int,
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

GetScalingPlanResourceForecastDataRequestTypeDef#

# GetScalingPlanResourceForecastDataRequestTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import GetScalingPlanResourceForecastDataRequestTypeDef


def get_value() -> GetScalingPlanResourceForecastDataRequestTypeDef:
    return {
        "ScalingPlanName": ...,
    }


# GetScalingPlanResourceForecastDataRequestTypeDef definition

class GetScalingPlanResourceForecastDataRequestTypeDef(TypedDict):
    ScalingPlanName: str,
    ScalingPlanVersion: int,
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ResourceId: str,
    ScalableDimension: ScalableDimensionType,  # (2)
    ForecastDataType: ForecastDataTypeType,  # (3)
    StartTime: TimestampTypeDef,
    EndTime: TimestampTypeDef,
  1. See ServiceNamespaceType
  2. See ScalableDimensionType
  3. See ForecastDataTypeType

TargetTrackingConfigurationOutputTypeDef#

# TargetTrackingConfigurationOutputTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import TargetTrackingConfigurationOutputTypeDef


def get_value() -> TargetTrackingConfigurationOutputTypeDef:
    return {
        "PredefinedScalingMetricSpecification": ...,
    }


# TargetTrackingConfigurationOutputTypeDef definition

class TargetTrackingConfigurationOutputTypeDef(TypedDict):
    TargetValue: float,
    PredefinedScalingMetricSpecification: NotRequired[PredefinedScalingMetricSpecificationTypeDef],  # (1)
    CustomizedScalingMetricSpecification: NotRequired[CustomizedScalingMetricSpecificationOutputTypeDef],  # (2)
    DisableScaleIn: NotRequired[bool],
    ScaleOutCooldown: NotRequired[int],
    ScaleInCooldown: NotRequired[int],
    EstimatedInstanceWarmup: NotRequired[int],
  1. See PredefinedScalingMetricSpecificationTypeDef
  2. See CustomizedScalingMetricSpecificationOutputTypeDef

ApplicationSourceTypeDef#

# ApplicationSourceTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import ApplicationSourceTypeDef


def get_value() -> ApplicationSourceTypeDef:
    return {
        "CloudFormationStackARN": ...,
    }


# ApplicationSourceTypeDef definition

class ApplicationSourceTypeDef(TypedDict):
    CloudFormationStackARN: NotRequired[str],
    TagFilters: NotRequired[Sequence[TagFilterUnionTypeDef]],  # (1)
  1. See Sequence[TagFilterUnionTypeDef]

ScalingInstructionOutputTypeDef#

# ScalingInstructionOutputTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import ScalingInstructionOutputTypeDef


def get_value() -> ScalingInstructionOutputTypeDef:
    return {
        "ServiceNamespace": ...,
    }


# ScalingInstructionOutputTypeDef definition

class ScalingInstructionOutputTypeDef(TypedDict):
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ResourceId: str,
    ScalableDimension: ScalableDimensionType,  # (2)
    MinCapacity: int,
    MaxCapacity: int,
    TargetTrackingConfigurations: List[TargetTrackingConfigurationOutputTypeDef],  # (3)
    PredefinedLoadMetricSpecification: NotRequired[PredefinedLoadMetricSpecificationTypeDef],  # (4)
    CustomizedLoadMetricSpecification: NotRequired[CustomizedLoadMetricSpecificationOutputTypeDef],  # (5)
    ScheduledActionBufferTime: NotRequired[int],
    PredictiveScalingMaxCapacityBehavior: NotRequired[PredictiveScalingMaxCapacityBehaviorType],  # (6)
    PredictiveScalingMaxCapacityBuffer: NotRequired[int],
    PredictiveScalingMode: NotRequired[PredictiveScalingModeType],  # (7)
    ScalingPolicyUpdateBehavior: NotRequired[ScalingPolicyUpdateBehaviorType],  # (8)
    DisableDynamicScaling: NotRequired[bool],
  1. See ServiceNamespaceType
  2. See ScalableDimensionType
  3. See List[TargetTrackingConfigurationOutputTypeDef]
  4. See PredefinedLoadMetricSpecificationTypeDef
  5. See CustomizedLoadMetricSpecificationOutputTypeDef
  6. See PredictiveScalingMaxCapacityBehaviorType
  7. See PredictiveScalingModeType
  8. See ScalingPolicyUpdateBehaviorType

ScalingPolicyTypeDef#

# ScalingPolicyTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import ScalingPolicyTypeDef


def get_value() -> ScalingPolicyTypeDef:
    return {
        "PolicyName": ...,
    }


# ScalingPolicyTypeDef definition

class ScalingPolicyTypeDef(TypedDict):
    PolicyName: str,
    PolicyType: PolicyTypeType,  # (1)
    TargetTrackingConfiguration: NotRequired[TargetTrackingConfigurationOutputTypeDef],  # (2)
  1. See PolicyTypeType
  2. See TargetTrackingConfigurationOutputTypeDef

TargetTrackingConfigurationTypeDef#

# TargetTrackingConfigurationTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import TargetTrackingConfigurationTypeDef


def get_value() -> TargetTrackingConfigurationTypeDef:
    return {
        "PredefinedScalingMetricSpecification": ...,
    }


# TargetTrackingConfigurationTypeDef definition

class TargetTrackingConfigurationTypeDef(TypedDict):
    TargetValue: float,
    PredefinedScalingMetricSpecification: NotRequired[PredefinedScalingMetricSpecificationTypeDef],  # (1)
    CustomizedScalingMetricSpecification: NotRequired[CustomizedScalingMetricSpecificationUnionTypeDef],  # (2)
    DisableScaleIn: NotRequired[bool],
    ScaleOutCooldown: NotRequired[int],
    ScaleInCooldown: NotRequired[int],
    EstimatedInstanceWarmup: NotRequired[int],
  1. See PredefinedScalingMetricSpecificationTypeDef
  2. See CustomizedScalingMetricSpecificationUnionTypeDef

ScalingPlanTypeDef#

# ScalingPlanTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import ScalingPlanTypeDef


def get_value() -> ScalingPlanTypeDef:
    return {
        "ScalingPlanName": ...,
    }


# ScalingPlanTypeDef definition

class ScalingPlanTypeDef(TypedDict):
    ScalingPlanName: str,
    ScalingPlanVersion: int,
    ApplicationSource: ApplicationSourceOutputTypeDef,  # (1)
    ScalingInstructions: List[ScalingInstructionOutputTypeDef],  # (2)
    StatusCode: ScalingPlanStatusCodeType,  # (3)
    StatusMessage: NotRequired[str],
    StatusStartTime: NotRequired[datetime.datetime],
    CreationTime: NotRequired[datetime.datetime],
  1. See ApplicationSourceOutputTypeDef
  2. See List[ScalingInstructionOutputTypeDef]
  3. See ScalingPlanStatusCodeType

ScalingPlanResourceTypeDef#

# ScalingPlanResourceTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import ScalingPlanResourceTypeDef


def get_value() -> ScalingPlanResourceTypeDef:
    return {
        "ScalingPlanName": ...,
    }


# ScalingPlanResourceTypeDef definition

class ScalingPlanResourceTypeDef(TypedDict):
    ScalingPlanName: str,
    ScalingPlanVersion: int,
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ResourceId: str,
    ScalableDimension: ScalableDimensionType,  # (2)
    ScalingStatusCode: ScalingStatusCodeType,  # (4)
    ScalingPolicies: NotRequired[List[ScalingPolicyTypeDef]],  # (3)
    ScalingStatusMessage: NotRequired[str],
  1. See ServiceNamespaceType
  2. See ScalableDimensionType
  3. See List[ScalingPolicyTypeDef]
  4. See ScalingStatusCodeType

DescribeScalingPlansRequestPaginateTypeDef#

# DescribeScalingPlansRequestPaginateTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import DescribeScalingPlansRequestPaginateTypeDef


def get_value() -> DescribeScalingPlansRequestPaginateTypeDef:
    return {
        "ScalingPlanNames": ...,
    }


# DescribeScalingPlansRequestPaginateTypeDef definition

class DescribeScalingPlansRequestPaginateTypeDef(TypedDict):
    ScalingPlanNames: NotRequired[Sequence[str]],
    ScalingPlanVersion: NotRequired[int],
    ApplicationSources: NotRequired[Sequence[ApplicationSourceUnionTypeDef]],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See Sequence[ApplicationSourceUnionTypeDef]
  2. See PaginatorConfigTypeDef

DescribeScalingPlansRequestTypeDef#

# DescribeScalingPlansRequestTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import DescribeScalingPlansRequestTypeDef


def get_value() -> DescribeScalingPlansRequestTypeDef:
    return {
        "ScalingPlanNames": ...,
    }


# DescribeScalingPlansRequestTypeDef definition

class DescribeScalingPlansRequestTypeDef(TypedDict):
    ScalingPlanNames: NotRequired[Sequence[str]],
    ScalingPlanVersion: NotRequired[int],
    ApplicationSources: NotRequired[Sequence[ApplicationSourceUnionTypeDef]],  # (1)
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],
  1. See Sequence[ApplicationSourceUnionTypeDef]

DescribeScalingPlansResponseTypeDef#

# DescribeScalingPlansResponseTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import DescribeScalingPlansResponseTypeDef


def get_value() -> DescribeScalingPlansResponseTypeDef:
    return {
        "ScalingPlans": ...,
    }


# DescribeScalingPlansResponseTypeDef definition

class DescribeScalingPlansResponseTypeDef(TypedDict):
    ScalingPlans: List[ScalingPlanTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See List[ScalingPlanTypeDef]
  2. See ResponseMetadataTypeDef

DescribeScalingPlanResourcesResponseTypeDef#

# DescribeScalingPlanResourcesResponseTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import DescribeScalingPlanResourcesResponseTypeDef


def get_value() -> DescribeScalingPlanResourcesResponseTypeDef:
    return {
        "ScalingPlanResources": ...,
    }


# DescribeScalingPlanResourcesResponseTypeDef definition

class DescribeScalingPlanResourcesResponseTypeDef(TypedDict):
    ScalingPlanResources: List[ScalingPlanResourceTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See List[ScalingPlanResourceTypeDef]
  2. See ResponseMetadataTypeDef

ScalingInstructionTypeDef#

# ScalingInstructionTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import ScalingInstructionTypeDef


def get_value() -> ScalingInstructionTypeDef:
    return {
        "ServiceNamespace": ...,
    }


# ScalingInstructionTypeDef definition

class ScalingInstructionTypeDef(TypedDict):
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ResourceId: str,
    ScalableDimension: ScalableDimensionType,  # (2)
    MinCapacity: int,
    MaxCapacity: int,
    TargetTrackingConfigurations: Sequence[TargetTrackingConfigurationUnionTypeDef],  # (3)
    PredefinedLoadMetricSpecification: NotRequired[PredefinedLoadMetricSpecificationTypeDef],  # (4)
    CustomizedLoadMetricSpecification: NotRequired[CustomizedLoadMetricSpecificationUnionTypeDef],  # (5)
    ScheduledActionBufferTime: NotRequired[int],
    PredictiveScalingMaxCapacityBehavior: NotRequired[PredictiveScalingMaxCapacityBehaviorType],  # (6)
    PredictiveScalingMaxCapacityBuffer: NotRequired[int],
    PredictiveScalingMode: NotRequired[PredictiveScalingModeType],  # (7)
    ScalingPolicyUpdateBehavior: NotRequired[ScalingPolicyUpdateBehaviorType],  # (8)
    DisableDynamicScaling: NotRequired[bool],
  1. See ServiceNamespaceType
  2. See ScalableDimensionType
  3. See Sequence[TargetTrackingConfigurationUnionTypeDef]
  4. See PredefinedLoadMetricSpecificationTypeDef
  5. See CustomizedLoadMetricSpecificationUnionTypeDef
  6. See PredictiveScalingMaxCapacityBehaviorType
  7. See PredictiveScalingModeType
  8. See ScalingPolicyUpdateBehaviorType

CreateScalingPlanRequestTypeDef#

# CreateScalingPlanRequestTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import CreateScalingPlanRequestTypeDef


def get_value() -> CreateScalingPlanRequestTypeDef:
    return {
        "ScalingPlanName": ...,
    }


# CreateScalingPlanRequestTypeDef definition

class CreateScalingPlanRequestTypeDef(TypedDict):
    ScalingPlanName: str,
    ApplicationSource: ApplicationSourceUnionTypeDef,  # (1)
    ScalingInstructions: Sequence[ScalingInstructionUnionTypeDef],  # (2)
  1. See ApplicationSourceUnionTypeDef
  2. See Sequence[ScalingInstructionUnionTypeDef]

UpdateScalingPlanRequestTypeDef#

# UpdateScalingPlanRequestTypeDef TypedDict usage example

from mypy_boto3_autoscaling_plans.type_defs import UpdateScalingPlanRequestTypeDef


def get_value() -> UpdateScalingPlanRequestTypeDef:
    return {
        "ScalingPlanName": ...,
    }


# UpdateScalingPlanRequestTypeDef definition

class UpdateScalingPlanRequestTypeDef(TypedDict):
    ScalingPlanName: str,
    ScalingPlanVersion: int,
    ApplicationSource: NotRequired[ApplicationSourceUnionTypeDef],  # (1)
    ScalingInstructions: NotRequired[Sequence[ScalingInstructionUnionTypeDef]],  # (2)
  1. See ApplicationSourceUnionTypeDef
  2. See Sequence[ScalingInstructionUnionTypeDef]