ComputeOptimizer module#
Index > ComputeOptimizer
Auto-generated documentation for ComputeOptimizer type annotations stubs module mypy-boto3-compute-optimizer.
How to install#
VSCode extension#
Add AWS Boto3
extension to your VSCode and run AWS boto3: Quick Start
command.
Click Modify
and select boto3 common
and ComputeOptimizer
.
From PyPI with pip#
Install boto3-stubs
for ComputeOptimizer
service.
# install with boto3 type annotations
python -m pip install 'boto3-stubs[compute-optimizer]'
# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'boto3-stubs-lite[compute-optimizer]'
# standalone installation
python -m pip install mypy-boto3-compute-optimizer
How to uninstall#
python -m pip uninstall -y mypy-boto3-compute-optimizer
Usage#
Code samples can be found in Examples.
ComputeOptimizerClient#
Type annotations and code completion for boto3.client("compute-optimizer")
as ComputeOptimizerClient
boto3 documentation
# ComputeOptimizerClient usage example
from boto3.session import Session
from mypy_boto3_compute_optimizer.client import ComputeOptimizerClient
def get_client() -> ComputeOptimizerClient:
return Session().client("compute-optimizer")
Paginators#
Type annotations and code completion for paginators
from boto3.client("compute-optimizer").get_paginator("...")
.
# DescribeRecommendationExportJobsPaginator usage example
from boto3.session import Session
from mypy_boto3_compute_optimizer.paginator import DescribeRecommendationExportJobsPaginator
def get_describe_recommendation_export_jobs_paginator() -> DescribeRecommendationExportJobsPaginator:
return Session().client("compute-optimizer").get_paginator("describe_recommendation_export_jobs"))
- DescribeRecommendationExportJobsPaginator
- GetEnrollmentStatusesForOrganizationPaginator
- GetLambdaFunctionRecommendationsPaginator
- GetRecommendationPreferencesPaginator
- GetRecommendationSummariesPaginator
Literals#
Type annotations for literals used in methods and schema.
# AutoScalingConfigurationType usage example
from mypy_boto3_compute_optimizer.literals import AutoScalingConfigurationType
def get_value() -> AutoScalingConfigurationType:
return "TargetTrackingScalingCpu"
- AutoScalingConfigurationType
- CpuVendorArchitectureType
- CurrencyType
- CurrentPerformanceRiskType
- CustomizableMetricHeadroomType
- CustomizableMetricNameType
- CustomizableMetricThresholdType
- DescribeRecommendationExportJobsPaginatorName
- EBSFilterNameType
- EBSFindingType
- EBSMetricNameType
- EBSSavingsEstimationModeSourceType
- ECSSavingsEstimationModeSourceType
- ECSServiceLaunchTypeType
- ECSServiceMetricNameType
- ECSServiceMetricStatisticType
- ECSServiceRecommendationFilterNameType
- ECSServiceRecommendationFindingReasonCodeType
- ECSServiceRecommendationFindingType
- EnhancedInfrastructureMetricsType
- EnrollmentFilterNameType
- ExportableAutoScalingGroupFieldType
- ExportableECSServiceFieldType
- ExportableInstanceFieldType
- ExportableLambdaFunctionFieldType
- ExportableLicenseFieldType
- ExportableRDSDBFieldType
- ExportableVolumeFieldType
- ExternalMetricStatusCodeType
- ExternalMetricsSourceType
- FileFormatType
- FilterNameType
- FindingReasonCodeType
- FindingType
- GetEnrollmentStatusesForOrganizationPaginatorName
- GetLambdaFunctionRecommendationsPaginatorName
- GetRecommendationPreferencesPaginatorName
- GetRecommendationSummariesPaginatorName
- IdleType
- InferredWorkloadTypeType
- InferredWorkloadTypesPreferenceType
- InstanceIdleType
- InstanceRecommendationFindingReasonCodeType
- InstanceSavingsEstimationModeSourceType
- InstanceStateType
- JobFilterNameType
- JobStatusType
- LambdaFunctionMemoryMetricNameType
- LambdaFunctionMemoryMetricStatisticType
- LambdaFunctionMetricNameType
- LambdaFunctionMetricStatisticType
- LambdaFunctionRecommendationFilterNameType
- LambdaFunctionRecommendationFindingReasonCodeType
- LambdaFunctionRecommendationFindingType
- LambdaSavingsEstimationModeSourceType
- LicenseEditionType
- LicenseFindingReasonCodeType
- LicenseFindingType
- LicenseModelType
- LicenseNameType
- LicenseRecommendationFilterNameType
- LookBackPeriodPreferenceType
- MetricNameType
- MetricSourceProviderType
- MetricStatisticType
- MigrationEffortType
- PlatformDifferenceType
- PreferredResourceNameType
- RDSDBMetricNameType
- RDSDBMetricStatisticType
- RDSDBRecommendationFilterNameType
- RDSInstanceFindingReasonCodeType
- RDSInstanceFindingType
- RDSSavingsEstimationModeSourceType
- RDSStorageFindingReasonCodeType
- RDSStorageFindingType
- RecommendationPreferenceNameType
- RecommendationSourceTypeType
- ResourceTypeType
- SavingsEstimationModeType
- ScopeNameType
- StatusType
- ComputeOptimizerServiceName
- ServiceName
- ResourceServiceName
- PaginatorName
- RegionName
Type definitions#
Type annotations for type definitions used in methods and schema.
- AccountEnrollmentStatusTypeDef
- AutoScalingGroupConfigurationTypeDef
- AutoScalingGroupEstimatedMonthlySavingsTypeDef
- UtilizationMetricTypeDef
- MemorySizeConfigurationTypeDef
- CurrentPerformanceRiskRatingsTypeDef
- CustomizableMetricParametersTypeDef
- DBStorageConfigurationTypeDef
- ScopeTypeDef
- JobFilterTypeDef
- PaginatorConfigTypeDef
- ResponseMetadataTypeDef
- EBSSavingsEstimationModeTypeDef
- EBSEstimatedMonthlySavingsTypeDef
- EBSFilterTypeDef
- EBSUtilizationMetricTypeDef
- ECSSavingsEstimationModeTypeDef
- ECSEstimatedMonthlySavingsTypeDef
- ECSServiceProjectedMetricTypeDef
- ECSServiceProjectedUtilizationMetricTypeDef
- ECSServiceRecommendationFilterTypeDef
- ECSServiceUtilizationMetricTypeDef
- TagTypeDef
- EffectivePreferredResourceTypeDef
- ExternalMetricsPreferenceTypeDef
- InstanceSavingsEstimationModeTypeDef
- EnrollmentFilterTypeDef
- EstimatedMonthlySavingsTypeDef
- FilterTypeDef
- RecommendationPreferencesTypeDef
- S3DestinationConfigTypeDef
- S3DestinationTypeDef
- LambdaFunctionRecommendationFilterTypeDef
- LicenseRecommendationFilterTypeDef
- RDSDBRecommendationFilterTypeDef
- ExternalMetricStatusTypeDef
- GetRecommendationErrorTypeDef
- TimestampTypeDef
- GetEffectiveRecommendationPreferencesRequestRequestTypeDef
- GetRecommendationSummariesRequestRequestTypeDef
- GpuTypeDef
- InstanceEstimatedMonthlySavingsTypeDef
- RecommendationSourceTypeDef
- LambdaSavingsEstimationModeTypeDef
- LambdaEstimatedMonthlySavingsTypeDef
- LambdaFunctionMemoryProjectedMetricTypeDef
- LambdaFunctionUtilizationMetricTypeDef
- MetricSourceTypeDef
- PreferredResourceTypeDef
- ProjectedMetricTypeDef
- RDSDBUtilizationMetricTypeDef
- RDSDatabaseProjectedMetricTypeDef
- RDSSavingsEstimationModeTypeDef
- RDSInstanceEstimatedMonthlySavingsTypeDef
- RDSStorageEstimatedMonthlySavingsTypeDef
- ReasonCodeSummaryTypeDef
- UpdateEnrollmentStatusRequestRequestTypeDef
- VolumeConfigurationTypeDef
- AutoScalingGroupSavingsOpportunityAfterDiscountsTypeDef
- ContainerConfigurationTypeDef
- ContainerRecommendationTypeDef
- UtilizationPreferenceTypeDef
- DeleteRecommendationPreferencesRequestRequestTypeDef
- GetRecommendationPreferencesRequestRequestTypeDef
- DescribeRecommendationExportJobsRequestRequestTypeDef
- DescribeRecommendationExportJobsRequestDescribeRecommendationExportJobsPaginateTypeDef
- GetRecommendationPreferencesRequestGetRecommendationPreferencesPaginateTypeDef
- GetRecommendationSummariesRequestGetRecommendationSummariesPaginateTypeDef
- GetEnrollmentStatusResponseTypeDef
- GetEnrollmentStatusesForOrganizationResponseTypeDef
- UpdateEnrollmentStatusResponseTypeDef
- EBSEffectiveRecommendationPreferencesTypeDef
- EBSSavingsOpportunityAfterDiscountsTypeDef
- GetEBSVolumeRecommendationsRequestRequestTypeDef
- ECSEffectiveRecommendationPreferencesTypeDef
- ECSSavingsOpportunityAfterDiscountsTypeDef
- ECSServiceRecommendedOptionProjectedMetricTypeDef
- GetECSServiceRecommendationsRequestRequestTypeDef
- GetEnrollmentStatusesForOrganizationRequestGetEnrollmentStatusesForOrganizationPaginateTypeDef
- GetEnrollmentStatusesForOrganizationRequestRequestTypeDef
- InferredWorkloadSavingTypeDef
- SavingsOpportunityTypeDef
- GetAutoScalingGroupRecommendationsRequestRequestTypeDef
- GetEC2InstanceRecommendationsRequestRequestTypeDef
- ExportAutoScalingGroupRecommendationsRequestRequestTypeDef
- ExportEBSVolumeRecommendationsRequestRequestTypeDef
- ExportEC2InstanceRecommendationsRequestRequestTypeDef
- ExportECSServiceRecommendationsRequestRequestTypeDef
- ExportAutoScalingGroupRecommendationsResponseTypeDef
- ExportDestinationTypeDef
- ExportEBSVolumeRecommendationsResponseTypeDef
- ExportEC2InstanceRecommendationsResponseTypeDef
- ExportECSServiceRecommendationsResponseTypeDef
- ExportLambdaFunctionRecommendationsResponseTypeDef
- ExportLicenseRecommendationsResponseTypeDef
- ExportRDSDatabaseRecommendationsResponseTypeDef
- ExportLambdaFunctionRecommendationsRequestRequestTypeDef
- GetLambdaFunctionRecommendationsRequestGetLambdaFunctionRecommendationsPaginateTypeDef
- GetLambdaFunctionRecommendationsRequestRequestTypeDef
- ExportLicenseRecommendationsRequestRequestTypeDef
- GetLicenseRecommendationsRequestRequestTypeDef
- ExportRDSDatabaseRecommendationsRequestRequestTypeDef
- GetRDSDatabaseRecommendationsRequestRequestTypeDef
- GetEC2RecommendationProjectedMetricsRequestRequestTypeDef
- GetECSServiceRecommendationProjectedMetricsRequestRequestTypeDef
- GetRDSDatabaseRecommendationProjectedMetricsRequestRequestTypeDef
- GpuInfoTypeDef
- InstanceSavingsOpportunityAfterDiscountsTypeDef
- LambdaEffectiveRecommendationPreferencesTypeDef
- LambdaSavingsOpportunityAfterDiscountsTypeDef
- LicenseConfigurationTypeDef
- RecommendedOptionProjectedMetricTypeDef
- RDSDatabaseRecommendedOptionProjectedMetricTypeDef
- RDSEffectiveRecommendationPreferencesTypeDef
- RDSInstanceSavingsOpportunityAfterDiscountsTypeDef
- RDSStorageSavingsOpportunityAfterDiscountsTypeDef
- SummaryTypeDef
- ServiceConfigurationTypeDef
- EffectiveRecommendationPreferencesTypeDef
- GetEffectiveRecommendationPreferencesResponseTypeDef
- PutRecommendationPreferencesRequestRequestTypeDef
- RecommendationPreferencesDetailTypeDef
- GetECSServiceRecommendationProjectedMetricsResponseTypeDef
- ECSServiceRecommendationOptionTypeDef
- LicenseRecommendationOptionTypeDef
- VolumeRecommendationOptionTypeDef
- RecommendationExportJobTypeDef
- AutoScalingGroupRecommendationOptionTypeDef
- InstanceRecommendationOptionTypeDef
- LambdaFunctionMemoryRecommendationOptionTypeDef
- GetEC2RecommendationProjectedMetricsResponseTypeDef
- GetRDSDatabaseRecommendationProjectedMetricsResponseTypeDef
- RDSDBInstanceRecommendationOptionTypeDef
- RDSDBStorageRecommendationOptionTypeDef
- RecommendationSummaryTypeDef
- GetRecommendationPreferencesResponseTypeDef
- ECSServiceRecommendationTypeDef
- LicenseRecommendationTypeDef
- VolumeRecommendationTypeDef
- DescribeRecommendationExportJobsResponseTypeDef
- AutoScalingGroupRecommendationTypeDef
- InstanceRecommendationTypeDef
- LambdaFunctionRecommendationTypeDef
- RDSDBRecommendationTypeDef
- GetRecommendationSummariesResponseTypeDef
- GetECSServiceRecommendationsResponseTypeDef
- GetLicenseRecommendationsResponseTypeDef
- GetEBSVolumeRecommendationsResponseTypeDef
- GetAutoScalingGroupRecommendationsResponseTypeDef
- GetEC2InstanceRecommendationsResponseTypeDef
- GetLambdaFunctionRecommendationsResponseTypeDef
- GetRDSDatabaseRecommendationsResponseTypeDef