aws-sdk-computeoptimizer 1.26.0 → 1.27.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: 53f345760c1e8b3b1be99373d10ef61e0808c4092315833c3b632652385bbf10
4
- data.tar.gz: 67b4e1d2f68cf137f9859480c16642eece7481bd3ed2bcb2fd3535e5840611e9
3
+ metadata.gz: 6a8054be8736a691e048766117fadab4b01a574d390f95a60a0f1e0c97fd8b8d
4
+ data.tar.gz: 4b63db8cd638565072f5fe99d0c7317305506687b1eb49549bbfe69b1d8984a9
5
5
  SHA512:
6
- metadata.gz: 4b6046df020b8d31124803ab86134403b294793b9083293133ee8b8b43f0290c72d6be445b8c7f7dbcb7a7b58bbeec4fdb0ccfc28edfb50d6755c1d41d63aac7
7
- data.tar.gz: fe88c0df93f9747b0a9290c8d1431871ee747f96c437af14bf14b4099500991e9a11907682d0fd93de59ba6df3988754c1425796a8b6084e849fc67ced783421
6
+ metadata.gz: 62fba6e27162650ee43d4b0461d99c0ddb40a51b55761d914d8325f5004c8e8a51de295a0c18b9277d29c9f20f044bd6c12be828f3f27caa683805abe19a5f92
7
+ data.tar.gz: 5b7a91ef7762e3fcde72d180d6871fbcaddd984e037b4cc5115a75a7c2486379fd0e20e5a465e52000bd37e6f618f2849989e1671fa6cc4877706d38963d5f8d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.26.0 (2021-11-04)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.26.0
1
+ 1.27.0
@@ -346,6 +346,67 @@ module Aws::ComputeOptimizer
346
346
 
347
347
  # @!group API Operations
348
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
+
349
410
  # Describes recommendation export jobs created in the last seven days.
350
411
  #
351
412
  # Use the ExportAutoScalingGroupRecommendations or
@@ -528,7 +589,7 @@ module Aws::ComputeOptimizer
528
589
  # values: ["FilterValue"],
529
590
  # },
530
591
  # ],
531
- # 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
532
593
  # s3_destination_config: { # required
533
594
  # bucket: "DestinationBucket",
534
595
  # key_prefix: "DestinationKeyPrefix",
@@ -662,7 +723,7 @@ module Aws::ComputeOptimizer
662
723
  # values: ["FilterValue"],
663
724
  # },
664
725
  # ],
665
- # 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
666
727
  # s3_destination_config: { # required
667
728
  # bucket: "DestinationBucket",
668
729
  # key_prefix: "DestinationKeyPrefix",
@@ -738,11 +799,11 @@ module Aws::ComputeOptimizer
738
799
  # You must create the destination Amazon S3 bucket for your
739
800
  # recommendations export before you create the export job. Compute
740
801
  # Optimizer does not create the S3 bucket for you. After you create the
741
- # S3 bucket, ensure that it has the required permissions policy policy
742
- # to allow Compute Optimizer to write the export file to it. If you plan
743
- # to specify an object prefix when you create the export job, you must
744
- # include the object prefix in the that you add to the S3 bucket. For
745
- # 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
746
807
  # Optimizer][1] in the *Compute Optimizer User Guide*.
747
808
  #
748
809
  #
@@ -794,7 +855,7 @@ module Aws::ComputeOptimizer
794
855
  # values: ["FilterValue"],
795
856
  # },
796
857
  # ],
797
- # 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
798
859
  # s3_destination_config: { # required
799
860
  # bucket: "DestinationBucket",
800
861
  # key_prefix: "DestinationKeyPrefix",
@@ -928,7 +989,7 @@ module Aws::ComputeOptimizer
928
989
  # values: ["FilterValue"],
929
990
  # },
930
991
  # ],
931
- # 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
932
993
  # s3_destination_config: { # required
933
994
  # bucket: "DestinationBucket",
934
995
  # key_prefix: "DestinationKeyPrefix",
@@ -1049,7 +1110,14 @@ module Aws::ComputeOptimizer
1049
1110
  # resp.auto_scaling_group_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].value #=> Float
1050
1111
  # resp.auto_scaling_group_recommendations[0].recommendation_options[0].performance_risk #=> Float
1051
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
1052
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"
1053
1121
  # resp.errors #=> Array
1054
1122
  # resp.errors[0].identifier #=> String
1055
1123
  # resp.errors[0].code #=> String
@@ -1152,7 +1220,11 @@ module Aws::ComputeOptimizer
1152
1220
  # resp.volume_recommendations[0].volume_recommendation_options[0].configuration.volume_burst_throughput #=> Integer
1153
1221
  # resp.volume_recommendations[0].volume_recommendation_options[0].performance_risk #=> Float
1154
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
1155
1226
  # resp.volume_recommendations[0].last_refresh_timestamp #=> Time
1227
+ # resp.volume_recommendations[0].current_performance_risk #=> String, one of "VeryLow", "Low", "Medium", "High"
1156
1228
  # resp.errors #=> Array
1157
1229
  # resp.errors[0].identifier #=> String
1158
1230
  # resp.errors[0].code #=> String
@@ -1260,10 +1332,17 @@ module Aws::ComputeOptimizer
1260
1332
  # resp.instance_recommendations[0].recommendation_options[0].platform_differences[0] #=> String, one of "Hypervisor", "NetworkInterface", "StorageInterface", "InstanceStoreAvailability", "VirtualizationType", "Architecture"
1261
1333
  # resp.instance_recommendations[0].recommendation_options[0].performance_risk #=> Float
1262
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
1263
1338
  # resp.instance_recommendations[0].recommendation_sources #=> Array
1264
1339
  # resp.instance_recommendations[0].recommendation_sources[0].recommendation_source_arn #=> String
1265
1340
  # resp.instance_recommendations[0].recommendation_sources[0].recommendation_source_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
1266
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"
1267
1346
  # resp.errors #=> Array
1268
1347
  # resp.errors[0].identifier #=> String
1269
1348
  # resp.errors[0].code #=> String
@@ -1351,6 +1430,43 @@ module Aws::ComputeOptimizer
1351
1430
  req.send_request(options)
1352
1431
  end
1353
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
+
1354
1470
  # Returns the enrollment (opt in) status of an account to the Compute
1355
1471
  # Optimizer service.
1356
1472
  #
@@ -1538,6 +1654,10 @@ module Aws::ComputeOptimizer
1538
1654
  # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics[0].name #=> String, one of "Duration"
1539
1655
  # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics[0].statistic #=> String, one of "LowerBound", "UpperBound", "Expected"
1540
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"
1541
1661
  #
1542
1662
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetLambdaFunctionRecommendations AWS API Documentation
1543
1663
  #
@@ -1548,6 +1668,89 @@ module Aws::ComputeOptimizer
1548
1668
  req.send_request(options)
1549
1669
  end
1550
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&lt;Types::RecommendationPreferencesDetail&gt;
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
+
1551
1754
  # Returns the optimization findings for an account.
1552
1755
  #
1553
1756
  # It returns the number of:
@@ -1609,6 +1812,13 @@ module Aws::ComputeOptimizer
1609
1812
  # resp.recommendation_summaries[0].summaries[0].reason_code_summaries[0].value #=> Float
1610
1813
  # resp.recommendation_summaries[0].recommendation_resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
1611
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
1612
1822
  #
1613
1823
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetRecommendationSummaries AWS API Documentation
1614
1824
  #
@@ -1619,6 +1829,77 @@ module Aws::ComputeOptimizer
1619
1829
  req.send_request(options)
1620
1830
  end
1621
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
+
1622
1903
  # Updates the enrollment (opt in and opt out) status of an account to
1623
1904
  # the Compute Optimizer service.
1624
1905
  #
@@ -1708,7 +1989,7 @@ module Aws::ComputeOptimizer
1708
1989
  params: params,
1709
1990
  config: config)
1710
1991
  context[:gem_name] = 'aws-sdk-computeoptimizer'
1711
- context[:gem_version] = '1.26.0'
1992
+ context[:gem_version] = '1.27.0'
1712
1993
  Seahorse::Client::Request.new(handlers, context)
1713
1994
  end
1714
1995