aws-sdk-computeoptimizer 1.46.0 → 1.48.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-computeoptimizer/client.rb +267 -17
- data/lib/aws-sdk-computeoptimizer/client_api.rb +154 -0
- data/lib/aws-sdk-computeoptimizer/endpoints.rb +28 -0
- data/lib/aws-sdk-computeoptimizer/plugins/endpoints.rb +4 -0
- data/lib/aws-sdk-computeoptimizer/types.rb +566 -15
- 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: 79a8c1b06d4cb96deb88ccb40a755e4c4b72e2f0242d7853604d6872eb1caafa
|
4
|
+
data.tar.gz: c1e44dfe70cff90ebc4c6cbf800872df134da845f7c51379b496107f38d973d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f72a7b5169a0a1929ee4bb9e44266abdb9512509d9d64365783ea776c3086c092693b29e2bb07f565cf1c0ed6b41622a1c8f041ac282ab36fb1f0cf86573072
|
7
|
+
data.tar.gz: ab10b8cde8bfb30c06f5973aa1bb9c60a6ccf0528ff2eb225d0e0676153740a07d1c9fcfd369aca514fa7e4b773f939a59ed875bedbe6176a6c4794b75d3ad6c
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.48.0 (2023-09-05)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support to provide recommendations for G4dn and P3 instances that use NVIDIA GPUs.
|
8
|
+
|
9
|
+
1.47.0 (2023-08-28)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release enables AWS Compute Optimizer to analyze and generate licensing optimization recommendations for sql server running on EC2 instances.
|
13
|
+
|
4
14
|
1.46.0 (2023-07-11)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.48.0
|
@@ -443,7 +443,7 @@ module Aws::ComputeOptimizer
|
|
443
443
|
# @example Request syntax with placeholder values
|
444
444
|
#
|
445
445
|
# resp = client.delete_recommendation_preferences({
|
446
|
-
# resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction, NotApplicable, EcsService
|
446
|
+
# resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction, NotApplicable, EcsService, License
|
447
447
|
# scope: {
|
448
448
|
# name: "Organization", # accepts Organization, AccountId, ResourceArn
|
449
449
|
# value: "ScopeValue",
|
@@ -518,7 +518,7 @@ module Aws::ComputeOptimizer
|
|
518
518
|
# resp.recommendation_export_jobs[0].destination.s3.bucket #=> String
|
519
519
|
# resp.recommendation_export_jobs[0].destination.s3.key #=> String
|
520
520
|
# resp.recommendation_export_jobs[0].destination.s3.metadata_key #=> String
|
521
|
-
# resp.recommendation_export_jobs[0].resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction", "NotApplicable", "EcsService"
|
521
|
+
# resp.recommendation_export_jobs[0].resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction", "NotApplicable", "EcsService", "License"
|
522
522
|
# resp.recommendation_export_jobs[0].status #=> String, one of "Queued", "InProgress", "Complete", "Failed"
|
523
523
|
# resp.recommendation_export_jobs[0].creation_timestamp #=> Time
|
524
524
|
# resp.recommendation_export_jobs[0].last_updated_timestamp #=> Time
|
@@ -644,7 +644,7 @@ module Aws::ComputeOptimizer
|
|
644
644
|
# values: ["FilterValue"],
|
645
645
|
# },
|
646
646
|
# ],
|
647
|
-
# 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
|
647
|
+
# 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, CurrentInstanceGpuInfo, RecommendationOptionsInstanceGpuInfo, UtilizationMetricsGpuPercentageMaximum, UtilizationMetricsGpuMemoryPercentageMaximum, RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum, RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum
|
648
648
|
# s3_destination_config: { # required
|
649
649
|
# bucket: "DestinationBucket",
|
650
650
|
# key_prefix: "DestinationKeyPrefix",
|
@@ -778,7 +778,7 @@ module Aws::ComputeOptimizer
|
|
778
778
|
# values: ["FilterValue"],
|
779
779
|
# },
|
780
780
|
# ],
|
781
|
-
# fields_to_export: ["AccountId"], # accepts AccountId, VolumeArn, Finding, UtilizationMetricsVolumeReadOpsPerSecondMaximum, UtilizationMetricsVolumeWriteOpsPerSecondMaximum, UtilizationMetricsVolumeReadBytesPerSecondMaximum, UtilizationMetricsVolumeWriteBytesPerSecondMaximum, LookbackPeriodInDays, CurrentConfigurationVolumeType, CurrentConfigurationVolumeBaselineIOPS, CurrentConfigurationVolumeBaselineThroughput, CurrentConfigurationVolumeBurstIOPS, CurrentConfigurationVolumeBurstThroughput, CurrentConfigurationVolumeSize, CurrentMonthlyPrice, RecommendationOptionsConfigurationVolumeType, RecommendationOptionsConfigurationVolumeBaselineIOPS, RecommendationOptionsConfigurationVolumeBaselineThroughput, RecommendationOptionsConfigurationVolumeBurstIOPS, RecommendationOptionsConfigurationVolumeBurstThroughput, RecommendationOptionsConfigurationVolumeSize, RecommendationOptionsMonthlyPrice, RecommendationOptionsPerformanceRisk, LastRefreshTimestamp, CurrentPerformanceRisk, RecommendationOptionsSavingsOpportunityPercentage, RecommendationOptionsEstimatedMonthlySavingsCurrency, RecommendationOptionsEstimatedMonthlySavingsValue, RootVolume, Tags
|
781
|
+
# fields_to_export: ["AccountId"], # accepts AccountId, VolumeArn, Finding, UtilizationMetricsVolumeReadOpsPerSecondMaximum, UtilizationMetricsVolumeWriteOpsPerSecondMaximum, UtilizationMetricsVolumeReadBytesPerSecondMaximum, UtilizationMetricsVolumeWriteBytesPerSecondMaximum, LookbackPeriodInDays, CurrentConfigurationVolumeType, CurrentConfigurationVolumeBaselineIOPS, CurrentConfigurationVolumeBaselineThroughput, CurrentConfigurationVolumeBurstIOPS, CurrentConfigurationVolumeBurstThroughput, CurrentConfigurationVolumeSize, CurrentMonthlyPrice, RecommendationOptionsConfigurationVolumeType, RecommendationOptionsConfigurationVolumeBaselineIOPS, RecommendationOptionsConfigurationVolumeBaselineThroughput, RecommendationOptionsConfigurationVolumeBurstIOPS, RecommendationOptionsConfigurationVolumeBurstThroughput, RecommendationOptionsConfigurationVolumeSize, RecommendationOptionsMonthlyPrice, RecommendationOptionsPerformanceRisk, LastRefreshTimestamp, CurrentPerformanceRisk, RecommendationOptionsSavingsOpportunityPercentage, RecommendationOptionsEstimatedMonthlySavingsCurrency, RecommendationOptionsEstimatedMonthlySavingsValue, RootVolume, Tags, CurrentConfigurationRootVolume
|
782
782
|
# s3_destination_config: { # required
|
783
783
|
# bucket: "DestinationBucket",
|
784
784
|
# key_prefix: "DestinationKeyPrefix",
|
@@ -910,7 +910,7 @@ module Aws::ComputeOptimizer
|
|
910
910
|
# values: ["FilterValue"],
|
911
911
|
# },
|
912
912
|
# ],
|
913
|
-
# 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, InstanceState, Tags, ExternalMetricStatusCode, ExternalMetricStatusReason
|
913
|
+
# 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, InstanceState, Tags, ExternalMetricStatusCode, ExternalMetricStatusReason, CurrentInstanceGpuInfo, RecommendationOptionsInstanceGpuInfo, UtilizationMetricsGpuPercentageMaximum, UtilizationMetricsGpuMemoryPercentageMaximum, RecommendationOptionsProjectedUtilizationMetricsGpuPercentageMaximum, RecommendationOptionsProjectedUtilizationMetricsGpuMemoryPercentageMaximum, Idle
|
914
914
|
# s3_destination_config: { # required
|
915
915
|
# bucket: "DestinationBucket",
|
916
916
|
# key_prefix: "DestinationKeyPrefix",
|
@@ -1199,6 +1199,134 @@ module Aws::ComputeOptimizer
|
|
1199
1199
|
req.send_request(options)
|
1200
1200
|
end
|
1201
1201
|
|
1202
|
+
# Export optimization recommendations for your licenses.
|
1203
|
+
#
|
1204
|
+
# Recommendations are exported in a comma-separated values (CSV) file,
|
1205
|
+
# and its metadata in a JavaScript Object Notation (JSON) file, to an
|
1206
|
+
# existing Amazon Simple Storage Service (Amazon S3) bucket that you
|
1207
|
+
# specify. For more information, see [Exporting Recommendations][1] in
|
1208
|
+
# the *Compute Optimizer User Guide*.
|
1209
|
+
#
|
1210
|
+
# You can have only one license export job in progress per Amazon Web
|
1211
|
+
# Services Region.
|
1212
|
+
#
|
1213
|
+
#
|
1214
|
+
#
|
1215
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html
|
1216
|
+
#
|
1217
|
+
# @option params [Array<String>] :account_ids
|
1218
|
+
# The IDs of the Amazon Web Services accounts for which to export
|
1219
|
+
# license recommendations.
|
1220
|
+
#
|
1221
|
+
# If your account is the management account of an organization, use this
|
1222
|
+
# parameter to specify the member account for which you want to export
|
1223
|
+
# recommendations.
|
1224
|
+
#
|
1225
|
+
# This parameter can't be specified together with the include member
|
1226
|
+
# accounts parameter. The parameters are mutually exclusive.
|
1227
|
+
#
|
1228
|
+
# If this parameter is omitted, recommendations for member accounts
|
1229
|
+
# aren't included in the export.
|
1230
|
+
#
|
1231
|
+
# You can specify multiple account IDs per request.
|
1232
|
+
#
|
1233
|
+
# @option params [Array<Types::LicenseRecommendationFilter>] :filters
|
1234
|
+
# An array of objects to specify a filter that exports a more specific
|
1235
|
+
# set of license recommendations.
|
1236
|
+
#
|
1237
|
+
# @option params [Array<String>] :fields_to_export
|
1238
|
+
# The recommendations data to include in the export file. For more
|
1239
|
+
# information about the fields that can be exported, see [Exported
|
1240
|
+
# files][1] in the *Compute Optimizer User Guide*.
|
1241
|
+
#
|
1242
|
+
#
|
1243
|
+
#
|
1244
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html#exported-files
|
1245
|
+
#
|
1246
|
+
# @option params [required, Types::S3DestinationConfig] :s3_destination_config
|
1247
|
+
# Describes the destination Amazon Simple Storage Service (Amazon S3)
|
1248
|
+
# bucket name and key prefix for a recommendations export job.
|
1249
|
+
#
|
1250
|
+
# You must create the destination Amazon S3 bucket for your
|
1251
|
+
# recommendations export before you create the export job. Compute
|
1252
|
+
# Optimizer does not create the S3 bucket for you. After you create the
|
1253
|
+
# S3 bucket, ensure that it has the required permission policy to allow
|
1254
|
+
# Compute Optimizer to write the export file to it. If you plan to
|
1255
|
+
# specify an object prefix when you create the export job, you must
|
1256
|
+
# include the object prefix in the policy that you add to the S3 bucket.
|
1257
|
+
# For more information, see [Amazon S3 Bucket Policy for Compute
|
1258
|
+
# Optimizer][1] in the *Compute Optimizer User Guide*.
|
1259
|
+
#
|
1260
|
+
#
|
1261
|
+
#
|
1262
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/create-s3-bucket-policy-for-compute-optimizer.html
|
1263
|
+
#
|
1264
|
+
# @option params [String] :file_format
|
1265
|
+
# The format of the export file.
|
1266
|
+
#
|
1267
|
+
# A CSV file is the only export format currently supported.
|
1268
|
+
#
|
1269
|
+
# @option params [Boolean] :include_member_accounts
|
1270
|
+
# Indicates whether to include recommendations for resources in all
|
1271
|
+
# member accounts of the organization if your account is the management
|
1272
|
+
# account of an organization.
|
1273
|
+
#
|
1274
|
+
# The member accounts must also be opted in to Compute Optimizer, and
|
1275
|
+
# trusted access for Compute Optimizer must be enabled in the
|
1276
|
+
# organization account. For more information, see [Compute Optimizer and
|
1277
|
+
# Amazon Web Services Organizations trusted access][1] in the *Compute
|
1278
|
+
# Optimizer User Guide*.
|
1279
|
+
#
|
1280
|
+
# If this parameter is omitted, recommendations for member accounts of
|
1281
|
+
# the organization aren't included in the export file .
|
1282
|
+
#
|
1283
|
+
# This parameter cannot be specified together with the account IDs
|
1284
|
+
# parameter. The parameters are mutually exclusive.
|
1285
|
+
#
|
1286
|
+
#
|
1287
|
+
#
|
1288
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html#trusted-service-access
|
1289
|
+
#
|
1290
|
+
# @return [Types::ExportLicenseRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1291
|
+
#
|
1292
|
+
# * {Types::ExportLicenseRecommendationsResponse#job_id #job_id} => String
|
1293
|
+
# * {Types::ExportLicenseRecommendationsResponse#s3_destination #s3_destination} => Types::S3Destination
|
1294
|
+
#
|
1295
|
+
# @example Request syntax with placeholder values
|
1296
|
+
#
|
1297
|
+
# resp = client.export_license_recommendations({
|
1298
|
+
# account_ids: ["AccountId"],
|
1299
|
+
# filters: [
|
1300
|
+
# {
|
1301
|
+
# name: "Finding", # accepts Finding, FindingReasonCode, LicenseName
|
1302
|
+
# values: ["FilterValue"],
|
1303
|
+
# },
|
1304
|
+
# ],
|
1305
|
+
# fields_to_export: ["AccountId"], # accepts AccountId, ResourceArn, LookbackPeriodInDays, LastRefreshTimestamp, Finding, FindingReasonCodes, CurrentLicenseConfigurationNumberOfCores, CurrentLicenseConfigurationInstanceType, CurrentLicenseConfigurationOperatingSystem, CurrentLicenseConfigurationLicenseName, CurrentLicenseConfigurationLicenseEdition, CurrentLicenseConfigurationLicenseModel, CurrentLicenseConfigurationLicenseVersion, CurrentLicenseConfigurationMetricsSource, RecommendationOptionsOperatingSystem, RecommendationOptionsLicenseEdition, RecommendationOptionsLicenseModel, RecommendationOptionsSavingsOpportunityPercentage, RecommendationOptionsEstimatedMonthlySavingsCurrency, RecommendationOptionsEstimatedMonthlySavingsValue, Tags
|
1306
|
+
# s3_destination_config: { # required
|
1307
|
+
# bucket: "DestinationBucket",
|
1308
|
+
# key_prefix: "DestinationKeyPrefix",
|
1309
|
+
# },
|
1310
|
+
# file_format: "Csv", # accepts Csv
|
1311
|
+
# include_member_accounts: false,
|
1312
|
+
# })
|
1313
|
+
#
|
1314
|
+
# @example Response structure
|
1315
|
+
#
|
1316
|
+
# resp.job_id #=> String
|
1317
|
+
# resp.s3_destination.bucket #=> String
|
1318
|
+
# resp.s3_destination.key #=> String
|
1319
|
+
# resp.s3_destination.metadata_key #=> String
|
1320
|
+
#
|
1321
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/ExportLicenseRecommendations AWS API Documentation
|
1322
|
+
#
|
1323
|
+
# @overload export_license_recommendations(params = {})
|
1324
|
+
# @param [Hash] params ({})
|
1325
|
+
def export_license_recommendations(params = {}, options = {})
|
1326
|
+
req = build_request(:export_license_recommendations, params)
|
1327
|
+
req.send_request(options)
|
1328
|
+
end
|
1329
|
+
|
1202
1330
|
# Returns Auto Scaling group recommendations.
|
1203
1331
|
#
|
1204
1332
|
# Compute Optimizer generates recommendations for Amazon EC2 Auto
|
@@ -1276,7 +1404,7 @@ module Aws::ComputeOptimizer
|
|
1276
1404
|
# resp.auto_scaling_group_recommendations[0].auto_scaling_group_name #=> String
|
1277
1405
|
# resp.auto_scaling_group_recommendations[0].finding #=> String, one of "Underprovisioned", "Overprovisioned", "Optimized", "NotOptimized"
|
1278
1406
|
# resp.auto_scaling_group_recommendations[0].utilization_metrics #=> Array
|
1279
|
-
# resp.auto_scaling_group_recommendations[0].utilization_metrics[0].name #=> String, one of "Cpu", "Memory", "EBS_READ_OPS_PER_SECOND", "EBS_WRITE_OPS_PER_SECOND", "EBS_READ_BYTES_PER_SECOND", "EBS_WRITE_BYTES_PER_SECOND", "DISK_READ_OPS_PER_SECOND", "DISK_WRITE_OPS_PER_SECOND", "DISK_READ_BYTES_PER_SECOND", "DISK_WRITE_BYTES_PER_SECOND", "NETWORK_IN_BYTES_PER_SECOND", "NETWORK_OUT_BYTES_PER_SECOND", "NETWORK_PACKETS_IN_PER_SECOND", "NETWORK_PACKETS_OUT_PER_SECOND"
|
1407
|
+
# resp.auto_scaling_group_recommendations[0].utilization_metrics[0].name #=> String, one of "Cpu", "Memory", "EBS_READ_OPS_PER_SECOND", "EBS_WRITE_OPS_PER_SECOND", "EBS_READ_BYTES_PER_SECOND", "EBS_WRITE_BYTES_PER_SECOND", "DISK_READ_OPS_PER_SECOND", "DISK_WRITE_OPS_PER_SECOND", "DISK_READ_BYTES_PER_SECOND", "DISK_WRITE_BYTES_PER_SECOND", "NETWORK_IN_BYTES_PER_SECOND", "NETWORK_OUT_BYTES_PER_SECOND", "NETWORK_PACKETS_IN_PER_SECOND", "NETWORK_PACKETS_OUT_PER_SECOND", "GPU_PERCENTAGE", "GPU_MEMORY_PERCENTAGE"
|
1280
1408
|
# resp.auto_scaling_group_recommendations[0].utilization_metrics[0].statistic #=> String, one of "Maximum", "Average"
|
1281
1409
|
# resp.auto_scaling_group_recommendations[0].utilization_metrics[0].value #=> Float
|
1282
1410
|
# resp.auto_scaling_group_recommendations[0].look_back_period_in_days #=> Float
|
@@ -1290,7 +1418,7 @@ module Aws::ComputeOptimizer
|
|
1290
1418
|
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].configuration.max_size #=> Integer
|
1291
1419
|
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].configuration.instance_type #=> String
|
1292
1420
|
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].projected_utilization_metrics #=> Array
|
1293
|
-
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].name #=> String, one of "Cpu", "Memory", "EBS_READ_OPS_PER_SECOND", "EBS_WRITE_OPS_PER_SECOND", "EBS_READ_BYTES_PER_SECOND", "EBS_WRITE_BYTES_PER_SECOND", "DISK_READ_OPS_PER_SECOND", "DISK_WRITE_OPS_PER_SECOND", "DISK_READ_BYTES_PER_SECOND", "DISK_WRITE_BYTES_PER_SECOND", "NETWORK_IN_BYTES_PER_SECOND", "NETWORK_OUT_BYTES_PER_SECOND", "NETWORK_PACKETS_IN_PER_SECOND", "NETWORK_PACKETS_OUT_PER_SECOND"
|
1421
|
+
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].name #=> String, one of "Cpu", "Memory", "EBS_READ_OPS_PER_SECOND", "EBS_WRITE_OPS_PER_SECOND", "EBS_READ_BYTES_PER_SECOND", "EBS_WRITE_BYTES_PER_SECOND", "DISK_READ_OPS_PER_SECOND", "DISK_WRITE_OPS_PER_SECOND", "DISK_READ_BYTES_PER_SECOND", "DISK_WRITE_BYTES_PER_SECOND", "NETWORK_IN_BYTES_PER_SECOND", "NETWORK_OUT_BYTES_PER_SECOND", "NETWORK_PACKETS_IN_PER_SECOND", "NETWORK_PACKETS_OUT_PER_SECOND", "GPU_PERCENTAGE", "GPU_MEMORY_PERCENTAGE"
|
1294
1422
|
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].statistic #=> String, one of "Maximum", "Average"
|
1295
1423
|
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].value #=> Float
|
1296
1424
|
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].performance_risk #=> Float
|
@@ -1299,6 +1427,9 @@ module Aws::ComputeOptimizer
|
|
1299
1427
|
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
|
1300
1428
|
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.value #=> Float
|
1301
1429
|
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].migration_effort #=> String, one of "VeryLow", "Low", "Medium", "High"
|
1430
|
+
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].instance_gpu_info.gpus #=> Array
|
1431
|
+
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].instance_gpu_info.gpus[0].gpu_count #=> Integer
|
1432
|
+
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].instance_gpu_info.gpus[0].gpu_memory_size_in_mi_b #=> Integer
|
1302
1433
|
# resp.auto_scaling_group_recommendations[0].last_refresh_timestamp #=> Time
|
1303
1434
|
# resp.auto_scaling_group_recommendations[0].current_performance_risk #=> String, one of "VeryLow", "Low", "Medium", "High"
|
1304
1435
|
# resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures #=> Array
|
@@ -1308,6 +1439,9 @@ module Aws::ComputeOptimizer
|
|
1308
1439
|
# resp.auto_scaling_group_recommendations[0].effective_recommendation_preferences.external_metrics_preference.source #=> String, one of "Datadog", "Dynatrace", "NewRelic", "Instana"
|
1309
1440
|
# resp.auto_scaling_group_recommendations[0].inferred_workload_types #=> Array
|
1310
1441
|
# resp.auto_scaling_group_recommendations[0].inferred_workload_types[0] #=> String, one of "AmazonEmr", "ApacheCassandra", "ApacheHadoop", "Memcached", "Nginx", "PostgreSql", "Redis", "Kafka", "SQLServer"
|
1442
|
+
# resp.auto_scaling_group_recommendations[0].current_instance_gpu_info.gpus #=> Array
|
1443
|
+
# resp.auto_scaling_group_recommendations[0].current_instance_gpu_info.gpus[0].gpu_count #=> Integer
|
1444
|
+
# resp.auto_scaling_group_recommendations[0].current_instance_gpu_info.gpus[0].gpu_memory_size_in_mi_b #=> Integer
|
1311
1445
|
# resp.errors #=> Array
|
1312
1446
|
# resp.errors[0].identifier #=> String
|
1313
1447
|
# resp.errors[0].code #=> String
|
@@ -1511,16 +1645,16 @@ module Aws::ComputeOptimizer
|
|
1511
1645
|
# resp.instance_recommendations[0].current_instance_type #=> String
|
1512
1646
|
# resp.instance_recommendations[0].finding #=> String, one of "Underprovisioned", "Overprovisioned", "Optimized", "NotOptimized"
|
1513
1647
|
# resp.instance_recommendations[0].finding_reason_codes #=> Array
|
1514
|
-
# resp.instance_recommendations[0].finding_reason_codes[0] #=> String, one of "CPUOverprovisioned", "CPUUnderprovisioned", "MemoryOverprovisioned", "MemoryUnderprovisioned", "EBSThroughputOverprovisioned", "EBSThroughputUnderprovisioned", "EBSIOPSOverprovisioned", "EBSIOPSUnderprovisioned", "NetworkBandwidthOverprovisioned", "NetworkBandwidthUnderprovisioned", "NetworkPPSOverprovisioned", "NetworkPPSUnderprovisioned", "DiskIOPSOverprovisioned", "DiskIOPSUnderprovisioned", "DiskThroughputOverprovisioned", "DiskThroughputUnderprovisioned"
|
1648
|
+
# resp.instance_recommendations[0].finding_reason_codes[0] #=> String, one of "CPUOverprovisioned", "CPUUnderprovisioned", "MemoryOverprovisioned", "MemoryUnderprovisioned", "EBSThroughputOverprovisioned", "EBSThroughputUnderprovisioned", "EBSIOPSOverprovisioned", "EBSIOPSUnderprovisioned", "NetworkBandwidthOverprovisioned", "NetworkBandwidthUnderprovisioned", "NetworkPPSOverprovisioned", "NetworkPPSUnderprovisioned", "DiskIOPSOverprovisioned", "DiskIOPSUnderprovisioned", "DiskThroughputOverprovisioned", "DiskThroughputUnderprovisioned", "GPUUnderprovisioned", "GPUOverprovisioned", "GPUMemoryUnderprovisioned", "GPUMemoryOverprovisioned"
|
1515
1649
|
# resp.instance_recommendations[0].utilization_metrics #=> Array
|
1516
|
-
# resp.instance_recommendations[0].utilization_metrics[0].name #=> String, one of "Cpu", "Memory", "EBS_READ_OPS_PER_SECOND", "EBS_WRITE_OPS_PER_SECOND", "EBS_READ_BYTES_PER_SECOND", "EBS_WRITE_BYTES_PER_SECOND", "DISK_READ_OPS_PER_SECOND", "DISK_WRITE_OPS_PER_SECOND", "DISK_READ_BYTES_PER_SECOND", "DISK_WRITE_BYTES_PER_SECOND", "NETWORK_IN_BYTES_PER_SECOND", "NETWORK_OUT_BYTES_PER_SECOND", "NETWORK_PACKETS_IN_PER_SECOND", "NETWORK_PACKETS_OUT_PER_SECOND"
|
1650
|
+
# resp.instance_recommendations[0].utilization_metrics[0].name #=> String, one of "Cpu", "Memory", "EBS_READ_OPS_PER_SECOND", "EBS_WRITE_OPS_PER_SECOND", "EBS_READ_BYTES_PER_SECOND", "EBS_WRITE_BYTES_PER_SECOND", "DISK_READ_OPS_PER_SECOND", "DISK_WRITE_OPS_PER_SECOND", "DISK_READ_BYTES_PER_SECOND", "DISK_WRITE_BYTES_PER_SECOND", "NETWORK_IN_BYTES_PER_SECOND", "NETWORK_OUT_BYTES_PER_SECOND", "NETWORK_PACKETS_IN_PER_SECOND", "NETWORK_PACKETS_OUT_PER_SECOND", "GPU_PERCENTAGE", "GPU_MEMORY_PERCENTAGE"
|
1517
1651
|
# resp.instance_recommendations[0].utilization_metrics[0].statistic #=> String, one of "Maximum", "Average"
|
1518
1652
|
# resp.instance_recommendations[0].utilization_metrics[0].value #=> Float
|
1519
1653
|
# resp.instance_recommendations[0].look_back_period_in_days #=> Float
|
1520
1654
|
# resp.instance_recommendations[0].recommendation_options #=> Array
|
1521
1655
|
# resp.instance_recommendations[0].recommendation_options[0].instance_type #=> String
|
1522
1656
|
# resp.instance_recommendations[0].recommendation_options[0].projected_utilization_metrics #=> Array
|
1523
|
-
# resp.instance_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].name #=> String, one of "Cpu", "Memory", "EBS_READ_OPS_PER_SECOND", "EBS_WRITE_OPS_PER_SECOND", "EBS_READ_BYTES_PER_SECOND", "EBS_WRITE_BYTES_PER_SECOND", "DISK_READ_OPS_PER_SECOND", "DISK_WRITE_OPS_PER_SECOND", "DISK_READ_BYTES_PER_SECOND", "DISK_WRITE_BYTES_PER_SECOND", "NETWORK_IN_BYTES_PER_SECOND", "NETWORK_OUT_BYTES_PER_SECOND", "NETWORK_PACKETS_IN_PER_SECOND", "NETWORK_PACKETS_OUT_PER_SECOND"
|
1657
|
+
# resp.instance_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].name #=> String, one of "Cpu", "Memory", "EBS_READ_OPS_PER_SECOND", "EBS_WRITE_OPS_PER_SECOND", "EBS_READ_BYTES_PER_SECOND", "EBS_WRITE_BYTES_PER_SECOND", "DISK_READ_OPS_PER_SECOND", "DISK_WRITE_OPS_PER_SECOND", "DISK_READ_BYTES_PER_SECOND", "DISK_WRITE_BYTES_PER_SECOND", "NETWORK_IN_BYTES_PER_SECOND", "NETWORK_OUT_BYTES_PER_SECOND", "NETWORK_PACKETS_IN_PER_SECOND", "NETWORK_PACKETS_OUT_PER_SECOND", "GPU_PERCENTAGE", "GPU_MEMORY_PERCENTAGE"
|
1524
1658
|
# resp.instance_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].statistic #=> String, one of "Maximum", "Average"
|
1525
1659
|
# resp.instance_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].value #=> Float
|
1526
1660
|
# resp.instance_recommendations[0].recommendation_options[0].platform_differences #=> Array
|
@@ -1531,9 +1665,12 @@ module Aws::ComputeOptimizer
|
|
1531
1665
|
# resp.instance_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
|
1532
1666
|
# resp.instance_recommendations[0].recommendation_options[0].savings_opportunity.estimated_monthly_savings.value #=> Float
|
1533
1667
|
# resp.instance_recommendations[0].recommendation_options[0].migration_effort #=> String, one of "VeryLow", "Low", "Medium", "High"
|
1668
|
+
# resp.instance_recommendations[0].recommendation_options[0].instance_gpu_info.gpus #=> Array
|
1669
|
+
# resp.instance_recommendations[0].recommendation_options[0].instance_gpu_info.gpus[0].gpu_count #=> Integer
|
1670
|
+
# resp.instance_recommendations[0].recommendation_options[0].instance_gpu_info.gpus[0].gpu_memory_size_in_mi_b #=> Integer
|
1534
1671
|
# resp.instance_recommendations[0].recommendation_sources #=> Array
|
1535
1672
|
# resp.instance_recommendations[0].recommendation_sources[0].recommendation_source_arn #=> String
|
1536
|
-
# resp.instance_recommendations[0].recommendation_sources[0].recommendation_source_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction", "EcsService"
|
1673
|
+
# resp.instance_recommendations[0].recommendation_sources[0].recommendation_source_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction", "EcsService", "License"
|
1537
1674
|
# resp.instance_recommendations[0].last_refresh_timestamp #=> Time
|
1538
1675
|
# resp.instance_recommendations[0].current_performance_risk #=> String, one of "VeryLow", "Low", "Medium", "High"
|
1539
1676
|
# resp.instance_recommendations[0].effective_recommendation_preferences.cpu_vendor_architectures #=> Array
|
@@ -1549,6 +1686,10 @@ module Aws::ComputeOptimizer
|
|
1549
1686
|
# resp.instance_recommendations[0].tags[0].value #=> String
|
1550
1687
|
# resp.instance_recommendations[0].external_metric_status.status_code #=> String, one of "NO_EXTERNAL_METRIC_SET", "INTEGRATION_SUCCESS", "DATADOG_INTEGRATION_ERROR", "DYNATRACE_INTEGRATION_ERROR", "NEWRELIC_INTEGRATION_ERROR", "INSTANA_INTEGRATION_ERROR", "INSUFFICIENT_DATADOG_METRICS", "INSUFFICIENT_DYNATRACE_METRICS", "INSUFFICIENT_NEWRELIC_METRICS", "INSUFFICIENT_INSTANA_METRICS"
|
1551
1688
|
# resp.instance_recommendations[0].external_metric_status.status_reason #=> String
|
1689
|
+
# resp.instance_recommendations[0].current_instance_gpu_info.gpus #=> Array
|
1690
|
+
# resp.instance_recommendations[0].current_instance_gpu_info.gpus[0].gpu_count #=> Integer
|
1691
|
+
# resp.instance_recommendations[0].current_instance_gpu_info.gpus[0].gpu_memory_size_in_mi_b #=> Integer
|
1692
|
+
# resp.instance_recommendations[0].idle #=> String, one of "True", "False"
|
1552
1693
|
# resp.errors #=> Array
|
1553
1694
|
# resp.errors[0].identifier #=> String
|
1554
1695
|
# resp.errors[0].code #=> String
|
@@ -1621,7 +1762,7 @@ module Aws::ComputeOptimizer
|
|
1621
1762
|
# resp.recommended_option_projected_metrics[0].recommended_instance_type #=> String
|
1622
1763
|
# resp.recommended_option_projected_metrics[0].rank #=> Integer
|
1623
1764
|
# resp.recommended_option_projected_metrics[0].projected_metrics #=> Array
|
1624
|
-
# resp.recommended_option_projected_metrics[0].projected_metrics[0].name #=> String, one of "Cpu", "Memory", "EBS_READ_OPS_PER_SECOND", "EBS_WRITE_OPS_PER_SECOND", "EBS_READ_BYTES_PER_SECOND", "EBS_WRITE_BYTES_PER_SECOND", "DISK_READ_OPS_PER_SECOND", "DISK_WRITE_OPS_PER_SECOND", "DISK_READ_BYTES_PER_SECOND", "DISK_WRITE_BYTES_PER_SECOND", "NETWORK_IN_BYTES_PER_SECOND", "NETWORK_OUT_BYTES_PER_SECOND", "NETWORK_PACKETS_IN_PER_SECOND", "NETWORK_PACKETS_OUT_PER_SECOND"
|
1765
|
+
# resp.recommended_option_projected_metrics[0].projected_metrics[0].name #=> String, one of "Cpu", "Memory", "EBS_READ_OPS_PER_SECOND", "EBS_WRITE_OPS_PER_SECOND", "EBS_READ_BYTES_PER_SECOND", "EBS_WRITE_BYTES_PER_SECOND", "DISK_READ_OPS_PER_SECOND", "DISK_WRITE_OPS_PER_SECOND", "DISK_READ_BYTES_PER_SECOND", "DISK_WRITE_BYTES_PER_SECOND", "NETWORK_IN_BYTES_PER_SECOND", "NETWORK_OUT_BYTES_PER_SECOND", "NETWORK_PACKETS_IN_PER_SECOND", "NETWORK_PACKETS_OUT_PER_SECOND", "GPU_PERCENTAGE", "GPU_MEMORY_PERCENTAGE"
|
1625
1766
|
# resp.recommended_option_projected_metrics[0].projected_metrics[0].timestamps #=> Array
|
1626
1767
|
# resp.recommended_option_projected_metrics[0].projected_metrics[0].timestamps[0] #=> Time
|
1627
1768
|
# resp.recommended_option_projected_metrics[0].projected_metrics[0].values #=> Array
|
@@ -2064,6 +2205,115 @@ module Aws::ComputeOptimizer
|
|
2064
2205
|
req.send_request(options)
|
2065
2206
|
end
|
2066
2207
|
|
2208
|
+
# Returns license recommendations for Amazon EC2 instances that run on a
|
2209
|
+
# specific license.
|
2210
|
+
#
|
2211
|
+
# Compute Optimizer generates recommendations for licenses that meet a
|
2212
|
+
# specific set of requirements. For more information, see the [Supported
|
2213
|
+
# resources and requirements][1] in the *Compute Optimizer User Guide*.
|
2214
|
+
#
|
2215
|
+
#
|
2216
|
+
#
|
2217
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html
|
2218
|
+
#
|
2219
|
+
# @option params [Array<String>] :resource_arns
|
2220
|
+
# The ARN that identifies the Amazon EC2 instance.
|
2221
|
+
#
|
2222
|
+
# The following is the format of the ARN:
|
2223
|
+
#
|
2224
|
+
# `arn:aws:ec2:region:aws_account_id:instance/instance-id`
|
2225
|
+
#
|
2226
|
+
# @option params [String] :next_token
|
2227
|
+
# The token to advance to the next page of license recommendations.
|
2228
|
+
#
|
2229
|
+
# @option params [Integer] :max_results
|
2230
|
+
# The maximum number of license recommendations to return with a single
|
2231
|
+
# request.
|
2232
|
+
#
|
2233
|
+
# To retrieve the remaining results, make another request with the
|
2234
|
+
# returned `nextToken` value.
|
2235
|
+
#
|
2236
|
+
# @option params [Array<Types::LicenseRecommendationFilter>] :filters
|
2237
|
+
# An array of objects to specify a filter that returns a more specific
|
2238
|
+
# list of license recommendations.
|
2239
|
+
#
|
2240
|
+
# @option params [Array<String>] :account_ids
|
2241
|
+
# The ID of the Amazon Web Services account for which to return license
|
2242
|
+
# recommendations.
|
2243
|
+
#
|
2244
|
+
# If your account is the management account of an organization, use this
|
2245
|
+
# parameter to specify the member account for which you want to return
|
2246
|
+
# license recommendations.
|
2247
|
+
#
|
2248
|
+
# Only one account ID can be specified per request.
|
2249
|
+
#
|
2250
|
+
# @return [Types::GetLicenseRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2251
|
+
#
|
2252
|
+
# * {Types::GetLicenseRecommendationsResponse#next_token #next_token} => String
|
2253
|
+
# * {Types::GetLicenseRecommendationsResponse#license_recommendations #license_recommendations} => Array<Types::LicenseRecommendation>
|
2254
|
+
# * {Types::GetLicenseRecommendationsResponse#errors #errors} => Array<Types::GetRecommendationError>
|
2255
|
+
#
|
2256
|
+
# @example Request syntax with placeholder values
|
2257
|
+
#
|
2258
|
+
# resp = client.get_license_recommendations({
|
2259
|
+
# resource_arns: ["ResourceArn"],
|
2260
|
+
# next_token: "NextToken",
|
2261
|
+
# max_results: 1,
|
2262
|
+
# filters: [
|
2263
|
+
# {
|
2264
|
+
# name: "Finding", # accepts Finding, FindingReasonCode, LicenseName
|
2265
|
+
# values: ["FilterValue"],
|
2266
|
+
# },
|
2267
|
+
# ],
|
2268
|
+
# account_ids: ["AccountId"],
|
2269
|
+
# })
|
2270
|
+
#
|
2271
|
+
# @example Response structure
|
2272
|
+
#
|
2273
|
+
# resp.next_token #=> String
|
2274
|
+
# resp.license_recommendations #=> Array
|
2275
|
+
# resp.license_recommendations[0].resource_arn #=> String
|
2276
|
+
# resp.license_recommendations[0].account_id #=> String
|
2277
|
+
# resp.license_recommendations[0].current_license_configuration.number_of_cores #=> Integer
|
2278
|
+
# resp.license_recommendations[0].current_license_configuration.instance_type #=> String
|
2279
|
+
# resp.license_recommendations[0].current_license_configuration.operating_system #=> String
|
2280
|
+
# resp.license_recommendations[0].current_license_configuration.license_edition #=> String, one of "Enterprise", "Standard", "Free", "NoLicenseEditionFound"
|
2281
|
+
# resp.license_recommendations[0].current_license_configuration.license_name #=> String, one of "SQLServer"
|
2282
|
+
# resp.license_recommendations[0].current_license_configuration.license_model #=> String, one of "LicenseIncluded", "BringYourOwnLicense"
|
2283
|
+
# resp.license_recommendations[0].current_license_configuration.license_version #=> String
|
2284
|
+
# resp.license_recommendations[0].current_license_configuration.metrics_source #=> Array
|
2285
|
+
# resp.license_recommendations[0].current_license_configuration.metrics_source[0].provider #=> String, one of "CloudWatchApplicationInsights"
|
2286
|
+
# resp.license_recommendations[0].current_license_configuration.metrics_source[0].provider_arn #=> String
|
2287
|
+
# resp.license_recommendations[0].lookback_period_in_days #=> Float
|
2288
|
+
# resp.license_recommendations[0].last_refresh_timestamp #=> Time
|
2289
|
+
# resp.license_recommendations[0].finding #=> String, one of "InsufficientMetrics", "Optimized", "NotOptimized"
|
2290
|
+
# resp.license_recommendations[0].finding_reason_codes #=> Array
|
2291
|
+
# resp.license_recommendations[0].finding_reason_codes[0] #=> String, one of "InvalidCloudWatchApplicationInsightsSetup", "CloudWatchApplicationInsightsError", "LicenseOverprovisioned", "Optimized"
|
2292
|
+
# resp.license_recommendations[0].license_recommendation_options #=> Array
|
2293
|
+
# resp.license_recommendations[0].license_recommendation_options[0].rank #=> Integer
|
2294
|
+
# resp.license_recommendations[0].license_recommendation_options[0].operating_system #=> String
|
2295
|
+
# resp.license_recommendations[0].license_recommendation_options[0].license_edition #=> String, one of "Enterprise", "Standard", "Free", "NoLicenseEditionFound"
|
2296
|
+
# resp.license_recommendations[0].license_recommendation_options[0].license_model #=> String, one of "LicenseIncluded", "BringYourOwnLicense"
|
2297
|
+
# resp.license_recommendations[0].license_recommendation_options[0].savings_opportunity.savings_opportunity_percentage #=> Float
|
2298
|
+
# resp.license_recommendations[0].license_recommendation_options[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
|
2299
|
+
# resp.license_recommendations[0].license_recommendation_options[0].savings_opportunity.estimated_monthly_savings.value #=> Float
|
2300
|
+
# resp.license_recommendations[0].tags #=> Array
|
2301
|
+
# resp.license_recommendations[0].tags[0].key #=> String
|
2302
|
+
# resp.license_recommendations[0].tags[0].value #=> String
|
2303
|
+
# resp.errors #=> Array
|
2304
|
+
# resp.errors[0].identifier #=> String
|
2305
|
+
# resp.errors[0].code #=> String
|
2306
|
+
# resp.errors[0].message #=> String
|
2307
|
+
#
|
2308
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetLicenseRecommendations AWS API Documentation
|
2309
|
+
#
|
2310
|
+
# @overload get_license_recommendations(params = {})
|
2311
|
+
# @param [Hash] params ({})
|
2312
|
+
def get_license_recommendations(params = {}, options = {})
|
2313
|
+
req = build_request(:get_license_recommendations, params)
|
2314
|
+
req.send_request(options)
|
2315
|
+
end
|
2316
|
+
|
2067
2317
|
# Returns existing recommendation preferences, such as enhanced
|
2068
2318
|
# infrastructure metrics.
|
2069
2319
|
#
|
@@ -2127,7 +2377,7 @@ module Aws::ComputeOptimizer
|
|
2127
2377
|
# @example Request syntax with placeholder values
|
2128
2378
|
#
|
2129
2379
|
# resp = client.get_recommendation_preferences({
|
2130
|
-
# resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction, NotApplicable, EcsService
|
2380
|
+
# resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction, NotApplicable, EcsService, License
|
2131
2381
|
# scope: {
|
2132
2382
|
# name: "Organization", # accepts Organization, AccountId, ResourceArn
|
2133
2383
|
# value: "ScopeValue",
|
@@ -2142,7 +2392,7 @@ module Aws::ComputeOptimizer
|
|
2142
2392
|
# resp.recommendation_preferences_details #=> Array
|
2143
2393
|
# resp.recommendation_preferences_details[0].scope.name #=> String, one of "Organization", "AccountId", "ResourceArn"
|
2144
2394
|
# resp.recommendation_preferences_details[0].scope.value #=> String
|
2145
|
-
# resp.recommendation_preferences_details[0].resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction", "NotApplicable", "EcsService"
|
2395
|
+
# resp.recommendation_preferences_details[0].resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction", "NotApplicable", "EcsService", "License"
|
2146
2396
|
# resp.recommendation_preferences_details[0].enhanced_infrastructure_metrics #=> String, one of "Active", "Inactive"
|
2147
2397
|
# resp.recommendation_preferences_details[0].inferred_workload_types #=> String, one of "Active", "Inactive"
|
2148
2398
|
# resp.recommendation_preferences_details[0].external_metrics_preference.source #=> String, one of "Datadog", "Dynatrace", "NewRelic", "Instana"
|
@@ -2220,7 +2470,7 @@ module Aws::ComputeOptimizer
|
|
2220
2470
|
# resp.recommendation_summaries[0].summaries[0].reason_code_summaries #=> Array
|
2221
2471
|
# resp.recommendation_summaries[0].summaries[0].reason_code_summaries[0].name #=> String, one of "MemoryOverprovisioned", "MemoryUnderprovisioned"
|
2222
2472
|
# resp.recommendation_summaries[0].summaries[0].reason_code_summaries[0].value #=> Float
|
2223
|
-
# resp.recommendation_summaries[0].recommendation_resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction", "EcsService"
|
2473
|
+
# resp.recommendation_summaries[0].recommendation_resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction", "EcsService", "License"
|
2224
2474
|
# resp.recommendation_summaries[0].account_id #=> String
|
2225
2475
|
# resp.recommendation_summaries[0].savings_opportunity.savings_opportunity_percentage #=> Float
|
2226
2476
|
# resp.recommendation_summaries[0].savings_opportunity.estimated_monthly_savings.currency #=> String, one of "USD", "CNY"
|
@@ -2348,7 +2598,7 @@ module Aws::ComputeOptimizer
|
|
2348
2598
|
# @example Request syntax with placeholder values
|
2349
2599
|
#
|
2350
2600
|
# resp = client.put_recommendation_preferences({
|
2351
|
-
# resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction, NotApplicable, EcsService
|
2601
|
+
# resource_type: "Ec2Instance", # required, accepts Ec2Instance, AutoScalingGroup, EbsVolume, LambdaFunction, NotApplicable, EcsService, License
|
2352
2602
|
# scope: {
|
2353
2603
|
# name: "Organization", # accepts Organization, AccountId, ResourceArn
|
2354
2604
|
# value: "ScopeValue",
|
@@ -2458,7 +2708,7 @@ module Aws::ComputeOptimizer
|
|
2458
2708
|
params: params,
|
2459
2709
|
config: config)
|
2460
2710
|
context[:gem_name] = 'aws-sdk-computeoptimizer'
|
2461
|
-
context[:gem_version] = '1.
|
2711
|
+
context[:gem_version] = '1.48.0'
|
2462
2712
|
Seahorse::Client::Request.new(handlers, context)
|
2463
2713
|
end
|
2464
2714
|
|