aws-sdk-computeoptimizer 1.24.0 → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ee6c735985286cbcc6d512c4485313ab7fa671d492967fcfe9d934d988efea1
4
- data.tar.gz: f25adf0941d9a86dd0fa04abcb7e828e6820042c231cf62740babad6d39f7c1f
3
+ metadata.gz: 4295d7dd8ab15e8a3f702ca214cb5c19d2724d858f35c11e8f4212fb3f149fe6
4
+ data.tar.gz: 95de3b4a88837dba22fef55c513e351d78bfd5f38945baa1ee4aeeacad55abf9
5
5
  SHA512:
6
- metadata.gz: 06ce779b60f9ba09fee1e9ca1c8ac03388d60333cd1e8eb30d754905ad504532ad236418bce0876e2e9bc280f5156bb4fea87882736d7a4a5fa005b9fe2e8716
7
- data.tar.gz: 3d4bcef6f4556e89eaab8aa7768ce71cd6385c8e41300f0f823e27f6268e745972a55f6c0b980bc85c6364f0e5af574f10e528d00c864ade93240908c5f9d4b4
6
+ metadata.gz: ae51c76b95ec7963f2606604449de4dbb71410baf6fe8318d85022b8d5eb40381328480980818ddee8fb8c2f9cb2338f8ac0b56a281fe2ed2118ceedee0baed8
7
+ data.tar.gz: f7d9d03841ffd3db16ed689f702f9ceb7ba5ce9ea0ed1b790d5c6999ad57d3825b23d66a88e7bf03602bf3109bc581b56fc6712645b99b4c8d3ccf2b007b3816
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.28.0 (2021-11-30)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.27.0 (2021-11-29)
10
+ ------------------
11
+
12
+ * 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.
13
+
14
+ 1.26.0 (2021-11-04)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.25.0 (2021-10-18)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.24.0 (2021-09-01)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.24.0
1
+ 1.28.0
@@ -119,7 +119,9 @@ module Aws::ComputeOptimizer
119
119
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
120
  # are very aggressive. Construct and pass an instance of
121
121
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
122
+ # enable retries and extended timeouts. Instance profile credential
123
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
124
+ # to true.
123
125
  #
124
126
  # @option options [required, String] :region
125
127
  # The AWS region to connect to. The configured `:region` is
@@ -285,6 +287,15 @@ module Aws::ComputeOptimizer
285
287
  # ** Please note ** When response stubbing is enabled, no HTTP
286
288
  # requests are made, and retries are disabled.
287
289
  #
290
+ # @option options [Boolean] :use_dualstack_endpoint
291
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
+ # will be used if available.
293
+ #
294
+ # @option options [Boolean] :use_fips_endpoint
295
+ # When set to `true`, fips compatible endpoints will be used if available.
296
+ # When a `fips` region is used, the region is normalized and this config
297
+ # is set to `true`.
298
+ #
288
299
  # @option options [Boolean] :validate_params (true)
289
300
  # When `true`, request parameters are validated before
290
301
  # sending the request.
@@ -337,6 +348,67 @@ module Aws::ComputeOptimizer
337
348
 
338
349
  # @!group API Operations
339
350
 
351
+ # Deletes a recommendation preference, such as enhanced infrastructure
352
+ # metrics.
353
+ #
354
+ # For more information, see [Activating enhanced infrastructure
355
+ # metrics][1] in the *Compute Optimizer User Guide*.
356
+ #
357
+ #
358
+ #
359
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
360
+ #
361
+ # @option params [required, String] :resource_type
362
+ # The target resource type of the recommendation preference to delete.
363
+ #
364
+ # The `Ec2Instance` option encompasses standalone instances and
365
+ # instances that are part of Auto Scaling groups. The `AutoScalingGroup`
366
+ # option encompasses only instances that are part of an Auto Scaling
367
+ # group.
368
+ #
369
+ # @option params [Types::Scope] :scope
370
+ # An object that describes the scope of the recommendation preference to
371
+ # delete.
372
+ #
373
+ # You can delete recommendation preferences that are created at the
374
+ # organization level (for management accounts of an organization only),
375
+ # account level, and resource level. For more information, see
376
+ # [Activating enhanced infrastructure metrics][1] in the *Compute
377
+ # Optimizer User Guide*.
378
+ #
379
+ #
380
+ #
381
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
382
+ #
383
+ # @option params [required, Array<String>] :recommendation_preference_names
384
+ # The name of the recommendation preference to delete.
385
+ #
386
+ # Enhanced infrastructure metrics (`EnhancedInfrastructureMetrics`) is
387
+ # the only feature that can be activated through preferences. Therefore,
388
+ # it is also the only recommendation preference that can be deleted.
389
+ #
390
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
391
+ #
392
+ # @example Request syntax with placeholder values
393
+ #
394
+ # resp = client.delete_recommendation_preferences({
395
+ # resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction
396
+ # scope: {
397
+ # name: "Organization", # accepts Organization, AccountId, ResourceArn
398
+ # value: "ScopeValue",
399
+ # },
400
+ # recommendation_preference_names: ["EnhancedInfrastructureMetrics"], # required, accepts EnhancedInfrastructureMetrics
401
+ # })
402
+ #
403
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/DeleteRecommendationPreferences AWS API Documentation
404
+ #
405
+ # @overload delete_recommendation_preferences(params = {})
406
+ # @param [Hash] params ({})
407
+ def delete_recommendation_preferences(params = {}, options = {})
408
+ req = build_request(:delete_recommendation_preferences, params)
409
+ req.send_request(options)
410
+ end
411
+
340
412
  # Describes recommendation export jobs created in the last seven days.
341
413
  #
342
414
  # Use the ExportAutoScalingGroupRecommendations or
@@ -519,7 +591,7 @@ module Aws::ComputeOptimizer
519
591
  # values: ["FilterValue"],
520
592
  # },
521
593
  # ],
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
594
+ # 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
595
  # s3_destination_config: { # required
524
596
  # bucket: "DestinationBucket",
525
597
  # key_prefix: "DestinationKeyPrefix",
@@ -653,7 +725,7 @@ module Aws::ComputeOptimizer
653
725
  # values: ["FilterValue"],
654
726
  # },
655
727
  # ],
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
728
+ # 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
729
  # s3_destination_config: { # required
658
730
  # bucket: "DestinationBucket",
659
731
  # key_prefix: "DestinationKeyPrefix",
@@ -729,11 +801,11 @@ module Aws::ComputeOptimizer
729
801
  # You must create the destination Amazon S3 bucket for your
730
802
  # recommendations export before you create the export job. Compute
731
803
  # Optimizer does not create the S3 bucket for you. After you create the
732
- # S3 bucket, ensure that it has the required permissions policy policy
733
- # to allow Compute Optimizer to write the export file to it. If you plan
734
- # to specify an object prefix when you create the export job, you must
735
- # include the object prefix in the that you add to the S3 bucket. For
736
- # more information, see [Amazon S3 Bucket Policy for Compute
804
+ # S3 bucket, ensure that it has the required permissions policy to allow
805
+ # Compute Optimizer to write the export file to it. If you plan to
806
+ # specify an object prefix when you create the export job, you must
807
+ # include the object prefix in the policy that you add to the S3 bucket.
808
+ # For more information, see [Amazon S3 Bucket Policy for Compute
737
809
  # Optimizer][1] in the *Compute Optimizer User Guide*.
738
810
  #
739
811
  #
@@ -785,7 +857,7 @@ module Aws::ComputeOptimizer
785
857
  # values: ["FilterValue"],
786
858
  # },
787
859
  # ],
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
860
+ # 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
861
  # s3_destination_config: { # required
790
862
  # bucket: "DestinationBucket",
791
863
  # key_prefix: "DestinationKeyPrefix",
@@ -919,7 +991,7 @@ module Aws::ComputeOptimizer
919
991
  # values: ["FilterValue"],
920
992
  # },
921
993
  # ],
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
994
+ # 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
995
  # s3_destination_config: { # required
924
996
  # bucket: "DestinationBucket",
925
997
  # key_prefix: "DestinationKeyPrefix",
@@ -1040,7 +1112,14 @@ module Aws::ComputeOptimizer
1040
1112
  # resp.auto_scaling_group_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].value #=> Float
1041
1113
  # resp.auto_scaling_group_recommendations[0].recommendation_options[0].performance_risk #=> Float
1042
1114
  # resp.auto_scaling_group_recommendations[0].recommendation_options[0].rank #=> Integer
1115
+ # resp.auto_scaling_group_recommendations[0].recommendation_options[0].savings_opportunity.savings_opportunity_percentage #=> Float
1116
+ # resp.auto_scaling_group_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
1117
+ # resp.auto_scaling_group_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.value #=> Float
1043
1118
  # resp.auto_scaling_group_recommendations[0].last_refresh_timestamp #=> Time
1119
+ # resp.auto_scaling_group_recommendations[0].current_performance_risk #=> String, one of "VeryLow", "Low", "Medium", "High"
1120
+ # resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures #=> Array
1121
+ # resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures[0] #=> String, one of "AWS_ARM64", "CURRENT"
1122
+ # resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
1044
1123
  # resp.errors #=> Array
1045
1124
  # resp.errors[0].identifier #=> String
1046
1125
  # resp.errors[0].code #=> String
@@ -1143,7 +1222,11 @@ module Aws::ComputeOptimizer
1143
1222
  # resp.volume_recommendations[0].volume_recommendation_options[0].configuration.volume_burst_throughput #=> Integer
1144
1223
  # resp.volume_recommendations[0].volume_recommendation_options[0].performance_risk #=> Float
1145
1224
  # resp.volume_recommendations[0].volume_recommendation_options[0].rank #=> Integer
1225
+ # resp.volume_recommendations[0].volume_recommendation_options[0].savings_opportunity.savings_opportunity_percentage #=> Float
1226
+ # resp.volume_recommendations[0].volume_recommendation_options[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
1227
+ # resp.volume_recommendations[0].volume_recommendation_options[0].savings_opportunity.estimated_monthly_savings.value #=> Float
1146
1228
  # resp.volume_recommendations[0].last_refresh_timestamp #=> Time
1229
+ # resp.volume_recommendations[0].current_performance_risk #=> String, one of "VeryLow", "Low", "Medium", "High"
1147
1230
  # resp.errors #=> Array
1148
1231
  # resp.errors[0].identifier #=> String
1149
1232
  # resp.errors[0].code #=> String
@@ -1251,10 +1334,17 @@ module Aws::ComputeOptimizer
1251
1334
  # resp.instance_recommendations[0].recommendation_options[0].platform_differences[0] #=> String, one of "Hypervisor", "NetworkInterface", "StorageInterface", "InstanceStoreAvailability", "VirtualizationType", "Architecture"
1252
1335
  # resp.instance_recommendations[0].recommendation_options[0].performance_risk #=> Float
1253
1336
  # resp.instance_recommendations[0].recommendation_options[0].rank #=> Integer
1337
+ # resp.instance_recommendations[0].recommendation_options[0].savings_opportunity.savings_opportunity_percentage #=> Float
1338
+ # resp.instance_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
1339
+ # resp.instance_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.value #=> Float
1254
1340
  # resp.instance_recommendations[0].recommendation_sources #=> Array
1255
1341
  # resp.instance_recommendations[0].recommendation_sources[0].recommendation_source_arn #=> String
1256
1342
  # resp.instance_recommendations[0].recommendation_sources[0].recommendation_source_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
1257
1343
  # resp.instance_recommendations[0].last_refresh_timestamp #=> Time
1344
+ # resp.instance_recommendations[0].current_performance_risk #=> String, one of "VeryLow", "Low", "Medium", "High"
1345
+ # resp.instance_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures #=> Array
1346
+ # resp.instance_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures[0] #=> String, one of "AWS_ARM64", "CURRENT"
1347
+ # resp.instance_recommendations[0].effective_recommendation_preferences.enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
1258
1348
  # resp.errors #=> Array
1259
1349
  # resp.errors[0].identifier #=> String
1260
1350
  # resp.errors[0].code #=> String
@@ -1342,6 +1432,43 @@ module Aws::ComputeOptimizer
1342
1432
  req.send_request(options)
1343
1433
  end
1344
1434
 
1435
+ # Returns the recommendation preferences that are in effect for a given
1436
+ # resource, such as enhanced infrastructure metrics. Considers all
1437
+ # applicable preferences that you might have set at the resource,
1438
+ # account, and organization level.
1439
+ #
1440
+ # When you create a recommendation preference, you can set its status to
1441
+ # `Active` or `Inactive`. Use this action to view the recommendation
1442
+ # preferences that are in effect, or `Active`.
1443
+ #
1444
+ # @option params [required, String] :resource_arn
1445
+ # The Amazon Resource Name (ARN) of the resource for which to confirm
1446
+ # effective recommendation preferences. Only EC2 instance and Auto
1447
+ # Scaling group ARNs are currently supported.
1448
+ #
1449
+ # @return [Types::GetEffectiveRecommendationPreferencesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1450
+ #
1451
+ # * {Types::GetEffectiveRecommendationPreferencesResponse#enhanced_infrastructure_metrics #enhanced_infrastructure_metrics} => String
1452
+ #
1453
+ # @example Request syntax with placeholder values
1454
+ #
1455
+ # resp = client.get_effective_recommendation_preferences({
1456
+ # resource_arn: "ResourceArn", # required
1457
+ # })
1458
+ #
1459
+ # @example Response structure
1460
+ #
1461
+ # resp.enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
1462
+ #
1463
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetEffectiveRecommendationPreferences AWS API Documentation
1464
+ #
1465
+ # @overload get_effective_recommendation_preferences(params = {})
1466
+ # @param [Hash] params ({})
1467
+ def get_effective_recommendation_preferences(params = {}, options = {})
1468
+ req = build_request(:get_effective_recommendation_preferences, params)
1469
+ req.send_request(options)
1470
+ end
1471
+
1345
1472
  # Returns the enrollment (opt in) status of an account to the Compute
1346
1473
  # Optimizer service.
1347
1474
  #
@@ -1529,6 +1656,10 @@ module Aws::ComputeOptimizer
1529
1656
  # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics[0].name #=> String, one of "Duration"
1530
1657
  # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics[0].statistic #=> String, one of "LowerBound", "UpperBound", "Expected"
1531
1658
  # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics[0].value #=> Float
1659
+ # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].savings_opportunity.savings_opportunity_percentage #=> Float
1660
+ # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
1661
+ # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].savings_opportunity.estimated_monthly_savings.value #=> Float
1662
+ # resp.lambda_function_recommendations[0].current_performance_risk #=> String, one of "VeryLow", "Low", "Medium", "High"
1532
1663
  #
1533
1664
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetLambdaFunctionRecommendations AWS API Documentation
1534
1665
  #
@@ -1539,6 +1670,89 @@ module Aws::ComputeOptimizer
1539
1670
  req.send_request(options)
1540
1671
  end
1541
1672
 
1673
+ # Returns existing recommendation preferences, such as enhanced
1674
+ # infrastructure metrics.
1675
+ #
1676
+ # Use the `scope` parameter to specify which preferences to return. You
1677
+ # can specify to return preferences for an organization, a specific
1678
+ # account ID, or a specific EC2 instance or Auto Scaling group Amazon
1679
+ # Resource Name (ARN).
1680
+ #
1681
+ # For more information, see [Activating enhanced infrastructure
1682
+ # metrics][1] in the *Compute Optimizer User Guide*.
1683
+ #
1684
+ #
1685
+ #
1686
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
1687
+ #
1688
+ # @option params [required, String] :resource_type
1689
+ # The target resource type of the recommendation preference for which to
1690
+ # return preferences.
1691
+ #
1692
+ # The `Ec2Instance` option encompasses standalone instances and
1693
+ # instances that are part of Auto Scaling groups. The `AutoScalingGroup`
1694
+ # option encompasses only instances that are part of an Auto Scaling
1695
+ # group.
1696
+ #
1697
+ # @option params [Types::Scope] :scope
1698
+ # An object that describes the scope of the recommendation preference to
1699
+ # return.
1700
+ #
1701
+ # You can return recommendation preferences that are created at the
1702
+ # organization level (for management accounts of an organization only),
1703
+ # account level, and resource level. For more information, see
1704
+ # [Activating enhanced infrastructure metrics][1] in the *Compute
1705
+ # Optimizer User Guide*.
1706
+ #
1707
+ #
1708
+ #
1709
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
1710
+ #
1711
+ # @option params [String] :next_token
1712
+ # The token to advance to the next page of recommendation preferences.
1713
+ #
1714
+ # @option params [Integer] :max_results
1715
+ # The maximum number of recommendation preferences to return with a
1716
+ # single request.
1717
+ #
1718
+ # To retrieve the remaining results, make another request with the
1719
+ # returned `nextToken` value.
1720
+ #
1721
+ # @return [Types::GetRecommendationPreferencesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1722
+ #
1723
+ # * {Types::GetRecommendationPreferencesResponse#next_token #next_token} => String
1724
+ # * {Types::GetRecommendationPreferencesResponse#recommendation_preferences_details #recommendation_preferences_details} => Array&lt;Types::RecommendationPreferencesDetail&gt;
1725
+ #
1726
+ # @example Request syntax with placeholder values
1727
+ #
1728
+ # resp = client.get_recommendation_preferences({
1729
+ # resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction
1730
+ # scope: {
1731
+ # name: "Organization", # accepts Organization, AccountId, ResourceArn
1732
+ # value: "ScopeValue",
1733
+ # },
1734
+ # next_token: "NextToken",
1735
+ # max_results: 1,
1736
+ # })
1737
+ #
1738
+ # @example Response structure
1739
+ #
1740
+ # resp.next_token #=> String
1741
+ # resp.recommendation_preferences_details #=> Array
1742
+ # resp.recommendation_preferences_details[0].scope.name #=> String, one of "Organization", "AccountId", "ResourceArn"
1743
+ # resp.recommendation_preferences_details[0].scope.value #=> String
1744
+ # resp.recommendation_preferences_details[0].resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
1745
+ # resp.recommendation_preferences_details[0].enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
1746
+ #
1747
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetRecommendationPreferences AWS API Documentation
1748
+ #
1749
+ # @overload get_recommendation_preferences(params = {})
1750
+ # @param [Hash] params ({})
1751
+ def get_recommendation_preferences(params = {}, options = {})
1752
+ req = build_request(:get_recommendation_preferences, params)
1753
+ req.send_request(options)
1754
+ end
1755
+
1542
1756
  # Returns the optimization findings for an account.
1543
1757
  #
1544
1758
  # It returns the number of:
@@ -1600,6 +1814,13 @@ module Aws::ComputeOptimizer
1600
1814
  # resp.recommendation_summaries[0].summaries[0].reason_code_summaries[0].value #=> Float
1601
1815
  # resp.recommendation_summaries[0].recommendation_resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
1602
1816
  # resp.recommendation_summaries[0].account_id #=> String
1817
+ # resp.recommendation_summaries[0].savings_opportunity.savings_opportunity_percentage #=> Float
1818
+ # resp.recommendation_summaries[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
1819
+ # resp.recommendation_summaries[0].savings_opportunity.estimated_monthly_savings.value #=> Float
1820
+ # resp.recommendation_summaries[0].current_performance_risk_ratings.high #=> Integer
1821
+ # resp.recommendation_summaries[0].current_performance_risk_ratings.medium #=> Integer
1822
+ # resp.recommendation_summaries[0].current_performance_risk_ratings.low #=> Integer
1823
+ # resp.recommendation_summaries[0].current_performance_risk_ratings.very_low #=> Integer
1603
1824
  #
1604
1825
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetRecommendationSummaries AWS API Documentation
1605
1826
  #
@@ -1610,6 +1831,77 @@ module Aws::ComputeOptimizer
1610
1831
  req.send_request(options)
1611
1832
  end
1612
1833
 
1834
+ # Creates a new recommendation preference or updates an existing
1835
+ # recommendation preference, such as enhanced infrastructure metrics.
1836
+ #
1837
+ # For more information, see [Activating enhanced infrastructure
1838
+ # metrics][1] in the *Compute Optimizer User Guide*.
1839
+ #
1840
+ #
1841
+ #
1842
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
1843
+ #
1844
+ # @option params [required, String] :resource_type
1845
+ # The target resource type of the recommendation preference to create.
1846
+ #
1847
+ # The `Ec2Instance` option encompasses standalone instances and
1848
+ # instances that are part of Auto Scaling groups. The `AutoScalingGroup`
1849
+ # option encompasses only instances that are part of an Auto Scaling
1850
+ # group.
1851
+ #
1852
+ # @option params [Types::Scope] :scope
1853
+ # An object that describes the scope of the recommendation preference to
1854
+ # create.
1855
+ #
1856
+ # You can create recommendation preferences at the organization level
1857
+ # (for management accounts of an organization only), account level, and
1858
+ # resource level. For more information, see [Activating enhanced
1859
+ # infrastructure metrics][1] in the *Compute Optimizer User Guide*.
1860
+ #
1861
+ # <note markdown="1"> You cannot create recommendation preferences for Auto Scaling groups
1862
+ # at the organization and account levels. You can create recommendation
1863
+ # preferences for Auto Scaling groups only at the resource level by
1864
+ # specifying a scope name of `ResourceArn` and a scope value of the Auto
1865
+ # Scaling group Amazon Resource Name (ARN). This will configure the
1866
+ # preference for all instances that are part of the specified the Auto
1867
+ # Scaling group.
1868
+ #
1869
+ # </note>
1870
+ #
1871
+ #
1872
+ #
1873
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
1874
+ #
1875
+ # @option params [String] :enhanced_infrastructure_metrics
1876
+ # The status of the enhanced infrastructure metrics recommendation
1877
+ # preference to create or update.
1878
+ #
1879
+ # A status of `Active` confirms that the preference is applied in the
1880
+ # latest recommendation refresh, and a status of `Inactive` confirms
1881
+ # that it's not yet applied.
1882
+ #
1883
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1884
+ #
1885
+ # @example Request syntax with placeholder values
1886
+ #
1887
+ # resp = client.put_recommendation_preferences({
1888
+ # resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction
1889
+ # scope: {
1890
+ # name: "Organization", # accepts Organization, AccountId, ResourceArn
1891
+ # value: "ScopeValue",
1892
+ # },
1893
+ # enhanced_infrastructure_metrics: "Active", # accepts Active, Inactive
1894
+ # })
1895
+ #
1896
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/PutRecommendationPreferences AWS API Documentation
1897
+ #
1898
+ # @overload put_recommendation_preferences(params = {})
1899
+ # @param [Hash] params ({})
1900
+ def put_recommendation_preferences(params = {}, options = {})
1901
+ req = build_request(:put_recommendation_preferences, params)
1902
+ req.send_request(options)
1903
+ end
1904
+
1613
1905
  # Updates the enrollment (opt in and opt out) status of an account to
1614
1906
  # the Compute Optimizer service.
1615
1907
  #
@@ -1699,7 +1991,7 @@ module Aws::ComputeOptimizer
1699
1991
  params: params,
1700
1992
  config: config)
1701
1993
  context[:gem_name] = 'aws-sdk-computeoptimizer'
1702
- context[:gem_version] = '1.24.0'
1994
+ context[:gem_version] = '1.28.0'
1703
1995
  Seahorse::Client::Request.new(handlers, context)
1704
1996
  end
1705
1997