ComputeOptimizerClient#
Index > ComputeOptimizer > ComputeOptimizerClient
Auto-generated documentation for ComputeOptimizer type annotations stubs module mypy-boto3-compute-optimizer.
ComputeOptimizerClient#
Type annotations and code completion for boto3.client("compute-optimizer")
.
boto3 documentation
# ComputeOptimizerClient usage example
from boto3.session import Session
from mypy_boto3_compute_optimizer.client import ComputeOptimizerClient
def get_compute-optimizer_client() -> ComputeOptimizerClient:
return Session().client("compute-optimizer")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("compute-optimizer").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("compute-optimizer")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.InternalServerException,
client.exceptions.InvalidParameterValueException,
client.exceptions.LimitExceededException,
client.exceptions.MissingAuthenticationToken,
client.exceptions.OptInRequiredException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceUnavailableException,
client.exceptions.ThrottlingException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_compute_optimizer.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
can_paginate#
Type annotations and code completion for boto3.client("compute-optimizer").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
generate_presigned_url#
Type annotations and code completion for boto3.client("compute-optimizer").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
delete_recommendation_preferences#
Deletes a recommendation preference, such as enhanced infrastructure metrics.
Type annotations and code completion for boto3.client("compute-optimizer").delete_recommendation_preferences
method.
boto3 documentation
# delete_recommendation_preferences method definition
def delete_recommendation_preferences(
self,
*,
resourceType: ResourceTypeType, # (1)
recommendationPreferenceNames: Sequence[RecommendationPreferenceNameType], # (2)
scope: ScopeTypeDef = ..., # (3)
) -> dict[str, Any]:
...
# delete_recommendation_preferences method usage example with argument unpacking
kwargs: DeleteRecommendationPreferencesRequestRequestTypeDef = { # (1)
"resourceType": ...,
"recommendationPreferenceNames": ...,
}
parent.delete_recommendation_preferences(**kwargs)
describe_recommendation_export_jobs#
Describes recommendation export jobs created in the last seven days.
Type annotations and code completion for boto3.client("compute-optimizer").describe_recommendation_export_jobs
method.
boto3 documentation
# describe_recommendation_export_jobs method definition
def describe_recommendation_export_jobs(
self,
*,
jobIds: Sequence[str] = ...,
filters: Sequence[JobFilterTypeDef] = ..., # (1)
nextToken: str = ...,
maxResults: int = ...,
) -> DescribeRecommendationExportJobsResponseTypeDef: # (2)
...
# describe_recommendation_export_jobs method usage example with argument unpacking
kwargs: DescribeRecommendationExportJobsRequestRequestTypeDef = { # (1)
"jobIds": ...,
}
parent.describe_recommendation_export_jobs(**kwargs)
export_auto_scaling_group_recommendations#
Exports optimization recommendations for Auto Scaling groups.
Type annotations and code completion for boto3.client("compute-optimizer").export_auto_scaling_group_recommendations
method.
boto3 documentation
# export_auto_scaling_group_recommendations method definition
def export_auto_scaling_group_recommendations(
self,
*,
s3DestinationConfig: S3DestinationConfigTypeDef, # (1)
accountIds: Sequence[str] = ...,
filters: Sequence[FilterTypeDef] = ..., # (2)
fieldsToExport: Sequence[ExportableAutoScalingGroupFieldType] = ..., # (3)
fileFormat: FileFormatType = ..., # (4)
includeMemberAccounts: bool = ...,
recommendationPreferences: RecommendationPreferencesTypeDef = ..., # (5)
) -> ExportAutoScalingGroupRecommendationsResponseTypeDef: # (6)
...
- See S3DestinationConfigTypeDef
- See FilterTypeDef
- See ExportableAutoScalingGroupFieldType
- See FileFormatType
- See RecommendationPreferencesTypeDef
- See ExportAutoScalingGroupRecommendationsResponseTypeDef
# export_auto_scaling_group_recommendations method usage example with argument unpacking
kwargs: ExportAutoScalingGroupRecommendationsRequestRequestTypeDef = { # (1)
"s3DestinationConfig": ...,
}
parent.export_auto_scaling_group_recommendations(**kwargs)
export_ebs_volume_recommendations#
Exports optimization recommendations for Amazon EBS volumes.
Type annotations and code completion for boto3.client("compute-optimizer").export_ebs_volume_recommendations
method.
boto3 documentation
# export_ebs_volume_recommendations method definition
def export_ebs_volume_recommendations(
self,
*,
s3DestinationConfig: S3DestinationConfigTypeDef, # (1)
accountIds: Sequence[str] = ...,
filters: Sequence[EBSFilterTypeDef] = ..., # (2)
fieldsToExport: Sequence[ExportableVolumeFieldType] = ..., # (3)
fileFormat: FileFormatType = ..., # (4)
includeMemberAccounts: bool = ...,
) -> ExportEBSVolumeRecommendationsResponseTypeDef: # (5)
...
- See S3DestinationConfigTypeDef
- See EBSFilterTypeDef
- See ExportableVolumeFieldType
- See FileFormatType
- See ExportEBSVolumeRecommendationsResponseTypeDef
# export_ebs_volume_recommendations method usage example with argument unpacking
kwargs: ExportEBSVolumeRecommendationsRequestRequestTypeDef = { # (1)
"s3DestinationConfig": ...,
}
parent.export_ebs_volume_recommendations(**kwargs)
export_ec2_instance_recommendations#
Exports optimization recommendations for Amazon EC2 instances.
Type annotations and code completion for boto3.client("compute-optimizer").export_ec2_instance_recommendations
method.
boto3 documentation
# export_ec2_instance_recommendations method definition
def export_ec2_instance_recommendations(
self,
*,
s3DestinationConfig: S3DestinationConfigTypeDef, # (1)
accountIds: Sequence[str] = ...,
filters: Sequence[FilterTypeDef] = ..., # (2)
fieldsToExport: Sequence[ExportableInstanceFieldType] = ..., # (3)
fileFormat: FileFormatType = ..., # (4)
includeMemberAccounts: bool = ...,
recommendationPreferences: RecommendationPreferencesTypeDef = ..., # (5)
) -> ExportEC2InstanceRecommendationsResponseTypeDef: # (6)
...
- See S3DestinationConfigTypeDef
- See FilterTypeDef
- See ExportableInstanceFieldType
- See FileFormatType
- See RecommendationPreferencesTypeDef
- See ExportEC2InstanceRecommendationsResponseTypeDef
# export_ec2_instance_recommendations method usage example with argument unpacking
kwargs: ExportEC2InstanceRecommendationsRequestRequestTypeDef = { # (1)
"s3DestinationConfig": ...,
}
parent.export_ec2_instance_recommendations(**kwargs)
export_ecs_service_recommendations#
Exports optimization recommendations for Amazon ECS services on Fargate.
Type annotations and code completion for boto3.client("compute-optimizer").export_ecs_service_recommendations
method.
boto3 documentation
# export_ecs_service_recommendations method definition
def export_ecs_service_recommendations(
self,
*,
s3DestinationConfig: S3DestinationConfigTypeDef, # (1)
accountIds: Sequence[str] = ...,
filters: Sequence[ECSServiceRecommendationFilterTypeDef] = ..., # (2)
fieldsToExport: Sequence[ExportableECSServiceFieldType] = ..., # (3)
fileFormat: FileFormatType = ..., # (4)
includeMemberAccounts: bool = ...,
) -> ExportECSServiceRecommendationsResponseTypeDef: # (5)
...
- See S3DestinationConfigTypeDef
- See ECSServiceRecommendationFilterTypeDef
- See ExportableECSServiceFieldType
- See FileFormatType
- See ExportECSServiceRecommendationsResponseTypeDef
# export_ecs_service_recommendations method usage example with argument unpacking
kwargs: ExportECSServiceRecommendationsRequestRequestTypeDef = { # (1)
"s3DestinationConfig": ...,
}
parent.export_ecs_service_recommendations(**kwargs)
export_idle_recommendations#
Export optimization recommendations for your idle resources.
Type annotations and code completion for boto3.client("compute-optimizer").export_idle_recommendations
method.
boto3 documentation
# export_idle_recommendations method definition
def export_idle_recommendations(
self,
*,
s3DestinationConfig: S3DestinationConfigTypeDef, # (1)
accountIds: Sequence[str] = ...,
filters: Sequence[IdleRecommendationFilterTypeDef] = ..., # (2)
fieldsToExport: Sequence[ExportableIdleFieldType] = ..., # (3)
fileFormat: FileFormatType = ..., # (4)
includeMemberAccounts: bool = ...,
) -> ExportIdleRecommendationsResponseTypeDef: # (5)
...
- See S3DestinationConfigTypeDef
- See IdleRecommendationFilterTypeDef
- See ExportableIdleFieldType
- See FileFormatType
- See ExportIdleRecommendationsResponseTypeDef
# export_idle_recommendations method usage example with argument unpacking
kwargs: ExportIdleRecommendationsRequestRequestTypeDef = { # (1)
"s3DestinationConfig": ...,
}
parent.export_idle_recommendations(**kwargs)
export_lambda_function_recommendations#
Exports optimization recommendations for Lambda functions.
Type annotations and code completion for boto3.client("compute-optimizer").export_lambda_function_recommendations
method.
boto3 documentation
# export_lambda_function_recommendations method definition
def export_lambda_function_recommendations(
self,
*,
s3DestinationConfig: S3DestinationConfigTypeDef, # (1)
accountIds: Sequence[str] = ...,
filters: Sequence[LambdaFunctionRecommendationFilterTypeDef] = ..., # (2)
fieldsToExport: Sequence[ExportableLambdaFunctionFieldType] = ..., # (3)
fileFormat: FileFormatType = ..., # (4)
includeMemberAccounts: bool = ...,
) -> ExportLambdaFunctionRecommendationsResponseTypeDef: # (5)
...
- See S3DestinationConfigTypeDef
- See LambdaFunctionRecommendationFilterTypeDef
- See ExportableLambdaFunctionFieldType
- See FileFormatType
- See ExportLambdaFunctionRecommendationsResponseTypeDef
# export_lambda_function_recommendations method usage example with argument unpacking
kwargs: ExportLambdaFunctionRecommendationsRequestRequestTypeDef = { # (1)
"s3DestinationConfig": ...,
}
parent.export_lambda_function_recommendations(**kwargs)
export_license_recommendations#
Export optimization recommendations for your licenses.
Type annotations and code completion for boto3.client("compute-optimizer").export_license_recommendations
method.
boto3 documentation
# export_license_recommendations method definition
def export_license_recommendations(
self,
*,
s3DestinationConfig: S3DestinationConfigTypeDef, # (1)
accountIds: Sequence[str] = ...,
filters: Sequence[LicenseRecommendationFilterTypeDef] = ..., # (2)
fieldsToExport: Sequence[ExportableLicenseFieldType] = ..., # (3)
fileFormat: FileFormatType = ..., # (4)
includeMemberAccounts: bool = ...,
) -> ExportLicenseRecommendationsResponseTypeDef: # (5)
...
- See S3DestinationConfigTypeDef
- See LicenseRecommendationFilterTypeDef
- See ExportableLicenseFieldType
- See FileFormatType
- See ExportLicenseRecommendationsResponseTypeDef
# export_license_recommendations method usage example with argument unpacking
kwargs: ExportLicenseRecommendationsRequestRequestTypeDef = { # (1)
"s3DestinationConfig": ...,
}
parent.export_license_recommendations(**kwargs)
export_rds_database_recommendations#
Export optimization recommendations for your Amazon Relational Database Service (Amazon RDS).
Type annotations and code completion for boto3.client("compute-optimizer").export_rds_database_recommendations
method.
boto3 documentation
# export_rds_database_recommendations method definition
def export_rds_database_recommendations(
self,
*,
s3DestinationConfig: S3DestinationConfigTypeDef, # (1)
accountIds: Sequence[str] = ...,
filters: Sequence[RDSDBRecommendationFilterTypeDef] = ..., # (2)
fieldsToExport: Sequence[ExportableRDSDBFieldType] = ..., # (3)
fileFormat: FileFormatType = ..., # (4)
includeMemberAccounts: bool = ...,
recommendationPreferences: RecommendationPreferencesTypeDef = ..., # (5)
) -> ExportRDSDatabaseRecommendationsResponseTypeDef: # (6)
...
- See S3DestinationConfigTypeDef
- See RDSDBRecommendationFilterTypeDef
- See ExportableRDSDBFieldType
- See FileFormatType
- See RecommendationPreferencesTypeDef
- See ExportRDSDatabaseRecommendationsResponseTypeDef
# export_rds_database_recommendations method usage example with argument unpacking
kwargs: ExportRDSDatabaseRecommendationsRequestRequestTypeDef = { # (1)
"s3DestinationConfig": ...,
}
parent.export_rds_database_recommendations(**kwargs)
get_auto_scaling_group_recommendations#
Returns Auto Scaling group recommendations.
Type annotations and code completion for boto3.client("compute-optimizer").get_auto_scaling_group_recommendations
method.
boto3 documentation
# get_auto_scaling_group_recommendations method definition
def get_auto_scaling_group_recommendations(
self,
*,
accountIds: Sequence[str] = ...,
autoScalingGroupArns: Sequence[str] = ...,
nextToken: str = ...,
maxResults: int = ...,
filters: Sequence[FilterTypeDef] = ..., # (1)
recommendationPreferences: RecommendationPreferencesTypeDef = ..., # (2)
) -> GetAutoScalingGroupRecommendationsResponseTypeDef: # (3)
...
- See FilterTypeDef
- See RecommendationPreferencesTypeDef
- See GetAutoScalingGroupRecommendationsResponseTypeDef
# get_auto_scaling_group_recommendations method usage example with argument unpacking
kwargs: GetAutoScalingGroupRecommendationsRequestRequestTypeDef = { # (1)
"accountIds": ...,
}
parent.get_auto_scaling_group_recommendations(**kwargs)
get_ebs_volume_recommendations#
Returns Amazon Elastic Block Store (Amazon EBS) volume recommendations.
Type annotations and code completion for boto3.client("compute-optimizer").get_ebs_volume_recommendations
method.
boto3 documentation
# get_ebs_volume_recommendations method definition
def get_ebs_volume_recommendations(
self,
*,
volumeArns: Sequence[str] = ...,
nextToken: str = ...,
maxResults: int = ...,
filters: Sequence[EBSFilterTypeDef] = ..., # (1)
accountIds: Sequence[str] = ...,
) -> GetEBSVolumeRecommendationsResponseTypeDef: # (2)
...
# get_ebs_volume_recommendations method usage example with argument unpacking
kwargs: GetEBSVolumeRecommendationsRequestRequestTypeDef = { # (1)
"volumeArns": ...,
}
parent.get_ebs_volume_recommendations(**kwargs)
get_ec2_instance_recommendations#
Returns Amazon EC2 instance recommendations.
Type annotations and code completion for boto3.client("compute-optimizer").get_ec2_instance_recommendations
method.
boto3 documentation
# get_ec2_instance_recommendations method definition
def get_ec2_instance_recommendations(
self,
*,
instanceArns: Sequence[str] = ...,
nextToken: str = ...,
maxResults: int = ...,
filters: Sequence[FilterTypeDef] = ..., # (1)
accountIds: Sequence[str] = ...,
recommendationPreferences: RecommendationPreferencesTypeDef = ..., # (2)
) -> GetEC2InstanceRecommendationsResponseTypeDef: # (3)
...
- See FilterTypeDef
- See RecommendationPreferencesTypeDef
- See GetEC2InstanceRecommendationsResponseTypeDef
# get_ec2_instance_recommendations method usage example with argument unpacking
kwargs: GetEC2InstanceRecommendationsRequestRequestTypeDef = { # (1)
"instanceArns": ...,
}
parent.get_ec2_instance_recommendations(**kwargs)
get_ec2_recommendation_projected_metrics#
Returns the projected utilization metrics of Amazon EC2 instance recommendations.
Type annotations and code completion for boto3.client("compute-optimizer").get_ec2_recommendation_projected_metrics
method.
boto3 documentation
# get_ec2_recommendation_projected_metrics method definition
def get_ec2_recommendation_projected_metrics(
self,
*,
instanceArn: str,
stat: MetricStatisticType, # (1)
period: int,
startTime: TimestampTypeDef,
endTime: TimestampTypeDef,
recommendationPreferences: RecommendationPreferencesTypeDef = ..., # (2)
) -> GetEC2RecommendationProjectedMetricsResponseTypeDef: # (3)
...
- See MetricStatisticType
- See RecommendationPreferencesTypeDef
- See GetEC2RecommendationProjectedMetricsResponseTypeDef
# get_ec2_recommendation_projected_metrics method usage example with argument unpacking
kwargs: GetEC2RecommendationProjectedMetricsRequestRequestTypeDef = { # (1)
"instanceArn": ...,
"stat": ...,
"period": ...,
"startTime": ...,
"endTime": ...,
}
parent.get_ec2_recommendation_projected_metrics(**kwargs)
get_ecs_service_recommendation_projected_metrics#
Returns the projected metrics of Amazon ECS service recommendations.
Type annotations and code completion for boto3.client("compute-optimizer").get_ecs_service_recommendation_projected_metrics
method.
boto3 documentation
# get_ecs_service_recommendation_projected_metrics method definition
def get_ecs_service_recommendation_projected_metrics(
self,
*,
serviceArn: str,
stat: MetricStatisticType, # (1)
period: int,
startTime: TimestampTypeDef,
endTime: TimestampTypeDef,
) -> GetECSServiceRecommendationProjectedMetricsResponseTypeDef: # (2)
...
# get_ecs_service_recommendation_projected_metrics method usage example with argument unpacking
kwargs: GetECSServiceRecommendationProjectedMetricsRequestRequestTypeDef = { # (1)
"serviceArn": ...,
"stat": ...,
"period": ...,
"startTime": ...,
"endTime": ...,
}
parent.get_ecs_service_recommendation_projected_metrics(**kwargs)
get_ecs_service_recommendations#
Returns Amazon ECS service recommendations.
Type annotations and code completion for boto3.client("compute-optimizer").get_ecs_service_recommendations
method.
boto3 documentation
# get_ecs_service_recommendations method definition
def get_ecs_service_recommendations(
self,
*,
serviceArns: Sequence[str] = ...,
nextToken: str = ...,
maxResults: int = ...,
filters: Sequence[ECSServiceRecommendationFilterTypeDef] = ..., # (1)
accountIds: Sequence[str] = ...,
) -> GetECSServiceRecommendationsResponseTypeDef: # (2)
...
# get_ecs_service_recommendations method usage example with argument unpacking
kwargs: GetECSServiceRecommendationsRequestRequestTypeDef = { # (1)
"serviceArns": ...,
}
parent.get_ecs_service_recommendations(**kwargs)
get_effective_recommendation_preferences#
Returns the recommendation preferences that are in effect for a given resource, such as enhanced infrastructure metrics.
Type annotations and code completion for boto3.client("compute-optimizer").get_effective_recommendation_preferences
method.
boto3 documentation
# get_effective_recommendation_preferences method definition
def get_effective_recommendation_preferences(
self,
*,
resourceArn: str,
) -> GetEffectiveRecommendationPreferencesResponseTypeDef: # (1)
...
# get_effective_recommendation_preferences method usage example with argument unpacking
kwargs: GetEffectiveRecommendationPreferencesRequestRequestTypeDef = { # (1)
"resourceArn": ...,
}
parent.get_effective_recommendation_preferences(**kwargs)
get_enrollment_status#
Returns the enrollment (opt in) status of an account to the Compute Optimizer service.
Type annotations and code completion for boto3.client("compute-optimizer").get_enrollment_status
method.
boto3 documentation
# get_enrollment_status method definition
def get_enrollment_status(
self,
) -> GetEnrollmentStatusResponseTypeDef: # (1)
...
get_enrollment_statuses_for_organization#
Returns the Compute Optimizer enrollment (opt-in) status of organization member accounts, if your account is an organization management account.
Type annotations and code completion for boto3.client("compute-optimizer").get_enrollment_statuses_for_organization
method.
boto3 documentation
# get_enrollment_statuses_for_organization method definition
def get_enrollment_statuses_for_organization(
self,
*,
filters: Sequence[EnrollmentFilterTypeDef] = ..., # (1)
nextToken: str = ...,
maxResults: int = ...,
) -> GetEnrollmentStatusesForOrganizationResponseTypeDef: # (2)
...
# get_enrollment_statuses_for_organization method usage example with argument unpacking
kwargs: GetEnrollmentStatusesForOrganizationRequestRequestTypeDef = { # (1)
"filters": ...,
}
parent.get_enrollment_statuses_for_organization(**kwargs)
get_idle_recommendations#
Returns idle resource recommendations.
Type annotations and code completion for boto3.client("compute-optimizer").get_idle_recommendations
method.
boto3 documentation
# get_idle_recommendations method definition
def get_idle_recommendations(
self,
*,
resourceArns: Sequence[str] = ...,
nextToken: str = ...,
maxResults: int = ...,
filters: Sequence[IdleRecommendationFilterTypeDef] = ..., # (1)
accountIds: Sequence[str] = ...,
orderBy: OrderByTypeDef = ..., # (2)
) -> GetIdleRecommendationsResponseTypeDef: # (3)
...
# get_idle_recommendations method usage example with argument unpacking
kwargs: GetIdleRecommendationsRequestRequestTypeDef = { # (1)
"resourceArns": ...,
}
parent.get_idle_recommendations(**kwargs)
get_lambda_function_recommendations#
Returns Lambda function recommendations.
Type annotations and code completion for boto3.client("compute-optimizer").get_lambda_function_recommendations
method.
boto3 documentation
# get_lambda_function_recommendations method definition
def get_lambda_function_recommendations(
self,
*,
functionArns: Sequence[str] = ...,
accountIds: Sequence[str] = ...,
filters: Sequence[LambdaFunctionRecommendationFilterTypeDef] = ..., # (1)
nextToken: str = ...,
maxResults: int = ...,
) -> GetLambdaFunctionRecommendationsResponseTypeDef: # (2)
...
# get_lambda_function_recommendations method usage example with argument unpacking
kwargs: GetLambdaFunctionRecommendationsRequestRequestTypeDef = { # (1)
"functionArns": ...,
}
parent.get_lambda_function_recommendations(**kwargs)
get_license_recommendations#
Returns license recommendations for Amazon EC2 instances that run on a specific license.
Type annotations and code completion for boto3.client("compute-optimizer").get_license_recommendations
method.
boto3 documentation
# get_license_recommendations method definition
def get_license_recommendations(
self,
*,
resourceArns: Sequence[str] = ...,
nextToken: str = ...,
maxResults: int = ...,
filters: Sequence[LicenseRecommendationFilterTypeDef] = ..., # (1)
accountIds: Sequence[str] = ...,
) -> GetLicenseRecommendationsResponseTypeDef: # (2)
...
# get_license_recommendations method usage example with argument unpacking
kwargs: GetLicenseRecommendationsRequestRequestTypeDef = { # (1)
"resourceArns": ...,
}
parent.get_license_recommendations(**kwargs)
get_rds_database_recommendation_projected_metrics#
Returns the projected metrics of Amazon RDS recommendations.
Type annotations and code completion for boto3.client("compute-optimizer").get_rds_database_recommendation_projected_metrics
method.
boto3 documentation
# get_rds_database_recommendation_projected_metrics method definition
def get_rds_database_recommendation_projected_metrics(
self,
*,
resourceArn: str,
stat: MetricStatisticType, # (1)
period: int,
startTime: TimestampTypeDef,
endTime: TimestampTypeDef,
recommendationPreferences: RecommendationPreferencesTypeDef = ..., # (2)
) -> GetRDSDatabaseRecommendationProjectedMetricsResponseTypeDef: # (3)
...
- See MetricStatisticType
- See RecommendationPreferencesTypeDef
- See GetRDSDatabaseRecommendationProjectedMetricsResponseTypeDef
# get_rds_database_recommendation_projected_metrics method usage example with argument unpacking
kwargs: GetRDSDatabaseRecommendationProjectedMetricsRequestRequestTypeDef = { # (1)
"resourceArn": ...,
"stat": ...,
"period": ...,
"startTime": ...,
"endTime": ...,
}
parent.get_rds_database_recommendation_projected_metrics(**kwargs)
get_rds_database_recommendations#
Returns Amazon RDS recommendations.
Type annotations and code completion for boto3.client("compute-optimizer").get_rds_database_recommendations
method.
boto3 documentation
# get_rds_database_recommendations method definition
def get_rds_database_recommendations(
self,
*,
resourceArns: Sequence[str] = ...,
nextToken: str = ...,
maxResults: int = ...,
filters: Sequence[RDSDBRecommendationFilterTypeDef] = ..., # (1)
accountIds: Sequence[str] = ...,
recommendationPreferences: RecommendationPreferencesTypeDef = ..., # (2)
) -> GetRDSDatabaseRecommendationsResponseTypeDef: # (3)
...
- See RDSDBRecommendationFilterTypeDef
- See RecommendationPreferencesTypeDef
- See GetRDSDatabaseRecommendationsResponseTypeDef
# get_rds_database_recommendations method usage example with argument unpacking
kwargs: GetRDSDatabaseRecommendationsRequestRequestTypeDef = { # (1)
"resourceArns": ...,
}
parent.get_rds_database_recommendations(**kwargs)
get_recommendation_preferences#
Returns existing recommendation preferences, such as enhanced infrastructure metrics.
Type annotations and code completion for boto3.client("compute-optimizer").get_recommendation_preferences
method.
boto3 documentation
# get_recommendation_preferences method definition
def get_recommendation_preferences(
self,
*,
resourceType: ResourceTypeType, # (1)
scope: ScopeTypeDef = ..., # (2)
nextToken: str = ...,
maxResults: int = ...,
) -> GetRecommendationPreferencesResponseTypeDef: # (3)
...
# get_recommendation_preferences method usage example with argument unpacking
kwargs: GetRecommendationPreferencesRequestRequestTypeDef = { # (1)
"resourceType": ...,
}
parent.get_recommendation_preferences(**kwargs)
get_recommendation_summaries#
Returns the optimization findings for an account.
Type annotations and code completion for boto3.client("compute-optimizer").get_recommendation_summaries
method.
boto3 documentation
# get_recommendation_summaries method definition
def get_recommendation_summaries(
self,
*,
accountIds: Sequence[str] = ...,
nextToken: str = ...,
maxResults: int = ...,
) -> GetRecommendationSummariesResponseTypeDef: # (1)
...
# get_recommendation_summaries method usage example with argument unpacking
kwargs: GetRecommendationSummariesRequestRequestTypeDef = { # (1)
"accountIds": ...,
}
parent.get_recommendation_summaries(**kwargs)
put_recommendation_preferences#
Creates a new recommendation preference or updates an existing recommendation preference, such as enhanced infrastructure metrics.
Type annotations and code completion for boto3.client("compute-optimizer").put_recommendation_preferences
method.
boto3 documentation
# put_recommendation_preferences method definition
def put_recommendation_preferences(
self,
*,
resourceType: ResourceTypeType, # (1)
scope: ScopeTypeDef = ..., # (2)
enhancedInfrastructureMetrics: EnhancedInfrastructureMetricsType = ..., # (3)
inferredWorkloadTypes: InferredWorkloadTypesPreferenceType = ..., # (4)
externalMetricsPreference: ExternalMetricsPreferenceTypeDef = ..., # (5)
lookBackPeriod: LookBackPeriodPreferenceType = ..., # (6)
utilizationPreferences: Sequence[UtilizationPreferenceTypeDef] = ..., # (7)
preferredResources: Sequence[PreferredResourceTypeDef] = ..., # (8)
savingsEstimationMode: SavingsEstimationModeType = ..., # (9)
) -> dict[str, Any]:
...
- See ResourceTypeType
- See ScopeTypeDef
- See EnhancedInfrastructureMetricsType
- See InferredWorkloadTypesPreferenceType
- See ExternalMetricsPreferenceTypeDef
- See LookBackPeriodPreferenceType
- See UtilizationPreferenceTypeDef
- See PreferredResourceTypeDef
- See SavingsEstimationModeType
# put_recommendation_preferences method usage example with argument unpacking
kwargs: PutRecommendationPreferencesRequestRequestTypeDef = { # (1)
"resourceType": ...,
}
parent.put_recommendation_preferences(**kwargs)
update_enrollment_status#
Updates the enrollment (opt in and opt out) status of an account to the Compute Optimizer service.
Type annotations and code completion for boto3.client("compute-optimizer").update_enrollment_status
method.
boto3 documentation
# update_enrollment_status method definition
def update_enrollment_status(
self,
*,
status: StatusType, # (1)
includeMemberAccounts: bool = ...,
) -> UpdateEnrollmentStatusResponseTypeDef: # (2)
...
# update_enrollment_status method usage example with argument unpacking
kwargs: UpdateEnrollmentStatusRequestRequestTypeDef = { # (1)
"status": ...,
}
parent.update_enrollment_status(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("compute-optimizer").get_paginator
method with overloads.
client.get_paginator("describe_recommendation_export_jobs")
-> DescribeRecommendationExportJobsPaginatorclient.get_paginator("get_enrollment_statuses_for_organization")
-> GetEnrollmentStatusesForOrganizationPaginatorclient.get_paginator("get_lambda_function_recommendations")
-> GetLambdaFunctionRecommendationsPaginatorclient.get_paginator("get_recommendation_preferences")
-> GetRecommendationPreferencesPaginatorclient.get_paginator("get_recommendation_summaries")
-> GetRecommendationSummariesPaginator