Skip to content

Type definitions#

Index > ApplicationAutoScaling > Type definitions

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

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

StepScalingPolicyConfigurationUnionTypeDef#

# StepScalingPolicyConfigurationUnionTypeDef definition

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

TargetTrackingScalingPolicyConfigurationUnionTypeDef#

# TargetTrackingScalingPolicyConfigurationUnionTypeDef definition

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

AlarmTypeDef#

# AlarmTypeDef definition

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

MetricDimensionTypeDef#

# MetricDimensionTypeDef definition

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

DeleteScalingPolicyRequestRequestTypeDef#

# DeleteScalingPolicyRequestRequestTypeDef definition

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

DeleteScheduledActionRequestRequestTypeDef#

# DeleteScheduledActionRequestRequestTypeDef definition

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

DeregisterScalableTargetRequestRequestTypeDef#

# DeregisterScalableTargetRequestRequestTypeDef definition

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

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef definition

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

DescribeScalableTargetsRequestRequestTypeDef#

# DescribeScalableTargetsRequestRequestTypeDef definition

class DescribeScalableTargetsRequestRequestTypeDef(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 definition

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

DescribeScalingActivitiesRequestRequestTypeDef#

# DescribeScalingActivitiesRequestRequestTypeDef definition

class DescribeScalingActivitiesRequestRequestTypeDef(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

DescribeScalingPoliciesRequestRequestTypeDef#

# DescribeScalingPoliciesRequestRequestTypeDef definition

class DescribeScalingPoliciesRequestRequestTypeDef(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

DescribeScheduledActionsRequestRequestTypeDef#

# DescribeScheduledActionsRequestRequestTypeDef definition

class DescribeScheduledActionsRequestRequestTypeDef(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

ListTagsForResourceRequestRequestTypeDef#

# ListTagsForResourceRequestRequestTypeDef definition

class ListTagsForResourceRequestRequestTypeDef(TypedDict):
    ResourceARN: str,

NotScaledReasonTypeDef#

# NotScaledReasonTypeDef definition

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

PredefinedMetricSpecificationTypeDef#

# PredefinedMetricSpecificationTypeDef definition

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

ScalableTargetActionTypeDef#

# ScalableTargetActionTypeDef definition

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

SuspendedStateTypeDef#

# SuspendedStateTypeDef definition

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

StepAdjustmentTypeDef#

# StepAdjustmentTypeDef definition

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

TagResourceRequestRequestTypeDef#

# TagResourceRequestRequestTypeDef definition

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

TargetTrackingMetricDimensionTypeDef#

# TargetTrackingMetricDimensionTypeDef definition

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

UntagResourceRequestRequestTypeDef#

# UntagResourceRequestRequestTypeDef definition

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

DescribeScalableTargetsRequestDescribeScalableTargetsPaginateTypeDef#

# DescribeScalableTargetsRequestDescribeScalableTargetsPaginateTypeDef definition

class DescribeScalableTargetsRequestDescribeScalableTargetsPaginateTypeDef(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

DescribeScalingActivitiesRequestDescribeScalingActivitiesPaginateTypeDef#

# DescribeScalingActivitiesRequestDescribeScalingActivitiesPaginateTypeDef definition

class DescribeScalingActivitiesRequestDescribeScalingActivitiesPaginateTypeDef(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

DescribeScalingPoliciesRequestDescribeScalingPoliciesPaginateTypeDef#

# DescribeScalingPoliciesRequestDescribeScalingPoliciesPaginateTypeDef definition

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