Skip to content

Type definitions#

Index > ComputeOptimizer > Type definitions

Auto-generated documentation for ComputeOptimizer type annotations stubs module mypy-boto3-compute-optimizer.

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

AccountEnrollmentStatusTypeDef#

# AccountEnrollmentStatusTypeDef definition

class AccountEnrollmentStatusTypeDef(TypedDict):
    accountId: NotRequired[str],
    status: NotRequired[StatusType],  # (1)
    statusReason: NotRequired[str],
    lastUpdatedTimestamp: NotRequired[datetime],
  1. See StatusType

AutoScalingGroupConfigurationTypeDef#

# AutoScalingGroupConfigurationTypeDef definition

class AutoScalingGroupConfigurationTypeDef(TypedDict):
    desiredCapacity: NotRequired[int],
    minSize: NotRequired[int],
    maxSize: NotRequired[int],
    instanceType: NotRequired[str],

AutoScalingGroupEstimatedMonthlySavingsTypeDef#

# AutoScalingGroupEstimatedMonthlySavingsTypeDef definition

class AutoScalingGroupEstimatedMonthlySavingsTypeDef(TypedDict):
    currency: NotRequired[CurrencyType],  # (1)
    value: NotRequired[float],
  1. See CurrencyType

UtilizationMetricTypeDef#

# UtilizationMetricTypeDef definition

class UtilizationMetricTypeDef(TypedDict):
    name: NotRequired[MetricNameType],  # (1)
    statistic: NotRequired[MetricStatisticType],  # (2)
    value: NotRequired[float],
  1. See MetricNameType
  2. See MetricStatisticType

MemorySizeConfigurationTypeDef#

# MemorySizeConfigurationTypeDef definition

class MemorySizeConfigurationTypeDef(TypedDict):
    memory: NotRequired[int],
    memoryReservation: NotRequired[int],

CurrentPerformanceRiskRatingsTypeDef#

# CurrentPerformanceRiskRatingsTypeDef definition

class CurrentPerformanceRiskRatingsTypeDef(TypedDict):
    high: NotRequired[int],
    medium: NotRequired[int],
    low: NotRequired[int],
    veryLow: NotRequired[int],

CustomizableMetricParametersTypeDef#

# CustomizableMetricParametersTypeDef definition

class CustomizableMetricParametersTypeDef(TypedDict):
    threshold: NotRequired[CustomizableMetricThresholdType],  # (1)
    headroom: NotRequired[CustomizableMetricHeadroomType],  # (2)
  1. See CustomizableMetricThresholdType
  2. See CustomizableMetricHeadroomType

ScopeTypeDef#

# ScopeTypeDef definition

class ScopeTypeDef(TypedDict):
    name: NotRequired[ScopeNameType],  # (1)
    value: NotRequired[str],
  1. See ScopeNameType

JobFilterTypeDef#

# JobFilterTypeDef definition

class JobFilterTypeDef(TypedDict):
    name: NotRequired[JobFilterNameType],  # (1)
    values: NotRequired[Sequence[str]],
  1. See JobFilterNameType

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef definition

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

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

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

EBSSavingsEstimationModeTypeDef#

# EBSSavingsEstimationModeTypeDef definition

class EBSSavingsEstimationModeTypeDef(TypedDict):
    source: NotRequired[EBSSavingsEstimationModeSourceType],  # (1)
  1. See EBSSavingsEstimationModeSourceType

EBSEstimatedMonthlySavingsTypeDef#

# EBSEstimatedMonthlySavingsTypeDef definition

class EBSEstimatedMonthlySavingsTypeDef(TypedDict):
    currency: NotRequired[CurrencyType],  # (1)
    value: NotRequired[float],
  1. See CurrencyType

EBSFilterTypeDef#

# EBSFilterTypeDef definition

class EBSFilterTypeDef(TypedDict):
    name: NotRequired[EBSFilterNameType],  # (1)
    values: NotRequired[Sequence[str]],
  1. See EBSFilterNameType

EBSUtilizationMetricTypeDef#

# EBSUtilizationMetricTypeDef definition

class EBSUtilizationMetricTypeDef(TypedDict):
    name: NotRequired[EBSMetricNameType],  # (1)
    statistic: NotRequired[MetricStatisticType],  # (2)
    value: NotRequired[float],
  1. See EBSMetricNameType
  2. See MetricStatisticType

ECSSavingsEstimationModeTypeDef#

# ECSSavingsEstimationModeTypeDef definition

class ECSSavingsEstimationModeTypeDef(TypedDict):
    source: NotRequired[ECSSavingsEstimationModeSourceType],  # (1)
  1. See ECSSavingsEstimationModeSourceType

ECSEstimatedMonthlySavingsTypeDef#

# ECSEstimatedMonthlySavingsTypeDef definition

class ECSEstimatedMonthlySavingsTypeDef(TypedDict):
    currency: NotRequired[CurrencyType],  # (1)
    value: NotRequired[float],
  1. See CurrencyType

ECSServiceProjectedMetricTypeDef#

# ECSServiceProjectedMetricTypeDef definition

class ECSServiceProjectedMetricTypeDef(TypedDict):
    name: NotRequired[ECSServiceMetricNameType],  # (1)
    timestamps: NotRequired[List[datetime]],
    upperBoundValues: NotRequired[List[float]],
    lowerBoundValues: NotRequired[List[float]],
  1. See ECSServiceMetricNameType

ECSServiceProjectedUtilizationMetricTypeDef#

# ECSServiceProjectedUtilizationMetricTypeDef definition

class ECSServiceProjectedUtilizationMetricTypeDef(TypedDict):
    name: NotRequired[ECSServiceMetricNameType],  # (1)
    statistic: NotRequired[ECSServiceMetricStatisticType],  # (2)
    lowerBoundValue: NotRequired[float],
    upperBoundValue: NotRequired[float],
  1. See ECSServiceMetricNameType
  2. See ECSServiceMetricStatisticType

ECSServiceRecommendationFilterTypeDef#

# ECSServiceRecommendationFilterTypeDef definition

class ECSServiceRecommendationFilterTypeDef(TypedDict):
    name: NotRequired[ECSServiceRecommendationFilterNameType],  # (1)
    values: NotRequired[Sequence[str]],
  1. See ECSServiceRecommendationFilterNameType

ECSServiceUtilizationMetricTypeDef#

# ECSServiceUtilizationMetricTypeDef definition

class ECSServiceUtilizationMetricTypeDef(TypedDict):
    name: NotRequired[ECSServiceMetricNameType],  # (1)
    statistic: NotRequired[ECSServiceMetricStatisticType],  # (2)
    value: NotRequired[float],
  1. See ECSServiceMetricNameType
  2. See ECSServiceMetricStatisticType

TagTypeDef#

# TagTypeDef definition

class TagTypeDef(TypedDict):
    key: NotRequired[str],
    value: NotRequired[str],

EffectivePreferredResourceTypeDef#

# EffectivePreferredResourceTypeDef definition

class EffectivePreferredResourceTypeDef(TypedDict):
    name: NotRequired[PreferredResourceNameType],  # (1)
    includeList: NotRequired[List[str]],
    effectiveIncludeList: NotRequired[List[str]],
    excludeList: NotRequired[List[str]],
  1. See PreferredResourceNameType

ExternalMetricsPreferenceTypeDef#

# ExternalMetricsPreferenceTypeDef definition

class ExternalMetricsPreferenceTypeDef(TypedDict):
    source: NotRequired[ExternalMetricsSourceType],  # (1)
  1. See ExternalMetricsSourceType

InstanceSavingsEstimationModeTypeDef#

# InstanceSavingsEstimationModeTypeDef definition

class InstanceSavingsEstimationModeTypeDef(TypedDict):
    source: NotRequired[InstanceSavingsEstimationModeSourceType],  # (1)
  1. See InstanceSavingsEstimationModeSourceType

EnrollmentFilterTypeDef#

# EnrollmentFilterTypeDef definition

class EnrollmentFilterTypeDef(TypedDict):
    name: NotRequired[EnrollmentFilterNameType],  # (1)
    values: NotRequired[Sequence[str]],
  1. See EnrollmentFilterNameType

EstimatedMonthlySavingsTypeDef#

# EstimatedMonthlySavingsTypeDef definition

class EstimatedMonthlySavingsTypeDef(TypedDict):
    currency: NotRequired[CurrencyType],  # (1)
    value: NotRequired[float],
  1. See CurrencyType

FilterTypeDef#

# FilterTypeDef definition

class FilterTypeDef(TypedDict):
    name: NotRequired[FilterNameType],  # (1)
    values: NotRequired[Sequence[str]],
  1. See FilterNameType

RecommendationPreferencesTypeDef#

# RecommendationPreferencesTypeDef definition

class RecommendationPreferencesTypeDef(TypedDict):
    cpuVendorArchitectures: NotRequired[Sequence[CpuVendorArchitectureType]],  # (1)
  1. See