aws-sdk-computeoptimizer 1.26.0 → 1.30.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 53f345760c1e8b3b1be99373d10ef61e0808c4092315833c3b632652385bbf10
4
- data.tar.gz: 67b4e1d2f68cf137f9859480c16642eece7481bd3ed2bcb2fd3535e5840611e9
3
+ metadata.gz: 700025f4ea58b7a262c8d70463672cee20c83eaaf788c7ef9f0d66311603063e
4
+ data.tar.gz: 66a7f3c7bca6e433ee3cdb416469f6ee60910b1f398a03864ea1869335cfe02e
5
5
  SHA512:
6
- metadata.gz: 4b6046df020b8d31124803ab86134403b294793b9083293133ee8b8b43f0290c72d6be445b8c7f7dbcb7a7b58bbeec4fdb0ccfc28edfb50d6755c1d41d63aac7
7
- data.tar.gz: fe88c0df93f9747b0a9290c8d1431871ee747f96c437af14bf14b4099500991e9a11907682d0fd93de59ba6df3988754c1425796a8b6084e849fc67ced783421
6
+ metadata.gz: dad39dcb4b198abbb4fc7e5db9484bf9512996ccfa5386ec8827128579de6ec4b75dbdd7b6449794a0bb5c4a0b8da0e7671a359c00a2806383913caf4317648d
7
+ data.tar.gz: f11bf20fe89f9bffb4275e2db48551ac2165d26aa506a44b86594254d2ebfcd929e7c21f86308577a4729c52f21a24cb70d1583a52da01d610533b041d5d2127
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.30.0 (2022-01-10)
5
+ ------------------
6
+
7
+ * Feature - Adds support for new Compute Optimizer capability that makes it easier for customers to optimize their EC2 instances by leveraging multiple CPU architectures.
8
+
9
+ 1.29.0 (2021-12-21)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.28.0 (2021-11-30)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.27.0 (2021-11-29)
20
+ ------------------
21
+
22
+ * 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.
23
+
4
24
  1.26.0 (2021-11-04)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.26.0
1
+ 1.30.0
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/defaults_mode.rb'
30
31
  require 'aws-sdk-core/plugins/signature_v4.rb'
31
32
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
32
33
 
@@ -73,6 +74,7 @@ module Aws::ComputeOptimizer
73
74
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
75
  add_plugin(Aws::Plugins::TransferEncoding)
75
76
  add_plugin(Aws::Plugins::HttpChecksum)
77
+ add_plugin(Aws::Plugins::DefaultsMode)
76
78
  add_plugin(Aws::Plugins::SignatureV4)
77
79
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
78
80
 
@@ -119,7 +121,9 @@ module Aws::ComputeOptimizer
119
121
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
122
  # are very aggressive. Construct and pass an instance of
121
123
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
124
+ # enable retries and extended timeouts. Instance profile credential
125
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
126
+ # to true.
123
127
  #
124
128
  # @option options [required, String] :region
125
129
  # The AWS region to connect to. The configured `:region` is
@@ -173,6 +177,10 @@ module Aws::ComputeOptimizer
173
177
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
174
178
  # a clock skew correction and retry requests with skewed client clocks.
175
179
  #
180
+ # @option options [String] :defaults_mode ("legacy")
181
+ # See {Aws::DefaultsModeConfiguration} for a list of the
182
+ # accepted modes and the configuration defaults that are included.
183
+ #
176
184
  # @option options [Boolean] :disable_host_prefix_injection (false)
177
185
  # Set to true to disable SDK automatically adding host prefix
178
186
  # to default service endpoint when available.
@@ -305,7 +313,7 @@ module Aws::ComputeOptimizer
305
313
  # seconds to wait when opening a HTTP session before raising a
306
314
  # `Timeout::Error`.
307
315
  #
308
- # @option options [Integer] :http_read_timeout (60) The default
316
+ # @option options [Float] :http_read_timeout (60) The default
309
317
  # number of seconds to wait for response data. This value can
310
318
  # safely be set per-request on the session.
311
319
  #
@@ -321,6 +329,9 @@ module Aws::ComputeOptimizer
321
329
  # disables this behaviour. This value can safely be set per
322
330
  # request on the session.
323
331
  #
332
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
333
+ # in seconds.
334
+ #
324
335
  # @option options [Boolean] :http_wire_trace (false) When `true`,
325
336
  # HTTP debug output will be sent to the `:logger`.
326
337
  #
@@ -346,6 +357,67 @@ module Aws::ComputeOptimizer
346
357
 
347
358
  # @!group API Operations
348
359
 
360
+ # Deletes a recommendation preference, such as enhanced infrastructure
361
+ # metrics.
362
+ #
363
+ # For more information, see [Activating enhanced infrastructure
364
+ # metrics][1] in the *Compute Optimizer User Guide*.
365
+ #
366
+ #
367
+ #
368
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
369
+ #
370
+ # @option params [required, String] :resource_type
371
+ # The target resource type of the recommendation preference to delete.
372
+ #
373
+ # The `Ec2Instance` option encompasses standalone instances and
374
+ # instances that are part of Auto Scaling groups. The `AutoScalingGroup`
375
+ # option encompasses only instances that are part of an Auto Scaling
376
+ # group.
377
+ #
378
+ # @option params [Types::Scope] :scope
379
+ # An object that describes the scope of the recommendation preference to
380
+ # delete.
381
+ #
382
+ # You can delete recommendation preferences that are created at the
383
+ # organization level (for management accounts of an organization only),
384
+ # account level, and resource level. For more information, see
385
+ # [Activating enhanced infrastructure metrics][1] in the *Compute
386
+ # Optimizer User Guide*.
387
+ #
388
+ #
389
+ #
390
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
391
+ #
392
+ # @option params [required, Array<String>] :recommendation_preference_names
393
+ # The name of the recommendation preference to delete.
394
+ #
395
+ # Enhanced infrastructure metrics (`EnhancedInfrastructureMetrics`) is
396
+ # the only feature that can be activated through preferences. Therefore,
397
+ # it is also the only recommendation preference that can be deleted.
398
+ #
399
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
400
+ #
401
+ # @example Request syntax with placeholder values
402
+ #
403
+ # resp = client.delete_recommendation_preferences({
404
+ # resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction, NotApplicable
405
+ # scope: {
406
+ # name: "Organization", # accepts Organization, AccountId, ResourceArn
407
+ # value: "ScopeValue",
408
+ # },
409
+ # recommendation_preference_names: ["EnhancedInfrastructureMetrics"], # required, accepts EnhancedInfrastructureMetrics, InferredWorkloadTypes
410
+ # })
411
+ #
412
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/DeleteRecommendationPreferences AWS API Documentation
413
+ #
414
+ # @overload delete_recommendation_preferences(params = {})
415
+ # @param [Hash] params ({})
416
+ def delete_recommendation_preferences(params = {}, options = {})
417
+ req = build_request(:delete_recommendation_preferences, params)
418
+ req.send_request(options)
419
+ end
420
+
349
421
  # Describes recommendation export jobs created in the last seven days.
350
422
  #
351
423
  # Use the ExportAutoScalingGroupRecommendations or
@@ -402,7 +474,7 @@ module Aws::ComputeOptimizer
402
474
  # resp.recommendation_export_jobs[0].destination.s3.bucket #=> String
403
475
  # resp.recommendation_export_jobs[0].destination.s3.key #=> String
404
476
  # resp.recommendation_export_jobs[0].destination.s3.metadata_key #=> String
405
- # resp.recommendation_export_jobs[0].resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
477
+ # resp.recommendation_export_jobs[0].resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction", "NotApplicable"
406
478
  # resp.recommendation_export_jobs[0].status #=> String, one of "Queued", "InProgress", "Complete", "Failed"
407
479
  # resp.recommendation_export_jobs[0].creation_timestamp #=> Time
408
480
  # resp.recommendation_export_jobs[0].last_updated_timestamp #=> Time
@@ -528,7 +600,7 @@ module Aws::ComputeOptimizer
528
600
  # values: ["FilterValue"],
529
601
  # },
530
602
  # ],
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
603
+ # 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, EffectiveRecommendationPreferencesInferredWorkloadTypes, InferredWorkloadTypes, RecommendationOptionsMigrationEffort
532
604
  # s3_destination_config: { # required
533
605
  # bucket: "DestinationBucket",
534
606
  # key_prefix: "DestinationKeyPrefix",
@@ -662,7 +734,7 @@ module Aws::ComputeOptimizer
662
734
  # values: ["FilterValue"],
663
735
  # },
664
736
  # ],
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
737
+ # 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
738
  # s3_destination_config: { # required
667
739
  # bucket: "DestinationBucket",
668
740
  # key_prefix: "DestinationKeyPrefix",
@@ -738,11 +810,11 @@ module Aws::ComputeOptimizer
738
810
  # You must create the destination Amazon S3 bucket for your
739
811
  # recommendations export before you create the export job. Compute
740
812
  # 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
813
+ # S3 bucket, ensure that it has the required permissions policy to allow
814
+ # Compute Optimizer to write the export file to it. If you plan to
815
+ # specify an object prefix when you create the export job, you must
816
+ # include the object prefix in the policy that you add to the S3 bucket.
817
+ # For more information, see [Amazon S3 Bucket Policy for Compute
746
818
  # Optimizer][1] in the *Compute Optimizer User Guide*.
747
819
  #
748
820
  #
@@ -794,7 +866,7 @@ module Aws::ComputeOptimizer
794
866
  # values: ["FilterValue"],
795
867
  # },
796
868
  # ],
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
869
+ # 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, EffectiveRecommendationPreferencesInferredWorkloadTypes, InferredWorkloadTypes, RecommendationOptionsMigrationEffort
798
870
  # s3_destination_config: { # required
799
871
  # bucket: "DestinationBucket",
800
872
  # key_prefix: "DestinationKeyPrefix",
@@ -928,7 +1000,7 @@ module Aws::ComputeOptimizer
928
1000
  # values: ["FilterValue"],
929
1001
  # },
930
1002
  # ],
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
1003
+ # 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
1004
  # s3_destination_config: { # required
933
1005
  # bucket: "DestinationBucket",
934
1006
  # key_prefix: "DestinationKeyPrefix",
@@ -1049,7 +1121,18 @@ module Aws::ComputeOptimizer
1049
1121
  # resp.auto_scaling_group_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].value #=> Float
1050
1122
  # resp.auto_scaling_group_recommendations[0].recommendation_options[0].performance_risk #=> Float
1051
1123
  # resp.auto_scaling_group_recommendations[0].recommendation_options[0].rank #=> Integer
1124
+ # resp.auto_scaling_group_recommendations[0].recommendation_options[0].savings_opportunity.savings_opportunity_percentage #=> Float
1125
+ # resp.auto_scaling_group_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
1126
+ # resp.auto_scaling_group_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.value #=> Float
1127
+ # resp.auto_scaling_group_recommendations[0].recommendation_options[0].migration_effort #=> String, one of "VeryLow", "Low", "Medium", "High"
1052
1128
  # resp.auto_scaling_group_recommendations[0].last_refresh_timestamp #=> Time
1129
+ # resp.auto_scaling_group_recommendations[0].current_performance_risk #=> String, one of "VeryLow", "Low", "Medium", "High"
1130
+ # resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures #=> Array
1131
+ # resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures[0] #=> String, one of "AWS_ARM64", "CURRENT"
1132
+ # resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
1133
+ # resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.inferred_workload_types #=> String, one of "Active", "Inactive"
1134
+ # resp.auto_scaling_group_recommendations[0].inferred_workload_types #=> Array
1135
+ # resp.auto_scaling_group_recommendations[0].inferred_workload_types[0] #=> String, one of "AmazonEmr", "ApacheCassandra", "ApacheHadoop", "Memcached", "Nginx", "PostgreSql", "Redis"
1053
1136
  # resp.errors #=> Array
1054
1137
  # resp.errors[0].identifier #=> String
1055
1138
  # resp.errors[0].code #=> String
@@ -1152,7 +1235,11 @@ module Aws::ComputeOptimizer
1152
1235
  # resp.volume_recommendations[0].volume_recommendation_options[0].configuration.volume_burst_throughput #=> Integer
1153
1236
  # resp.volume_recommendations[0].volume_recommendation_options[0].performance_risk #=> Float
1154
1237
  # resp.volume_recommendations[0].volume_recommendation_options[0].rank #=> Integer
1238
+ # resp.volume_recommendations[0].volume_recommendation_options[0].savings_opportunity.savings_opportunity_percentage #=> Float
1239
+ # resp.volume_recommendations[0].volume_recommendation_options[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
1240
+ # resp.volume_recommendations[0].volume_recommendation_options[0].savings_opportunity.estimated_monthly_savings.value #=> Float
1155
1241
  # resp.volume_recommendations[0].last_refresh_timestamp #=> Time
1242
+ # resp.volume_recommendations[0].current_performance_risk #=> String, one of "VeryLow", "Low", "Medium", "High"
1156
1243
  # resp.errors #=> Array
1157
1244
  # resp.errors[0].identifier #=> String
1158
1245
  # resp.errors[0].code #=> String
@@ -1260,10 +1347,21 @@ module Aws::ComputeOptimizer
1260
1347
  # resp.instance_recommendations[0].recommendation_options[0].platform_differences[0] #=> String, one of "Hypervisor", "NetworkInterface", "StorageInterface", "InstanceStoreAvailability", "VirtualizationType", "Architecture"
1261
1348
  # resp.instance_recommendations[0].recommendation_options[0].performance_risk #=> Float
1262
1349
  # resp.instance_recommendations[0].recommendation_options[0].rank #=> Integer
1350
+ # resp.instance_recommendations[0].recommendation_options[0].savings_opportunity.savings_opportunity_percentage #=> Float
1351
+ # resp.instance_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
1352
+ # resp.instance_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.value #=> Float
1353
+ # resp.instance_recommendations[0].recommendation_options[0].migration_effort #=> String, one of "VeryLow", "Low", "Medium", "High"
1263
1354
  # resp.instance_recommendations[0].recommendation_sources #=> Array
1264
1355
  # resp.instance_recommendations[0].recommendation_sources[0].recommendation_source_arn #=> String
1265
1356
  # resp.instance_recommendations[0].recommendation_sources[0].recommendation_source_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
1266
1357
  # resp.instance_recommendations[0].last_refresh_timestamp #=> Time
1358
+ # resp.instance_recommendations[0].current_performance_risk #=> String, one of "VeryLow", "Low", "Medium", "High"
1359
+ # resp.instance_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures #=> Array
1360
+ # resp.instance_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures[0] #=> String, one of "AWS_ARM64", "CURRENT"
1361
+ # resp.instance_recommendations[0].effective_recommendation_preferences.enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
1362
+ # resp.instance_recommendations[0].effective_recommendation_preferences.inferred_workload_types #=> String, one of "Active", "Inactive"
1363
+ # resp.instance_recommendations[0].inferred_workload_types #=> Array
1364
+ # resp.instance_recommendations[0].inferred_workload_types[0] #=> String, one of "AmazonEmr", "ApacheCassandra", "ApacheHadoop", "Memcached", "Nginx", "PostgreSql", "Redis"
1267
1365
  # resp.errors #=> Array
1268
1366
  # resp.errors[0].identifier #=> String
1269
1367
  # resp.errors[0].code #=> String
@@ -1351,6 +1449,43 @@ module Aws::ComputeOptimizer
1351
1449
  req.send_request(options)
1352
1450
  end
1353
1451
 
1452
+ # Returns the recommendation preferences that are in effect for a given
1453
+ # resource, such as enhanced infrastructure metrics. Considers all
1454
+ # applicable preferences that you might have set at the resource,
1455
+ # account, and organization level.
1456
+ #
1457
+ # When you create a recommendation preference, you can set its status to
1458
+ # `Active` or `Inactive`. Use this action to view the recommendation
1459
+ # preferences that are in effect, or `Active`.
1460
+ #
1461
+ # @option params [required, String] :resource_arn
1462
+ # The Amazon Resource Name (ARN) of the resource for which to confirm
1463
+ # effective recommendation preferences. Only EC2 instance and Auto
1464
+ # Scaling group ARNs are currently supported.
1465
+ #
1466
+ # @return [Types::GetEffectiveRecommendationPreferencesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1467
+ #
1468
+ # * {Types::GetEffectiveRecommendationPreferencesResponse#enhanced_infrastructure_metrics #enhanced_infrastructure_metrics} => String
1469
+ #
1470
+ # @example Request syntax with placeholder values
1471
+ #
1472
+ # resp = client.get_effective_recommendation_preferences({
1473
+ # resource_arn: "ResourceArn", # required
1474
+ # })
1475
+ #
1476
+ # @example Response structure
1477
+ #
1478
+ # resp.enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
1479
+ #
1480
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetEffectiveRecommendationPreferences AWS API Documentation
1481
+ #
1482
+ # @overload get_effective_recommendation_preferences(params = {})
1483
+ # @param [Hash] params ({})
1484
+ def get_effective_recommendation_preferences(params = {}, options = {})
1485
+ req = build_request(:get_effective_recommendation_preferences, params)
1486
+ req.send_request(options)
1487
+ end
1488
+
1354
1489
  # Returns the enrollment (opt in) status of an account to the Compute
1355
1490
  # Optimizer service.
1356
1491
  #
@@ -1538,6 +1673,10 @@ module Aws::ComputeOptimizer
1538
1673
  # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics[0].name #=> String, one of "Duration"
1539
1674
  # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics[0].statistic #=> String, one of "LowerBound", "UpperBound", "Expected"
1540
1675
  # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics[0].value #=> Float
1676
+ # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].savings_opportunity.savings_opportunity_percentage #=> Float
1677
+ # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
1678
+ # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].savings_opportunity.estimated_monthly_savings.value #=> Float
1679
+ # resp.lambda_function_recommendations[0].current_performance_risk #=> String, one of "VeryLow", "Low", "Medium", "High"
1541
1680
  #
1542
1681
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetLambdaFunctionRecommendations AWS API Documentation
1543
1682
  #
@@ -1548,6 +1687,90 @@ module Aws::ComputeOptimizer
1548
1687
  req.send_request(options)
1549
1688
  end
1550
1689
 
1690
+ # Returns existing recommendation preferences, such as enhanced
1691
+ # infrastructure metrics.
1692
+ #
1693
+ # Use the `scope` parameter to specify which preferences to return. You
1694
+ # can specify to return preferences for an organization, a specific
1695
+ # account ID, or a specific EC2 instance or Auto Scaling group Amazon
1696
+ # Resource Name (ARN).
1697
+ #
1698
+ # For more information, see [Activating enhanced infrastructure
1699
+ # metrics][1] in the *Compute Optimizer User Guide*.
1700
+ #
1701
+ #
1702
+ #
1703
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
1704
+ #
1705
+ # @option params [required, String] :resource_type
1706
+ # The target resource type of the recommendation preference for which to
1707
+ # return preferences.
1708
+ #
1709
+ # The `Ec2Instance` option encompasses standalone instances and
1710
+ # instances that are part of Auto Scaling groups. The `AutoScalingGroup`
1711
+ # option encompasses only instances that are part of an Auto Scaling
1712
+ # group.
1713
+ #
1714
+ # @option params [Types::Scope] :scope
1715
+ # An object that describes the scope of the recommendation preference to
1716
+ # return.
1717
+ #
1718
+ # You can return recommendation preferences that are created at the
1719
+ # organization level (for management accounts of an organization only),
1720
+ # account level, and resource level. For more information, see
1721
+ # [Activating enhanced infrastructure metrics][1] in the *Compute
1722
+ # Optimizer User Guide*.
1723
+ #
1724
+ #
1725
+ #
1726
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
1727
+ #
1728
+ # @option params [String] :next_token
1729
+ # The token to advance to the next page of recommendation preferences.
1730
+ #
1731
+ # @option params [Integer] :max_results
1732
+ # The maximum number of recommendation preferences to return with a
1733
+ # single request.
1734
+ #
1735
+ # To retrieve the remaining results, make another request with the
1736
+ # returned `nextToken` value.
1737
+ #
1738
+ # @return [Types::GetRecommendationPreferencesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1739
+ #
1740
+ # * {Types::GetRecommendationPreferencesResponse#next_token #next_token} => String
1741
+ # * {Types::GetRecommendationPreferencesResponse#recommendation_preferences_details #recommendation_preferences_details} => Array&lt;Types::RecommendationPreferencesDetail&gt;
1742
+ #
1743
+ # @example Request syntax with placeholder values
1744
+ #
1745
+ # resp = client.get_recommendation_preferences({
1746
+ # resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction, NotApplicable
1747
+ # scope: {
1748
+ # name: "Organization", # accepts Organization, AccountId, ResourceArn
1749
+ # value: "ScopeValue",
1750
+ # },
1751
+ # next_token: "NextToken",
1752
+ # max_results: 1,
1753
+ # })
1754
+ #
1755
+ # @example Response structure
1756
+ #
1757
+ # resp.next_token #=> String
1758
+ # resp.recommendation_preferences_details #=> Array
1759
+ # resp.recommendation_preferences_details[0].scope.name #=> String, one of "Organization", "AccountId", "ResourceArn"
1760
+ # resp.recommendation_preferences_details[0].scope.value #=> String
1761
+ # resp.recommendation_preferences_details[0].resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction", "NotApplicable"
1762
+ # resp.recommendation_preferences_details[0].enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
1763
+ # resp.recommendation_preferences_details[0].inferred_workload_types #=> String, one of "Active", "Inactive"
1764
+ #
1765
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetRecommendationPreferences AWS API Documentation
1766
+ #
1767
+ # @overload get_recommendation_preferences(params = {})
1768
+ # @param [Hash] params ({})
1769
+ def get_recommendation_preferences(params = {}, options = {})
1770
+ req = build_request(:get_recommendation_preferences, params)
1771
+ req.send_request(options)
1772
+ end
1773
+
1551
1774
  # Returns the optimization findings for an account.
1552
1775
  #
1553
1776
  # It returns the number of:
@@ -1609,6 +1832,13 @@ module Aws::ComputeOptimizer
1609
1832
  # resp.recommendation_summaries[0].summaries[0].reason_code_summaries[0].value #=> Float
1610
1833
  # resp.recommendation_summaries[0].recommendation_resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
1611
1834
  # resp.recommendation_summaries[0].account_id #=> String
1835
+ # resp.recommendation_summaries[0].savings_opportunity.savings_opportunity_percentage #=> Float
1836
+ # resp.recommendation_summaries[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
1837
+ # resp.recommendation_summaries[0].savings_opportunity.estimated_monthly_savings.value #=> Float
1838
+ # resp.recommendation_summaries[0].current_performance_risk_ratings.high #=> Integer
1839
+ # resp.recommendation_summaries[0].current_performance_risk_ratings.medium #=> Integer
1840
+ # resp.recommendation_summaries[0].current_performance_risk_ratings.low #=> Integer
1841
+ # resp.recommendation_summaries[0].current_performance_risk_ratings.very_low #=> Integer
1612
1842
  #
1613
1843
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetRecommendationSummaries AWS API Documentation
1614
1844
  #
@@ -1619,6 +1849,106 @@ module Aws::ComputeOptimizer
1619
1849
  req.send_request(options)
1620
1850
  end
1621
1851
 
1852
+ # Creates a new recommendation preference or updates an existing
1853
+ # recommendation preference, such as enhanced infrastructure metrics.
1854
+ #
1855
+ # For more information, see [Activating enhanced infrastructure
1856
+ # metrics][1] in the *Compute Optimizer User Guide*.
1857
+ #
1858
+ #
1859
+ #
1860
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
1861
+ #
1862
+ # @option params [required, String] :resource_type
1863
+ # The target resource type of the recommendation preference to create.
1864
+ #
1865
+ # The `Ec2Instance` option encompasses standalone instances and
1866
+ # instances that are part of Auto Scaling groups. The `AutoScalingGroup`
1867
+ # option encompasses only instances that are part of an Auto Scaling
1868
+ # group.
1869
+ #
1870
+ # @option params [Types::Scope] :scope
1871
+ # An object that describes the scope of the recommendation preference to
1872
+ # create.
1873
+ #
1874
+ # You can create recommendation preferences at the organization level
1875
+ # (for management accounts of an organization only), account level, and
1876
+ # resource level. For more information, see [Activating enhanced
1877
+ # infrastructure metrics][1] in the *Compute Optimizer User Guide*.
1878
+ #
1879
+ # <note markdown="1"> You cannot create recommendation preferences for Auto Scaling groups
1880
+ # at the organization and account levels. You can create recommendation
1881
+ # preferences for Auto Scaling groups only at the resource level by
1882
+ # specifying a scope name of `ResourceArn` and a scope value of the Auto
1883
+ # Scaling group Amazon Resource Name (ARN). This will configure the
1884
+ # preference for all instances that are part of the specified Auto
1885
+ # Scaling group. You also cannot create recommendation preferences at
1886
+ # the resource level for instances that are part of an Auto Scaling
1887
+ # group. You can create recommendation preferences at the resource level
1888
+ # only for standalone instances.
1889
+ #
1890
+ # </note>
1891
+ #
1892
+ #
1893
+ #
1894
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
1895
+ #
1896
+ # @option params [String] :enhanced_infrastructure_metrics
1897
+ # The status of the enhanced infrastructure metrics recommendation
1898
+ # preference to create or update.
1899
+ #
1900
+ # Specify the `Active` status to activate the preference, or specify
1901
+ # `Inactive` to deactivate the preference.
1902
+ #
1903
+ # For more information, see [Enhanced infrastructure metrics][1] in the
1904
+ # *Compute Optimizer User Guide*.
1905
+ #
1906
+ #
1907
+ #
1908
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
1909
+ #
1910
+ # @option params [String] :inferred_workload_types
1911
+ # The status of the inferred workload types recommendation preference to
1912
+ # create or update.
1913
+ #
1914
+ # <note markdown="1"> The inferred workload type feature is active by default. To deactivate
1915
+ # it, create a recommendation preference.
1916
+ #
1917
+ # </note>
1918
+ #
1919
+ # Specify the `Inactive` status to deactivate the feature, or specify
1920
+ # `Active` to activate it.
1921
+ #
1922
+ # For more information, see [Inferred workload types][1] in the *Compute
1923
+ # Optimizer User Guide*.
1924
+ #
1925
+ #
1926
+ #
1927
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/inferred-workload-types.html
1928
+ #
1929
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1930
+ #
1931
+ # @example Request syntax with placeholder values
1932
+ #
1933
+ # resp = client.put_recommendation_preferences({
1934
+ # resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction, NotApplicable
1935
+ # scope: {
1936
+ # name: "Organization", # accepts Organization, AccountId, ResourceArn
1937
+ # value: "ScopeValue",
1938
+ # },
1939
+ # enhanced_infrastructure_metrics: "Active", # accepts Active, Inactive
1940
+ # inferred_workload_types: "Active", # accepts Active, Inactive
1941
+ # })
1942
+ #
1943
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/PutRecommendationPreferences AWS API Documentation
1944
+ #
1945
+ # @overload put_recommendation_preferences(params = {})
1946
+ # @param [Hash] params ({})
1947
+ def put_recommendation_preferences(params = {}, options = {})
1948
+ req = build_request(:put_recommendation_preferences, params)
1949
+ req.send_request(options)
1950
+ end
1951
+
1622
1952
  # Updates the enrollment (opt in and opt out) status of an account to
1623
1953
  # the Compute Optimizer service.
1624
1954
  #
@@ -1708,7 +2038,7 @@ module Aws::ComputeOptimizer
1708
2038
  params: params,
1709
2039
  config: config)
1710
2040
  context[:gem_name] = 'aws-sdk-computeoptimizer'
1711
- context[:gem_version] = '1.26.0'
2041
+ context[:gem_version] = '1.30.0'
1712
2042
  Seahorse::Client::Request.new(handlers, context)
1713
2043
  end
1714
2044