aws-sdk-computeoptimizer 1.27.0 → 1.31.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: 6a8054be8736a691e048766117fadab4b01a574d390f95a60a0f1e0c97fd8b8d
4
- data.tar.gz: 4b63db8cd638565072f5fe99d0c7317305506687b1eb49549bbfe69b1d8984a9
3
+ metadata.gz: 7e4731819d3d04b5348b8698f798bfa6ea7d9df68bfb153281f90b3b46fb09d9
4
+ data.tar.gz: 9daa4fe051773e693d9bc5ee8af415b57c902eb6a5fcaf2f5ceff67af5622267
5
5
  SHA512:
6
- metadata.gz: 62fba6e27162650ee43d4b0461d99c0ddb40a51b55761d914d8325f5004c8e8a51de295a0c18b9277d29c9f20f044bd6c12be828f3f27caa683805abe19a5f92
7
- data.tar.gz: 5b7a91ef7762e3fcde72d180d6871fbcaddd984e037b4cc5115a75a7c2486379fd0e20e5a465e52000bd37e6f618f2849989e1671fa6cc4877706d38963d5f8d
6
+ metadata.gz: d375f4e005fde6de4a08542577a14383c3d3b6ddc1ce5ca4b236589b53c233f1754a4d2e786fe93b43427161801d441b6113671bbefc323405bdec89c9c4f328
7
+ data.tar.gz: 6c412b9938aaf05b7bd877a60cf0f0f73faa120db21901e1f28e9b2bf686a98abcb9246ee8a209d674745bd9136b237b364aee7b2c9a78a306a35a80b3c58ac4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.31.0 (2022-02-03)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.30.0 (2022-01-10)
10
+ ------------------
11
+
12
+ * Feature - Adds support for new Compute Optimizer capability that makes it easier for customers to optimize their EC2 instances by leveraging multiple CPU architectures.
13
+
14
+ 1.29.0 (2021-12-21)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.28.0 (2021-11-30)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.27.0 (2021-11-29)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.27.0
1
+ 1.31.0
@@ -27,6 +27,8 @@ 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'
31
+ require 'aws-sdk-core/plugins/recursion_detection.rb'
30
32
  require 'aws-sdk-core/plugins/signature_v4.rb'
31
33
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
32
34
 
@@ -73,6 +75,8 @@ module Aws::ComputeOptimizer
73
75
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
76
  add_plugin(Aws::Plugins::TransferEncoding)
75
77
  add_plugin(Aws::Plugins::HttpChecksum)
78
+ add_plugin(Aws::Plugins::DefaultsMode)
79
+ add_plugin(Aws::Plugins::RecursionDetection)
76
80
  add_plugin(Aws::Plugins::SignatureV4)
77
81
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
78
82
 
@@ -119,7 +123,9 @@ module Aws::ComputeOptimizer
119
123
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
124
  # are very aggressive. Construct and pass an instance of
121
125
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
126
+ # enable retries and extended timeouts. Instance profile credential
127
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
128
+ # to true.
123
129
  #
124
130
  # @option options [required, String] :region
125
131
  # The AWS region to connect to. The configured `:region` is
@@ -173,6 +179,10 @@ module Aws::ComputeOptimizer
173
179
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
174
180
  # a clock skew correction and retry requests with skewed client clocks.
175
181
  #
182
+ # @option options [String] :defaults_mode ("legacy")
183
+ # See {Aws::DefaultsModeConfiguration} for a list of the
184
+ # accepted modes and the configuration defaults that are included.
185
+ #
176
186
  # @option options [Boolean] :disable_host_prefix_injection (false)
177
187
  # Set to true to disable SDK automatically adding host prefix
178
188
  # to default service endpoint when available.
@@ -305,7 +315,7 @@ module Aws::ComputeOptimizer
305
315
  # seconds to wait when opening a HTTP session before raising a
306
316
  # `Timeout::Error`.
307
317
  #
308
- # @option options [Integer] :http_read_timeout (60) The default
318
+ # @option options [Float] :http_read_timeout (60) The default
309
319
  # number of seconds to wait for response data. This value can
310
320
  # safely be set per-request on the session.
311
321
  #
@@ -321,6 +331,9 @@ module Aws::ComputeOptimizer
321
331
  # disables this behaviour. This value can safely be set per
322
332
  # request on the session.
323
333
  #
334
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
335
+ # in seconds.
336
+ #
324
337
  # @option options [Boolean] :http_wire_trace (false) When `true`,
325
338
  # HTTP debug output will be sent to the `:logger`.
326
339
  #
@@ -390,12 +403,12 @@ module Aws::ComputeOptimizer
390
403
  # @example Request syntax with placeholder values
391
404
  #
392
405
  # resp = client.delete_recommendation_preferences({
393
- # resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction
406
+ # resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction, NotApplicable
394
407
  # scope: {
395
408
  # name: "Organization", # accepts Organization, AccountId, ResourceArn
396
409
  # value: "ScopeValue",
397
410
  # },
398
- # recommendation_preference_names: ["EnhancedInfrastructureMetrics"], # required, accepts EnhancedInfrastructureMetrics
411
+ # recommendation_preference_names: ["EnhancedInfrastructureMetrics"], # required, accepts EnhancedInfrastructureMetrics, InferredWorkloadTypes
399
412
  # })
400
413
  #
401
414
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/DeleteRecommendationPreferences AWS API Documentation
@@ -463,7 +476,7 @@ module Aws::ComputeOptimizer
463
476
  # resp.recommendation_export_jobs[0].destination.s3.bucket #=> String
464
477
  # resp.recommendation_export_jobs[0].destination.s3.key #=> String
465
478
  # resp.recommendation_export_jobs[0].destination.s3.metadata_key #=> String
466
- # resp.recommendation_export_jobs[0].resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
479
+ # resp.recommendation_export_jobs[0].resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction", "NotApplicable"
467
480
  # resp.recommendation_export_jobs[0].status #=> String, one of "Queued", "InProgress", "Complete", "Failed"
468
481
  # resp.recommendation_export_jobs[0].creation_timestamp #=> Time
469
482
  # resp.recommendation_export_jobs[0].last_updated_timestamp #=> Time
@@ -589,7 +602,7 @@ module Aws::ComputeOptimizer
589
602
  # values: ["FilterValue"],
590
603
  # },
591
604
  # ],
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
605
+ # 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
593
606
  # s3_destination_config: { # required
594
607
  # bucket: "DestinationBucket",
595
608
  # key_prefix: "DestinationKeyPrefix",
@@ -855,7 +868,7 @@ module Aws::ComputeOptimizer
855
868
  # values: ["FilterValue"],
856
869
  # },
857
870
  # ],
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
871
+ # 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
859
872
  # s3_destination_config: { # required
860
873
  # bucket: "DestinationBucket",
861
874
  # key_prefix: "DestinationKeyPrefix",
@@ -1113,11 +1126,15 @@ module Aws::ComputeOptimizer
1113
1126
  # resp.auto_scaling_group_recommendations[0].recommendation_options[0].savings_opportunity.savings_opportunity_percentage #=> Float
1114
1127
  # resp.auto_scaling_group_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
1115
1128
  # resp.auto_scaling_group_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.value #=> Float
1129
+ # resp.auto_scaling_group_recommendations[0].recommendation_options[0].migration_effort #=> String, one of "VeryLow", "Low", "Medium", "High"
1116
1130
  # resp.auto_scaling_group_recommendations[0].last_refresh_timestamp #=> Time
1117
1131
  # resp.auto_scaling_group_recommendations[0].current_performance_risk #=> String, one of "VeryLow", "Low", "Medium", "High"
1118
1132
  # resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures #=> Array
1119
1133
  # resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures[0] #=> String, one of "AWS_ARM64", "CURRENT"
1120
1134
  # resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
1135
+ # resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.inferred_workload_types #=> String, one of "Active", "Inactive"
1136
+ # resp.auto_scaling_group_recommendations[0].inferred_workload_types #=> Array
1137
+ # resp.auto_scaling_group_recommendations[0].inferred_workload_types[0] #=> String, one of "AmazonEmr", "ApacheCassandra", "ApacheHadoop", "Memcached", "Nginx", "PostgreSql", "Redis"
1121
1138
  # resp.errors #=> Array
1122
1139
  # resp.errors[0].identifier #=> String
1123
1140
  # resp.errors[0].code #=> String
@@ -1335,6 +1352,7 @@ module Aws::ComputeOptimizer
1335
1352
  # resp.instance_recommendations[0].recommendation_options[0].savings_opportunity.savings_opportunity_percentage #=> Float
1336
1353
  # resp.instance_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
1337
1354
  # resp.instance_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.value #=> Float
1355
+ # resp.instance_recommendations[0].recommendation_options[0].migration_effort #=> String, one of "VeryLow", "Low", "Medium", "High"
1338
1356
  # resp.instance_recommendations[0].recommendation_sources #=> Array
1339
1357
  # resp.instance_recommendations[0].recommendation_sources[0].recommendation_source_arn #=> String
1340
1358
  # resp.instance_recommendations[0].recommendation_sources[0].recommendation_source_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
@@ -1343,6 +1361,9 @@ module Aws::ComputeOptimizer
1343
1361
  # resp.instance_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures #=> Array
1344
1362
  # resp.instance_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures[0] #=> String, one of "AWS_ARM64", "CURRENT"
1345
1363
  # resp.instance_recommendations[0].effective_recommendation_preferences.enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
1364
+ # resp.instance_recommendations[0].effective_recommendation_preferences.inferred_workload_types #=> String, one of "Active", "Inactive"
1365
+ # resp.instance_recommendations[0].inferred_workload_types #=> Array
1366
+ # resp.instance_recommendations[0].inferred_workload_types[0] #=> String, one of "AmazonEmr", "ApacheCassandra", "ApacheHadoop", "Memcached", "Nginx", "PostgreSql", "Redis"
1346
1367
  # resp.errors #=> Array
1347
1368
  # resp.errors[0].identifier #=> String
1348
1369
  # resp.errors[0].code #=> String
@@ -1724,7 +1745,7 @@ module Aws::ComputeOptimizer
1724
1745
  # @example Request syntax with placeholder values
1725
1746
  #
1726
1747
  # resp = client.get_recommendation_preferences({
1727
- # resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction
1748
+ # resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction, NotApplicable
1728
1749
  # scope: {
1729
1750
  # name: "Organization", # accepts Organization, AccountId, ResourceArn
1730
1751
  # value: "ScopeValue",
@@ -1739,8 +1760,9 @@ module Aws::ComputeOptimizer
1739
1760
  # resp.recommendation_preferences_details #=> Array
1740
1761
  # resp.recommendation_preferences_details[0].scope.name #=> String, one of "Organization", "AccountId", "ResourceArn"
1741
1762
  # resp.recommendation_preferences_details[0].scope.value #=> String
1742
- # resp.recommendation_preferences_details[0].resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
1763
+ # resp.recommendation_preferences_details[0].resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction", "NotApplicable"
1743
1764
  # resp.recommendation_preferences_details[0].enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
1765
+ # resp.recommendation_preferences_details[0].inferred_workload_types #=> String, one of "Active", "Inactive"
1744
1766
  #
1745
1767
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetRecommendationPreferences AWS API Documentation
1746
1768
  #
@@ -1861,8 +1883,11 @@ module Aws::ComputeOptimizer
1861
1883
  # preferences for Auto Scaling groups only at the resource level by
1862
1884
  # specifying a scope name of `ResourceArn` and a scope value of the Auto
1863
1885
  # 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.
1886
+ # preference for all instances that are part of the specified Auto
1887
+ # Scaling group. You also cannot create recommendation preferences at
1888
+ # the resource level for instances that are part of an Auto Scaling
1889
+ # group. You can create recommendation preferences at the resource level
1890
+ # only for standalone instances.
1866
1891
  #
1867
1892
  # </note>
1868
1893
  #
@@ -1874,21 +1899,47 @@ module Aws::ComputeOptimizer
1874
1899
  # The status of the enhanced infrastructure metrics recommendation
1875
1900
  # preference to create or update.
1876
1901
  #
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.
1902
+ # Specify the `Active` status to activate the preference, or specify
1903
+ # `Inactive` to deactivate the preference.
1904
+ #
1905
+ # For more information, see [Enhanced infrastructure metrics][1] in the
1906
+ # *Compute Optimizer User Guide*.
1907
+ #
1908
+ #
1909
+ #
1910
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
1911
+ #
1912
+ # @option params [String] :inferred_workload_types
1913
+ # The status of the inferred workload types recommendation preference to
1914
+ # create or update.
1915
+ #
1916
+ # <note markdown="1"> The inferred workload type feature is active by default. To deactivate
1917
+ # it, create a recommendation preference.
1918
+ #
1919
+ # </note>
1920
+ #
1921
+ # Specify the `Inactive` status to deactivate the feature, or specify
1922
+ # `Active` to activate it.
1923
+ #
1924
+ # For more information, see [Inferred workload types][1] in the *Compute
1925
+ # Optimizer User Guide*.
1926
+ #
1927
+ #
1928
+ #
1929
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/inferred-workload-types.html
1880
1930
  #
1881
1931
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1882
1932
  #
1883
1933
  # @example Request syntax with placeholder values
1884
1934
  #
1885
1935
  # resp = client.put_recommendation_preferences({
1886
- # resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction
1936
+ # resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction, NotApplicable
1887
1937
  # scope: {
1888
1938
  # name: "Organization", # accepts Organization, AccountId, ResourceArn
1889
1939
  # value: "ScopeValue",
1890
1940
  # },
1891
1941
  # enhanced_infrastructure_metrics: "Active", # accepts Active, Inactive
1942
+ # inferred_workload_types: "Active", # accepts Active, Inactive
1892
1943
  # })
1893
1944
  #
1894
1945
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/PutRecommendationPreferences AWS API Documentation
@@ -1989,7 +2040,7 @@ module Aws::ComputeOptimizer
1989
2040
  params: params,
1990
2041
  config: config)
1991
2042
  context[:gem_name] = 'aws-sdk-computeoptimizer'
1992
- context[:gem_version] = '1.27.0'
2043
+ context[:gem_version] = '1.31.0'
1993
2044
  Seahorse::Client::Request.new(handlers, context)
1994
2045
  end
1995
2046
 
@@ -110,6 +110,9 @@ module Aws::ComputeOptimizer
110
110
  High = Shapes::IntegerShape.new(name: 'High')
111
111
  Identifier = Shapes::StringShape.new(name: 'Identifier')
112
112
  IncludeMemberAccounts = Shapes::BooleanShape.new(name: 'IncludeMemberAccounts')
113
+ InferredWorkloadType = Shapes::StringShape.new(name: 'InferredWorkloadType')
114
+ InferredWorkloadTypes = Shapes::ListShape.new(name: 'InferredWorkloadTypes')
115
+ InferredWorkloadTypesPreference = Shapes::StringShape.new(name: 'InferredWorkloadTypesPreference')
113
116
  InstanceArn = Shapes::StringShape.new(name: 'InstanceArn')
114
117
  InstanceArns = Shapes::ListShape.new(name: 'InstanceArns')
115
118
  InstanceName = Shapes::StringShape.new(name: 'InstanceName')
@@ -161,6 +164,7 @@ module Aws::ComputeOptimizer
161
164
  MetricStatistic = Shapes::StringShape.new(name: 'MetricStatistic')
162
165
  MetricValue = Shapes::FloatShape.new(name: 'MetricValue')
163
166
  MetricValues = Shapes::ListShape.new(name: 'MetricValues')
167
+ MigrationEffort = Shapes::StringShape.new(name: 'MigrationEffort')
164
168
  MinSize = Shapes::IntegerShape.new(name: 'MinSize')
165
169
  MissingAuthenticationToken = Shapes::StructureShape.new(name: 'MissingAuthenticationToken')
166
170
  NextToken = Shapes::StringShape.new(name: 'NextToken')
@@ -267,6 +271,7 @@ module Aws::ComputeOptimizer
267
271
  AutoScalingGroupRecommendation.add_member(:last_refresh_timestamp, Shapes::ShapeRef.new(shape: LastRefreshTimestamp, location_name: "lastRefreshTimestamp"))
268
272
  AutoScalingGroupRecommendation.add_member(:current_performance_risk, Shapes::ShapeRef.new(shape: CurrentPerformanceRisk, location_name: "currentPerformanceRisk"))
269
273
  AutoScalingGroupRecommendation.add_member(:effective_recommendation_preferences, Shapes::ShapeRef.new(shape: EffectiveRecommendationPreferences, location_name: "effectiveRecommendationPreferences"))
274
+ AutoScalingGroupRecommendation.add_member(:inferred_workload_types, Shapes::ShapeRef.new(shape: InferredWorkloadTypes, location_name: "inferredWorkloadTypes"))
270
275
  AutoScalingGroupRecommendation.struct_class = Types::AutoScalingGroupRecommendation
271
276
 
272
277
  AutoScalingGroupRecommendationOption.add_member(:configuration, Shapes::ShapeRef.new(shape: AutoScalingGroupConfiguration, location_name: "configuration"))
@@ -274,6 +279,7 @@ module Aws::ComputeOptimizer
274
279
  AutoScalingGroupRecommendationOption.add_member(:performance_risk, Shapes::ShapeRef.new(shape: PerformanceRisk, location_name: "performanceRisk"))
275
280
  AutoScalingGroupRecommendationOption.add_member(:rank, Shapes::ShapeRef.new(shape: Rank, location_name: "rank"))
276
281
  AutoScalingGroupRecommendationOption.add_member(:savings_opportunity, Shapes::ShapeRef.new(shape: SavingsOpportunity, location_name: "savingsOpportunity"))
282
+ AutoScalingGroupRecommendationOption.add_member(:migration_effort, Shapes::ShapeRef.new(shape: MigrationEffort, location_name: "migrationEffort"))
277
283
  AutoScalingGroupRecommendationOption.struct_class = Types::AutoScalingGroupRecommendationOption
278
284
 
279
285
  AutoScalingGroupRecommendationOptions.member = Shapes::ShapeRef.new(shape: AutoScalingGroupRecommendationOption)
@@ -320,6 +326,7 @@ module Aws::ComputeOptimizer
320
326
 
321
327
  EffectiveRecommendationPreferences.add_member(:cpu_vendor_architectures, Shapes::ShapeRef.new(shape: CpuVendorArchitectures, location_name: "cpuVendorArchitectures"))
322
328
  EffectiveRecommendationPreferences.add_member(:enhanced_infrastructure_metrics, Shapes::ShapeRef.new(shape: EnhancedInfrastructureMetrics, location_name: "enhancedInfrastructureMetrics"))
329
+ EffectiveRecommendationPreferences.add_member(:inferred_workload_types, Shapes::ShapeRef.new(shape: InferredWorkloadTypesPreference, location_name: "inferredWorkloadTypes"))
323
330
  EffectiveRecommendationPreferences.struct_class = Types::EffectiveRecommendationPreferences
324
331
 
325
332
  EnrollmentFilter.add_member(:name, Shapes::ShapeRef.new(shape: EnrollmentFilterName, location_name: "name"))
@@ -513,6 +520,8 @@ module Aws::ComputeOptimizer
513
520
  GetRecommendationSummariesResponse.add_member(:recommendation_summaries, Shapes::ShapeRef.new(shape: RecommendationSummaries, location_name: "recommendationSummaries"))
514
521
  GetRecommendationSummariesResponse.struct_class = Types::GetRecommendationSummariesResponse
515
522
 
523
+ InferredWorkloadTypes.member = Shapes::ShapeRef.new(shape: InferredWorkloadType)
524
+
516
525
  InstanceArns.member = Shapes::ShapeRef.new(shape: InstanceArn)
517
526
 
518
527
  InstanceRecommendation.add_member(:instance_arn, Shapes::ShapeRef.new(shape: InstanceArn, location_name: "instanceArn"))
@@ -528,6 +537,7 @@ module Aws::ComputeOptimizer
528
537
  InstanceRecommendation.add_member(:last_refresh_timestamp, Shapes::ShapeRef.new(shape: LastRefreshTimestamp, location_name: "lastRefreshTimestamp"))
529
538
  InstanceRecommendation.add_member(:current_performance_risk, Shapes::ShapeRef.new(shape: CurrentPerformanceRisk, location_name: "currentPerformanceRisk"))
530
539
  InstanceRecommendation.add_member(:effective_recommendation_preferences, Shapes::ShapeRef.new(shape: EffectiveRecommendationPreferences, location_name: "effectiveRecommendationPreferences"))
540
+ InstanceRecommendation.add_member(:inferred_workload_types, Shapes::ShapeRef.new(shape: InferredWorkloadTypes, location_name: "inferredWorkloadTypes"))
531
541
  InstanceRecommendation.struct_class = Types::InstanceRecommendation
532
542
 
533
543
  InstanceRecommendationFindingReasonCodes.member = Shapes::ShapeRef.new(shape: InstanceRecommendationFindingReasonCode)
@@ -538,6 +548,7 @@ module Aws::ComputeOptimizer
538
548
  InstanceRecommendationOption.add_member(:performance_risk, Shapes::ShapeRef.new(shape: PerformanceRisk, location_name: "performanceRisk"))
539
549
  InstanceRecommendationOption.add_member(:rank, Shapes::ShapeRef.new(shape: Rank, location_name: "rank"))
540
550
  InstanceRecommendationOption.add_member(:savings_opportunity, Shapes::ShapeRef.new(shape: SavingsOpportunity, location_name: "savingsOpportunity"))
551
+ InstanceRecommendationOption.add_member(:migration_effort, Shapes::ShapeRef.new(shape: MigrationEffort, location_name: "migrationEffort"))
541
552
  InstanceRecommendationOption.struct_class = Types::InstanceRecommendationOption
542
553
 
543
554
  InstanceRecommendations.member = Shapes::ShapeRef.new(shape: InstanceRecommendation)
@@ -627,6 +638,7 @@ module Aws::ComputeOptimizer
627
638
  PutRecommendationPreferencesRequest.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
628
639
  PutRecommendationPreferencesRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, location_name: "scope"))
629
640
  PutRecommendationPreferencesRequest.add_member(:enhanced_infrastructure_metrics, Shapes::ShapeRef.new(shape: EnhancedInfrastructureMetrics, location_name: "enhancedInfrastructureMetrics"))
641
+ PutRecommendationPreferencesRequest.add_member(:inferred_workload_types, Shapes::ShapeRef.new(shape: InferredWorkloadTypesPreference, location_name: "inferredWorkloadTypes"))
630
642
  PutRecommendationPreferencesRequest.struct_class = Types::PutRecommendationPreferencesRequest
631
643
 
632
644
  PutRecommendationPreferencesResponse.struct_class = Types::PutRecommendationPreferencesResponse
@@ -658,6 +670,7 @@ module Aws::ComputeOptimizer
658
670
  RecommendationPreferencesDetail.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, location_name: "scope"))
659
671
  RecommendationPreferencesDetail.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "resourceType"))
660
672
  RecommendationPreferencesDetail.add_member(:enhanced_infrastructure_metrics, Shapes::ShapeRef.new(shape: EnhancedInfrastructureMetrics, location_name: "enhancedInfrastructureMetrics"))
673
+ RecommendationPreferencesDetail.add_member(:inferred_workload_types, Shapes::ShapeRef.new(shape: InferredWorkloadTypesPreference, location_name: "inferredWorkloadTypes"))
661
674
  RecommendationPreferencesDetail.struct_class = Types::RecommendationPreferencesDetail
662
675
 
663
676
  RecommendationPreferencesDetails.member = Shapes::ShapeRef.new(shape: RecommendationPreferencesDetail)
@@ -158,6 +158,33 @@ module Aws::ComputeOptimizer
158
158
  # for the Auto Scaling group.
159
159
  # @return [Types::EffectiveRecommendationPreferences]
160
160
  #
161
+ # @!attribute [rw] inferred_workload_types
162
+ # The applications that might be running on the instances in the Auto
163
+ # Scaling group as inferred by Compute Optimizer.
164
+ #
165
+ # Compute Optimizer can infer if one of the following applications
166
+ # might be running on the instances:
167
+ #
168
+ # * `AmazonEmr` - Infers that Amazon EMR might be running on the
169
+ # instances.
170
+ #
171
+ # * `ApacheCassandra` - Infers that Apache Cassandra might be running
172
+ # on the instances.
173
+ #
174
+ # * `ApacheHadoop` - Infers that Apache Hadoop might be running on the
175
+ # instances.
176
+ #
177
+ # * `Memcached` - Infers that Memcached might be running on the
178
+ # instances.
179
+ #
180
+ # * `NGINX` - Infers that NGINX might be running on the instances.
181
+ #
182
+ # * `PostgreSql` - Infers that PostgreSQL might be running on the
183
+ # instances.
184
+ #
185
+ # * `Redis` - Infers that Redis might be running on the instances.
186
+ # @return [Array<String>]
187
+ #
161
188
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/AutoScalingGroupRecommendation AWS API Documentation
162
189
  #
163
190
  class AutoScalingGroupRecommendation < Struct.new(
@@ -171,7 +198,8 @@ module Aws::ComputeOptimizer
171
198
  :recommendation_options,
172
199
  :last_refresh_timestamp,
173
200
  :current_performance_risk,
174
- :effective_recommendation_preferences)
201
+ :effective_recommendation_preferences,
202
+ :inferred_workload_types)
175
203
  SENSITIVE = []
176
204
  include Aws::Structure
177
205
  end
@@ -232,6 +260,19 @@ module Aws::ComputeOptimizer
232
260
  # the estimated monthly savings amount and percentage.
233
261
  # @return [Types::SavingsOpportunity]
234
262
  #
263
+ # @!attribute [rw] migration_effort
264
+ # The level of effort required to migrate from the current instance
265
+ # type to the recommended instance type.
266
+ #
267
+ # For example, the migration effort is `Low` if Amazon EMR is the
268
+ # inferred workload type and an Amazon Web Services Graviton instance
269
+ # type is recommended. The migration effort is `Medium` if a workload
270
+ # type couldn't be inferred but an Amazon Web Services Graviton
271
+ # instance type is recommended. The migration effort is `VeryLow` if
272
+ # both the current and recommended instance types are of the same CPU
273
+ # architecture.
274
+ # @return [String]
275
+ #
235
276
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/AutoScalingGroupRecommendationOption AWS API Documentation
236
277
  #
237
278
  class AutoScalingGroupRecommendationOption < Struct.new(
@@ -239,7 +280,8 @@ module Aws::ComputeOptimizer
239
280
  :projected_utilization_metrics,
240
281
  :performance_risk,
241
282
  :rank,
242
- :savings_opportunity)
283
+ :savings_opportunity,
284
+ :migration_effort)
243
285
  SENSITIVE = []
244
286
  include Aws::Structure
245
287
  end
@@ -285,12 +327,12 @@ module Aws::ComputeOptimizer
285
327
  # data as a hash:
286
328
  #
287
329
  # {
288
- # resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction
330
+ # resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction, NotApplicable
289
331
  # scope: {
290
332
  # name: "Organization", # accepts Organization, AccountId, ResourceArn
291
333
  # value: "ScopeValue",
292
334
  # },
293
- # recommendation_preference_names: ["EnhancedInfrastructureMetrics"], # required, accepts EnhancedInfrastructureMetrics
335
+ # recommendation_preference_names: ["EnhancedInfrastructureMetrics"], # required, accepts EnhancedInfrastructureMetrics, InferredWorkloadTypes
294
336
  # }
295
337
  #
296
338
  # @!attribute [rw] resource_type
@@ -550,14 +592,31 @@ module Aws::ComputeOptimizer
550
592
  #
551
593
  # A status of `Active` confirms that the preference is applied in the
552
594
  # latest recommendation refresh, and a status of `Inactive` confirms
553
- # that it's not yet applied.
595
+ # that it's not yet applied to recommendations.
596
+ #
597
+ # For more information, see [Enhanced infrastructure metrics][1] in
598
+ # the *Compute Optimizer User Guide*.
599
+ #
600
+ #
601
+ #
602
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
603
+ # @return [String]
604
+ #
605
+ # @!attribute [rw] inferred_workload_types
606
+ # Describes the activation status of the inferred workload types
607
+ # preference.
608
+ #
609
+ # A status of `Active` confirms that the preference is applied in the
610
+ # latest recommendation refresh. A status of `Inactive` confirms that
611
+ # it's not yet applied to recommendations.
554
612
  # @return [String]
555
613
  #
556
614
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/EffectiveRecommendationPreferences AWS API Documentation
557
615
  #
558
616
  class EffectiveRecommendationPreferences < Struct.new(
559
617
  :cpu_vendor_architectures,
560
- :enhanced_infrastructure_metrics)
618
+ :enhanced_infrastructure_metrics,
619
+ :inferred_workload_types)
561
620
  SENSITIVE = []
562
621
  include Aws::Structure
563
622
  end
@@ -596,8 +655,9 @@ module Aws::ComputeOptimizer
596
655
  include Aws::Structure
597
656
  end
598
657
 
599
- # Describes the estimated monthly savings amount possible for a given
600
- # resource based on On-Demand instance pricing
658
+ # Describes the estimated monthly savings amount possible, based on
659
+ # On-Demand instance pricing, by adopting Compute Optimizer
660
+ # recommendations for a given resource.
601
661
  #
602
662
  # For more information, see [Estimated monthly savings and savings
603
663
  # opportunities][1] in the *Compute Optimizer User Guide*.
@@ -634,7 +694,7 @@ module Aws::ComputeOptimizer
634
694
  # values: ["FilterValue"],
635
695
  # },
636
696
  # ],
637
- # 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
697
+ # 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
638
698
  # s3_destination_config: { # required
639
699
  # bucket: "DestinationBucket",
640
700
  # key_prefix: "DestinationKeyPrefix",
@@ -935,7 +995,7 @@ module Aws::ComputeOptimizer
935
995
  # values: ["FilterValue"],
936
996
  # },
937
997
  # ],
938
- # 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
998
+ # 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
939
999
  # s3_destination_config: { # required
940
1000
  # bucket: "DestinationBucket",
941
1001
  # key_prefix: "DestinationKeyPrefix",
@@ -1729,13 +1789,20 @@ module Aws::ComputeOptimizer
1729
1789
  #
1730
1790
  # A status of `Active` confirms that the preference is applied in the
1731
1791
  # latest recommendation refresh, and a status of `Inactive` confirms
1732
- # that it's not yet applied.
1792
+ # that it's not yet applied to recommendations.
1733
1793
  #
1734
1794
  # To validate whether the preference is applied to your last generated
1735
1795
  # set of recommendations, review the
1736
1796
  # `effectiveRecommendationPreferences` value in the response of the
1737
1797
  # GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations
1738
1798
  # actions.
1799
+ #
1800
+ # For more information, see [Enhanced infrastructure metrics][1] in
1801
+ # the *Compute Optimizer User Guide*.
1802
+ #
1803
+ #
1804
+ #
1805
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
1739
1806
  # @return [String]
1740
1807
  #
1741
1808
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetEffectiveRecommendationPreferencesResponse AWS API Documentation
@@ -1983,7 +2050,7 @@ module Aws::ComputeOptimizer
1983
2050
  # data as a hash:
1984
2051
  #
1985
2052
  # {
1986
- # resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction
2053
+ # resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction, NotApplicable
1987
2054
  # scope: {
1988
2055
  # name: "Organization", # accepts Organization, AccountId, ResourceArn
1989
2056
  # value: "ScopeValue",
@@ -2341,7 +2408,7 @@ module Aws::ComputeOptimizer
2341
2408
  # @!attribute [rw] current_performance_risk
2342
2409
  # The risk of the current instance not meeting the performance needs
2343
2410
  # of its workloads. The higher the risk, the more likely the current
2344
- # Lambda function requires more memory.
2411
+ # instance cannot meet the performance requirements of its workload.
2345
2412
  # @return [String]
2346
2413
  #
2347
2414
  # @!attribute [rw] effective_recommendation_preferences
@@ -2349,6 +2416,33 @@ module Aws::ComputeOptimizer
2349
2416
  # for the instance.
2350
2417
  # @return [Types::EffectiveRecommendationPreferences]
2351
2418
  #
2419
+ # @!attribute [rw] inferred_workload_types
2420
+ # The applications that might be running on the instance as inferred
2421
+ # by Compute Optimizer.
2422
+ #
2423
+ # Compute Optimizer can infer if one of the following applications
2424
+ # might be running on the instance:
2425
+ #
2426
+ # * `AmazonEmr` - Infers that Amazon EMR might be running on the
2427
+ # instance.
2428
+ #
2429
+ # * `ApacheCassandra` - Infers that Apache Cassandra might be running
2430
+ # on the instance.
2431
+ #
2432
+ # * `ApacheHadoop` - Infers that Apache Hadoop might be running on the
2433
+ # instance.
2434
+ #
2435
+ # * `Memcached` - Infers that Memcached might be running on the
2436
+ # instance.
2437
+ #
2438
+ # * `NGINX` - Infers that NGINX might be running on the instance.
2439
+ #
2440
+ # * `PostgreSql` - Infers that PostgreSQL might be running on the
2441
+ # instance.
2442
+ #
2443
+ # * `Redis` - Infers that Redis might be running on the instance.
2444
+ # @return [Array<String>]
2445
+ #
2352
2446
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/InstanceRecommendation AWS API Documentation
2353
2447
  #
2354
2448
  class InstanceRecommendation < Struct.new(
@@ -2364,7 +2458,8 @@ module Aws::ComputeOptimizer
2364
2458
  :recommendation_sources,
2365
2459
  :last_refresh_timestamp,
2366
2460
  :current_performance_risk,
2367
- :effective_recommendation_preferences)
2461
+ :effective_recommendation_preferences,
2462
+ :inferred_workload_types)
2368
2463
  SENSITIVE = []
2369
2464
  include Aws::Structure
2370
2465
  end
@@ -2522,6 +2617,19 @@ module Aws::ComputeOptimizer
2522
2617
  # monthly savings amount and percentage.
2523
2618
  # @return [Types::SavingsOpportunity]
2524
2619
  #
2620
+ # @!attribute [rw] migration_effort
2621
+ # The level of effort required to migrate from the current instance
2622
+ # type to the recommended instance type.
2623
+ #
2624
+ # For example, the migration effort is `Low` if Amazon EMR is the
2625
+ # inferred workload type and an Amazon Web Services Graviton instance
2626
+ # type is recommended. The migration effort is `Medium` if a workload
2627
+ # type couldn't be inferred but an Amazon Web Services Graviton
2628
+ # instance type is recommended. The migration effort is `VeryLow` if
2629
+ # both the current and recommended instance types are of the same CPU
2630
+ # architecture.
2631
+ # @return [String]
2632
+ #
2525
2633
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/InstanceRecommendationOption AWS API Documentation
2526
2634
  #
2527
2635
  class InstanceRecommendationOption < Struct.new(
@@ -2530,7 +2638,8 @@ module Aws::ComputeOptimizer
2530
2638
  :platform_differences,
2531
2639
  :performance_risk,
2532
2640
  :rank,
2533
- :savings_opportunity)
2641
+ :savings_opportunity,
2642
+ :migration_effort)
2534
2643
  SENSITIVE = []
2535
2644
  include Aws::Structure
2536
2645
  end
@@ -2794,8 +2903,7 @@ module Aws::ComputeOptimizer
2794
2903
  # @!attribute [rw] current_performance_risk
2795
2904
  # The risk of the current Lambda function not meeting the performance
2796
2905
  # needs of its workloads. The higher the risk, the more likely the
2797
- # current Lambda function configuration is underperforming in its
2798
- # workload.
2906
+ # current Lambda function requires more memory.
2799
2907
  # @return [String]
2800
2908
  #
2801
2909
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/LambdaFunctionRecommendation AWS API Documentation
@@ -3035,12 +3143,13 @@ module Aws::ComputeOptimizer
3035
3143
  # data as a hash:
3036
3144
  #
3037
3145
  # {
3038
- # resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction
3146
+ # resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction, NotApplicable
3039
3147
  # scope: {
3040
3148
  # name: "Organization", # accepts Organization, AccountId, ResourceArn
3041
3149
  # value: "ScopeValue",
3042
3150
  # },
3043
3151
  # enhanced_infrastructure_metrics: "Active", # accepts Active, Inactive
3152
+ # inferred_workload_types: "Active", # accepts Active, Inactive
3044
3153
  # }
3045
3154
  #
3046
3155
  # @!attribute [rw] resource_type
@@ -3067,7 +3176,10 @@ module Aws::ComputeOptimizer
3067
3176
  # resource level by specifying a scope name of `ResourceArn` and a
3068
3177
  # scope value of the Auto Scaling group Amazon Resource Name (ARN).
3069
3178
  # This will configure the preference for all instances that are part
3070
- # of the specified the Auto Scaling group.
3179
+ # of the specified Auto Scaling group. You also cannot create
3180
+ # recommendation preferences at the resource level for instances that
3181
+ # are part of an Auto Scaling group. You can create recommendation
3182
+ # preferences at the resource level only for standalone instances.
3071
3183
  #
3072
3184
  # </note>
3073
3185
  #
@@ -3080,9 +3192,35 @@ module Aws::ComputeOptimizer
3080
3192
  # The status of the enhanced infrastructure metrics recommendation
3081
3193
  # preference to create or update.
3082
3194
  #
3083
- # A status of `Active` confirms that the preference is applied in the
3084
- # latest recommendation refresh, and a status of `Inactive` confirms
3085
- # that it's not yet applied.
3195
+ # Specify the `Active` status to activate the preference, or specify
3196
+ # `Inactive` to deactivate the preference.
3197
+ #
3198
+ # For more information, see [Enhanced infrastructure metrics][1] in
3199
+ # the *Compute Optimizer User Guide*.
3200
+ #
3201
+ #
3202
+ #
3203
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
3204
+ # @return [String]
3205
+ #
3206
+ # @!attribute [rw] inferred_workload_types
3207
+ # The status of the inferred workload types recommendation preference
3208
+ # to create or update.
3209
+ #
3210
+ # <note markdown="1"> The inferred workload type feature is active by default. To
3211
+ # deactivate it, create a recommendation preference.
3212
+ #
3213
+ # </note>
3214
+ #
3215
+ # Specify the `Inactive` status to deactivate the feature, or specify
3216
+ # `Active` to activate it.
3217
+ #
3218
+ # For more information, see [Inferred workload types][1] in the
3219
+ # *Compute Optimizer User Guide*.
3220
+ #
3221
+ #
3222
+ #
3223
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/inferred-workload-types.html
3086
3224
  # @return [String]
3087
3225
  #
3088
3226
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/PutRecommendationPreferencesRequest AWS API Documentation
@@ -3090,7 +3228,8 @@ module Aws::ComputeOptimizer
3090
3228
  class PutRecommendationPreferencesRequest < Struct.new(
3091
3229
  :resource_type,
3092
3230
  :scope,
3093
- :enhanced_infrastructure_metrics)
3231
+ :enhanced_infrastructure_metrics,
3232
+ :inferred_workload_types)
3094
3233
  SENSITIVE = []
3095
3234
  include Aws::Structure
3096
3235
  end
@@ -3239,7 +3378,22 @@ module Aws::ComputeOptimizer
3239
3378
  #
3240
3379
  # A status of `Active` confirms that the preference is applied in the
3241
3380
  # latest recommendation refresh, and a status of `Inactive` confirms
3242
- # that it's not yet applied.
3381
+ # that it's not yet applied to recommendations.
3382
+ #
3383
+ # For more information, see [Enhanced infrastructure metrics][1] in
3384
+ # the *Compute Optimizer User Guide*.
3385
+ #
3386
+ #
3387
+ #
3388
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
3389
+ # @return [String]
3390
+ #
3391
+ # @!attribute [rw] inferred_workload_types
3392
+ # The status of the inferred workload types recommendation preference.
3393
+ #
3394
+ # A status of `Active` confirms that the preference is applied in the
3395
+ # latest recommendation refresh. A status of `Inactive` confirms that
3396
+ # it's not yet applied to recommendations.
3243
3397
  # @return [String]
3244
3398
  #
3245
3399
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/RecommendationPreferencesDetail AWS API Documentation
@@ -3247,7 +3401,8 @@ module Aws::ComputeOptimizer
3247
3401
  class RecommendationPreferencesDetail < Struct.new(
3248
3402
  :scope,
3249
3403
  :resource_type,
3250
- :enhanced_infrastructure_metrics)
3404
+ :enhanced_infrastructure_metrics,
3405
+ :inferred_workload_types)
3251
3406
  SENSITIVE = []
3252
3407
  include Aws::Structure
3253
3408
  end
@@ -3468,12 +3623,14 @@ module Aws::ComputeOptimizer
3468
3623
  #
3469
3624
  # @!attribute [rw] savings_opportunity_percentage
3470
3625
  # The estimated monthly savings possible as a percentage of monthly
3471
- # cost.
3626
+ # cost by adopting Compute Optimizer recommendations for a given
3627
+ # resource.
3472
3628
  # @return [Float]
3473
3629
  #
3474
3630
  # @!attribute [rw] estimated_monthly_savings
3475
3631
  # An object that describes the estimated monthly savings amount
3476
- # possible based on On-Demand instance pricing.
3632
+ # possible, based on On-Demand instance pricing, by adopting Compute
3633
+ # Optimizer recommendations for a given resource.
3477
3634
  # @return [Types::EstimatedMonthlySavings]
3478
3635
  #
3479
3636
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/SavingsOpportunity AWS API Documentation
@@ -3497,8 +3654,11 @@ module Aws::ComputeOptimizer
3497
3654
  # preferences for Auto Scaling groups only at the resource level by
3498
3655
  # specifying a scope name of `ResourceArn` and a scope value of the Auto
3499
3656
  # Scaling group Amazon Resource Name (ARN). This will configure the
3500
- # preference for all instances that are part of the specified the Auto
3501
- # Scaling group.
3657
+ # preference for all instances that are part of the specified Auto
3658
+ # Scaling group. You also cannot create recommendation preferences at
3659
+ # the resource level for instances that are part of an Auto Scaling
3660
+ # group. You can create recommendation preferences at the resource level
3661
+ # only for standalone instances.
3502
3662
  #
3503
3663
  # </note>
3504
3664
  #
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-computeoptimizer/customizations'
48
48
  # @!group service
49
49
  module Aws::ComputeOptimizer
50
50
 
51
- GEM_VERSION = '1.27.0'
51
+ GEM_VERSION = '1.31.0'
52
52
 
53
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-computeoptimizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.27.0
4
+ version: 1.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-29 00:00:00.000000000 Z
11
+ date: 2022-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.122.0
22
+ version: 3.126.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.122.0
32
+ version: 3.126.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement