aws-sdk-computeoptimizer 1.23.0 → 1.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-computeoptimizer/client.rb +300 -10
- data/lib/aws-sdk-computeoptimizer/client_api.rb +166 -0
- data/lib/aws-sdk-computeoptimizer/types.rb +625 -23
- data/lib/aws-sdk-computeoptimizer.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a8054be8736a691e048766117fadab4b01a574d390f95a60a0f1e0c97fd8b8d
|
4
|
+
data.tar.gz: 4b63db8cd638565072f5fe99d0c7317305506687b1eb49549bbfe69b1d8984a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62fba6e27162650ee43d4b0461d99c0ddb40a51b55761d914d8325f5004c8e8a51de295a0c18b9277d29c9f20f044bd6c12be828f3f27caa683805abe19a5f92
|
7
|
+
data.tar.gz: 5b7a91ef7762e3fcde72d180d6871fbcaddd984e037b4cc5115a75a7c2486379fd0e20e5a465e52000bd37e6f618f2849989e1671fa6cc4877706d38963d5f8d
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.27.0 (2021-11-29)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Adds support for the enhanced infrastructure metrics paid feature. Also adds support for two new sets of resource efficiency metrics, including savings opportunity metrics and performance improvement opportunity metrics.
|
8
|
+
|
9
|
+
1.26.0 (2021-11-04)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.25.0 (2021-10-18)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.24.0 (2021-09-01)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
4
24
|
1.23.0 (2021-08-31)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.27.0
|
@@ -285,6 +285,15 @@ module Aws::ComputeOptimizer
|
|
285
285
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
286
286
|
# requests are made, and retries are disabled.
|
287
287
|
#
|
288
|
+
# @option options [Boolean] :use_dualstack_endpoint
|
289
|
+
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
290
|
+
# will be used if available.
|
291
|
+
#
|
292
|
+
# @option options [Boolean] :use_fips_endpoint
|
293
|
+
# When set to `true`, fips compatible endpoints will be used if available.
|
294
|
+
# When a `fips` region is used, the region is normalized and this config
|
295
|
+
# is set to `true`.
|
296
|
+
#
|
288
297
|
# @option options [Boolean] :validate_params (true)
|
289
298
|
# When `true`, request parameters are validated before
|
290
299
|
# sending the request.
|
@@ -337,6 +346,67 @@ module Aws::ComputeOptimizer
|
|
337
346
|
|
338
347
|
# @!group API Operations
|
339
348
|
|
349
|
+
# Deletes a recommendation preference, such as enhanced infrastructure
|
350
|
+
# metrics.
|
351
|
+
#
|
352
|
+
# For more information, see [Activating enhanced infrastructure
|
353
|
+
# metrics][1] in the *Compute Optimizer User Guide*.
|
354
|
+
#
|
355
|
+
#
|
356
|
+
#
|
357
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
|
358
|
+
#
|
359
|
+
# @option params [required, String] :resource_type
|
360
|
+
# The target resource type of the recommendation preference to delete.
|
361
|
+
#
|
362
|
+
# The `Ec2Instance` option encompasses standalone instances and
|
363
|
+
# instances that are part of Auto Scaling groups. The `AutoScalingGroup`
|
364
|
+
# option encompasses only instances that are part of an Auto Scaling
|
365
|
+
# group.
|
366
|
+
#
|
367
|
+
# @option params [Types::Scope] :scope
|
368
|
+
# An object that describes the scope of the recommendation preference to
|
369
|
+
# delete.
|
370
|
+
#
|
371
|
+
# You can delete recommendation preferences that are created at the
|
372
|
+
# organization level (for management accounts of an organization only),
|
373
|
+
# account level, and resource level. For more information, see
|
374
|
+
# [Activating enhanced infrastructure metrics][1] in the *Compute
|
375
|
+
# Optimizer User Guide*.
|
376
|
+
#
|
377
|
+
#
|
378
|
+
#
|
379
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
|
380
|
+
#
|
381
|
+
# @option params [required, Array<String>] :recommendation_preference_names
|
382
|
+
# The name of the recommendation preference to delete.
|
383
|
+
#
|
384
|
+
# Enhanced infrastructure metrics (`EnhancedInfrastructureMetrics`) is
|
385
|
+
# the only feature that can be activated through preferences. Therefore,
|
386
|
+
# it is also the only recommendation preference that can be deleted.
|
387
|
+
#
|
388
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
389
|
+
#
|
390
|
+
# @example Request syntax with placeholder values
|
391
|
+
#
|
392
|
+
# resp = client.delete_recommendation_preferences({
|
393
|
+
# resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction
|
394
|
+
# scope: {
|
395
|
+
# name: "Organization", # accepts Organization, AccountId, ResourceArn
|
396
|
+
# value: "ScopeValue",
|
397
|
+
# },
|
398
|
+
# recommendation_preference_names: ["EnhancedInfrastructureMetrics"], # required, accepts EnhancedInfrastructureMetrics
|
399
|
+
# })
|
400
|
+
#
|
401
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/DeleteRecommendationPreferences AWS API Documentation
|
402
|
+
#
|
403
|
+
# @overload delete_recommendation_preferences(params = {})
|
404
|
+
# @param [Hash] params ({})
|
405
|
+
def delete_recommendation_preferences(params = {}, options = {})
|
406
|
+
req = build_request(:delete_recommendation_preferences, params)
|
407
|
+
req.send_request(options)
|
408
|
+
end
|
409
|
+
|
340
410
|
# Describes recommendation export jobs created in the last seven days.
|
341
411
|
#
|
342
412
|
# Use the ExportAutoScalingGroupRecommendations or
|
@@ -519,7 +589,7 @@ module Aws::ComputeOptimizer
|
|
519
589
|
# values: ["FilterValue"],
|
520
590
|
# },
|
521
591
|
# ],
|
522
|
-
# fields_to_export: ["AccountId"], # accepts AccountId, AutoScalingGroupArn, AutoScalingGroupName, Finding, UtilizationMetricsCpuMaximum, UtilizationMetricsMemoryMaximum, UtilizationMetricsEbsReadOpsPerSecondMaximum, UtilizationMetricsEbsWriteOpsPerSecondMaximum, UtilizationMetricsEbsReadBytesPerSecondMaximum, UtilizationMetricsEbsWriteBytesPerSecondMaximum, UtilizationMetricsDiskReadOpsPerSecondMaximum, UtilizationMetricsDiskWriteOpsPerSecondMaximum, UtilizationMetricsDiskReadBytesPerSecondMaximum, UtilizationMetricsDiskWriteBytesPerSecondMaximum, UtilizationMetricsNetworkInBytesPerSecondMaximum, UtilizationMetricsNetworkOutBytesPerSecondMaximum, UtilizationMetricsNetworkPacketsInPerSecondMaximum, UtilizationMetricsNetworkPacketsOutPerSecondMaximum, LookbackPeriodInDays, CurrentConfigurationInstanceType, CurrentConfigurationDesiredCapacity, CurrentConfigurationMinSize, CurrentConfigurationMaxSize, CurrentOnDemandPrice, CurrentStandardOneYearNoUpfrontReservedPrice, CurrentStandardThreeYearNoUpfrontReservedPrice, CurrentVCpus, CurrentMemory, CurrentStorage, CurrentNetwork, RecommendationOptionsConfigurationInstanceType, RecommendationOptionsConfigurationDesiredCapacity, RecommendationOptionsConfigurationMinSize, RecommendationOptionsConfigurationMaxSize, RecommendationOptionsProjectedUtilizationMetricsCpuMaximum, RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum, RecommendationOptionsPerformanceRisk, RecommendationOptionsOnDemandPrice, RecommendationOptionsStandardOneYearNoUpfrontReservedPrice, RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice, RecommendationOptionsVcpus, RecommendationOptionsMemory, RecommendationOptionsStorage, RecommendationOptionsNetwork, LastRefreshTimestamp
|
592
|
+
# fields_to_export: ["AccountId"], # accepts AccountId, AutoScalingGroupArn, AutoScalingGroupName, Finding, UtilizationMetricsCpuMaximum, UtilizationMetricsMemoryMaximum, UtilizationMetricsEbsReadOpsPerSecondMaximum, UtilizationMetricsEbsWriteOpsPerSecondMaximum, UtilizationMetricsEbsReadBytesPerSecondMaximum, UtilizationMetricsEbsWriteBytesPerSecondMaximum, UtilizationMetricsDiskReadOpsPerSecondMaximum, UtilizationMetricsDiskWriteOpsPerSecondMaximum, UtilizationMetricsDiskReadBytesPerSecondMaximum, UtilizationMetricsDiskWriteBytesPerSecondMaximum, UtilizationMetricsNetworkInBytesPerSecondMaximum, UtilizationMetricsNetworkOutBytesPerSecondMaximum, UtilizationMetricsNetworkPacketsInPerSecondMaximum, UtilizationMetricsNetworkPacketsOutPerSecondMaximum, LookbackPeriodInDays, CurrentConfigurationInstanceType, CurrentConfigurationDesiredCapacity, CurrentConfigurationMinSize, CurrentConfigurationMaxSize, CurrentOnDemandPrice, CurrentStandardOneYearNoUpfrontReservedPrice, CurrentStandardThreeYearNoUpfrontReservedPrice, CurrentVCpus, CurrentMemory, CurrentStorage, CurrentNetwork, RecommendationOptionsConfigurationInstanceType, RecommendationOptionsConfigurationDesiredCapacity, RecommendationOptionsConfigurationMinSize, RecommendationOptionsConfigurationMaxSize, RecommendationOptionsProjectedUtilizationMetricsCpuMaximum, RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum, RecommendationOptionsPerformanceRisk, RecommendationOptionsOnDemandPrice, RecommendationOptionsStandardOneYearNoUpfrontReservedPrice, RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice, RecommendationOptionsVcpus, RecommendationOptionsMemory, RecommendationOptionsStorage, RecommendationOptionsNetwork, LastRefreshTimestamp, CurrentPerformanceRisk, RecommendationOptionsSavingsOpportunityPercentage, RecommendationOptionsEstimatedMonthlySavingsCurrency, RecommendationOptionsEstimatedMonthlySavingsValue, EffectiveRecommendationPreferencesCpuVendorArchitectures, EffectiveRecommendationPreferencesEnhancedInfrastructureMetrics
|
523
593
|
# s3_destination_config: { # required
|
524
594
|
# bucket: "DestinationBucket",
|
525
595
|
# key_prefix: "DestinationKeyPrefix",
|
@@ -653,7 +723,7 @@ module Aws::ComputeOptimizer
|
|
653
723
|
# values: ["FilterValue"],
|
654
724
|
# },
|
655
725
|
# ],
|
656
|
-
# fields_to_export: ["AccountId"], # accepts AccountId, VolumeArn, Finding, UtilizationMetricsVolumeReadOpsPerSecondMaximum, UtilizationMetricsVolumeWriteOpsPerSecondMaximum, UtilizationMetricsVolumeReadBytesPerSecondMaximum, UtilizationMetricsVolumeWriteBytesPerSecondMaximum, LookbackPeriodInDays, CurrentConfigurationVolumeType, CurrentConfigurationVolumeBaselineIOPS, CurrentConfigurationVolumeBaselineThroughput, CurrentConfigurationVolumeBurstIOPS, CurrentConfigurationVolumeBurstThroughput, CurrentConfigurationVolumeSize, CurrentMonthlyPrice, RecommendationOptionsConfigurationVolumeType, RecommendationOptionsConfigurationVolumeBaselineIOPS, RecommendationOptionsConfigurationVolumeBaselineThroughput, RecommendationOptionsConfigurationVolumeBurstIOPS, RecommendationOptionsConfigurationVolumeBurstThroughput, RecommendationOptionsConfigurationVolumeSize, RecommendationOptionsMonthlyPrice, RecommendationOptionsPerformanceRisk, LastRefreshTimestamp
|
726
|
+
# fields_to_export: ["AccountId"], # accepts AccountId, VolumeArn, Finding, UtilizationMetricsVolumeReadOpsPerSecondMaximum, UtilizationMetricsVolumeWriteOpsPerSecondMaximum, UtilizationMetricsVolumeReadBytesPerSecondMaximum, UtilizationMetricsVolumeWriteBytesPerSecondMaximum, LookbackPeriodInDays, CurrentConfigurationVolumeType, CurrentConfigurationVolumeBaselineIOPS, CurrentConfigurationVolumeBaselineThroughput, CurrentConfigurationVolumeBurstIOPS, CurrentConfigurationVolumeBurstThroughput, CurrentConfigurationVolumeSize, CurrentMonthlyPrice, RecommendationOptionsConfigurationVolumeType, RecommendationOptionsConfigurationVolumeBaselineIOPS, RecommendationOptionsConfigurationVolumeBaselineThroughput, RecommendationOptionsConfigurationVolumeBurstIOPS, RecommendationOptionsConfigurationVolumeBurstThroughput, RecommendationOptionsConfigurationVolumeSize, RecommendationOptionsMonthlyPrice, RecommendationOptionsPerformanceRisk, LastRefreshTimestamp, CurrentPerformanceRisk, RecommendationOptionsSavingsOpportunityPercentage, RecommendationOptionsEstimatedMonthlySavingsCurrency, RecommendationOptionsEstimatedMonthlySavingsValue
|
657
727
|
# s3_destination_config: { # required
|
658
728
|
# bucket: "DestinationBucket",
|
659
729
|
# key_prefix: "DestinationKeyPrefix",
|
@@ -729,11 +799,11 @@ module Aws::ComputeOptimizer
|
|
729
799
|
# You must create the destination Amazon S3 bucket for your
|
730
800
|
# recommendations export before you create the export job. Compute
|
731
801
|
# Optimizer does not create the S3 bucket for you. After you create the
|
732
|
-
# S3 bucket, ensure that it has the required permissions policy
|
733
|
-
#
|
734
|
-
#
|
735
|
-
# include the object prefix in the that you add to the S3 bucket.
|
736
|
-
# more information, see [Amazon S3 Bucket Policy for Compute
|
802
|
+
# S3 bucket, ensure that it has the required permissions policy to allow
|
803
|
+
# Compute Optimizer to write the export file to it. If you plan to
|
804
|
+
# specify an object prefix when you create the export job, you must
|
805
|
+
# include the object prefix in the policy that you add to the S3 bucket.
|
806
|
+
# For more information, see [Amazon S3 Bucket Policy for Compute
|
737
807
|
# Optimizer][1] in the *Compute Optimizer User Guide*.
|
738
808
|
#
|
739
809
|
#
|
@@ -785,7 +855,7 @@ module Aws::ComputeOptimizer
|
|
785
855
|
# values: ["FilterValue"],
|
786
856
|
# },
|
787
857
|
# ],
|
788
|
-
# fields_to_export: ["AccountId"], # accepts 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
|
858
|
+
# fields_to_export: ["AccountId"], # accepts 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
|
789
859
|
# s3_destination_config: { # required
|
790
860
|
# bucket: "DestinationBucket",
|
791
861
|
# key_prefix: "DestinationKeyPrefix",
|
@@ -919,7 +989,7 @@ module Aws::ComputeOptimizer
|
|
919
989
|
# values: ["FilterValue"],
|
920
990
|
# },
|
921
991
|
# ],
|
922
|
-
# fields_to_export: ["AccountId"], # accepts AccountId, FunctionArn, FunctionVersion, Finding, FindingReasonCodes, NumberOfInvocations, UtilizationMetricsDurationMaximum, UtilizationMetricsDurationAverage, UtilizationMetricsMemoryMaximum, UtilizationMetricsMemoryAverage, LookbackPeriodInDays, CurrentConfigurationMemorySize, CurrentConfigurationTimeout, CurrentCostTotal, CurrentCostAverage, RecommendationOptionsConfigurationMemorySize, RecommendationOptionsCostLow, RecommendationOptionsCostHigh, RecommendationOptionsProjectedUtilizationMetricsDurationLowerBound, RecommendationOptionsProjectedUtilizationMetricsDurationUpperBound, RecommendationOptionsProjectedUtilizationMetricsDurationExpected, LastRefreshTimestamp
|
992
|
+
# fields_to_export: ["AccountId"], # accepts 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
|
923
993
|
# s3_destination_config: { # required
|
924
994
|
# bucket: "DestinationBucket",
|
925
995
|
# key_prefix: "DestinationKeyPrefix",
|
@@ -1040,7 +1110,14 @@ module Aws::ComputeOptimizer
|
|
1040
1110
|
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].value #=> Float
|
1041
1111
|
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].performance_risk #=> Float
|
1042
1112
|
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].rank #=> Integer
|
1113
|
+
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].savings_opportunity.savings_opportunity_percentage #=> Float
|
1114
|
+
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
|
1115
|
+
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.value #=> Float
|
1043
1116
|
# resp.auto_scaling_group_recommendations[0].last_refresh_timestamp #=> Time
|
1117
|
+
# resp.auto_scaling_group_recommendations[0].current_performance_risk #=> String, one of "VeryLow", "Low", "Medium", "High"
|
1118
|
+
# resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures #=> Array
|
1119
|
+
# resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures[0] #=> String, one of "AWS_ARM64", "CURRENT"
|
1120
|
+
# resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
|
1044
1121
|
# resp.errors #=> Array
|
1045
1122
|
# resp.errors[0].identifier #=> String
|
1046
1123
|
# resp.errors[0].code #=> String
|
@@ -1143,7 +1220,11 @@ module Aws::ComputeOptimizer
|
|
1143
1220
|
# resp.volume_recommendations[0].volume_recommendation_options[0].configuration.volume_burst_throughput #=> Integer
|
1144
1221
|
# resp.volume_recommendations[0].volume_recommendation_options[0].performance_risk #=> Float
|
1145
1222
|
# resp.volume_recommendations[0].volume_recommendation_options[0].rank #=> Integer
|
1223
|
+
# resp.volume_recommendations[0].volume_recommendation_options[0].savings_opportunity.savings_opportunity_percentage #=> Float
|
1224
|
+
# resp.volume_recommendations[0].volume_recommendation_options[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
|
1225
|
+
# resp.volume_recommendations[0].volume_recommendation_options[0].savings_opportunity.estimated_monthly_savings.value #=> Float
|
1146
1226
|
# resp.volume_recommendations[0].last_refresh_timestamp #=> Time
|
1227
|
+
# resp.volume_recommendations[0].current_performance_risk #=> String, one of "VeryLow", "Low", "Medium", "High"
|
1147
1228
|
# resp.errors #=> Array
|
1148
1229
|
# resp.errors[0].identifier #=> String
|
1149
1230
|
# resp.errors[0].code #=> String
|
@@ -1251,10 +1332,17 @@ module Aws::ComputeOptimizer
|
|
1251
1332
|
# resp.instance_recommendations[0].recommendation_options[0].platform_differences[0] #=> String, one of "Hypervisor", "NetworkInterface", "StorageInterface", "InstanceStoreAvailability", "VirtualizationType", "Architecture"
|
1252
1333
|
# resp.instance_recommendations[0].recommendation_options[0].performance_risk #=> Float
|
1253
1334
|
# resp.instance_recommendations[0].recommendation_options[0].rank #=> Integer
|
1335
|
+
# resp.instance_recommendations[0].recommendation_options[0].savings_opportunity.savings_opportunity_percentage #=> Float
|
1336
|
+
# resp.instance_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
|
1337
|
+
# resp.instance_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.value #=> Float
|
1254
1338
|
# resp.instance_recommendations[0].recommendation_sources #=> Array
|
1255
1339
|
# resp.instance_recommendations[0].recommendation_sources[0].recommendation_source_arn #=> String
|
1256
1340
|
# resp.instance_recommendations[0].recommendation_sources[0].recommendation_source_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
|
1257
1341
|
# resp.instance_recommendations[0].last_refresh_timestamp #=> Time
|
1342
|
+
# resp.instance_recommendations[0].current_performance_risk #=> String, one of "VeryLow", "Low", "Medium", "High"
|
1343
|
+
# resp.instance_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures #=> Array
|
1344
|
+
# resp.instance_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures[0] #=> String, one of "AWS_ARM64", "CURRENT"
|
1345
|
+
# resp.instance_recommendations[0].effective_recommendation_preferences.enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
|
1258
1346
|
# resp.errors #=> Array
|
1259
1347
|
# resp.errors[0].identifier #=> String
|
1260
1348
|
# resp.errors[0].code #=> String
|
@@ -1342,6 +1430,43 @@ module Aws::ComputeOptimizer
|
|
1342
1430
|
req.send_request(options)
|
1343
1431
|
end
|
1344
1432
|
|
1433
|
+
# Returns the recommendation preferences that are in effect for a given
|
1434
|
+
# resource, such as enhanced infrastructure metrics. Considers all
|
1435
|
+
# applicable preferences that you might have set at the resource,
|
1436
|
+
# account, and organization level.
|
1437
|
+
#
|
1438
|
+
# When you create a recommendation preference, you can set its status to
|
1439
|
+
# `Active` or `Inactive`. Use this action to view the recommendation
|
1440
|
+
# preferences that are in effect, or `Active`.
|
1441
|
+
#
|
1442
|
+
# @option params [required, String] :resource_arn
|
1443
|
+
# The Amazon Resource Name (ARN) of the resource for which to confirm
|
1444
|
+
# effective recommendation preferences. Only EC2 instance and Auto
|
1445
|
+
# Scaling group ARNs are currently supported.
|
1446
|
+
#
|
1447
|
+
# @return [Types::GetEffectiveRecommendationPreferencesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1448
|
+
#
|
1449
|
+
# * {Types::GetEffectiveRecommendationPreferencesResponse#enhanced_infrastructure_metrics #enhanced_infrastructure_metrics} => String
|
1450
|
+
#
|
1451
|
+
# @example Request syntax with placeholder values
|
1452
|
+
#
|
1453
|
+
# resp = client.get_effective_recommendation_preferences({
|
1454
|
+
# resource_arn: "ResourceArn", # required
|
1455
|
+
# })
|
1456
|
+
#
|
1457
|
+
# @example Response structure
|
1458
|
+
#
|
1459
|
+
# resp.enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
|
1460
|
+
#
|
1461
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetEffectiveRecommendationPreferences AWS API Documentation
|
1462
|
+
#
|
1463
|
+
# @overload get_effective_recommendation_preferences(params = {})
|
1464
|
+
# @param [Hash] params ({})
|
1465
|
+
def get_effective_recommendation_preferences(params = {}, options = {})
|
1466
|
+
req = build_request(:get_effective_recommendation_preferences, params)
|
1467
|
+
req.send_request(options)
|
1468
|
+
end
|
1469
|
+
|
1345
1470
|
# Returns the enrollment (opt in) status of an account to the Compute
|
1346
1471
|
# Optimizer service.
|
1347
1472
|
#
|
@@ -1529,6 +1654,10 @@ module Aws::ComputeOptimizer
|
|
1529
1654
|
# resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics[0].name #=> String, one of "Duration"
|
1530
1655
|
# resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics[0].statistic #=> String, one of "LowerBound", "UpperBound", "Expected"
|
1531
1656
|
# resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics[0].value #=> Float
|
1657
|
+
# resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].savings_opportunity.savings_opportunity_percentage #=> Float
|
1658
|
+
# resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
|
1659
|
+
# resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].savings_opportunity.estimated_monthly_savings.value #=> Float
|
1660
|
+
# resp.lambda_function_recommendations[0].current_performance_risk #=> String, one of "VeryLow", "Low", "Medium", "High"
|
1532
1661
|
#
|
1533
1662
|
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetLambdaFunctionRecommendations AWS API Documentation
|
1534
1663
|
#
|
@@ -1539,6 +1668,89 @@ module Aws::ComputeOptimizer
|
|
1539
1668
|
req.send_request(options)
|
1540
1669
|
end
|
1541
1670
|
|
1671
|
+
# Returns existing recommendation preferences, such as enhanced
|
1672
|
+
# infrastructure metrics.
|
1673
|
+
#
|
1674
|
+
# Use the `scope` parameter to specify which preferences to return. You
|
1675
|
+
# can specify to return preferences for an organization, a specific
|
1676
|
+
# account ID, or a specific EC2 instance or Auto Scaling group Amazon
|
1677
|
+
# Resource Name (ARN).
|
1678
|
+
#
|
1679
|
+
# For more information, see [Activating enhanced infrastructure
|
1680
|
+
# metrics][1] in the *Compute Optimizer User Guide*.
|
1681
|
+
#
|
1682
|
+
#
|
1683
|
+
#
|
1684
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
|
1685
|
+
#
|
1686
|
+
# @option params [required, String] :resource_type
|
1687
|
+
# The target resource type of the recommendation preference for which to
|
1688
|
+
# return preferences.
|
1689
|
+
#
|
1690
|
+
# The `Ec2Instance` option encompasses standalone instances and
|
1691
|
+
# instances that are part of Auto Scaling groups. The `AutoScalingGroup`
|
1692
|
+
# option encompasses only instances that are part of an Auto Scaling
|
1693
|
+
# group.
|
1694
|
+
#
|
1695
|
+
# @option params [Types::Scope] :scope
|
1696
|
+
# An object that describes the scope of the recommendation preference to
|
1697
|
+
# return.
|
1698
|
+
#
|
1699
|
+
# You can return recommendation preferences that are created at the
|
1700
|
+
# organization level (for management accounts of an organization only),
|
1701
|
+
# account level, and resource level. For more information, see
|
1702
|
+
# [Activating enhanced infrastructure metrics][1] in the *Compute
|
1703
|
+
# Optimizer User Guide*.
|
1704
|
+
#
|
1705
|
+
#
|
1706
|
+
#
|
1707
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
|
1708
|
+
#
|
1709
|
+
# @option params [String] :next_token
|
1710
|
+
# The token to advance to the next page of recommendation preferences.
|
1711
|
+
#
|
1712
|
+
# @option params [Integer] :max_results
|
1713
|
+
# The maximum number of recommendation preferences to return with a
|
1714
|
+
# single request.
|
1715
|
+
#
|
1716
|
+
# To retrieve the remaining results, make another request with the
|
1717
|
+
# returned `nextToken` value.
|
1718
|
+
#
|
1719
|
+
# @return [Types::GetRecommendationPreferencesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1720
|
+
#
|
1721
|
+
# * {Types::GetRecommendationPreferencesResponse#next_token #next_token} => String
|
1722
|
+
# * {Types::GetRecommendationPreferencesResponse#recommendation_preferences_details #recommendation_preferences_details} => Array<Types::RecommendationPreferencesDetail>
|
1723
|
+
#
|
1724
|
+
# @example Request syntax with placeholder values
|
1725
|
+
#
|
1726
|
+
# resp = client.get_recommendation_preferences({
|
1727
|
+
# resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction
|
1728
|
+
# scope: {
|
1729
|
+
# name: "Organization", # accepts Organization, AccountId, ResourceArn
|
1730
|
+
# value: "ScopeValue",
|
1731
|
+
# },
|
1732
|
+
# next_token: "NextToken",
|
1733
|
+
# max_results: 1,
|
1734
|
+
# })
|
1735
|
+
#
|
1736
|
+
# @example Response structure
|
1737
|
+
#
|
1738
|
+
# resp.next_token #=> String
|
1739
|
+
# resp.recommendation_preferences_details #=> Array
|
1740
|
+
# resp.recommendation_preferences_details[0].scope.name #=> String, one of "Organization", "AccountId", "ResourceArn"
|
1741
|
+
# resp.recommendation_preferences_details[0].scope.value #=> String
|
1742
|
+
# resp.recommendation_preferences_details[0].resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
|
1743
|
+
# resp.recommendation_preferences_details[0].enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
|
1744
|
+
#
|
1745
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetRecommendationPreferences AWS API Documentation
|
1746
|
+
#
|
1747
|
+
# @overload get_recommendation_preferences(params = {})
|
1748
|
+
# @param [Hash] params ({})
|
1749
|
+
def get_recommendation_preferences(params = {}, options = {})
|
1750
|
+
req = build_request(:get_recommendation_preferences, params)
|
1751
|
+
req.send_request(options)
|
1752
|
+
end
|
1753
|
+
|
1542
1754
|
# Returns the optimization findings for an account.
|
1543
1755
|
#
|
1544
1756
|
# It returns the number of:
|
@@ -1600,6 +1812,13 @@ module Aws::ComputeOptimizer
|
|
1600
1812
|
# resp.recommendation_summaries[0].summaries[0].reason_code_summaries[0].value #=> Float
|
1601
1813
|
# resp.recommendation_summaries[0].recommendation_resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
|
1602
1814
|
# resp.recommendation_summaries[0].account_id #=> String
|
1815
|
+
# resp.recommendation_summaries[0].savings_opportunity.savings_opportunity_percentage #=> Float
|
1816
|
+
# resp.recommendation_summaries[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
|
1817
|
+
# resp.recommendation_summaries[0].savings_opportunity.estimated_monthly_savings.value #=> Float
|
1818
|
+
# resp.recommendation_summaries[0].current_performance_risk_ratings.high #=> Integer
|
1819
|
+
# resp.recommendation_summaries[0].current_performance_risk_ratings.medium #=> Integer
|
1820
|
+
# resp.recommendation_summaries[0].current_performance_risk_ratings.low #=> Integer
|
1821
|
+
# resp.recommendation_summaries[0].current_performance_risk_ratings.very_low #=> Integer
|
1603
1822
|
#
|
1604
1823
|
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetRecommendationSummaries AWS API Documentation
|
1605
1824
|
#
|
@@ -1610,6 +1829,77 @@ module Aws::ComputeOptimizer
|
|
1610
1829
|
req.send_request(options)
|
1611
1830
|
end
|
1612
1831
|
|
1832
|
+
# Creates a new recommendation preference or updates an existing
|
1833
|
+
# recommendation preference, such as enhanced infrastructure metrics.
|
1834
|
+
#
|
1835
|
+
# For more information, see [Activating enhanced infrastructure
|
1836
|
+
# metrics][1] in the *Compute Optimizer User Guide*.
|
1837
|
+
#
|
1838
|
+
#
|
1839
|
+
#
|
1840
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
|
1841
|
+
#
|
1842
|
+
# @option params [required, String] :resource_type
|
1843
|
+
# The target resource type of the recommendation preference to create.
|
1844
|
+
#
|
1845
|
+
# The `Ec2Instance` option encompasses standalone instances and
|
1846
|
+
# instances that are part of Auto Scaling groups. The `AutoScalingGroup`
|
1847
|
+
# option encompasses only instances that are part of an Auto Scaling
|
1848
|
+
# group.
|
1849
|
+
#
|
1850
|
+
# @option params [Types::Scope] :scope
|
1851
|
+
# An object that describes the scope of the recommendation preference to
|
1852
|
+
# create.
|
1853
|
+
#
|
1854
|
+
# You can create recommendation preferences at the organization level
|
1855
|
+
# (for management accounts of an organization only), account level, and
|
1856
|
+
# resource level. For more information, see [Activating enhanced
|
1857
|
+
# infrastructure metrics][1] in the *Compute Optimizer User Guide*.
|
1858
|
+
#
|
1859
|
+
# <note markdown="1"> You cannot create recommendation preferences for Auto Scaling groups
|
1860
|
+
# at the organization and account levels. You can create recommendation
|
1861
|
+
# preferences for Auto Scaling groups only at the resource level by
|
1862
|
+
# specifying a scope name of `ResourceArn` and a scope value of the Auto
|
1863
|
+
# Scaling group Amazon Resource Name (ARN). This will configure the
|
1864
|
+
# preference for all instances that are part of the specified the Auto
|
1865
|
+
# Scaling group.
|
1866
|
+
#
|
1867
|
+
# </note>
|
1868
|
+
#
|
1869
|
+
#
|
1870
|
+
#
|
1871
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
|
1872
|
+
#
|
1873
|
+
# @option params [String] :enhanced_infrastructure_metrics
|
1874
|
+
# The status of the enhanced infrastructure metrics recommendation
|
1875
|
+
# preference to create or update.
|
1876
|
+
#
|
1877
|
+
# A status of `Active` confirms that the preference is applied in the
|
1878
|
+
# latest recommendation refresh, and a status of `Inactive` confirms
|
1879
|
+
# that it's not yet applied.
|
1880
|
+
#
|
1881
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1882
|
+
#
|
1883
|
+
# @example Request syntax with placeholder values
|
1884
|
+
#
|
1885
|
+
# resp = client.put_recommendation_preferences({
|
1886
|
+
# resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction
|
1887
|
+
# scope: {
|
1888
|
+
# name: "Organization", # accepts Organization, AccountId, ResourceArn
|
1889
|
+
# value: "ScopeValue",
|
1890
|
+
# },
|
1891
|
+
# enhanced_infrastructure_metrics: "Active", # accepts Active, Inactive
|
1892
|
+
# })
|
1893
|
+
#
|
1894
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/PutRecommendationPreferences AWS API Documentation
|
1895
|
+
#
|
1896
|
+
# @overload put_recommendation_preferences(params = {})
|
1897
|
+
# @param [Hash] params ({})
|
1898
|
+
def put_recommendation_preferences(params = {}, options = {})
|
1899
|
+
req = build_request(:put_recommendation_preferences, params)
|
1900
|
+
req.send_request(options)
|
1901
|
+
end
|
1902
|
+
|
1613
1903
|
# Updates the enrollment (opt in and opt out) status of an account to
|
1614
1904
|
# the Compute Optimizer service.
|
1615
1905
|
#
|
@@ -1699,7 +1989,7 @@ module Aws::ComputeOptimizer
|
|
1699
1989
|
params: params,
|
1700
1990
|
config: config)
|
1701
1991
|
context[:gem_name] = 'aws-sdk-computeoptimizer'
|
1702
|
-
context[:gem_version] = '1.
|
1992
|
+
context[:gem_version] = '1.27.0'
|
1703
1993
|
Seahorse::Client::Request.new(handlers, context)
|
1704
1994
|
end
|
1705
1995
|
|