Typed dictionaries
Index > ComputeOptimizer > Typed dictionaries
Auto-generated documentation for ComputeOptimizer type annotations stubs module types-aiobotocore-compute-optimizer.
AccountEnrollmentStatusTypeDef
Usage Example
from types_aiobotocore_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],
- See StatusType
AutoScalingGroupConfigurationTypeDef
Usage Example
from types_aiobotocore_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 types_aiobotocore_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],
- See MetricNameType
- See MetricStatisticType
EffectiveRecommendationPreferencesTypeDef
Usage Example
from types_aiobotocore_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)
- See CpuVendorArchitectureType
- See EnhancedInfrastructureMetricsType
- See InferredWorkloadTypesPreferenceType
CurrentPerformanceRiskRatingsTypeDef
Usage Example
from types_aiobotocore_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 types_aiobotocore_compute_optimizer.type_defs import ScopeTypeDef
def get_value() -> ScopeTypeDef:
return {
"name": ...,
}
Definition
class ScopeTypeDef(TypedDict):
name: NotRequired[ScopeNameType], # (1)
value: NotRequired[str],
- See ScopeNameType
JobFilterTypeDef
Usage Example
from types_aiobotocore_compute_optimizer.type_defs import JobFilterTypeDef
def get_value() -> JobFilterTypeDef:
return {
"name": ...,
}
Definition
class JobFilterTypeDef(TypedDict):
name: NotRequired[JobFilterNameType], # (1)
values: NotRequired[Sequence[str]],
ResponseMetadataTypeDef
Usage Example
from types_aiobotocore_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 types_aiobotocore_compute_optimizer.type_defs import EBSFilterTypeDef
def get_value() -> EBSFilterTypeDef:
return {
"name": ...,
}
Definition
class EBSFilterTypeDef(TypedDict):
name: NotRequired[EBSFilterNameType], # (1)
values: NotRequired[Sequence[str]],
EBSUtilizationMetricTypeDef
Usage Example
from types_aiobotocore_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],
- See EBSMetricNameType
- See MetricStatisticType
EnrollmentFilterTypeDef
Usage Example
from types_aiobotocore_compute_optimizer.type_defs import EnrollmentFilterTypeDef
def get_value() -> EnrollmentFilterTypeDef:
return {
"name": ...,
}
Definition
class EnrollmentFilterTypeDef(TypedDict):
name: NotRequired[EnrollmentFilterNameType], # (1)
values: NotRequired[Sequence[str]],
EstimatedMonthlySavingsTypeDef
Usage Example
from types_aiobotocore_compute_optimizer.type_defs import EstimatedMonthlySavingsTypeDef
def get_value() -> EstimatedMonthlySavingsTypeDef:
return {
"currency": ...,
}
Definition
class EstimatedMonthlySavingsTypeDef(TypedDict):
currency: NotRequired[CurrencyType], # (1)
value: NotRequired[float],
- See CurrencyType
FilterTypeDef
Usage Example
from types_aiobotocore_compute_optimizer.type_defs import FilterTypeDef
def get_value() -> FilterTypeDef:
return {
"name": ...,
}
Definition
class FilterTypeDef(TypedDict):
name: NotRequired[FilterNameType], # (1)
values: NotRequired[Sequence[str]],
- See FilterNameType
RecommendationPreferencesTypeDef
Usage Example
from types_aiobotocore_compute_optimizer.type_defs import RecommendationPreferencesTypeDef
def get_value() -> RecommendationPreferencesTypeDef:
return {
"cpuVendorArchitectures": ...,
}
Definition
class RecommendationPreferencesTypeDef(TypedDict):
cpuVendorArchitectures: NotRequired[Sequence[CpuVendorArchitectureType]], # (1)
S3DestinationConfigTypeDef
Usage Example
from types_aiobotocore_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 types_aiobotocore_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 types_aiobotocore_compute_optimizer.type_defs import LambdaFunctionRecommendationFilterTypeDef
def get_value() -> LambdaFunctionRecommendationFilterTypeDef:
return {
"name": ...,
}
Definition
class LambdaFunctionRecommendationFilterTypeDef(TypedDict):
name: NotRequired[LambdaFunctionRecommendationFilterNameType], # (1)
values: NotRequired[Sequence[str]],
GetRecommendationErrorTypeDef
Usage Example
from types_aiobotocore_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 types_aiobotocore_compute_optimizer.type_defs import GetEffectiveRecommendationPreferencesRequestRequestTypeDef
def get_value() -> GetEffectiveRecommendationPreferencesRequestRequestTypeDef:
return {
"resourceArn": ...,
}
Definition
class GetEffectiveRecommendationPreferencesRequestRequestTypeDef(TypedDict):
resourceArn: str,
GetRecommendationSummariesRequestRequestTypeDef
Usage Example
from types_aiobotocore_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 types_aiobotocore_compute_optimizer.type_defs import RecommendationSourceTypeDef
def get_value() -> RecommendationSourceTypeDef:
return {
"recommendationSourceArn": ...,
}
Definition
class RecommendationSourceTypeDef(TypedDict):
recommendationSourceArn: NotRequired[str],
recommendationSourceType: NotRequired[RecommendationSourceTypeType], # (1)
LambdaFunctionMemoryProjectedMetricTypeDef
Usage Example
from types_aiobotocore_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],
LambdaFunctionUtilizationMetricTypeDef
Usage Example
from types_aiobotocore_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],
ProjectedMetricTypeDef
Usage Example
from types_aiobotocore_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]],
- See MetricNameType
ReasonCodeSummaryTypeDef
Usage Example
from types_aiobotocore_compute_optimizer.type_defs import ReasonCodeSummaryTypeDef
def get_value() -> ReasonCodeSummaryTypeDef:
return {
"name": ...,
}
Definition
class ReasonCodeSummaryTypeDef(TypedDict):
name: NotRequired[FindingReasonCodeType], # (1)
value: NotRequired[float],
UpdateEnrollmentStatusRequestRequestTypeDef
Usage Example
from types_aiobotocore_compute_optimizer.type_defs import UpdateEnrollmentStatusRequestRequestTypeDef
def get_value() -> UpdateEnrollmentStatusRequestRequestTypeDef:
return {
"status": ...,
}
Definition
class UpdateEnrollmentStatusRequestRequestTypeDef(TypedDict):
status: StatusType, # (1)
includeMemberAccounts: NotRequired[bool],
- See StatusType
VolumeConfigurationTypeDef
Usage Example
from types_aiobotocore_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 types_aiobotocore_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)
GetRecommendationPreferencesRequestRequestTypeDef
Usage Example
from types_aiobotocore_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],
- See ResourceTypeType
- See ScopeTypeDef
PutRecommendationPreferencesRequestRequestTypeDef
Usage Example
from types_aiobotocore_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)
- See ResourceTypeType
- See ScopeTypeDef
- See EnhancedInfrastructureMetricsType
- See InferredWorkloadTypesPreferenceType
RecommendationPreferencesDetailTypeDef
Usage Example
from types_aiobotocore_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)
- See ScopeTypeDef
- See ResourceTypeType
- See EnhancedInfrastructureMetricsType
- See InferredWorkloadTypesPreferenceType
DescribeRecommendationExportJobsRequestRequestTypeDef
Usage Example
from types_aiobotocore_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],
- See JobFilterTypeDef
GetEffectiveRecommendationPreferencesResponseTypeDef
Usage Example
from types_aiobotocore_compute_optimizer.type_defs import GetEffectiveRecommendationPreferencesResponseTypeDef
def get_value() -> GetEffectiveRecommendationPreferencesResponseTypeDef:
return {
"enhancedInfrastructureMetrics": ...,
"ResponseMetadata": ...,
}
Definition
class GetEffectiveRecommendationPreferencesResponseTypeDef(TypedDict):
enhancedInfrastructureMetrics: EnhancedInfrastructureMetricsType, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
GetEnrollmentStatusResponseTypeDef
Usage Example
from types_aiobotocore_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)
- See StatusType
- See ResponseMetadataTypeDef
GetEnrollmentStatusesForOrganizationResponseTypeDef
Usage Example
from types_aiobotocore_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)
UpdateEnrollmentStatusResponseTypeDef
Usage Example
from types_aiobotocore_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)
- See StatusType
- See ResponseMetadataTypeDef
GetEBSVolumeRecommendationsRequestRequestTypeDef
Usage Example
from types_aiobotocore_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]],
- See EBSFilterTypeDef
GetEnrollmentStatusesForOrganizationRequestRequestTypeDef
Usage Example
from types_aiobotocore_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],
SavingsOpportunityTypeDef
Usage Example
from types_aiobotocore_compute_optimizer.type_defs import SavingsOpportunityTypeDef
def get_value() -> SavingsOpportunityTypeDef:
return {
"savingsOpportunityPercentage": ...,
}
Definition
class SavingsOpportunityTypeDef(TypedDict):
savingsOpportunityPercentage: NotRequired[float],
estimatedMonthlySavings: NotRequired[EstimatedMonthlySavingsTypeDef], # (1)
GetAutoScalingGroupRecommendationsRequestRequestTypeDef
Usage Example
from types_aiobotocore_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)
GetEC2InstanceRecommendationsRequestRequestTypeDef
Usage Example
from types_aiobotocore_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)
GetEC2RecommendationProjectedMetricsRequestRequestTypeDef
Usage Example
from types_aiobotocore_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)
ExportAutoScalingGroupRecommendationsRequestRequestTypeDef
Usage Example
from types_aiobotocore_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)
- See S3DestinationConfigTypeDef
- See FilterTypeDef
- See ExportableAutoScalingGroupFieldType
- See FileFormatType
- See RecommendationPreferencesTypeDef
ExportEBSVolumeRecommendationsRequestRequestTypeDef
Usage Example
from types_aiobotocore_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],
- See S3DestinationConfigTypeDef
- See EBSFilterTypeDef
- See ExportableVolumeFieldType
- See FileFormatType
ExportEC2InstanceRecommendationsRequestRequestTypeDef
Usage Example
from types_aiobotocore_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)
- See S3DestinationConfigTypeDef
- See FilterTypeDef
- See ExportableInstanceFieldType
- See FileFormatType
- See RecommendationPreferencesTypeDef
ExportAutoScalingGroupRecommendationsResponseTypeDef
Usage Example
from types_aiobotocore_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)
ExportDestinationTypeDef
Usage Example
from types_aiobotocore_compute_optimizer.type_defs import ExportDestinationTypeDef
def get_value() -> ExportDestinationTypeDef:
return {
"s3": ...,
}
ExportEBSVolumeRecommendationsResponseTypeDef
Usage Example
from types_aiobotocore_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)
ExportEC2InstanceRecommendationsResponseTypeDef
Usage Example
from types_aiobotocore_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)
ExportLambdaFunctionRecommendationsResponseTypeDef
Usage Example
from types_aiobotocore_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)
ExportLambdaFunctionRecommendationsRequestRequestTypeDef
Usage Example
from types_aiobotocore_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],
- See S3DestinationConfigTypeDef
- See LambdaFunctionRecommendationFilterTypeDef
- See ExportableLambdaFunctionFieldType
- See FileFormatType
GetLambdaFunctionRecommendationsRequestRequestTypeDef
Usage Example
from types_aiobotocore_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],
RecommendedOptionProjectedMetricTypeDef
Usage Example
from types_aiobotocore_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)
SummaryTypeDef
Usage Example
from types_aiobotocore_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)
- See FindingType
- See ReasonCodeSummaryTypeDef
GetRecommendationPreferencesResponseTypeDef
Usage Example
from types_aiobotocore_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)
AutoScalingGroupRecommendationOptionTypeDef
Usage Example
from types_aiobotocore_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)
- See AutoScalingGroupConfigurationTypeDef
- See UtilizationMetricTypeDef
- See SavingsOpportunityTypeDef
- See MigrationEffortType
InstanceRecommendationOptionTypeDef
Usage Example
from types_aiobotocore_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)
- See UtilizationMetricTypeDef
- See PlatformDifferenceType
- See SavingsOpportunityTypeDef
- See MigrationEffortType
LambdaFunctionMemoryRecommendationOptionTypeDef
Usage Example
from types_aiobotocore_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)
VolumeRecommendationOptionTypeDef
Usage Example
from types_aiobotocore_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)
RecommendationExportJobTypeDef
Usage Example
from types_aiobotocore_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],
- See ExportDestinationTypeDef
- See ResourceTypeType
- See JobStatusType
GetEC2RecommendationProjectedMetricsResponseTypeDef
Usage Example
from types_aiobotocore_compute_optimizer.type_defs import GetEC2RecommendationProjectedMetricsResponseTypeDef
def get_value() -> GetEC2RecommendationProjectedMetricsResponseTypeDef:
return {
"recommendedOptionProjectedMetrics": ...,
"ResponseMetadata": ...,
}
Definition
class GetEC2RecommendationProjectedMetricsResponseTypeDef(TypedDict):
recommendedOptionProjectedMetrics: List[RecommendedOptionProjectedMetricTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
RecommendationSummaryTypeDef
Usage Example
from types_aiobotocore_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)
- See SummaryTypeDef
- See RecommendationSourceTypeType
- See SavingsOpportunityTypeDef
- See CurrentPerformanceRiskRatingsTypeDef
AutoScalingGroupRecommendationTypeDef
Usage Example
from types_aiobotocore_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)
- See FindingType
- See UtilizationMetricTypeDef
- See AutoScalingGroupConfigurationTypeDef
- See AutoScalingGroupRecommendationOptionTypeDef
- See CurrentPerformanceRiskType
- See EffectiveRecommendationPreferencesTypeDef
- See InferredWorkloadTypeType
InstanceRecommendationTypeDef
Usage Example
from types_aiobotocore_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)
- See FindingType
- See InstanceRecommendationFindingReasonCodeType
- See UtilizationMetricTypeDef
- See InstanceRecommendationOptionTypeDef
- See RecommendationSourceTypeDef
- See CurrentPerformanceRiskType
- See EffectiveRecommendationPreferencesTypeDef
- See InferredWorkloadTypeType
LambdaFunctionRecommendationTypeDef
Usage Example
from types_aiobotocore_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)
- See LambdaFunctionUtilizationMetricTypeDef
- See LambdaFunctionRecommendationFindingType
- See LambdaFunctionRecommendationFindingReasonCodeType
- See LambdaFunctionMemoryRecommendationOptionTypeDef
- See CurrentPerformanceRiskType
VolumeRecommendationTypeDef
Usage Example
from types_aiobotocore_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)
- See VolumeConfigurationTypeDef
- See EBSFindingType
- See EBSUtilizationMetricTypeDef
- See VolumeRecommendationOptionTypeDef
- See CurrentPerformanceRiskType
DescribeRecommendationExportJobsResponseTypeDef
Usage Example
from types_aiobotocore_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)
GetRecommendationSummariesResponseTypeDef
Usage Example
from types_aiobotocore_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)
GetAutoScalingGroupRecommendationsResponseTypeDef
Usage Example
from types_aiobotocore_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)
- See AutoScalingGroupRecommendationTypeDef
- See GetRecommendationErrorTypeDef
- See ResponseMetadataTypeDef
GetEC2InstanceRecommendationsResponseTypeDef
Usage Example
from types_aiobotocore_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)
GetLambdaFunctionRecommendationsResponseTypeDef
Usage Example
from types_aiobotocore_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)
GetEBSVolumeRecommendationsResponseTypeDef
Usage Example
from types_aiobotocore_compute_optimizer.type_defs import GetEBSVolumeRecommendationsResponseTypeDef
def get_value() -> GetEBSVolumeRecommendationsResponseTypeDef:
return {
"nextToken": ...,
"volumeRecommendations": ...,
"errors": ...,
"ResponseMetadata": ...,
}