Skip to content

Type definitions#

Index > ComputeOptimizer > Type definitions

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

TimestampTypeDef#

# TimestampTypeDef Union usage example

from mypy_boto3_compute_optimizer.type_defs import TimestampTypeDef


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


# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime.datetime,
    str,
]

AccountEnrollmentStatusTypeDef#

# AccountEnrollmentStatusTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import AccountEnrollmentStatusTypeDef


def get_value() -> AccountEnrollmentStatusTypeDef:
    return {
        "accountId": ...,
    }


# AccountEnrollmentStatusTypeDef definition

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

AutoScalingGroupConfigurationTypeDef#

# AutoScalingGroupConfigurationTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import AutoScalingGroupConfigurationTypeDef


def get_value() -> AutoScalingGroupConfigurationTypeDef:
    return {
        "desiredCapacity": ...,
    }


# AutoScalingGroupConfigurationTypeDef definition

class AutoScalingGroupConfigurationTypeDef(TypedDict):
    desiredCapacity: NotRequired[int],
    minSize: NotRequired[int],
    maxSize: NotRequired[int],
    instanceType: NotRequired[str],
    allocationStrategy: NotRequired[AllocationStrategyType],  # (1)
    estimatedInstanceHourReductionPercentage: NotRequired[float],
    type: NotRequired[AsgTypeType],  # (2)
    mixedInstanceTypes: NotRequired[List[str]],
  1. See AllocationStrategyType
  2. See AsgTypeType

AutoScalingGroupEstimatedMonthlySavingsTypeDef#

# AutoScalingGroupEstimatedMonthlySavingsTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import AutoScalingGroupEstimatedMonthlySavingsTypeDef


def get_value() -> AutoScalingGroupEstimatedMonthlySavingsTypeDef:
    return {
        "currency": ...,
    }


# AutoScalingGroupEstimatedMonthlySavingsTypeDef definition

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

UtilizationMetricTypeDef#

# UtilizationMetricTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import UtilizationMetricTypeDef


def get_value() -> UtilizationMetricTypeDef:
    return {
        "name": ...,
    }


# UtilizationMetricTypeDef definition

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

MemorySizeConfigurationTypeDef#

# MemorySizeConfigurationTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import MemorySizeConfigurationTypeDef


def get_value() -> MemorySizeConfigurationTypeDef:
    return {
        "memory": ...,
    }


# MemorySizeConfigurationTypeDef definition

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

CurrentPerformanceRiskRatingsTypeDef#

# CurrentPerformanceRiskRatingsTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import CurrentPerformanceRiskRatingsTypeDef


def get_value() -> CurrentPerformanceRiskRatingsTypeDef:
    return {
        "high": ...,
    }


# CurrentPerformanceRiskRatingsTypeDef definition

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

CustomizableMetricParametersTypeDef#

# CustomizableMetricParametersTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import CustomizableMetricParametersTypeDef


def get_value() -> CustomizableMetricParametersTypeDef:
    return {
        "threshold": ...,
    }


# CustomizableMetricParametersTypeDef definition

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

DBStorageConfigurationTypeDef#

# DBStorageConfigurationTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import DBStorageConfigurationTypeDef


def get_value() -> DBStorageConfigurationTypeDef:
    return {
        "storageType": ...,
    }


# DBStorageConfigurationTypeDef definition

class DBStorageConfigurationTypeDef(TypedDict):
    storageType: NotRequired[str],
    allocatedStorage: NotRequired[int],
    iops: NotRequired[int],
    maxAllocatedStorage: NotRequired[int],
    storageThroughput: NotRequired[int],

ScopeTypeDef#

# ScopeTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ScopeTypeDef


def get_value() -> ScopeTypeDef:
    return {
        "name": ...,
    }


# ScopeTypeDef definition

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

JobFilterTypeDef#

# JobFilterTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import JobFilterTypeDef


def get_value() -> JobFilterTypeDef:
    return {
        "name": ...,
    }


# JobFilterTypeDef definition

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

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import PaginatorConfigTypeDef


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


# PaginatorConfigTypeDef definition

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

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef TypedDict usage example

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

EBSSavingsEstimationModeTypeDef#

# EBSSavingsEstimationModeTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import EBSSavingsEstimationModeTypeDef


def get_value() -> EBSSavingsEstimationModeTypeDef:
    return {
        "source": ...,
    }


# EBSSavingsEstimationModeTypeDef definition

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

EBSEstimatedMonthlySavingsTypeDef#

# EBSEstimatedMonthlySavingsTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import EBSEstimatedMonthlySavingsTypeDef


def get_value() -> EBSEstimatedMonthlySavingsTypeDef:
    return {
        "currency": ...,
    }


# EBSEstimatedMonthlySavingsTypeDef definition

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

EBSFilterTypeDef#

# EBSFilterTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import EBSFilterTypeDef


def get_value() -> EBSFilterTypeDef:
    return {
        "name": ...,
    }


# EBSFilterTypeDef definition

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

EBSUtilizationMetricTypeDef#

# EBSUtilizationMetricTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import EBSUtilizationMetricTypeDef


def get_value() -> EBSUtilizationMetricTypeDef:
    return {
        "name": ...,
    }


# EBSUtilizationMetricTypeDef definition

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

ECSSavingsEstimationModeTypeDef#

# ECSSavingsEstimationModeTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ECSSavingsEstimationModeTypeDef


def get_value() -> ECSSavingsEstimationModeTypeDef:
    return {
        "source": ...,
    }


# ECSSavingsEstimationModeTypeDef definition

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

ECSEstimatedMonthlySavingsTypeDef#

# ECSEstimatedMonthlySavingsTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ECSEstimatedMonthlySavingsTypeDef


def get_value() -> ECSEstimatedMonthlySavingsTypeDef:
    return {
        "currency": ...,
    }


# ECSEstimatedMonthlySavingsTypeDef definition

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

ECSServiceProjectedMetricTypeDef#

# ECSServiceProjectedMetricTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ECSServiceProjectedMetricTypeDef


def get_value() -> ECSServiceProjectedMetricTypeDef:
    return {
        "name": ...,
    }


# ECSServiceProjectedMetricTypeDef definition

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

ECSServiceProjectedUtilizationMetricTypeDef#

# ECSServiceProjectedUtilizationMetricTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ECSServiceProjectedUtilizationMetricTypeDef


def get_value() -> ECSServiceProjectedUtilizationMetricTypeDef:
    return {
        "name": ...,
    }


# 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 TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ECSServiceRecommendationFilterTypeDef


def get_value() -> ECSServiceRecommendationFilterTypeDef:
    return {
        "name": ...,
    }


# ECSServiceRecommendationFilterTypeDef definition

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

ECSServiceUtilizationMetricTypeDef#

# ECSServiceUtilizationMetricTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ECSServiceUtilizationMetricTypeDef


def get_value() -> ECSServiceUtilizationMetricTypeDef:
    return {
        "name": ...,
    }


# ECSServiceUtilizationMetricTypeDef definition

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

TagTypeDef#

# TagTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import TagTypeDef


def get_value() -> TagTypeDef:
    return {
        "key": ...,
    }


# TagTypeDef definition

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

EffectivePreferredResourceTypeDef#

# EffectivePreferredResourceTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import EffectivePreferredResourceTypeDef


def get_value() -> EffectivePreferredResourceTypeDef:
    return {
        "name": ...,
    }


# 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 TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExternalMetricsPreferenceTypeDef


def get_value() -> ExternalMetricsPreferenceTypeDef:
    return {
        "source": ...,
    }


# ExternalMetricsPreferenceTypeDef definition

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

InstanceSavingsEstimationModeTypeDef#

# InstanceSavingsEstimationModeTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import InstanceSavingsEstimationModeTypeDef


def get_value() -> InstanceSavingsEstimationModeTypeDef:
    return {
        "source": ...,
    }


# InstanceSavingsEstimationModeTypeDef definition

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

EnrollmentFilterTypeDef#

# EnrollmentFilterTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import EnrollmentFilterTypeDef


def get_value() -> EnrollmentFilterTypeDef:
    return {
        "name": ...,
    }


# EnrollmentFilterTypeDef definition

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

EstimatedMonthlySavingsTypeDef#

# EstimatedMonthlySavingsTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import EstimatedMonthlySavingsTypeDef


def get_value() -> EstimatedMonthlySavingsTypeDef:
    return {
        "currency": ...,
    }


# EstimatedMonthlySavingsTypeDef definition

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

FilterTypeDef#

# FilterTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import FilterTypeDef


def get_value() -> FilterTypeDef:
    return {
        "name": ...,
    }


# FilterTypeDef definition

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

RecommendationPreferencesTypeDef#

# RecommendationPreferencesTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RecommendationPreferencesTypeDef


def get_value() -> RecommendationPreferencesTypeDef:
    return {
        "cpuVendorArchitectures": ...,
    }


# RecommendationPreferencesTypeDef definition

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

S3DestinationConfigTypeDef#

# S3DestinationConfigTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import S3DestinationConfigTypeDef


def get_value() -> S3DestinationConfigTypeDef:
    return {
        "bucket": ...,
    }


# S3DestinationConfigTypeDef definition

class S3DestinationConfigTypeDef(TypedDict):
    bucket: NotRequired[str],
    keyPrefix: NotRequired[str],

S3DestinationTypeDef#

# S3DestinationTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import S3DestinationTypeDef


def get_value() -> S3DestinationTypeDef:
    return {
        "bucket": ...,
    }


# S3DestinationTypeDef definition

class S3DestinationTypeDef(TypedDict):
    bucket: NotRequired[str],
    key: NotRequired[str],
    metadataKey: NotRequired[str],

IdleRecommendationFilterTypeDef#

# IdleRecommendationFilterTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import IdleRecommendationFilterTypeDef


def get_value() -> IdleRecommendationFilterTypeDef:
    return {
        "name": ...,
    }


# IdleRecommendationFilterTypeDef definition

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

LambdaFunctionRecommendationFilterTypeDef#

# LambdaFunctionRecommendationFilterTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import LambdaFunctionRecommendationFilterTypeDef


def get_value() -> LambdaFunctionRecommendationFilterTypeDef:
    return {
        "name": ...,
    }


# LambdaFunctionRecommendationFilterTypeDef definition

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

LicenseRecommendationFilterTypeDef#

# LicenseRecommendationFilterTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import LicenseRecommendationFilterTypeDef


def get_value() -> LicenseRecommendationFilterTypeDef:
    return {
        "name": ...,
    }


# LicenseRecommendationFilterTypeDef definition

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

RDSDBRecommendationFilterTypeDef#

# RDSDBRecommendationFilterTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RDSDBRecommendationFilterTypeDef


def get_value() -> RDSDBRecommendationFilterTypeDef:
    return {
        "name": ...,
    }


# RDSDBRecommendationFilterTypeDef definition

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

ExternalMetricStatusTypeDef#

# ExternalMetricStatusTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExternalMetricStatusTypeDef


def get_value() -> ExternalMetricStatusTypeDef:
    return {
        "statusCode": ...,
    }


# ExternalMetricStatusTypeDef definition

class ExternalMetricStatusTypeDef(TypedDict):
    statusCode: NotRequired[ExternalMetricStatusCodeType],  # (1)
    statusReason: NotRequired[str],
  1. See ExternalMetricStatusCodeType

GetRecommendationErrorTypeDef#

# GetRecommendationErrorTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetRecommendationErrorTypeDef


def get_value() -> GetRecommendationErrorTypeDef:
    return {
        "identifier": ...,
    }


# GetRecommendationErrorTypeDef definition

class GetRecommendationErrorTypeDef(TypedDict):
    identifier: NotRequired[str],
    code: NotRequired[str],
    message: NotRequired[str],

GetEffectiveRecommendationPreferencesRequestTypeDef#

# GetEffectiveRecommendationPreferencesRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetEffectiveRecommendationPreferencesRequestTypeDef


def get_value() -> GetEffectiveRecommendationPreferencesRequestTypeDef:
    return {
        "resourceArn": ...,
    }


# GetEffectiveRecommendationPreferencesRequestTypeDef definition

class GetEffectiveRecommendationPreferencesRequestTypeDef(TypedDict):
    resourceArn: str,

OrderByTypeDef#

# OrderByTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import OrderByTypeDef


def get_value() -> OrderByTypeDef:
    return {
        "dimension": ...,
    }


# OrderByTypeDef definition

class OrderByTypeDef(TypedDict):
    dimension: NotRequired[DimensionType],  # (1)
    order: NotRequired[OrderType],  # (2)
  1. See DimensionType
  2. See OrderType

IdleRecommendationErrorTypeDef#

# IdleRecommendationErrorTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import IdleRecommendationErrorTypeDef


def get_value() -> IdleRecommendationErrorTypeDef:
    return {
        "identifier": ...,
    }


# IdleRecommendationErrorTypeDef definition

class IdleRecommendationErrorTypeDef(TypedDict):
    identifier: NotRequired[str],
    code: NotRequired[str],
    message: NotRequired[str],
    resourceType: NotRequired[IdleRecommendationResourceTypeType],  # (1)
  1. See IdleRecommendationResourceTypeType

GetRecommendationSummariesRequestTypeDef#

# GetRecommendationSummariesRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetRecommendationSummariesRequestTypeDef


def get_value() -> GetRecommendationSummariesRequestTypeDef:
    return {
        "accountIds": ...,
    }


# GetRecommendationSummariesRequestTypeDef definition

class GetRecommendationSummariesRequestTypeDef(TypedDict):
    accountIds: NotRequired[Sequence[str]],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

GpuTypeDef#

# GpuTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GpuTypeDef


def get_value() -> GpuTypeDef:
    return {
        "gpuCount": ...,
    }


# GpuTypeDef definition

class GpuTypeDef(TypedDict):
    gpuCount: NotRequired[int],
    gpuMemorySizeInMiB: NotRequired[int],

IdleEstimatedMonthlySavingsTypeDef#

# IdleEstimatedMonthlySavingsTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import IdleEstimatedMonthlySavingsTypeDef


def get_value() -> IdleEstimatedMonthlySavingsTypeDef:
    return {
        "currency": ...,
    }


# IdleEstimatedMonthlySavingsTypeDef definition

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

IdleUtilizationMetricTypeDef#

# IdleUtilizationMetricTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import IdleUtilizationMetricTypeDef


def get_value() -> IdleUtilizationMetricTypeDef:
    return {
        "name": ...,
    }


# IdleUtilizationMetricTypeDef definition

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

IdleSummaryTypeDef#

# IdleSummaryTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import IdleSummaryTypeDef


def get_value() -> IdleSummaryTypeDef:
    return {
        "name": ...,
    }


# IdleSummaryTypeDef definition

class IdleSummaryTypeDef(TypedDict):
    name: NotRequired[IdleFindingType],  # (1)
    value: NotRequired[float],
  1. See IdleFindingType

InstanceEstimatedMonthlySavingsTypeDef#

# InstanceEstimatedMonthlySavingsTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import InstanceEstimatedMonthlySavingsTypeDef


def get_value() -> InstanceEstimatedMonthlySavingsTypeDef:
    return {
        "currency": ...,
    }


# InstanceEstimatedMonthlySavingsTypeDef definition

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

RecommendationSourceTypeDef#

# RecommendationSourceTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RecommendationSourceTypeDef


def get_value() -> RecommendationSourceTypeDef:
    return {
        "recommendationSourceArn": ...,
    }


# RecommendationSourceTypeDef definition

class RecommendationSourceTypeDef(TypedDict):
    recommendationSourceArn: NotRequired[str],
    recommendationSourceType: NotRequired[RecommendationSourceTypeType],  # (1)
  1. See RecommendationSourceTypeType

LambdaSavingsEstimationModeTypeDef#

# LambdaSavingsEstimationModeTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import LambdaSavingsEstimationModeTypeDef


def get_value() -> LambdaSavingsEstimationModeTypeDef:
    return {
        "source": ...,
    }


# LambdaSavingsEstimationModeTypeDef definition

class LambdaSavingsEstimationModeTypeDef(TypedDict):
    source: NotRequired[LambdaSavingsEstimationModeSourceType],  # (1)
  1. See LambdaSavingsEstimationModeSourceType

LambdaEstimatedMonthlySavingsTypeDef#

# LambdaEstimatedMonthlySavingsTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import LambdaEstimatedMonthlySavingsTypeDef


def get_value() -> LambdaEstimatedMonthlySavingsTypeDef:
    return {
        "currency": ...,
    }


# LambdaEstimatedMonthlySavingsTypeDef definition

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

LambdaFunctionMemoryProjectedMetricTypeDef#

# LambdaFunctionMemoryProjectedMetricTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import LambdaFunctionMemoryProjectedMetricTypeDef


def get_value() -> LambdaFunctionMemoryProjectedMetricTypeDef:
    return {
        "name": ...,
    }


# LambdaFunctionMemoryProjectedMetricTypeDef definition

class LambdaFunctionMemoryProjectedMetricTypeDef(TypedDict):
    name: NotRequired[LambdaFunctionMemoryMetricNameType],  # (1)
    statistic: NotRequired[LambdaFunctionMemoryMetricStatisticType],  # (2)
    value: NotRequired[float],
  1. See LambdaFunctionMemoryMetricNameType
  2. See LambdaFunctionMemoryMetricStatisticType

LambdaFunctionUtilizationMetricTypeDef#

# LambdaFunctionUtilizationMetricTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import LambdaFunctionUtilizationMetricTypeDef


def get_value() -> LambdaFunctionUtilizationMetricTypeDef:
    return {
        "name": ...,
    }


# LambdaFunctionUtilizationMetricTypeDef definition

class LambdaFunctionUtilizationMetricTypeDef(TypedDict):
    name: NotRequired[LambdaFunctionMetricNameType],  # (1)
    statistic: NotRequired[LambdaFunctionMetricStatisticType],  # (2)
    value: NotRequired[float],
  1. See LambdaFunctionMetricNameType
  2. See LambdaFunctionMetricStatisticType

MetricSourceTypeDef#

# MetricSourceTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import MetricSourceTypeDef


def get_value() -> MetricSourceTypeDef:
    return {
        "provider": ...,
    }


# MetricSourceTypeDef definition

class MetricSourceTypeDef(TypedDict):
    provider: NotRequired[MetricSourceProviderType],  # (1)
    providerArn: NotRequired[str],
  1. See MetricSourceProviderType

PreferredResourceTypeDef#

# PreferredResourceTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import PreferredResourceTypeDef


def get_value() -> PreferredResourceTypeDef:
    return {
        "name": ...,
    }


# PreferredResourceTypeDef definition

class PreferredResourceTypeDef(TypedDict):
    name: NotRequired[PreferredResourceNameType],  # (1)
    includeList: NotRequired[Sequence[str]],
    excludeList: NotRequired[Sequence[str]],
  1. See PreferredResourceNameType

ProjectedMetricTypeDef#

# ProjectedMetricTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ProjectedMetricTypeDef


def get_value() -> ProjectedMetricTypeDef:
    return {
        "name": ...,
    }


# ProjectedMetricTypeDef definition

class ProjectedMetricTypeDef(TypedDict):
    name: NotRequired[MetricNameType],  # (1)
    timestamps: NotRequired[List[datetime.datetime]],
    values: NotRequired[List[float]],
  1. See MetricNameType

RDSDBUtilizationMetricTypeDef#

# RDSDBUtilizationMetricTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RDSDBUtilizationMetricTypeDef


def get_value() -> RDSDBUtilizationMetricTypeDef:
    return {
        "name": ...,
    }


# RDSDBUtilizationMetricTypeDef definition

class RDSDBUtilizationMetricTypeDef(TypedDict):
    name: NotRequired[RDSDBMetricNameType],  # (1)
    statistic: NotRequired[RDSDBMetricStatisticType],  # (2)
    value: NotRequired[float],
  1. See RDSDBMetricNameType
  2. See RDSDBMetricStatisticType

RDSDatabaseProjectedMetricTypeDef#

# RDSDatabaseProjectedMetricTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RDSDatabaseProjectedMetricTypeDef


def get_value() -> RDSDatabaseProjectedMetricTypeDef:
    return {
        "name": ...,
    }


# RDSDatabaseProjectedMetricTypeDef definition

class RDSDatabaseProjectedMetricTypeDef(TypedDict):
    name: NotRequired[RDSDBMetricNameType],  # (1)
    timestamps: NotRequired[List[datetime.datetime]],
    values: NotRequired[List[float]],
  1. See RDSDBMetricNameType

RDSSavingsEstimationModeTypeDef#

# RDSSavingsEstimationModeTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RDSSavingsEstimationModeTypeDef


def get_value() -> RDSSavingsEstimationModeTypeDef:
    return {
        "source": ...,
    }


# RDSSavingsEstimationModeTypeDef definition

class RDSSavingsEstimationModeTypeDef(TypedDict):
    source: NotRequired[RDSSavingsEstimationModeSourceType],  # (1)
  1. See RDSSavingsEstimationModeSourceType

RDSInstanceEstimatedMonthlySavingsTypeDef#

# RDSInstanceEstimatedMonthlySavingsTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RDSInstanceEstimatedMonthlySavingsTypeDef


def get_value() -> RDSInstanceEstimatedMonthlySavingsTypeDef:
    return {
        "currency": ...,
    }


# RDSInstanceEstimatedMonthlySavingsTypeDef definition

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

RDSStorageEstimatedMonthlySavingsTypeDef#

# RDSStorageEstimatedMonthlySavingsTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RDSStorageEstimatedMonthlySavingsTypeDef


def get_value() -> RDSStorageEstimatedMonthlySavingsTypeDef:
    return {
        "currency": ...,
    }


# RDSStorageEstimatedMonthlySavingsTypeDef definition

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

ReasonCodeSummaryTypeDef#

# ReasonCodeSummaryTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ReasonCodeSummaryTypeDef


def get_value() -> ReasonCodeSummaryTypeDef:
    return {
        "name": ...,
    }


# ReasonCodeSummaryTypeDef definition

class ReasonCodeSummaryTypeDef(TypedDict):
    name: NotRequired[FindingReasonCodeType],  # (1)
    value: NotRequired[float],
  1. See FindingReasonCodeType

UpdateEnrollmentStatusRequestTypeDef#

# UpdateEnrollmentStatusRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import UpdateEnrollmentStatusRequestTypeDef


def get_value() -> UpdateEnrollmentStatusRequestTypeDef:
    return {
        "status": ...,
    }


# UpdateEnrollmentStatusRequestTypeDef definition

class UpdateEnrollmentStatusRequestTypeDef(TypedDict):
    status: StatusType,  # (1)
    includeMemberAccounts: NotRequired[bool],
  1. See StatusType

VolumeConfigurationTypeDef#

# VolumeConfigurationTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import VolumeConfigurationTypeDef


def get_value() -> VolumeConfigurationTypeDef:
    return {
        "volumeType": ...,
    }


# VolumeConfigurationTypeDef definition

class VolumeConfigurationTypeDef(TypedDict):
    volumeType: NotRequired[str],
    volumeSize: NotRequired[int],
    volumeBaselineIOPS: NotRequired[int],
    volumeBurstIOPS: NotRequired[int],
    volumeBaselineThroughput: NotRequired[int],
    volumeBurstThroughput: NotRequired[int],
    rootVolume: NotRequired[bool],

AutoScalingGroupSavingsOpportunityAfterDiscountsTypeDef#

# AutoScalingGroupSavingsOpportunityAfterDiscountsTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import AutoScalingGroupSavingsOpportunityAfterDiscountsTypeDef


def get_value() -> AutoScalingGroupSavingsOpportunityAfterDiscountsTypeDef:
    return {
        "savingsOpportunityPercentage": ...,
    }


# AutoScalingGroupSavingsOpportunityAfterDiscountsTypeDef definition

class AutoScalingGroupSavingsOpportunityAfterDiscountsTypeDef(TypedDict):
    savingsOpportunityPercentage: NotRequired[float],
    estimatedMonthlySavings: NotRequired[AutoScalingGroupEstimatedMonthlySavingsTypeDef],  # (1)
  1. See AutoScalingGroupEstimatedMonthlySavingsTypeDef

ContainerConfigurationTypeDef#

# ContainerConfigurationTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ContainerConfigurationTypeDef


def get_value() -> ContainerConfigurationTypeDef:
    return {
        "containerName": ...,
    }


# ContainerConfigurationTypeDef definition

class ContainerConfigurationTypeDef(TypedDict):
    containerName: NotRequired[str],
    memorySizeConfiguration: NotRequired[MemorySizeConfigurationTypeDef],  # (1)
    cpu: NotRequired[int],
  1. See MemorySizeConfigurationTypeDef

ContainerRecommendationTypeDef#

# ContainerRecommendationTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ContainerRecommendationTypeDef


def get_value() -> ContainerRecommendationTypeDef:
    return {
        "containerName": ...,
    }


# ContainerRecommendationTypeDef definition

class ContainerRecommendationTypeDef(TypedDict):
    containerName: NotRequired[str],
    memorySizeConfiguration: NotRequired[MemorySizeConfigurationTypeDef],  # (1)
    cpu: NotRequired[int],
  1. See MemorySizeConfigurationTypeDef

UtilizationPreferenceTypeDef#

# UtilizationPreferenceTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import UtilizationPreferenceTypeDef


def get_value() -> UtilizationPreferenceTypeDef:
    return {
        "metricName": ...,
    }


# UtilizationPreferenceTypeDef definition

class UtilizationPreferenceTypeDef(TypedDict):
    metricName: NotRequired[CustomizableMetricNameType],  # (1)
    metricParameters: NotRequired[CustomizableMetricParametersTypeDef],  # (2)
  1. See CustomizableMetricNameType
  2. See CustomizableMetricParametersTypeDef

DeleteRecommendationPreferencesRequestTypeDef#

# DeleteRecommendationPreferencesRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import DeleteRecommendationPreferencesRequestTypeDef


def get_value() -> DeleteRecommendationPreferencesRequestTypeDef:
    return {
        "resourceType": ...,
    }


# DeleteRecommendationPreferencesRequestTypeDef definition

class DeleteRecommendationPreferencesRequestTypeDef(TypedDict):
    resourceType: ResourceTypeType,  # (1)
    recommendationPreferenceNames: Sequence[RecommendationPreferenceNameType],  # (2)
    scope: NotRequired[ScopeTypeDef],  # (3)
  1. See ResourceTypeType
  2. See Sequence[RecommendationPreferenceNameType]
  3. See ScopeTypeDef

GetRecommendationPreferencesRequestTypeDef#

# GetRecommendationPreferencesRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetRecommendationPreferencesRequestTypeDef


def get_value() -> GetRecommendationPreferencesRequestTypeDef:
    return {
        "resourceType": ...,
    }


# GetRecommendationPreferencesRequestTypeDef definition

class GetRecommendationPreferencesRequestTypeDef(TypedDict):
    resourceType: ResourceTypeType,  # (1)
    scope: NotRequired[ScopeTypeDef],  # (2)
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See ResourceTypeType
  2. See ScopeTypeDef

DescribeRecommendationExportJobsRequestTypeDef#

# DescribeRecommendationExportJobsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import DescribeRecommendationExportJobsRequestTypeDef


def get_value() -> DescribeRecommendationExportJobsRequestTypeDef:
    return {
        "jobIds": ...,
    }


# DescribeRecommendationExportJobsRequestTypeDef definition

class DescribeRecommendationExportJobsRequestTypeDef(TypedDict):
    jobIds: NotRequired[Sequence[str]],
    filters: NotRequired[Sequence[JobFilterTypeDef]],  # (1)
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See Sequence[JobFilterTypeDef]

DescribeRecommendationExportJobsRequestPaginateTypeDef#

# DescribeRecommendationExportJobsRequestPaginateTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import DescribeRecommendationExportJobsRequestPaginateTypeDef


def get_value() -> DescribeRecommendationExportJobsRequestPaginateTypeDef:
    return {
        "jobIds": ...,
    }


# DescribeRecommendationExportJobsRequestPaginateTypeDef definition

class DescribeRecommendationExportJobsRequestPaginateTypeDef(TypedDict):
    jobIds: NotRequired[Sequence[str]],
    filters: NotRequired[Sequence[JobFilterTypeDef]],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See Sequence[JobFilterTypeDef]
  2. See PaginatorConfigTypeDef

GetRecommendationPreferencesRequestPaginateTypeDef#

# GetRecommendationPreferencesRequestPaginateTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetRecommendationPreferencesRequestPaginateTypeDef


def get_value() -> GetRecommendationPreferencesRequestPaginateTypeDef:
    return {
        "resourceType": ...,
    }


# GetRecommendationPreferencesRequestPaginateTypeDef definition

class GetRecommendationPreferencesRequestPaginateTypeDef(TypedDict):
    resourceType: ResourceTypeType,  # (1)
    scope: NotRequired[ScopeTypeDef],  # (2)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See ResourceTypeType
  2. See ScopeTypeDef
  3. See PaginatorConfigTypeDef

GetRecommendationSummariesRequestPaginateTypeDef#

# GetRecommendationSummariesRequestPaginateTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetRecommendationSummariesRequestPaginateTypeDef


def get_value() -> GetRecommendationSummariesRequestPaginateTypeDef:
    return {
        "accountIds": ...,
    }


# GetRecommendationSummariesRequestPaginateTypeDef definition

class GetRecommendationSummariesRequestPaginateTypeDef(TypedDict):
    accountIds: NotRequired[Sequence[str]],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

GetEnrollmentStatusResponseTypeDef#

# GetEnrollmentStatusResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetEnrollmentStatusResponseTypeDef


def get_value() -> GetEnrollmentStatusResponseTypeDef:
    return {
        "status": ...,
    }


# GetEnrollmentStatusResponseTypeDef definition

class GetEnrollmentStatusResponseTypeDef(TypedDict):
    status: StatusType,  # (1)
    statusReason: str,
    memberAccountsEnrolled: bool,
    lastUpdatedTimestamp: datetime.datetime,
    numberOfMemberAccountsOptedIn: int,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See StatusType
  2. See ResponseMetadataTypeDef

GetEnrollmentStatusesForOrganizationResponseTypeDef#

# GetEnrollmentStatusesForOrganizationResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetEnrollmentStatusesForOrganizationResponseTypeDef


def get_value() -> GetEnrollmentStatusesForOrganizationResponseTypeDef:
    return {
        "accountEnrollmentStatuses": ...,
    }


# GetEnrollmentStatusesForOrganizationResponseTypeDef definition

class GetEnrollmentStatusesForOrganizationResponseTypeDef(TypedDict):
    accountEnrollmentStatuses: List[AccountEnrollmentStatusTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    nextToken: NotRequired[str],
  1. See List[AccountEnrollmentStatusTypeDef]
  2. See ResponseMetadataTypeDef

UpdateEnrollmentStatusResponseTypeDef#

# UpdateEnrollmentStatusResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import UpdateEnrollmentStatusResponseTypeDef


def get_value() -> UpdateEnrollmentStatusResponseTypeDef:
    return {
        "status": ...,
    }


# UpdateEnrollmentStatusResponseTypeDef definition

class UpdateEnrollmentStatusResponseTypeDef(TypedDict):
    status: StatusType,  # (1)
    statusReason: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See StatusType
  2. See ResponseMetadataTypeDef

EBSEffectiveRecommendationPreferencesTypeDef#

# EBSEffectiveRecommendationPreferencesTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import EBSEffectiveRecommendationPreferencesTypeDef


def get_value() -> EBSEffectiveRecommendationPreferencesTypeDef:
    return {
        "savingsEstimationMode": ...,
    }


# EBSEffectiveRecommendationPreferencesTypeDef definition

class EBSEffectiveRecommendationPreferencesTypeDef(TypedDict):
    savingsEstimationMode: NotRequired[EBSSavingsEstimationModeTypeDef],  # (1)
  1. See EBSSavingsEstimationModeTypeDef

EBSSavingsOpportunityAfterDiscountsTypeDef#

# EBSSavingsOpportunityAfterDiscountsTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import EBSSavingsOpportunityAfterDiscountsTypeDef


def get_value() -> EBSSavingsOpportunityAfterDiscountsTypeDef:
    return {
        "savingsOpportunityPercentage": ...,
    }


# EBSSavingsOpportunityAfterDiscountsTypeDef definition

class EBSSavingsOpportunityAfterDiscountsTypeDef(TypedDict):
    savingsOpportunityPercentage: NotRequired[float],
    estimatedMonthlySavings: NotRequired[EBSEstimatedMonthlySavingsTypeDef],  # (1)
  1. See EBSEstimatedMonthlySavingsTypeDef

GetEBSVolumeRecommendationsRequestTypeDef#

# GetEBSVolumeRecommendationsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetEBSVolumeRecommendationsRequestTypeDef


def get_value() -> GetEBSVolumeRecommendationsRequestTypeDef:
    return {
        "volumeArns": ...,
    }


# GetEBSVolumeRecommendationsRequestTypeDef definition

class GetEBSVolumeRecommendationsRequestTypeDef(TypedDict):
    volumeArns: NotRequired[Sequence[str]],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    filters: NotRequired[Sequence[EBSFilterTypeDef]],  # (1)
    accountIds: NotRequired[Sequence[str]],
  1. See Sequence[EBSFilterTypeDef]

ECSEffectiveRecommendationPreferencesTypeDef#

# ECSEffectiveRecommendationPreferencesTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ECSEffectiveRecommendationPreferencesTypeDef


def get_value() -> ECSEffectiveRecommendationPreferencesTypeDef:
    return {
        "savingsEstimationMode": ...,
    }


# ECSEffectiveRecommendationPreferencesTypeDef definition

class ECSEffectiveRecommendationPreferencesTypeDef(TypedDict):
    savingsEstimationMode: NotRequired[ECSSavingsEstimationModeTypeDef],  # (1)
  1. See ECSSavingsEstimationModeTypeDef

ECSSavingsOpportunityAfterDiscountsTypeDef#

# ECSSavingsOpportunityAfterDiscountsTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ECSSavingsOpportunityAfterDiscountsTypeDef


def get_value() -> ECSSavingsOpportunityAfterDiscountsTypeDef:
    return {
        "savingsOpportunityPercentage": ...,
    }


# ECSSavingsOpportunityAfterDiscountsTypeDef definition

class ECSSavingsOpportunityAfterDiscountsTypeDef(TypedDict):
    savingsOpportunityPercentage: NotRequired[float],
    estimatedMonthlySavings: NotRequired[ECSEstimatedMonthlySavingsTypeDef],  # (1)
  1. See ECSEstimatedMonthlySavingsTypeDef

ECSServiceRecommendedOptionProjectedMetricTypeDef#

# ECSServiceRecommendedOptionProjectedMetricTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ECSServiceRecommendedOptionProjectedMetricTypeDef


def get_value() -> ECSServiceRecommendedOptionProjectedMetricTypeDef:
    return {
        "recommendedCpuUnits": ...,
    }


# ECSServiceRecommendedOptionProjectedMetricTypeDef definition

class ECSServiceRecommendedOptionProjectedMetricTypeDef(TypedDict):
    recommendedCpuUnits: NotRequired[int],
    recommendedMemorySize: NotRequired[int],
    projectedMetrics: NotRequired[List[ECSServiceProjectedMetricTypeDef]],  # (1)
  1. See List[ECSServiceProjectedMetricTypeDef]

GetECSServiceRecommendationsRequestTypeDef#

# GetECSServiceRecommendationsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetECSServiceRecommendationsRequestTypeDef


def get_value() -> GetECSServiceRecommendationsRequestTypeDef:
    return {
        "serviceArns": ...,
    }


# GetECSServiceRecommendationsRequestTypeDef definition

class GetECSServiceRecommendationsRequestTypeDef(TypedDict):
    serviceArns: NotRequired[Sequence[str]],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    filters: NotRequired[Sequence[ECSServiceRecommendationFilterTypeDef]],  # (1)
    accountIds: NotRequired[Sequence[str]],
  1. See Sequence[ECSServiceRecommendationFilterTypeDef]

GetEnrollmentStatusesForOrganizationRequestPaginateTypeDef#

# GetEnrollmentStatusesForOrganizationRequestPaginateTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetEnrollmentStatusesForOrganizationRequestPaginateTypeDef


def get_value() -> GetEnrollmentStatusesForOrganizationRequestPaginateTypeDef:
    return {
        "filters": ...,
    }


# GetEnrollmentStatusesForOrganizationRequestPaginateTypeDef definition

class GetEnrollmentStatusesForOrganizationRequestPaginateTypeDef(TypedDict):
    filters: NotRequired[Sequence[EnrollmentFilterTypeDef]],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See Sequence[EnrollmentFilterTypeDef]
  2. See PaginatorConfigTypeDef

GetEnrollmentStatusesForOrganizationRequestTypeDef#

# GetEnrollmentStatusesForOrganizationRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetEnrollmentStatusesForOrganizationRequestTypeDef


def get_value() -> GetEnrollmentStatusesForOrganizationRequestTypeDef:
    return {
        "filters": ...,
    }


# GetEnrollmentStatusesForOrganizationRequestTypeDef definition

class GetEnrollmentStatusesForOrganizationRequestTypeDef(TypedDict):
    filters: NotRequired[Sequence[EnrollmentFilterTypeDef]],  # (1)
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See Sequence[EnrollmentFilterTypeDef]

InferredWorkloadSavingTypeDef#

# InferredWorkloadSavingTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import InferredWorkloadSavingTypeDef


def get_value() -> InferredWorkloadSavingTypeDef:
    return {
        "inferredWorkloadTypes": ...,
    }


# InferredWorkloadSavingTypeDef definition

class InferredWorkloadSavingTypeDef(TypedDict):
    inferredWorkloadTypes: NotRequired[List[InferredWorkloadTypeType]],  # (1)
    estimatedMonthlySavings: NotRequired[EstimatedMonthlySavingsTypeDef],  # (2)
  1. See List[InferredWorkloadTypeType]
  2. See EstimatedMonthlySavingsTypeDef

SavingsOpportunityTypeDef#

# SavingsOpportunityTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import SavingsOpportunityTypeDef


def get_value() -> SavingsOpportunityTypeDef:
    return {
        "savingsOpportunityPercentage": ...,
    }


# SavingsOpportunityTypeDef definition

class SavingsOpportunityTypeDef(TypedDict):
    savingsOpportunityPercentage: NotRequired[float],
    estimatedMonthlySavings: NotRequired[EstimatedMonthlySavingsTypeDef],  # (1)
  1. See EstimatedMonthlySavingsTypeDef

GetAutoScalingGroupRecommendationsRequestTypeDef#

# GetAutoScalingGroupRecommendationsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetAutoScalingGroupRecommendationsRequestTypeDef


def get_value() -> GetAutoScalingGroupRecommendationsRequestTypeDef:
    return {
        "accountIds": ...,
    }


# GetAutoScalingGroupRecommendationsRequestTypeDef definition

class GetAutoScalingGroupRecommendationsRequestTypeDef(TypedDict):
    accountIds: NotRequired[Sequence[str]],
    autoScalingGroupArns: NotRequired[Sequence[str]],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    filters: NotRequired[Sequence[FilterTypeDef]],  # (1)
    recommendationPreferences: NotRequired[RecommendationPreferencesTypeDef],  # (2)
  1. See Sequence[FilterTypeDef]
  2. See RecommendationPreferencesTypeDef

GetEC2InstanceRecommendationsRequestTypeDef#

# GetEC2InstanceRecommendationsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetEC2InstanceRecommendationsRequestTypeDef


def get_value() -> GetEC2InstanceRecommendationsRequestTypeDef:
    return {
        "instanceArns": ...,
    }


# GetEC2InstanceRecommendationsRequestTypeDef definition

class GetEC2InstanceRecommendationsRequestTypeDef(TypedDict):
    instanceArns: NotRequired[Sequence[str]],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    filters: NotRequired[Sequence[FilterTypeDef]],  # (1)
    accountIds: NotRequired[Sequence[str]],
    recommendationPreferences: NotRequired[RecommendationPreferencesTypeDef],  # (2)
  1. See Sequence[FilterTypeDef]
  2. See RecommendationPreferencesTypeDef

ExportAutoScalingGroupRecommendationsRequestTypeDef#

# ExportAutoScalingGroupRecommendationsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExportAutoScalingGroupRecommendationsRequestTypeDef


def get_value() -> ExportAutoScalingGroupRecommendationsRequestTypeDef:
    return {
        "s3DestinationConfig": ...,
    }


# ExportAutoScalingGroupRecommendationsRequestTypeDef definition

class ExportAutoScalingGroupRecommendationsRequestTypeDef(TypedDict):
    s3DestinationConfig: S3DestinationConfigTypeDef,  # (1)
    accountIds: NotRequired[Sequence[str]],
    filters: NotRequired[Sequence[FilterTypeDef]],  # (2)
    fieldsToExport: NotRequired[Sequence[ExportableAutoScalingGroupFieldType]],  # (3)
    fileFormat: NotRequired[FileFormatType],  # (4)
    includeMemberAccounts: NotRequired[bool],
    recommendationPreferences: NotRequired[RecommendationPreferencesTypeDef],  # (5)
  1. See S3DestinationConfigTypeDef
  2. See Sequence[FilterTypeDef]
  3. See Sequence[ExportableAutoScalingGroupFieldType]
  4. See FileFormatType
  5. See RecommendationPreferencesTypeDef

ExportEBSVolumeRecommendationsRequestTypeDef#

# ExportEBSVolumeRecommendationsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExportEBSVolumeRecommendationsRequestTypeDef


def get_value() -> ExportEBSVolumeRecommendationsRequestTypeDef:
    return {
        "s3DestinationConfig": ...,
    }


# ExportEBSVolumeRecommendationsRequestTypeDef definition

class ExportEBSVolumeRecommendationsRequestTypeDef(TypedDict):
    s3DestinationConfig: S3DestinationConfigTypeDef,  # (1)
    accountIds: NotRequired[Sequence[str]],
    filters: NotRequired[Sequence[EBSFilterTypeDef]],  # (2)
    fieldsToExport: NotRequired[Sequence[ExportableVolumeFieldType]],  # (3)
    fileFormat: NotRequired[FileFormatType],  # (4)
    includeMemberAccounts: NotRequired[bool],
  1. See S3DestinationConfigTypeDef
  2. See Sequence[EBSFilterTypeDef]
  3. See Sequence[ExportableVolumeFieldType]
  4. See FileFormatType

ExportEC2InstanceRecommendationsRequestTypeDef#

# ExportEC2InstanceRecommendationsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExportEC2InstanceRecommendationsRequestTypeDef


def get_value() -> ExportEC2InstanceRecommendationsRequestTypeDef:
    return {
        "s3DestinationConfig": ...,
    }


# ExportEC2InstanceRecommendationsRequestTypeDef definition

class ExportEC2InstanceRecommendationsRequestTypeDef(TypedDict):
    s3DestinationConfig: S3DestinationConfigTypeDef,  # (1)
    accountIds: NotRequired[Sequence[str]],
    filters: NotRequired[Sequence[FilterTypeDef]],  # (2)
    fieldsToExport: NotRequired[Sequence[ExportableInstanceFieldType]],  # (3)
    fileFormat: NotRequired[FileFormatType],  # (4)
    includeMemberAccounts: NotRequired[bool],
    recommendationPreferences: NotRequired[RecommendationPreferencesTypeDef],  # (5)
  1. See S3DestinationConfigTypeDef
  2. See Sequence[FilterTypeDef]
  3. See Sequence[ExportableInstanceFieldType]
  4. See FileFormatType
  5. See RecommendationPreferencesTypeDef

ExportECSServiceRecommendationsRequestTypeDef#

# ExportECSServiceRecommendationsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExportECSServiceRecommendationsRequestTypeDef


def get_value() -> ExportECSServiceRecommendationsRequestTypeDef:
    return {
        "s3DestinationConfig": ...,
    }


# ExportECSServiceRecommendationsRequestTypeDef definition

class ExportECSServiceRecommendationsRequestTypeDef(TypedDict):
    s3DestinationConfig: S3DestinationConfigTypeDef,  # (1)
    accountIds: NotRequired[Sequence[str]],
    filters: NotRequired[Sequence[ECSServiceRecommendationFilterTypeDef]],  # (2)
    fieldsToExport: NotRequired[Sequence[ExportableECSServiceFieldType]],  # (3)
    fileFormat: NotRequired[FileFormatType],  # (4)
    includeMemberAccounts: NotRequired[bool],
  1. See S3DestinationConfigTypeDef
  2. See Sequence[ECSServiceRecommendationFilterTypeDef]
  3. See Sequence[ExportableECSServiceFieldType]
  4. See FileFormatType

ExportAutoScalingGroupRecommendationsResponseTypeDef#

# ExportAutoScalingGroupRecommendationsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExportAutoScalingGroupRecommendationsResponseTypeDef


def get_value() -> ExportAutoScalingGroupRecommendationsResponseTypeDef:
    return {
        "jobId": ...,
    }


# ExportAutoScalingGroupRecommendationsResponseTypeDef definition

class ExportAutoScalingGroupRecommendationsResponseTypeDef(TypedDict):
    jobId: str,
    s3Destination: S3DestinationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See S3DestinationTypeDef
  2. See ResponseMetadataTypeDef

ExportDestinationTypeDef#

# ExportDestinationTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExportDestinationTypeDef


def get_value() -> ExportDestinationTypeDef:
    return {
        "s3": ...,
    }


# ExportDestinationTypeDef definition

class ExportDestinationTypeDef(TypedDict):
    s3: NotRequired[S3DestinationTypeDef],  # (1)
  1. See S3DestinationTypeDef

ExportEBSVolumeRecommendationsResponseTypeDef#

# ExportEBSVolumeRecommendationsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExportEBSVolumeRecommendationsResponseTypeDef


def get_value() -> ExportEBSVolumeRecommendationsResponseTypeDef:
    return {
        "jobId": ...,
    }


# ExportEBSVolumeRecommendationsResponseTypeDef definition

class ExportEBSVolumeRecommendationsResponseTypeDef(TypedDict):
    jobId: str,
    s3Destination: S3DestinationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See S3DestinationTypeDef
  2. See ResponseMetadataTypeDef

ExportEC2InstanceRecommendationsResponseTypeDef#

# ExportEC2InstanceRecommendationsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExportEC2InstanceRecommendationsResponseTypeDef


def get_value() -> ExportEC2InstanceRecommendationsResponseTypeDef:
    return {
        "jobId": ...,
    }


# ExportEC2InstanceRecommendationsResponseTypeDef definition

class ExportEC2InstanceRecommendationsResponseTypeDef(TypedDict):
    jobId: str,
    s3Destination: S3DestinationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See S3DestinationTypeDef
  2. See ResponseMetadataTypeDef

ExportECSServiceRecommendationsResponseTypeDef#

# ExportECSServiceRecommendationsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExportECSServiceRecommendationsResponseTypeDef


def get_value() -> ExportECSServiceRecommendationsResponseTypeDef:
    return {
        "jobId": ...,
    }


# ExportECSServiceRecommendationsResponseTypeDef definition

class ExportECSServiceRecommendationsResponseTypeDef(TypedDict):
    jobId: str,
    s3Destination: S3DestinationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See S3DestinationTypeDef
  2. See ResponseMetadataTypeDef

ExportIdleRecommendationsResponseTypeDef#

# ExportIdleRecommendationsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExportIdleRecommendationsResponseTypeDef


def get_value() -> ExportIdleRecommendationsResponseTypeDef:
    return {
        "jobId": ...,
    }


# ExportIdleRecommendationsResponseTypeDef definition

class ExportIdleRecommendationsResponseTypeDef(TypedDict):
    jobId: str,
    s3Destination: S3DestinationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See S3DestinationTypeDef
  2. See ResponseMetadataTypeDef

ExportLambdaFunctionRecommendationsResponseTypeDef#

# ExportLambdaFunctionRecommendationsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExportLambdaFunctionRecommendationsResponseTypeDef


def get_value() -> ExportLambdaFunctionRecommendationsResponseTypeDef:
    return {
        "jobId": ...,
    }


# ExportLambdaFunctionRecommendationsResponseTypeDef definition

class ExportLambdaFunctionRecommendationsResponseTypeDef(TypedDict):
    jobId: str,
    s3Destination: S3DestinationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See S3DestinationTypeDef
  2. See ResponseMetadataTypeDef

ExportLicenseRecommendationsResponseTypeDef#

# ExportLicenseRecommendationsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExportLicenseRecommendationsResponseTypeDef


def get_value() -> ExportLicenseRecommendationsResponseTypeDef:
    return {
        "jobId": ...,
    }


# ExportLicenseRecommendationsResponseTypeDef definition

class ExportLicenseRecommendationsResponseTypeDef(TypedDict):
    jobId: str,
    s3Destination: S3DestinationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See S3DestinationTypeDef
  2. See ResponseMetadataTypeDef

ExportRDSDatabaseRecommendationsResponseTypeDef#

# ExportRDSDatabaseRecommendationsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExportRDSDatabaseRecommendationsResponseTypeDef


def get_value() -> ExportRDSDatabaseRecommendationsResponseTypeDef:
    return {
        "jobId": ...,
    }


# ExportRDSDatabaseRecommendationsResponseTypeDef definition

class ExportRDSDatabaseRecommendationsResponseTypeDef(TypedDict):
    jobId: str,
    s3Destination: S3DestinationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See S3DestinationTypeDef
  2. See ResponseMetadataTypeDef

ExportIdleRecommendationsRequestTypeDef#

# ExportIdleRecommendationsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExportIdleRecommendationsRequestTypeDef


def get_value() -> ExportIdleRecommendationsRequestTypeDef:
    return {
        "s3DestinationConfig": ...,
    }


# ExportIdleRecommendationsRequestTypeDef definition

class ExportIdleRecommendationsRequestTypeDef(TypedDict):
    s3DestinationConfig: S3DestinationConfigTypeDef,  # (1)
    accountIds: NotRequired[Sequence[str]],
    filters: NotRequired[Sequence[IdleRecommendationFilterTypeDef]],  # (2)
    fieldsToExport: NotRequired[Sequence[ExportableIdleFieldType]],  # (3)
    fileFormat: NotRequired[FileFormatType],  # (4)
    includeMemberAccounts: NotRequired[bool],
  1. See S3DestinationConfigTypeDef
  2. See Sequence[IdleRecommendationFilterTypeDef]
  3. See Sequence[ExportableIdleFieldType]
  4. See FileFormatType

ExportLambdaFunctionRecommendationsRequestTypeDef#

# ExportLambdaFunctionRecommendationsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExportLambdaFunctionRecommendationsRequestTypeDef


def get_value() -> ExportLambdaFunctionRecommendationsRequestTypeDef:
    return {
        "s3DestinationConfig": ...,
    }


# ExportLambdaFunctionRecommendationsRequestTypeDef definition

class ExportLambdaFunctionRecommendationsRequestTypeDef(TypedDict):
    s3DestinationConfig: S3DestinationConfigTypeDef,  # (1)
    accountIds: NotRequired[Sequence[str]],
    filters: NotRequired[Sequence[LambdaFunctionRecommendationFilterTypeDef]],  # (2)
    fieldsToExport: NotRequired[Sequence[ExportableLambdaFunctionFieldType]],  # (3)
    fileFormat: NotRequired[FileFormatType],  # (4)
    includeMemberAccounts: NotRequired[bool],
  1. See S3DestinationConfigTypeDef
  2. See Sequence[LambdaFunctionRecommendationFilterTypeDef]
  3. See Sequence[ExportableLambdaFunctionFieldType]
  4. See FileFormatType

GetLambdaFunctionRecommendationsRequestPaginateTypeDef#

# GetLambdaFunctionRecommendationsRequestPaginateTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetLambdaFunctionRecommendationsRequestPaginateTypeDef


def get_value() -> GetLambdaFunctionRecommendationsRequestPaginateTypeDef:
    return {
        "functionArns": ...,
    }


# GetLambdaFunctionRecommendationsRequestPaginateTypeDef definition

class GetLambdaFunctionRecommendationsRequestPaginateTypeDef(TypedDict):
    functionArns: NotRequired[Sequence[str]],
    accountIds: NotRequired[Sequence[str]],
    filters: NotRequired[Sequence[LambdaFunctionRecommendationFilterTypeDef]],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See Sequence[LambdaFunctionRecommendationFilterTypeDef]
  2. See PaginatorConfigTypeDef

GetLambdaFunctionRecommendationsRequestTypeDef#

# GetLambdaFunctionRecommendationsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetLambdaFunctionRecommendationsRequestTypeDef


def get_value() -> GetLambdaFunctionRecommendationsRequestTypeDef:
    return {
        "functionArns": ...,
    }


# GetLambdaFunctionRecommendationsRequestTypeDef definition

class GetLambdaFunctionRecommendationsRequestTypeDef(TypedDict):
    functionArns: NotRequired[Sequence[str]],
    accountIds: NotRequired[Sequence[str]],
    filters: NotRequired[Sequence[LambdaFunctionRecommendationFilterTypeDef]],  # (1)
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See Sequence[LambdaFunctionRecommendationFilterTypeDef]

ExportLicenseRecommendationsRequestTypeDef#

# ExportLicenseRecommendationsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExportLicenseRecommendationsRequestTypeDef


def get_value() -> ExportLicenseRecommendationsRequestTypeDef:
    return {
        "s3DestinationConfig": ...,
    }


# ExportLicenseRecommendationsRequestTypeDef definition

class ExportLicenseRecommendationsRequestTypeDef(TypedDict):
    s3DestinationConfig: S3DestinationConfigTypeDef,  # (1)
    accountIds: NotRequired[Sequence[str]],
    filters: NotRequired[Sequence[LicenseRecommendationFilterTypeDef]],  # (2)
    fieldsToExport: NotRequired[Sequence[ExportableLicenseFieldType]],  # (3)
    fileFormat: NotRequired[FileFormatType],  # (4)
    includeMemberAccounts: NotRequired[bool],
  1. See S3DestinationConfigTypeDef
  2. See Sequence[LicenseRecommendationFilterTypeDef]
  3. See Sequence[ExportableLicenseFieldType]
  4. See FileFormatType

GetLicenseRecommendationsRequestTypeDef#

# GetLicenseRecommendationsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetLicenseRecommendationsRequestTypeDef


def get_value() -> GetLicenseRecommendationsRequestTypeDef:
    return {
        "resourceArns": ...,
    }


# GetLicenseRecommendationsRequestTypeDef definition

class GetLicenseRecommendationsRequestTypeDef(TypedDict):
    resourceArns: NotRequired[Sequence[str]],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    filters: NotRequired[Sequence[LicenseRecommendationFilterTypeDef]],  # (1)
    accountIds: NotRequired[Sequence[str]],
  1. See Sequence[LicenseRecommendationFilterTypeDef]

ExportRDSDatabaseRecommendationsRequestTypeDef#

# ExportRDSDatabaseRecommendationsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ExportRDSDatabaseRecommendationsRequestTypeDef


def get_value() -> ExportRDSDatabaseRecommendationsRequestTypeDef:
    return {
        "s3DestinationConfig": ...,
    }


# ExportRDSDatabaseRecommendationsRequestTypeDef definition

class ExportRDSDatabaseRecommendationsRequestTypeDef(TypedDict):
    s3DestinationConfig: S3DestinationConfigTypeDef,  # (1)
    accountIds: NotRequired[Sequence[str]],
    filters: NotRequired[Sequence[RDSDBRecommendationFilterTypeDef]],  # (2)
    fieldsToExport: NotRequired[Sequence[ExportableRDSDBFieldType]],  # (3)
    fileFormat: NotRequired[FileFormatType],  # (4)
    includeMemberAccounts: NotRequired[bool],
    recommendationPreferences: NotRequired[RecommendationPreferencesTypeDef],  # (5)
  1. See S3DestinationConfigTypeDef
  2. See Sequence[RDSDBRecommendationFilterTypeDef]
  3. See Sequence[ExportableRDSDBFieldType]
  4. See FileFormatType
  5. See RecommendationPreferencesTypeDef

GetRDSDatabaseRecommendationsRequestTypeDef#

# GetRDSDatabaseRecommendationsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetRDSDatabaseRecommendationsRequestTypeDef


def get_value() -> GetRDSDatabaseRecommendationsRequestTypeDef:
    return {
        "resourceArns": ...,
    }


# GetRDSDatabaseRecommendationsRequestTypeDef definition

class GetRDSDatabaseRecommendationsRequestTypeDef(TypedDict):
    resourceArns: NotRequired[Sequence[str]],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    filters: NotRequired[Sequence[RDSDBRecommendationFilterTypeDef]],  # (1)
    accountIds: NotRequired[Sequence[str]],
    recommendationPreferences: NotRequired[RecommendationPreferencesTypeDef],  # (2)
  1. See Sequence[RDSDBRecommendationFilterTypeDef]
  2. See RecommendationPreferencesTypeDef

GetEC2RecommendationProjectedMetricsRequestTypeDef#

# GetEC2RecommendationProjectedMetricsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetEC2RecommendationProjectedMetricsRequestTypeDef


def get_value() -> GetEC2RecommendationProjectedMetricsRequestTypeDef:
    return {
        "instanceArn": ...,
    }


# GetEC2RecommendationProjectedMetricsRequestTypeDef definition

class GetEC2RecommendationProjectedMetricsRequestTypeDef(TypedDict):
    instanceArn: str,
    stat: MetricStatisticType,  # (1)
    period: int,
    startTime: TimestampTypeDef,
    endTime: TimestampTypeDef,
    recommendationPreferences: NotRequired[RecommendationPreferencesTypeDef],  # (2)
  1. See MetricStatisticType
  2. See RecommendationPreferencesTypeDef

GetECSServiceRecommendationProjectedMetricsRequestTypeDef#

# GetECSServiceRecommendationProjectedMetricsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetECSServiceRecommendationProjectedMetricsRequestTypeDef


def get_value() -> GetECSServiceRecommendationProjectedMetricsRequestTypeDef:
    return {
        "serviceArn": ...,
    }


# GetECSServiceRecommendationProjectedMetricsRequestTypeDef definition

class GetECSServiceRecommendationProjectedMetricsRequestTypeDef(TypedDict):
    serviceArn: str,
    stat: MetricStatisticType,  # (1)
    period: int,
    startTime: TimestampTypeDef,
    endTime: TimestampTypeDef,
  1. See MetricStatisticType

GetRDSDatabaseRecommendationProjectedMetricsRequestTypeDef#

# GetRDSDatabaseRecommendationProjectedMetricsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetRDSDatabaseRecommendationProjectedMetricsRequestTypeDef


def get_value() -> GetRDSDatabaseRecommendationProjectedMetricsRequestTypeDef:
    return {
        "resourceArn": ...,
    }


# GetRDSDatabaseRecommendationProjectedMetricsRequestTypeDef definition

class GetRDSDatabaseRecommendationProjectedMetricsRequestTypeDef(TypedDict):
    resourceArn: str,
    stat: MetricStatisticType,  # (1)
    period: int,
    startTime: TimestampTypeDef,
    endTime: TimestampTypeDef,
    recommendationPreferences: NotRequired[RecommendationPreferencesTypeDef],  # (2)
  1. See MetricStatisticType
  2. See RecommendationPreferencesTypeDef

GetIdleRecommendationsRequestTypeDef#

# GetIdleRecommendationsRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetIdleRecommendationsRequestTypeDef


def get_value() -> GetIdleRecommendationsRequestTypeDef:
    return {
        "resourceArns": ...,
    }


# GetIdleRecommendationsRequestTypeDef definition

class GetIdleRecommendationsRequestTypeDef(TypedDict):
    resourceArns: NotRequired[Sequence[str]],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    filters: NotRequired[Sequence[IdleRecommendationFilterTypeDef]],  # (1)
    accountIds: NotRequired[Sequence[str]],
    orderBy: NotRequired[OrderByTypeDef],  # (2)
  1. See Sequence[IdleRecommendationFilterTypeDef]
  2. See OrderByTypeDef

GpuInfoTypeDef#

# GpuInfoTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GpuInfoTypeDef


def get_value() -> GpuInfoTypeDef:
    return {
        "gpus": ...,
    }


# GpuInfoTypeDef definition

class GpuInfoTypeDef(TypedDict):
    gpus: NotRequired[List[GpuTypeDef]],  # (1)
  1. See List[GpuTypeDef]

IdleSavingsOpportunityAfterDiscountsTypeDef#

# IdleSavingsOpportunityAfterDiscountsTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import IdleSavingsOpportunityAfterDiscountsTypeDef


def get_value() -> IdleSavingsOpportunityAfterDiscountsTypeDef:
    return {
        "savingsOpportunityPercentage": ...,
    }


# IdleSavingsOpportunityAfterDiscountsTypeDef definition

class IdleSavingsOpportunityAfterDiscountsTypeDef(TypedDict):
    savingsOpportunityPercentage: NotRequired[float],
    estimatedMonthlySavings: NotRequired[IdleEstimatedMonthlySavingsTypeDef],  # (1)
  1. See IdleEstimatedMonthlySavingsTypeDef

IdleSavingsOpportunityTypeDef#

# IdleSavingsOpportunityTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import IdleSavingsOpportunityTypeDef


def get_value() -> IdleSavingsOpportunityTypeDef:
    return {
        "savingsOpportunityPercentage": ...,
    }


# IdleSavingsOpportunityTypeDef definition

class IdleSavingsOpportunityTypeDef(TypedDict):
    savingsOpportunityPercentage: NotRequired[float],
    estimatedMonthlySavings: NotRequired[IdleEstimatedMonthlySavingsTypeDef],  # (1)
  1. See IdleEstimatedMonthlySavingsTypeDef

InstanceSavingsOpportunityAfterDiscountsTypeDef#

# InstanceSavingsOpportunityAfterDiscountsTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import InstanceSavingsOpportunityAfterDiscountsTypeDef


def get_value() -> InstanceSavingsOpportunityAfterDiscountsTypeDef:
    return {
        "savingsOpportunityPercentage": ...,
    }


# InstanceSavingsOpportunityAfterDiscountsTypeDef definition

class InstanceSavingsOpportunityAfterDiscountsTypeDef(TypedDict):
    savingsOpportunityPercentage: NotRequired[float],
    estimatedMonthlySavings: NotRequired[InstanceEstimatedMonthlySavingsTypeDef],  # (1)
  1. See InstanceEstimatedMonthlySavingsTypeDef

LambdaEffectiveRecommendationPreferencesTypeDef#

# LambdaEffectiveRecommendationPreferencesTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import LambdaEffectiveRecommendationPreferencesTypeDef


def get_value() -> LambdaEffectiveRecommendationPreferencesTypeDef:
    return {
        "savingsEstimationMode": ...,
    }


# LambdaEffectiveRecommendationPreferencesTypeDef definition

class LambdaEffectiveRecommendationPreferencesTypeDef(TypedDict):
    savingsEstimationMode: NotRequired[LambdaSavingsEstimationModeTypeDef],  # (1)
  1. See LambdaSavingsEstimationModeTypeDef

LambdaSavingsOpportunityAfterDiscountsTypeDef#

# LambdaSavingsOpportunityAfterDiscountsTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import LambdaSavingsOpportunityAfterDiscountsTypeDef


def get_value() -> LambdaSavingsOpportunityAfterDiscountsTypeDef:
    return {
        "savingsOpportunityPercentage": ...,
    }


# LambdaSavingsOpportunityAfterDiscountsTypeDef definition

class LambdaSavingsOpportunityAfterDiscountsTypeDef(TypedDict):
    savingsOpportunityPercentage: NotRequired[float],
    estimatedMonthlySavings: NotRequired[LambdaEstimatedMonthlySavingsTypeDef],  # (1)
  1. See LambdaEstimatedMonthlySavingsTypeDef

LicenseConfigurationTypeDef#

# LicenseConfigurationTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import LicenseConfigurationTypeDef


def get_value() -> LicenseConfigurationTypeDef:
    return {
        "numberOfCores": ...,
    }


# LicenseConfigurationTypeDef definition

class LicenseConfigurationTypeDef(TypedDict):
    numberOfCores: NotRequired[int],
    instanceType: NotRequired[str],
    operatingSystem: NotRequired[str],
    licenseEdition: NotRequired[LicenseEditionType],  # (1)
    licenseName: NotRequired[LicenseNameType],  # (2)
    licenseModel: NotRequired[LicenseModelType],  # (3)
    licenseVersion: NotRequired[str],
    metricsSource: NotRequired[List[MetricSourceTypeDef]],  # (4)
  1. See LicenseEditionType
  2. See LicenseNameType
  3. See LicenseModelType
  4. See List[MetricSourceTypeDef]

RecommendedOptionProjectedMetricTypeDef#

# RecommendedOptionProjectedMetricTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RecommendedOptionProjectedMetricTypeDef


def get_value() -> RecommendedOptionProjectedMetricTypeDef:
    return {
        "recommendedInstanceType": ...,
    }


# RecommendedOptionProjectedMetricTypeDef definition

class RecommendedOptionProjectedMetricTypeDef(TypedDict):
    recommendedInstanceType: NotRequired[str],
    rank: NotRequired[int],
    projectedMetrics: NotRequired[List[ProjectedMetricTypeDef]],  # (1)
  1. See List[ProjectedMetricTypeDef]

RDSDatabaseRecommendedOptionProjectedMetricTypeDef#

# RDSDatabaseRecommendedOptionProjectedMetricTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RDSDatabaseRecommendedOptionProjectedMetricTypeDef


def get_value() -> RDSDatabaseRecommendedOptionProjectedMetricTypeDef:
    return {
        "recommendedDBInstanceClass": ...,
    }


# RDSDatabaseRecommendedOptionProjectedMetricTypeDef definition

class RDSDatabaseRecommendedOptionProjectedMetricTypeDef(TypedDict):
    recommendedDBInstanceClass: NotRequired[str],
    rank: NotRequired[int],
    projectedMetrics: NotRequired[List[RDSDatabaseProjectedMetricTypeDef]],  # (1)
  1. See List[RDSDatabaseProjectedMetricTypeDef]

RDSEffectiveRecommendationPreferencesTypeDef#

# RDSEffectiveRecommendationPreferencesTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RDSEffectiveRecommendationPreferencesTypeDef


def get_value() -> RDSEffectiveRecommendationPreferencesTypeDef:
    return {
        "cpuVendorArchitectures": ...,
    }


# RDSEffectiveRecommendationPreferencesTypeDef definition

class RDSEffectiveRecommendationPreferencesTypeDef(TypedDict):
    cpuVendorArchitectures: NotRequired[List[CpuVendorArchitectureType]],  # (1)
    enhancedInfrastructureMetrics: NotRequired[EnhancedInfrastructureMetricsType],  # (2)
    lookBackPeriod: NotRequired[LookBackPeriodPreferenceType],  # (3)
    savingsEstimationMode: NotRequired[RDSSavingsEstimationModeTypeDef],  # (4)
  1. See List[CpuVendorArchitectureType]
  2. See EnhancedInfrastructureMetricsType
  3. See LookBackPeriodPreferenceType
  4. See RDSSavingsEstimationModeTypeDef

RDSInstanceSavingsOpportunityAfterDiscountsTypeDef#

# RDSInstanceSavingsOpportunityAfterDiscountsTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RDSInstanceSavingsOpportunityAfterDiscountsTypeDef


def get_value() -> RDSInstanceSavingsOpportunityAfterDiscountsTypeDef:
    return {
        "savingsOpportunityPercentage": ...,
    }


# RDSInstanceSavingsOpportunityAfterDiscountsTypeDef definition

class RDSInstanceSavingsOpportunityAfterDiscountsTypeDef(TypedDict):
    savingsOpportunityPercentage: NotRequired[float],
    estimatedMonthlySavings: NotRequired[RDSInstanceEstimatedMonthlySavingsTypeDef],  # (1)
  1. See RDSInstanceEstimatedMonthlySavingsTypeDef

RDSStorageSavingsOpportunityAfterDiscountsTypeDef#

# RDSStorageSavingsOpportunityAfterDiscountsTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RDSStorageSavingsOpportunityAfterDiscountsTypeDef


def get_value() -> RDSStorageSavingsOpportunityAfterDiscountsTypeDef:
    return {
        "savingsOpportunityPercentage": ...,
    }


# RDSStorageSavingsOpportunityAfterDiscountsTypeDef definition

class RDSStorageSavingsOpportunityAfterDiscountsTypeDef(TypedDict):
    savingsOpportunityPercentage: NotRequired[float],
    estimatedMonthlySavings: NotRequired[RDSStorageEstimatedMonthlySavingsTypeDef],  # (1)
  1. See RDSStorageEstimatedMonthlySavingsTypeDef

SummaryTypeDef#

# SummaryTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import SummaryTypeDef


def get_value() -> SummaryTypeDef:
    return {
        "name": ...,
    }


# SummaryTypeDef definition

class SummaryTypeDef(TypedDict):
    name: NotRequired[FindingType],  # (1)
    value: NotRequired[float],
    reasonCodeSummaries: NotRequired[List[ReasonCodeSummaryTypeDef]],  # (2)
  1. See FindingType
  2. See List[ReasonCodeSummaryTypeDef]

ServiceConfigurationTypeDef#

# ServiceConfigurationTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ServiceConfigurationTypeDef


def get_value() -> ServiceConfigurationTypeDef:
    return {
        "memory": ...,
    }


# ServiceConfigurationTypeDef definition

class ServiceConfigurationTypeDef(TypedDict):
    memory: NotRequired[int],
    cpu: NotRequired[int],
    containerConfigurations: NotRequired[List[ContainerConfigurationTypeDef]],  # (1)
    autoScalingConfiguration: NotRequired[AutoScalingConfigurationType],  # (2)
    taskDefinitionArn: NotRequired[str],
  1. See List[ContainerConfigurationTypeDef]
  2. See AutoScalingConfigurationType

EffectiveRecommendationPreferencesTypeDef#

# EffectiveRecommendationPreferencesTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import EffectiveRecommendationPreferencesTypeDef


def get_value() -> EffectiveRecommendationPreferencesTypeDef:
    return {
        "cpuVendorArchitectures": ...,
    }


# EffectiveRecommendationPreferencesTypeDef definition

class EffectiveRecommendationPreferencesTypeDef(TypedDict):
    cpuVendorArchitectures: NotRequired[List[CpuVendorArchitectureType]],  # (1)
    enhancedInfrastructureMetrics: NotRequired[EnhancedInfrastructureMetricsType],  # (2)
    inferredWorkloadTypes: NotRequired[InferredWorkloadTypesPreferenceType],  # (3)
    externalMetricsPreference: NotRequired[ExternalMetricsPreferenceTypeDef],  # (4)
    lookBackPeriod: NotRequired[LookBackPeriodPreferenceType],  # (5)
    utilizationPreferences: NotRequired[List[UtilizationPreferenceTypeDef]],  # (6)
    preferredResources: NotRequired[List[EffectivePreferredResourceTypeDef]],  # (7)
    savingsEstimationMode: NotRequired[InstanceSavingsEstimationModeTypeDef],  # (8)
  1. See List[CpuVendorArchitectureType]
  2. See EnhancedInfrastructureMetricsType
  3. See InferredWorkloadTypesPreferenceType
  4. See ExternalMetricsPreferenceTypeDef
  5. See LookBackPeriodPreferenceType
  6. See List[UtilizationPreferenceTypeDef]
  7. See List[EffectivePreferredResourceTypeDef]
  8. See InstanceSavingsEstimationModeTypeDef

GetEffectiveRecommendationPreferencesResponseTypeDef#

# GetEffectiveRecommendationPreferencesResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetEffectiveRecommendationPreferencesResponseTypeDef


def get_value() -> GetEffectiveRecommendationPreferencesResponseTypeDef:
    return {
        "enhancedInfrastructureMetrics": ...,
    }


# GetEffectiveRecommendationPreferencesResponseTypeDef definition

class GetEffectiveRecommendationPreferencesResponseTypeDef(TypedDict):
    enhancedInfrastructureMetrics: EnhancedInfrastructureMetricsType,  # (1)
    externalMetricsPreference: ExternalMetricsPreferenceTypeDef,  # (2)
    lookBackPeriod: LookBackPeriodPreferenceType,  # (3)
    utilizationPreferences: List[UtilizationPreferenceTypeDef],  # (4)
    preferredResources: List[EffectivePreferredResourceTypeDef],  # (5)
    ResponseMetadata: ResponseMetadataTypeDef,  # (6)
  1. See EnhancedInfrastructureMetricsType
  2. See ExternalMetricsPreferenceTypeDef
  3. See LookBackPeriodPreferenceType
  4. See List[UtilizationPreferenceTypeDef]
  5. See List[EffectivePreferredResourceTypeDef]
  6. See ResponseMetadataTypeDef

PutRecommendationPreferencesRequestTypeDef#

# PutRecommendationPreferencesRequestTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import PutRecommendationPreferencesRequestTypeDef


def get_value() -> PutRecommendationPreferencesRequestTypeDef:
    return {
        "resourceType": ...,
    }


# PutRecommendationPreferencesRequestTypeDef definition

class PutRecommendationPreferencesRequestTypeDef(TypedDict):
    resourceType: ResourceTypeType,  # (1)
    scope: NotRequired[ScopeTypeDef],  # (2)
    enhancedInfrastructureMetrics: NotRequired[EnhancedInfrastructureMetricsType],  # (3)
    inferredWorkloadTypes: NotRequired[InferredWorkloadTypesPreferenceType],  # (4)
    externalMetricsPreference: NotRequired[ExternalMetricsPreferenceTypeDef],  # (5)
    lookBackPeriod: NotRequired[LookBackPeriodPreferenceType],  # (6)
    utilizationPreferences: NotRequired[Sequence[UtilizationPreferenceTypeDef]],  # (7)
    preferredResources: NotRequired[Sequence[PreferredResourceTypeDef]],  # (8)
    savingsEstimationMode: NotRequired[SavingsEstimationModeType],  # (9)
  1. See ResourceTypeType
  2. See ScopeTypeDef
  3. See EnhancedInfrastructureMetricsType
  4. See InferredWorkloadTypesPreferenceType
  5. See ExternalMetricsPreferenceTypeDef
  6. See LookBackPeriodPreferenceType
  7. See Sequence[UtilizationPreferenceTypeDef]
  8. See Sequence[PreferredResourceTypeDef]
  9. See SavingsEstimationModeType

RecommendationPreferencesDetailTypeDef#

# RecommendationPreferencesDetailTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RecommendationPreferencesDetailTypeDef


def get_value() -> RecommendationPreferencesDetailTypeDef:
    return {
        "scope": ...,
    }


# RecommendationPreferencesDetailTypeDef definition

class RecommendationPreferencesDetailTypeDef(TypedDict):
    scope: NotRequired[ScopeTypeDef],  # (1)
    resourceType: NotRequired[ResourceTypeType],  # (2)
    enhancedInfrastructureMetrics: NotRequired[EnhancedInfrastructureMetricsType],  # (3)
    inferredWorkloadTypes: NotRequired[InferredWorkloadTypesPreferenceType],  # (4)
    externalMetricsPreference: NotRequired[ExternalMetricsPreferenceTypeDef],  # (5)
    lookBackPeriod: NotRequired[LookBackPeriodPreferenceType],  # (6)
    utilizationPreferences: NotRequired[List[UtilizationPreferenceTypeDef]],  # (7)
    preferredResources: NotRequired[List[EffectivePreferredResourceTypeDef]],  # (8)
    savingsEstimationMode: NotRequired[SavingsEstimationModeType],  # (9)
  1. See ScopeTypeDef
  2. See ResourceTypeType
  3. See EnhancedInfrastructureMetricsType
  4. See InferredWorkloadTypesPreferenceType
  5. See ExternalMetricsPreferenceTypeDef
  6. See LookBackPeriodPreferenceType
  7. See List[UtilizationPreferenceTypeDef]
  8. See List[EffectivePreferredResourceTypeDef]
  9. See SavingsEstimationModeType

GetECSServiceRecommendationProjectedMetricsResponseTypeDef#

# GetECSServiceRecommendationProjectedMetricsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetECSServiceRecommendationProjectedMetricsResponseTypeDef


def get_value() -> GetECSServiceRecommendationProjectedMetricsResponseTypeDef:
    return {
        "recommendedOptionProjectedMetrics": ...,
    }


# GetECSServiceRecommendationProjectedMetricsResponseTypeDef definition

class GetECSServiceRecommendationProjectedMetricsResponseTypeDef(TypedDict):
    recommendedOptionProjectedMetrics: List[ECSServiceRecommendedOptionProjectedMetricTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See List[ECSServiceRecommendedOptionProjectedMetricTypeDef]
  2. See ResponseMetadataTypeDef

ECSServiceRecommendationOptionTypeDef#

# ECSServiceRecommendationOptionTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ECSServiceRecommendationOptionTypeDef


def get_value() -> ECSServiceRecommendationOptionTypeDef:
    return {
        "memory": ...,
    }


# ECSServiceRecommendationOptionTypeDef definition

class ECSServiceRecommendationOptionTypeDef(TypedDict):
    memory: NotRequired[int],
    cpu: NotRequired[int],
    savingsOpportunity: NotRequired[SavingsOpportunityTypeDef],  # (1)
    savingsOpportunityAfterDiscounts: NotRequired[ECSSavingsOpportunityAfterDiscountsTypeDef],  # (2)
    projectedUtilizationMetrics: NotRequired[List[ECSServiceProjectedUtilizationMetricTypeDef]],  # (3)
    containerRecommendations: NotRequired[List[ContainerRecommendationTypeDef]],  # (4)
  1. See SavingsOpportunityTypeDef
  2. See ECSSavingsOpportunityAfterDiscountsTypeDef
  3. See List[ECSServiceProjectedUtilizationMetricTypeDef]
  4. See List[ContainerRecommendationTypeDef]

LicenseRecommendationOptionTypeDef#

# LicenseRecommendationOptionTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import LicenseRecommendationOptionTypeDef


def get_value() -> LicenseRecommendationOptionTypeDef:
    return {
        "rank": ...,
    }


# LicenseRecommendationOptionTypeDef definition

class LicenseRecommendationOptionTypeDef(TypedDict):
    rank: NotRequired[int],
    operatingSystem: NotRequired[str],
    licenseEdition: NotRequired[LicenseEditionType],  # (1)
    licenseModel: NotRequired[LicenseModelType],  # (2)
    savingsOpportunity: NotRequired[SavingsOpportunityTypeDef],  # (3)
  1. See LicenseEditionType
  2. See LicenseModelType
  3. See SavingsOpportunityTypeDef

VolumeRecommendationOptionTypeDef#

# VolumeRecommendationOptionTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import VolumeRecommendationOptionTypeDef


def get_value() -> VolumeRecommendationOptionTypeDef:
    return {
        "configuration": ...,
    }


# VolumeRecommendationOptionTypeDef definition

class VolumeRecommendationOptionTypeDef(TypedDict):
    configuration: NotRequired[VolumeConfigurationTypeDef],  # (1)
    performanceRisk: NotRequired[float],
    rank: NotRequired[int],
    savingsOpportunity: NotRequired[SavingsOpportunityTypeDef],  # (2)
    savingsOpportunityAfterDiscounts: NotRequired[EBSSavingsOpportunityAfterDiscountsTypeDef],  # (3)
  1. See VolumeConfigurationTypeDef
  2. See SavingsOpportunityTypeDef
  3. See EBSSavingsOpportunityAfterDiscountsTypeDef

RecommendationExportJobTypeDef#

# RecommendationExportJobTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RecommendationExportJobTypeDef


def get_value() -> RecommendationExportJobTypeDef:
    return {
        "jobId": ...,
    }


# RecommendationExportJobTypeDef definition

class RecommendationExportJobTypeDef(TypedDict):
    jobId: NotRequired[str],
    destination: NotRequired[ExportDestinationTypeDef],  # (1)
    resourceType: NotRequired[ResourceTypeType],  # (2)
    status: NotRequired[JobStatusType],  # (3)
    creationTimestamp: NotRequired[datetime.datetime],
    lastUpdatedTimestamp: NotRequired[datetime.datetime],
    failureReason: NotRequired[str],
  1. See ExportDestinationTypeDef
  2. See ResourceTypeType
  3. See JobStatusType

AutoScalingGroupRecommendationOptionTypeDef#

# AutoScalingGroupRecommendationOptionTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import AutoScalingGroupRecommendationOptionTypeDef


def get_value() -> AutoScalingGroupRecommendationOptionTypeDef:
    return {
        "configuration": ...,
    }


# AutoScalingGroupRecommendationOptionTypeDef definition

class AutoScalingGroupRecommendationOptionTypeDef(TypedDict):
    configuration: NotRequired[AutoScalingGroupConfigurationTypeDef],  # (1)
    instanceGpuInfo: NotRequired[GpuInfoTypeDef],  # (2)
    projectedUtilizationMetrics: NotRequired[List[UtilizationMetricTypeDef]],  # (3)
    performanceRisk: NotRequired[float],
    rank: NotRequired[int],
    savingsOpportunity: NotRequired[SavingsOpportunityTypeDef],  # (4)
    savingsOpportunityAfterDiscounts: NotRequired[AutoScalingGroupSavingsOpportunityAfterDiscountsTypeDef],  # (5)
    migrationEffort: NotRequired[MigrationEffortType],  # (6)
  1. See AutoScalingGroupConfigurationTypeDef
  2. See GpuInfoTypeDef
  3. See List[UtilizationMetricTypeDef]
  4. See SavingsOpportunityTypeDef
  5. See AutoScalingGroupSavingsOpportunityAfterDiscountsTypeDef
  6. See MigrationEffortType

IdleRecommendationTypeDef#

# IdleRecommendationTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import IdleRecommendationTypeDef


def get_value() -> IdleRecommendationTypeDef:
    return {
        "resourceArn": ...,
    }


# IdleRecommendationTypeDef definition

class IdleRecommendationTypeDef(TypedDict):
    resourceArn: NotRequired[str],
    resourceId: NotRequired[str],
    resourceType: NotRequired[IdleRecommendationResourceTypeType],  # (1)
    accountId: NotRequired[str],
    finding: NotRequired[IdleFindingType],  # (2)
    findingDescription: NotRequired[str],
    savingsOpportunity: NotRequired[IdleSavingsOpportunityTypeDef],  # (3)
    savingsOpportunityAfterDiscounts: NotRequired[IdleSavingsOpportunityAfterDiscountsTypeDef],  # (4)
    utilizationMetrics: NotRequired[List[IdleUtilizationMetricTypeDef]],  # (5)
    lookBackPeriodInDays: NotRequired[float],
    lastRefreshTimestamp: NotRequired[datetime.datetime],
    tags: NotRequired[List[TagTypeDef]],  # (6)
  1. See IdleRecommendationResourceTypeType
  2. See IdleFindingType
  3. See IdleSavingsOpportunityTypeDef
  4. See IdleSavingsOpportunityAfterDiscountsTypeDef
  5. See List[IdleUtilizationMetricTypeDef]
  6. See List[TagTypeDef]

InstanceRecommendationOptionTypeDef#

# InstanceRecommendationOptionTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import InstanceRecommendationOptionTypeDef


def get_value() -> InstanceRecommendationOptionTypeDef:
    return {
        "instanceType": ...,
    }


# InstanceRecommendationOptionTypeDef definition

class InstanceRecommendationOptionTypeDef(TypedDict):
    instanceType: NotRequired[str],
    instanceGpuInfo: NotRequired[GpuInfoTypeDef],  # (1)
    projectedUtilizationMetrics: NotRequired[List[UtilizationMetricTypeDef]],  # (2)
    platformDifferences: NotRequired[List[PlatformDifferenceType]],  # (3)
    performanceRisk: NotRequired[float],
    rank: NotRequired[int],
    savingsOpportunity: NotRequired[SavingsOpportunityTypeDef],  # (4)
    savingsOpportunityAfterDiscounts: NotRequired[InstanceSavingsOpportunityAfterDiscountsTypeDef],  # (5)
    migrationEffort: NotRequired[MigrationEffortType],  # (6)
  1. See GpuInfoTypeDef
  2. See List[UtilizationMetricTypeDef]
  3. See List[PlatformDifferenceType]
  4. See SavingsOpportunityTypeDef
  5. See InstanceSavingsOpportunityAfterDiscountsTypeDef
  6. See MigrationEffortType

LambdaFunctionMemoryRecommendationOptionTypeDef#

# LambdaFunctionMemoryRecommendationOptionTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import LambdaFunctionMemoryRecommendationOptionTypeDef


def get_value() -> LambdaFunctionMemoryRecommendationOptionTypeDef:
    return {
        "rank": ...,
    }


# LambdaFunctionMemoryRecommendationOptionTypeDef definition

class LambdaFunctionMemoryRecommendationOptionTypeDef(TypedDict):
    rank: NotRequired[int],
    memorySize: NotRequired[int],
    projectedUtilizationMetrics: NotRequired[List[LambdaFunctionMemoryProjectedMetricTypeDef]],  # (1)
    savingsOpportunity: NotRequired[SavingsOpportunityTypeDef],  # (2)
    savingsOpportunityAfterDiscounts: NotRequired[LambdaSavingsOpportunityAfterDiscountsTypeDef],  # (3)
  1. See List[LambdaFunctionMemoryProjectedMetricTypeDef]
  2. See SavingsOpportunityTypeDef
  3. See LambdaSavingsOpportunityAfterDiscountsTypeDef

GetEC2RecommendationProjectedMetricsResponseTypeDef#

# GetEC2RecommendationProjectedMetricsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetEC2RecommendationProjectedMetricsResponseTypeDef


def get_value() -> GetEC2RecommendationProjectedMetricsResponseTypeDef:
    return {
        "recommendedOptionProjectedMetrics": ...,
    }


# GetEC2RecommendationProjectedMetricsResponseTypeDef definition

class GetEC2RecommendationProjectedMetricsResponseTypeDef(TypedDict):
    recommendedOptionProjectedMetrics: List[RecommendedOptionProjectedMetricTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See List[RecommendedOptionProjectedMetricTypeDef]
  2. See ResponseMetadataTypeDef

GetRDSDatabaseRecommendationProjectedMetricsResponseTypeDef#

# GetRDSDatabaseRecommendationProjectedMetricsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetRDSDatabaseRecommendationProjectedMetricsResponseTypeDef


def get_value() -> GetRDSDatabaseRecommendationProjectedMetricsResponseTypeDef:
    return {
        "recommendedOptionProjectedMetrics": ...,
    }


# GetRDSDatabaseRecommendationProjectedMetricsResponseTypeDef definition

class GetRDSDatabaseRecommendationProjectedMetricsResponseTypeDef(TypedDict):
    recommendedOptionProjectedMetrics: List[RDSDatabaseRecommendedOptionProjectedMetricTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See List[RDSDatabaseRecommendedOptionProjectedMetricTypeDef]
  2. See ResponseMetadataTypeDef

RDSDBInstanceRecommendationOptionTypeDef#

# RDSDBInstanceRecommendationOptionTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RDSDBInstanceRecommendationOptionTypeDef


def get_value() -> RDSDBInstanceRecommendationOptionTypeDef:
    return {
        "dbInstanceClass": ...,
    }


# RDSDBInstanceRecommendationOptionTypeDef definition

class RDSDBInstanceRecommendationOptionTypeDef(TypedDict):
    dbInstanceClass: NotRequired[str],
    projectedUtilizationMetrics: NotRequired[List[RDSDBUtilizationMetricTypeDef]],  # (1)
    performanceRisk: NotRequired[float],
    rank: NotRequired[int],
    savingsOpportunity: NotRequired[SavingsOpportunityTypeDef],  # (2)
    savingsOpportunityAfterDiscounts: NotRequired[RDSInstanceSavingsOpportunityAfterDiscountsTypeDef],  # (3)
  1. See List[RDSDBUtilizationMetricTypeDef]
  2. See SavingsOpportunityTypeDef
  3. See RDSInstanceSavingsOpportunityAfterDiscountsTypeDef

RDSDBStorageRecommendationOptionTypeDef#

# RDSDBStorageRecommendationOptionTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RDSDBStorageRecommendationOptionTypeDef


def get_value() -> RDSDBStorageRecommendationOptionTypeDef:
    return {
        "storageConfiguration": ...,
    }


# RDSDBStorageRecommendationOptionTypeDef definition

class RDSDBStorageRecommendationOptionTypeDef(TypedDict):
    storageConfiguration: NotRequired[DBStorageConfigurationTypeDef],  # (1)
    rank: NotRequired[int],
    savingsOpportunity: NotRequired[SavingsOpportunityTypeDef],  # (2)
    savingsOpportunityAfterDiscounts: NotRequired[RDSStorageSavingsOpportunityAfterDiscountsTypeDef],  # (3)
  1. See DBStorageConfigurationTypeDef
  2. See SavingsOpportunityTypeDef
  3. See RDSStorageSavingsOpportunityAfterDiscountsTypeDef

RecommendationSummaryTypeDef#

# RecommendationSummaryTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RecommendationSummaryTypeDef


def get_value() -> RecommendationSummaryTypeDef:
    return {
        "summaries": ...,
    }


# RecommendationSummaryTypeDef definition

class RecommendationSummaryTypeDef(TypedDict):
    summaries: NotRequired[List[SummaryTypeDef]],  # (1)
    idleSummaries: NotRequired[List[IdleSummaryTypeDef]],  # (2)
    recommendationResourceType: NotRequired[RecommendationSourceTypeType],  # (3)
    accountId: NotRequired[str],
    savingsOpportunity: NotRequired[SavingsOpportunityTypeDef],  # (4)
    idleSavingsOpportunity: NotRequired[SavingsOpportunityTypeDef],  # (4)
    aggregatedSavingsOpportunity: NotRequired[SavingsOpportunityTypeDef],  # (4)
    currentPerformanceRiskRatings: NotRequired[CurrentPerformanceRiskRatingsTypeDef],  # (7)
    inferredWorkloadSavings: NotRequired[List[InferredWorkloadSavingTypeDef]],  # (8)
  1. See List[SummaryTypeDef]
  2. See List[IdleSummaryTypeDef]
  3. See RecommendationSourceTypeType
  4. See SavingsOpportunityTypeDef
  5. See SavingsOpportunityTypeDef
  6. See SavingsOpportunityTypeDef
  7. See CurrentPerformanceRiskRatingsTypeDef
  8. See List[InferredWorkloadSavingTypeDef]

GetRecommendationPreferencesResponseTypeDef#

# GetRecommendationPreferencesResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetRecommendationPreferencesResponseTypeDef


def get_value() -> GetRecommendationPreferencesResponseTypeDef:
    return {
        "nextToken": ...,
    }


# GetRecommendationPreferencesResponseTypeDef definition

class GetRecommendationPreferencesResponseTypeDef(TypedDict):
    recommendationPreferencesDetails: List[RecommendationPreferencesDetailTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    nextToken: NotRequired[str],
  1. See List[RecommendationPreferencesDetailTypeDef]
  2. See ResponseMetadataTypeDef

ECSServiceRecommendationTypeDef#

# ECSServiceRecommendationTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import ECSServiceRecommendationTypeDef


def get_value() -> ECSServiceRecommendationTypeDef:
    return {
        "serviceArn": ...,
    }


# ECSServiceRecommendationTypeDef definition

class ECSServiceRecommendationTypeDef(TypedDict):
    serviceArn: NotRequired[str],
    accountId: NotRequired[str],
    currentServiceConfiguration: NotRequired[ServiceConfigurationTypeDef],  # (1)
    utilizationMetrics: NotRequired[List[ECSServiceUtilizationMetricTypeDef]],  # (2)
    lookbackPeriodInDays: NotRequired[float],
    launchType: NotRequired[ECSServiceLaunchTypeType],  # (3)
    lastRefreshTimestamp: NotRequired[datetime.datetime],
    finding: NotRequired[ECSServiceRecommendationFindingType],  # (4)
    findingReasonCodes: NotRequired[List[ECSServiceRecommendationFindingReasonCodeType]],  # (5)
    serviceRecommendationOptions: NotRequired[List[ECSServiceRecommendationOptionTypeDef]],  # (6)
    currentPerformanceRisk: NotRequired[CurrentPerformanceRiskType],  # (7)
    effectiveRecommendationPreferences: NotRequired[ECSEffectiveRecommendationPreferencesTypeDef],  # (8)
    tags: NotRequired[List[TagTypeDef]],  # (9)
  1. See ServiceConfigurationTypeDef
  2. See List[ECSServiceUtilizationMetricTypeDef]
  3. See ECSServiceLaunchTypeType
  4. See ECSServiceRecommendationFindingType
  5. See List[ECSServiceRecommendationFindingReasonCodeType]
  6. See List[ECSServiceRecommendationOptionTypeDef]
  7. See CurrentPerformanceRiskType
  8. See ECSEffectiveRecommendationPreferencesTypeDef
  9. See List[TagTypeDef]

LicenseRecommendationTypeDef#

# LicenseRecommendationTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import LicenseRecommendationTypeDef


def get_value() -> LicenseRecommendationTypeDef:
    return {
        "resourceArn": ...,
    }


# LicenseRecommendationTypeDef definition

class LicenseRecommendationTypeDef(TypedDict):
    resourceArn: NotRequired[str],
    accountId: NotRequired[str],
    currentLicenseConfiguration: NotRequired[LicenseConfigurationTypeDef],  # (1)
    lookbackPeriodInDays: NotRequired[float],
    lastRefreshTimestamp: NotRequired[datetime.datetime],
    finding: NotRequired[LicenseFindingType],  # (2)
    findingReasonCodes: NotRequired[List[LicenseFindingReasonCodeType]],  # (3)
    licenseRecommendationOptions: NotRequired[List[LicenseRecommendationOptionTypeDef]],  # (4)
    tags: NotRequired[List[TagTypeDef]],  # (5)
  1. See LicenseConfigurationTypeDef
  2. See LicenseFindingType
  3. See List[LicenseFindingReasonCodeType]
  4. See List[LicenseRecommendationOptionTypeDef]
  5. See List[TagTypeDef]

VolumeRecommendationTypeDef#

# VolumeRecommendationTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import VolumeRecommendationTypeDef


def get_value() -> VolumeRecommendationTypeDef:
    return {
        "volumeArn": ...,
    }


# VolumeRecommendationTypeDef definition

class VolumeRecommendationTypeDef(TypedDict):
    volumeArn: NotRequired[str],
    accountId: NotRequired[str],
    currentConfiguration: NotRequired[VolumeConfigurationTypeDef],  # (1)
    finding: NotRequired[EBSFindingType],  # (2)
    utilizationMetrics: NotRequired[List[EBSUtilizationMetricTypeDef]],  # (3)
    lookBackPeriodInDays: NotRequired[float],
    volumeRecommendationOptions: NotRequired[List[VolumeRecommendationOptionTypeDef]],  # (4)
    lastRefreshTimestamp: NotRequired[datetime.datetime],
    currentPerformanceRisk: NotRequired[CurrentPerformanceRiskType],  # (5)
    effectiveRecommendationPreferences: NotRequired[EBSEffectiveRecommendationPreferencesTypeDef],  # (6)
    tags: NotRequired[List[TagTypeDef]],  # (7)
  1. See VolumeConfigurationTypeDef
  2. See EBSFindingType
  3. See List[EBSUtilizationMetricTypeDef]
  4. See List[VolumeRecommendationOptionTypeDef]
  5. See CurrentPerformanceRiskType
  6. See EBSEffectiveRecommendationPreferencesTypeDef
  7. See List[TagTypeDef]

DescribeRecommendationExportJobsResponseTypeDef#

# DescribeRecommendationExportJobsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import DescribeRecommendationExportJobsResponseTypeDef


def get_value() -> DescribeRecommendationExportJobsResponseTypeDef:
    return {
        "recommendationExportJobs": ...,
    }


# DescribeRecommendationExportJobsResponseTypeDef definition

class DescribeRecommendationExportJobsResponseTypeDef(TypedDict):
    recommendationExportJobs: List[RecommendationExportJobTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    nextToken: NotRequired[str],
  1. See List[RecommendationExportJobTypeDef]
  2. See ResponseMetadataTypeDef

AutoScalingGroupRecommendationTypeDef#

# AutoScalingGroupRecommendationTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import AutoScalingGroupRecommendationTypeDef


def get_value() -> AutoScalingGroupRecommendationTypeDef:
    return {
        "accountId": ...,
    }


# AutoScalingGroupRecommendationTypeDef definition

class AutoScalingGroupRecommendationTypeDef(TypedDict):
    accountId: NotRequired[str],
    autoScalingGroupArn: NotRequired[str],
    autoScalingGroupName: NotRequired[str],
    finding: NotRequired[FindingType],  # (1)
    utilizationMetrics: NotRequired[List[UtilizationMetricTypeDef]],  # (2)
    lookBackPeriodInDays: NotRequired[float],
    currentConfiguration: NotRequired[AutoScalingGroupConfigurationTypeDef],  # (3)
    currentInstanceGpuInfo: NotRequired[GpuInfoTypeDef],  # (4)
    recommendationOptions: NotRequired[List[AutoScalingGroupRecommendationOptionTypeDef]],  # (5)
    lastRefreshTimestamp: NotRequired[datetime.datetime],
    currentPerformanceRisk: NotRequired[CurrentPerformanceRiskType],  # (6)
    effectiveRecommendationPreferences: NotRequired[EffectiveRecommendationPreferencesTypeDef],  # (7)
    inferredWorkloadTypes: NotRequired[List[InferredWorkloadTypeType]],  # (8)
  1. See FindingType
  2. See List[UtilizationMetricTypeDef]
  3. See AutoScalingGroupConfigurationTypeDef
  4. See GpuInfoTypeDef
  5. See List[AutoScalingGroupRecommendationOptionTypeDef]
  6. See CurrentPerformanceRiskType
  7. See EffectiveRecommendationPreferencesTypeDef
  8. See List[InferredWorkloadTypeType]

GetIdleRecommendationsResponseTypeDef#

# GetIdleRecommendationsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetIdleRecommendationsResponseTypeDef


def get_value() -> GetIdleRecommendationsResponseTypeDef:
    return {
        "nextToken": ...,
    }


# GetIdleRecommendationsResponseTypeDef definition

class GetIdleRecommendationsResponseTypeDef(TypedDict):
    idleRecommendations: List[IdleRecommendationTypeDef],  # (1)
    errors: List[IdleRecommendationErrorTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
    nextToken: NotRequired[str],
  1. See List[IdleRecommendationTypeDef]
  2. See List[IdleRecommendationErrorTypeDef]
  3. See ResponseMetadataTypeDef

InstanceRecommendationTypeDef#

# InstanceRecommendationTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import InstanceRecommendationTypeDef


def get_value() -> InstanceRecommendationTypeDef:
    return {
        "instanceArn": ...,
    }


# InstanceRecommendationTypeDef definition

class InstanceRecommendationTypeDef(TypedDict):
    instanceArn: NotRequired[str],
    accountId: NotRequired[str],
    instanceName: NotRequired[str],
    currentInstanceType: NotRequired[str],
    finding: NotRequired[FindingType],  # (1)
    findingReasonCodes: NotRequired[List[InstanceRecommendationFindingReasonCodeType]],  # (2)
    utilizationMetrics: NotRequired[List[UtilizationMetricTypeDef]],  # (3)
    lookBackPeriodInDays: NotRequired[float],
    recommendationOptions: NotRequired[List[InstanceRecommendationOptionTypeDef]],  # (4)
    recommendationSources: NotRequired[List[RecommendationSourceTypeDef]],  # (5)
    lastRefreshTimestamp: NotRequired[datetime.datetime],
    currentPerformanceRisk: NotRequired[CurrentPerformanceRiskType],  # (6)
    effectiveRecommendationPreferences: NotRequired[EffectiveRecommendationPreferencesTypeDef],  # (7)
    inferredWorkloadTypes: NotRequired[List[InferredWorkloadTypeType]],  # (8)
    instanceState: NotRequired[InstanceStateType],  # (9)
    tags: NotRequired[List[TagTypeDef]],  # (10)
    externalMetricStatus: NotRequired[ExternalMetricStatusTypeDef],  # (11)
    currentInstanceGpuInfo: NotRequired[GpuInfoTypeDef],  # (12)
    idle: NotRequired[InstanceIdleType],  # (13)
  1. See FindingType
  2. See List[InstanceRecommendationFindingReasonCodeType]
  3. See List[UtilizationMetricTypeDef]
  4. See List[InstanceRecommendationOptionTypeDef]
  5. See List[RecommendationSourceTypeDef]
  6. See CurrentPerformanceRiskType
  7. See EffectiveRecommendationPreferencesTypeDef
  8. See List[InferredWorkloadTypeType]
  9. See InstanceStateType
  10. See List[TagTypeDef]
  11. See ExternalMetricStatusTypeDef
  12. See GpuInfoTypeDef
  13. See InstanceIdleType

LambdaFunctionRecommendationTypeDef#

# LambdaFunctionRecommendationTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import LambdaFunctionRecommendationTypeDef


def get_value() -> LambdaFunctionRecommendationTypeDef:
    return {
        "functionArn": ...,
    }


# LambdaFunctionRecommendationTypeDef definition

class LambdaFunctionRecommendationTypeDef(TypedDict):
    functionArn: NotRequired[str],
    functionVersion: NotRequired[str],
    accountId: NotRequired[str],
    currentMemorySize: NotRequired[int],
    numberOfInvocations: NotRequired[int],
    utilizationMetrics: NotRequired[List[LambdaFunctionUtilizationMetricTypeDef]],  # (1)
    lookbackPeriodInDays: NotRequired[float],
    lastRefreshTimestamp: NotRequired[datetime.datetime],
    finding: NotRequired[LambdaFunctionRecommendationFindingType],  # (2)
    findingReasonCodes: NotRequired[List[LambdaFunctionRecommendationFindingReasonCodeType]],  # (3)
    memorySizeRecommendationOptions: NotRequired[List[LambdaFunctionMemoryRecommendationOptionTypeDef]],  # (4)
    currentPerformanceRisk: NotRequired[CurrentPerformanceRiskType],  # (5)
    effectiveRecommendationPreferences: NotRequired[LambdaEffectiveRecommendationPreferencesTypeDef],  # (6)
    tags: NotRequired[List[TagTypeDef]],  # (7)
  1. See List[LambdaFunctionUtilizationMetricTypeDef]
  2. See LambdaFunctionRecommendationFindingType
  3. See List[LambdaFunctionRecommendationFindingReasonCodeType]
  4. See List[LambdaFunctionMemoryRecommendationOptionTypeDef]
  5. See CurrentPerformanceRiskType
  6. See LambdaEffectiveRecommendationPreferencesTypeDef
  7. See List[TagTypeDef]

RDSDBRecommendationTypeDef#

# RDSDBRecommendationTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import RDSDBRecommendationTypeDef


def get_value() -> RDSDBRecommendationTypeDef:
    return {
        "resourceArn": ...,
    }


# RDSDBRecommendationTypeDef definition

class RDSDBRecommendationTypeDef(TypedDict):
    resourceArn: NotRequired[str],
    accountId: NotRequired[str],
    engine: NotRequired[str],
    engineVersion: NotRequired[str],
    promotionTier: NotRequired[int],
    currentDBInstanceClass: NotRequired[str],
    currentStorageConfiguration: NotRequired[DBStorageConfigurationTypeDef],  # (1)
    dbClusterIdentifier: NotRequired[str],
    idle: NotRequired[IdleType],  # (2)
    instanceFinding: NotRequired[RDSInstanceFindingType],  # (3)
    storageFinding: NotRequired[RDSStorageFindingType],  # (4)
    instanceFindingReasonCodes: NotRequired[List[RDSInstanceFindingReasonCodeType]],  # (5)
    currentInstancePerformanceRisk: NotRequired[RDSCurrentInstancePerformanceRiskType],  # (6)
    storageFindingReasonCodes: NotRequired[List[RDSStorageFindingReasonCodeType]],  # (7)
    instanceRecommendationOptions: NotRequired[List[RDSDBInstanceRecommendationOptionTypeDef]],  # (8)
    storageRecommendationOptions: NotRequired[List[RDSDBStorageRecommendationOptionTypeDef]],  # (9)
    utilizationMetrics: NotRequired[List[RDSDBUtilizationMetricTypeDef]],  # (10)
    effectiveRecommendationPreferences: NotRequired[RDSEffectiveRecommendationPreferencesTypeDef],  # (11)
    lookbackPeriodInDays: NotRequired[float],
    lastRefreshTimestamp: NotRequired[datetime.datetime],
    tags: NotRequired[List[TagTypeDef]],  # (12)
  1. See DBStorageConfigurationTypeDef
  2. See IdleType
  3. See RDSInstanceFindingType
  4. See RDSStorageFindingType
  5. See List[RDSInstanceFindingReasonCodeType]
  6. See RDSCurrentInstancePerformanceRiskType
  7. See List[RDSStorageFindingReasonCodeType]
  8. See List[RDSDBInstanceRecommendationOptionTypeDef]
  9. See List[RDSDBStorageRecommendationOptionTypeDef]
  10. See List[RDSDBUtilizationMetricTypeDef]
  11. See RDSEffectiveRecommendationPreferencesTypeDef
  12. See List[TagTypeDef]

GetRecommendationSummariesResponseTypeDef#

# GetRecommendationSummariesResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetRecommendationSummariesResponseTypeDef


def get_value() -> GetRecommendationSummariesResponseTypeDef:
    return {
        "nextToken": ...,
    }


# GetRecommendationSummariesResponseTypeDef definition

class GetRecommendationSummariesResponseTypeDef(TypedDict):
    recommendationSummaries: List[RecommendationSummaryTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    nextToken: NotRequired[str],
  1. See List[RecommendationSummaryTypeDef]
  2. See ResponseMetadataTypeDef

GetECSServiceRecommendationsResponseTypeDef#

# GetECSServiceRecommendationsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetECSServiceRecommendationsResponseTypeDef


def get_value() -> GetECSServiceRecommendationsResponseTypeDef:
    return {
        "nextToken": ...,
    }


# GetECSServiceRecommendationsResponseTypeDef definition

class GetECSServiceRecommendationsResponseTypeDef(TypedDict):
    ecsServiceRecommendations: List[ECSServiceRecommendationTypeDef],  # (1)
    errors: List[GetRecommendationErrorTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
    nextToken: NotRequired[str],
  1. See List[ECSServiceRecommendationTypeDef]
  2. See List[GetRecommendationErrorTypeDef]
  3. See ResponseMetadataTypeDef

GetLicenseRecommendationsResponseTypeDef#

# GetLicenseRecommendationsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetLicenseRecommendationsResponseTypeDef


def get_value() -> GetLicenseRecommendationsResponseTypeDef:
    return {
        "nextToken": ...,
    }


# GetLicenseRecommendationsResponseTypeDef definition

class GetLicenseRecommendationsResponseTypeDef(TypedDict):
    licenseRecommendations: List[LicenseRecommendationTypeDef],  # (1)
    errors: List[GetRecommendationErrorTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
    nextToken: NotRequired[str],
  1. See List[LicenseRecommendationTypeDef]
  2. See List[GetRecommendationErrorTypeDef]
  3. See ResponseMetadataTypeDef

GetEBSVolumeRecommendationsResponseTypeDef#

# GetEBSVolumeRecommendationsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetEBSVolumeRecommendationsResponseTypeDef


def get_value() -> GetEBSVolumeRecommendationsResponseTypeDef:
    return {
        "nextToken": ...,
    }


# GetEBSVolumeRecommendationsResponseTypeDef definition

class GetEBSVolumeRecommendationsResponseTypeDef(TypedDict):
    volumeRecommendations: List[VolumeRecommendationTypeDef],  # (1)
    errors: List[GetRecommendationErrorTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
    nextToken: NotRequired[str],
  1. See List[VolumeRecommendationTypeDef]
  2. See List[GetRecommendationErrorTypeDef]
  3. See ResponseMetadataTypeDef

GetAutoScalingGroupRecommendationsResponseTypeDef#

# GetAutoScalingGroupRecommendationsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetAutoScalingGroupRecommendationsResponseTypeDef


def get_value() -> GetAutoScalingGroupRecommendationsResponseTypeDef:
    return {
        "nextToken": ...,
    }


# GetAutoScalingGroupRecommendationsResponseTypeDef definition

class GetAutoScalingGroupRecommendationsResponseTypeDef(TypedDict):
    autoScalingGroupRecommendations: List[AutoScalingGroupRecommendationTypeDef],  # (1)
    errors: List[GetRecommendationErrorTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
    nextToken: NotRequired[str],
  1. See List[AutoScalingGroupRecommendationTypeDef]
  2. See List[GetRecommendationErrorTypeDef]
  3. See ResponseMetadataTypeDef

GetEC2InstanceRecommendationsResponseTypeDef#

# GetEC2InstanceRecommendationsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetEC2InstanceRecommendationsResponseTypeDef


def get_value() -> GetEC2InstanceRecommendationsResponseTypeDef:
    return {
        "nextToken": ...,
    }


# GetEC2InstanceRecommendationsResponseTypeDef definition

class GetEC2InstanceRecommendationsResponseTypeDef(TypedDict):
    instanceRecommendations: List[InstanceRecommendationTypeDef],  # (1)
    errors: List[GetRecommendationErrorTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
    nextToken: NotRequired[str],
  1. See List[InstanceRecommendationTypeDef]
  2. See List[GetRecommendationErrorTypeDef]
  3. See ResponseMetadataTypeDef

GetLambdaFunctionRecommendationsResponseTypeDef#

# GetLambdaFunctionRecommendationsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetLambdaFunctionRecommendationsResponseTypeDef


def get_value() -> GetLambdaFunctionRecommendationsResponseTypeDef:
    return {
        "nextToken": ...,
    }


# GetLambdaFunctionRecommendationsResponseTypeDef definition

class GetLambdaFunctionRecommendationsResponseTypeDef(TypedDict):
    lambdaFunctionRecommendations: List[LambdaFunctionRecommendationTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    nextToken: NotRequired[str],
  1. See List[LambdaFunctionRecommendationTypeDef]
  2. See ResponseMetadataTypeDef

GetRDSDatabaseRecommendationsResponseTypeDef#

# GetRDSDatabaseRecommendationsResponseTypeDef TypedDict usage example

from mypy_boto3_compute_optimizer.type_defs import GetRDSDatabaseRecommendationsResponseTypeDef


def get_value() -> GetRDSDatabaseRecommendationsResponseTypeDef:
    return {
        "nextToken": ...,
    }


# GetRDSDatabaseRecommendationsResponseTypeDef definition

class GetRDSDatabaseRecommendationsResponseTypeDef(TypedDict):
    rdsDBRecommendations: List[RDSDBRecommendationTypeDef],  # (1)
    errors: List[GetRecommendationErrorTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
    nextToken: NotRequired[str],
  1. See List[RDSDBRecommendationTypeDef]
  2. See List[GetRecommendationErrorTypeDef]
  3. See ResponseMetadataTypeDef