Skip to content

Typed dictionaries#

Index > ApplicationAutoScaling > Typed dictionaries

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

AlarmTypeDef#

# AlarmTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import AlarmTypeDef

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

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

MetricDimensionTypeDef#

# MetricDimensionTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import MetricDimensionTypeDef

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

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

DeleteScalingPolicyRequestRequestTypeDef#

# DeleteScalingPolicyRequestRequestTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import DeleteScalingPolicyRequestRequestTypeDef

def get_value() -> DeleteScalingPolicyRequestRequestTypeDef:
    return {
        "PolicyName": ...,
        "ServiceNamespace": ...,
        "ResourceId": ...,
        "ScalableDimension": ...,
    }
# DeleteScalingPolicyRequestRequestTypeDef definition

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

DeleteScheduledActionRequestRequestTypeDef#

# DeleteScheduledActionRequestRequestTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import DeleteScheduledActionRequestRequestTypeDef

def get_value() -> DeleteScheduledActionRequestRequestTypeDef:
    return {
        "ServiceNamespace": ...,
        "ScheduledActionName": ...,
        "ResourceId": ...,
        "ScalableDimension": ...,
    }
# DeleteScheduledActionRequestRequestTypeDef definition

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

DeregisterScalableTargetRequestRequestTypeDef#

# DeregisterScalableTargetRequestRequestTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import DeregisterScalableTargetRequestRequestTypeDef

def get_value() -> DeregisterScalableTargetRequestRequestTypeDef:
    return {
        "ServiceNamespace": ...,
        "ResourceId": ...,
        "ScalableDimension": ...,
    }
# DeregisterScalableTargetRequestRequestTypeDef definition

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

DescribeScalableTargetsRequestDescribeScalableTargetsPaginateTypeDef#

# DescribeScalableTargetsRequestDescribeScalableTargetsPaginateTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScalableTargetsRequestDescribeScalableTargetsPaginateTypeDef

def get_value() -> DescribeScalableTargetsRequestDescribeScalableTargetsPaginateTypeDef:
    return {
        "ServiceNamespace": ...,
    }
# 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

DescribeScalableTargetsRequestRequestTypeDef#

# DescribeScalableTargetsRequestRequestTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScalableTargetsRequestRequestTypeDef

def get_value() -> DescribeScalableTargetsRequestRequestTypeDef:
    return {
        "ServiceNamespace": ...,
    }
# 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

DescribeScalingActivitiesRequestDescribeScalingActivitiesPaginateTypeDef#

# DescribeScalingActivitiesRequestDescribeScalingActivitiesPaginateTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScalingActivitiesRequestDescribeScalingActivitiesPaginateTypeDef

def get_value() -> DescribeScalingActivitiesRequestDescribeScalingActivitiesPaginateTypeDef:
    return {
        "ServiceNamespace": ...,
    }
# 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

DescribeScalingActivitiesRequestRequestTypeDef#

# DescribeScalingActivitiesRequestRequestTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScalingActivitiesRequestRequestTypeDef

def get_value() -> DescribeScalingActivitiesRequestRequestTypeDef:
    return {
        "ServiceNamespace": ...,
    }
# 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

DescribeScalingPoliciesRequestDescribeScalingPoliciesPaginateTypeDef#

# DescribeScalingPoliciesRequestDescribeScalingPoliciesPaginateTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScalingPoliciesRequestDescribeScalingPoliciesPaginateTypeDef

def get_value() -> DescribeScalingPoliciesRequestDescribeScalingPoliciesPaginateTypeDef:
    return {
        "ServiceNamespace": ...,
    }
# 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 ServiceNamespaceType
  2. See ScalableDimensionType
  3. See PaginatorConfigTypeDef

DescribeScalingPoliciesRequestRequestTypeDef#

# DescribeScalingPoliciesRequestRequestTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScalingPoliciesRequestRequestTypeDef

def get_value() -> DescribeScalingPoliciesRequestRequestTypeDef:
    return {
        "ServiceNamespace": ...,
    }
# 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

DescribeScheduledActionsRequestDescribeScheduledActionsPaginateTypeDef#

# DescribeScheduledActionsRequestDescribeScheduledActionsPaginateTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScheduledActionsRequestDescribeScheduledActionsPaginateTypeDef

def get_value() -> DescribeScheduledActionsRequestDescribeScheduledActionsPaginateTypeDef:
    return {
        "ServiceNamespace": ...,
    }
# DescribeScheduledActionsRequestDescribeScheduledActionsPaginateTypeDef definition

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

DescribeScheduledActionsRequestRequestTypeDef#

# DescribeScheduledActionsRequestRequestTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScheduledActionsRequestRequestTypeDef

def get_value() -> DescribeScheduledActionsRequestRequestTypeDef:
    return {
        "ServiceNamespace": ...,
    }
# 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 usage example

from mypy_boto3_application_autoscaling.type_defs import ListTagsForResourceRequestRequestTypeDef

def get_value() -> ListTagsForResourceRequestRequestTypeDef:
    return {
        "ResourceARN": ...,
    }
# ListTagsForResourceRequestRequestTypeDef definition

class ListTagsForResourceRequestRequestTypeDef(TypedDict):
    ResourceARN: str,

ListTagsForResourceResponseTypeDef#

# ListTagsForResourceResponseTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import ListTagsForResourceResponseTypeDef

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

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

NotScaledReasonTypeDef#

# NotScaledReasonTypeDef 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],

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef 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],

PredefinedMetricSpecificationTypeDef#

# PredefinedMetricSpecificationTypeDef 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

ScalableTargetActionTypeDef#

# ScalableTargetActionTypeDef 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 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],

RegisterScalableTargetResponseTypeDef#

# RegisterScalableTargetResponseTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import RegisterScalableTargetResponseTypeDef

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

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

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import ResponseMetadataTypeDef

def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
        "HostId": ...,
        "HTTPStatusCode": ...,
        "HTTPHeaders": ...,
        "RetryAttempts": ...,
    }
# ResponseMetadataTypeDef definition

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

StepAdjustmentTypeDef#

# StepAdjustmentTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import StepAdjustmentTypeDef

def get_value() -> StepAdjustmentTypeDef:
    return {
        "ScalingAdjustment": ...,
    }
# StepAdjustmentTypeDef definition

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

TagResourceRequestRequestTypeDef#

# TagResourceRequestRequestTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import TagResourceRequestRequestTypeDef

def get_value() -> TagResourceRequestRequestTypeDef:
    return {
        "ResourceARN": ...,
        "Tags": ...,
    }
# TagResourceRequestRequestTypeDef definition

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

TargetTrackingMetricDimensionTypeDef#

# TargetTrackingMetricDimensionTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import TargetTrackingMetricDimensionTypeDef

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

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

UntagResourceRequestRequestTypeDef#

# UntagResourceRequestRequestTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import UntagResourceRequestRequestTypeDef

def get_value() -> UntagResourceRequestRequestTypeDef:
    return {
        "ResourceARN": ...,
        "TagKeys": ...,
    }
# UntagResourceRequestRequestTypeDef definition

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

PutScalingPolicyResponseTypeDef#

# PutScalingPolicyResponseTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import PutScalingPolicyResponseTypeDef

def get_value() -> PutScalingPolicyResponseTypeDef:
    return {
        "PolicyARN": ...,
        "Alarms": ...,
        "ResponseMetadata": ...,
    }
# PutScalingPolicyResponseTypeDef definition

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

ScalingActivityTypeDef#

# ScalingActivityTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import ScalingActivityTypeDef

def get_value() -> ScalingActivityTypeDef:
    return {
        "ActivityId": ...,
        "ServiceNamespace": ...,
        "ResourceId": ...,
        "ScalableDimension": ...,
        "Description": ...,
        "Cause": ...,
        "StartTime": ...,
        "StatusCode": ...,
    }
# ScalingActivityTypeDef definition

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

PutScheduledActionRequestRequestTypeDef#

# PutScheduledActionRequestRequestTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import PutScheduledActionRequestRequestTypeDef

def get_value() -> PutScheduledActionRequestRequestTypeDef:
    return {
        "ServiceNamespace": ...,
        "ScheduledActionName": ...,
        "ResourceId": ...,
        "ScalableDimension": ...,
    }
# PutScheduledActionRequestRequestTypeDef definition

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

ScheduledActionTypeDef#

# ScheduledActionTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import ScheduledActionTypeDef

def get_value() -> ScheduledActionTypeDef:
    return {
        "ScheduledActionName": ...,
        "ScheduledActionARN": ...,
        "ServiceNamespace": ...,
        "Schedule": ...,
        "ResourceId": ...,
        "CreationTime": ...,
    }
# ScheduledActionTypeDef definition

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

RegisterScalableTargetRequestRequestTypeDef#

# RegisterScalableTargetRequestRequestTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import RegisterScalableTargetRequestRequestTypeDef

def get_value() -> RegisterScalableTargetRequestRequestTypeDef:
    return {
        "ServiceNamespace": ...,
        "ResourceId": ...,
        "ScalableDimension": ...,
    }
# RegisterScalableTargetRequestRequestTypeDef definition

class RegisterScalableTargetRequestRequestTypeDef(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 usage example

from mypy_boto3_application_autoscaling.type_defs import ScalableTargetTypeDef

def get_value() -> ScalableTargetTypeDef:
    return {
        "ServiceNamespace": ...,
        "ResourceId": ...,
        "ScalableDimension": ...,
        "MinCapacity": ...,
        "MaxCapacity": ...,
        "RoleARN": ...,
        "CreationTime": ...,
    }
# ScalableTargetTypeDef definition

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

StepScalingPolicyConfigurationTypeDef#

# StepScalingPolicyConfigurationTypeDef 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[List[StepAdjustmentTypeDef]],  # (2)
    MinAdjustmentMagnitude: NotRequired[int],
    Cooldown: NotRequired[int],
    MetricAggregationType: NotRequired[MetricAggregationTypeType],  # (3)
  1. See AdjustmentTypeType
  2. See StepAdjustmentTypeDef
  3. See MetricAggregationTypeType

TargetTrackingMetricTypeDef#

# TargetTrackingMetricTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import TargetTrackingMetricTypeDef

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

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

DescribeScalingActivitiesResponseTypeDef#

# DescribeScalingActivitiesResponseTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScalingActivitiesResponseTypeDef

def get_value() -> DescribeScalingActivitiesResponseTypeDef:
    return {
        "ScalingActivities": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
# DescribeScalingActivitiesResponseTypeDef definition

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

DescribeScheduledActionsResponseTypeDef#

# DescribeScheduledActionsResponseTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScheduledActionsResponseTypeDef

def get_value() -> DescribeScheduledActionsResponseTypeDef:
    return {
        "ScheduledActions": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
# DescribeScheduledActionsResponseTypeDef definition

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

DescribeScalableTargetsResponseTypeDef#

# DescribeScalableTargetsResponseTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScalableTargetsResponseTypeDef

def get_value() -> DescribeScalableTargetsResponseTypeDef:
    return {
        "ScalableTargets": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
# DescribeScalableTargetsResponseTypeDef definition

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

TargetTrackingMetricStatTypeDef#

# TargetTrackingMetricStatTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import TargetTrackingMetricStatTypeDef

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

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

TargetTrackingMetricDataQueryTypeDef#

# TargetTrackingMetricDataQueryTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import TargetTrackingMetricDataQueryTypeDef

def get_value() -> TargetTrackingMetricDataQueryTypeDef:
    return {
        "Id": ...,
    }
# TargetTrackingMetricDataQueryTypeDef definition

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

CustomizedMetricSpecificationTypeDef#

# CustomizedMetricSpecificationTypeDef 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[List[MetricDimensionTypeDef]],  # (1)
    Statistic: NotRequired[MetricStatisticType],  # (2)
    Unit: NotRequired[str],
    Metrics: NotRequired[List[TargetTrackingMetricDataQueryTypeDef]],  # (3)
  1. See MetricDimensionTypeDef
  2. See MetricStatisticType
  3. See TargetTrackingMetricDataQueryTypeDef

TargetTrackingScalingPolicyConfigurationTypeDef#

# TargetTrackingScalingPolicyConfigurationTypeDef 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

PutScalingPolicyRequestRequestTypeDef#

# PutScalingPolicyRequestRequestTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import PutScalingPolicyRequestRequestTypeDef

def get_value() -> PutScalingPolicyRequestRequestTypeDef:
    return {
        "PolicyName": ...,
        "ServiceNamespace": ...,
        "ResourceId": ...,
        "ScalableDimension": ...,
    }
# PutScalingPolicyRequestRequestTypeDef definition

class PutScalingPolicyRequestRequestTypeDef(TypedDict):
    PolicyName: str,
    ServiceNamespace: ServiceNamespaceType,  # (1)
    ResourceId: str,
    ScalableDimension: ScalableDimensionType,  # (2)
    PolicyType: NotRequired[PolicyTypeType],  # (3)
    StepScalingPolicyConfiguration: NotRequired[StepScalingPolicyConfigurationTypeDef],  # (4)
    TargetTrackingScalingPolicyConfiguration: NotRequired[TargetTrackingScalingPolicyConfigurationTypeDef],  # (5)
  1. See ServiceNamespaceType
  2. See ScalableDimensionType
  3. See PolicyTypeType
  4. See StepScalingPolicyConfigurationTypeDef
  5. See TargetTrackingScalingPolicyConfigurationTypeDef

ScalingPolicyTypeDef#

# ScalingPolicyTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import ScalingPolicyTypeDef

def get_value() -> ScalingPolicyTypeDef:
    return {
        "PolicyARN": ...,
        "PolicyName": ...,
        "ServiceNamespace": ...,
        "ResourceId": ...,
        "ScalableDimension": ...,
        "PolicyType": ...,
        "CreationTime": ...,
    }
# ScalingPolicyTypeDef definition

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

DescribeScalingPoliciesResponseTypeDef#

# DescribeScalingPoliciesResponseTypeDef usage example

from mypy_boto3_application_autoscaling.type_defs import DescribeScalingPoliciesResponseTypeDef

def get_value() -> DescribeScalingPoliciesResponseTypeDef:
    return {
        "ScalingPolicies": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
# DescribeScalingPoliciesResponseTypeDef definition

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