Skip to content

Type definitions#

Index > ApplicationAutoScaling > Type definitions

Auto-generated documentation for ApplicationAutoScaling type annotations stubs module mypy-boto3-application-autoscaling.

TimestampTypeDef#

# TimestampTypeDef Union usage example

from mypy_boto3_application_autoscaling.type_defs import TimestampTypeDef


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


# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime.datetime,
    str,
]

StepScalingPolicyConfigurationUnionTypeDef#

# StepScalingPolicyConfigurationUnionTypeDef Union usage example

from mypy_boto3_application_autoscaling.type_defs import StepScalingPolicyConfigurationUnionTypeDef


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


# StepScalingPolicyConfigurationUnionTypeDef definition

StepScalingPolicyConfigurationUnionTypeDef = Union[
    StepScalingPolicyConfigurationTypeDef,  # (1)
    StepScalingPolicyConfigurationOutputTypeDef,  # (2)
]
  1. See StepScalingPolicyConfigurationTypeDef
  2. See StepScalingPolicyConfigurationOutputTypeDef

TargetTrackingScalingPolicyConfigurationUnionTypeDef#

# TargetTrackingScalingPolicyConfigurationUnionTypeDef Union usage example

from mypy_boto3_application_autoscaling.type_defs import TargetTrackingScalingPolicyConfigurationUnionTypeDef


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


# TargetTrackingScalingPolicyConfigurationUnionTypeDef definition

TargetTrackingScalingPolicyConfigurationUnionTypeDef = Union[
    TargetTrackingScalingPolicyConfigurationTypeDef,  # (1)
    TargetTrackingScalingPolicyConfigurationOutputTypeDef,  # (2)
]
  1. See TargetTrackingScalingPolicyConfigurationTypeDef
  2. See TargetTrackingScalingPolicyConfigurationOutputTypeDef

PredictiveScalingPolicyConfigurationUnionTypeDef#

# PredictiveScalingPolicyConfigurationUnionTypeDef Union usage example

from mypy_boto3_application_autoscaling.type_defs import PredictiveScalingPolicyConfigurationUnionTypeDef


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


# PredictiveScalingPolicyConfigurationUnionTypeDef definition

PredictiveScalingPolicyConfigurationUnionTypeDef = Union[
    PredictiveScalingPolicyConfigurationTypeDef,  # (1)
    PredictiveScalingPolicyConfigurationOutputTypeDef,  # (2)
]
  1. See PredictiveScalingPolicyConfigurationTypeDef
  2. See PredictiveScalingPolicyConfigurationOutputTypeDef

AlarmTypeDef#

# AlarmTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import AlarmTypeDef


def get_value() -> AlarmTypeDef:
    return {
        "AlarmName": ...,
    }


# AlarmTypeDef definition

class AlarmTypeDef(TypedDict):
    AlarmName: str,
    AlarmARN: str,

CapacityForecastTypeDef#

# CapacityForecastTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import CapacityForecastTypeDef


def get_value() -> CapacityForecastTypeDef:
    return {
        "Timestamps": ...,
    }


# CapacityForecastTypeDef definition

class CapacityForecastTypeDef(TypedDict):
    Timestamps: List[datetime.datetime],
    Values: List[float],

MetricDimensionTypeDef#

# MetricDimensionTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import MetricDimensionTypeDef


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


# MetricDimensionTypeDef definition

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

DeleteScalingPolicyRequestTypeDef#

# DeleteScalingPolicyRequestTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import DeleteScalingPolicyRequestTypeDef


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


# DeleteScalingPolicyRequestTypeDef definition

class DeleteScalingPolicyRequestTypeDef(TypedDict):
    PolicyName: str,
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ResourceId: str,
    ScalableDimension: ScalableDimensionType,  # (2)
  1. See ServiceNamespaceType
  2. See ScalableDimensionType

DeleteScheduledActionRequestTypeDef#

# DeleteScheduledActionRequestTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import DeleteScheduledActionRequestTypeDef


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


# DeleteScheduledActionRequestTypeDef definition

class DeleteScheduledActionRequestTypeDef(TypedDict):
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ScheduledActionName: str,
    ResourceId: str,
    ScalableDimension: ScalableDimensionType,  # (2)
  1. See ServiceNamespaceType
  2. See ScalableDimensionType

DeregisterScalableTargetRequestTypeDef#

# DeregisterScalableTargetRequestTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import DeregisterScalableTargetRequestTypeDef


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


# DeregisterScalableTargetRequestTypeDef definition

class DeregisterScalableTargetRequestTypeDef(TypedDict):
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ResourceId: str,
    ScalableDimension: ScalableDimensionType,  # (2)
  1. See ServiceNamespaceType
  2. See ScalableDimensionType

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PaginatorConfigTypeDef


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


# PaginatorConfigTypeDef definition

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

DescribeScalableTargetsRequestTypeDef#

# DescribeScalableTargetsRequestTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScalableTargetsRequestTypeDef


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


# DescribeScalableTargetsRequestTypeDef definition

class DescribeScalableTargetsRequestTypeDef(TypedDict):
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ResourceIds: NotRequired[Sequence[str]],
    ScalableDimension: NotRequired[ScalableDimensionType],  # (2)
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],
  1. See ServiceNamespaceType
  2. See ScalableDimensionType

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.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],

DescribeScalingActivitiesRequestTypeDef#

# DescribeScalingActivitiesRequestTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScalingActivitiesRequestTypeDef


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


# DescribeScalingActivitiesRequestTypeDef definition

class DescribeScalingActivitiesRequestTypeDef(TypedDict):
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ResourceId: NotRequired[str],
    ScalableDimension: NotRequired[ScalableDimensionType],  # (2)
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],
    IncludeNotScaledActivities: NotRequired[bool],
  1. See ServiceNamespaceType
  2. See ScalableDimensionType

DescribeScalingPoliciesRequestTypeDef#

# DescribeScalingPoliciesRequestTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScalingPoliciesRequestTypeDef


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


# DescribeScalingPoliciesRequestTypeDef definition

class DescribeScalingPoliciesRequestTypeDef(TypedDict):
    ServiceNamespace: ServiceNamespaceType,  # (1)
    PolicyNames: NotRequired[Sequence[str]],
    ResourceId: NotRequired[str],
    ScalableDimension: NotRequired[ScalableDimensionType],  # (2)
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],
  1. See ServiceNamespaceType
  2. See ScalableDimensionType

DescribeScheduledActionsRequestTypeDef#

# DescribeScheduledActionsRequestTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScheduledActionsRequestTypeDef


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


# DescribeScheduledActionsRequestTypeDef definition

class DescribeScheduledActionsRequestTypeDef(TypedDict):
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ScheduledActionNames: NotRequired[Sequence[str]],
    ResourceId: NotRequired[str],
    ScalableDimension: NotRequired[ScalableDimensionType],  # (2)
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],
  1. See ServiceNamespaceType
  2. See ScalableDimensionType

ListTagsForResourceRequestTypeDef#

# ListTagsForResourceRequestTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import ListTagsForResourceRequestTypeDef


def get_value() -> ListTagsForResourceRequestTypeDef:
    return {
        "ResourceARN": ...,
    }


# ListTagsForResourceRequestTypeDef definition

class ListTagsForResourceRequestTypeDef(TypedDict):
    ResourceARN: str,

NotScaledReasonTypeDef#

# NotScaledReasonTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import NotScaledReasonTypeDef


def get_value() -> NotScaledReasonTypeDef:
    return {
        "Code": ...,
    }


# NotScaledReasonTypeDef definition

class NotScaledReasonTypeDef(TypedDict):
    Code: str,
    MaxCapacity: NotRequired[int],
    MinCapacity: NotRequired[int],
    CurrentCapacity: NotRequired[int],

PredefinedMetricSpecificationTypeDef#

# PredefinedMetricSpecificationTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PredefinedMetricSpecificationTypeDef


def get_value() -> PredefinedMetricSpecificationTypeDef:
    return {
        "PredefinedMetricType": ...,
    }


# PredefinedMetricSpecificationTypeDef definition

class PredefinedMetricSpecificationTypeDef(TypedDict):
    PredefinedMetricType: MetricTypeType,  # (1)
    ResourceLabel: NotRequired[str],
  1. See MetricTypeType

PredictiveScalingMetricDimensionTypeDef#

# PredictiveScalingMetricDimensionTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PredictiveScalingMetricDimensionTypeDef


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


# PredictiveScalingMetricDimensionTypeDef definition

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

PredictiveScalingPredefinedLoadMetricSpecificationTypeDef#

# PredictiveScalingPredefinedLoadMetricSpecificationTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PredictiveScalingPredefinedLoadMetricSpecificationTypeDef


def get_value() -> PredictiveScalingPredefinedLoadMetricSpecificationTypeDef:
    return {
        "PredefinedMetricType": ...,
    }


# PredictiveScalingPredefinedLoadMetricSpecificationTypeDef definition

class PredictiveScalingPredefinedLoadMetricSpecificationTypeDef(TypedDict):
    PredefinedMetricType: str,
    ResourceLabel: NotRequired[str],

PredictiveScalingPredefinedMetricPairSpecificationTypeDef#

# PredictiveScalingPredefinedMetricPairSpecificationTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PredictiveScalingPredefinedMetricPairSpecificationTypeDef


def get_value() -> PredictiveScalingPredefinedMetricPairSpecificationTypeDef:
    return {
        "PredefinedMetricType": ...,
    }


# PredictiveScalingPredefinedMetricPairSpecificationTypeDef definition

class PredictiveScalingPredefinedMetricPairSpecificationTypeDef(TypedDict):
    PredefinedMetricType: str,
    ResourceLabel: NotRequired[str],

PredictiveScalingPredefinedScalingMetricSpecificationTypeDef#

# PredictiveScalingPredefinedScalingMetricSpecificationTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PredictiveScalingPredefinedScalingMetricSpecificationTypeDef


def get_value() -> PredictiveScalingPredefinedScalingMetricSpecificationTypeDef:
    return {
        "PredefinedMetricType": ...,
    }


# PredictiveScalingPredefinedScalingMetricSpecificationTypeDef definition

class PredictiveScalingPredefinedScalingMetricSpecificationTypeDef(TypedDict):
    PredefinedMetricType: str,
    ResourceLabel: NotRequired[str],

ScalableTargetActionTypeDef#

# ScalableTargetActionTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import ScalableTargetActionTypeDef


def get_value() -> ScalableTargetActionTypeDef:
    return {
        "MinCapacity": ...,
    }


# ScalableTargetActionTypeDef definition

class ScalableTargetActionTypeDef(TypedDict):
    MinCapacity: NotRequired[int],
    MaxCapacity: NotRequired[int],

SuspendedStateTypeDef#

# SuspendedStateTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import SuspendedStateTypeDef


def get_value() -> SuspendedStateTypeDef:
    return {
        "DynamicScalingInSuspended": ...,
    }


# SuspendedStateTypeDef definition

class SuspendedStateTypeDef(TypedDict):
    DynamicScalingInSuspended: NotRequired[bool],
    DynamicScalingOutSuspended: NotRequired[bool],
    ScheduledScalingSuspended: NotRequired[bool],

StepAdjustmentTypeDef#

# StepAdjustmentTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import StepAdjustmentTypeDef


def get_value() -> StepAdjustmentTypeDef:
    return {
        "MetricIntervalLowerBound": ...,
    }


# StepAdjustmentTypeDef definition

class StepAdjustmentTypeDef(TypedDict):
    ScalingAdjustment: int,
    MetricIntervalLowerBound: NotRequired[float],
    MetricIntervalUpperBound: NotRequired[float],

TagResourceRequestTypeDef#

# TagResourceRequestTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import TagResourceRequestTypeDef


def get_value() -> TagResourceRequestTypeDef:
    return {
        "ResourceARN": ...,
    }


# TagResourceRequestTypeDef definition

class TagResourceRequestTypeDef(TypedDict):
    ResourceARN: str,
    Tags: Mapping[str, str],

TargetTrackingMetricDimensionTypeDef#

# TargetTrackingMetricDimensionTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import TargetTrackingMetricDimensionTypeDef


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


# TargetTrackingMetricDimensionTypeDef definition

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

UntagResourceRequestTypeDef#

# UntagResourceRequestTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import UntagResourceRequestTypeDef


def get_value() -> UntagResourceRequestTypeDef:
    return {
        "ResourceARN": ...,
    }


# UntagResourceRequestTypeDef definition

class UntagResourceRequestTypeDef(TypedDict):
    ResourceARN: str,
    TagKeys: Sequence[str],

DescribeScalableTargetsRequestPaginateTypeDef#

# DescribeScalableTargetsRequestPaginateTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScalableTargetsRequestPaginateTypeDef


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


# DescribeScalableTargetsRequestPaginateTypeDef definition

class DescribeScalableTargetsRequestPaginateTypeDef(TypedDict):
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ResourceIds: NotRequired[Sequence[str]],
    ScalableDimension: NotRequired[ScalableDimensionType],  # (2)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See ServiceNamespaceType
  2. See ScalableDimensionType
  3. See PaginatorConfigTypeDef

DescribeScalingActivitiesRequestPaginateTypeDef#

# DescribeScalingActivitiesRequestPaginateTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScalingActivitiesRequestPaginateTypeDef


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


# DescribeScalingActivitiesRequestPaginateTypeDef definition

class DescribeScalingActivitiesRequestPaginateTypeDef(TypedDict):
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ResourceId: NotRequired[str],
    ScalableDimension: NotRequired[ScalableDimensionType],  # (2)
    IncludeNotScaledActivities: NotRequired[bool],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See ServiceNamespaceType
  2. See ScalableDimensionType
  3. See PaginatorConfigTypeDef

DescribeScalingPoliciesRequestPaginateTypeDef#

# DescribeScalingPoliciesRequestPaginateTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScalingPoliciesRequestPaginateTypeDef


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


# DescribeScalingPoliciesRequestPaginateTypeDef definition

class DescribeScalingPoliciesRequestPaginateTypeDef(TypedDict):
    ServiceNamespace: ServiceNamespaceType,  # (1)
    PolicyNames: NotRequired[Sequence[str]],
    ResourceId: NotRequired[str],
    ScalableDimension: NotRequired[ScalableDimensionType],  # (2)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See ServiceNamespaceType
  2. See ScalableDimensionType
  3. See PaginatorConfigTypeDef

DescribeScheduledActionsRequestPaginateTypeDef#

# DescribeScheduledActionsRequestPaginateTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScheduledActionsRequestPaginateTypeDef


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


# DescribeScheduledActionsRequestPaginateTypeDef definition

class DescribeScheduledActionsRequestPaginateTypeDef(TypedDict):
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ScheduledActionNames: NotRequired[Sequence[str]],
    ResourceId: NotRequired[str],
    ScalableDimension: NotRequired[ScalableDimensionType],  # (2)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See ServiceNamespaceType
  2. See ScalableDimensionType
  3. See PaginatorConfigTypeDef

ListTagsForResourceResponseTypeDef#

# ListTagsForResourceResponseTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import ListTagsForResourceResponseTypeDef


def get_value() -> ListTagsForResourceResponseTypeDef:
    return {
        "Tags": ...,
    }


# ListTagsForResourceResponseTypeDef definition

class ListTagsForResourceResponseTypeDef(TypedDict):
    Tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

PutScalingPolicyResponseTypeDef#

# PutScalingPolicyResponseTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PutScalingPolicyResponseTypeDef


def get_value() -> PutScalingPolicyResponseTypeDef:
    return {
        "PolicyARN": ...,
    }


# PutScalingPolicyResponseTypeDef definition

class PutScalingPolicyResponseTypeDef(TypedDict):
    PolicyARN: str,
    Alarms: List[AlarmTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See List[AlarmTypeDef]
  2. See ResponseMetadataTypeDef

RegisterScalableTargetResponseTypeDef#

# RegisterScalableTargetResponseTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import RegisterScalableTargetResponseTypeDef


def get_value() -> RegisterScalableTargetResponseTypeDef:
    return {
        "ScalableTargetARN": ...,
    }


# RegisterScalableTargetResponseTypeDef definition

class RegisterScalableTargetResponseTypeDef(TypedDict):
    ScalableTargetARN: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetPredictiveScalingForecastRequestTypeDef#

# GetPredictiveScalingForecastRequestTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import GetPredictiveScalingForecastRequestTypeDef


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


# GetPredictiveScalingForecastRequestTypeDef definition

class GetPredictiveScalingForecastRequestTypeDef(TypedDict):
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ResourceId: str,
    ScalableDimension: ScalableDimensionType,  # (2)
    PolicyName: str,
    StartTime: TimestampTypeDef,
    EndTime: TimestampTypeDef,
  1. See ServiceNamespaceType
  2. See ScalableDimensionType

ScalingActivityTypeDef#

# ScalingActivityTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import ScalingActivityTypeDef


def get_value() -> ScalingActivityTypeDef:
    return {
        "ActivityId": ...,
    }


# ScalingActivityTypeDef definition

class ScalingActivityTypeDef(TypedDict):
    ActivityId: str,
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ResourceId: str,
    ScalableDimension: ScalableDimensionType,  # (2)
    Description: str,
    Cause: str,
    StartTime: datetime.datetime,
    StatusCode: ScalingActivityStatusCodeType,  # (3)
    EndTime: NotRequired[datetime.datetime],
    StatusMessage: NotRequired[str],
    Details: NotRequired[str],
    NotScaledReasons: NotRequired[List[NotScaledReasonTypeDef]],  # (4)
  1. See ServiceNamespaceType
  2. See ScalableDimensionType
  3. See ScalingActivityStatusCodeType
  4. See List[NotScaledReasonTypeDef]

PredictiveScalingMetricOutputTypeDef#

# PredictiveScalingMetricOutputTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PredictiveScalingMetricOutputTypeDef


def get_value() -> PredictiveScalingMetricOutputTypeDef:
    return {
        "Dimensions": ...,
    }


# PredictiveScalingMetricOutputTypeDef definition

class PredictiveScalingMetricOutputTypeDef(TypedDict):
    Dimensions: NotRequired[List[PredictiveScalingMetricDimensionTypeDef]],  # (1)
    MetricName: NotRequired[str],
    Namespace: NotRequired[str],
  1. See List[PredictiveScalingMetricDimensionTypeDef]

PredictiveScalingMetricTypeDef#

# PredictiveScalingMetricTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PredictiveScalingMetricTypeDef


def get_value() -> PredictiveScalingMetricTypeDef:
    return {
        "Dimensions": ...,
    }


# PredictiveScalingMetricTypeDef definition

class PredictiveScalingMetricTypeDef(TypedDict):
    Dimensions: NotRequired[Sequence[PredictiveScalingMetricDimensionTypeDef]],  # (1)
    MetricName: NotRequired[str],
    Namespace: NotRequired[str],
  1. See Sequence[PredictiveScalingMetricDimensionTypeDef]

PutScheduledActionRequestTypeDef#

# PutScheduledActionRequestTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PutScheduledActionRequestTypeDef


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


# PutScheduledActionRequestTypeDef definition

class PutScheduledActionRequestTypeDef(TypedDict):
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ScheduledActionName: str,
    ResourceId: str,
    ScalableDimension: ScalableDimensionType,  # (2)
    Schedule: NotRequired[str],
    Timezone: NotRequired[str],
    StartTime: NotRequired[TimestampTypeDef],
    EndTime: NotRequired[TimestampTypeDef],
    ScalableTargetAction: NotRequired[ScalableTargetActionTypeDef],  # (3)
  1. See ServiceNamespaceType
  2. See ScalableDimensionType
  3. See ScalableTargetActionTypeDef

ScheduledActionTypeDef#

# ScheduledActionTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import ScheduledActionTypeDef


def get_value() -> ScheduledActionTypeDef:
    return {
        "ScheduledActionName": ...,
    }


# ScheduledActionTypeDef definition

class ScheduledActionTypeDef(TypedDict):
    ScheduledActionName: str,
    ScheduledActionARN: str,
    ServiceNamespace: ServiceNamespaceType,  # (1)
    Schedule: str,
    ResourceId: str,
    CreationTime: datetime.datetime,
    Timezone: NotRequired[str],
    ScalableDimension: NotRequired[ScalableDimensionType],  # (2)
    StartTime: NotRequired[datetime.datetime],
    EndTime: NotRequired[datetime.datetime],
    ScalableTargetAction: NotRequired[ScalableTargetActionTypeDef],  # (3)
  1. See ServiceNamespaceType
  2. See ScalableDimensionType
  3. See ScalableTargetActionTypeDef

RegisterScalableTargetRequestTypeDef#

# RegisterScalableTargetRequestTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import RegisterScalableTargetRequestTypeDef


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


# RegisterScalableTargetRequestTypeDef definition

class RegisterScalableTargetRequestTypeDef(TypedDict):
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ResourceId: str,
    ScalableDimension: ScalableDimensionType,  # (2)
    MinCapacity: NotRequired[int],
    MaxCapacity: NotRequired[int],
    RoleARN: NotRequired[str],
    SuspendedState: NotRequired[SuspendedStateTypeDef],  # (3)
    Tags: NotRequired[Mapping[str, str]],
  1. See ServiceNamespaceType
  2. See ScalableDimensionType
  3. See SuspendedStateTypeDef

ScalableTargetTypeDef#

# ScalableTargetTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import ScalableTargetTypeDef


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


# ScalableTargetTypeDef definition

class ScalableTargetTypeDef(TypedDict):
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ResourceId: str,
    ScalableDimension: ScalableDimensionType,  # (2)
    MinCapacity: int,
    MaxCapacity: int,
    RoleARN: str,
    CreationTime: datetime.datetime,
    PredictedCapacity: NotRequired[int],
    SuspendedState: NotRequired[SuspendedStateTypeDef],  # (3)
    ScalableTargetARN: NotRequired[str],
  1. See ServiceNamespaceType
  2. See ScalableDimensionType
  3. See SuspendedStateTypeDef

StepScalingPolicyConfigurationOutputTypeDef#

# StepScalingPolicyConfigurationOutputTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import StepScalingPolicyConfigurationOutputTypeDef


def get_value() -> StepScalingPolicyConfigurationOutputTypeDef:
    return {
        "AdjustmentType": ...,
    }


# StepScalingPolicyConfigurationOutputTypeDef definition

class StepScalingPolicyConfigurationOutputTypeDef(TypedDict):
    AdjustmentType: NotRequired[AdjustmentTypeType],  # (1)
    StepAdjustments: NotRequired[List[StepAdjustmentTypeDef]],  # (2)
    MinAdjustmentMagnitude: NotRequired[int],
    Cooldown: NotRequired[int],
    MetricAggregationType: NotRequired[MetricAggregationTypeType],  # (3)
  1. See AdjustmentTypeType
  2. See List[StepAdjustmentTypeDef]
  3. See MetricAggregationTypeType

StepScalingPolicyConfigurationTypeDef#

# StepScalingPolicyConfigurationTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import StepScalingPolicyConfigurationTypeDef


def get_value() -> StepScalingPolicyConfigurationTypeDef:
    return {
        "AdjustmentType": ...,
    }


# StepScalingPolicyConfigurationTypeDef definition

class StepScalingPolicyConfigurationTypeDef(TypedDict):
    AdjustmentType: NotRequired[AdjustmentTypeType],  # (1)
    StepAdjustments: NotRequired[Sequence[StepAdjustmentTypeDef]],  # (2)
    MinAdjustmentMagnitude: NotRequired[int],
    Cooldown: NotRequired[int],
    MetricAggregationType: NotRequired[MetricAggregationTypeType],  # (3)
  1. See AdjustmentTypeType
  2. See Sequence[StepAdjustmentTypeDef]
  3. See MetricAggregationTypeType

TargetTrackingMetricOutputTypeDef#

# TargetTrackingMetricOutputTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import TargetTrackingMetricOutputTypeDef


def get_value() -> TargetTrackingMetricOutputTypeDef:
    return {
        "Dimensions": ...,
    }


# TargetTrackingMetricOutputTypeDef definition

class TargetTrackingMetricOutputTypeDef(TypedDict):
    Dimensions: NotRequired[List[TargetTrackingMetricDimensionTypeDef]],  # (1)
    MetricName: NotRequired[str],
    Namespace: NotRequired[str],
  1. See List[TargetTrackingMetricDimensionTypeDef]

TargetTrackingMetricTypeDef#

# TargetTrackingMetricTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import TargetTrackingMetricTypeDef


def get_value() -> TargetTrackingMetricTypeDef:
    return {
        "Dimensions": ...,
    }


# TargetTrackingMetricTypeDef definition

class TargetTrackingMetricTypeDef(TypedDict):
    Dimensions: NotRequired[Sequence[TargetTrackingMetricDimensionTypeDef]],  # (1)
    MetricName: NotRequired[str],
    Namespace: NotRequired[str],
  1. See Sequence[TargetTrackingMetricDimensionTypeDef]

DescribeScalingActivitiesResponseTypeDef#

# DescribeScalingActivitiesResponseTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScalingActivitiesResponseTypeDef


def get_value() -> DescribeScalingActivitiesResponseTypeDef:
    return {
        "ScalingActivities": ...,
    }


# DescribeScalingActivitiesResponseTypeDef definition

class DescribeScalingActivitiesResponseTypeDef(TypedDict):
    ScalingActivities: List[ScalingActivityTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See List[ScalingActivityTypeDef]
  2. See ResponseMetadataTypeDef

PredictiveScalingMetricStatOutputTypeDef#

# PredictiveScalingMetricStatOutputTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PredictiveScalingMetricStatOutputTypeDef


def get_value() -> PredictiveScalingMetricStatOutputTypeDef:
    return {
        "Metric": ...,
    }


# PredictiveScalingMetricStatOutputTypeDef definition

class PredictiveScalingMetricStatOutputTypeDef(TypedDict):
    Metric: PredictiveScalingMetricOutputTypeDef,  # (1)
    Stat: str,
    Unit: NotRequired[str],
  1. See PredictiveScalingMetricOutputTypeDef

PredictiveScalingMetricStatTypeDef#

# PredictiveScalingMetricStatTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PredictiveScalingMetricStatTypeDef


def get_value() -> PredictiveScalingMetricStatTypeDef:
    return {
        "Metric": ...,
    }


# PredictiveScalingMetricStatTypeDef definition

class PredictiveScalingMetricStatTypeDef(TypedDict):
    Metric: PredictiveScalingMetricTypeDef,  # (1)
    Stat: str,
    Unit: NotRequired[str],
  1. See PredictiveScalingMetricTypeDef

DescribeScheduledActionsResponseTypeDef#

# DescribeScheduledActionsResponseTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScheduledActionsResponseTypeDef


def get_value() -> DescribeScheduledActionsResponseTypeDef:
    return {
        "ScheduledActions": ...,
    }


# DescribeScheduledActionsResponseTypeDef definition

class DescribeScheduledActionsResponseTypeDef(TypedDict):
    ScheduledActions: List[ScheduledActionTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See List[ScheduledActionTypeDef]
  2. See ResponseMetadataTypeDef

DescribeScalableTargetsResponseTypeDef#

# DescribeScalableTargetsResponseTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScalableTargetsResponseTypeDef


def get_value() -> DescribeScalableTargetsResponseTypeDef:
    return {
        "ScalableTargets": ...,
    }


# DescribeScalableTargetsResponseTypeDef definition

class DescribeScalableTargetsResponseTypeDef(TypedDict):
    ScalableTargets: List[ScalableTargetTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See List[ScalableTargetTypeDef]
  2. See ResponseMetadataTypeDef

TargetTrackingMetricStatOutputTypeDef#

# TargetTrackingMetricStatOutputTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import TargetTrackingMetricStatOutputTypeDef


def get_value() -> TargetTrackingMetricStatOutputTypeDef:
    return {
        "Metric": ...,
    }


# TargetTrackingMetricStatOutputTypeDef definition

class TargetTrackingMetricStatOutputTypeDef(TypedDict):
    Metric: TargetTrackingMetricOutputTypeDef,  # (1)
    Stat: str,
    Unit: NotRequired[str],
  1. See TargetTrackingMetricOutputTypeDef

TargetTrackingMetricStatTypeDef#

# TargetTrackingMetricStatTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import TargetTrackingMetricStatTypeDef


def get_value() -> TargetTrackingMetricStatTypeDef:
    return {
        "Metric": ...,
    }


# TargetTrackingMetricStatTypeDef definition

class TargetTrackingMetricStatTypeDef(TypedDict):
    Metric: TargetTrackingMetricTypeDef,  # (1)
    Stat: str,
    Unit: NotRequired[str],
  1. See TargetTrackingMetricTypeDef

PredictiveScalingMetricDataQueryOutputTypeDef#

# PredictiveScalingMetricDataQueryOutputTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PredictiveScalingMetricDataQueryOutputTypeDef


def get_value() -> PredictiveScalingMetricDataQueryOutputTypeDef:
    return {
        "Id": ...,
    }


# PredictiveScalingMetricDataQueryOutputTypeDef definition

class PredictiveScalingMetricDataQueryOutputTypeDef(TypedDict):
    Id: str,
    Expression: NotRequired[str],
    MetricStat: NotRequired[PredictiveScalingMetricStatOutputTypeDef],  # (1)
    Label: NotRequired[str],
    ReturnData: NotRequired[bool],
  1. See PredictiveScalingMetricStatOutputTypeDef

PredictiveScalingMetricDataQueryTypeDef#

# PredictiveScalingMetricDataQueryTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PredictiveScalingMetricDataQueryTypeDef


def get_value() -> PredictiveScalingMetricDataQueryTypeDef:
    return {
        "Id": ...,
    }


# PredictiveScalingMetricDataQueryTypeDef definition

class PredictiveScalingMetricDataQueryTypeDef(TypedDict):
    Id: str,
    Expression: NotRequired[str],
    MetricStat: NotRequired[PredictiveScalingMetricStatTypeDef],  # (1)
    Label: NotRequired[str],
    ReturnData: NotRequired[bool],
  1. See PredictiveScalingMetricStatTypeDef

TargetTrackingMetricDataQueryOutputTypeDef#

# TargetTrackingMetricDataQueryOutputTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import TargetTrackingMetricDataQueryOutputTypeDef


def get_value() -> TargetTrackingMetricDataQueryOutputTypeDef:
    return {
        "Expression": ...,
    }


# TargetTrackingMetricDataQueryOutputTypeDef definition

class TargetTrackingMetricDataQueryOutputTypeDef(TypedDict):
    Id: str,
    Expression: NotRequired[str],
    Label: NotRequired[str],
    MetricStat: NotRequired[TargetTrackingMetricStatOutputTypeDef],  # (1)
    ReturnData: NotRequired[bool],
  1. See TargetTrackingMetricStatOutputTypeDef

TargetTrackingMetricDataQueryTypeDef#

# TargetTrackingMetricDataQueryTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import TargetTrackingMetricDataQueryTypeDef


def get_value() -> TargetTrackingMetricDataQueryTypeDef:
    return {
        "Expression": ...,
    }


# TargetTrackingMetricDataQueryTypeDef definition

class TargetTrackingMetricDataQueryTypeDef(TypedDict):
    Id: str,
    Expression: NotRequired[str],
    Label: NotRequired[str],
    MetricStat: NotRequired[TargetTrackingMetricStatTypeDef],  # (1)
    ReturnData: NotRequired[bool],
  1. See TargetTrackingMetricStatTypeDef

PredictiveScalingCustomizedMetricSpecificationOutputTypeDef#

# PredictiveScalingCustomizedMetricSpecificationOutputTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PredictiveScalingCustomizedMetricSpecificationOutputTypeDef


def get_value() -> PredictiveScalingCustomizedMetricSpecificationOutputTypeDef:
    return {
        "MetricDataQueries": ...,
    }


# PredictiveScalingCustomizedMetricSpecificationOutputTypeDef definition

class PredictiveScalingCustomizedMetricSpecificationOutputTypeDef(TypedDict):
    MetricDataQueries: List[PredictiveScalingMetricDataQueryOutputTypeDef],  # (1)
  1. See List[PredictiveScalingMetricDataQueryOutputTypeDef]

PredictiveScalingCustomizedMetricSpecificationTypeDef#

# PredictiveScalingCustomizedMetricSpecificationTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PredictiveScalingCustomizedMetricSpecificationTypeDef


def get_value() -> PredictiveScalingCustomizedMetricSpecificationTypeDef:
    return {
        "MetricDataQueries": ...,
    }


# PredictiveScalingCustomizedMetricSpecificationTypeDef definition

class PredictiveScalingCustomizedMetricSpecificationTypeDef(TypedDict):
    MetricDataQueries: Sequence[PredictiveScalingMetricDataQueryTypeDef],  # (1)
  1. See Sequence[PredictiveScalingMetricDataQueryTypeDef]

CustomizedMetricSpecificationOutputTypeDef#

# CustomizedMetricSpecificationOutputTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import CustomizedMetricSpecificationOutputTypeDef


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


# CustomizedMetricSpecificationOutputTypeDef definition

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

CustomizedMetricSpecificationTypeDef#

# CustomizedMetricSpecificationTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import CustomizedMetricSpecificationTypeDef


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


# CustomizedMetricSpecificationTypeDef definition

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

PredictiveScalingMetricSpecificationOutputTypeDef#

# PredictiveScalingMetricSpecificationOutputTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PredictiveScalingMetricSpecificationOutputTypeDef


def get_value() -> PredictiveScalingMetricSpecificationOutputTypeDef:
    return {
        "TargetValue": ...,
    }


# PredictiveScalingMetricSpecificationOutputTypeDef definition

class PredictiveScalingMetricSpecificationOutputTypeDef(TypedDict):
    TargetValue: float,
    PredefinedMetricPairSpecification: NotRequired[PredictiveScalingPredefinedMetricPairSpecificationTypeDef],  # (1)
    PredefinedScalingMetricSpecification: NotRequired[PredictiveScalingPredefinedScalingMetricSpecificationTypeDef],  # (2)
    PredefinedLoadMetricSpecification: NotRequired[PredictiveScalingPredefinedLoadMetricSpecificationTypeDef],  # (3)
    CustomizedScalingMetricSpecification: NotRequired[PredictiveScalingCustomizedMetricSpecificationOutputTypeDef],  # (4)
    CustomizedLoadMetricSpecification: NotRequired[PredictiveScalingCustomizedMetricSpecificationOutputTypeDef],  # (4)
    CustomizedCapacityMetricSpecification: NotRequired[PredictiveScalingCustomizedMetricSpecificationOutputTypeDef],  # (4)
  1. See PredictiveScalingPredefinedMetricPairSpecificationTypeDef
  2. See PredictiveScalingPredefinedScalingMetricSpecificationTypeDef
  3. See PredictiveScalingPredefinedLoadMetricSpecificationTypeDef
  4. See PredictiveScalingCustomizedMetricSpecificationOutputTypeDef
  5. See PredictiveScalingCustomizedMetricSpecificationOutputTypeDef
  6. See PredictiveScalingCustomizedMetricSpecificationOutputTypeDef

PredictiveScalingMetricSpecificationTypeDef#

# PredictiveScalingMetricSpecificationTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PredictiveScalingMetricSpecificationTypeDef


def get_value() -> PredictiveScalingMetricSpecificationTypeDef:
    return {
        "TargetValue": ...,
    }


# PredictiveScalingMetricSpecificationTypeDef definition

class PredictiveScalingMetricSpecificationTypeDef(TypedDict):
    TargetValue: float,
    PredefinedMetricPairSpecification: NotRequired[PredictiveScalingPredefinedMetricPairSpecificationTypeDef],  # (1)
    PredefinedScalingMetricSpecification: NotRequired[PredictiveScalingPredefinedScalingMetricSpecificationTypeDef],  # (2)
    PredefinedLoadMetricSpecification: NotRequired[PredictiveScalingPredefinedLoadMetricSpecificationTypeDef],  # (3)
    CustomizedScalingMetricSpecification: NotRequired[PredictiveScalingCustomizedMetricSpecificationTypeDef],  # (4)
    CustomizedLoadMetricSpecification: NotRequired[PredictiveScalingCustomizedMetricSpecificationTypeDef],  # (4)
    CustomizedCapacityMetricSpecification: NotRequired[PredictiveScalingCustomizedMetricSpecificationTypeDef],  # (4)
  1. See PredictiveScalingPredefinedMetricPairSpecificationTypeDef
  2. See PredictiveScalingPredefinedScalingMetricSpecificationTypeDef
  3. See PredictiveScalingPredefinedLoadMetricSpecificationTypeDef
  4. See PredictiveScalingCustomizedMetricSpecificationTypeDef
  5. See PredictiveScalingCustomizedMetricSpecificationTypeDef
  6. See PredictiveScalingCustomizedMetricSpecificationTypeDef

TargetTrackingScalingPolicyConfigurationOutputTypeDef#

# TargetTrackingScalingPolicyConfigurationOutputTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import TargetTrackingScalingPolicyConfigurationOutputTypeDef


def get_value() -> TargetTrackingScalingPolicyConfigurationOutputTypeDef:
    return {
        "TargetValue": ...,
    }


# TargetTrackingScalingPolicyConfigurationOutputTypeDef definition

class TargetTrackingScalingPolicyConfigurationOutputTypeDef(TypedDict):
    TargetValue: float,
    PredefinedMetricSpecification: NotRequired[PredefinedMetricSpecificationTypeDef],  # (1)
    CustomizedMetricSpecification: NotRequired[CustomizedMetricSpecificationOutputTypeDef],  # (2)
    ScaleOutCooldown: NotRequired[int],
    ScaleInCooldown: NotRequired[int],
    DisableScaleIn: NotRequired[bool],
  1. See PredefinedMetricSpecificationTypeDef
  2. See CustomizedMetricSpecificationOutputTypeDef

TargetTrackingScalingPolicyConfigurationTypeDef#

# TargetTrackingScalingPolicyConfigurationTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import TargetTrackingScalingPolicyConfigurationTypeDef


def get_value() -> TargetTrackingScalingPolicyConfigurationTypeDef:
    return {
        "TargetValue": ...,
    }


# TargetTrackingScalingPolicyConfigurationTypeDef definition

class TargetTrackingScalingPolicyConfigurationTypeDef(TypedDict):
    TargetValue: float,
    PredefinedMetricSpecification: NotRequired[PredefinedMetricSpecificationTypeDef],  # (1)
    CustomizedMetricSpecification: NotRequired[CustomizedMetricSpecificationTypeDef],  # (2)
    ScaleOutCooldown: NotRequired[int],
    ScaleInCooldown: NotRequired[int],
    DisableScaleIn: NotRequired[bool],
  1. See PredefinedMetricSpecificationTypeDef
  2. See CustomizedMetricSpecificationTypeDef

LoadForecastTypeDef#

# LoadForecastTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import LoadForecastTypeDef


def get_value() -> LoadForecastTypeDef:
    return {
        "Timestamps": ...,
    }


# LoadForecastTypeDef definition

class LoadForecastTypeDef(TypedDict):
    Timestamps: List[datetime.datetime],
    Values: List[float],
    MetricSpecification: PredictiveScalingMetricSpecificationOutputTypeDef,  # (1)
  1. See PredictiveScalingMetricSpecificationOutputTypeDef

PredictiveScalingPolicyConfigurationOutputTypeDef#

# PredictiveScalingPolicyConfigurationOutputTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PredictiveScalingPolicyConfigurationOutputTypeDef


def get_value() -> PredictiveScalingPolicyConfigurationOutputTypeDef:
    return {
        "MetricSpecifications": ...,
    }


# PredictiveScalingPolicyConfigurationOutputTypeDef definition

class PredictiveScalingPolicyConfigurationOutputTypeDef(TypedDict):
    MetricSpecifications: List[PredictiveScalingMetricSpecificationOutputTypeDef],  # (1)
    Mode: NotRequired[PredictiveScalingModeType],  # (2)
    SchedulingBufferTime: NotRequired[int],
    MaxCapacityBreachBehavior: NotRequired[PredictiveScalingMaxCapacityBreachBehaviorType],  # (3)
    MaxCapacityBuffer: NotRequired[int],
  1. See List[PredictiveScalingMetricSpecificationOutputTypeDef]
  2. See PredictiveScalingModeType
  3. See PredictiveScalingMaxCapacityBreachBehaviorType

PredictiveScalingPolicyConfigurationTypeDef#

# PredictiveScalingPolicyConfigurationTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PredictiveScalingPolicyConfigurationTypeDef


def get_value() -> PredictiveScalingPolicyConfigurationTypeDef:
    return {
        "MetricSpecifications": ...,
    }


# PredictiveScalingPolicyConfigurationTypeDef definition

class PredictiveScalingPolicyConfigurationTypeDef(TypedDict):
    MetricSpecifications: Sequence[PredictiveScalingMetricSpecificationTypeDef],  # (1)
    Mode: NotRequired[PredictiveScalingModeType],  # (2)
    SchedulingBufferTime: NotRequired[int],
    MaxCapacityBreachBehavior: NotRequired[PredictiveScalingMaxCapacityBreachBehaviorType],  # (3)
    MaxCapacityBuffer: NotRequired[int],
  1. See Sequence[PredictiveScalingMetricSpecificationTypeDef]
  2. See PredictiveScalingModeType
  3. See PredictiveScalingMaxCapacityBreachBehaviorType

GetPredictiveScalingForecastResponseTypeDef#

# GetPredictiveScalingForecastResponseTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import GetPredictiveScalingForecastResponseTypeDef


def get_value() -> GetPredictiveScalingForecastResponseTypeDef:
    return {
        "LoadForecast": ...,
    }


# GetPredictiveScalingForecastResponseTypeDef definition

class GetPredictiveScalingForecastResponseTypeDef(TypedDict):
    LoadForecast: List[LoadForecastTypeDef],  # (1)
    CapacityForecast: CapacityForecastTypeDef,  # (2)
    UpdateTime: datetime.datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See List[LoadForecastTypeDef]
  2. See CapacityForecastTypeDef
  3. See ResponseMetadataTypeDef

ScalingPolicyTypeDef#

# ScalingPolicyTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import ScalingPolicyTypeDef


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


# ScalingPolicyTypeDef definition

class ScalingPolicyTypeDef(TypedDict):
    PolicyARN: str,
    PolicyName: str,
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ResourceId: str,
    ScalableDimension: ScalableDimensionType,  # (2)
    PolicyType: PolicyTypeType,  # (3)
    CreationTime: datetime.datetime,
    StepScalingPolicyConfiguration: NotRequired[StepScalingPolicyConfigurationOutputTypeDef],  # (4)
    TargetTrackingScalingPolicyConfiguration: NotRequired[TargetTrackingScalingPolicyConfigurationOutputTypeDef],  # (5)
    PredictiveScalingPolicyConfiguration: NotRequired[PredictiveScalingPolicyConfigurationOutputTypeDef],  # (6)
    Alarms: NotRequired[List[AlarmTypeDef]],  # (7)
  1. See ServiceNamespaceType
  2. See ScalableDimensionType
  3. See PolicyTypeType
  4. See StepScalingPolicyConfigurationOutputTypeDef
  5. See TargetTrackingScalingPolicyConfigurationOutputTypeDef
  6. See PredictiveScalingPolicyConfigurationOutputTypeDef
  7. See List[AlarmTypeDef]

DescribeScalingPoliciesResponseTypeDef#

# DescribeScalingPoliciesResponseTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScalingPoliciesResponseTypeDef


def get_value() -> DescribeScalingPoliciesResponseTypeDef:
    return {
        "ScalingPolicies": ...,
    }


# DescribeScalingPoliciesResponseTypeDef definition

class DescribeScalingPoliciesResponseTypeDef(TypedDict):
    ScalingPolicies: List[ScalingPolicyTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See List[ScalingPolicyTypeDef]
  2. See ResponseMetadataTypeDef

PutScalingPolicyRequestTypeDef#

# PutScalingPolicyRequestTypeDef TypedDict usage example

from mypy_boto3_application_autoscaling.type_defs import PutScalingPolicyRequestTypeDef


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


# PutScalingPolicyRequestTypeDef definition

class PutScalingPolicyRequestTypeDef(TypedDict):
    PolicyName: str,
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ResourceId: str,
    ScalableDimension: ScalableDimensionType,  # (2)
    PolicyType: NotRequired[PolicyTypeType],  # (3)
    StepScalingPolicyConfiguration: NotRequired[StepScalingPolicyConfigurationUnionTypeDef],  # (4)
    TargetTrackingScalingPolicyConfiguration: NotRequired[TargetTrackingScalingPolicyConfigurationUnionTypeDef],  # (5)
    PredictiveScalingPolicyConfiguration: NotRequired[PredictiveScalingPolicyConfigurationUnionTypeDef],  # (6)
  1. See ServiceNamespaceType
  2. See ScalableDimensionType
  3. See PolicyTypeType
  4. See StepScalingPolicyConfigurationUnionTypeDef
  5. See TargetTrackingScalingPolicyConfigurationUnionTypeDef
  6. See PredictiveScalingPolicyConfigurationUnionTypeDef