aws-sdk-computeoptimizer 1.34.0 → 1.35.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-computeoptimizer/client.rb +28 -7
- data/lib/aws-sdk-computeoptimizer/client_api.rb +9 -0
- data/lib/aws-sdk-computeoptimizer/endpoint_parameters.rb +3 -0
- data/lib/aws-sdk-computeoptimizer/endpoint_provider.rb +77 -77
- data/lib/aws-sdk-computeoptimizer/types.rb +104 -17
- data/lib/aws-sdk-computeoptimizer.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a9208ba72141d857d64509d05f5fad6e620b2d260416af3de3144bbba67a5026
|
|
4
|
+
data.tar.gz: 2933d38f6cb115fc1aa0039784ab076e480001c9165d3d767d1ce13a4e44e494
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 40ed2d1f666b87089584622964d20f10c1bb875cf3e66eda97c394665f74cd7717d664d8dc576fe0859955dc5854eb6f555dcb6c4c01736b895f66b1637a7e67
|
|
7
|
+
data.tar.gz: 5d54f0e03324d66047820884a7eaed663277fcd2c235488944b196a60682163a05cf74c883319eb40214f6848ec29a141df1c47e6630a932ba3f5b99ba8e2e89
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.35.0 (2022-11-29)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Adds support for a new recommendation preference that makes it possible for customers to optimize their EC2 recommendations by utilizing an external metrics ingestion service to provide metrics.
|
|
8
|
+
|
|
4
9
|
1.34.0 (2022-10-25)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.35.0
|
|
@@ -418,10 +418,6 @@ module Aws::ComputeOptimizer
|
|
|
418
418
|
# @option params [required, Array<String>] :recommendation_preference_names
|
|
419
419
|
# The name of the recommendation preference to delete.
|
|
420
420
|
#
|
|
421
|
-
# Enhanced infrastructure metrics (`EnhancedInfrastructureMetrics`) is
|
|
422
|
-
# the only feature that can be activated through preferences. Therefore,
|
|
423
|
-
# it is also the only recommendation preference that can be deleted.
|
|
424
|
-
#
|
|
425
421
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
426
422
|
#
|
|
427
423
|
# @example Request syntax with placeholder values
|
|
@@ -432,7 +428,7 @@ module Aws::ComputeOptimizer
|
|
|
432
428
|
# name: "Organization", # accepts Organization, AccountId, ResourceArn
|
|
433
429
|
# value: "ScopeValue",
|
|
434
430
|
# },
|
|
435
|
-
# recommendation_preference_names: ["EnhancedInfrastructureMetrics"], # required, accepts EnhancedInfrastructureMetrics, InferredWorkloadTypes
|
|
431
|
+
# recommendation_preference_names: ["EnhancedInfrastructureMetrics"], # required, accepts EnhancedInfrastructureMetrics, InferredWorkloadTypes, ExternalMetricsPreference
|
|
436
432
|
# })
|
|
437
433
|
#
|
|
438
434
|
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/DeleteRecommendationPreferences AWS API Documentation
|
|
@@ -892,7 +888,7 @@ module Aws::ComputeOptimizer
|
|
|
892
888
|
# values: ["FilterValue"],
|
|
893
889
|
# },
|
|
894
890
|
# ],
|
|
895
|
-
# 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
|
|
891
|
+
# 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, EffectiveRecommendationPreferencesExternalMetricsSource
|
|
896
892
|
# s3_destination_config: { # required
|
|
897
893
|
# bucket: "DestinationBucket",
|
|
898
894
|
# key_prefix: "DestinationKeyPrefix",
|
|
@@ -1157,6 +1153,7 @@ module Aws::ComputeOptimizer
|
|
|
1157
1153
|
# resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures[0] #=> String, one of "AWS_ARM64", "CURRENT"
|
|
1158
1154
|
# resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
|
|
1159
1155
|
# resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.inferred_workload_types #=> String, one of "Active", "Inactive"
|
|
1156
|
+
# resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.external_metrics_preference.source #=> String, one of "Datadog", "Dynatrace", "NewRelic", "Instana"
|
|
1160
1157
|
# resp.auto_scaling_group_recommendations[0].inferred_workload_types #=> Array
|
|
1161
1158
|
# resp.auto_scaling_group_recommendations[0].inferred_workload_types[0] #=> String, one of "AmazonEmr", "ApacheCassandra", "ApacheHadoop", "Memcached", "Nginx", "PostgreSql", "Redis"
|
|
1162
1159
|
# resp.errors #=> Array
|
|
@@ -1386,6 +1383,7 @@ module Aws::ComputeOptimizer
|
|
|
1386
1383
|
# resp.instance_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures[0] #=> String, one of "AWS_ARM64", "CURRENT"
|
|
1387
1384
|
# resp.instance_recommendations[0].effective_recommendation_preferences.enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
|
|
1388
1385
|
# resp.instance_recommendations[0].effective_recommendation_preferences.inferred_workload_types #=> String, one of "Active", "Inactive"
|
|
1386
|
+
# resp.instance_recommendations[0].effective_recommendation_preferences.external_metrics_preference.source #=> String, one of "Datadog", "Dynatrace", "NewRelic", "Instana"
|
|
1389
1387
|
# resp.instance_recommendations[0].inferred_workload_types #=> Array
|
|
1390
1388
|
# resp.instance_recommendations[0].inferred_workload_types[0] #=> String, one of "AmazonEmr", "ApacheCassandra", "ApacheHadoop", "Memcached", "Nginx", "PostgreSql", "Redis"
|
|
1391
1389
|
# resp.errors #=> Array
|
|
@@ -1492,6 +1490,7 @@ module Aws::ComputeOptimizer
|
|
|
1492
1490
|
# @return [Types::GetEffectiveRecommendationPreferencesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1493
1491
|
#
|
|
1494
1492
|
# * {Types::GetEffectiveRecommendationPreferencesResponse#enhanced_infrastructure_metrics #enhanced_infrastructure_metrics} => String
|
|
1493
|
+
# * {Types::GetEffectiveRecommendationPreferencesResponse#external_metrics_preference #external_metrics_preference} => Types::ExternalMetricsPreference
|
|
1495
1494
|
#
|
|
1496
1495
|
# @example Request syntax with placeholder values
|
|
1497
1496
|
#
|
|
@@ -1502,6 +1501,7 @@ module Aws::ComputeOptimizer
|
|
|
1502
1501
|
# @example Response structure
|
|
1503
1502
|
#
|
|
1504
1503
|
# resp.enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
|
|
1504
|
+
# resp.external_metrics_preference.source #=> String, one of "Datadog", "Dynatrace", "NewRelic", "Instana"
|
|
1505
1505
|
#
|
|
1506
1506
|
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetEffectiveRecommendationPreferences AWS API Documentation
|
|
1507
1507
|
#
|
|
@@ -1792,6 +1792,7 @@ module Aws::ComputeOptimizer
|
|
|
1792
1792
|
# resp.recommendation_preferences_details[0].resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction", "NotApplicable"
|
|
1793
1793
|
# resp.recommendation_preferences_details[0].enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
|
|
1794
1794
|
# resp.recommendation_preferences_details[0].inferred_workload_types #=> String, one of "Active", "Inactive"
|
|
1795
|
+
# resp.recommendation_preferences_details[0].external_metrics_preference.source #=> String, one of "Datadog", "Dynatrace", "NewRelic", "Instana"
|
|
1795
1796
|
#
|
|
1796
1797
|
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetRecommendationPreferences AWS API Documentation
|
|
1797
1798
|
#
|
|
@@ -1962,6 +1963,23 @@ module Aws::ComputeOptimizer
|
|
|
1962
1963
|
#
|
|
1963
1964
|
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/inferred-workload-types.html
|
|
1964
1965
|
#
|
|
1966
|
+
# @option params [Types::ExternalMetricsPreference] :external_metrics_preference
|
|
1967
|
+
# The provider of the external metrics recommendation preference to
|
|
1968
|
+
# create or update.
|
|
1969
|
+
#
|
|
1970
|
+
# Specify a valid provider in the `source` field to activate the
|
|
1971
|
+
# preference. To delete this preference, see the
|
|
1972
|
+
# DeleteRecommendationPreferences action.
|
|
1973
|
+
#
|
|
1974
|
+
# This preference can only be set for the `Ec2Instance` resource type.
|
|
1975
|
+
#
|
|
1976
|
+
# For more information, see [External metrics ingestion][1] in the
|
|
1977
|
+
# *Compute Optimizer User Guide*.
|
|
1978
|
+
#
|
|
1979
|
+
#
|
|
1980
|
+
#
|
|
1981
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/external-metrics-ingestion.html
|
|
1982
|
+
#
|
|
1965
1983
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
1966
1984
|
#
|
|
1967
1985
|
# @example Request syntax with placeholder values
|
|
@@ -1974,6 +1992,9 @@ module Aws::ComputeOptimizer
|
|
|
1974
1992
|
# },
|
|
1975
1993
|
# enhanced_infrastructure_metrics: "Active", # accepts Active, Inactive
|
|
1976
1994
|
# inferred_workload_types: "Active", # accepts Active, Inactive
|
|
1995
|
+
# external_metrics_preference: {
|
|
1996
|
+
# source: "Datadog", # accepts Datadog, Dynatrace, NewRelic, Instana
|
|
1997
|
+
# },
|
|
1977
1998
|
# })
|
|
1978
1999
|
#
|
|
1979
2000
|
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/PutRecommendationPreferences AWS API Documentation
|
|
@@ -2074,7 +2095,7 @@ module Aws::ComputeOptimizer
|
|
|
2074
2095
|
params: params,
|
|
2075
2096
|
config: config)
|
|
2076
2097
|
context[:gem_name] = 'aws-sdk-computeoptimizer'
|
|
2077
|
-
context[:gem_version] = '1.
|
|
2098
|
+
context[:gem_version] = '1.35.0'
|
|
2078
2099
|
Seahorse::Client::Request.new(handlers, context)
|
|
2079
2100
|
end
|
|
2080
2101
|
|
|
@@ -73,6 +73,8 @@ module Aws::ComputeOptimizer
|
|
|
73
73
|
ExportableLambdaFunctionFields = Shapes::ListShape.new(name: 'ExportableLambdaFunctionFields')
|
|
74
74
|
ExportableVolumeField = Shapes::StringShape.new(name: 'ExportableVolumeField')
|
|
75
75
|
ExportableVolumeFields = Shapes::ListShape.new(name: 'ExportableVolumeFields')
|
|
76
|
+
ExternalMetricsPreference = Shapes::StructureShape.new(name: 'ExternalMetricsPreference')
|
|
77
|
+
ExternalMetricsSource = Shapes::StringShape.new(name: 'ExternalMetricsSource')
|
|
76
78
|
FailureReason = Shapes::StringShape.new(name: 'FailureReason')
|
|
77
79
|
FileFormat = Shapes::StringShape.new(name: 'FileFormat')
|
|
78
80
|
Filter = Shapes::StructureShape.new(name: 'Filter')
|
|
@@ -327,6 +329,7 @@ module Aws::ComputeOptimizer
|
|
|
327
329
|
EffectiveRecommendationPreferences.add_member(:cpu_vendor_architectures, Shapes::ShapeRef.new(shape: CpuVendorArchitectures, location_name: "cpuVendorArchitectures"))
|
|
328
330
|
EffectiveRecommendationPreferences.add_member(:enhanced_infrastructure_metrics, Shapes::ShapeRef.new(shape: EnhancedInfrastructureMetrics, location_name: "enhancedInfrastructureMetrics"))
|
|
329
331
|
EffectiveRecommendationPreferences.add_member(:inferred_workload_types, Shapes::ShapeRef.new(shape: InferredWorkloadTypesPreference, location_name: "inferredWorkloadTypes"))
|
|
332
|
+
EffectiveRecommendationPreferences.add_member(:external_metrics_preference, Shapes::ShapeRef.new(shape: ExternalMetricsPreference, location_name: "externalMetricsPreference"))
|
|
330
333
|
EffectiveRecommendationPreferences.struct_class = Types::EffectiveRecommendationPreferences
|
|
331
334
|
|
|
332
335
|
EnrollmentFilter.add_member(:name, Shapes::ShapeRef.new(shape: EnrollmentFilterName, location_name: "name"))
|
|
@@ -400,6 +403,9 @@ module Aws::ComputeOptimizer
|
|
|
400
403
|
|
|
401
404
|
ExportableVolumeFields.member = Shapes::ShapeRef.new(shape: ExportableVolumeField)
|
|
402
405
|
|
|
406
|
+
ExternalMetricsPreference.add_member(:source, Shapes::ShapeRef.new(shape: ExternalMetricsSource, location_name: "source"))
|
|
407
|
+
ExternalMetricsPreference.struct_class = Types::ExternalMetricsPreference
|
|
408
|
+
|
|
403
409
|
Filter.add_member(:name, Shapes::ShapeRef.new(shape: FilterName, location_name: "name"))
|
|
404
410
|
Filter.add_member(:values, Shapes::ShapeRef.new(shape: FilterValues, location_name: "values"))
|
|
405
411
|
Filter.struct_class = Types::Filter
|
|
@@ -463,6 +469,7 @@ module Aws::ComputeOptimizer
|
|
|
463
469
|
GetEffectiveRecommendationPreferencesRequest.struct_class = Types::GetEffectiveRecommendationPreferencesRequest
|
|
464
470
|
|
|
465
471
|
GetEffectiveRecommendationPreferencesResponse.add_member(:enhanced_infrastructure_metrics, Shapes::ShapeRef.new(shape: EnhancedInfrastructureMetrics, location_name: "enhancedInfrastructureMetrics"))
|
|
472
|
+
GetEffectiveRecommendationPreferencesResponse.add_member(:external_metrics_preference, Shapes::ShapeRef.new(shape: ExternalMetricsPreference, location_name: "externalMetricsPreference"))
|
|
466
473
|
GetEffectiveRecommendationPreferencesResponse.struct_class = Types::GetEffectiveRecommendationPreferencesResponse
|
|
467
474
|
|
|
468
475
|
GetEnrollmentStatusRequest.struct_class = Types::GetEnrollmentStatusRequest
|
|
@@ -639,6 +646,7 @@ module Aws::ComputeOptimizer
|
|
|
639
646
|
PutRecommendationPreferencesRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, location_name: "scope"))
|
|
640
647
|
PutRecommendationPreferencesRequest.add_member(:enhanced_infrastructure_metrics, Shapes::ShapeRef.new(shape: EnhancedInfrastructureMetrics, location_name: "enhancedInfrastructureMetrics"))
|
|
641
648
|
PutRecommendationPreferencesRequest.add_member(:inferred_workload_types, Shapes::ShapeRef.new(shape: InferredWorkloadTypesPreference, location_name: "inferredWorkloadTypes"))
|
|
649
|
+
PutRecommendationPreferencesRequest.add_member(:external_metrics_preference, Shapes::ShapeRef.new(shape: ExternalMetricsPreference, location_name: "externalMetricsPreference"))
|
|
642
650
|
PutRecommendationPreferencesRequest.struct_class = Types::PutRecommendationPreferencesRequest
|
|
643
651
|
|
|
644
652
|
PutRecommendationPreferencesResponse.struct_class = Types::PutRecommendationPreferencesResponse
|
|
@@ -671,6 +679,7 @@ module Aws::ComputeOptimizer
|
|
|
671
679
|
RecommendationPreferencesDetail.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "resourceType"))
|
|
672
680
|
RecommendationPreferencesDetail.add_member(:enhanced_infrastructure_metrics, Shapes::ShapeRef.new(shape: EnhancedInfrastructureMetrics, location_name: "enhancedInfrastructureMetrics"))
|
|
673
681
|
RecommendationPreferencesDetail.add_member(:inferred_workload_types, Shapes::ShapeRef.new(shape: InferredWorkloadTypesPreference, location_name: "inferredWorkloadTypes"))
|
|
682
|
+
RecommendationPreferencesDetail.add_member(:external_metrics_preference, Shapes::ShapeRef.new(shape: ExternalMetricsPreference, location_name: "externalMetricsPreference"))
|
|
674
683
|
RecommendationPreferencesDetail.struct_class = Types::RecommendationPreferencesDetail
|
|
675
684
|
|
|
676
685
|
RecommendationPreferencesDetails.member = Shapes::ShapeRef.new(shape: RecommendationPreferencesDetail)
|
|
@@ -50,6 +50,9 @@ module Aws::ComputeOptimizer
|
|
|
50
50
|
|
|
51
51
|
def initialize(options = {})
|
|
52
52
|
self[:region] = options[:region]
|
|
53
|
+
if self[:region].nil?
|
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
|
55
|
+
end
|
|
53
56
|
self[:use_dual_stack] = options[:use_dual_stack]
|
|
54
57
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
|
55
58
|
if self[:use_dual_stack].nil?
|
|
@@ -29,83 +29,83 @@ module Aws::ComputeOptimizer
|
|
|
29
29
|
# @api private
|
|
30
30
|
RULES = <<-JSON
|
|
31
31
|
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
32
|
+
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
|
|
33
|
+
YXRpb24iOiJUaGUgQ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fSwiaGVh
|
|
108
|
+
ZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19XX0=
|
|
109
109
|
|
|
110
110
|
JSON
|
|
111
111
|
end
|
|
@@ -332,7 +332,7 @@ module Aws::ComputeOptimizer
|
|
|
332
332
|
# name: "Organization", # accepts Organization, AccountId, ResourceArn
|
|
333
333
|
# value: "ScopeValue",
|
|
334
334
|
# },
|
|
335
|
-
# recommendation_preference_names: ["EnhancedInfrastructureMetrics"], # required, accepts EnhancedInfrastructureMetrics, InferredWorkloadTypes
|
|
335
|
+
# recommendation_preference_names: ["EnhancedInfrastructureMetrics"], # required, accepts EnhancedInfrastructureMetrics, InferredWorkloadTypes, ExternalMetricsPreference
|
|
336
336
|
# }
|
|
337
337
|
#
|
|
338
338
|
# @!attribute [rw] resource_type
|
|
@@ -366,11 +366,6 @@ module Aws::ComputeOptimizer
|
|
|
366
366
|
#
|
|
367
367
|
# @!attribute [rw] recommendation_preference_names
|
|
368
368
|
# The name of the recommendation preference to delete.
|
|
369
|
-
#
|
|
370
|
-
# Enhanced infrastructure metrics (`EnhancedInfrastructureMetrics`) is
|
|
371
|
-
# the only feature that can be activated through preferences.
|
|
372
|
-
# Therefore, it is also the only recommendation preference that can be
|
|
373
|
-
# deleted.
|
|
374
369
|
# @return [Array<String>]
|
|
375
370
|
#
|
|
376
371
|
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/DeleteRecommendationPreferencesRequest AWS API Documentation
|
|
@@ -616,12 +611,23 @@ module Aws::ComputeOptimizer
|
|
|
616
611
|
# it's not yet applied to recommendations.
|
|
617
612
|
# @return [String]
|
|
618
613
|
#
|
|
614
|
+
# @!attribute [rw] external_metrics_preference
|
|
615
|
+
# An object that describes the external metrics recommendation
|
|
616
|
+
# preference.
|
|
617
|
+
#
|
|
618
|
+
# If the preference is applied in the latest recommendation refresh,
|
|
619
|
+
# an object with a valid `source` value appears in the response. If
|
|
620
|
+
# the preference isn't applied to the recommendations already, then
|
|
621
|
+
# this object doesn't appear in the response.
|
|
622
|
+
# @return [Types::ExternalMetricsPreference]
|
|
623
|
+
#
|
|
619
624
|
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/EffectiveRecommendationPreferences AWS API Documentation
|
|
620
625
|
#
|
|
621
626
|
class EffectiveRecommendationPreferences < Struct.new(
|
|
622
627
|
:cpu_vendor_architectures,
|
|
623
628
|
:enhanced_infrastructure_metrics,
|
|
624
|
-
:inferred_workload_types
|
|
629
|
+
:inferred_workload_types,
|
|
630
|
+
:external_metrics_preference)
|
|
625
631
|
SENSITIVE = []
|
|
626
632
|
include Aws::Structure
|
|
627
633
|
end
|
|
@@ -1000,7 +1006,7 @@ module Aws::ComputeOptimizer
|
|
|
1000
1006
|
# values: ["FilterValue"],
|
|
1001
1007
|
# },
|
|
1002
1008
|
# ],
|
|
1003
|
-
# 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
|
|
1009
|
+
# 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, EffectiveRecommendationPreferencesExternalMetricsSource
|
|
1004
1010
|
# s3_destination_config: { # required
|
|
1005
1011
|
# bucket: "DestinationBucket",
|
|
1006
1012
|
# key_prefix: "DestinationKeyPrefix",
|
|
@@ -1270,6 +1276,28 @@ module Aws::ComputeOptimizer
|
|
|
1270
1276
|
include Aws::Structure
|
|
1271
1277
|
end
|
|
1272
1278
|
|
|
1279
|
+
# Describes the external metrics preferences for EC2 rightsizing
|
|
1280
|
+
# recommendations.
|
|
1281
|
+
#
|
|
1282
|
+
# @note When making an API call, you may pass ExternalMetricsPreference
|
|
1283
|
+
# data as a hash:
|
|
1284
|
+
#
|
|
1285
|
+
# {
|
|
1286
|
+
# source: "Datadog", # accepts Datadog, Dynatrace, NewRelic, Instana
|
|
1287
|
+
# }
|
|
1288
|
+
#
|
|
1289
|
+
# @!attribute [rw] source
|
|
1290
|
+
# Contains the source options for external metrics preferences.
|
|
1291
|
+
# @return [String]
|
|
1292
|
+
#
|
|
1293
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/ExternalMetricsPreference AWS API Documentation
|
|
1294
|
+
#
|
|
1295
|
+
class ExternalMetricsPreference < Struct.new(
|
|
1296
|
+
:source)
|
|
1297
|
+
SENSITIVE = []
|
|
1298
|
+
include Aws::Structure
|
|
1299
|
+
end
|
|
1300
|
+
|
|
1273
1301
|
# Describes a filter that returns a more specific list of
|
|
1274
1302
|
# recommendations. Use this filter with the
|
|
1275
1303
|
# GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations
|
|
@@ -1810,10 +1838,34 @@ module Aws::ComputeOptimizer
|
|
|
1810
1838
|
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
|
|
1811
1839
|
# @return [String]
|
|
1812
1840
|
#
|
|
1841
|
+
# @!attribute [rw] external_metrics_preference
|
|
1842
|
+
# The provider of the external metrics recommendation preference.
|
|
1843
|
+
# Considers all applicable preferences that you might have set at the
|
|
1844
|
+
# account and organization level.
|
|
1845
|
+
#
|
|
1846
|
+
# If the preference is applied in the latest recommendation refresh,
|
|
1847
|
+
# an object with a valid `source` value appears in the response. If
|
|
1848
|
+
# the preference isn't applied to the recommendations already, then
|
|
1849
|
+
# this object doesn't appear in the response.
|
|
1850
|
+
#
|
|
1851
|
+
# To validate whether the preference is applied to your last generated
|
|
1852
|
+
# set of recommendations, review the
|
|
1853
|
+
# `effectiveRecommendationPreferences` value in the response of the
|
|
1854
|
+
# GetEC2InstanceRecommendations actions.
|
|
1855
|
+
#
|
|
1856
|
+
# For more information, see [Enhanced infrastructure metrics][1] in
|
|
1857
|
+
# the *Compute Optimizer User Guide*.
|
|
1858
|
+
#
|
|
1859
|
+
#
|
|
1860
|
+
#
|
|
1861
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/enhanced-infrastructure-metrics.html
|
|
1862
|
+
# @return [Types::ExternalMetricsPreference]
|
|
1863
|
+
#
|
|
1813
1864
|
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetEffectiveRecommendationPreferencesResponse AWS API Documentation
|
|
1814
1865
|
#
|
|
1815
1866
|
class GetEffectiveRecommendationPreferencesResponse < Struct.new(
|
|
1816
|
-
:enhanced_infrastructure_metrics
|
|
1867
|
+
:enhanced_infrastructure_metrics,
|
|
1868
|
+
:external_metrics_preference)
|
|
1817
1869
|
SENSITIVE = []
|
|
1818
1870
|
include Aws::Structure
|
|
1819
1871
|
end
|
|
@@ -3160,6 +3212,9 @@ module Aws::ComputeOptimizer
|
|
|
3160
3212
|
# },
|
|
3161
3213
|
# enhanced_infrastructure_metrics: "Active", # accepts Active, Inactive
|
|
3162
3214
|
# inferred_workload_types: "Active", # accepts Active, Inactive
|
|
3215
|
+
# external_metrics_preference: {
|
|
3216
|
+
# source: "Datadog", # accepts Datadog, Dynatrace, NewRelic, Instana
|
|
3217
|
+
# },
|
|
3163
3218
|
# }
|
|
3164
3219
|
#
|
|
3165
3220
|
# @!attribute [rw] resource_type
|
|
@@ -3238,13 +3293,32 @@ module Aws::ComputeOptimizer
|
|
|
3238
3293
|
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/inferred-workload-types.html
|
|
3239
3294
|
# @return [String]
|
|
3240
3295
|
#
|
|
3296
|
+
# @!attribute [rw] external_metrics_preference
|
|
3297
|
+
# The provider of the external metrics recommendation preference to
|
|
3298
|
+
# create or update.
|
|
3299
|
+
#
|
|
3300
|
+
# Specify a valid provider in the `source` field to activate the
|
|
3301
|
+
# preference. To delete this preference, see the
|
|
3302
|
+
# DeleteRecommendationPreferences action.
|
|
3303
|
+
#
|
|
3304
|
+
# This preference can only be set for the `Ec2Instance` resource type.
|
|
3305
|
+
#
|
|
3306
|
+
# For more information, see [External metrics ingestion][1] in the
|
|
3307
|
+
# *Compute Optimizer User Guide*.
|
|
3308
|
+
#
|
|
3309
|
+
#
|
|
3310
|
+
#
|
|
3311
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/external-metrics-ingestion.html
|
|
3312
|
+
# @return [Types::ExternalMetricsPreference]
|
|
3313
|
+
#
|
|
3241
3314
|
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/PutRecommendationPreferencesRequest AWS API Documentation
|
|
3242
3315
|
#
|
|
3243
3316
|
class PutRecommendationPreferencesRequest < Struct.new(
|
|
3244
3317
|
:resource_type,
|
|
3245
3318
|
:scope,
|
|
3246
3319
|
:enhanced_infrastructure_metrics,
|
|
3247
|
-
:inferred_workload_types
|
|
3320
|
+
:inferred_workload_types,
|
|
3321
|
+
:external_metrics_preference)
|
|
3248
3322
|
SENSITIVE = []
|
|
3249
3323
|
include Aws::Structure
|
|
3250
3324
|
end
|
|
@@ -3391,9 +3465,10 @@ module Aws::ComputeOptimizer
|
|
|
3391
3465
|
# The status of the enhanced infrastructure metrics recommendation
|
|
3392
3466
|
# preference.
|
|
3393
3467
|
#
|
|
3394
|
-
#
|
|
3395
|
-
#
|
|
3396
|
-
#
|
|
3468
|
+
# When the recommendations page is refreshed, a status of `Active`
|
|
3469
|
+
# confirms that the preference is applied to the recommendations, and
|
|
3470
|
+
# a status of `Inactive` confirms that the preference isn't yet
|
|
3471
|
+
# applied to recommendations.
|
|
3397
3472
|
#
|
|
3398
3473
|
# For more information, see [Enhanced infrastructure metrics][1] in
|
|
3399
3474
|
# the *Compute Optimizer User Guide*.
|
|
@@ -3406,18 +3481,30 @@ module Aws::ComputeOptimizer
|
|
|
3406
3481
|
# @!attribute [rw] inferred_workload_types
|
|
3407
3482
|
# The status of the inferred workload types recommendation preference.
|
|
3408
3483
|
#
|
|
3409
|
-
#
|
|
3410
|
-
#
|
|
3411
|
-
#
|
|
3484
|
+
# When the recommendations page is refreshed, a status of `Active`
|
|
3485
|
+
# confirms that the preference is applied to the recommendations, and
|
|
3486
|
+
# a status of `Inactive` confirms that the preference isn't yet
|
|
3487
|
+
# applied to recommendations.
|
|
3412
3488
|
# @return [String]
|
|
3413
3489
|
#
|
|
3490
|
+
# @!attribute [rw] external_metrics_preference
|
|
3491
|
+
# An object that describes the external metrics recommendation
|
|
3492
|
+
# preference.
|
|
3493
|
+
#
|
|
3494
|
+
# If the preference is applied in the latest recommendation refresh,
|
|
3495
|
+
# an object with a valid `source` value appears in the response. If
|
|
3496
|
+
# the preference isn't applied to the recommendations already, then
|
|
3497
|
+
# this object doesn't appear in the response.
|
|
3498
|
+
# @return [Types::ExternalMetricsPreference]
|
|
3499
|
+
#
|
|
3414
3500
|
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/RecommendationPreferencesDetail AWS API Documentation
|
|
3415
3501
|
#
|
|
3416
3502
|
class RecommendationPreferencesDetail < Struct.new(
|
|
3417
3503
|
:scope,
|
|
3418
3504
|
:resource_type,
|
|
3419
3505
|
:enhanced_infrastructure_metrics,
|
|
3420
|
-
:inferred_workload_types
|
|
3506
|
+
:inferred_workload_types,
|
|
3507
|
+
:external_metrics_preference)
|
|
3421
3508
|
SENSITIVE = []
|
|
3422
3509
|
include Aws::Structure
|
|
3423
3510
|
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.
|
|
4
|
+
version: 1.35.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: 2022-
|
|
11
|
+
date: 2022-11-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|