Skip to content

Typed dictionaries

Index > ComputeOptimizer > Typed dictionaries

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

AccountEnrollmentStatusTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import AccountEnrollmentStatusTypeDef

def get_value() -> AccountEnrollmentStatusTypeDef:
    return {
        "accountId": ...,
    }
Definition
class AccountEnrollmentStatusTypeDef(TypedDict):
    accountId: NotRequired[str],
    status: NotRequired[StatusType],  # (1)
    statusReason: NotRequired[str],
    lastUpdatedTimestamp: NotRequired[datetime],
  1. See StatusType

AutoScalingGroupConfigurationTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import AutoScalingGroupConfigurationTypeDef

def get_value() -> AutoScalingGroupConfigurationTypeDef:
    return {
        "desiredCapacity": ...,
    }
Definition
class AutoScalingGroupConfigurationTypeDef(TypedDict):
    desiredCapacity: NotRequired[int],
    minSize: NotRequired[int],
    maxSize: NotRequired[int],
    instanceType: NotRequired[str],

UtilizationMetricTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import UtilizationMetricTypeDef

def get_value() -> UtilizationMetricTypeDef:
    return {
        "name": ...,
    }
Definition
class UtilizationMetricTypeDef(TypedDict):
    name: NotRequired[MetricNameType],  # (1)
    statistic: NotRequired[MetricStatisticType],  # (2)
    value: NotRequired[float],
  1. See MetricNameType
  2. See MetricStatisticType

MemorySizeConfigurationTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import MemorySizeConfigurationTypeDef

def get_value() -> MemorySizeConfigurationTypeDef:
    return {
        "memory": ...,
    }
Definition
class MemorySizeConfigurationTypeDef(TypedDict):
    memory: NotRequired[int],
    memoryReservation: NotRequired[int],

CurrentPerformanceRiskRatingsTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import CurrentPerformanceRiskRatingsTypeDef

def get_value() -> CurrentPerformanceRiskRatingsTypeDef:
    return {
        "high": ...,
    }
Definition
class CurrentPerformanceRiskRatingsTypeDef(TypedDict):
    high: NotRequired[int],
    medium: NotRequired[int],
    low: NotRequired[int],
    veryLow: NotRequired[int],

ScopeTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ScopeTypeDef

def get_value() -> ScopeTypeDef:
    return {
        "name": ...,
    }
Definition
class ScopeTypeDef(TypedDict):
    name: NotRequired[ScopeNameType],  # (1)
    value: NotRequired[str],
  1. See ScopeNameType

JobFilterTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import JobFilterTypeDef

def get_value() -> JobFilterTypeDef:
    return {
        "name": ...,
    }
Definition
class JobFilterTypeDef(TypedDict):
    name: NotRequired[JobFilterNameType],  # (1)
    values: NotRequired[Sequence[str]],
  1. See JobFilterNameType

PaginatorConfigTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import PaginatorConfigTypeDef

def get_value() -> PaginatorConfigTypeDef:
    return {
        "MaxItems": ...,
    }
Definition
class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

ResponseMetadataTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ResponseMetadataTypeDef

def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
        "HostId": ...,
        "HTTPStatusCode": ...,
        "HTTPHeaders": ...,
        "RetryAttempts": ...,
    }
Definition
class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HostId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,

EBSFilterTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import EBSFilterTypeDef

def get_value() -> EBSFilterTypeDef:
    return {
        "name": ...,
    }
Definition
class EBSFilterTypeDef(TypedDict):
    name: NotRequired[EBSFilterNameType],  # (1)
    values: NotRequired[Sequence[str]],
  1. See EBSFilterNameType

EBSUtilizationMetricTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import EBSUtilizationMetricTypeDef

def get_value() -> EBSUtilizationMetricTypeDef:
    return {
        "name": ...,
    }
Definition
class EBSUtilizationMetricTypeDef(TypedDict):
    name: NotRequired[EBSMetricNameType],  # (1)
    statistic: NotRequired[MetricStatisticType],  # (2)
    value: NotRequired[float],
  1. See EBSMetricNameType
  2. See MetricStatisticType

ECSServiceProjectedMetricTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ECSServiceProjectedMetricTypeDef

def get_value() -> ECSServiceProjectedMetricTypeDef:
    return {
        "name": ...,
    }
Definition
class ECSServiceProjectedMetricTypeDef(TypedDict):
    name: NotRequired[ECSServiceMetricNameType],  # (1)
    timestamps: NotRequired[List[datetime]],
    upperBoundValues: NotRequired[List[float]],
    lowerBoundValues: NotRequired[List[float]],
  1. See ECSServiceMetricNameType

ECSServiceProjectedUtilizationMetricTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ECSServiceProjectedUtilizationMetricTypeDef

def get_value() -> ECSServiceProjectedUtilizationMetricTypeDef:
    return {
        "name": ...,
    }
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

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ECSServiceRecommendationFilterTypeDef

def get_value() -> ECSServiceRecommendationFilterTypeDef:
    return {
        "name": ...,
    }
Definition
class ECSServiceRecommendationFilterTypeDef(TypedDict):
    name: NotRequired[ECSServiceRecommendationFilterNameType],  # (1)
    values: NotRequired[Sequence[str]],
  1. See ECSServiceRecommendationFilterNameType

ECSServiceUtilizationMetricTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ECSServiceUtilizationMetricTypeDef

def get_value() -> ECSServiceUtilizationMetricTypeDef:
    return {
        "name": ...,
    }
Definition
class ECSServiceUtilizationMetricTypeDef(TypedDict):
    name: NotRequired[ECSServiceMetricNameType],  # (1)
    statistic: NotRequired[ECSServiceMetricStatisticType],  # (2)
    value: NotRequired[float],
  1. See ECSServiceMetricNameType
  2. See ECSServiceMetricStatisticType

ExternalMetricsPreferenceTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ExternalMetricsPreferenceTypeDef

def get_value() -> ExternalMetricsPreferenceTypeDef:
    return {
        "source": ...,
    }
Definition
class ExternalMetricsPreferenceTypeDef(TypedDict):
    source: NotRequired[ExternalMetricsSourceType],  # (1)
  1. See ExternalMetricsSourceType

EnrollmentFilterTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import EnrollmentFilterTypeDef

def get_value() -> EnrollmentFilterTypeDef:
    return {
        "name": ...,
    }
Definition
class EnrollmentFilterTypeDef(TypedDict):
    name: NotRequired[EnrollmentFilterNameType],  # (1)
    values: NotRequired[Sequence[str]],
  1. See EnrollmentFilterNameType

EstimatedMonthlySavingsTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import EstimatedMonthlySavingsTypeDef

def get_value() -> EstimatedMonthlySavingsTypeDef:
    return {
        "currency": ...,
    }
Definition
class EstimatedMonthlySavingsTypeDef(TypedDict):
    currency: NotRequired[CurrencyType],  # (1)
    value: NotRequired[float],
  1. See CurrencyType

FilterTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import FilterTypeDef

def get_value() -> FilterTypeDef:
    return {
        "name": ...,
    }
Definition
class FilterTypeDef(TypedDict):
    name: NotRequired[FilterNameType],  # (1)
    values: NotRequired[Sequence[str]],
  1. See FilterNameType

RecommendationPreferencesTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import RecommendationPreferencesTypeDef

def get_value() -> RecommendationPreferencesTypeDef:
    return {
        "cpuVendorArchitectures": ...,
    }
Definition
class RecommendationPreferencesTypeDef(TypedDict):
    cpuVendorArchitectures: NotRequired[Sequence[CpuVendorArchitectureType]],  # (1)
  1. See CpuVendorArchitectureType

S3DestinationConfigTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import S3DestinationConfigTypeDef

def get_value() -> S3DestinationConfigTypeDef:
    return {
        "bucket": ...,
    }
Definition
class S3DestinationConfigTypeDef(TypedDict):
    bucket: NotRequired[str],
    keyPrefix: NotRequired[str],

S3DestinationTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import S3DestinationTypeDef

def get_value() -> S3DestinationTypeDef:
    return {
        "bucket": ...,
    }
Definition
class S3DestinationTypeDef(TypedDict):
    bucket: NotRequired[str],
    key: NotRequired[str],
    metadataKey: NotRequired[str],

LambdaFunctionRecommendationFilterTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import LambdaFunctionRecommendationFilterTypeDef

def get_value() -> LambdaFunctionRecommendationFilterTypeDef:
    return {
        "name": ...,
    }
Definition
class LambdaFunctionRecommendationFilterTypeDef(TypedDict):
    name: NotRequired[LambdaFunctionRecommendationFilterNameType],  # (1)
    values: NotRequired[Sequence[str]],
  1. See LambdaFunctionRecommendationFilterNameType

GetRecommendationErrorTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetRecommendationErrorTypeDef

def get_value() -> GetRecommendationErrorTypeDef:
    return {
        "identifier": ...,
    }
Definition
class GetRecommendationErrorTypeDef(TypedDict):
    identifier: NotRequired[str],
    code: NotRequired[str],
    message: NotRequired[str],

GetECSServiceRecommendationProjectedMetricsRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetECSServiceRecommendationProjectedMetricsRequestRequestTypeDef

def get_value() -> GetECSServiceRecommendationProjectedMetricsRequestRequestTypeDef:
    return {
        "serviceArn": ...,
        "stat": ...,
        "period": ...,
        "startTime": ...,
        "endTime": ...,
    }
Definition
class GetECSServiceRecommendationProjectedMetricsRequestRequestTypeDef(TypedDict):
    serviceArn: str,
    stat: MetricStatisticType,  # (1)
    period: int,
    startTime: Union[datetime, str],
    endTime: Union[datetime, str],
  1. See MetricStatisticType

GetEffectiveRecommendationPreferencesRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetEffectiveRecommendationPreferencesRequestRequestTypeDef

def get_value() -> GetEffectiveRecommendationPreferencesRequestRequestTypeDef:
    return {
        "resourceArn": ...,
    }
Definition
class GetEffectiveRecommendationPreferencesRequestRequestTypeDef(TypedDict):
    resourceArn: str,

GetRecommendationSummariesRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetRecommendationSummariesRequestRequestTypeDef

def get_value() -> GetRecommendationSummariesRequestRequestTypeDef:
    return {
        "accountIds": ...,
    }
Definition
class GetRecommendationSummariesRequestRequestTypeDef(TypedDict):
    accountIds: NotRequired[Sequence[str]],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

RecommendationSourceTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import RecommendationSourceTypeDef

def get_value() -> RecommendationSourceTypeDef:
    return {
        "recommendationSourceArn": ...,
    }
Definition
class RecommendationSourceTypeDef(TypedDict):
    recommendationSourceArn: NotRequired[str],
    recommendationSourceType: NotRequired[RecommendationSourceTypeType],  # (1)
  1. See RecommendationSourceTypeType

LambdaFunctionMemoryProjectedMetricTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import LambdaFunctionMemoryProjectedMetricTypeDef

def get_value() -> LambdaFunctionMemoryProjectedMetricTypeDef:
    return {
        "name": ...,
    }
Definition
class LambdaFunctionMemoryProjectedMetricTypeDef(TypedDict):
    name: NotRequired[LambdaFunctionMemoryMetricNameType],  # (1)
    statistic: NotRequired[LambdaFunctionMemoryMetricStatisticType],  # (2)
    value: NotRequired[float],
  1. See LambdaFunctionMemoryMetricNameType
  2. See LambdaFunctionMemoryMetricStatisticType

LambdaFunctionUtilizationMetricTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import LambdaFunctionUtilizationMetricTypeDef

def get_value() -> LambdaFunctionUtilizationMetricTypeDef:
    return {
        "name": ...,
    }
Definition
class LambdaFunctionUtilizationMetricTypeDef(TypedDict):
    name: NotRequired[LambdaFunctionMetricNameType],  # (1)
    statistic: NotRequired[LambdaFunctionMetricStatisticType],  # (2)
    value: NotRequired[float],
  1. See LambdaFunctionMetricNameType
  2. See LambdaFunctionMetricStatisticType

ProjectedMetricTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ProjectedMetricTypeDef

def get_value() -> ProjectedMetricTypeDef:
    return {
        "name": ...,
    }
Definition
class ProjectedMetricTypeDef(TypedDict):
    name: NotRequired[MetricNameType],  # (1)
    timestamps: NotRequired[List[datetime]],
    values: NotRequired[List[float]],
  1. See MetricNameType

ReasonCodeSummaryTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ReasonCodeSummaryTypeDef

def get_value() -> ReasonCodeSummaryTypeDef:
    return {
        "name": ...,
    }
Definition
class ReasonCodeSummaryTypeDef(TypedDict):
    name: NotRequired[FindingReasonCodeType],  # (1)
    value: NotRequired[float],
  1. See FindingReasonCodeType

UpdateEnrollmentStatusRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import UpdateEnrollmentStatusRequestRequestTypeDef

def get_value() -> UpdateEnrollmentStatusRequestRequestTypeDef:
    return {
        "status": ...,
    }
Definition
class UpdateEnrollmentStatusRequestRequestTypeDef(TypedDict):
    status: StatusType,  # (1)
    includeMemberAccounts: NotRequired[bool],
  1. See StatusType

VolumeConfigurationTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import VolumeConfigurationTypeDef

def get_value() -> VolumeConfigurationTypeDef:
    return {
        "volumeType": ...,
    }
Definition
class VolumeConfigurationTypeDef(TypedDict):
    volumeType: NotRequired[str],
    volumeSize: NotRequired[int],
    volumeBaselineIOPS: NotRequired[int],
    volumeBurstIOPS: NotRequired[int],
    volumeBaselineThroughput: NotRequired[int],
    volumeBurstThroughput: NotRequired[int],

ContainerConfigurationTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ContainerConfigurationTypeDef

def get_value() -> ContainerConfigurationTypeDef:
    return {
        "containerName": ...,
    }
Definition
class ContainerConfigurationTypeDef(TypedDict):
    containerName: NotRequired[str],
    memorySizeConfiguration: NotRequired[MemorySizeConfigurationTypeDef],  # (1)
    cpu: NotRequired[int],
  1. See MemorySizeConfigurationTypeDef

ContainerRecommendationTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ContainerRecommendationTypeDef

def get_value() -> ContainerRecommendationTypeDef:
    return {
        "containerName": ...,
    }
Definition
class ContainerRecommendationTypeDef(TypedDict):
    containerName: NotRequired[str],
    memorySizeConfiguration: NotRequired[MemorySizeConfigurationTypeDef],  # (1)
    cpu: NotRequired[int],
  1. See MemorySizeConfigurationTypeDef

DeleteRecommendationPreferencesRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import DeleteRecommendationPreferencesRequestRequestTypeDef

def get_value() -> DeleteRecommendationPreferencesRequestRequestTypeDef:
    return {
        "resourceType": ...,
        "recommendationPreferenceNames": ...,
    }
Definition
class DeleteRecommendationPreferencesRequestRequestTypeDef(TypedDict):
    resourceType: ResourceTypeType,  # (1)
    recommendationPreferenceNames: Sequence[RecommendationPreferenceNameType],  # (2)
    scope: NotRequired[ScopeTypeDef],  # (3)
  1. See ResourceTypeType
  2. See RecommendationPreferenceNameType
  3. See ScopeTypeDef

GetRecommendationPreferencesRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetRecommendationPreferencesRequestRequestTypeDef

def get_value() -> GetRecommendationPreferencesRequestRequestTypeDef:
    return {
        "resourceType": ...,
    }
Definition
class GetRecommendationPreferencesRequestRequestTypeDef(TypedDict):
    resourceType: ResourceTypeType,  # (1)
    scope: NotRequired[ScopeTypeDef],  # (2)
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See ResourceTypeType
  2. See ScopeTypeDef

DescribeRecommendationExportJobsRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import DescribeRecommendationExportJobsRequestRequestTypeDef

def get_value() -> DescribeRecommendationExportJobsRequestRequestTypeDef:
    return {
        "jobIds": ...,
    }
Definition
class DescribeRecommendationExportJobsRequestRequestTypeDef(TypedDict):
    jobIds: NotRequired[Sequence[str]],
    filters: NotRequired[Sequence[JobFilterTypeDef]],  # (1)
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See JobFilterTypeDef

DescribeRecommendationExportJobsRequestDescribeRecommendationExportJobsPaginateTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import DescribeRecommendationExportJobsRequestDescribeRecommendationExportJobsPaginateTypeDef

def get_value() -> DescribeRecommendationExportJobsRequestDescribeRecommendationExportJobsPaginateTypeDef:
    return {
        "jobIds": ...,
    }
Definition
class DescribeRecommendationExportJobsRequestDescribeRecommendationExportJobsPaginateTypeDef(TypedDict):
    jobIds: NotRequired[Sequence[str]],
    filters: NotRequired[Sequence[JobFilterTypeDef]],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See JobFilterTypeDef
  2. See PaginatorConfigTypeDef

GetRecommendationPreferencesRequestGetRecommendationPreferencesPaginateTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetRecommendationPreferencesRequestGetRecommendationPreferencesPaginateTypeDef

def get_value() -> GetRecommendationPreferencesRequestGetRecommendationPreferencesPaginateTypeDef:
    return {
        "resourceType": ...,
    }
Definition
class GetRecommendationPreferencesRequestGetRecommendationPreferencesPaginateTypeDef(TypedDict):
    resourceType: ResourceTypeType,  # (1)
    scope: NotRequired[ScopeTypeDef],  # (2)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See ResourceTypeType
  2. See ScopeTypeDef
  3. See PaginatorConfigTypeDef

GetRecommendationSummariesRequestGetRecommendationSummariesPaginateTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetRecommendationSummariesRequestGetRecommendationSummariesPaginateTypeDef

def get_value() -> GetRecommendationSummariesRequestGetRecommendationSummariesPaginateTypeDef:
    return {
        "accountIds": ...,
    }
Definition
class GetRecommendationSummariesRequestGetRecommendationSummariesPaginateTypeDef(TypedDict):
    accountIds: NotRequired[Sequence[str]],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

GetEnrollmentStatusResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetEnrollmentStatusResponseTypeDef

def get_value() -> GetEnrollmentStatusResponseTypeDef:
    return {
        "status": ...,
        "statusReason": ...,
        "memberAccountsEnrolled": ...,
        "lastUpdatedTimestamp": ...,
        "numberOfMemberAccountsOptedIn": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetEnrollmentStatusResponseTypeDef(TypedDict):
    status: StatusType,  # (1)
    statusReason: str,
    memberAccountsEnrolled: bool,
    lastUpdatedTimestamp: datetime,
    numberOfMemberAccountsOptedIn: int,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See StatusType
  2. See ResponseMetadataTypeDef

GetEnrollmentStatusesForOrganizationResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetEnrollmentStatusesForOrganizationResponseTypeDef

def get_value() -> GetEnrollmentStatusesForOrganizationResponseTypeDef:
    return {
        "accountEnrollmentStatuses": ...,
        "nextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetEnrollmentStatusesForOrganizationResponseTypeDef(TypedDict):
    accountEnrollmentStatuses: List[AccountEnrollmentStatusTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See AccountEnrollmentStatusTypeDef
  2. See ResponseMetadataTypeDef

UpdateEnrollmentStatusResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import UpdateEnrollmentStatusResponseTypeDef

def get_value() -> UpdateEnrollmentStatusResponseTypeDef:
    return {
        "status": ...,
        "statusReason": ...,
        "ResponseMetadata": ...,
    }
Definition
class UpdateEnrollmentStatusResponseTypeDef(TypedDict):
    status: StatusType,  # (1)
    statusReason: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See StatusType
  2. See ResponseMetadataTypeDef

GetEBSVolumeRecommendationsRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetEBSVolumeRecommendationsRequestRequestTypeDef

def get_value() -> GetEBSVolumeRecommendationsRequestRequestTypeDef:
    return {
        "volumeArns": ...,
    }
Definition
class GetEBSVolumeRecommendationsRequestRequestTypeDef(TypedDict):
    volumeArns: NotRequired[Sequence[str]],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    filters: NotRequired[Sequence[EBSFilterTypeDef]],  # (1)
    accountIds: NotRequired[Sequence[str]],
  1. See EBSFilterTypeDef

ECSServiceRecommendedOptionProjectedMetricTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ECSServiceRecommendedOptionProjectedMetricTypeDef

def get_value() -> ECSServiceRecommendedOptionProjectedMetricTypeDef:
    return {
        "recommendedCpuUnits": ...,
    }
Definition
class ECSServiceRecommendedOptionProjectedMetricTypeDef(TypedDict):
    recommendedCpuUnits: NotRequired[int],
    recommendedMemorySize: NotRequired[int],
    projectedMetrics: NotRequired[List[ECSServiceProjectedMetricTypeDef]],  # (1)
  1. See ECSServiceProjectedMetricTypeDef

GetECSServiceRecommendationsRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetECSServiceRecommendationsRequestRequestTypeDef

def get_value() -> GetECSServiceRecommendationsRequestRequestTypeDef:
    return {
        "serviceArns": ...,
    }
Definition
class GetECSServiceRecommendationsRequestRequestTypeDef(TypedDict):
    serviceArns: NotRequired[Sequence[str]],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    filters: NotRequired[Sequence[ECSServiceRecommendationFilterTypeDef]],  # (1)
    accountIds: NotRequired[Sequence[str]],
  1. See ECSServiceRecommendationFilterTypeDef

EffectiveRecommendationPreferencesTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import EffectiveRecommendationPreferencesTypeDef

def get_value() -> EffectiveRecommendationPreferencesTypeDef:
    return {
        "cpuVendorArchitectures": ...,
    }
Definition
class EffectiveRecommendationPreferencesTypeDef(TypedDict):
    cpuVendorArchitectures: NotRequired[List[CpuVendorArchitectureType]],  # (1)
    enhancedInfrastructureMetrics: NotRequired[EnhancedInfrastructureMetricsType],  # (2)
    inferredWorkloadTypes: NotRequired[InferredWorkloadTypesPreferenceType],  # (3)
    externalMetricsPreference: NotRequired[ExternalMetricsPreferenceTypeDef],  # (4)
  1. See CpuVendorArchitectureType
  2. See EnhancedInfrastructureMetricsType
  3. See InferredWorkloadTypesPreferenceType
  4. See ExternalMetricsPreferenceTypeDef

GetEffectiveRecommendationPreferencesResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetEffectiveRecommendationPreferencesResponseTypeDef

def get_value() -> GetEffectiveRecommendationPreferencesResponseTypeDef:
    return {
        "enhancedInfrastructureMetrics": ...,
        "externalMetricsPreference": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetEffectiveRecommendationPreferencesResponseTypeDef(TypedDict):
    enhancedInfrastructureMetrics: EnhancedInfrastructureMetricsType,  # (1)
    externalMetricsPreference: ExternalMetricsPreferenceTypeDef,  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See EnhancedInfrastructureMetricsType
  2. See ExternalMetricsPreferenceTypeDef
  3. See ResponseMetadataTypeDef

PutRecommendationPreferencesRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import PutRecommendationPreferencesRequestRequestTypeDef

def get_value() -> PutRecommendationPreferencesRequestRequestTypeDef:
    return {
        "resourceType": ...,
    }
Definition
class PutRecommendationPreferencesRequestRequestTypeDef(TypedDict):
    resourceType: ResourceTypeType,  # (1)
    scope: NotRequired[ScopeTypeDef],  # (2)
    enhancedInfrastructureMetrics: NotRequired[EnhancedInfrastructureMetricsType],  # (3)
    inferredWorkloadTypes: NotRequired[InferredWorkloadTypesPreferenceType],  # (4)
    externalMetricsPreference: NotRequired[ExternalMetricsPreferenceTypeDef],  # (5)
  1. See ResourceTypeType
  2. See ScopeTypeDef
  3. See EnhancedInfrastructureMetricsType
  4. See InferredWorkloadTypesPreferenceType
  5. See ExternalMetricsPreferenceTypeDef

RecommendationPreferencesDetailTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import RecommendationPreferencesDetailTypeDef

def get_value() -> RecommendationPreferencesDetailTypeDef:
    return {
        "scope": ...,
    }
Definition
class RecommendationPreferencesDetailTypeDef(TypedDict):
    scope: NotRequired[ScopeTypeDef],  # (1)
    resourceType: NotRequired[ResourceTypeType],  # (2)
    enhancedInfrastructureMetrics: NotRequired[EnhancedInfrastructureMetricsType],  # (3)
    inferredWorkloadTypes: NotRequired[InferredWorkloadTypesPreferenceType],  # (4)
    externalMetricsPreference: NotRequired[ExternalMetricsPreferenceTypeDef],  # (5)
  1. See ScopeTypeDef
  2. See ResourceTypeType
  3. See EnhancedInfrastructureMetricsType
  4. See InferredWorkloadTypesPreferenceType
  5. See ExternalMetricsPreferenceTypeDef

GetEnrollmentStatusesForOrganizationRequestGetEnrollmentStatusesForOrganizationPaginateTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetEnrollmentStatusesForOrganizationRequestGetEnrollmentStatusesForOrganizationPaginateTypeDef

def get_value() -> GetEnrollmentStatusesForOrganizationRequestGetEnrollmentStatusesForOrganizationPaginateTypeDef:
    return {
        "filters": ...,
    }
Definition
class GetEnrollmentStatusesForOrganizationRequestGetEnrollmentStatusesForOrganizationPaginateTypeDef(TypedDict):
    filters: NotRequired[Sequence[EnrollmentFilterTypeDef]],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See EnrollmentFilterTypeDef
  2. See PaginatorConfigTypeDef

GetEnrollmentStatusesForOrganizationRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetEnrollmentStatusesForOrganizationRequestRequestTypeDef

def get_value() -> GetEnrollmentStatusesForOrganizationRequestRequestTypeDef:
    return {
        "filters": ...,
    }
Definition
class GetEnrollmentStatusesForOrganizationRequestRequestTypeDef(TypedDict):
    filters: NotRequired[Sequence[EnrollmentFilterTypeDef]],  # (1)
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See EnrollmentFilterTypeDef

SavingsOpportunityTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import SavingsOpportunityTypeDef

def get_value() -> SavingsOpportunityTypeDef:
    return {
        "savingsOpportunityPercentage": ...,
    }
Definition
class SavingsOpportunityTypeDef(TypedDict):
    savingsOpportunityPercentage: NotRequired[float],
    estimatedMonthlySavings: NotRequired[EstimatedMonthlySavingsTypeDef],  # (1)
  1. See EstimatedMonthlySavingsTypeDef

GetAutoScalingGroupRecommendationsRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetAutoScalingGroupRecommendationsRequestRequestTypeDef

def get_value() -> GetAutoScalingGroupRecommendationsRequestRequestTypeDef:
    return {
        "accountIds": ...,
    }
Definition
class GetAutoScalingGroupRecommendationsRequestRequestTypeDef(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 FilterTypeDef
  2. See RecommendationPreferencesTypeDef

GetEC2InstanceRecommendationsRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetEC2InstanceRecommendationsRequestRequestTypeDef

def get_value() -> GetEC2InstanceRecommendationsRequestRequestTypeDef:
    return {
        "instanceArns": ...,
    }
Definition
class GetEC2InstanceRecommendationsRequestRequestTypeDef(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 FilterTypeDef
  2. See RecommendationPreferencesTypeDef

GetEC2RecommendationProjectedMetricsRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetEC2RecommendationProjectedMetricsRequestRequestTypeDef

def get_value() -> GetEC2RecommendationProjectedMetricsRequestRequestTypeDef:
    return {
        "instanceArn": ...,
        "stat": ...,
        "period": ...,
        "startTime": ...,
        "endTime": ...,
    }
Definition
class GetEC2RecommendationProjectedMetricsRequestRequestTypeDef(TypedDict):
    instanceArn: str,
    stat: MetricStatisticType,  # (1)
    period: int,
    startTime: Union[datetime, str],
    endTime: Union[datetime, str],
    recommendationPreferences: NotRequired[RecommendationPreferencesTypeDef],  # (2)
  1. See MetricStatisticType
  2. See RecommendationPreferencesTypeDef

ExportAutoScalingGroupRecommendationsRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ExportAutoScalingGroupRecommendationsRequestRequestTypeDef

def get_value() -> ExportAutoScalingGroupRecommendationsRequestRequestTypeDef:
    return {
        "s3DestinationConfig": ...,
    }
Definition
class ExportAutoScalingGroupRecommendationsRequestRequestTypeDef(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 FilterTypeDef
  3. See ExportableAutoScalingGroupFieldType
  4. See FileFormatType
  5. See RecommendationPreferencesTypeDef

ExportEBSVolumeRecommendationsRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ExportEBSVolumeRecommendationsRequestRequestTypeDef

def get_value() -> ExportEBSVolumeRecommendationsRequestRequestTypeDef:
    return {
        "s3DestinationConfig": ...,
    }
Definition
class ExportEBSVolumeRecommendationsRequestRequestTypeDef(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 EBSFilterTypeDef
  3. See ExportableVolumeFieldType
  4. See FileFormatType

ExportEC2InstanceRecommendationsRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ExportEC2InstanceRecommendationsRequestRequestTypeDef

def get_value() -> ExportEC2InstanceRecommendationsRequestRequestTypeDef:
    return {
        "s3DestinationConfig": ...,
    }
Definition
class ExportEC2InstanceRecommendationsRequestRequestTypeDef(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 FilterTypeDef
  3. See ExportableInstanceFieldType
  4. See FileFormatType
  5. See RecommendationPreferencesTypeDef

ExportECSServiceRecommendationsRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ExportECSServiceRecommendationsRequestRequestTypeDef

def get_value() -> ExportECSServiceRecommendationsRequestRequestTypeDef:
    return {
        "s3DestinationConfig": ...,
    }
Definition
class ExportECSServiceRecommendationsRequestRequestTypeDef(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 ECSServiceRecommendationFilterTypeDef
  3. See ExportableECSServiceFieldType
  4. See FileFormatType

ExportAutoScalingGroupRecommendationsResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ExportAutoScalingGroupRecommendationsResponseTypeDef

def get_value() -> ExportAutoScalingGroupRecommendationsResponseTypeDef:
    return {
        "jobId": ...,
        "s3Destination": ...,
        "ResponseMetadata": ...,
    }
Definition
class ExportAutoScalingGroupRecommendationsResponseTypeDef(TypedDict):
    jobId: str,
    s3Destination: S3DestinationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See S3DestinationTypeDef
  2. See ResponseMetadataTypeDef

ExportDestinationTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ExportDestinationTypeDef

def get_value() -> ExportDestinationTypeDef:
    return {
        "s3": ...,
    }
Definition
class ExportDestinationTypeDef(TypedDict):
    s3: NotRequired[S3DestinationTypeDef],  # (1)
  1. See S3DestinationTypeDef

ExportEBSVolumeRecommendationsResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ExportEBSVolumeRecommendationsResponseTypeDef

def get_value() -> ExportEBSVolumeRecommendationsResponseTypeDef:
    return {
        "jobId": ...,
        "s3Destination": ...,
        "ResponseMetadata": ...,
    }
Definition
class ExportEBSVolumeRecommendationsResponseTypeDef(TypedDict):
    jobId: str,
    s3Destination: S3DestinationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See S3DestinationTypeDef
  2. See ResponseMetadataTypeDef

ExportEC2InstanceRecommendationsResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ExportEC2InstanceRecommendationsResponseTypeDef

def get_value() -> ExportEC2InstanceRecommendationsResponseTypeDef:
    return {
        "jobId": ...,
        "s3Destination": ...,
        "ResponseMetadata": ...,
    }
Definition
class ExportEC2InstanceRecommendationsResponseTypeDef(TypedDict):
    jobId: str,
    s3Destination: S3DestinationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See S3DestinationTypeDef
  2. See ResponseMetadataTypeDef

ExportECSServiceRecommendationsResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ExportECSServiceRecommendationsResponseTypeDef

def get_value() -> ExportECSServiceRecommendationsResponseTypeDef:
    return {
        "jobId": ...,
        "s3Destination": ...,
        "ResponseMetadata": ...,
    }
Definition
class ExportECSServiceRecommendationsResponseTypeDef(TypedDict):
    jobId: str,
    s3Destination: S3DestinationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See S3DestinationTypeDef
  2. See ResponseMetadataTypeDef

ExportLambdaFunctionRecommendationsResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ExportLambdaFunctionRecommendationsResponseTypeDef

def get_value() -> ExportLambdaFunctionRecommendationsResponseTypeDef:
    return {
        "jobId": ...,
        "s3Destination": ...,
        "ResponseMetadata": ...,
    }
Definition
class ExportLambdaFunctionRecommendationsResponseTypeDef(TypedDict):
    jobId: str,
    s3Destination: S3DestinationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See S3DestinationTypeDef
  2. See ResponseMetadataTypeDef

ExportLambdaFunctionRecommendationsRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ExportLambdaFunctionRecommendationsRequestRequestTypeDef

def get_value() -> ExportLambdaFunctionRecommendationsRequestRequestTypeDef:
    return {
        "s3DestinationConfig": ...,
    }
Definition
class ExportLambdaFunctionRecommendationsRequestRequestTypeDef(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 LambdaFunctionRecommendationFilterTypeDef
  3. See ExportableLambdaFunctionFieldType
  4. See FileFormatType

GetLambdaFunctionRecommendationsRequestGetLambdaFunctionRecommendationsPaginateTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetLambdaFunctionRecommendationsRequestGetLambdaFunctionRecommendationsPaginateTypeDef

def get_value() -> GetLambdaFunctionRecommendationsRequestGetLambdaFunctionRecommendationsPaginateTypeDef:
    return {
        "functionArns": ...,
    }
Definition
class GetLambdaFunctionRecommendationsRequestGetLambdaFunctionRecommendationsPaginateTypeDef(TypedDict):
    functionArns: NotRequired[Sequence[str]],
    accountIds: NotRequired[Sequence[str]],
    filters: NotRequired[Sequence[LambdaFunctionRecommendationFilterTypeDef]],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See LambdaFunctionRecommendationFilterTypeDef
  2. See PaginatorConfigTypeDef

GetLambdaFunctionRecommendationsRequestRequestTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetLambdaFunctionRecommendationsRequestRequestTypeDef

def get_value() -> GetLambdaFunctionRecommendationsRequestRequestTypeDef:
    return {
        "functionArns": ...,
    }
Definition
class GetLambdaFunctionRecommendationsRequestRequestTypeDef(TypedDict):
    functionArns: NotRequired[Sequence[str]],
    accountIds: NotRequired[Sequence[str]],
    filters: NotRequired[Sequence[LambdaFunctionRecommendationFilterTypeDef]],  # (1)
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See LambdaFunctionRecommendationFilterTypeDef

RecommendedOptionProjectedMetricTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import RecommendedOptionProjectedMetricTypeDef

def get_value() -> RecommendedOptionProjectedMetricTypeDef:
    return {
        "recommendedInstanceType": ...,
    }
Definition
class RecommendedOptionProjectedMetricTypeDef(TypedDict):
    recommendedInstanceType: NotRequired[str],
    rank: NotRequired[int],
    projectedMetrics: NotRequired[List[ProjectedMetricTypeDef]],  # (1)
  1. See ProjectedMetricTypeDef

SummaryTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import SummaryTypeDef

def get_value() -> SummaryTypeDef:
    return {
        "name": ...,
    }
Definition
class SummaryTypeDef(TypedDict):
    name: NotRequired[FindingType],  # (1)
    value: NotRequired[float],
    reasonCodeSummaries: NotRequired[List[ReasonCodeSummaryTypeDef]],  # (2)
  1. See FindingType
  2. See ReasonCodeSummaryTypeDef

ServiceConfigurationTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ServiceConfigurationTypeDef

def get_value() -> ServiceConfigurationTypeDef:
    return {
        "memory": ...,
    }
Definition
class ServiceConfigurationTypeDef(TypedDict):
    memory: NotRequired[int],
    cpu: NotRequired[int],
    containerConfigurations: NotRequired[List[ContainerConfigurationTypeDef]],  # (1)
    autoScalingConfiguration: NotRequired[AutoScalingConfigurationType],  # (2)
    taskDefinitionArn: NotRequired[str],
  1. See ContainerConfigurationTypeDef
  2. See AutoScalingConfigurationType

GetECSServiceRecommendationProjectedMetricsResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetECSServiceRecommendationProjectedMetricsResponseTypeDef

def get_value() -> GetECSServiceRecommendationProjectedMetricsResponseTypeDef:
    return {
        "recommendedOptionProjectedMetrics": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetECSServiceRecommendationProjectedMetricsResponseTypeDef(TypedDict):
    recommendedOptionProjectedMetrics: List[ECSServiceRecommendedOptionProjectedMetricTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ECSServiceRecommendedOptionProjectedMetricTypeDef
  2. See ResponseMetadataTypeDef

GetRecommendationPreferencesResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetRecommendationPreferencesResponseTypeDef

def get_value() -> GetRecommendationPreferencesResponseTypeDef:
    return {
        "nextToken": ...,
        "recommendationPreferencesDetails": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetRecommendationPreferencesResponseTypeDef(TypedDict):
    nextToken: str,
    recommendationPreferencesDetails: List[RecommendationPreferencesDetailTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See RecommendationPreferencesDetailTypeDef
  2. See ResponseMetadataTypeDef

AutoScalingGroupRecommendationOptionTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import AutoScalingGroupRecommendationOptionTypeDef

def get_value() -> AutoScalingGroupRecommendationOptionTypeDef:
    return {
        "configuration": ...,
    }
Definition
class AutoScalingGroupRecommendationOptionTypeDef(TypedDict):
    configuration: NotRequired[AutoScalingGroupConfigurationTypeDef],  # (1)
    projectedUtilizationMetrics: NotRequired[List[UtilizationMetricTypeDef]],  # (2)
    performanceRisk: NotRequired[float],
    rank: NotRequired[int],
    savingsOpportunity: NotRequired[SavingsOpportunityTypeDef],  # (3)
    migrationEffort: NotRequired[MigrationEffortType],  # (4)
  1. See AutoScalingGroupConfigurationTypeDef
  2. See UtilizationMetricTypeDef
  3. See SavingsOpportunityTypeDef
  4. See MigrationEffortType

ECSServiceRecommendationOptionTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ECSServiceRecommendationOptionTypeDef

def get_value() -> ECSServiceRecommendationOptionTypeDef:
    return {
        "memory": ...,
    }
Definition
class ECSServiceRecommendationOptionTypeDef(TypedDict):
    memory: NotRequired[int],
    cpu: NotRequired[int],
    savingsOpportunity: NotRequired[SavingsOpportunityTypeDef],  # (1)
    projectedUtilizationMetrics: NotRequired[List[ECSServiceProjectedUtilizationMetricTypeDef]],  # (2)
    containerRecommendations: NotRequired[List[ContainerRecommendationTypeDef]],  # (3)
  1. See SavingsOpportunityTypeDef
  2. See ECSServiceProjectedUtilizationMetricTypeDef
  3. See ContainerRecommendationTypeDef

InstanceRecommendationOptionTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import InstanceRecommendationOptionTypeDef

def get_value() -> InstanceRecommendationOptionTypeDef:
    return {
        "instanceType": ...,
    }
Definition
class InstanceRecommendationOptionTypeDef(TypedDict):
    instanceType: NotRequired[str],
    projectedUtilizationMetrics: NotRequired[List[UtilizationMetricTypeDef]],  # (1)
    platformDifferences: NotRequired[List[PlatformDifferenceType]],  # (2)
    performanceRisk: NotRequired[float],
    rank: NotRequired[int],
    savingsOpportunity: NotRequired[SavingsOpportunityTypeDef],  # (3)
    migrationEffort: NotRequired[MigrationEffortType],  # (4)
  1. See UtilizationMetricTypeDef
  2. See PlatformDifferenceType
  3. See SavingsOpportunityTypeDef
  4. See MigrationEffortType

LambdaFunctionMemoryRecommendationOptionTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import LambdaFunctionMemoryRecommendationOptionTypeDef

def get_value() -> LambdaFunctionMemoryRecommendationOptionTypeDef:
    return {
        "rank": ...,
    }
Definition
class LambdaFunctionMemoryRecommendationOptionTypeDef(TypedDict):
    rank: NotRequired[int],
    memorySize: NotRequired[int],
    projectedUtilizationMetrics: NotRequired[List[LambdaFunctionMemoryProjectedMetricTypeDef]],  # (1)
    savingsOpportunity: NotRequired[SavingsOpportunityTypeDef],  # (2)
  1. See LambdaFunctionMemoryProjectedMetricTypeDef
  2. See SavingsOpportunityTypeDef

VolumeRecommendationOptionTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import VolumeRecommendationOptionTypeDef

def get_value() -> VolumeRecommendationOptionTypeDef:
    return {
        "configuration": ...,
    }
Definition
class VolumeRecommendationOptionTypeDef(TypedDict):
    configuration: NotRequired[VolumeConfigurationTypeDef],  # (1)
    performanceRisk: NotRequired[float],
    rank: NotRequired[int],
    savingsOpportunity: NotRequired[SavingsOpportunityTypeDef],  # (2)
  1. See VolumeConfigurationTypeDef
  2. See SavingsOpportunityTypeDef

RecommendationExportJobTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import RecommendationExportJobTypeDef

def get_value() -> RecommendationExportJobTypeDef:
    return {
        "jobId": ...,
    }
Definition
class RecommendationExportJobTypeDef(TypedDict):
    jobId: NotRequired[str],
    destination: NotRequired[ExportDestinationTypeDef],  # (1)
    resourceType: NotRequired[ResourceTypeType],  # (2)
    status: NotRequired[JobStatusType],  # (3)
    creationTimestamp: NotRequired[datetime],
    lastUpdatedTimestamp: NotRequired[datetime],
    failureReason: NotRequired[str],
  1. See ExportDestinationTypeDef
  2. See ResourceTypeType
  3. See JobStatusType

GetEC2RecommendationProjectedMetricsResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetEC2RecommendationProjectedMetricsResponseTypeDef

def get_value() -> GetEC2RecommendationProjectedMetricsResponseTypeDef:
    return {
        "recommendedOptionProjectedMetrics": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetEC2RecommendationProjectedMetricsResponseTypeDef(TypedDict):
    recommendedOptionProjectedMetrics: List[RecommendedOptionProjectedMetricTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See RecommendedOptionProjectedMetricTypeDef
  2. See ResponseMetadataTypeDef

RecommendationSummaryTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import RecommendationSummaryTypeDef

def get_value() -> RecommendationSummaryTypeDef:
    return {
        "summaries": ...,
    }
Definition
class RecommendationSummaryTypeDef(TypedDict):
    summaries: NotRequired[List[SummaryTypeDef]],  # (1)
    recommendationResourceType: NotRequired[RecommendationSourceTypeType],  # (2)
    accountId: NotRequired[str],
    savingsOpportunity: NotRequired[SavingsOpportunityTypeDef],  # (3)
    currentPerformanceRiskRatings: NotRequired[CurrentPerformanceRiskRatingsTypeDef],  # (4)
  1. See SummaryTypeDef
  2. See RecommendationSourceTypeType
  3. See SavingsOpportunityTypeDef
  4. See CurrentPerformanceRiskRatingsTypeDef

AutoScalingGroupRecommendationTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import AutoScalingGroupRecommendationTypeDef

def get_value() -> AutoScalingGroupRecommendationTypeDef:
    return {
        "accountId": ...,
    }
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)
    recommendationOptions: NotRequired[List[AutoScalingGroupRecommendationOptionTypeDef]],  # (4)
    lastRefreshTimestamp: NotRequired[datetime],
    currentPerformanceRisk: NotRequired[CurrentPerformanceRiskType],  # (5)
    effectiveRecommendationPreferences: NotRequired[EffectiveRecommendationPreferencesTypeDef],  # (6)
    inferredWorkloadTypes: NotRequired[List[InferredWorkloadTypeType]],  # (7)
  1. See FindingType
  2. See UtilizationMetricTypeDef
  3. See AutoScalingGroupConfigurationTypeDef
  4. See AutoScalingGroupRecommendationOptionTypeDef
  5. See CurrentPerformanceRiskType
  6. See EffectiveRecommendationPreferencesTypeDef
  7. See InferredWorkloadTypeType

ECSServiceRecommendationTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import ECSServiceRecommendationTypeDef

def get_value() -> ECSServiceRecommendationTypeDef:
    return {
        "serviceArn": ...,
    }
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],
    finding: NotRequired[ECSServiceRecommendationFindingType],  # (4)
    findingReasonCodes: NotRequired[List[ECSServiceRecommendationFindingReasonCodeType]],  # (5)
    serviceRecommendationOptions: NotRequired[List[ECSServiceRecommendationOptionTypeDef]],  # (6)
    currentPerformanceRisk: NotRequired[CurrentPerformanceRiskType],  # (7)
  1. See ServiceConfigurationTypeDef
  2. See ECSServiceUtilizationMetricTypeDef
  3. See ECSServiceLaunchTypeType
  4. See ECSServiceRecommendationFindingType
  5. See ECSServiceRecommendationFindingReasonCodeType
  6. See ECSServiceRecommendationOptionTypeDef
  7. See CurrentPerformanceRiskType

InstanceRecommendationTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import InstanceRecommendationTypeDef

def get_value() -> InstanceRecommendationTypeDef:
    return {
        "instanceArn": ...,
    }
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],
    currentPerformanceRisk: NotRequired[CurrentPerformanceRiskType],  # (6)
    effectiveRecommendationPreferences: NotRequired[EffectiveRecommendationPreferencesTypeDef],  # (7)
    inferredWorkloadTypes: NotRequired[List[InferredWorkloadTypeType]],  # (8)
  1. See FindingType
  2. See InstanceRecommendationFindingReasonCodeType
  3. See