aws-sdk-computeoptimizer 1.21.0 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-computeoptimizer/client.rb +212 -113
- data/lib/aws-sdk-computeoptimizer/client_api.rb +60 -0
- data/lib/aws-sdk-computeoptimizer/types.rb +423 -181
- data/lib/aws-sdk-computeoptimizer.rb +1 -1
- metadata +5 -5
@@ -339,23 +339,23 @@ module Aws::ComputeOptimizer
|
|
339
339
|
|
340
340
|
# Describes recommendation export jobs created in the last seven days.
|
341
341
|
#
|
342
|
-
# Use the
|
343
|
-
#
|
344
|
-
#
|
345
|
-
#
|
342
|
+
# Use the ExportAutoScalingGroupRecommendations or
|
343
|
+
# ExportEC2InstanceRecommendations actions to request an export of your
|
344
|
+
# recommendations. Then use the DescribeRecommendationExportJobs action
|
345
|
+
# to view your export jobs.
|
346
346
|
#
|
347
347
|
# @option params [Array<String>] :job_ids
|
348
348
|
# The identification numbers of the export jobs to return.
|
349
349
|
#
|
350
350
|
# An export job ID is returned when you create an export using the
|
351
|
-
#
|
352
|
-
#
|
351
|
+
# ExportAutoScalingGroupRecommendations or
|
352
|
+
# ExportEC2InstanceRecommendations actions.
|
353
353
|
#
|
354
354
|
# All export jobs created in the last seven days are returned if this
|
355
355
|
# parameter is omitted.
|
356
356
|
#
|
357
357
|
# @option params [Array<Types::JobFilter>] :filters
|
358
|
-
# An array of objects
|
358
|
+
# An array of objects to specify a filter that returns a more specific
|
359
359
|
# list of export jobs.
|
360
360
|
#
|
361
361
|
# @option params [String] :next_token
|
@@ -365,7 +365,7 @@ module Aws::ComputeOptimizer
|
|
365
365
|
# The maximum number of export jobs to return with a single request.
|
366
366
|
#
|
367
367
|
# To retrieve the remaining results, make another request with the
|
368
|
-
# returned `
|
368
|
+
# returned `nextToken` value.
|
369
369
|
#
|
370
370
|
# @return [Types::DescribeRecommendationExportJobsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
371
371
|
#
|
@@ -412,21 +412,21 @@ module Aws::ComputeOptimizer
|
|
412
412
|
# Exports optimization recommendations for Auto Scaling groups.
|
413
413
|
#
|
414
414
|
# Recommendations are exported in a comma-separated values (.csv) file,
|
415
|
-
# and its metadata in a JavaScript Object Notation (.json) file,
|
416
|
-
# existing Amazon Simple Storage Service (Amazon S3) bucket that
|
417
|
-
# specify. For more information, see [Exporting Recommendations][1]
|
418
|
-
# the *Compute Optimizer User Guide*.
|
415
|
+
# and its metadata in a JavaScript Object Notation (JSON) (.json) file,
|
416
|
+
# to an existing Amazon Simple Storage Service (Amazon S3) bucket that
|
417
|
+
# you specify. For more information, see [Exporting Recommendations][1]
|
418
|
+
# in the *Compute Optimizer User Guide*.
|
419
419
|
#
|
420
420
|
# You can have only one Auto Scaling group export job in progress per
|
421
|
-
#
|
421
|
+
# Amazon Web Services Region.
|
422
422
|
#
|
423
423
|
#
|
424
424
|
#
|
425
425
|
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html
|
426
426
|
#
|
427
427
|
# @option params [Array<String>] :account_ids
|
428
|
-
# The IDs of the
|
429
|
-
# recommendations.
|
428
|
+
# The IDs of the Amazon Web Services accounts for which to export Auto
|
429
|
+
# Scaling group recommendations.
|
430
430
|
#
|
431
431
|
# If your account is the management account of an organization, use this
|
432
432
|
# parameter to specify the member account for which you want to export
|
@@ -441,7 +441,7 @@ module Aws::ComputeOptimizer
|
|
441
441
|
# You can specify multiple account IDs per request.
|
442
442
|
#
|
443
443
|
# @option params [Array<Types::Filter>] :filters
|
444
|
-
# An array of objects
|
444
|
+
# An array of objects to specify a filter that exports a more specific
|
445
445
|
# set of Auto Scaling group recommendations.
|
446
446
|
#
|
447
447
|
# @option params [Array<String>] :fields_to_export
|
@@ -460,12 +460,12 @@ module Aws::ComputeOptimizer
|
|
460
460
|
# You must create the destination Amazon S3 bucket for your
|
461
461
|
# recommendations export before you create the export job. Compute
|
462
462
|
# Optimizer does not create the S3 bucket for you. After you create the
|
463
|
-
# S3 bucket, ensure that it has the required
|
463
|
+
# S3 bucket, ensure that it has the required permissions policy to allow
|
464
464
|
# Compute Optimizer to write the export file to it. If you plan to
|
465
465
|
# specify an object prefix when you create the export job, you must
|
466
466
|
# include the object prefix in the policy that you add to the S3 bucket.
|
467
467
|
# For more information, see [Amazon S3 Bucket Policy for Compute
|
468
|
-
# Optimizer][1] in the *Compute Optimizer
|
468
|
+
# Optimizer][1] in the *Compute Optimizer User Guide*.
|
469
469
|
#
|
470
470
|
#
|
471
471
|
#
|
@@ -484,8 +484,8 @@ module Aws::ComputeOptimizer
|
|
484
484
|
# The member accounts must also be opted in to Compute Optimizer, and
|
485
485
|
# trusted access for Compute Optimizer must be enabled in the
|
486
486
|
# organization account. For more information, see [Compute Optimizer and
|
487
|
-
#
|
488
|
-
# User Guide*.
|
487
|
+
# Amazon Web Services Organizations trusted access][1] in the *Compute
|
488
|
+
# Optimizer User Guide*.
|
489
489
|
#
|
490
490
|
# Recommendations for member accounts of the organization are not
|
491
491
|
# included in the export file if this parameter is omitted.
|
@@ -500,6 +500,10 @@ module Aws::ComputeOptimizer
|
|
500
500
|
#
|
501
501
|
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html#trusted-service-access
|
502
502
|
#
|
503
|
+
# @option params [Types::RecommendationPreferences] :recommendation_preferences
|
504
|
+
# An object to specify the preferences for the Auto Scaling group
|
505
|
+
# recommendations to export.
|
506
|
+
#
|
503
507
|
# @return [Types::ExportAutoScalingGroupRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
504
508
|
#
|
505
509
|
# * {Types::ExportAutoScalingGroupRecommendationsResponse#job_id #job_id} => String
|
@@ -522,6 +526,9 @@ module Aws::ComputeOptimizer
|
|
522
526
|
# },
|
523
527
|
# file_format: "Csv", # accepts Csv
|
524
528
|
# include_member_accounts: false,
|
529
|
+
# recommendation_preferences: {
|
530
|
+
# cpu_vendor_architectures: ["AWS_ARM64"], # accepts AWS_ARM64, CURRENT
|
531
|
+
# },
|
525
532
|
# })
|
526
533
|
#
|
527
534
|
# @example Response structure
|
@@ -543,21 +550,21 @@ module Aws::ComputeOptimizer
|
|
543
550
|
# Exports optimization recommendations for Amazon EBS volumes.
|
544
551
|
#
|
545
552
|
# Recommendations are exported in a comma-separated values (.csv) file,
|
546
|
-
# and its metadata in a JavaScript Object Notation (.json) file,
|
547
|
-
# existing Amazon Simple Storage Service (Amazon S3) bucket that
|
548
|
-
# specify. For more information, see [Exporting Recommendations][1]
|
549
|
-
# the *Compute Optimizer User Guide*.
|
553
|
+
# and its metadata in a JavaScript Object Notation (JSON) (.json) file,
|
554
|
+
# to an existing Amazon Simple Storage Service (Amazon S3) bucket that
|
555
|
+
# you specify. For more information, see [Exporting Recommendations][1]
|
556
|
+
# in the *Compute Optimizer User Guide*.
|
550
557
|
#
|
551
|
-
# You can have only one Amazon EBS volume export job in progress per
|
552
|
-
# Region.
|
558
|
+
# You can have only one Amazon EBS volume export job in progress per
|
559
|
+
# Amazon Web Services Region.
|
553
560
|
#
|
554
561
|
#
|
555
562
|
#
|
556
563
|
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html
|
557
564
|
#
|
558
565
|
# @option params [Array<String>] :account_ids
|
559
|
-
# The IDs of the
|
560
|
-
# recommendations.
|
566
|
+
# The IDs of the Amazon Web Services accounts for which to export Amazon
|
567
|
+
# EBS volume recommendations.
|
561
568
|
#
|
562
569
|
# If your account is the management account of an organization, use this
|
563
570
|
# parameter to specify the member account for which you want to export
|
@@ -572,7 +579,7 @@ module Aws::ComputeOptimizer
|
|
572
579
|
# You can specify multiple account IDs per request.
|
573
580
|
#
|
574
581
|
# @option params [Array<Types::EBSFilter>] :filters
|
575
|
-
# An array of objects
|
582
|
+
# An array of objects to specify a filter that exports a more specific
|
576
583
|
# set of Amazon EBS volume recommendations.
|
577
584
|
#
|
578
585
|
# @option params [Array<String>] :fields_to_export
|
@@ -596,7 +603,7 @@ module Aws::ComputeOptimizer
|
|
596
603
|
# specify an object prefix when you create the export job, you must
|
597
604
|
# include the object prefix in the policy that you add to the S3 bucket.
|
598
605
|
# For more information, see [Amazon S3 Bucket Policy for Compute
|
599
|
-
# Optimizer][1] in the *Compute Optimizer
|
606
|
+
# Optimizer][1] in the *Compute Optimizer User Guide*.
|
600
607
|
#
|
601
608
|
#
|
602
609
|
#
|
@@ -615,8 +622,8 @@ module Aws::ComputeOptimizer
|
|
615
622
|
# The member accounts must also be opted in to Compute Optimizer, and
|
616
623
|
# trusted access for Compute Optimizer must be enabled in the
|
617
624
|
# organization account. For more information, see [Compute Optimizer and
|
618
|
-
#
|
619
|
-
# User Guide*.
|
625
|
+
# Amazon Web Services Organizations trusted access][1] in the *Compute
|
626
|
+
# Optimizer User Guide*.
|
620
627
|
#
|
621
628
|
# Recommendations for member accounts of the organization are not
|
622
629
|
# included in the export file if this parameter is omitted.
|
@@ -674,21 +681,21 @@ module Aws::ComputeOptimizer
|
|
674
681
|
# Exports optimization recommendations for Amazon EC2 instances.
|
675
682
|
#
|
676
683
|
# Recommendations are exported in a comma-separated values (.csv) file,
|
677
|
-
# and its metadata in a JavaScript Object Notation (.json) file,
|
678
|
-
# existing Amazon Simple Storage Service (Amazon S3) bucket that
|
679
|
-
# specify. For more information, see [Exporting Recommendations][1]
|
680
|
-
# the *Compute Optimizer User Guide*.
|
684
|
+
# and its metadata in a JavaScript Object Notation (JSON) (.json) file,
|
685
|
+
# to an existing Amazon Simple Storage Service (Amazon S3) bucket that
|
686
|
+
# you specify. For more information, see [Exporting Recommendations][1]
|
687
|
+
# in the *Compute Optimizer User Guide*.
|
681
688
|
#
|
682
689
|
# You can have only one Amazon EC2 instance export job in progress per
|
683
|
-
#
|
690
|
+
# Amazon Web Services Region.
|
684
691
|
#
|
685
692
|
#
|
686
693
|
#
|
687
694
|
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html
|
688
695
|
#
|
689
696
|
# @option params [Array<String>] :account_ids
|
690
|
-
# The IDs of the
|
691
|
-
# recommendations.
|
697
|
+
# The IDs of the Amazon Web Services accounts for which to export
|
698
|
+
# instance recommendations.
|
692
699
|
#
|
693
700
|
# If your account is the management account of an organization, use this
|
694
701
|
# parameter to specify the member account for which you want to export
|
@@ -703,7 +710,7 @@ module Aws::ComputeOptimizer
|
|
703
710
|
# You can specify multiple account IDs per request.
|
704
711
|
#
|
705
712
|
# @option params [Array<Types::Filter>] :filters
|
706
|
-
# An array of objects
|
713
|
+
# An array of objects to specify a filter that exports a more specific
|
707
714
|
# set of instance recommendations.
|
708
715
|
#
|
709
716
|
# @option params [Array<String>] :fields_to_export
|
@@ -722,12 +729,12 @@ module Aws::ComputeOptimizer
|
|
722
729
|
# You must create the destination Amazon S3 bucket for your
|
723
730
|
# recommendations export before you create the export job. Compute
|
724
731
|
# Optimizer does not create the S3 bucket for you. After you create the
|
725
|
-
# S3 bucket, ensure that it has the required
|
726
|
-
# Compute Optimizer to write the export file to it. If you plan
|
727
|
-
# specify an object prefix when you create the export job, you must
|
728
|
-
# include the object prefix in the
|
729
|
-
#
|
730
|
-
# Optimizer][1] in the *Compute Optimizer
|
732
|
+
# S3 bucket, ensure that it has the required permissions policy policy
|
733
|
+
# to allow Compute Optimizer to write the export file to it. If you plan
|
734
|
+
# to specify an object prefix when you create the export job, you must
|
735
|
+
# include the object prefix in the that you add to the S3 bucket. For
|
736
|
+
# more information, see [Amazon S3 Bucket Policy for Compute
|
737
|
+
# Optimizer][1] in the *Compute Optimizer User Guide*.
|
731
738
|
#
|
732
739
|
#
|
733
740
|
#
|
@@ -746,8 +753,8 @@ module Aws::ComputeOptimizer
|
|
746
753
|
# The member accounts must also be opted in to Compute Optimizer, and
|
747
754
|
# trusted access for Compute Optimizer must be enabled in the
|
748
755
|
# organization account. For more information, see [Compute Optimizer and
|
749
|
-
#
|
750
|
-
# User Guide*.
|
756
|
+
# Amazon Web Services Organizations trusted access][1] in the *Compute
|
757
|
+
# Optimizer User Guide*.
|
751
758
|
#
|
752
759
|
# Recommendations for member accounts of the organization are not
|
753
760
|
# included in the export file if this parameter is omitted.
|
@@ -759,6 +766,10 @@ module Aws::ComputeOptimizer
|
|
759
766
|
#
|
760
767
|
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html#trusted-service-access
|
761
768
|
#
|
769
|
+
# @option params [Types::RecommendationPreferences] :recommendation_preferences
|
770
|
+
# An object to specify the preferences for the Amazon EC2 instance
|
771
|
+
# recommendations to export.
|
772
|
+
#
|
762
773
|
# @return [Types::ExportEC2InstanceRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
763
774
|
#
|
764
775
|
# * {Types::ExportEC2InstanceRecommendationsResponse#job_id #job_id} => String
|
@@ -781,6 +792,9 @@ module Aws::ComputeOptimizer
|
|
781
792
|
# },
|
782
793
|
# file_format: "Csv", # accepts Csv
|
783
794
|
# include_member_accounts: false,
|
795
|
+
# recommendation_preferences: {
|
796
|
+
# cpu_vendor_architectures: ["AWS_ARM64"], # accepts AWS_ARM64, CURRENT
|
797
|
+
# },
|
784
798
|
# })
|
785
799
|
#
|
786
800
|
# @example Response structure
|
@@ -799,24 +813,24 @@ module Aws::ComputeOptimizer
|
|
799
813
|
req.send_request(options)
|
800
814
|
end
|
801
815
|
|
802
|
-
# Exports optimization recommendations for
|
816
|
+
# Exports optimization recommendations for Lambda functions.
|
803
817
|
#
|
804
818
|
# Recommendations are exported in a comma-separated values (.csv) file,
|
805
|
-
# and its metadata in a JavaScript Object Notation (.json) file,
|
806
|
-
# existing Amazon Simple Storage Service (Amazon S3) bucket that
|
807
|
-
# specify. For more information, see [Exporting Recommendations][1]
|
808
|
-
# the *Compute Optimizer User Guide*.
|
819
|
+
# and its metadata in a JavaScript Object Notation (JSON) (.json) file,
|
820
|
+
# to an existing Amazon Simple Storage Service (Amazon S3) bucket that
|
821
|
+
# you specify. For more information, see [Exporting Recommendations][1]
|
822
|
+
# in the *Compute Optimizer User Guide*.
|
809
823
|
#
|
810
|
-
# You can have only one Lambda function export job in progress per
|
811
|
-
# Region.
|
824
|
+
# You can have only one Lambda function export job in progress per
|
825
|
+
# Amazon Web Services Region.
|
812
826
|
#
|
813
827
|
#
|
814
828
|
#
|
815
829
|
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html
|
816
830
|
#
|
817
831
|
# @option params [Array<String>] :account_ids
|
818
|
-
# The IDs of the
|
819
|
-
# recommendations.
|
832
|
+
# The IDs of the Amazon Web Services accounts for which to export Lambda
|
833
|
+
# function recommendations.
|
820
834
|
#
|
821
835
|
# If your account is the management account of an organization, use this
|
822
836
|
# parameter to specify the member account for which you want to export
|
@@ -831,7 +845,7 @@ module Aws::ComputeOptimizer
|
|
831
845
|
# You can specify multiple account IDs per request.
|
832
846
|
#
|
833
847
|
# @option params [Array<Types::LambdaFunctionRecommendationFilter>] :filters
|
834
|
-
# An array of objects
|
848
|
+
# An array of objects to specify a filter that exports a more specific
|
835
849
|
# set of Lambda function recommendations.
|
836
850
|
#
|
837
851
|
# @option params [Array<String>] :fields_to_export
|
@@ -855,7 +869,7 @@ module Aws::ComputeOptimizer
|
|
855
869
|
# specify an object prefix when you create the export job, you must
|
856
870
|
# include the object prefix in the policy that you add to the S3 bucket.
|
857
871
|
# For more information, see [Amazon S3 Bucket Policy for Compute
|
858
|
-
# Optimizer][1] in the *Compute Optimizer
|
872
|
+
# Optimizer][1] in the *Compute Optimizer User Guide*.
|
859
873
|
#
|
860
874
|
#
|
861
875
|
#
|
@@ -874,8 +888,8 @@ module Aws::ComputeOptimizer
|
|
874
888
|
# The member accounts must also be opted in to Compute Optimizer, and
|
875
889
|
# trusted access for Compute Optimizer must be enabled in the
|
876
890
|
# organization account. For more information, see [Compute Optimizer and
|
877
|
-
#
|
878
|
-
# User Guide*.
|
891
|
+
# Amazon Web Services Organizations trusted access][1] in the *Compute
|
892
|
+
# Optimizer User Guide*.
|
879
893
|
#
|
880
894
|
# Recommendations for member accounts of the organization are not
|
881
895
|
# included in the export file if this parameter is omitted.
|
@@ -932,18 +946,18 @@ module Aws::ComputeOptimizer
|
|
932
946
|
|
933
947
|
# Returns Auto Scaling group recommendations.
|
934
948
|
#
|
935
|
-
#
|
949
|
+
# Compute Optimizer generates recommendations for Amazon EC2 Auto
|
936
950
|
# Scaling groups that meet a specific set of requirements. For more
|
937
951
|
# information, see the [Supported resources and requirements][1] in the
|
938
|
-
# *
|
952
|
+
# *Compute Optimizer User Guide*.
|
939
953
|
#
|
940
954
|
#
|
941
955
|
#
|
942
956
|
# [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html
|
943
957
|
#
|
944
958
|
# @option params [Array<String>] :account_ids
|
945
|
-
# The ID of the
|
946
|
-
# recommendations.
|
959
|
+
# The ID of the Amazon Web Services account for which to return Auto
|
960
|
+
# Scaling group recommendations.
|
947
961
|
#
|
948
962
|
# If your account is the management account of an organization, use this
|
949
963
|
# parameter to specify the member account for which you want to return
|
@@ -964,11 +978,15 @@ module Aws::ComputeOptimizer
|
|
964
978
|
# with a single request.
|
965
979
|
#
|
966
980
|
# To retrieve the remaining results, make another request with the
|
967
|
-
# returned `
|
981
|
+
# returned `nextToken` value.
|
968
982
|
#
|
969
983
|
# @option params [Array<Types::Filter>] :filters
|
970
|
-
# An array of objects
|
971
|
-
#
|
984
|
+
# An array of objects to specify a filter that returns a more specific
|
985
|
+
# list of Auto Scaling group recommendations.
|
986
|
+
#
|
987
|
+
# @option params [Types::RecommendationPreferences] :recommendation_preferences
|
988
|
+
# An object to specify the preferences for the Auto Scaling group
|
989
|
+
# recommendations to return in the response.
|
972
990
|
#
|
973
991
|
# @return [Types::GetAutoScalingGroupRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
974
992
|
#
|
@@ -989,6 +1007,9 @@ module Aws::ComputeOptimizer
|
|
989
1007
|
# values: ["FilterValue"],
|
990
1008
|
# },
|
991
1009
|
# ],
|
1010
|
+
# recommendation_preferences: {
|
1011
|
+
# cpu_vendor_architectures: ["AWS_ARM64"], # accepts AWS_ARM64, CURRENT
|
1012
|
+
# },
|
992
1013
|
# })
|
993
1014
|
#
|
994
1015
|
# @example Response structure
|
@@ -1037,9 +1058,9 @@ module Aws::ComputeOptimizer
|
|
1037
1058
|
# Returns Amazon Elastic Block Store (Amazon EBS) volume
|
1038
1059
|
# recommendations.
|
1039
1060
|
#
|
1040
|
-
#
|
1061
|
+
# Compute Optimizer generates recommendations for Amazon EBS volumes
|
1041
1062
|
# that meet a specific set of requirements. For more information, see
|
1042
|
-
# the [Supported resources and requirements][1] in the *
|
1063
|
+
# the [Supported resources and requirements][1] in the *Compute
|
1043
1064
|
# Optimizer User Guide*.
|
1044
1065
|
#
|
1045
1066
|
#
|
@@ -1058,14 +1079,15 @@ module Aws::ComputeOptimizer
|
|
1058
1079
|
# request.
|
1059
1080
|
#
|
1060
1081
|
# To retrieve the remaining results, make another request with the
|
1061
|
-
# returned `
|
1082
|
+
# returned `nextToken` value.
|
1062
1083
|
#
|
1063
1084
|
# @option params [Array<Types::EBSFilter>] :filters
|
1064
|
-
# An array of objects
|
1065
|
-
#
|
1085
|
+
# An array of objects to specify a filter that returns a more specific
|
1086
|
+
# list of volume recommendations.
|
1066
1087
|
#
|
1067
1088
|
# @option params [Array<String>] :account_ids
|
1068
|
-
# The ID of the
|
1089
|
+
# The ID of the Amazon Web Services account for which to return volume
|
1090
|
+
# recommendations.
|
1069
1091
|
#
|
1070
1092
|
# If your account is the management account of an organization, use this
|
1071
1093
|
# parameter to specify the member account for which you want to return
|
@@ -1138,10 +1160,10 @@ module Aws::ComputeOptimizer
|
|
1138
1160
|
|
1139
1161
|
# Returns Amazon EC2 instance recommendations.
|
1140
1162
|
#
|
1141
|
-
#
|
1142
|
-
#
|
1143
|
-
#
|
1144
|
-
# requirements][1] in the *
|
1163
|
+
# Compute Optimizer generates recommendations for Amazon Elastic Compute
|
1164
|
+
# Cloud (Amazon EC2) instances that meet a specific set of requirements.
|
1165
|
+
# For more information, see the [Supported resources and
|
1166
|
+
# requirements][1] in the *Compute Optimizer User Guide*.
|
1145
1167
|
#
|
1146
1168
|
#
|
1147
1169
|
#
|
@@ -1159,14 +1181,14 @@ module Aws::ComputeOptimizer
|
|
1159
1181
|
# request.
|
1160
1182
|
#
|
1161
1183
|
# To retrieve the remaining results, make another request with the
|
1162
|
-
# returned `
|
1184
|
+
# returned `nextToken` value.
|
1163
1185
|
#
|
1164
1186
|
# @option params [Array<Types::Filter>] :filters
|
1165
|
-
# An array of objects
|
1166
|
-
#
|
1187
|
+
# An array of objects to specify a filter that returns a more specific
|
1188
|
+
# list of instance recommendations.
|
1167
1189
|
#
|
1168
1190
|
# @option params [Array<String>] :account_ids
|
1169
|
-
# The ID of the
|
1191
|
+
# The ID of the Amazon Web Services account for which to return instance
|
1170
1192
|
# recommendations.
|
1171
1193
|
#
|
1172
1194
|
# If your account is the management account of an organization, use this
|
@@ -1175,6 +1197,10 @@ module Aws::ComputeOptimizer
|
|
1175
1197
|
#
|
1176
1198
|
# Only one account ID can be specified per request.
|
1177
1199
|
#
|
1200
|
+
# @option params [Types::RecommendationPreferences] :recommendation_preferences
|
1201
|
+
# An object to specify the preferences for the Amazon EC2 instance
|
1202
|
+
# recommendations to return in the response.
|
1203
|
+
#
|
1178
1204
|
# @return [Types::GetEC2InstanceRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1179
1205
|
#
|
1180
1206
|
# * {Types::GetEC2InstanceRecommendationsResponse#next_token #next_token} => String
|
@@ -1194,6 +1220,9 @@ module Aws::ComputeOptimizer
|
|
1194
1220
|
# },
|
1195
1221
|
# ],
|
1196
1222
|
# account_ids: ["AccountId"],
|
1223
|
+
# recommendation_preferences: {
|
1224
|
+
# cpu_vendor_architectures: ["AWS_ARM64"], # accepts AWS_ARM64, CURRENT
|
1225
|
+
# },
|
1197
1226
|
# })
|
1198
1227
|
#
|
1199
1228
|
# @example Response structure
|
@@ -1219,7 +1248,7 @@ module Aws::ComputeOptimizer
|
|
1219
1248
|
# resp.instance_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].statistic #=> String, one of "Maximum", "Average"
|
1220
1249
|
# resp.instance_recommendations[0].recommendation_options[0].projected_utilization_metrics[0].value #=> Float
|
1221
1250
|
# resp.instance_recommendations[0].recommendation_options[0].platform_differences #=> Array
|
1222
|
-
# resp.instance_recommendations[0].recommendation_options[0].platform_differences[0] #=> String, one of "Hypervisor", "NetworkInterface", "StorageInterface", "InstanceStoreAvailability", "VirtualizationType"
|
1251
|
+
# resp.instance_recommendations[0].recommendation_options[0].platform_differences[0] #=> String, one of "Hypervisor", "NetworkInterface", "StorageInterface", "InstanceStoreAvailability", "VirtualizationType", "Architecture"
|
1223
1252
|
# resp.instance_recommendations[0].recommendation_options[0].performance_risk #=> Float
|
1224
1253
|
# resp.instance_recommendations[0].recommendation_options[0].rank #=> Integer
|
1225
1254
|
# resp.instance_recommendations[0].recommendation_sources #=> Array
|
@@ -1266,10 +1295,14 @@ module Aws::ComputeOptimizer
|
|
1266
1295
|
# The granularity, in seconds, of the projected metrics data points.
|
1267
1296
|
#
|
1268
1297
|
# @option params [required, Time,DateTime,Date,Integer,String] :start_time
|
1269
|
-
# The
|
1298
|
+
# The timestamp of the first projected metrics data point to return.
|
1270
1299
|
#
|
1271
1300
|
# @option params [required, Time,DateTime,Date,Integer,String] :end_time
|
1272
|
-
# The
|
1301
|
+
# The timestamp of the last projected metrics data point to return.
|
1302
|
+
#
|
1303
|
+
# @option params [Types::RecommendationPreferences] :recommendation_preferences
|
1304
|
+
# An object to specify the preferences for the Amazon EC2 recommendation
|
1305
|
+
# projected metrics to return in the response.
|
1273
1306
|
#
|
1274
1307
|
# @return [Types::GetEC2RecommendationProjectedMetricsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1275
1308
|
#
|
@@ -1283,6 +1316,9 @@ module Aws::ComputeOptimizer
|
|
1283
1316
|
# period: 1, # required
|
1284
1317
|
# start_time: Time.now, # required
|
1285
1318
|
# end_time: Time.now, # required
|
1319
|
+
# recommendation_preferences: {
|
1320
|
+
# cpu_vendor_architectures: ["AWS_ARM64"], # accepts AWS_ARM64, CURRENT
|
1321
|
+
# },
|
1286
1322
|
# })
|
1287
1323
|
#
|
1288
1324
|
# @example Response structure
|
@@ -1306,24 +1342,30 @@ module Aws::ComputeOptimizer
|
|
1306
1342
|
req.send_request(options)
|
1307
1343
|
end
|
1308
1344
|
|
1309
|
-
# Returns the enrollment (opt in) status of an account to the
|
1310
|
-
#
|
1345
|
+
# Returns the enrollment (opt in) status of an account to the Compute
|
1346
|
+
# Optimizer service.
|
1311
1347
|
#
|
1312
1348
|
# If the account is the management account of an organization, this
|
1313
|
-
# action also confirms the enrollment status of member accounts
|
1314
|
-
# the
|
1349
|
+
# action also confirms the enrollment status of member accounts of the
|
1350
|
+
# organization. Use the GetEnrollmentStatusesForOrganization action to
|
1351
|
+
# get detailed information about the enrollment status of member
|
1352
|
+
# accounts of an organization.
|
1315
1353
|
#
|
1316
1354
|
# @return [Types::GetEnrollmentStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1317
1355
|
#
|
1318
1356
|
# * {Types::GetEnrollmentStatusResponse#status #status} => String
|
1319
1357
|
# * {Types::GetEnrollmentStatusResponse#status_reason #status_reason} => String
|
1320
1358
|
# * {Types::GetEnrollmentStatusResponse#member_accounts_enrolled #member_accounts_enrolled} => Boolean
|
1359
|
+
# * {Types::GetEnrollmentStatusResponse#last_updated_timestamp #last_updated_timestamp} => Time
|
1360
|
+
# * {Types::GetEnrollmentStatusResponse#number_of_member_accounts_opted_in #number_of_member_accounts_opted_in} => Integer
|
1321
1361
|
#
|
1322
1362
|
# @example Response structure
|
1323
1363
|
#
|
1324
1364
|
# resp.status #=> String, one of "Active", "Inactive", "Pending", "Failed"
|
1325
1365
|
# resp.status_reason #=> String
|
1326
1366
|
# resp.member_accounts_enrolled #=> Boolean
|
1367
|
+
# resp.last_updated_timestamp #=> Time
|
1368
|
+
# resp.number_of_member_accounts_opted_in #=> Integer
|
1327
1369
|
#
|
1328
1370
|
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetEnrollmentStatus AWS API Documentation
|
1329
1371
|
#
|
@@ -1334,12 +1376,69 @@ module Aws::ComputeOptimizer
|
|
1334
1376
|
req.send_request(options)
|
1335
1377
|
end
|
1336
1378
|
|
1337
|
-
# Returns
|
1379
|
+
# Returns the Compute Optimizer enrollment (opt-in) status of
|
1380
|
+
# organization member accounts, if your account is an organization
|
1381
|
+
# management account.
|
1338
1382
|
#
|
1339
|
-
#
|
1340
|
-
#
|
1341
|
-
#
|
1342
|
-
#
|
1383
|
+
# To get the enrollment status of standalone accounts, use the
|
1384
|
+
# GetEnrollmentStatus action.
|
1385
|
+
#
|
1386
|
+
# @option params [Array<Types::EnrollmentFilter>] :filters
|
1387
|
+
# An array of objects to specify a filter that returns a more specific
|
1388
|
+
# list of account enrollment statuses.
|
1389
|
+
#
|
1390
|
+
# @option params [String] :next_token
|
1391
|
+
# The token to advance to the next page of account enrollment statuses.
|
1392
|
+
#
|
1393
|
+
# @option params [Integer] :max_results
|
1394
|
+
# The maximum number of account enrollment statuses to return with a
|
1395
|
+
# single request. You can specify up to 100 statuses to return with each
|
1396
|
+
# request.
|
1397
|
+
#
|
1398
|
+
# To retrieve the remaining results, make another request with the
|
1399
|
+
# returned `nextToken` value.
|
1400
|
+
#
|
1401
|
+
# @return [Types::GetEnrollmentStatusesForOrganizationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1402
|
+
#
|
1403
|
+
# * {Types::GetEnrollmentStatusesForOrganizationResponse#account_enrollment_statuses #account_enrollment_statuses} => Array<Types::AccountEnrollmentStatus>
|
1404
|
+
# * {Types::GetEnrollmentStatusesForOrganizationResponse#next_token #next_token} => String
|
1405
|
+
#
|
1406
|
+
# @example Request syntax with placeholder values
|
1407
|
+
#
|
1408
|
+
# resp = client.get_enrollment_statuses_for_organization({
|
1409
|
+
# filters: [
|
1410
|
+
# {
|
1411
|
+
# name: "Status", # accepts Status
|
1412
|
+
# values: ["FilterValue"],
|
1413
|
+
# },
|
1414
|
+
# ],
|
1415
|
+
# next_token: "NextToken",
|
1416
|
+
# max_results: 1,
|
1417
|
+
# })
|
1418
|
+
#
|
1419
|
+
# @example Response structure
|
1420
|
+
#
|
1421
|
+
# resp.account_enrollment_statuses #=> Array
|
1422
|
+
# resp.account_enrollment_statuses[0].account_id #=> String
|
1423
|
+
# resp.account_enrollment_statuses[0].status #=> String, one of "Active", "Inactive", "Pending", "Failed"
|
1424
|
+
# resp.account_enrollment_statuses[0].status_reason #=> String
|
1425
|
+
# resp.account_enrollment_statuses[0].last_updated_timestamp #=> Time
|
1426
|
+
# resp.next_token #=> String
|
1427
|
+
#
|
1428
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetEnrollmentStatusesForOrganization AWS API Documentation
|
1429
|
+
#
|
1430
|
+
# @overload get_enrollment_statuses_for_organization(params = {})
|
1431
|
+
# @param [Hash] params ({})
|
1432
|
+
def get_enrollment_statuses_for_organization(params = {}, options = {})
|
1433
|
+
req = build_request(:get_enrollment_statuses_for_organization, params)
|
1434
|
+
req.send_request(options)
|
1435
|
+
end
|
1436
|
+
|
1437
|
+
# Returns Lambda function recommendations.
|
1438
|
+
#
|
1439
|
+
# Compute Optimizer generates recommendations for functions that meet a
|
1440
|
+
# specific set of requirements. For more information, see the [Supported
|
1441
|
+
# resources and requirements][1] in the *Compute Optimizer User Guide*.
|
1343
1442
|
#
|
1344
1443
|
#
|
1345
1444
|
#
|
@@ -1355,14 +1454,14 @@ module Aws::ComputeOptimizer
|
|
1355
1454
|
# function. If you specify a qualified ARN with a version suffix,
|
1356
1455
|
# Compute Optimizer will return recommendations for the specified
|
1357
1456
|
# function version. For more information about using function versions,
|
1358
|
-
# see [Using versions][1] in the *
|
1457
|
+
# see [Using versions][1] in the *Lambda Developer Guide*.
|
1359
1458
|
#
|
1360
1459
|
#
|
1361
1460
|
#
|
1362
1461
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html#versioning-versions-using
|
1363
1462
|
#
|
1364
1463
|
# @option params [Array<String>] :account_ids
|
1365
|
-
# The ID of the
|
1464
|
+
# The ID of the Amazon Web Services account for which to return function
|
1366
1465
|
# recommendations.
|
1367
1466
|
#
|
1368
1467
|
# If your account is the management account of an organization, use this
|
@@ -1372,8 +1471,8 @@ module Aws::ComputeOptimizer
|
|
1372
1471
|
# Only one account ID can be specified per request.
|
1373
1472
|
#
|
1374
1473
|
# @option params [Array<Types::LambdaFunctionRecommendationFilter>] :filters
|
1375
|
-
# An array of objects
|
1376
|
-
#
|
1474
|
+
# An array of objects to specify a filter that returns a more specific
|
1475
|
+
# list of function recommendations.
|
1377
1476
|
#
|
1378
1477
|
# @option params [String] :next_token
|
1379
1478
|
# The token to advance to the next page of function recommendations.
|
@@ -1383,7 +1482,7 @@ module Aws::ComputeOptimizer
|
|
1383
1482
|
# request.
|
1384
1483
|
#
|
1385
1484
|
# To retrieve the remaining results, make another request with the
|
1386
|
-
# returned `
|
1485
|
+
# returned `nextToken` value.
|
1387
1486
|
#
|
1388
1487
|
# @return [Types::GetLambdaFunctionRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1389
1488
|
#
|
@@ -1457,8 +1556,8 @@ module Aws::ComputeOptimizer
|
|
1457
1556
|
# `Optimized`.
|
1458
1557
|
#
|
1459
1558
|
# @option params [Array<String>] :account_ids
|
1460
|
-
# The ID of the
|
1461
|
-
# summaries.
|
1559
|
+
# The ID of the Amazon Web Services account for which to return
|
1560
|
+
# recommendation summaries.
|
1462
1561
|
#
|
1463
1562
|
# If your account is the management account of an organization, use this
|
1464
1563
|
# parameter to specify the member account for which you want to return
|
@@ -1474,7 +1573,7 @@ module Aws::ComputeOptimizer
|
|
1474
1573
|
# request.
|
1475
1574
|
#
|
1476
1575
|
# To retrieve the remaining results, make another request with the
|
1477
|
-
# returned `
|
1576
|
+
# returned `nextToken` value.
|
1478
1577
|
#
|
1479
1578
|
# @return [Types::GetRecommendationSummariesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1480
1579
|
#
|
@@ -1512,20 +1611,20 @@ module Aws::ComputeOptimizer
|
|
1512
1611
|
end
|
1513
1612
|
|
1514
1613
|
# Updates the enrollment (opt in and opt out) status of an account to
|
1515
|
-
# the
|
1614
|
+
# the Compute Optimizer service.
|
1516
1615
|
#
|
1517
1616
|
# If the account is a management account of an organization, this action
|
1518
|
-
# can also be used to enroll member accounts
|
1617
|
+
# can also be used to enroll member accounts of the organization.
|
1519
1618
|
#
|
1520
1619
|
# You must have the appropriate permissions to opt in to Compute
|
1521
1620
|
# Optimizer, to view its recommendations, and to opt out. For more
|
1522
|
-
# information, see [Controlling access with
|
1523
|
-
# Management][1] in the *
|
1621
|
+
# information, see [Controlling access with Amazon Web Services Identity
|
1622
|
+
# and Access Management][1] in the *Compute Optimizer User Guide*.
|
1524
1623
|
#
|
1525
1624
|
# When you opt in, Compute Optimizer automatically creates a
|
1526
|
-
#
|
1527
|
-
# information, see [Using Service-Linked Roles for
|
1528
|
-
#
|
1625
|
+
# service-linked role in your account to access its data. For more
|
1626
|
+
# information, see [Using Service-Linked Roles for Compute Optimizer][2]
|
1627
|
+
# in the *Compute Optimizer User Guide*.
|
1529
1628
|
#
|
1530
1629
|
#
|
1531
1630
|
#
|
@@ -1539,9 +1638,9 @@ module Aws::ComputeOptimizer
|
|
1539
1638
|
#
|
1540
1639
|
# * `Active` - Opts in your account to the Compute Optimizer service.
|
1541
1640
|
# Compute Optimizer begins analyzing the configuration and utilization
|
1542
|
-
# metrics of your
|
1543
|
-
# information, see [Metrics analyzed by
|
1544
|
-
# the *
|
1641
|
+
# metrics of your Amazon Web Services resources after you opt in. For
|
1642
|
+
# more information, see [Metrics analyzed by Compute Optimizer][1] in
|
1643
|
+
# the *Compute Optimizer User Guide*.
|
1545
1644
|
#
|
1546
1645
|
# * `Inactive` - Opts out your account from the Compute Optimizer
|
1547
1646
|
# service. Your account's recommendations and related metrics data
|
@@ -1600,7 +1699,7 @@ module Aws::ComputeOptimizer
|
|
1600
1699
|
params: params,
|
1601
1700
|
config: config)
|
1602
1701
|
context[:gem_name] = 'aws-sdk-computeoptimizer'
|
1603
|
-
context[:gem_version] = '1.
|
1702
|
+
context[:gem_version] = '1.25.0'
|
1604
1703
|
Seahorse::Client::Request.new(handlers, context)
|
1605
1704
|
end
|
1606
1705
|
|