Class: Aws::ComputeOptimizer::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::ComputeOptimizer::Client
- Includes:
- Aws::ClientStubs
- Defined in:
- lib/aws-sdk-computeoptimizer/client.rb,
sig/client.rbs
Overview
An API client for ComputeOptimizer. To construct a client, you need to configure a :region and :credentials.
client = Aws::ComputeOptimizer::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Defined Under Namespace
Modules: _DeleteRecommendationPreferencesResponseSuccess, _DescribeRecommendationExportJobsResponseSuccess, _ExportAutoScalingGroupRecommendationsResponseSuccess, _ExportEBSVolumeRecommendationsResponseSuccess, _ExportEC2InstanceRecommendationsResponseSuccess, _ExportECSServiceRecommendationsResponseSuccess, _ExportIdleRecommendationsResponseSuccess, _ExportLambdaFunctionRecommendationsResponseSuccess, _ExportLicenseRecommendationsResponseSuccess, _ExportRDSDatabaseRecommendationsResponseSuccess, _GetAutoScalingGroupRecommendationsResponseSuccess, _GetEBSVolumeRecommendationsResponseSuccess, _GetEC2InstanceRecommendationsResponseSuccess, _GetEC2RecommendationProjectedMetricsResponseSuccess, _GetECSServiceRecommendationProjectedMetricsResponseSuccess, _GetECSServiceRecommendationsResponseSuccess, _GetEffectiveRecommendationPreferencesResponseSuccess, _GetEnrollmentStatusResponseSuccess, _GetEnrollmentStatusesForOrganizationResponseSuccess, _GetIdleRecommendationsResponseSuccess, _GetLambdaFunctionRecommendationsResponseSuccess, _GetLicenseRecommendationsResponseSuccess, _GetRDSDatabaseRecommendationProjectedMetricsResponseSuccess, _GetRDSDatabaseRecommendationsResponseSuccess, _GetRecommendationPreferencesResponseSuccess, _GetRecommendationSummariesResponseSuccess, _PutRecommendationPreferencesResponseSuccess, _UpdateEnrollmentStatusResponseSuccess
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#delete_recommendation_preferences(params = {}) ⇒ Struct
Deletes a recommendation preference, such as enhanced infrastructure metrics.
-
#describe_recommendation_export_jobs(params = {}) ⇒ Types::DescribeRecommendationExportJobsResponse
Describes recommendation export jobs created in the last seven days.
-
#export_auto_scaling_group_recommendations(params = {}) ⇒ Types::ExportAutoScalingGroupRecommendationsResponse
Exports optimization recommendations for Auto Scaling groups.
-
#export_ebs_volume_recommendations(params = {}) ⇒ Types::ExportEBSVolumeRecommendationsResponse
Exports optimization recommendations for Amazon EBS volumes.
-
#export_ec2_instance_recommendations(params = {}) ⇒ Types::ExportEC2InstanceRecommendationsResponse
Exports optimization recommendations for Amazon EC2 instances.
-
#export_ecs_service_recommendations(params = {}) ⇒ Types::ExportECSServiceRecommendationsResponse
Exports optimization recommendations for Amazon ECS services on Fargate.
-
#export_idle_recommendations(params = {}) ⇒ Types::ExportIdleRecommendationsResponse
Export optimization recommendations for your idle resources.
-
#export_lambda_function_recommendations(params = {}) ⇒ Types::ExportLambdaFunctionRecommendationsResponse
Exports optimization recommendations for Lambda functions.
-
#export_license_recommendations(params = {}) ⇒ Types::ExportLicenseRecommendationsResponse
Export optimization recommendations for your licenses.
-
#export_rds_database_recommendations(params = {}) ⇒ Types::ExportRDSDatabaseRecommendationsResponse
Export optimization recommendations for your Amazon Aurora and Amazon Relational Database Service (Amazon RDS) databases.
-
#get_auto_scaling_group_recommendations(params = {}) ⇒ Types::GetAutoScalingGroupRecommendationsResponse
Returns Auto Scaling group recommendations.
-
#get_ebs_volume_recommendations(params = {}) ⇒ Types::GetEBSVolumeRecommendationsResponse
Returns Amazon Elastic Block Store (Amazon EBS) volume recommendations.
-
#get_ec2_instance_recommendations(params = {}) ⇒ Types::GetEC2InstanceRecommendationsResponse
Returns Amazon EC2 instance recommendations.
-
#get_ec2_recommendation_projected_metrics(params = {}) ⇒ Types::GetEC2RecommendationProjectedMetricsResponse
Returns the projected utilization metrics of Amazon EC2 instance recommendations.
-
#get_ecs_service_recommendation_projected_metrics(params = {}) ⇒ Types::GetECSServiceRecommendationProjectedMetricsResponse
Returns the projected metrics of Amazon ECS service recommendations.
-
#get_ecs_service_recommendations(params = {}) ⇒ Types::GetECSServiceRecommendationsResponse
Returns Amazon ECS service recommendations.
-
#get_effective_recommendation_preferences(params = {}) ⇒ Types::GetEffectiveRecommendationPreferencesResponse
Returns the recommendation preferences that are in effect for a given resource, such as enhanced infrastructure metrics.
-
#get_enrollment_status(params = {}) ⇒ Types::GetEnrollmentStatusResponse
Returns the enrollment (opt in) status of an account to the Compute Optimizer service.
-
#get_enrollment_statuses_for_organization(params = {}) ⇒ Types::GetEnrollmentStatusesForOrganizationResponse
Returns the Compute Optimizer enrollment (opt-in) status of organization member accounts, if your account is an organization management account.
-
#get_idle_recommendations(params = {}) ⇒ Types::GetIdleRecommendationsResponse
Returns idle resource recommendations.
-
#get_lambda_function_recommendations(params = {}) ⇒ Types::GetLambdaFunctionRecommendationsResponse
Returns Lambda function recommendations.
-
#get_license_recommendations(params = {}) ⇒ Types::GetLicenseRecommendationsResponse
Returns license recommendations for Amazon EC2 instances that run on a specific license.
-
#get_rds_database_recommendation_projected_metrics(params = {}) ⇒ Types::GetRDSDatabaseRecommendationProjectedMetricsResponse
Returns the projected metrics of Aurora and RDS database recommendations.
-
#get_rds_database_recommendations(params = {}) ⇒ Types::GetRDSDatabaseRecommendationsResponse
Returns Amazon Aurora and RDS database recommendations.
-
#get_recommendation_preferences(params = {}) ⇒ Types::GetRecommendationPreferencesResponse
Returns existing recommendation preferences, such as enhanced infrastructure metrics.
-
#get_recommendation_summaries(params = {}) ⇒ Types::GetRecommendationSummariesResponse
Returns the optimization findings for an account.
-
#put_recommendation_preferences(params = {}) ⇒ Struct
Creates a new recommendation preference or updates an existing recommendation preference, such as enhanced infrastructure metrics.
-
#update_enrollment_status(params = {}) ⇒ Types::UpdateEnrollmentStatusResponse
Updates the enrollment (opt in and opt out) status of an account to the Compute Optimizer service.
Class Method Summary collapse
- .errors_module ⇒ Object private
- .new ⇒ Object
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
486 487 488 |
# File 'lib/aws-sdk-computeoptimizer/client.rb', line 486 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3619 3620 3621 |
# File 'lib/aws-sdk-computeoptimizer/client.rb', line 3619 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3622 3623 3624 |
# File 'lib/aws-sdk-computeoptimizer/client.rb', line 3622 def errors_module Errors end |
.new(credentials:, region:, access_key_id:, account_id:, active_endpoint_cache:, adaptive_retry_wait_to_fill:, auth_scheme_preference:, client_side_monitoring:, client_side_monitoring_client_id:, client_side_monitoring_host:, client_side_monitoring_port:, client_side_monitoring_publisher:, convert_params:, correct_clock_skew:, defaults_mode:, disable_clock_skew_correction:, disable_host_prefix_injection:, disable_request_compression:, endpoint:, endpoint_cache_max_entries:, endpoint_cache_max_threads:, endpoint_cache_poll_interval:, endpoint_discovery:, ignore_configured_endpoint_urls:, log_formatter:, log_level:, logger:, max_attempts:, profile:, request_checksum_calculation:, request_min_compression_size_bytes:, response_checksum_validation:, retry_backoff:, retry_base_delay:, retry_jitter:, retry_limit:, retry_max_delay:, retry_mode:, sdk_ua_app_id:, secret_access_key:, session_token:, sigv4a_signing_region_set:, simple_json:, stub_responses:, telemetry_provider:, token_provider:, use_dualstack_endpoint:, use_fips_endpoint:, validate_params:, endpoint_provider:, http_proxy:, http_open_timeout:, http_read_timeout:, http_idle_timeout:, http_continue_timeout:, ssl_timeout:, http_wire_trace:, ssl_verify_peer:, ssl_ca_bundle:, ssl_ca_directory:, ssl_ca_store:, on_chunk_received:, on_chunk_sent:, raise_response_errors:) ⇒ instance .new(arg0) ⇒ instance
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'sig/client.rbs', line 14
def self.new: (
?credentials: untyped,
?region: String,
?access_key_id: String,
?account_id: String,
?active_endpoint_cache: bool,
?adaptive_retry_wait_to_fill: bool,
?auth_scheme_preference: Array[String],
?client_side_monitoring: bool,
?client_side_monitoring_client_id: String,
?client_side_monitoring_host: String,
?client_side_monitoring_port: Integer,
?client_side_monitoring_publisher: untyped,
?convert_params: bool,
?correct_clock_skew: bool,
?defaults_mode: String,
?disable_clock_skew_correction: bool,
?disable_host_prefix_injection: bool,
?disable_request_compression: bool,
?endpoint: String,
?endpoint_cache_max_entries: Integer,
?endpoint_cache_max_threads: Integer,
?endpoint_cache_poll_interval: Integer,
?endpoint_discovery: bool,
?ignore_configured_endpoint_urls: bool,
?log_formatter: untyped,
?log_level: Symbol,
?logger: untyped,
?max_attempts: Integer,
?profile: String,
?request_checksum_calculation: String,
?request_min_compression_size_bytes: Integer,
?response_checksum_validation: String,
?retry_backoff: Proc,
?retry_base_delay: Float,
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
?retry_limit: Integer,
?retry_max_delay: Integer,
?retry_mode: ("legacy" | "standard" | "adaptive"),
?sdk_ua_app_id: String,
?secret_access_key: String,
?session_token: String,
?sigv4a_signing_region_set: Array[String],
?simple_json: bool,
?stub_responses: untyped,
?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
?token_provider: untyped,
?use_dualstack_endpoint: bool,
?use_fips_endpoint: bool,
?validate_params: bool,
?endpoint_provider: untyped,
?http_proxy: String,
?http_open_timeout: (Float | Integer),
?http_read_timeout: (Float | Integer),
?http_idle_timeout: (Float | Integer),
?http_continue_timeout: (Float | Integer),
?ssl_timeout: (Float | Integer | nil),
?http_wire_trace: bool,
?ssl_verify_peer: bool,
?ssl_ca_bundle: String,
?ssl_ca_directory: String,
?ssl_ca_store: String,
?on_chunk_received: Proc,
?on_chunk_sent: Proc,
?raise_response_errors: bool
) -> instance
| (?Hash[Symbol, untyped]) -> instance
|
Instance Method Details
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 |
# File 'lib/aws-sdk-computeoptimizer/client.rb', line 3592 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::ComputeOptimizer') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-computeoptimizer' context[:gem_version] = '1.115.0' Seahorse::Client::Request.new(handlers, context) end |
#delete_recommendation_preferences(params = {}) ⇒ Struct
Deletes a recommendation preference, such as enhanced infrastructure metrics.
For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
87 88 89 90 91 92 93 94 95 |
# File 'sig/client.rbs', line 87
def delete_recommendation_preferences: (
resource_type: ("Ec2Instance" | "AutoScalingGroup" | "EbsVolume" | "LambdaFunction" | "NotApplicable" | "EcsService" | "License" | "RdsDBInstance" | "AuroraDBClusterStorage" | "Idle"),
?scope: {
name: ("Organization" | "AccountId" | "ResourceArn")?,
value: ::String?
},
recommendation_preference_names: Array[("EnhancedInfrastructureMetrics" | "InferredWorkloadTypes" | "ExternalMetricsPreference" | "LookBackPeriodPreference" | "PreferredResources" | "UtilizationPreferences")]
) -> _DeleteRecommendationPreferencesResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteRecommendationPreferencesResponseSuccess
|
#describe_recommendation_export_jobs(params = {}) ⇒ Types::DescribeRecommendationExportJobsResponse
Describes recommendation export jobs created in the last seven days.
Use the ExportAutoScalingGroupRecommendations or ExportEC2InstanceRecommendations actions to request an export of your recommendations. Then use the DescribeRecommendationExportJobs action to view your export jobs.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'sig/client.rbs', line 103
def describe_recommendation_export_jobs: (
?job_ids: Array[::String],
?filters: Array[
{
name: ("ResourceType" | "JobStatus")?,
values: Array[::String]?
}
],
?next_token: ::String,
?max_results: ::Integer
) -> _DescribeRecommendationExportJobsResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeRecommendationExportJobsResponseSuccess
|
#export_auto_scaling_group_recommendations(params = {}) ⇒ Types::ExportAutoScalingGroupRecommendationsResponse
Exports optimization recommendations for Auto Scaling groups.
Recommendations are exported in a comma-separated values (.csv) file, and its metadata in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide.
You can have only one Auto Scaling group export job in progress per Amazon Web Services Region.
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
# File 'sig/client.rbs', line 122
def export_auto_scaling_group_recommendations: (
?account_ids: Array[::String],
?filters: Array[
{
name: ("Finding" | "FindingReasonCodes" | "RecommendationSourceType" | "InferredWorkloadTypes")?,
values: Array[::String]?
}
],
?fields_to_export: Array[("AccountId" | "AutoScalingGroupArn" | "AutoScalingGroupName" | "Finding" | "UtilizationMetricsCpuMaximum" | "UtilizationMetricsMemoryMaximum" | "UtilizationMetricsEbsReadOpsPerSecondMaximum" | "UtilizationMetricsEbsWriteOpsPerSecondMaximum" | "UtilizationMetricsEbsReadBytesPerSecondMaximum" | "UtilizationMetricsEbsWriteBytesPerSecondMaximum" | "UtilizationMetricsDiskReadOpsPerSecondMaximum" | "UtilizationMetricsDiskWriteOpsPerSecondMaximum" | "UtilizationMetricsDiskReadBytesPerSecondMaximum" | "UtilizationMetricsDiskWriteBytesPerSecondMaximum" | "UtilizationMetricsNetworkInBytesPerSecondMaximum" | "UtilizationMetricsNetworkOutBytesPerSecondMaximum" | "UtilizationMetricsNetworkPacketsInPerSecondMaximum" | "UtilizationMetricsNetworkPacketsOutPerSecondMaximum" | "LookbackPeriodInDays" | "CurrentConfigurationInstanceType" | "CurrentConfigurationDesiredCapacity" | "CurrentConfigurationMinSize" | "CurrentConfigurationMaxSize" | "CurrentConfigurationAllocationStrategy" | "CurrentConfigurationMixedInstanceTypes" | "CurrentConfigurationType" | "CurrentOnDemandPrice" | "CurrentStandardOneYearNoUpfrontReservedPrice" | "CurrentStandardThreeYearNoUpfrontReservedPrice" | "CurrentVCpus" | "CurrentMemory" | "CurrentStorage" | "CurrentNetwork" | "RecommendationOptionsConfigurationInstanceType" | "RecommendationOptionsConfigurationDesiredCapacity" | "RecommendationOptionsConfigurationMinSize" | "RecommendationOptionsConfigurationMaxSize" | "RecommendationOptionsConfigurationEstimatedInstanceHourReductionPercentage" | "RecommendationOptionsConfigurationAllocationStrategy" | "RecommendationOptionsConfigurationMixedInstanceTypes" | "RecommendationOptionsConfigurationType" | "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum" | "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum" | "RecommendationOptionsPerformanceRisk" | "RecommendationOptionsOnDemandPrice" | "RecommendationOptionsStandardOneYearNoUpfrontReservedPrice" | "RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice" | "RecommendationOptionsVcpus" | "RecommendationOptionsMemory" | "RecommendationOptionsStorage" | "RecommendationOptionsNetwork" | "LastRefreshTimestamp" | "CurrentPerformanceRisk" | "RecommendationOptionsSavingsOpportunityPercentage" | "RecommendationOptionsEstimatedMonthlySavingsCurrency" | "RecommendationOptionsEstimatedMonthlySavingsValue" | "EffectiveRecommendationPreferencesCpuVendorArchitectures" | "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics" | "EffectiveRecommendationPreferencesInferredWorkloadTypes" | "EffectiveRecommendationPreferencesPreferredResources" | "EffectiveRecommendationPreferencesLookBackPeriod" | "InferredWorkloadTypes" | "RecommendationOptionsMigrationEffort" | "CurrentInstanceGpuInfo" | "RecommendationOptionsInstanceGpuInfo" | "UtilizationMetricsGpuPercentageMaximum" | "UtilizationMetricsGpuMemoryPercentageMaximum" | "RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum" | "RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum" | "EffectiveRecommendationPreferencesSavingsEstimationMode" | "RecommendationOptionsSavingsOpportunityAfterDiscountsPercentage" | "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts" | "RecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts")],
s3_destination_config: {
bucket: ::String?,
key_prefix: ::String?
},
?file_format: ("Csv"),
?include_member_accounts: bool,
?recommendation_preferences: {
cpu_vendor_architectures: Array[("AWS_ARM64" | "CURRENT")]?
}
) -> _ExportAutoScalingGroupRecommendationsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ExportAutoScalingGroupRecommendationsResponseSuccess
|
#export_ebs_volume_recommendations(params = {}) ⇒ Types::ExportEBSVolumeRecommendationsResponse
Exports optimization recommendations for Amazon EBS volumes.
Recommendations are exported in a comma-separated values (.csv) file, and its metadata in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide.
You can have only one Amazon EBS volume export job in progress per Amazon Web Services Region.
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
# File 'sig/client.rbs', line 149
def export_ebs_volume_recommendations: (
?account_ids: Array[::String],
?filters: Array[
{
name: ("Finding")?,
values: Array[::String]?
}
],
?fields_to_export: Array[("AccountId" | "VolumeArn" | "Finding" | "UtilizationMetricsVolumeReadOpsPerSecondMaximum" | "UtilizationMetricsVolumeWriteOpsPerSecondMaximum" | "UtilizationMetricsVolumeReadBytesPerSecondMaximum" | "UtilizationMetricsVolumeWriteBytesPerSecondMaximum" | "UtilizationMetricsVolumeIOPSExceededMaximum" | "UtilizationMetricsVolumeThroughputExceededMaximum" | "LookbackPeriodInDays" | "CurrentConfigurationVolumeType" | "CurrentConfigurationVolumeBaselineIOPS" | "CurrentConfigurationVolumeBaselineThroughput" | "CurrentConfigurationVolumeBurstIOPS" | "CurrentConfigurationVolumeBurstThroughput" | "CurrentConfigurationVolumeSize" | "CurrentMonthlyPrice" | "RecommendationOptionsConfigurationVolumeType" | "RecommendationOptionsConfigurationVolumeBaselineIOPS" | "RecommendationOptionsConfigurationVolumeBaselineThroughput" | "RecommendationOptionsConfigurationVolumeBurstIOPS" | "RecommendationOptionsConfigurationVolumeBurstThroughput" | "RecommendationOptionsConfigurationVolumeSize" | "RecommendationOptionsMonthlyPrice" | "RecommendationOptionsPerformanceRisk" | "LastRefreshTimestamp" | "CurrentPerformanceRisk" | "RecommendationOptionsSavingsOpportunityPercentage" | "RecommendationOptionsEstimatedMonthlySavingsCurrency" | "RecommendationOptionsEstimatedMonthlySavingsValue" | "Tags" | "RootVolume" | "CurrentConfigurationRootVolume" | "EffectiveRecommendationPreferencesSavingsEstimationMode" | "RecommendationOptionsSavingsOpportunityAfterDiscountsPercentage" | "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts" | "RecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts" | "EffectiveRecommendationPreferencesLookBackPeriod" | "UtilizationMetricsVolumeConsumedBytesMaximum")],
s3_destination_config: {
bucket: ::String?,
key_prefix: ::String?
},
?file_format: ("Csv"),
?include_member_accounts: bool
) -> _ExportEBSVolumeRecommendationsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ExportEBSVolumeRecommendationsResponseSuccess
|
#export_ec2_instance_recommendations(params = {}) ⇒ Types::ExportEC2InstanceRecommendationsResponse
Exports optimization recommendations for Amazon EC2 instances.
Recommendations are exported in a comma-separated values (.csv) file, and its metadata in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide.
You can have only one Amazon EC2 instance export job in progress per Amazon Web Services Region.
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
# File 'sig/client.rbs', line 173
def export_ec2_instance_recommendations: (
?account_ids: Array[::String],
?filters: Array[
{
name: ("Finding" | "FindingReasonCodes" | "RecommendationSourceType" | "InferredWorkloadTypes")?,
values: Array[::String]?
}
],
?fields_to_export: Array[("AccountId" | "InstanceArn" | "InstanceName" | "Finding" | "FindingReasonCodes" | "LookbackPeriodInDays" | "CurrentInstanceType" | "UtilizationMetricsCpuMaximum" | "UtilizationMetricsMemoryMaximum" | "UtilizationMetricsEbsReadOpsPerSecondMaximum" | "UtilizationMetricsEbsWriteOpsPerSecondMaximum" | "UtilizationMetricsEbsReadBytesPerSecondMaximum" | "UtilizationMetricsEbsWriteBytesPerSecondMaximum" | "UtilizationMetricsDiskReadOpsPerSecondMaximum" | "UtilizationMetricsDiskWriteOpsPerSecondMaximum" | "UtilizationMetricsDiskReadBytesPerSecondMaximum" | "UtilizationMetricsDiskWriteBytesPerSecondMaximum" | "UtilizationMetricsNetworkInBytesPerSecondMaximum" | "UtilizationMetricsNetworkOutBytesPerSecondMaximum" | "UtilizationMetricsNetworkPacketsInPerSecondMaximum" | "UtilizationMetricsNetworkPacketsOutPerSecondMaximum" | "CurrentOnDemandPrice" | "CurrentStandardOneYearNoUpfrontReservedPrice" | "CurrentStandardThreeYearNoUpfrontReservedPrice" | "CurrentVCpus" | "CurrentMemory" | "CurrentStorage" | "CurrentNetwork" | "RecommendationOptionsInstanceType" | "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum" | "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum" | "RecommendationOptionsPlatformDifferences" | "RecommendationOptionsPerformanceRisk" | "RecommendationOptionsVcpus" | "RecommendationOptionsMemory" | "RecommendationOptionsStorage" | "RecommendationOptionsNetwork" | "RecommendationOptionsOnDemandPrice" | "RecommendationOptionsStandardOneYearNoUpfrontReservedPrice" | "RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice" | "RecommendationsSourcesRecommendationSourceArn" | "RecommendationsSourcesRecommendationSourceType" | "LastRefreshTimestamp" | "CurrentPerformanceRisk" | "RecommendationOptionsSavingsOpportunityPercentage" | "RecommendationOptionsEstimatedMonthlySavingsCurrency" | "RecommendationOptionsEstimatedMonthlySavingsValue" | "EffectiveRecommendationPreferencesCpuVendorArchitectures" | "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics" | "EffectiveRecommendationPreferencesInferredWorkloadTypes" | "InferredWorkloadTypes" | "RecommendationOptionsMigrationEffort" | "EffectiveRecommendationPreferencesExternalMetricsSource" | "Tags" | "InstanceState" | "ExternalMetricStatusCode" | "ExternalMetricStatusReason" | "CurrentInstanceGpuInfo" | "RecommendationOptionsInstanceGpuInfo" | "UtilizationMetricsGpuPercentageMaximum" | "UtilizationMetricsGpuMemoryPercentageMaximum" | "RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum" | "RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum" | "Idle" | "EffectiveRecommendationPreferencesPreferredResources" | "EffectiveRecommendationPreferencesLookBackPeriod" | "EffectiveRecommendationPreferencesUtilizationPreferences" | "EffectiveRecommendationPreferencesSavingsEstimationMode" | "RecommendationOptionsSavingsOpportunityAfterDiscountsPercentage" | "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts" | "RecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts")],
s3_destination_config: {
bucket: ::String?,
key_prefix: ::String?
},
?file_format: ("Csv"),
?include_member_accounts: bool,
?recommendation_preferences: {
cpu_vendor_architectures: Array[("AWS_ARM64" | "CURRENT")]?
}
) -> _ExportEC2InstanceRecommendationsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ExportEC2InstanceRecommendationsResponseSuccess
|
#export_ecs_service_recommendations(params = {}) ⇒ Types::ExportECSServiceRecommendationsResponse
Exports optimization recommendations for Amazon ECS services on Fargate.
Recommendations are exported in a CSV file, and its metadata in a JSON file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide.
You can only have one Amazon ECS service export job in progress per Amazon Web Services Region.
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
# File 'sig/client.rbs', line 200
def export_ecs_service_recommendations: (
?account_ids: Array[::String],
?filters: Array[
{
name: ("Finding" | "FindingReasonCode")?,
values: Array[::String]?
}
],
?fields_to_export: Array[("AccountId" | "ServiceArn" | "LookbackPeriodInDays" | "LastRefreshTimestamp" | "LaunchType" | "CurrentPerformanceRisk" | "CurrentServiceConfigurationMemory" | "CurrentServiceConfigurationCpu" | "CurrentServiceConfigurationTaskDefinitionArn" | "CurrentServiceConfigurationAutoScalingConfiguration" | "CurrentServiceContainerConfigurations" | "UtilizationMetricsCpuMaximum" | "UtilizationMetricsMemoryMaximum" | "Finding" | "FindingReasonCodes" | "RecommendationOptionsMemory" | "RecommendationOptionsCpu" | "RecommendationOptionsSavingsOpportunityPercentage" | "RecommendationOptionsEstimatedMonthlySavingsCurrency" | "RecommendationOptionsEstimatedMonthlySavingsValue" | "RecommendationOptionsContainerRecommendations" | "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum" | "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum" | "Tags" | "EffectiveRecommendationPreferencesSavingsEstimationMode" | "RecommendationOptionsSavingsOpportunityAfterDiscountsPercentage" | "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts" | "RecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts" | "EffectiveRecommendationPreferencesLookBackPeriod")],
s3_destination_config: {
bucket: ::String?,
key_prefix: ::String?
},
?file_format: ("Csv"),
?include_member_accounts: bool
) -> _ExportECSServiceRecommendationsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ExportECSServiceRecommendationsResponseSuccess
|
#export_idle_recommendations(params = {}) ⇒ Types::ExportIdleRecommendationsResponse
Export optimization recommendations for your idle resources.
Recommendations are exported in a comma-separated values (CSV) file, and its metadata in a JavaScript Object Notation (JSON) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide.
You can have only one idle resource export job in progress per Amazon Web Services Region.
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 |
# File 'sig/client.rbs', line 224
def export_idle_recommendations: (
?account_ids: Array[::String],
?filters: Array[
{
name: ("Finding" | "ResourceType")?,
values: Array[::String]?
}
],
?fields_to_export: Array[("AccountId" | "ResourceArn" | "ResourceId" | "ResourceType" | "LastRefreshTimestamp" | "LookbackPeriodInDays" | "SavingsOpportunity" | "SavingsOpportunityAfterDiscount" | "UtilizationMetricsCpuMaximum" | "UtilizationMetricsMemoryMaximum" | "UtilizationMetricsNetworkOutBytesPerSecondMaximum" | "UtilizationMetricsNetworkInBytesPerSecondMaximum" | "UtilizationMetricsDatabaseConnectionsMaximum" | "UtilizationMetricsEBSVolumeReadIOPSMaximum" | "UtilizationMetricsEBSVolumeWriteIOPSMaximum" | "UtilizationMetricsVolumeReadOpsPerSecondMaximum" | "UtilizationMetricsVolumeWriteOpsPerSecondMaximum" | "UtilizationMetricsActiveConnectionCountMaximum" | "UtilizationMetricsPacketsInFromSourceMaximum" | "UtilizationMetricsPacketsInFromDestinationMaximum" | "UtilizationMetricsConsumedReadCapacityUnitsSum" | "UtilizationMetricsConsumedWriteCapacityUnitsSum" | "UtilizationMetricsNewConnectionsSum" | "UtilizationMetricsEngineCPUUtilizationMaximum" | "UtilizationMetricsCacheHitsSum" | "UtilizationMetricsCacheMissesSum" | "UtilizationMetricsKeyspaceHitsSum" | "UtilizationMetricsKeyspaceMissesSum" | "UtilizationMetricsIsIdleMinimum" | "UtilizationMetricsUserConnectedSum" | "UtilizationMetricsInvocationsSum" | "UtilizationMetricsGetTypeCmdsSum" | "UtilizationMetricsSetTypeCmdsSum" | "UtilizationMetricsElastiCacheProcessingUnitsSum" | "UtilizationMetricsCurrConnectionsSum" | "UtilizationMetricsDatabaseConnectionsSum" | "Finding" | "FindingDescription" | "Tags" | "UtilizationMetricsVolumeConsumedBytesMaximum")],
s3_destination_config: {
bucket: ::String?,
key_prefix: ::String?
},
?file_format: ("Csv"),
?include_member_accounts: bool
) -> _ExportIdleRecommendationsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ExportIdleRecommendationsResponseSuccess
|
#export_lambda_function_recommendations(params = {}) ⇒ Types::ExportLambdaFunctionRecommendationsResponse
Exports optimization recommendations for Lambda functions.
Recommendations are exported in a comma-separated values (.csv) file, and its metadata in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide.
You can have only one Lambda function export job in progress per Amazon Web Services Region.
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 |
# File 'sig/client.rbs', line 248
def export_lambda_function_recommendations: (
?account_ids: Array[::String],
?filters: Array[
{
name: ("Finding" | "FindingReasonCode")?,
values: Array[::String]?
}
],
?fields_to_export: Array[("AccountId" | "FunctionArn" | "FunctionVersion" | "Finding" | "FindingReasonCodes" | "NumberOfInvocations" | "UtilizationMetricsDurationMaximum" | "UtilizationMetricsDurationAverage" | "UtilizationMetricsMemoryMaximum" | "UtilizationMetricsMemoryAverage" | "LookbackPeriodInDays" | "CurrentConfigurationMemorySize" | "CurrentConfigurationTimeout" | "CurrentCostTotal" | "CurrentCostAverage" | "RecommendationOptionsConfigurationMemorySize" | "RecommendationOptionsCostLow" | "RecommendationOptionsCostHigh" | "RecommendationOptionsProjectedUtilizationMetricsDurationLowerBound" | "RecommendationOptionsProjectedUtilizationMetricsDurationUpperBound" | "RecommendationOptionsProjectedUtilizationMetricsDurationExpected" | "LastRefreshTimestamp" | "CurrentPerformanceRisk" | "RecommendationOptionsSavingsOpportunityPercentage" | "RecommendationOptionsEstimatedMonthlySavingsCurrency" | "RecommendationOptionsEstimatedMonthlySavingsValue" | "Tags" | "EffectiveRecommendationPreferencesSavingsEstimationMode" | "RecommendationOptionsSavingsOpportunityAfterDiscountsPercentage" | "RecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts" | "RecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts")],
s3_destination_config: {
bucket: ::String?,
key_prefix: ::String?
},
?file_format: ("Csv"),
?include_member_accounts: bool
) -> _ExportLambdaFunctionRecommendationsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ExportLambdaFunctionRecommendationsResponseSuccess
|
#export_license_recommendations(params = {}) ⇒ Types::ExportLicenseRecommendationsResponse
Export optimization recommendations for your licenses.
Recommendations are exported in a comma-separated values (CSV) file, and its metadata in a JavaScript Object Notation (JSON) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide.
You can have only one license export job in progress per Amazon Web Services Region.
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 |
# File 'sig/client.rbs', line 272
def export_license_recommendations: (
?account_ids: Array[::String],
?filters: Array[
{
name: ("Finding" | "FindingReasonCode" | "LicenseName")?,
values: Array[::String]?
}
],
?fields_to_export: Array[("AccountId" | "ResourceArn" | "LookbackPeriodInDays" | "LastRefreshTimestamp" | "Finding" | "FindingReasonCodes" | "CurrentLicenseConfigurationNumberOfCores" | "CurrentLicenseConfigurationInstanceType" | "CurrentLicenseConfigurationOperatingSystem" | "CurrentLicenseConfigurationLicenseName" | "CurrentLicenseConfigurationLicenseEdition" | "CurrentLicenseConfigurationLicenseModel" | "CurrentLicenseConfigurationLicenseVersion" | "CurrentLicenseConfigurationMetricsSource" | "RecommendationOptionsOperatingSystem" | "RecommendationOptionsLicenseEdition" | "RecommendationOptionsLicenseModel" | "RecommendationOptionsSavingsOpportunityPercentage" | "RecommendationOptionsEstimatedMonthlySavingsCurrency" | "RecommendationOptionsEstimatedMonthlySavingsValue" | "Tags")],
s3_destination_config: {
bucket: ::String?,
key_prefix: ::String?
},
?file_format: ("Csv"),
?include_member_accounts: bool
) -> _ExportLicenseRecommendationsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ExportLicenseRecommendationsResponseSuccess
|
#export_rds_database_recommendations(params = {}) ⇒ Types::ExportRDSDatabaseRecommendationsResponse
Export optimization recommendations for your Amazon Aurora and Amazon Relational Database Service (Amazon RDS) databases.
Recommendations are exported in a comma-separated values (CSV) file, and its metadata in a JavaScript Object Notation (JSON) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide.
You can have only one Amazon Aurora or RDS export job in progress per Amazon Web Services Region.
296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 |
# File 'sig/client.rbs', line 296
def export_rds_database_recommendations: (
?account_ids: Array[::String],
?filters: Array[
{
name: ("InstanceFinding" | "InstanceFindingReasonCode" | "StorageFinding" | "StorageFindingReasonCode" | "Idle")?,
values: Array[::String]?
}
],
?fields_to_export: Array[("ResourceArn" | "AccountId" | "Engine" | "EngineVersion" | "Idle" | "MultiAZDBInstance" | "ClusterWriter" | "CurrentDBInstanceClass" | "CurrentStorageConfigurationStorageType" | "CurrentStorageConfigurationAllocatedStorage" | "CurrentStorageConfigurationMaxAllocatedStorage" | "CurrentStorageConfigurationIOPS" | "CurrentStorageConfigurationStorageThroughput" | "CurrentStorageEstimatedMonthlyVolumeIOPsCostVariation" | "CurrentInstanceOnDemandHourlyPrice" | "CurrentStorageOnDemandMonthlyPrice" | "LookbackPeriodInDays" | "CurrentStorageEstimatedClusterInstanceOnDemandMonthlyCost" | "CurrentStorageEstimatedClusterStorageOnDemandMonthlyCost" | "CurrentStorageEstimatedClusterStorageIOOnDemandMonthlyCost" | "CurrentInstancePerformanceRisk" | "UtilizationMetricsCpuMaximum" | "UtilizationMetricsMemoryMaximum" | "UtilizationMetricsEBSVolumeStorageSpaceUtilizationMaximum" | "UtilizationMetricsNetworkReceiveThroughputMaximum" | "UtilizationMetricsNetworkTransmitThroughputMaximum" | "UtilizationMetricsEBSVolumeReadIOPSMaximum" | "UtilizationMetricsEBSVolumeWriteIOPSMaximum" | "UtilizationMetricsEBSVolumeReadThroughputMaximum" | "UtilizationMetricsEBSVolumeWriteThroughputMaximum" | "UtilizationMetricsDatabaseConnectionsMaximum" | "UtilizationMetricsStorageNetworkReceiveThroughputMaximum" | "UtilizationMetricsStorageNetworkTransmitThroughputMaximum" | "UtilizationMetricsAuroraMemoryHealthStateMaximum" | "UtilizationMetricsAuroraMemoryNumDeclinedSqlTotalMaximum" | "UtilizationMetricsAuroraMemoryNumKillConnTotalMaximum" | "UtilizationMetricsAuroraMemoryNumKillQueryTotalMaximum" | "UtilizationMetricsReadIOPSEphemeralStorageMaximum" | "UtilizationMetricsWriteIOPSEphemeralStorageMaximum" | "UtilizationMetricsVolumeBytesUsedAverage" | "UtilizationMetricsVolumeReadIOPsAverage" | "UtilizationMetricsVolumeWriteIOPsAverage" | "InstanceFinding" | "InstanceFindingReasonCodes" | "StorageFinding" | "StorageFindingReasonCodes" | "InstanceRecommendationOptionsDBInstanceClass" | "InstanceRecommendationOptionsRank" | "InstanceRecommendationOptionsPerformanceRisk" | "InstanceRecommendationOptionsProjectedUtilizationMetricsCpuMaximum" | "StorageRecommendationOptionsStorageType" | "StorageRecommendationOptionsAllocatedStorage" | "StorageRecommendationOptionsMaxAllocatedStorage" | "StorageRecommendationOptionsIOPS" | "StorageRecommendationOptionsStorageThroughput" | "StorageRecommendationOptionsRank" | "StorageRecommendationOptionsEstimatedMonthlyVolumeIOPsCostVariation" | "InstanceRecommendationOptionsInstanceOnDemandHourlyPrice" | "InstanceRecommendationOptionsSavingsOpportunityPercentage" | "InstanceRecommendationOptionsEstimatedMonthlySavingsCurrency" | "InstanceRecommendationOptionsEstimatedMonthlySavingsValue" | "InstanceRecommendationOptionsSavingsOpportunityAfterDiscountsPercentage" | "InstanceRecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts" | "InstanceRecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts" | "StorageRecommendationOptionsOnDemandMonthlyPrice" | "StorageRecommendationOptionsEstimatedClusterInstanceOnDemandMonthlyCost" | "StorageRecommendationOptionsEstimatedClusterStorageOnDemandMonthlyCost" | "StorageRecommendationOptionsEstimatedClusterStorageIOOnDemandMonthlyCost" | "StorageRecommendationOptionsSavingsOpportunityPercentage" | "StorageRecommendationOptionsEstimatedMonthlySavingsCurrency" | "StorageRecommendationOptionsEstimatedMonthlySavingsValue" | "StorageRecommendationOptionsSavingsOpportunityAfterDiscountsPercentage" | "StorageRecommendationOptionsEstimatedMonthlySavingsCurrencyAfterDiscounts" | "StorageRecommendationOptionsEstimatedMonthlySavingsValueAfterDiscounts" | "EffectiveRecommendationPreferencesCpuVendorArchitectures" | "EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics" | "EffectiveRecommendationPreferencesLookBackPeriod" | "EffectiveRecommendationPreferencesSavingsEstimationMode" | "LastRefreshTimestamp" | "Tags" | "DBClusterIdentifier" | "PromotionTier")],
s3_destination_config: {
bucket: ::String?,
key_prefix: ::String?
},
?file_format: ("Csv"),
?include_member_accounts: bool,
?recommendation_preferences: {
cpu_vendor_architectures: Array[("AWS_ARM64" | "CURRENT")]?
}
) -> _ExportRDSDatabaseRecommendationsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ExportRDSDatabaseRecommendationsResponseSuccess
|
#get_auto_scaling_group_recommendations(params = {}) ⇒ Types::GetAutoScalingGroupRecommendationsResponse
Returns Auto Scaling group recommendations.
Compute Optimizer generates recommendations for Amazon EC2 Auto Scaling groups that meet a specific set of requirements. For more information, see the Supported resources and requirements in the Compute Optimizer User Guide.
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 |
# File 'sig/client.rbs', line 324
def get_auto_scaling_group_recommendations: (
?account_ids: Array[::String],
?auto_scaling_group_arns: Array[::String],
?next_token: ::String,
?max_results: ::Integer,
?filters: Array[
{
name: ("Finding" | "FindingReasonCodes" | "RecommendationSourceType" | "InferredWorkloadTypes")?,
values: Array[::String]?
}
],
?recommendation_preferences: {
cpu_vendor_architectures: Array[("AWS_ARM64" | "CURRENT")]?
}
) -> _GetAutoScalingGroupRecommendationsResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetAutoScalingGroupRecommendationsResponseSuccess
|
#get_ebs_volume_recommendations(params = {}) ⇒ Types::GetEBSVolumeRecommendationsResponse
Returns Amazon Elastic Block Store (Amazon EBS) volume recommendations.
Compute Optimizer generates recommendations for Amazon EBS volumes that meet a specific set of requirements. For more information, see the Supported resources and requirements in the Compute Optimizer User Guide.
348 349 350 351 352 353 354 355 356 357 358 359 360 |
# File 'sig/client.rbs', line 348
def get_ebs_volume_recommendations: (
?volume_arns: Array[::String],
?next_token: ::String,
?max_results: ::Integer,
?filters: Array[
{
name: ("Finding")?,
values: Array[::String]?
}
],
?account_ids: Array[::String]
) -> _GetEBSVolumeRecommendationsResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEBSVolumeRecommendationsResponseSuccess
|
#get_ec2_instance_recommendations(params = {}) ⇒ Types::GetEC2InstanceRecommendationsResponse
Returns Amazon EC2 instance recommendations.
Compute Optimizer generates recommendations for Amazon Elastic Compute Cloud (Amazon EC2) instances that meet a specific set of requirements. For more information, see the Supported resources and requirements in the Compute Optimizer User Guide.
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 |
# File 'sig/client.rbs', line 369
def get_ec2_instance_recommendations: (
?instance_arns: Array[::String],
?next_token: ::String,
?max_results: ::Integer,
?filters: Array[
{
name: ("Finding" | "FindingReasonCodes" | "RecommendationSourceType" | "InferredWorkloadTypes")?,
values: Array[::String]?
}
],
?account_ids: Array[::String],
?recommendation_preferences: {
cpu_vendor_architectures: Array[("AWS_ARM64" | "CURRENT")]?
}
) -> _GetEC2InstanceRecommendationsResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEC2InstanceRecommendationsResponseSuccess
|
#get_ec2_recommendation_projected_metrics(params = {}) ⇒ Types::GetEC2RecommendationProjectedMetricsResponse
Returns the projected utilization metrics of Amazon EC2 instance recommendations.
Cpu and Memory metrics are the only projected utilization
metrics returned when you run this action. Additionally, the Memory
metric is returned only for resources that have the unified CloudWatch
agent installed on them. For more information, see Enabling Memory
Utilization with the CloudWatch Agent.
391 392 393 394 395 396 397 398 399 400 401 |
# File 'sig/client.rbs', line 391
def get_ec2_recommendation_projected_metrics: (
instance_arn: ::String,
stat: ("Maximum" | "Average"),
period: ::Integer,
start_time: ::Time,
end_time: ::Time,
?recommendation_preferences: {
cpu_vendor_architectures: Array[("AWS_ARM64" | "CURRENT")]?
}
) -> _GetEC2RecommendationProjectedMetricsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEC2RecommendationProjectedMetricsResponseSuccess
|
#get_ecs_service_recommendation_projected_metrics(params = {}) ⇒ Types::GetECSServiceRecommendationProjectedMetricsResponse
Returns the projected metrics of Amazon ECS service recommendations.
408 409 410 411 412 413 414 415 |
# File 'sig/client.rbs', line 408
def get_ecs_service_recommendation_projected_metrics: (
service_arn: ::String,
stat: ("Maximum" | "Average"),
period: ::Integer,
start_time: ::Time,
end_time: ::Time
) -> _GetECSServiceRecommendationProjectedMetricsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetECSServiceRecommendationProjectedMetricsResponseSuccess
|
#get_ecs_service_recommendations(params = {}) ⇒ Types::GetECSServiceRecommendationsResponse
Returns Amazon ECS service recommendations.
Compute Optimizer generates recommendations for Amazon ECS services on Fargate that meet a specific set of requirements. For more information, see the Supported resources and requirements in the Compute Optimizer User Guide.
424 425 426 427 428 429 430 431 432 433 434 435 436 |
# File 'sig/client.rbs', line 424
def get_ecs_service_recommendations: (
?service_arns: Array[::String],
?next_token: ::String,
?max_results: ::Integer,
?filters: Array[
{
name: ("Finding" | "FindingReasonCode")?,
values: Array[::String]?
}
],
?account_ids: Array[::String]
) -> _GetECSServiceRecommendationsResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetECSServiceRecommendationsResponseSuccess
|
#get_effective_recommendation_preferences(params = {}) ⇒ Types::GetEffectiveRecommendationPreferencesResponse
Returns the recommendation preferences that are in effect for a given resource, such as enhanced infrastructure metrics. Considers all applicable preferences that you might have set at the resource, account, and organization level.
When you create a recommendation preference, you can set its status to
Active or Inactive. Use this action to view the recommendation
preferences that are in effect, or Active.
447 448 449 450 |
# File 'sig/client.rbs', line 447
def get_effective_recommendation_preferences: (
resource_arn: ::String
) -> _GetEffectiveRecommendationPreferencesResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEffectiveRecommendationPreferencesResponseSuccess
|
#get_enrollment_status(params = {}) ⇒ Types::GetEnrollmentStatusResponse
Returns the enrollment (opt in) status of an account to the Compute Optimizer service.
If the account is the management account of an organization, this action also confirms the enrollment status of member accounts of the organization. Use the GetEnrollmentStatusesForOrganization action to get detailed information about the enrollment status of member accounts of an organization.
461 462 463 |
# File 'sig/client.rbs', line 461
def get_enrollment_status: (
) -> _GetEnrollmentStatusResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEnrollmentStatusResponseSuccess
|
#get_enrollment_statuses_for_organization(params = {}) ⇒ Types::GetEnrollmentStatusesForOrganizationResponse
Returns the Compute Optimizer enrollment (opt-in) status of organization member accounts, if your account is an organization management account.
To get the enrollment status of standalone accounts, use the GetEnrollmentStatus action.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
471 472 473 474 475 476 477 478 479 480 481 |
# File 'sig/client.rbs', line 471
def get_enrollment_statuses_for_organization: (
?filters: Array[
{
name: ("Status")?,
values: Array[::String]?
}
],
?next_token: ::String,
?max_results: ::Integer
) -> _GetEnrollmentStatusesForOrganizationResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEnrollmentStatusesForOrganizationResponseSuccess
|
#get_idle_recommendations(params = {}) ⇒ Types::GetIdleRecommendationsResponse
Returns idle resource recommendations. Compute Optimizer generates recommendations for idle resources that meet a specific set of requirements. For more information, see Resource requirements in the Compute Optimizer User Guide
490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 |
# File 'sig/client.rbs', line 490
def get_idle_recommendations: (
?resource_arns: Array[::String],
?next_token: ::String,
?max_results: ::Integer,
?filters: Array[
{
name: ("Finding" | "ResourceType")?,
values: Array[::String]?
}
],
?account_ids: Array[::String],
?order_by: {
dimension: ("SavingsValue" | "SavingsValueAfterDiscount")?,
order: ("Asc" | "Desc")?
}
) -> _GetIdleRecommendationsResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetIdleRecommendationsResponseSuccess
|
#get_lambda_function_recommendations(params = {}) ⇒ Types::GetLambdaFunctionRecommendationsResponse
Returns Lambda function recommendations.
Compute Optimizer generates recommendations for functions that meet a specific set of requirements. For more information, see the Supported resources and requirements in the Compute Optimizer User Guide.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
514 515 516 517 518 519 520 521 522 523 524 525 526 |
# File 'sig/client.rbs', line 514
def get_lambda_function_recommendations: (
?function_arns: Array[::String],
?account_ids: Array[::String],
?filters: Array[
{
name: ("Finding" | "FindingReasonCode")?,
values: Array[::String]?
}
],
?next_token: ::String,
?max_results: ::Integer
) -> _GetLambdaFunctionRecommendationsResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetLambdaFunctionRecommendationsResponseSuccess
|
#get_license_recommendations(params = {}) ⇒ Types::GetLicenseRecommendationsResponse
Returns license recommendations for Amazon EC2 instances that run on a specific license.
Compute Optimizer generates recommendations for licenses that meet a specific set of requirements. For more information, see the Supported resources and requirements in the Compute Optimizer User Guide.
535 536 537 538 539 540 541 542 543 544 545 546 547 |
# File 'sig/client.rbs', line 535
def get_license_recommendations: (
?resource_arns: Array[::String],
?next_token: ::String,
?max_results: ::Integer,
?filters: Array[
{
name: ("Finding" | "FindingReasonCode" | "LicenseName")?,
values: Array[::String]?
}
],
?account_ids: Array[::String]
) -> _GetLicenseRecommendationsResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetLicenseRecommendationsResponseSuccess
|
#get_rds_database_recommendation_projected_metrics(params = {}) ⇒ Types::GetRDSDatabaseRecommendationProjectedMetricsResponse
Returns the projected metrics of Aurora and RDS database recommendations.
554 555 556 557 558 559 560 561 562 563 564 |
# File 'sig/client.rbs', line 554
def get_rds_database_recommendation_projected_metrics: (
resource_arn: ::String,
stat: ("Maximum" | "Average"),
period: ::Integer,
start_time: ::Time,
end_time: ::Time,
?recommendation_preferences: {
cpu_vendor_architectures: Array[("AWS_ARM64" | "CURRENT")]?
}
) -> _GetRDSDatabaseRecommendationProjectedMetricsResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetRDSDatabaseRecommendationProjectedMetricsResponseSuccess
|
#get_rds_database_recommendations(params = {}) ⇒ Types::GetRDSDatabaseRecommendationsResponse
Returns Amazon Aurora and RDS database recommendations.
Compute Optimizer generates recommendations for Amazon Aurora and RDS databases that meet a specific set of requirements. For more information, see the Supported resources and requirements in the Compute Optimizer User Guide.
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 |
# File 'sig/client.rbs', line 573
def get_rds_database_recommendations: (
?resource_arns: Array[::String],
?next_token: ::String,
?max_results: ::Integer,
?filters: Array[
{
name: ("InstanceFinding" | "InstanceFindingReasonCode" | "StorageFinding" | "StorageFindingReasonCode" | "Idle")?,
values: Array[::String]?
}
],
?account_ids: Array[::String],
?recommendation_preferences: {
cpu_vendor_architectures: Array[("AWS_ARM64" | "CURRENT")]?
}
) -> _GetRDSDatabaseRecommendationsResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetRDSDatabaseRecommendationsResponseSuccess
|
#get_recommendation_preferences(params = {}) ⇒ Types::GetRecommendationPreferencesResponse
Returns existing recommendation preferences, such as enhanced infrastructure metrics.
Use the scope parameter to specify which preferences to return. You
can specify to return preferences for an organization, a specific
account ID, or a specific EC2 instance or Auto Scaling group Amazon
Resource Name (ARN).
For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
596 597 598 599 600 601 602 603 604 605 |
# File 'sig/client.rbs', line 596
def get_recommendation_preferences: (
resource_type: ("Ec2Instance" | "AutoScalingGroup" | "EbsVolume" | "LambdaFunction" | "NotApplicable" | "EcsService" | "License" | "RdsDBInstance" | "AuroraDBClusterStorage" | "Idle"),
?scope: {
name: ("Organization" | "AccountId" | "ResourceArn")?,
value: ::String?
},
?next_token: ::String,
?max_results: ::Integer
) -> _GetRecommendationPreferencesResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetRecommendationPreferencesResponseSuccess
|
#get_recommendation_summaries(params = {}) ⇒ Types::GetRecommendationSummariesResponse
Returns the optimization findings for an account.
It returns the number of:
-
Amazon EC2 instances in an account that are
Underprovisioned,Overprovisioned, orOptimized. -
EC2Auto Scaling groups in an account that are
NotOptimized, orOptimized. -
Amazon EBS volumes in an account that are
NotOptimized, orOptimized. -
Lambda functions in an account that are
NotOptimized, orOptimized. -
Amazon ECS services in an account that are
Underprovisioned,Overprovisioned, orOptimized. -
Commercial software licenses in an account that are
InsufficientMetrics,NotOptimizedorOptimized. -
Amazon Aurora and Amazon RDS databases in an account that are
Underprovisioned,Overprovisioned,Optimized, orNotOptimized.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
613 614 615 616 617 618 |
# File 'sig/client.rbs', line 613
def get_recommendation_summaries: (
?account_ids: Array[::String],
?next_token: ::String,
?max_results: ::Integer
) -> _GetRecommendationSummariesResponseSuccess
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetRecommendationSummariesResponseSuccess
|
#put_recommendation_preferences(params = {}) ⇒ Struct
Creates a new recommendation preference or updates an existing recommendation preference, such as enhanced infrastructure metrics.
For more information, see Activating enhanced infrastructure metrics in the Compute Optimizer User Guide.
624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 |
# File 'sig/client.rbs', line 624
def put_recommendation_preferences: (
resource_type: ("Ec2Instance" | "AutoScalingGroup" | "EbsVolume" | "LambdaFunction" | "NotApplicable" | "EcsService" | "License" | "RdsDBInstance" | "AuroraDBClusterStorage" | "Idle"),
?scope: {
name: ("Organization" | "AccountId" | "ResourceArn")?,
value: ::String?
},
?enhanced_infrastructure_metrics: ("Active" | "Inactive"),
?inferred_workload_types: ("Active" | "Inactive"),
?external_metrics_preference: {
source: ("Datadog" | "Dynatrace" | "NewRelic" | "Instana")?
},
?look_back_period: ("DAYS_14" | "DAYS_32" | "DAYS_93"),
?utilization_preferences: Array[
{
metric_name: ("CpuUtilization" | "MemoryUtilization")?,
metric_parameters: {
threshold: ("P90" | "P95" | "P99_5")?,
headroom: ("PERCENT_30" | "PERCENT_20" | "PERCENT_10" | "PERCENT_0")?
}?
}
],
?preferred_resources: Array[
{
name: ("Ec2InstanceTypes")?,
include_list: Array[::String]?,
exclude_list: Array[::String]?
}
],
?savings_estimation_mode: ("AfterDiscounts" | "BeforeDiscounts")
) -> _PutRecommendationPreferencesResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutRecommendationPreferencesResponseSuccess
|
#update_enrollment_status(params = {}) ⇒ Types::UpdateEnrollmentStatusResponse
Updates the enrollment (opt in and opt out) status of an account to the Compute Optimizer service.
If the account is a management account of an organization, this action can also be used to enroll member accounts of the organization.
You must have the appropriate permissions to opt in to Compute Optimizer, to view its recommendations, and to opt out. For more information, see Controlling access with Amazon Web Services Identity and Access Management in the Compute Optimizer User Guide.
When you opt in, Compute Optimizer automatically creates a service-linked role in your account to access its data. For more information, see Using Service-Linked Roles for Compute Optimizer in the Compute Optimizer User Guide.
662 663 664 665 666 |
# File 'sig/client.rbs', line 662
def update_enrollment_status: (
status: ("Active" | "Inactive" | "Pending" | "Failed"),
?include_member_accounts: bool
) -> _UpdateEnrollmentStatusResponseSuccess
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateEnrollmentStatusResponseSuccess
|
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3612 3613 3614 |
# File 'lib/aws-sdk-computeoptimizer/client.rb', line 3612 def waiter_names [] end |