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

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)
  1. See CpuVendorArchitectureType
  2. See EnhancedInfrastructureMetricsType
  3. See InferredWorkloadTypesPreferenceType

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

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

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

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

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

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)
  1. See ResourceTypeType
  2. See ScopeTypeDef
  3. See EnhancedInfrastructureMetricsType
  4. See InferredWorkloadTypesPreferenceType

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)
  1. See ScopeTypeDef
  2. See ResourceTypeType
  3. See EnhancedInfrastructureMetricsType
  4. See InferredWorkloadTypesPreferenceType

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

GetEffectiveRecommendationPreferencesResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetEffectiveRecommendationPreferencesResponseTypeDef

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

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

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

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

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

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

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

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

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 UtilizationMetricTypeDef
  4. See InstanceRecommendationOptionTypeDef
  5. See RecommendationSourceTypeDef
  6. See CurrentPerformanceRiskType
  7. See EffectiveRecommendationPreferencesTypeDef
  8. See InferredWorkloadTypeType

LambdaFunctionRecommendationTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import LambdaFunctionRecommendationTypeDef

def get_value() -> LambdaFunctionRecommendationTypeDef:
    return {
        "functionArn": ...,
    }
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],
    finding: NotRequired[LambdaFunctionRecommendationFindingType],  # (2)
    findingReasonCodes: NotRequired[List[LambdaFunctionRecommendationFindingReasonCodeType]],  # (3)
    memorySizeRecommendationOptions: NotRequired[List[LambdaFunctionMemoryRecommendationOptionTypeDef]],  # (4)
    currentPerformanceRisk: NotRequired[CurrentPerformanceRiskType],  # (5)
  1. See LambdaFunctionUtilizationMetricTypeDef
  2. See LambdaFunctionRecommendationFindingType
  3. See LambdaFunctionRecommendationFindingReasonCodeType
  4. See LambdaFunctionMemoryRecommendationOptionTypeDef
  5. See CurrentPerformanceRiskType

VolumeRecommendationTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import VolumeRecommendationTypeDef

def get_value() -> VolumeRecommendationTypeDef:
    return {
        "volumeArn": ...,
    }
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],
    currentPerformanceRisk: NotRequired[CurrentPerformanceRiskType],  # (5)
  1. See VolumeConfigurationTypeDef
  2. See EBSFindingType
  3. See EBSUtilizationMetricTypeDef
  4. See VolumeRecommendationOptionTypeDef
  5. See CurrentPerformanceRiskType

DescribeRecommendationExportJobsResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import DescribeRecommendationExportJobsResponseTypeDef

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

GetRecommendationSummariesResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetRecommendationSummariesResponseTypeDef

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

GetAutoScalingGroupRecommendationsResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetAutoScalingGroupRecommendationsResponseTypeDef

def get_value() -> GetAutoScalingGroupRecommendationsResponseTypeDef:
    return {
        "nextToken": ...,
        "autoScalingGroupRecommendations": ...,
        "errors": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetAutoScalingGroupRecommendationsResponseTypeDef(TypedDict):
    nextToken: str,
    autoScalingGroupRecommendations: List[AutoScalingGroupRecommendationTypeDef],  # (1)
    errors: List[GetRecommendationErrorTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See AutoScalingGroupRecommendationTypeDef
  2. See GetRecommendationErrorTypeDef
  3. See ResponseMetadataTypeDef

GetEC2InstanceRecommendationsResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetEC2InstanceRecommendationsResponseTypeDef

def get_value() -> GetEC2InstanceRecommendationsResponseTypeDef:
    return {
        "nextToken": ...,
        "instanceRecommendations": ...,
        "errors": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetEC2InstanceRecommendationsResponseTypeDef(TypedDict):
    nextToken: str,
    instanceRecommendations: List[InstanceRecommendationTypeDef],  # (1)
    errors: List[GetRecommendationErrorTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See InstanceRecommendationTypeDef
  2. See GetRecommendationErrorTypeDef
  3. See ResponseMetadataTypeDef

GetLambdaFunctionRecommendationsResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetLambdaFunctionRecommendationsResponseTypeDef

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

GetEBSVolumeRecommendationsResponseTypeDef

Usage Example
from mypy_boto3_compute_optimizer.type_defs import GetEBSVolumeRecommendationsResponseTypeDef

def get_value() -> GetEBSVolumeRecommendationsResponseTypeDef:
    return {
        "nextToken": ...,
        "volumeRecommendations": ...,
        "errors": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetEBSVolumeRecommendationsResponseTypeDef(TypedDict):
    nextToken: str,
    volumeRecommendations: List[VolumeRecommendationTypeDef],  # (1)
    errors: List[GetRecommendationErrorTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See VolumeRecommendationTypeDef
  2. See GetRecommendationErrorTypeDef
  3. See ResponseMetadataTypeDef