Type definitions#
Index > AutoScalingPlans > Type definitions
Auto-generated documentation for AutoScalingPlans type annotations stubs module mypy-boto3-autoscaling-plans.
TimestampTypeDef#
# TimestampTypeDef definition
TimestampTypeDef = Union[
datetime,
str,
]
TagFilterTypeDef#
# TagFilterTypeDef definition
class TagFilterTypeDef(TypedDict):
Key: NotRequired[str],
Values: NotRequired[Sequence[str]],
ResponseMetadataTypeDef#
# ResponseMetadataTypeDef definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HostId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
MetricDimensionTypeDef#
# MetricDimensionTypeDef definition
class MetricDimensionTypeDef(TypedDict):
Name: str,
Value: str,
DatapointTypeDef#
# DatapointTypeDef definition
class DatapointTypeDef(TypedDict):
Timestamp: NotRequired[datetime],
Value: NotRequired[float],
DeleteScalingPlanRequestRequestTypeDef#
# DeleteScalingPlanRequestRequestTypeDef definition
class DeleteScalingPlanRequestRequestTypeDef(TypedDict):
ScalingPlanName: str,
ScalingPlanVersion: int,
PaginatorConfigTypeDef#
# PaginatorConfigTypeDef definition
class PaginatorConfigTypeDef(TypedDict):
MaxItems: NotRequired[int],
PageSize: NotRequired[int],
StartingToken: NotRequired[str],
DescribeScalingPlanResourcesRequestRequestTypeDef#
# DescribeScalingPlanResourcesRequestRequestTypeDef definition
class DescribeScalingPlanResourcesRequestRequestTypeDef(TypedDict):
ScalingPlanName: str,
ScalingPlanVersion: int,
MaxResults: NotRequired[int],
NextToken: NotRequired[str],
PredefinedLoadMetricSpecificationTypeDef#
# PredefinedLoadMetricSpecificationTypeDef definition
class PredefinedLoadMetricSpecificationTypeDef(TypedDict):
PredefinedLoadMetricType: LoadMetricTypeType, # (1)
ResourceLabel: NotRequired[str],
PredefinedScalingMetricSpecificationTypeDef#
# PredefinedScalingMetricSpecificationTypeDef definition
class PredefinedScalingMetricSpecificationTypeDef(TypedDict):
PredefinedScalingMetricType: ScalingMetricTypeType, # (1)
ResourceLabel: NotRequired[str],
ApplicationSourceTypeDef#
# ApplicationSourceTypeDef definition
class ApplicationSourceTypeDef(TypedDict):
CloudFormationStackARN: NotRequired[str],
TagFilters: NotRequired[Sequence[TagFilterTypeDef]], # (1)
- See TagFilterTypeDef
CreateScalingPlanResponseTypeDef#
# CreateScalingPlanResponseTypeDef definition
class CreateScalingPlanResponseTypeDef(TypedDict):
ScalingPlanVersion: int,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
CustomizedLoadMetricSpecificationPaginatorTypeDef#
# CustomizedLoadMetricSpecificationPaginatorTypeDef definition
class CustomizedLoadMetricSpecificationPaginatorTypeDef(TypedDict):
MetricName: str,
Namespace: str,
Statistic: MetricStatisticType, # (2)
Dimensions: NotRequired[List[MetricDimensionTypeDef]], # (1)
Unit: NotRequired[str],
CustomizedLoadMetricSpecificationTypeDef#
# CustomizedLoadMetricSpecificationTypeDef definition
class CustomizedLoadMetricSpecificationTypeDef(TypedDict):
MetricName: str,
Namespace: str,
Statistic: MetricStatisticType, # (2)
Dimensions: NotRequired[Sequence[MetricDimensionTypeDef]], # (1)
Unit: NotRequired[str],
CustomizedScalingMetricSpecificationPaginatorTypeDef#
# CustomizedScalingMetricSpecificationPaginatorTypeDef definition
class CustomizedScalingMetricSpecificationPaginatorTypeDef(TypedDict):
MetricName: str,
Namespace: str,
Statistic: MetricStatisticType, # (2)
Dimensions: NotRequired[List[MetricDimensionTypeDef]], # (1)
Unit: NotRequired[str],
CustomizedScalingMetricSpecificationTypeDef#
# CustomizedScalingMetricSpecificationTypeDef definition
class CustomizedScalingMetricSpecificationTypeDef(TypedDict):
MetricName: str,
Namespace: str,
Statistic: MetricStatisticType, # (2)
Dimensions: NotRequired[Sequence[MetricDimensionTypeDef]], # (1)
Unit: NotRequired[str],
GetScalingPlanResourceForecastDataResponseTypeDef#
# GetScalingPlanResourceForecastDataResponseTypeDef definition
class GetScalingPlanResourceForecastDataResponseTypeDef(TypedDict):
Datapoints: List[DatapointTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DescribeScalingPlanResourcesRequestDescribeScalingPlanResourcesPaginateTypeDef#
# DescribeScalingPlanResourcesRequestDescribeScalingPlanResourcesPaginateTypeDef definition
class DescribeScalingPlanResourcesRequestDescribeScalingPlanResourcesPaginateTypeDef(TypedDict):
ScalingPlanName: str,
ScalingPlanVersion: int,
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
GetScalingPlanResourceForecastDataRequestRequestTypeDef#
# GetScalingPlanResourceForecastDataRequestRequestTypeDef definition
class GetScalingPlanResourceForecastDataRequestRequestTypeDef(TypedDict):
ScalingPlanName: str,
ScalingPlanVersion: int,
ServiceNamespace: ServiceNamespaceType, # (1)
ResourceId: str,
ScalableDimension: ScalableDimensionType, # (2)
ForecastDataType: ForecastDataTypeType, # (3)
StartTime: Union[datetime, str],
EndTime: Union[datetime, str],
DescribeScalingPlansRequestDescribeScalingPlansPaginateTypeDef#
# DescribeScalingPlansRequestDescribeScalingPlansPaginateTypeDef definition
class DescribeScalingPlansRequestDescribeScalingPlansPaginateTypeDef(TypedDict):
ScalingPlanNames: NotRequired[Sequence[str]],
ScalingPlanVersion: NotRequired[int],
ApplicationSources: NotRequired[Sequence[ApplicationSourceTypeDef]], # (1)
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (2)
DescribeScalingPlansRequestRequestTypeDef#
# DescribeScalingPlansRequestRequestTypeDef definition
class DescribeScalingPlansRequestRequestTypeDef(TypedDict):
ScalingPlanNames: NotRequired[Sequence[str]],
ScalingPlanVersion: NotRequired[int],
ApplicationSources: NotRequired[Sequence[ApplicationSourceTypeDef]], # (1)
MaxResults: NotRequired[int],
NextToken: NotRequired[str],
TargetTrackingConfigurationPaginatorTypeDef#
# TargetTrackingConfigurationPaginatorTypeDef definition
class TargetTrackingConfigurationPaginatorTypeDef(TypedDict):
TargetValue: float,
PredefinedScalingMetricSpecification: NotRequired[PredefinedScalingMetricSpecificationTypeDef], # (1)
CustomizedScalingMetricSpecification: NotRequired[CustomizedScalingMetricSpecificationPaginatorTypeDef], # (2)
DisableScaleIn: NotRequired[bool],
ScaleOutCooldown: NotRequired[int],
ScaleInCooldown: NotRequired[int],
EstimatedInstanceWarmup: NotRequired[int],
- See PredefinedScalingMetricSpecificationTypeDef
- See CustomizedScalingMetricSpecificationPaginatorTypeDef
TargetTrackingConfigurationTypeDef#
# TargetTrackingConfigurationTypeDef definition
class TargetTrackingConfigurationTypeDef(TypedDict):
TargetValue: float,
PredefinedScalingMetricSpecification: NotRequired[PredefinedScalingMetricSpecificationTypeDef], # (1)
CustomizedScalingMetricSpecification: NotRequired[CustomizedScalingMetricSpecificationTypeDef], # (2)
DisableScaleIn: NotRequired[bool],
ScaleOutCooldown: NotRequired[int],
ScaleInCooldown: NotRequired[int],
EstimatedInstanceWarmup: NotRequired[int],
ScalingInstructionPaginatorTypeDef#
# ScalingInstructionPaginatorTypeDef definition
class ScalingInstructionPaginatorTypeDef(TypedDict):
ServiceNamespace: ServiceNamespaceType, # (1)
ResourceId: str,
ScalableDimension: ScalableDimensionType, # (2)
MinCapacity: int,
MaxCapacity: int,
TargetTrackingConfigurations: List[TargetTrackingConfigurationPaginatorTypeDef], # (3)
PredefinedLoadMetricSpecification: NotRequired[PredefinedLoadMetricSpecificationTypeDef], # (4)
CustomizedLoadMetricSpecification: NotRequired[CustomizedLoadMetricSpecificationPaginatorTypeDef], # (5)
ScheduledActionBufferTime: NotRequired[int],
PredictiveScalingMaxCapacityBehavior: NotRequired[PredictiveScalingMaxCapacityBehaviorType], # (6)
PredictiveScalingMaxCapacityBuffer: NotRequired[int],
PredictiveScalingMode: NotRequired[PredictiveScalingModeType], # (7)
ScalingPolicyUpdateBehavior: NotRequired[ScalingPolicyUpdateBehaviorType], # (8)
DisableDynamicScaling: NotRequired[bool],
- See ServiceNamespaceType
- See ScalableDimensionType
- See TargetTrackingConfigurationPaginatorTypeDef
- See PredefinedLoadMetricSpecificationTypeDef
- See CustomizedLoadMetricSpecificationPaginatorTypeDef
- See PredictiveScalingMaxCapacityBehaviorType
- See PredictiveScalingModeType
- See ScalingPolicyUpdateBehaviorType
ScalingPolicyPaginatorTypeDef#
# ScalingPolicyPaginatorTypeDef definition
class ScalingPolicyPaginatorTypeDef(TypedDict):
PolicyName: str,
PolicyType: PolicyTypeType, # (1)
TargetTrackingConfiguration: NotRequired[TargetTrackingConfigurationPaginatorTypeDef], # (2)
ScalingInstructionTypeDef#
# ScalingInstructionTypeDef definition
class ScalingInstructionTypeDef(TypedDict):
ServiceNamespace: ServiceNamespaceType, # (1)
ResourceId: str,
ScalableDimension: ScalableDimensionType, # (2)
MinCapacity: int,
MaxCapacity: int,
TargetTrackingConfigurations: Sequence[TargetTrackingConfigurationTypeDef], # (3)
PredefinedLoadMetricSpecification: NotRequired[PredefinedLoadMetricSpecificationTypeDef], # (4)
CustomizedLoadMetricSpecification: NotRequired[CustomizedLoadMetricSpecificationTypeDef], # (5)
ScheduledActionBufferTime: NotRequired[int],
PredictiveScalingMaxCapacityBehavior: NotRequired[PredictiveScalingMaxCapacityBehaviorType], # (6)
PredictiveScalingMaxCapacityBuffer: NotRequired[int],
PredictiveScalingMode: NotRequired[PredictiveScalingModeType], # (7)
ScalingPolicyUpdateBehavior: NotRequired[ScalingPolicyUpdateBehaviorType], # (8)
DisableDynamicScaling: NotRequired[bool],
- See ServiceNamespaceType
- See ScalableDimensionType
- See TargetTrackingConfigurationTypeDef
- See PredefinedLoadMetricSpecificationTypeDef
- See CustomizedLoadMetricSpecificationTypeDef
- See PredictiveScalingMaxCapacityBehaviorType
- See PredictiveScalingModeType
- See ScalingPolicyUpdateBehaviorType
ScalingPolicyTypeDef#
# ScalingPolicyTypeDef definition
class ScalingPolicyTypeDef(TypedDict):
PolicyName: str,
PolicyType: PolicyTypeType, # (1)
TargetTrackingConfiguration: NotRequired[TargetTrackingConfigurationTypeDef], # (2)
ScalingPlanPaginatorTypeDef#
# ScalingPlanPaginatorTypeDef definition
class ScalingPlanPaginatorTypeDef(TypedDict):
ScalingPlanName: str,
ScalingPlanVersion: int,
ApplicationSource: ApplicationSourceTypeDef, # (1)
ScalingInstructions: List[ScalingInstructionPaginatorTypeDef], # (2)
StatusCode: ScalingPlanStatusCodeType, # (3)
StatusMessage: NotRequired[str],
StatusStartTime: NotRequired[datetime],
CreationTime: NotRequired[datetime],
ScalingPlanResourcePaginatorTypeDef#
# ScalingPlanResourcePaginatorTypeDef definition
class ScalingPlanResourcePaginatorTypeDef(TypedDict):
ScalingPlanName: str,
ScalingPlanVersion: int,
ServiceNamespace: ServiceNamespaceType, # (1)
ResourceId: str,
ScalableDimension: ScalableDimensionType, # (2)
ScalingStatusCode: ScalingStatusCodeType, # (4)
ScalingPolicies: NotRequired[List[ScalingPolicyPaginatorTypeDef]], # (3)
ScalingStatusMessage: NotRequired[str],
- See ServiceNamespaceType
- See ScalableDimensionType
- See ScalingPolicyPaginatorTypeDef
- See ScalingStatusCodeType
CreateScalingPlanRequestRequestTypeDef#
# CreateScalingPlanRequestRequestTypeDef definition
class CreateScalingPlanRequestRequestTypeDef(TypedDict):
ScalingPlanName: str,
ApplicationSource: ApplicationSourceTypeDef, # (1)
ScalingInstructions: Sequence[ScalingInstructionTypeDef], # (2)
ScalingPlanTypeDef#
# ScalingPlanTypeDef definition
class ScalingPlanTypeDef(TypedDict):
ScalingPlanName: str,
ScalingPlanVersion: int,
ApplicationSource: ApplicationSourceTypeDef, # (1)
ScalingInstructions: List[ScalingInstructionTypeDef], # (2)
StatusCode: ScalingPlanStatusCodeType, # (3)
StatusMessage: NotRequired[str],
StatusStartTime: NotRequired[datetime],
CreationTime: NotRequired[datetime],
UpdateScalingPlanRequestRequestTypeDef#
# UpdateScalingPlanRequestRequestTypeDef definition
class UpdateScalingPlanRequestRequestTypeDef(TypedDict):
ScalingPlanName: str,
ScalingPlanVersion: int,
ApplicationSource: NotRequired[ApplicationSourceTypeDef], # (1)
ScalingInstructions: NotRequired[Sequence[ScalingInstructionTypeDef]], # (2)
ScalingPlanResourceTypeDef#
# 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],
- See ServiceNamespaceType
- See ScalableDimensionType
- See ScalingPolicyTypeDef
- See ScalingStatusCodeType
DescribeScalingPlansResponsePaginatorTypeDef#
# DescribeScalingPlansResponsePaginatorTypeDef definition
class DescribeScalingPlansResponsePaginatorTypeDef(TypedDict):
ScalingPlans: List[ScalingPlanPaginatorTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DescribeScalingPlanResourcesResponsePaginatorTypeDef#
# DescribeScalingPlanResourcesResponsePaginatorTypeDef definition
class DescribeScalingPlanResourcesResponsePaginatorTypeDef(TypedDict):
ScalingPlanResources: List[ScalingPlanResourcePaginatorTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DescribeScalingPlansResponseTypeDef#
# DescribeScalingPlansResponseTypeDef definition
class DescribeScalingPlansResponseTypeDef(TypedDict):
ScalingPlans: List[ScalingPlanTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DescribeScalingPlanResourcesResponseTypeDef#
# DescribeScalingPlanResourcesResponseTypeDef definition
class DescribeScalingPlanResourcesResponseTypeDef(TypedDict):
ScalingPlanResources: List[ScalingPlanResourceTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)