aws-sdk-computeoptimizer 1.8.0 → 1.13.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/lib/aws-sdk-computeoptimizer.rb +1 -1
- data/lib/aws-sdk-computeoptimizer/client.rb +278 -47
- data/lib/aws-sdk-computeoptimizer/client_api.rb +200 -0
- data/lib/aws-sdk-computeoptimizer/types.rb +908 -59
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '079269448246878260a1403daecea0e491653fb9817114f6ba685235407d661b'
|
|
4
|
+
data.tar.gz: cdef9b0bfcc543e33506a2f6be67917d8d2e8a1d3090a4cf6fd2ad8f4f73db78
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 38e8faad8ea434ae92de2803aa3babaa9b926ea74f5511b8909d96d91d3ed587fbca9a7820414481a649812be817248224d7b6eaf418fdb9bb26fd2109d5604a
|
|
7
|
+
data.tar.gz: 259848906605b980f51ce617ad33c28297caa2dcc258c39b14c38d3988c514ff6474e080f52e2f78028010e05c28ceed63186343f0502de0321e9798a6fae99a
|
|
@@ -428,8 +428,8 @@ module Aws::ComputeOptimizer
|
|
|
428
428
|
# The IDs of the AWS accounts for which to export Auto Scaling group
|
|
429
429
|
# recommendations.
|
|
430
430
|
#
|
|
431
|
-
# If your account is the
|
|
432
|
-
# parameter to specify the member
|
|
431
|
+
# If your account is the management account of an organization, use this
|
|
432
|
+
# parameter to specify the member account for which you want to export
|
|
433
433
|
# recommendations.
|
|
434
434
|
#
|
|
435
435
|
# This parameter cannot be specified together with the include member
|
|
@@ -445,7 +445,13 @@ module Aws::ComputeOptimizer
|
|
|
445
445
|
# set of Auto Scaling group recommendations.
|
|
446
446
|
#
|
|
447
447
|
# @option params [Array<String>] :fields_to_export
|
|
448
|
-
# The recommendations data to include in the export file.
|
|
448
|
+
# The recommendations data to include in the export file. For more
|
|
449
|
+
# information about the fields that can be exported, see [Exported
|
|
450
|
+
# files][1] in the *Compute Optimizer User Guide*.
|
|
451
|
+
#
|
|
452
|
+
#
|
|
453
|
+
#
|
|
454
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html#exported-files
|
|
449
455
|
#
|
|
450
456
|
# @option params [required, Types::S3DestinationConfig] :s3_destination_config
|
|
451
457
|
# An object to specify the destination Amazon Simple Storage Service
|
|
@@ -472,7 +478,7 @@ module Aws::ComputeOptimizer
|
|
|
472
478
|
#
|
|
473
479
|
# @option params [Boolean] :include_member_accounts
|
|
474
480
|
# Indicates whether to include recommendations for resources in all
|
|
475
|
-
# member accounts of the organization if your account is the
|
|
481
|
+
# member accounts of the organization if your account is the management
|
|
476
482
|
# account of an organization.
|
|
477
483
|
#
|
|
478
484
|
# The member accounts must also be opted in to Compute Optimizer.
|
|
@@ -501,7 +507,7 @@ module Aws::ComputeOptimizer
|
|
|
501
507
|
# values: ["FilterValue"],
|
|
502
508
|
# },
|
|
503
509
|
# ],
|
|
504
|
-
# fields_to_export: ["AccountId"], # accepts AccountId, AutoScalingGroupArn, AutoScalingGroupName, Finding, UtilizationMetricsCpuMaximum, UtilizationMetricsMemoryMaximum, 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
|
|
510
|
+
# fields_to_export: ["AccountId"], # accepts AccountId, AutoScalingGroupArn, AutoScalingGroupName, Finding, UtilizationMetricsCpuMaximum, UtilizationMetricsMemoryMaximum, UtilizationMetricsEbsReadOpsPerSecondMaximum, UtilizationMetricsEbsWriteOpsPerSecondMaximum, UtilizationMetricsEbsReadBytesPerSecondMaximum, UtilizationMetricsEbsWriteBytesPerSecondMaximum, 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
|
|
505
511
|
# s3_destination_config: { # required
|
|
506
512
|
# bucket: "DestinationBucket",
|
|
507
513
|
# key_prefix: "DestinationKeyPrefix",
|
|
@@ -545,8 +551,8 @@ module Aws::ComputeOptimizer
|
|
|
545
551
|
# The IDs of the AWS accounts for which to export instance
|
|
546
552
|
# recommendations.
|
|
547
553
|
#
|
|
548
|
-
# If your account is the
|
|
549
|
-
# parameter to specify the member
|
|
554
|
+
# If your account is the management account of an organization, use this
|
|
555
|
+
# parameter to specify the member account for which you want to export
|
|
550
556
|
# recommendations.
|
|
551
557
|
#
|
|
552
558
|
# This parameter cannot be specified together with the include member
|
|
@@ -562,7 +568,13 @@ module Aws::ComputeOptimizer
|
|
|
562
568
|
# set of instance recommendations.
|
|
563
569
|
#
|
|
564
570
|
# @option params [Array<String>] :fields_to_export
|
|
565
|
-
# The recommendations data to include in the export file.
|
|
571
|
+
# The recommendations data to include in the export file. For more
|
|
572
|
+
# information about the fields that can be exported, see [Exported
|
|
573
|
+
# files][1] in the *Compute Optimizer User Guide*.
|
|
574
|
+
#
|
|
575
|
+
#
|
|
576
|
+
#
|
|
577
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html#exported-files
|
|
566
578
|
#
|
|
567
579
|
# @option params [required, Types::S3DestinationConfig] :s3_destination_config
|
|
568
580
|
# An object to specify the destination Amazon Simple Storage Service
|
|
@@ -589,7 +601,7 @@ module Aws::ComputeOptimizer
|
|
|
589
601
|
#
|
|
590
602
|
# @option params [Boolean] :include_member_accounts
|
|
591
603
|
# Indicates whether to include recommendations for resources in all
|
|
592
|
-
# member accounts of the organization if your account is the
|
|
604
|
+
# member accounts of the organization if your account is the management
|
|
593
605
|
# account of an organization.
|
|
594
606
|
#
|
|
595
607
|
# The member accounts must also be opted in to Compute Optimizer.
|
|
@@ -615,7 +627,7 @@ module Aws::ComputeOptimizer
|
|
|
615
627
|
# values: ["FilterValue"],
|
|
616
628
|
# },
|
|
617
629
|
# ],
|
|
618
|
-
# fields_to_export: ["AccountId"], # accepts AccountId, InstanceArn, InstanceName, Finding, LookbackPeriodInDays, CurrentInstanceType, UtilizationMetricsCpuMaximum, UtilizationMetricsMemoryMaximum, CurrentOnDemandPrice, CurrentStandardOneYearNoUpfrontReservedPrice, CurrentStandardThreeYearNoUpfrontReservedPrice, CurrentVCpus, CurrentMemory, CurrentStorage, CurrentNetwork, RecommendationOptionsInstanceType, RecommendationOptionsProjectedUtilizationMetricsCpuMaximum, RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum, RecommendationOptionsPerformanceRisk, RecommendationOptionsVcpus, RecommendationOptionsMemory, RecommendationOptionsStorage, RecommendationOptionsNetwork, RecommendationOptionsOnDemandPrice, RecommendationOptionsStandardOneYearNoUpfrontReservedPrice, RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice, RecommendationsSourcesRecommendationSourceArn, RecommendationsSourcesRecommendationSourceType, LastRefreshTimestamp
|
|
630
|
+
# fields_to_export: ["AccountId"], # accepts AccountId, InstanceArn, InstanceName, Finding, LookbackPeriodInDays, CurrentInstanceType, UtilizationMetricsCpuMaximum, UtilizationMetricsMemoryMaximum, UtilizationMetricsEbsReadOpsPerSecondMaximum, UtilizationMetricsEbsWriteOpsPerSecondMaximum, UtilizationMetricsEbsReadBytesPerSecondMaximum, UtilizationMetricsEbsWriteBytesPerSecondMaximum, CurrentOnDemandPrice, CurrentStandardOneYearNoUpfrontReservedPrice, CurrentStandardThreeYearNoUpfrontReservedPrice, CurrentVCpus, CurrentMemory, CurrentStorage, CurrentNetwork, RecommendationOptionsInstanceType, RecommendationOptionsProjectedUtilizationMetricsCpuMaximum, RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum, RecommendationOptionsPerformanceRisk, RecommendationOptionsVcpus, RecommendationOptionsMemory, RecommendationOptionsStorage, RecommendationOptionsNetwork, RecommendationOptionsOnDemandPrice, RecommendationOptionsStandardOneYearNoUpfrontReservedPrice, RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice, RecommendationsSourcesRecommendationSourceArn, RecommendationsSourcesRecommendationSourceType, LastRefreshTimestamp
|
|
619
631
|
# s3_destination_config: { # required
|
|
620
632
|
# bucket: "DestinationBucket",
|
|
621
633
|
# key_prefix: "DestinationKeyPrefix",
|
|
@@ -642,25 +654,21 @@ module Aws::ComputeOptimizer
|
|
|
642
654
|
|
|
643
655
|
# Returns Auto Scaling group recommendations.
|
|
644
656
|
#
|
|
645
|
-
# AWS Compute Optimizer
|
|
646
|
-
# Scaling groups that
|
|
647
|
-
#
|
|
648
|
-
#
|
|
649
|
-
# or that do not have the same values for desired, minimum, and maximum
|
|
650
|
-
# capacity. In order for Compute Optimizer to analyze your Auto Scaling
|
|
651
|
-
# groups, they must be of a fixed size. For more information, see the
|
|
652
|
-
# [AWS Compute Optimizer User Guide][1].
|
|
657
|
+
# AWS Compute Optimizer generates recommendations for Amazon EC2 Auto
|
|
658
|
+
# Scaling groups that meet a specific set of requirements. For more
|
|
659
|
+
# information, see the [Supported resources and requirements][1] in the
|
|
660
|
+
# *AWS Compute Optimizer User Guide*.
|
|
653
661
|
#
|
|
654
662
|
#
|
|
655
663
|
#
|
|
656
|
-
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/
|
|
664
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html
|
|
657
665
|
#
|
|
658
666
|
# @option params [Array<String>] :account_ids
|
|
659
|
-
# The
|
|
667
|
+
# The ID of the AWS account for which to return Auto Scaling group
|
|
660
668
|
# recommendations.
|
|
661
669
|
#
|
|
662
|
-
# If your account is the
|
|
663
|
-
# parameter to specify the member
|
|
670
|
+
# If your account is the management account of an organization, use this
|
|
671
|
+
# parameter to specify the member account for which you want to return
|
|
664
672
|
# Auto Scaling group recommendations.
|
|
665
673
|
#
|
|
666
674
|
# Only one account ID can be specified per request.
|
|
@@ -714,7 +722,7 @@ module Aws::ComputeOptimizer
|
|
|
714
722
|
# resp.auto_scaling_group_recommendations[0].auto_scaling_group_name #=> String
|
|
715
723
|
# resp.auto_scaling_group_recommendations[0].finding #=> String, one of "Underprovisioned", "Overprovisioned", "Optimized", "NotOptimized"
|
|
716
724
|
# resp.auto_scaling_group_recommendations[0].utilization_metrics #=> Array
|
|
717
|
-
# resp.auto_scaling_group_recommendations[0].utilization_metrics[0].name #=> String, one of "Cpu", "Memory"
|
|
725
|
+
# 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"
|
|
718
726
|
# resp.auto_scaling_group_recommendations[0].utilization_metrics[0].statistic #=> String, one of "Maximum", "Average"
|
|
719
727
|
# resp.auto_scaling_group_recommendations[0].utilization_metrics[0].value #=> Float
|
|
720
728
|
# resp.auto_scaling_group_recommendations[0].look_back_period_in_days #=> Float
|
|
@@ -728,7 +736,7 @@ module Aws::ComputeOptimizer
|
|
|
728
736
|
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].configuration.max_size #=> Integer
|
|
729
737
|
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].configuration.instance_type #=> String
|
|
730
738
|
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].projected_utilization_metrics #=> Array
|
|
731
|
-
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].name #=> String, one of "Cpu", "Memory"
|
|
739
|
+
# 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"
|
|
732
740
|
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].statistic #=> String, one of "Maximum", "Average"
|
|
733
741
|
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].value #=> Float
|
|
734
742
|
# resp.auto_scaling_group_recommendations[0].recommendation_options[0].performance_risk #=> Float
|
|
@@ -748,16 +756,118 @@ module Aws::ComputeOptimizer
|
|
|
748
756
|
req.send_request(options)
|
|
749
757
|
end
|
|
750
758
|
|
|
759
|
+
# Returns Amazon Elastic Block Store (Amazon EBS) volume
|
|
760
|
+
# recommendations.
|
|
761
|
+
#
|
|
762
|
+
# AWS Compute Optimizer generates recommendations for Amazon EBS volumes
|
|
763
|
+
# that meet a specific set of requirements. For more information, see
|
|
764
|
+
# the [Supported resources and requirements][1] in the *AWS Compute
|
|
765
|
+
# Optimizer User Guide*.
|
|
766
|
+
#
|
|
767
|
+
#
|
|
768
|
+
#
|
|
769
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html
|
|
770
|
+
#
|
|
771
|
+
# @option params [Array<String>] :volume_arns
|
|
772
|
+
# The Amazon Resource Name (ARN) of the volumes for which to return
|
|
773
|
+
# recommendations.
|
|
774
|
+
#
|
|
775
|
+
# @option params [String] :next_token
|
|
776
|
+
# The token to advance to the next page of volume recommendations.
|
|
777
|
+
#
|
|
778
|
+
# @option params [Integer] :max_results
|
|
779
|
+
# The maximum number of volume recommendations to return with a single
|
|
780
|
+
# request.
|
|
781
|
+
#
|
|
782
|
+
# To retrieve the remaining results, make another request with the
|
|
783
|
+
# returned `NextToken` value.
|
|
784
|
+
#
|
|
785
|
+
# @option params [Array<Types::EBSFilter>] :filters
|
|
786
|
+
# An array of objects that describe a filter that returns a more
|
|
787
|
+
# specific list of volume recommendations.
|
|
788
|
+
#
|
|
789
|
+
# @option params [Array<String>] :account_ids
|
|
790
|
+
# The ID of the AWS account for which to return volume recommendations.
|
|
791
|
+
#
|
|
792
|
+
# If your account is the management account of an organization, use this
|
|
793
|
+
# parameter to specify the member account for which you want to return
|
|
794
|
+
# volume recommendations.
|
|
795
|
+
#
|
|
796
|
+
# Only one account ID can be specified per request.
|
|
797
|
+
#
|
|
798
|
+
# @return [Types::GetEBSVolumeRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
799
|
+
#
|
|
800
|
+
# * {Types::GetEBSVolumeRecommendationsResponse#next_token #next_token} => String
|
|
801
|
+
# * {Types::GetEBSVolumeRecommendationsResponse#volume_recommendations #volume_recommendations} => Array<Types::VolumeRecommendation>
|
|
802
|
+
# * {Types::GetEBSVolumeRecommendationsResponse#errors #errors} => Array<Types::GetRecommendationError>
|
|
803
|
+
#
|
|
804
|
+
# @example Request syntax with placeholder values
|
|
805
|
+
#
|
|
806
|
+
# resp = client.get_ebs_volume_recommendations({
|
|
807
|
+
# volume_arns: ["VolumeArn"],
|
|
808
|
+
# next_token: "NextToken",
|
|
809
|
+
# max_results: 1,
|
|
810
|
+
# filters: [
|
|
811
|
+
# {
|
|
812
|
+
# name: "Finding", # accepts Finding
|
|
813
|
+
# values: ["FilterValue"],
|
|
814
|
+
# },
|
|
815
|
+
# ],
|
|
816
|
+
# account_ids: ["AccountId"],
|
|
817
|
+
# })
|
|
818
|
+
#
|
|
819
|
+
# @example Response structure
|
|
820
|
+
#
|
|
821
|
+
# resp.next_token #=> String
|
|
822
|
+
# resp.volume_recommendations #=> Array
|
|
823
|
+
# resp.volume_recommendations[0].volume_arn #=> String
|
|
824
|
+
# resp.volume_recommendations[0].account_id #=> String
|
|
825
|
+
# resp.volume_recommendations[0].current_configuration.volume_type #=> String
|
|
826
|
+
# resp.volume_recommendations[0].current_configuration.volume_size #=> Integer
|
|
827
|
+
# resp.volume_recommendations[0].current_configuration.volume_baseline_iops #=> Integer
|
|
828
|
+
# resp.volume_recommendations[0].current_configuration.volume_burst_iops #=> Integer
|
|
829
|
+
# resp.volume_recommendations[0].current_configuration.volume_baseline_throughput #=> Integer
|
|
830
|
+
# resp.volume_recommendations[0].current_configuration.volume_burst_throughput #=> Integer
|
|
831
|
+
# resp.volume_recommendations[0].finding #=> String, one of "Optimized", "NotOptimized"
|
|
832
|
+
# resp.volume_recommendations[0].utilization_metrics #=> Array
|
|
833
|
+
# resp.volume_recommendations[0].utilization_metrics[0].name #=> String, one of "VolumeReadOpsPerSecond", "VolumeWriteOpsPerSecond", "VolumeReadBytesPerSecond", "VolumeWriteBytesPerSecond"
|
|
834
|
+
# resp.volume_recommendations[0].utilization_metrics[0].statistic #=> String, one of "Maximum", "Average"
|
|
835
|
+
# resp.volume_recommendations[0].utilization_metrics[0].value #=> Float
|
|
836
|
+
# resp.volume_recommendations[0].look_back_period_in_days #=> Float
|
|
837
|
+
# resp.volume_recommendations[0].volume_recommendation_options #=> Array
|
|
838
|
+
# resp.volume_recommendations[0].volume_recommendation_options[0].configuration.volume_type #=> String
|
|
839
|
+
# resp.volume_recommendations[0].volume_recommendation_options[0].configuration.volume_size #=> Integer
|
|
840
|
+
# resp.volume_recommendations[0].volume_recommendation_options[0].configuration.volume_baseline_iops #=> Integer
|
|
841
|
+
# resp.volume_recommendations[0].volume_recommendation_options[0].configuration.volume_burst_iops #=> Integer
|
|
842
|
+
# resp.volume_recommendations[0].volume_recommendation_options[0].configuration.volume_baseline_throughput #=> Integer
|
|
843
|
+
# resp.volume_recommendations[0].volume_recommendation_options[0].configuration.volume_burst_throughput #=> Integer
|
|
844
|
+
# resp.volume_recommendations[0].volume_recommendation_options[0].performance_risk #=> Float
|
|
845
|
+
# resp.volume_recommendations[0].volume_recommendation_options[0].rank #=> Integer
|
|
846
|
+
# resp.volume_recommendations[0].last_refresh_timestamp #=> Time
|
|
847
|
+
# resp.errors #=> Array
|
|
848
|
+
# resp.errors[0].identifier #=> String
|
|
849
|
+
# resp.errors[0].code #=> String
|
|
850
|
+
# resp.errors[0].message #=> String
|
|
851
|
+
#
|
|
852
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetEBSVolumeRecommendations AWS API Documentation
|
|
853
|
+
#
|
|
854
|
+
# @overload get_ebs_volume_recommendations(params = {})
|
|
855
|
+
# @param [Hash] params ({})
|
|
856
|
+
def get_ebs_volume_recommendations(params = {}, options = {})
|
|
857
|
+
req = build_request(:get_ebs_volume_recommendations, params)
|
|
858
|
+
req.send_request(options)
|
|
859
|
+
end
|
|
860
|
+
|
|
751
861
|
# Returns Amazon EC2 instance recommendations.
|
|
752
862
|
#
|
|
753
|
-
# AWS Compute Optimizer
|
|
754
|
-
#
|
|
755
|
-
#
|
|
756
|
-
#
|
|
863
|
+
# AWS Compute Optimizer generates recommendations for Amazon Elastic
|
|
864
|
+
# Compute Cloud (Amazon EC2) instances that meet a specific set of
|
|
865
|
+
# requirements. For more information, see the [Supported resources and
|
|
866
|
+
# requirements][1] in the *AWS Compute Optimizer User Guide*.
|
|
757
867
|
#
|
|
758
868
|
#
|
|
759
869
|
#
|
|
760
|
-
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/
|
|
870
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html
|
|
761
871
|
#
|
|
762
872
|
# @option params [Array<String>] :instance_arns
|
|
763
873
|
# The Amazon Resource Name (ARN) of the instances for which to return
|
|
@@ -778,11 +888,11 @@ module Aws::ComputeOptimizer
|
|
|
778
888
|
# specific list of instance recommendations.
|
|
779
889
|
#
|
|
780
890
|
# @option params [Array<String>] :account_ids
|
|
781
|
-
# The
|
|
891
|
+
# The ID of the AWS account for which to return instance
|
|
782
892
|
# recommendations.
|
|
783
893
|
#
|
|
784
|
-
# If your account is the
|
|
785
|
-
# parameter to specify the member
|
|
894
|
+
# If your account is the management account of an organization, use this
|
|
895
|
+
# parameter to specify the member account for which you want to return
|
|
786
896
|
# instance recommendations.
|
|
787
897
|
#
|
|
788
898
|
# Only one account ID can be specified per request.
|
|
@@ -818,21 +928,21 @@ module Aws::ComputeOptimizer
|
|
|
818
928
|
# resp.instance_recommendations[0].current_instance_type #=> String
|
|
819
929
|
# resp.instance_recommendations[0].finding #=> String, one of "Underprovisioned", "Overprovisioned", "Optimized", "NotOptimized"
|
|
820
930
|
# resp.instance_recommendations[0].utilization_metrics #=> Array
|
|
821
|
-
# resp.instance_recommendations[0].utilization_metrics[0].name #=> String, one of "Cpu", "Memory"
|
|
931
|
+
# 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"
|
|
822
932
|
# resp.instance_recommendations[0].utilization_metrics[0].statistic #=> String, one of "Maximum", "Average"
|
|
823
933
|
# resp.instance_recommendations[0].utilization_metrics[0].value #=> Float
|
|
824
934
|
# resp.instance_recommendations[0].look_back_period_in_days #=> Float
|
|
825
935
|
# resp.instance_recommendations[0].recommendation_options #=> Array
|
|
826
936
|
# resp.instance_recommendations[0].recommendation_options[0].instance_type #=> String
|
|
827
937
|
# resp.instance_recommendations[0].recommendation_options[0].projected_utilization_metrics #=> Array
|
|
828
|
-
# resp.instance_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].name #=> String, one of "Cpu", "Memory"
|
|
938
|
+
# 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"
|
|
829
939
|
# resp.instance_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].statistic #=> String, one of "Maximum", "Average"
|
|
830
940
|
# resp.instance_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].value #=> Float
|
|
831
941
|
# resp.instance_recommendations[0].recommendation_options[0].performance_risk #=> Float
|
|
832
942
|
# resp.instance_recommendations[0].recommendation_options[0].rank #=> Integer
|
|
833
943
|
# resp.instance_recommendations[0].recommendation_sources #=> Array
|
|
834
944
|
# resp.instance_recommendations[0].recommendation_sources[0].recommendation_source_arn #=> String
|
|
835
|
-
# resp.instance_recommendations[0].recommendation_sources[0].recommendation_source_type #=> String, one of "Ec2Instance", "AutoScalingGroup"
|
|
945
|
+
# resp.instance_recommendations[0].recommendation_sources[0].recommendation_source_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
|
|
836
946
|
# resp.instance_recommendations[0].last_refresh_timestamp #=> Time
|
|
837
947
|
# resp.errors #=> Array
|
|
838
948
|
# resp.errors[0].identifier #=> String
|
|
@@ -851,6 +961,18 @@ module Aws::ComputeOptimizer
|
|
|
851
961
|
# Returns the projected utilization metrics of Amazon EC2 instance
|
|
852
962
|
# recommendations.
|
|
853
963
|
#
|
|
964
|
+
# <note markdown="1"> The `Cpu` and `Memory` metrics are the only projected utilization
|
|
965
|
+
# metrics returned when you run this action. Additionally, the `Memory`
|
|
966
|
+
# metric is returned only for resources that have the unified CloudWatch
|
|
967
|
+
# agent installed on them. For more information, see [Enabling Memory
|
|
968
|
+
# Utilization with the CloudWatch Agent][1].
|
|
969
|
+
#
|
|
970
|
+
# </note>
|
|
971
|
+
#
|
|
972
|
+
#
|
|
973
|
+
#
|
|
974
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/metrics.html#cw-agent
|
|
975
|
+
#
|
|
854
976
|
# @option params [required, String] :instance_arn
|
|
855
977
|
# The Amazon Resource Name (ARN) of the instances for which to return
|
|
856
978
|
# recommendation projected metrics.
|
|
@@ -887,7 +1009,7 @@ module Aws::ComputeOptimizer
|
|
|
887
1009
|
# resp.recommended_option_projected_metrics[0].recommended_instance_type #=> String
|
|
888
1010
|
# resp.recommended_option_projected_metrics[0].rank #=> Integer
|
|
889
1011
|
# resp.recommended_option_projected_metrics[0].projected_metrics #=> Array
|
|
890
|
-
# resp.recommended_option_projected_metrics[0].projected_metrics[0].name #=> String, one of "Cpu", "Memory"
|
|
1012
|
+
# 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"
|
|
891
1013
|
# resp.recommended_option_projected_metrics[0].projected_metrics[0].timestamps #=> Array
|
|
892
1014
|
# resp.recommended_option_projected_metrics[0].projected_metrics[0].timestamps[0] #=> Time
|
|
893
1015
|
# resp.recommended_option_projected_metrics[0].projected_metrics[0].values #=> Array
|
|
@@ -905,9 +1027,9 @@ module Aws::ComputeOptimizer
|
|
|
905
1027
|
# Returns the enrollment (opt in) status of an account to the AWS
|
|
906
1028
|
# Compute Optimizer service.
|
|
907
1029
|
#
|
|
908
|
-
# If the account is the
|
|
909
|
-
# also confirms the enrollment status of member accounts within
|
|
910
|
-
# organization.
|
|
1030
|
+
# If the account is the management account of an organization, this
|
|
1031
|
+
# action also confirms the enrollment status of member accounts within
|
|
1032
|
+
# the organization.
|
|
911
1033
|
#
|
|
912
1034
|
# @return [Types::GetEnrollmentStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
913
1035
|
#
|
|
@@ -930,6 +1052,112 @@ module Aws::ComputeOptimizer
|
|
|
930
1052
|
req.send_request(options)
|
|
931
1053
|
end
|
|
932
1054
|
|
|
1055
|
+
# Returns AWS Lambda function recommendations.
|
|
1056
|
+
#
|
|
1057
|
+
# AWS Compute Optimizer generates recommendations for functions that
|
|
1058
|
+
# meet a specific set of requirements. For more information, see the
|
|
1059
|
+
# [Supported resources and requirements][1] in the *AWS Compute
|
|
1060
|
+
# Optimizer User Guide*.
|
|
1061
|
+
#
|
|
1062
|
+
#
|
|
1063
|
+
#
|
|
1064
|
+
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html
|
|
1065
|
+
#
|
|
1066
|
+
# @option params [Array<String>] :function_arns
|
|
1067
|
+
# The Amazon Resource Name (ARN) of the functions for which to return
|
|
1068
|
+
# recommendations.
|
|
1069
|
+
#
|
|
1070
|
+
# You can specify a qualified or unqualified ARN. If you specify an
|
|
1071
|
+
# unqualified ARN without a function version suffix, Compute Optimizer
|
|
1072
|
+
# will return recommendations for the latest (`$LATEST`) version of the
|
|
1073
|
+
# function. If you specify a qualified ARN with a version suffix,
|
|
1074
|
+
# Compute Optimizer will return recommendations for the specified
|
|
1075
|
+
# function version. For more information about using function versions,
|
|
1076
|
+
# see [Using versions][1] in the *AWS Lambda Developer Guide*.
|
|
1077
|
+
#
|
|
1078
|
+
#
|
|
1079
|
+
#
|
|
1080
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html#versioning-versions-using
|
|
1081
|
+
#
|
|
1082
|
+
# @option params [Array<String>] :account_ids
|
|
1083
|
+
# The ID of the AWS account for which to return function
|
|
1084
|
+
# recommendations.
|
|
1085
|
+
#
|
|
1086
|
+
# If your account is the management account of an organization, use this
|
|
1087
|
+
# parameter to specify the member account for which you want to return
|
|
1088
|
+
# function recommendations.
|
|
1089
|
+
#
|
|
1090
|
+
# Only one account ID can be specified per request.
|
|
1091
|
+
#
|
|
1092
|
+
# @option params [Array<Types::LambdaFunctionRecommendationFilter>] :filters
|
|
1093
|
+
# An array of objects that describe a filter that returns a more
|
|
1094
|
+
# specific list of function recommendations.
|
|
1095
|
+
#
|
|
1096
|
+
# @option params [String] :next_token
|
|
1097
|
+
# The token to advance to the next page of function recommendations.
|
|
1098
|
+
#
|
|
1099
|
+
# @option params [Integer] :max_results
|
|
1100
|
+
# The maximum number of function recommendations to return with a single
|
|
1101
|
+
# request.
|
|
1102
|
+
#
|
|
1103
|
+
# To retrieve the remaining results, make another request with the
|
|
1104
|
+
# returned `NextToken` value.
|
|
1105
|
+
#
|
|
1106
|
+
# @return [Types::GetLambdaFunctionRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1107
|
+
#
|
|
1108
|
+
# * {Types::GetLambdaFunctionRecommendationsResponse#next_token #next_token} => String
|
|
1109
|
+
# * {Types::GetLambdaFunctionRecommendationsResponse#lambda_function_recommendations #lambda_function_recommendations} => Array<Types::LambdaFunctionRecommendation>
|
|
1110
|
+
#
|
|
1111
|
+
# @example Request syntax with placeholder values
|
|
1112
|
+
#
|
|
1113
|
+
# resp = client.get_lambda_function_recommendations({
|
|
1114
|
+
# function_arns: ["FunctionArn"],
|
|
1115
|
+
# account_ids: ["AccountId"],
|
|
1116
|
+
# filters: [
|
|
1117
|
+
# {
|
|
1118
|
+
# name: "Finding", # accepts Finding, FindingReasonCode
|
|
1119
|
+
# values: ["FilterValue"],
|
|
1120
|
+
# },
|
|
1121
|
+
# ],
|
|
1122
|
+
# next_token: "NextToken",
|
|
1123
|
+
# max_results: 1,
|
|
1124
|
+
# })
|
|
1125
|
+
#
|
|
1126
|
+
# @example Response structure
|
|
1127
|
+
#
|
|
1128
|
+
# resp.next_token #=> String
|
|
1129
|
+
# resp.lambda_function_recommendations #=> Array
|
|
1130
|
+
# resp.lambda_function_recommendations[0].function_arn #=> String
|
|
1131
|
+
# resp.lambda_function_recommendations[0].function_version #=> String
|
|
1132
|
+
# resp.lambda_function_recommendations[0].account_id #=> String
|
|
1133
|
+
# resp.lambda_function_recommendations[0].current_memory_size #=> Integer
|
|
1134
|
+
# resp.lambda_function_recommendations[0].number_of_invocations #=> Integer
|
|
1135
|
+
# resp.lambda_function_recommendations[0].utilization_metrics #=> Array
|
|
1136
|
+
# resp.lambda_function_recommendations[0].utilization_metrics[0].name #=> String, one of "Duration", "Memory"
|
|
1137
|
+
# resp.lambda_function_recommendations[0].utilization_metrics[0].statistic #=> String, one of "Maximum", "Average"
|
|
1138
|
+
# resp.lambda_function_recommendations[0].utilization_metrics[0].value #=> Float
|
|
1139
|
+
# resp.lambda_function_recommendations[0].lookback_period_in_days #=> Float
|
|
1140
|
+
# resp.lambda_function_recommendations[0].last_refresh_timestamp #=> Time
|
|
1141
|
+
# resp.lambda_function_recommendations[0].finding #=> String, one of "Optimized", "NotOptimized", "Unavailable"
|
|
1142
|
+
# resp.lambda_function_recommendations[0].finding_reason_codes #=> Array
|
|
1143
|
+
# resp.lambda_function_recommendations[0].finding_reason_codes[0] #=> String, one of "MemoryOverprovisioned", "MemoryUnderprovisioned", "InsufficientData", "Inconclusive"
|
|
1144
|
+
# resp.lambda_function_recommendations[0].memory_size_recommendation_options #=> Array
|
|
1145
|
+
# resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].rank #=> Integer
|
|
1146
|
+
# resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].memory_size #=> Integer
|
|
1147
|
+
# resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics #=> Array
|
|
1148
|
+
# resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics[0].name #=> String, one of "Duration"
|
|
1149
|
+
# resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics[0].statistic #=> String, one of "LowerBound", "UpperBound", "Expected"
|
|
1150
|
+
# resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics[0].value #=> Float
|
|
1151
|
+
#
|
|
1152
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetLambdaFunctionRecommendations AWS API Documentation
|
|
1153
|
+
#
|
|
1154
|
+
# @overload get_lambda_function_recommendations(params = {})
|
|
1155
|
+
# @param [Hash] params ({})
|
|
1156
|
+
def get_lambda_function_recommendations(params = {}, options = {})
|
|
1157
|
+
req = build_request(:get_lambda_function_recommendations, params)
|
|
1158
|
+
req.send_request(options)
|
|
1159
|
+
end
|
|
1160
|
+
|
|
933
1161
|
# Returns the optimization findings for an account.
|
|
934
1162
|
#
|
|
935
1163
|
# For example, it returns the number of Amazon EC2 instances in an
|
|
@@ -938,11 +1166,11 @@ module Aws::ComputeOptimizer
|
|
|
938
1166
|
# not optimized, or optimized.
|
|
939
1167
|
#
|
|
940
1168
|
# @option params [Array<String>] :account_ids
|
|
941
|
-
# The
|
|
1169
|
+
# The ID of the AWS account for which to return recommendation
|
|
942
1170
|
# summaries.
|
|
943
1171
|
#
|
|
944
|
-
# If your account is the
|
|
945
|
-
# parameter to specify the member
|
|
1172
|
+
# If your account is the management account of an organization, use this
|
|
1173
|
+
# parameter to specify the member account for which you want to return
|
|
946
1174
|
# recommendation summaries.
|
|
947
1175
|
#
|
|
948
1176
|
# Only one account ID can be specified per request.
|
|
@@ -977,7 +1205,10 @@ module Aws::ComputeOptimizer
|
|
|
977
1205
|
# resp.recommendation_summaries[0].summaries #=> Array
|
|
978
1206
|
# resp.recommendation_summaries[0].summaries[0].name #=> String, one of "Underprovisioned", "Overprovisioned", "Optimized", "NotOptimized"
|
|
979
1207
|
# resp.recommendation_summaries[0].summaries[0].value #=> Float
|
|
980
|
-
# resp.recommendation_summaries[0].
|
|
1208
|
+
# resp.recommendation_summaries[0].summaries[0].reason_code_summaries #=> Array
|
|
1209
|
+
# resp.recommendation_summaries[0].summaries[0].reason_code_summaries[0].name #=> String, one of "MemoryOverprovisioned", "MemoryUnderprovisioned"
|
|
1210
|
+
# resp.recommendation_summaries[0].summaries[0].reason_code_summaries[0].value #=> Float
|
|
1211
|
+
# resp.recommendation_summaries[0].recommendation_resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
|
|
981
1212
|
# resp.recommendation_summaries[0].account_id #=> String
|
|
982
1213
|
#
|
|
983
1214
|
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetRecommendationSummaries AWS API Documentation
|
|
@@ -992,8 +1223,8 @@ module Aws::ComputeOptimizer
|
|
|
992
1223
|
# Updates the enrollment (opt in) status of an account to the AWS
|
|
993
1224
|
# Compute Optimizer service.
|
|
994
1225
|
#
|
|
995
|
-
# If the account is a
|
|
996
|
-
# also be used to enroll member accounts within the organization.
|
|
1226
|
+
# If the account is a management account of an organization, this action
|
|
1227
|
+
# can also be used to enroll member accounts within the organization.
|
|
997
1228
|
#
|
|
998
1229
|
# @option params [required, String] :status
|
|
999
1230
|
# The new enrollment status of the account.
|
|
@@ -1003,7 +1234,7 @@ module Aws::ComputeOptimizer
|
|
|
1003
1234
|
#
|
|
1004
1235
|
# @option params [Boolean] :include_member_accounts
|
|
1005
1236
|
# Indicates whether to enroll member accounts of the organization if the
|
|
1006
|
-
# your account is the
|
|
1237
|
+
# your account is the management account of an organization.
|
|
1007
1238
|
#
|
|
1008
1239
|
# @return [Types::UpdateEnrollmentStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1009
1240
|
#
|
|
@@ -1044,7 +1275,7 @@ module Aws::ComputeOptimizer
|
|
|
1044
1275
|
params: params,
|
|
1045
1276
|
config: config)
|
|
1046
1277
|
context[:gem_name] = 'aws-sdk-computeoptimizer'
|
|
1047
|
-
context[:gem_version] = '1.
|
|
1278
|
+
context[:gem_version] = '1.13.0'
|
|
1048
1279
|
Seahorse::Client::Request.new(handlers, context)
|
|
1049
1280
|
end
|
|
1050
1281
|
|