aws-sdk-computeoptimizer 1.6.0 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c60f4d1ef31531ba793d6b7c62c092594c6e2726730c144331efb664a232a424
4
- data.tar.gz: b58e15eb629ea978b8bd94d08ee0081d7151e01e641e12e66a4ed00c8be3b4ec
3
+ metadata.gz: ce32447ca02d8fc55afbba45f86ffdb02f1e18774b2b3ca1e886f3fc3c58a0ba
4
+ data.tar.gz: cfc68d88d95fc97114972736c8c10129cfbba90dceef2196a076905c83c536b6
5
5
  SHA512:
6
- metadata.gz: 7d4972093f0d057441a316f15ee83593ee493dc1765fc600ebf651e5d9a6753079a2e331cc71d5a92cbe89e7fa13dcdec179be6338f3184047d8592b0843eeb8
7
- data.tar.gz: 9881658a1ec1294d6006af1bbc342fd8625f13f82a1e4cc3ede0525e96dd7f0adf56269a263874da0fa512a23e23223da573793b18c7640c8b8ee6e19b9b8bf9
6
+ metadata.gz: 627c0334f8b33ff1a20d27945fdee665f41939c90e878c422d58af268a684f16a5e2cb8f81b541857c483dda6f0c48f1d68d1fdbe0b31c9db8562668a9114c87
7
+ data.tar.gz: 121ada2a5c8fef83a676bb80763d691054512a6fdbde093a92076d0c7e35cc860f2a0e79ed8c0140422b6cde854f7dad5aa32ef9ac3635d33a0e89578132b5c7
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -47,6 +48,6 @@ require_relative 'aws-sdk-computeoptimizer/customizations'
47
48
  # @!group service
48
49
  module Aws::ComputeOptimizer
49
50
 
50
- GEM_VERSION = '1.6.0'
51
+ GEM_VERSION = '1.11.0'
51
52
 
52
53
  end
@@ -428,7 +428,7 @@ 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 master account of an organization, use this
431
+ # If your account is the management account of an organization, use this
432
432
  # parameter to specify the member accounts for which you want to export
433
433
  # recommendations.
434
434
  #
@@ -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 master
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,7 +551,7 @@ 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 master account of an organization, use this
554
+ # If your account is the management account of an organization, use this
549
555
  # parameter to specify the member accounts for which you want to export
550
556
  # recommendations.
551
557
  #
@@ -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 master
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,24 +654,20 @@ module Aws::ComputeOptimizer
642
654
 
643
655
  # Returns Auto Scaling group recommendations.
644
656
  #
645
- # AWS Compute Optimizer currently generates recommendations for Auto
646
- # Scaling groups that are configured to run instances of the M, C, R, T,
647
- # and X instance families. The service does not generate recommendations
648
- # for Auto Scaling groups that have a scaling policy attached to them,
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/what-is.html
664
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html
657
665
  #
658
666
  # @option params [Array<String>] :account_ids
659
667
  # The IDs of the AWS accounts for which to return Auto Scaling group
660
668
  # recommendations.
661
669
  #
662
- # If your account is the master account of an organization, use this
670
+ # If your account is the management account of an organization, use this
663
671
  # parameter to specify the member accounts for which you want to return
664
672
  # Auto Scaling group recommendations.
665
673
  #
@@ -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,119 @@ 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 IDs of the AWS accounts for which to return volume
791
+ # recommendations.
792
+ #
793
+ # If your account is the management account of an organization, use this
794
+ # parameter to specify the member accounts for which you want to return
795
+ # volume recommendations.
796
+ #
797
+ # Only one account ID can be specified per request.
798
+ #
799
+ # @return [Types::GetEBSVolumeRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
800
+ #
801
+ # * {Types::GetEBSVolumeRecommendationsResponse#next_token #next_token} => String
802
+ # * {Types::GetEBSVolumeRecommendationsResponse#volume_recommendations #volume_recommendations} => Array&lt;Types::VolumeRecommendation&gt;
803
+ # * {Types::GetEBSVolumeRecommendationsResponse#errors #errors} => Array&lt;Types::GetRecommendationError&gt;
804
+ #
805
+ # @example Request syntax with placeholder values
806
+ #
807
+ # resp = client.get_ebs_volume_recommendations({
808
+ # volume_arns: ["VolumeArn"],
809
+ # next_token: "NextToken",
810
+ # max_results: 1,
811
+ # filters: [
812
+ # {
813
+ # name: "Finding", # accepts Finding
814
+ # values: ["FilterValue"],
815
+ # },
816
+ # ],
817
+ # account_ids: ["AccountId"],
818
+ # })
819
+ #
820
+ # @example Response structure
821
+ #
822
+ # resp.next_token #=> String
823
+ # resp.volume_recommendations #=> Array
824
+ # resp.volume_recommendations[0].volume_arn #=> String
825
+ # resp.volume_recommendations[0].account_id #=> String
826
+ # resp.volume_recommendations[0].current_configuration.volume_type #=> String
827
+ # resp.volume_recommendations[0].current_configuration.volume_size #=> Integer
828
+ # resp.volume_recommendations[0].current_configuration.volume_baseline_iops #=> Integer
829
+ # resp.volume_recommendations[0].current_configuration.volume_burst_iops #=> Integer
830
+ # resp.volume_recommendations[0].current_configuration.volume_baseline_throughput #=> Integer
831
+ # resp.volume_recommendations[0].current_configuration.volume_burst_throughput #=> Integer
832
+ # resp.volume_recommendations[0].finding #=> String, one of "Optimized", "NotOptimized"
833
+ # resp.volume_recommendations[0].utilization_metrics #=> Array
834
+ # resp.volume_recommendations[0].utilization_metrics[0].name #=> String, one of "VolumeReadOpsPerSecond", "VolumeWriteOpsPerSecond", "VolumeReadBytesPerSecond", "VolumeWriteBytesPerSecond"
835
+ # resp.volume_recommendations[0].utilization_metrics[0].statistic #=> String, one of "Maximum", "Average"
836
+ # resp.volume_recommendations[0].utilization_metrics[0].value #=> Float
837
+ # resp.volume_recommendations[0].look_back_period_in_days #=> Float
838
+ # resp.volume_recommendations[0].volume_recommendation_options #=> Array
839
+ # resp.volume_recommendations[0].volume_recommendation_options[0].configuration.volume_type #=> String
840
+ # resp.volume_recommendations[0].volume_recommendation_options[0].configuration.volume_size #=> Integer
841
+ # resp.volume_recommendations[0].volume_recommendation_options[0].configuration.volume_baseline_iops #=> Integer
842
+ # resp.volume_recommendations[0].volume_recommendation_options[0].configuration.volume_burst_iops #=> Integer
843
+ # resp.volume_recommendations[0].volume_recommendation_options[0].configuration.volume_baseline_throughput #=> Integer
844
+ # resp.volume_recommendations[0].volume_recommendation_options[0].configuration.volume_burst_throughput #=> Integer
845
+ # resp.volume_recommendations[0].volume_recommendation_options[0].performance_risk #=> Float
846
+ # resp.volume_recommendations[0].volume_recommendation_options[0].rank #=> Integer
847
+ # resp.volume_recommendations[0].last_refresh_timestamp #=> Time
848
+ # resp.errors #=> Array
849
+ # resp.errors[0].identifier #=> String
850
+ # resp.errors[0].code #=> String
851
+ # resp.errors[0].message #=> String
852
+ #
853
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetEBSVolumeRecommendations AWS API Documentation
854
+ #
855
+ # @overload get_ebs_volume_recommendations(params = {})
856
+ # @param [Hash] params ({})
857
+ def get_ebs_volume_recommendations(params = {}, options = {})
858
+ req = build_request(:get_ebs_volume_recommendations, params)
859
+ req.send_request(options)
860
+ end
861
+
751
862
  # Returns Amazon EC2 instance recommendations.
752
863
  #
753
- # AWS Compute Optimizer currently generates recommendations for Amazon
754
- # Elastic Compute Cloud (Amazon EC2) and Amazon EC2 Auto Scaling. It
755
- # generates recommendations for M, C, R, T, and X instance families. For
756
- # more information, see the [AWS Compute Optimizer User Guide][1].
864
+ # AWS Compute Optimizer generates recommendations for Amazon Elastic
865
+ # Compute Cloud (Amazon EC2) instances that meet a specific set of
866
+ # requirements. For more information, see the [Supported resources and
867
+ # requirements][1] in the *AWS Compute Optimizer User Guide*.
757
868
  #
758
869
  #
759
870
  #
760
- # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/what-is.html
871
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html
761
872
  #
762
873
  # @option params [Array<String>] :instance_arns
763
874
  # The Amazon Resource Name (ARN) of the instances for which to return
@@ -781,7 +892,7 @@ module Aws::ComputeOptimizer
781
892
  # The IDs of the AWS accounts for which to return instance
782
893
  # recommendations.
783
894
  #
784
- # If your account is the master account of an organization, use this
895
+ # If your account is the management account of an organization, use this
785
896
  # parameter to specify the member accounts for which you want to return
786
897
  # instance recommendations.
787
898
  #
@@ -818,21 +929,21 @@ module Aws::ComputeOptimizer
818
929
  # resp.instance_recommendations[0].current_instance_type #=> String
819
930
  # resp.instance_recommendations[0].finding #=> String, one of "Underprovisioned", "Overprovisioned", "Optimized", "NotOptimized"
820
931
  # resp.instance_recommendations[0].utilization_metrics #=> Array
821
- # resp.instance_recommendations[0].utilization_metrics[0].name #=> String, one of "Cpu", "Memory"
932
+ # 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
933
  # resp.instance_recommendations[0].utilization_metrics[0].statistic #=> String, one of "Maximum", "Average"
823
934
  # resp.instance_recommendations[0].utilization_metrics[0].value #=> Float
824
935
  # resp.instance_recommendations[0].look_back_period_in_days #=> Float
825
936
  # resp.instance_recommendations[0].recommendation_options #=> Array
826
937
  # resp.instance_recommendations[0].recommendation_options[0].instance_type #=> String
827
938
  # 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"
939
+ # 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
940
  # resp.instance_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].statistic #=> String, one of "Maximum", "Average"
830
941
  # resp.instance_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].value #=> Float
831
942
  # resp.instance_recommendations[0].recommendation_options[0].performance_risk #=> Float
832
943
  # resp.instance_recommendations[0].recommendation_options[0].rank #=> Integer
833
944
  # resp.instance_recommendations[0].recommendation_sources #=> Array
834
945
  # 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"
946
+ # resp.instance_recommendations[0].recommendation_sources[0].recommendation_source_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
836
947
  # resp.instance_recommendations[0].last_refresh_timestamp #=> Time
837
948
  # resp.errors #=> Array
838
949
  # resp.errors[0].identifier #=> String
@@ -851,6 +962,18 @@ module Aws::ComputeOptimizer
851
962
  # Returns the projected utilization metrics of Amazon EC2 instance
852
963
  # recommendations.
853
964
  #
965
+ # <note markdown="1"> The `Cpu` and `Memory` metrics are the only projected utilization
966
+ # metrics returned when you run this action. Additionally, the `Memory`
967
+ # metric is returned only for resources that have the unified CloudWatch
968
+ # agent installed on them. For more information, see [Enabling Memory
969
+ # Utilization with the CloudWatch Agent][1].
970
+ #
971
+ # </note>
972
+ #
973
+ #
974
+ #
975
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/metrics.html#cw-agent
976
+ #
854
977
  # @option params [required, String] :instance_arn
855
978
  # The Amazon Resource Name (ARN) of the instances for which to return
856
979
  # recommendation projected metrics.
@@ -887,7 +1010,7 @@ module Aws::ComputeOptimizer
887
1010
  # resp.recommended_option_projected_metrics[0].recommended_instance_type #=> String
888
1011
  # resp.recommended_option_projected_metrics[0].rank #=> Integer
889
1012
  # 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"
1013
+ # 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
1014
  # resp.recommended_option_projected_metrics[0].projected_metrics[0].timestamps #=> Array
892
1015
  # resp.recommended_option_projected_metrics[0].projected_metrics[0].timestamps[0] #=> Time
893
1016
  # resp.recommended_option_projected_metrics[0].projected_metrics[0].values #=> Array
@@ -905,9 +1028,9 @@ module Aws::ComputeOptimizer
905
1028
  # Returns the enrollment (opt in) status of an account to the AWS
906
1029
  # Compute Optimizer service.
907
1030
  #
908
- # If the account is the master account of an organization, this action
909
- # also confirms the enrollment status of member accounts within the
910
- # organization.
1031
+ # If the account is the management account of an organization, this
1032
+ # action also confirms the enrollment status of member accounts within
1033
+ # the organization.
911
1034
  #
912
1035
  # @return [Types::GetEnrollmentStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
913
1036
  #
@@ -930,6 +1053,112 @@ module Aws::ComputeOptimizer
930
1053
  req.send_request(options)
931
1054
  end
932
1055
 
1056
+ # Returns AWS Lambda function recommendations.
1057
+ #
1058
+ # AWS Compute Optimizer generates recommendations for functions that
1059
+ # meet a specific set of requirements. For more information, see the
1060
+ # [Supported resources and requirements][1] in the *AWS Compute
1061
+ # Optimizer User Guide*.
1062
+ #
1063
+ #
1064
+ #
1065
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html
1066
+ #
1067
+ # @option params [Array<String>] :function_arns
1068
+ # The Amazon Resource Name (ARN) of the functions for which to return
1069
+ # recommendations.
1070
+ #
1071
+ # You can specify a qualified or unqualified ARN. If you specify an
1072
+ # unqualified ARN without a function version suffix, Compute Optimizer
1073
+ # will return recommendations for the latest (`$LATEST`) version of the
1074
+ # function. If you specify a qualified ARN with a version suffix,
1075
+ # Compute Optimizer will return recommendations for the specified
1076
+ # function version. For more information about using function versions,
1077
+ # see [Using versions][1] in the *AWS Lambda Developer Guide*.
1078
+ #
1079
+ #
1080
+ #
1081
+ # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html#versioning-versions-using
1082
+ #
1083
+ # @option params [Array<String>] :account_ids
1084
+ # The IDs of the AWS accounts for which to return function
1085
+ # recommendations.
1086
+ #
1087
+ # If your account is the management account of an organization, use this
1088
+ # parameter to specify the member accounts for which you want to return
1089
+ # function recommendations.
1090
+ #
1091
+ # Only one account ID can be specified per request.
1092
+ #
1093
+ # @option params [Array<Types::LambdaFunctionRecommendationFilter>] :filters
1094
+ # An array of objects that describe a filter that returns a more
1095
+ # specific list of function recommendations.
1096
+ #
1097
+ # @option params [String] :next_token
1098
+ # The token to advance to the next page of function recommendations.
1099
+ #
1100
+ # @option params [Integer] :max_results
1101
+ # The maximum number of function recommendations to return with a single
1102
+ # request.
1103
+ #
1104
+ # To retrieve the remaining results, make another request with the
1105
+ # returned `NextToken` value.
1106
+ #
1107
+ # @return [Types::GetLambdaFunctionRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1108
+ #
1109
+ # * {Types::GetLambdaFunctionRecommendationsResponse#next_token #next_token} => String
1110
+ # * {Types::GetLambdaFunctionRecommendationsResponse#lambda_function_recommendations #lambda_function_recommendations} => Array&lt;Types::LambdaFunctionRecommendation&gt;
1111
+ #
1112
+ # @example Request syntax with placeholder values
1113
+ #
1114
+ # resp = client.get_lambda_function_recommendations({
1115
+ # function_arns: ["FunctionArn"],
1116
+ # account_ids: ["AccountId"],
1117
+ # filters: [
1118
+ # {
1119
+ # name: "Finding", # accepts Finding, FindingReasonCode
1120
+ # values: ["FilterValue"],
1121
+ # },
1122
+ # ],
1123
+ # next_token: "NextToken",
1124
+ # max_results: 1,
1125
+ # })
1126
+ #
1127
+ # @example Response structure
1128
+ #
1129
+ # resp.next_token #=> String
1130
+ # resp.lambda_function_recommendations #=> Array
1131
+ # resp.lambda_function_recommendations[0].function_arn #=> String
1132
+ # resp.lambda_function_recommendations[0].function_version #=> String
1133
+ # resp.lambda_function_recommendations[0].account_id #=> String
1134
+ # resp.lambda_function_recommendations[0].current_memory_size #=> Integer
1135
+ # resp.lambda_function_recommendations[0].number_of_invocations #=> Integer
1136
+ # resp.lambda_function_recommendations[0].utilization_metrics #=> Array
1137
+ # resp.lambda_function_recommendations[0].utilization_metrics[0].name #=> String, one of "Duration", "Memory"
1138
+ # resp.lambda_function_recommendations[0].utilization_metrics[0].statistic #=> String, one of "Maximum", "Average"
1139
+ # resp.lambda_function_recommendations[0].utilization_metrics[0].value #=> Float
1140
+ # resp.lambda_function_recommendations[0].lookback_period_in_days #=> Float
1141
+ # resp.lambda_function_recommendations[0].last_refresh_timestamp #=> Time
1142
+ # resp.lambda_function_recommendations[0].finding #=> String, one of "Optimized", "NotOptimized", "Unavailable"
1143
+ # resp.lambda_function_recommendations[0].finding_reason_codes #=> Array
1144
+ # resp.lambda_function_recommendations[0].finding_reason_codes[0] #=> String, one of "MemoryOverprovisioned", "MemoryUnderprovisioned", "InsufficientData", "Inconclusive"
1145
+ # resp.lambda_function_recommendations[0].memory_size_recommendation_options #=> Array
1146
+ # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].rank #=> Integer
1147
+ # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].memory_size #=> Integer
1148
+ # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics #=> Array
1149
+ # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics[0].name #=> String, one of "Duration"
1150
+ # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics[0].statistic #=> String, one of "LowerBound", "UpperBound", "Expected"
1151
+ # resp.lambda_function_recommendations[0].memory_size_recommendation_options[0].projected_utilization_metrics[0].value #=> Float
1152
+ #
1153
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetLambdaFunctionRecommendations AWS API Documentation
1154
+ #
1155
+ # @overload get_lambda_function_recommendations(params = {})
1156
+ # @param [Hash] params ({})
1157
+ def get_lambda_function_recommendations(params = {}, options = {})
1158
+ req = build_request(:get_lambda_function_recommendations, params)
1159
+ req.send_request(options)
1160
+ end
1161
+
933
1162
  # Returns the optimization findings for an account.
934
1163
  #
935
1164
  # For example, it returns the number of Amazon EC2 instances in an
@@ -941,7 +1170,7 @@ module Aws::ComputeOptimizer
941
1170
  # The IDs of the AWS accounts for which to return recommendation
942
1171
  # summaries.
943
1172
  #
944
- # If your account is the master account of an organization, use this
1173
+ # If your account is the management account of an organization, use this
945
1174
  # parameter to specify the member accounts for which you want to return
946
1175
  # recommendation summaries.
947
1176
  #
@@ -977,7 +1206,10 @@ module Aws::ComputeOptimizer
977
1206
  # resp.recommendation_summaries[0].summaries #=> Array
978
1207
  # resp.recommendation_summaries[0].summaries[0].name #=> String, one of "Underprovisioned", "Overprovisioned", "Optimized", "NotOptimized"
979
1208
  # resp.recommendation_summaries[0].summaries[0].value #=> Float
980
- # resp.recommendation_summaries[0].recommendation_resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup"
1209
+ # resp.recommendation_summaries[0].summaries[0].reason_code_summaries #=> Array
1210
+ # resp.recommendation_summaries[0].summaries[0].reason_code_summaries[0].name #=> String, one of "MemoryOverprovisioned", "MemoryUnderprovisioned"
1211
+ # resp.recommendation_summaries[0].summaries[0].reason_code_summaries[0].value #=> Float
1212
+ # resp.recommendation_summaries[0].recommendation_resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
981
1213
  # resp.recommendation_summaries[0].account_id #=> String
982
1214
  #
983
1215
  # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetRecommendationSummaries AWS API Documentation
@@ -992,8 +1224,8 @@ module Aws::ComputeOptimizer
992
1224
  # Updates the enrollment (opt in) status of an account to the AWS
993
1225
  # Compute Optimizer service.
994
1226
  #
995
- # If the account is a master account of an organization, this action can
996
- # also be used to enroll member accounts within the organization.
1227
+ # If the account is a management account of an organization, this action
1228
+ # can also be used to enroll member accounts within the organization.
997
1229
  #
998
1230
  # @option params [required, String] :status
999
1231
  # The new enrollment status of the account.
@@ -1003,7 +1235,7 @@ module Aws::ComputeOptimizer
1003
1235
  #
1004
1236
  # @option params [Boolean] :include_member_accounts
1005
1237
  # Indicates whether to enroll member accounts of the organization if the
1006
- # your account is the master account of an organization.
1238
+ # your account is the management account of an organization.
1007
1239
  #
1008
1240
  # @return [Types::UpdateEnrollmentStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1009
1241
  #
@@ -1044,7 +1276,7 @@ module Aws::ComputeOptimizer
1044
1276
  params: params,
1045
1277
  config: config)
1046
1278
  context[:gem_name] = 'aws-sdk-computeoptimizer'
1047
- context[:gem_version] = '1.6.0'
1279
+ context[:gem_version] = '1.11.0'
1048
1280
  Seahorse::Client::Request.new(handlers, context)
1049
1281
  end
1050
1282