aws-sdk-computeoptimizer 1.12.0 → 1.17.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: '0348d636d8c07b678c71bfe5c59b580e014ac499426461b80dce0e73acf94877'
4
- data.tar.gz: 7f5ed923dc8c2a290702e43f28c91e2549041e0520741055e629eec587d56ff2
3
+ metadata.gz: 8e2ae0e5b6a86979f6e6198d6ec6aacdda648640028f47efd297920c89b5d337
4
+ data.tar.gz: a3106d82962e78924dd3bc66d1a5d677e350bfdfcd548b61157f608e2b98f080
5
5
  SHA512:
6
- metadata.gz: e1d322c6ebddb766262166d4c74187d05f09d570eb2a299f3fb35d06b4a089e8d9e3cbf363adf89afdaa7f9b518b592beb50ef4fd2e7663c96c03e4bc12381e4
7
- data.tar.gz: 35ac20631f5f22d47da9e78699e5714571b40b6dfa86366373d24b6b790dedd2909e3cd34de00177fa62efbad23e4dddcc430cc10c692965542b35d53b8a7c17
6
+ metadata.gz: 7e59fbbb9a9e06f6c68fa884dfce3ac26cebc3de4c4f080d1d831f7444da2116b872a09944850cb17a511cb38b15aebe15b0a335f6f15242a8a9b61a202d71ea
7
+ data.tar.gz: e4a133f78fcdac0d6e1dbe8d2aea703fe35003aaecd3511a44879e268905b3995aeedd2b7f875ce56ebb755e7c9914dccfdd6f3c750a9774384fb6114958a902
data/CHANGELOG.md ADDED
@@ -0,0 +1,98 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 1.17.0 (2021-05-18)
5
+ ------------------
6
+
7
+ * Feature - This release enables compute optimizer to support exporting recommendations to Amazon S3 for EBS volumes and Lambda Functions.
8
+
9
+ 1.16.0 (2021-03-10)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.15.0 (2021-03-02)
15
+ ------------------
16
+
17
+ * Feature - Documentation updates for Compute Optimizer
18
+
19
+ 1.14.0 (2021-02-24)
20
+ ------------------
21
+
22
+ * Feature - Documentation updates for Compute Optimizer
23
+
24
+ 1.13.0 (2021-02-03)
25
+ ------------------
26
+
27
+ * Feature - Documentation updates for Compute Optimizer
28
+
29
+ 1.12.0 (2021-02-02)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.11.0 (2020-12-23)
35
+ ------------------
36
+
37
+ * Feature - This release enables AWS Compute Optimizer to analyze and generate optimization recommendations for lambda functions.
38
+
39
+ 1.10.0 (2020-12-03)
40
+ ------------------
41
+
42
+ * Feature - This release enables AWS Compute Optimizer to analyze and generate optimization recommendations for EBS volumes that are attached to instances.
43
+
44
+ 1.9.0 (2020-10-07)
45
+ ------------------
46
+
47
+ * Feature - This release enables AWS Compute Optimizer to analyze EC2 instance-level EBS read and write operations, and throughput when generating recommendations for your EC2 instances and Auto Scaling groups.
48
+
49
+ 1.8.0 (2020-09-30)
50
+ ------------------
51
+
52
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
53
+
54
+ 1.7.0 (2020-09-15)
55
+ ------------------
56
+
57
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
58
+
59
+ 1.6.0 (2020-08-25)
60
+ ------------------
61
+
62
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
63
+
64
+ 1.5.0 (2020-06-23)
65
+ ------------------
66
+
67
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
68
+
69
+ 1.4.1 (2020-06-11)
70
+ ------------------
71
+
72
+ * Issue - Republish previous version with correct dependency on `aws-sdk-core`.
73
+
74
+ 1.4.0 (2020-06-10)
75
+ ------------------
76
+
77
+ * Issue - This version has been yanked. (#2327).
78
+ * Feature - Compute Optimizer supports exporting recommendations to Amazon S3.
79
+
80
+ 1.3.0 (2020-05-28)
81
+ ------------------
82
+
83
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
84
+
85
+ 1.2.0 (2020-05-07)
86
+ ------------------
87
+
88
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
89
+
90
+ 1.1.0 (2020-03-09)
91
+ ------------------
92
+
93
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
94
+
95
+ 1.0.0 (2019-12-03)
96
+ ------------------
97
+
98
+ * Feature - Initial release of `aws-sdk-computeoptimizer`.
data/LICENSE.txt ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.17.0
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-computeoptimizer/customizations'
48
48
  # @!group service
49
49
  module Aws::ComputeOptimizer
50
50
 
51
- GEM_VERSION = '1.12.0'
51
+ GEM_VERSION = '1.17.0'
52
52
 
53
53
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -393,7 +393,7 @@ module Aws::ComputeOptimizer
393
393
  # resp.recommendation_export_jobs[0].destination.s3.bucket #=> String
394
394
  # resp.recommendation_export_jobs[0].destination.s3.key #=> String
395
395
  # resp.recommendation_export_jobs[0].destination.s3.metadata_key #=> String
396
- # resp.recommendation_export_jobs[0].resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup"
396
+ # resp.recommendation_export_jobs[0].resource_type #=> String, one of "Ec2Instance", "AutoScalingGroup", "EbsVolume", "LambdaFunction"
397
397
  # resp.recommendation_export_jobs[0].status #=> String, one of "Queued", "InProgress", "Complete", "Failed"
398
398
  # resp.recommendation_export_jobs[0].creation_timestamp #=> Time
399
399
  # resp.recommendation_export_jobs[0].last_updated_timestamp #=> Time
@@ -429,7 +429,7 @@ module Aws::ComputeOptimizer
429
429
  # recommendations.
430
430
  #
431
431
  # If your account is the management account of an organization, use this
432
- # parameter to specify the member accounts for which you want to export
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
@@ -481,7 +481,11 @@ module Aws::ComputeOptimizer
481
481
  # member accounts of the organization if your account is the management
482
482
  # account of an organization.
483
483
  #
484
- # The member accounts must also be opted in to Compute Optimizer.
484
+ # The member accounts must also be opted in to Compute Optimizer, and
485
+ # trusted access for Compute Optimizer must be enabled in the
486
+ # organization account. For more information, see [Compute Optimizer and
487
+ # AWS Organizations trusted access][1] in the *AWS Compute Optimizer
488
+ # User Guide*.
485
489
  #
486
490
  # Recommendations for member accounts of the organization are not
487
491
  # included in the export file if this parameter is omitted.
@@ -492,6 +496,10 @@ module Aws::ComputeOptimizer
492
496
  # Recommendations for member accounts are not included in the export if
493
497
  # this parameter, or the account IDs parameter, is omitted.
494
498
  #
499
+ #
500
+ #
501
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html#trusted-service-access
502
+ #
495
503
  # @return [Types::ExportAutoScalingGroupRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
496
504
  #
497
505
  # * {Types::ExportAutoScalingGroupRecommendationsResponse#job_id #job_id} => String
@@ -532,6 +540,137 @@ module Aws::ComputeOptimizer
532
540
  req.send_request(options)
533
541
  end
534
542
 
543
+ # Exports optimization recommendations for Amazon EBS volumes.
544
+ #
545
+ # Recommendations are exported in a comma-separated values (.csv) file,
546
+ # and its metadata in a JavaScript Object Notation (.json) file, to an
547
+ # existing Amazon Simple Storage Service (Amazon S3) bucket that you
548
+ # specify. For more information, see [Exporting Recommendations][1] in
549
+ # the *Compute Optimizer User Guide*.
550
+ #
551
+ # You can have only one Amazon EBS volume export job in progress per AWS
552
+ # Region.
553
+ #
554
+ #
555
+ #
556
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html
557
+ #
558
+ # @option params [Array<String>] :account_ids
559
+ # The IDs of the AWS accounts for which to export Amazon EBS volume
560
+ # recommendations.
561
+ #
562
+ # If your account is the management account of an organization, use this
563
+ # parameter to specify the member account for which you want to export
564
+ # recommendations.
565
+ #
566
+ # This parameter cannot be specified together with the include member
567
+ # accounts parameter. The parameters are mutually exclusive.
568
+ #
569
+ # Recommendations for member accounts are not included in the export if
570
+ # this parameter, or the include member accounts parameter, is omitted.
571
+ #
572
+ # You can specify multiple account IDs per request.
573
+ #
574
+ # @option params [Array<Types::EBSFilter>] :filters
575
+ # An array of objects that describe a filter to export a more specific
576
+ # set of Amazon EBS volume recommendations.
577
+ #
578
+ # @option params [Array<String>] :fields_to_export
579
+ # The recommendations data to include in the export file. For more
580
+ # information about the fields that can be exported, see [Exported
581
+ # files][1] in the *Compute Optimizer User Guide*.
582
+ #
583
+ #
584
+ #
585
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html#exported-files
586
+ #
587
+ # @option params [required, Types::S3DestinationConfig] :s3_destination_config
588
+ # Describes the destination Amazon Simple Storage Service (Amazon S3)
589
+ # bucket name and key prefix for a recommendations export job.
590
+ #
591
+ # You must create the destination Amazon S3 bucket for your
592
+ # recommendations export before you create the export job. Compute
593
+ # Optimizer does not create the S3 bucket for you. After you create the
594
+ # S3 bucket, ensure that it has the required permission policy to allow
595
+ # Compute Optimizer to write the export file to it. If you plan to
596
+ # specify an object prefix when you create the export job, you must
597
+ # include the object prefix in the policy that you add to the S3 bucket.
598
+ # For more information, see [Amazon S3 Bucket Policy for Compute
599
+ # Optimizer][1] in the *Compute Optimizer user guide*.
600
+ #
601
+ #
602
+ #
603
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/create-s3-bucket-policy-for-compute-optimizer.html
604
+ #
605
+ # @option params [String] :file_format
606
+ # The format of the export file.
607
+ #
608
+ # The only export file format currently supported is `Csv`.
609
+ #
610
+ # @option params [Boolean] :include_member_accounts
611
+ # Indicates whether to include recommendations for resources in all
612
+ # member accounts of the organization if your account is the management
613
+ # account of an organization.
614
+ #
615
+ # The member accounts must also be opted in to Compute Optimizer, and
616
+ # trusted access for Compute Optimizer must be enabled in the
617
+ # organization account. For more information, see [Compute Optimizer and
618
+ # AWS Organizations trusted access][1] in the *AWS Compute Optimizer
619
+ # User Guide*.
620
+ #
621
+ # Recommendations for member accounts of the organization are not
622
+ # included in the export file if this parameter is omitted.
623
+ #
624
+ # This parameter cannot be specified together with the account IDs
625
+ # parameter. The parameters are mutually exclusive.
626
+ #
627
+ # Recommendations for member accounts are not included in the export if
628
+ # this parameter, or the account IDs parameter, is omitted.
629
+ #
630
+ #
631
+ #
632
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html#trusted-service-access
633
+ #
634
+ # @return [Types::ExportEBSVolumeRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
635
+ #
636
+ # * {Types::ExportEBSVolumeRecommendationsResponse#job_id #job_id} => String
637
+ # * {Types::ExportEBSVolumeRecommendationsResponse#s3_destination #s3_destination} => Types::S3Destination
638
+ #
639
+ # @example Request syntax with placeholder values
640
+ #
641
+ # resp = client.export_ebs_volume_recommendations({
642
+ # account_ids: ["AccountId"],
643
+ # filters: [
644
+ # {
645
+ # name: "Finding", # accepts Finding
646
+ # values: ["FilterValue"],
647
+ # },
648
+ # ],
649
+ # fields_to_export: ["AccountId"], # accepts AccountId, VolumeArn, Finding, UtilizationMetricsVolumeReadOpsPerSecondMaximum, UtilizationMetricsVolumeWriteOpsPerSecondMaximum, UtilizationMetricsVolumeReadBytesPerSecondMaximum, UtilizationMetricsVolumeWriteBytesPerSecondMaximum, LookbackPeriodInDays, CurrentConfigurationVolumeType, CurrentConfigurationVolumeBaselineIOPS, CurrentConfigurationVolumeBaselineThroughput, CurrentConfigurationVolumeBurstIOPS, CurrentConfigurationVolumeBurstThroughput, CurrentConfigurationVolumeSize, CurrentMonthlyPrice, RecommendationOptionsConfigurationVolumeType, RecommendationOptionsConfigurationVolumeBaselineIOPS, RecommendationOptionsConfigurationVolumeBaselineThroughput, RecommendationOptionsConfigurationVolumeBurstIOPS, RecommendationOptionsConfigurationVolumeBurstThroughput, RecommendationOptionsConfigurationVolumeSize, RecommendationOptionsMonthlyPrice, RecommendationOptionsPerformanceRisk, LastRefreshTimestamp
650
+ # s3_destination_config: { # required
651
+ # bucket: "DestinationBucket",
652
+ # key_prefix: "DestinationKeyPrefix",
653
+ # },
654
+ # file_format: "Csv", # accepts Csv
655
+ # include_member_accounts: false,
656
+ # })
657
+ #
658
+ # @example Response structure
659
+ #
660
+ # resp.job_id #=> String
661
+ # resp.s3_destination.bucket #=> String
662
+ # resp.s3_destination.key #=> String
663
+ # resp.s3_destination.metadata_key #=> String
664
+ #
665
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/ExportEBSVolumeRecommendations AWS API Documentation
666
+ #
667
+ # @overload export_ebs_volume_recommendations(params = {})
668
+ # @param [Hash] params ({})
669
+ def export_ebs_volume_recommendations(params = {}, options = {})
670
+ req = build_request(:export_ebs_volume_recommendations, params)
671
+ req.send_request(options)
672
+ end
673
+
535
674
  # Exports optimization recommendations for Amazon EC2 instances.
536
675
  #
537
676
  # Recommendations are exported in a comma-separated values (.csv) file,
@@ -552,7 +691,7 @@ module Aws::ComputeOptimizer
552
691
  # recommendations.
553
692
  #
554
693
  # If your account is the management account of an organization, use this
555
- # parameter to specify the member accounts for which you want to export
694
+ # parameter to specify the member account for which you want to export
556
695
  # recommendations.
557
696
  #
558
697
  # This parameter cannot be specified together with the include member
@@ -604,7 +743,11 @@ module Aws::ComputeOptimizer
604
743
  # member accounts of the organization if your account is the management
605
744
  # account of an organization.
606
745
  #
607
- # The member accounts must also be opted in to Compute Optimizer.
746
+ # The member accounts must also be opted in to Compute Optimizer, and
747
+ # trusted access for Compute Optimizer must be enabled in the
748
+ # organization account. For more information, see [Compute Optimizer and
749
+ # AWS Organizations trusted access][1] in the *AWS Compute Optimizer
750
+ # User Guide*.
608
751
  #
609
752
  # Recommendations for member accounts of the organization are not
610
753
  # included in the export file if this parameter is omitted.
@@ -612,6 +755,10 @@ module Aws::ComputeOptimizer
612
755
  # Recommendations for member accounts are not included in the export if
613
756
  # this parameter, or the account IDs parameter, is omitted.
614
757
  #
758
+ #
759
+ #
760
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html#trusted-service-access
761
+ #
615
762
  # @return [Types::ExportEC2InstanceRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
616
763
  #
617
764
  # * {Types::ExportEC2InstanceRecommendationsResponse#job_id #job_id} => String
@@ -652,6 +799,137 @@ module Aws::ComputeOptimizer
652
799
  req.send_request(options)
653
800
  end
654
801
 
802
+ # Exports optimization recommendations for AWS Lambda functions.
803
+ #
804
+ # Recommendations are exported in a comma-separated values (.csv) file,
805
+ # and its metadata in a JavaScript Object Notation (.json) file, to an
806
+ # existing Amazon Simple Storage Service (Amazon S3) bucket that you
807
+ # specify. For more information, see [Exporting Recommendations][1] in
808
+ # the *Compute Optimizer User Guide*.
809
+ #
810
+ # You can have only one Lambda function export job in progress per AWS
811
+ # Region.
812
+ #
813
+ #
814
+ #
815
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html
816
+ #
817
+ # @option params [Array<String>] :account_ids
818
+ # The IDs of the AWS accounts for which to export Lambda function
819
+ # recommendations.
820
+ #
821
+ # If your account is the management account of an organization, use this
822
+ # parameter to specify the member account for which you want to export
823
+ # recommendations.
824
+ #
825
+ # This parameter cannot be specified together with the include member
826
+ # accounts parameter. The parameters are mutually exclusive.
827
+ #
828
+ # Recommendations for member accounts are not included in the export if
829
+ # this parameter, or the include member accounts parameter, is omitted.
830
+ #
831
+ # You can specify multiple account IDs per request.
832
+ #
833
+ # @option params [Array<Types::LambdaFunctionRecommendationFilter>] :filters
834
+ # An array of objects that describe a filter to export a more specific
835
+ # set of Lambda function recommendations.
836
+ #
837
+ # @option params [Array<String>] :fields_to_export
838
+ # The recommendations data to include in the export file. For more
839
+ # information about the fields that can be exported, see [Exported
840
+ # files][1] in the *Compute Optimizer User Guide*.
841
+ #
842
+ #
843
+ #
844
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html#exported-files
845
+ #
846
+ # @option params [required, Types::S3DestinationConfig] :s3_destination_config
847
+ # Describes the destination Amazon Simple Storage Service (Amazon S3)
848
+ # bucket name and key prefix for a recommendations export job.
849
+ #
850
+ # You must create the destination Amazon S3 bucket for your
851
+ # recommendations export before you create the export job. Compute
852
+ # Optimizer does not create the S3 bucket for you. After you create the
853
+ # S3 bucket, ensure that it has the required permission policy to allow
854
+ # Compute Optimizer to write the export file to it. If you plan to
855
+ # specify an object prefix when you create the export job, you must
856
+ # include the object prefix in the policy that you add to the S3 bucket.
857
+ # For more information, see [Amazon S3 Bucket Policy for Compute
858
+ # Optimizer][1] in the *Compute Optimizer user guide*.
859
+ #
860
+ #
861
+ #
862
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/create-s3-bucket-policy-for-compute-optimizer.html
863
+ #
864
+ # @option params [String] :file_format
865
+ # The format of the export file.
866
+ #
867
+ # The only export file format currently supported is `Csv`.
868
+ #
869
+ # @option params [Boolean] :include_member_accounts
870
+ # Indicates whether to include recommendations for resources in all
871
+ # member accounts of the organization if your account is the management
872
+ # account of an organization.
873
+ #
874
+ # The member accounts must also be opted in to Compute Optimizer, and
875
+ # trusted access for Compute Optimizer must be enabled in the
876
+ # organization account. For more information, see [Compute Optimizer and
877
+ # AWS Organizations trusted access][1] in the *AWS Compute Optimizer
878
+ # User Guide*.
879
+ #
880
+ # Recommendations for member accounts of the organization are not
881
+ # included in the export file if this parameter is omitted.
882
+ #
883
+ # This parameter cannot be specified together with the account IDs
884
+ # parameter. The parameters are mutually exclusive.
885
+ #
886
+ # Recommendations for member accounts are not included in the export if
887
+ # this parameter, or the account IDs parameter, is omitted.
888
+ #
889
+ #
890
+ #
891
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html#trusted-service-access
892
+ #
893
+ # @return [Types::ExportLambdaFunctionRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
894
+ #
895
+ # * {Types::ExportLambdaFunctionRecommendationsResponse#job_id #job_id} => String
896
+ # * {Types::ExportLambdaFunctionRecommendationsResponse#s3_destination #s3_destination} => Types::S3Destination
897
+ #
898
+ # @example Request syntax with placeholder values
899
+ #
900
+ # resp = client.export_lambda_function_recommendations({
901
+ # account_ids: ["AccountId"],
902
+ # filters: [
903
+ # {
904
+ # name: "Finding", # accepts Finding, FindingReasonCode
905
+ # values: ["FilterValue"],
906
+ # },
907
+ # ],
908
+ # fields_to_export: ["AccountId"], # accepts AccountId, FunctionArn, FunctionVersion, Finding, FindingReasonCodes, NumberOfInvocations, UtilizationMetricsDurationMaximum, UtilizationMetricsDurationAverage, UtilizationMetricsMemoryMaximum, UtilizationMetricsMemoryAverage, LookbackPeriodInDays, CurrentConfigurationMemorySize, CurrentConfigurationTimeout, CurrentCostTotal, CurrentCostAverage, RecommendationOptionsConfigurationMemorySize, RecommendationOptionsCostLow, RecommendationOptionsCostHigh, RecommendationOptionsProjectedUtilizationMetricsDurationLowerBound, RecommendationOptionsProjectedUtilizationMetricsDurationUpperBound, RecommendationOptionsProjectedUtilizationMetricsDurationExpected, LastRefreshTimestamp
909
+ # s3_destination_config: { # required
910
+ # bucket: "DestinationBucket",
911
+ # key_prefix: "DestinationKeyPrefix",
912
+ # },
913
+ # file_format: "Csv", # accepts Csv
914
+ # include_member_accounts: false,
915
+ # })
916
+ #
917
+ # @example Response structure
918
+ #
919
+ # resp.job_id #=> String
920
+ # resp.s3_destination.bucket #=> String
921
+ # resp.s3_destination.key #=> String
922
+ # resp.s3_destination.metadata_key #=> String
923
+ #
924
+ # @see http://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/ExportLambdaFunctionRecommendations AWS API Documentation
925
+ #
926
+ # @overload export_lambda_function_recommendations(params = {})
927
+ # @param [Hash] params ({})
928
+ def export_lambda_function_recommendations(params = {}, options = {})
929
+ req = build_request(:export_lambda_function_recommendations, params)
930
+ req.send_request(options)
931
+ end
932
+
655
933
  # Returns Auto Scaling group recommendations.
656
934
  #
657
935
  # AWS Compute Optimizer generates recommendations for Amazon EC2 Auto
@@ -664,11 +942,11 @@ module Aws::ComputeOptimizer
664
942
  # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/requirements.html
665
943
  #
666
944
  # @option params [Array<String>] :account_ids
667
- # The IDs of the AWS accounts for which to return Auto Scaling group
945
+ # The ID of the AWS account for which to return Auto Scaling group
668
946
  # recommendations.
669
947
  #
670
948
  # If your account is the management account of an organization, use this
671
- # parameter to specify the member accounts for which you want to return
949
+ # parameter to specify the member account for which you want to return
672
950
  # Auto Scaling group recommendations.
673
951
  #
674
952
  # Only one account ID can be specified per request.
@@ -787,11 +1065,10 @@ module Aws::ComputeOptimizer
787
1065
  # specific list of volume recommendations.
788
1066
  #
789
1067
  # @option params [Array<String>] :account_ids
790
- # The IDs of the AWS accounts for which to return volume
791
- # recommendations.
1068
+ # The ID of the AWS account for which to return volume recommendations.
792
1069
  #
793
1070
  # 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
1071
+ # parameter to specify the member account for which you want to return
795
1072
  # volume recommendations.
796
1073
  #
797
1074
  # Only one account ID can be specified per request.
@@ -889,11 +1166,11 @@ module Aws::ComputeOptimizer
889
1166
  # specific list of instance recommendations.
890
1167
  #
891
1168
  # @option params [Array<String>] :account_ids
892
- # The IDs of the AWS accounts for which to return instance
1169
+ # The ID of the AWS account for which to return instance
893
1170
  # recommendations.
894
1171
  #
895
1172
  # If your account is the management account of an organization, use this
896
- # parameter to specify the member accounts for which you want to return
1173
+ # parameter to specify the member account for which you want to return
897
1174
  # instance recommendations.
898
1175
  #
899
1176
  # Only one account ID can be specified per request.
@@ -1081,11 +1358,11 @@ module Aws::ComputeOptimizer
1081
1358
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html#versioning-versions-using
1082
1359
  #
1083
1360
  # @option params [Array<String>] :account_ids
1084
- # The IDs of the AWS accounts for which to return function
1361
+ # The ID of the AWS account for which to return function
1085
1362
  # recommendations.
1086
1363
  #
1087
1364
  # 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
1365
+ # parameter to specify the member account for which you want to return
1089
1366
  # function recommendations.
1090
1367
  #
1091
1368
  # Only one account ID can be specified per request.
@@ -1161,17 +1438,26 @@ module Aws::ComputeOptimizer
1161
1438
 
1162
1439
  # Returns the optimization findings for an account.
1163
1440
  #
1164
- # For example, it returns the number of Amazon EC2 instances in an
1165
- # account that are under-provisioned, over-provisioned, or optimized. It
1166
- # also returns the number of Auto Scaling groups in an account that are
1167
- # not optimized, or optimized.
1441
+ # It returns the number of:
1442
+ #
1443
+ # * Amazon EC2 instances in an account that are `Underprovisioned`,
1444
+ # `Overprovisioned`, or `Optimized`.
1445
+ #
1446
+ # * Auto Scaling groups in an account that are `NotOptimized`, or
1447
+ # `Optimized`.
1448
+ #
1449
+ # * Amazon EBS volumes in an account that are `NotOptimized`, or
1450
+ # `Optimized`.
1451
+ #
1452
+ # * Lambda functions in an account that are `NotOptimized`, or
1453
+ # `Optimized`.
1168
1454
  #
1169
1455
  # @option params [Array<String>] :account_ids
1170
- # The IDs of the AWS accounts for which to return recommendation
1456
+ # The ID of the AWS account for which to return recommendation
1171
1457
  # summaries.
1172
1458
  #
1173
1459
  # If your account is the management account of an organization, use this
1174
- # parameter to specify the member accounts for which you want to return
1460
+ # parameter to specify the member account for which you want to return
1175
1461
  # recommendation summaries.
1176
1462
  #
1177
1463
  # Only one account ID can be specified per request.
@@ -1221,21 +1507,55 @@ module Aws::ComputeOptimizer
1221
1507
  req.send_request(options)
1222
1508
  end
1223
1509
 
1224
- # Updates the enrollment (opt in) status of an account to the AWS
1225
- # Compute Optimizer service.
1510
+ # Updates the enrollment (opt in and opt out) status of an account to
1511
+ # the AWS Compute Optimizer service.
1226
1512
  #
1227
1513
  # If the account is a management account of an organization, this action
1228
1514
  # can also be used to enroll member accounts within the organization.
1229
1515
  #
1516
+ # You must have the appropriate permissions to opt in to Compute
1517
+ # Optimizer, to view its recommendations, and to opt out. For more
1518
+ # information, see [Controlling access with AWS Identity and Access
1519
+ # Management][1] in the *AWS Compute Optimizer User Guide*.
1520
+ #
1521
+ # When you opt in, Compute Optimizer automatically creates a
1522
+ # Service-Linked Role in your account to access its data. For more
1523
+ # information, see [Using Service-Linked Roles for AWS Compute
1524
+ # Optimizer][2] in the *AWS Compute Optimizer User Guide*.
1525
+ #
1526
+ #
1527
+ #
1528
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/security-iam.html
1529
+ # [2]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/using-service-linked-roles.html
1530
+ #
1230
1531
  # @option params [required, String] :status
1231
1532
  # The new enrollment status of the account.
1232
1533
  #
1233
- # Accepted options are `Active` or `Inactive`. You will get an error if
1234
- # `Pending` or `Failed` are specified.
1534
+ # The following status options are available:
1535
+ #
1536
+ # * `Active` - Opts in your account to the Compute Optimizer service.
1537
+ # Compute Optimizer begins analyzing the configuration and utilization
1538
+ # metrics of your AWS resources after you opt in. For more
1539
+ # information, see [Metrics analyzed by AWS Compute Optimizer][1] in
1540
+ # the *AWS Compute Optimizer User Guide*.
1541
+ #
1542
+ # * `Inactive` - Opts out your account from the Compute Optimizer
1543
+ # service. Your account's recommendations and related metrics data
1544
+ # will be deleted from Compute Optimizer after you opt out.
1545
+ #
1546
+ # <note markdown="1"> The `Pending` and `Failed` options cannot be used to update the
1547
+ # enrollment status of an account. They are returned in the response of
1548
+ # a request to update the enrollment status of an account.
1549
+ #
1550
+ # </note>
1551
+ #
1552
+ #
1553
+ #
1554
+ # [1]: https://docs.aws.amazon.com/compute-optimizer/latest/ug/metrics.html
1235
1555
  #
1236
1556
  # @option params [Boolean] :include_member_accounts
1237
1557
  # Indicates whether to enroll member accounts of the organization if the
1238
- # your account is the management account of an organization.
1558
+ # account is the management account of an organization.
1239
1559
  #
1240
1560
  # @return [Types::UpdateEnrollmentStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1241
1561
  #
@@ -1276,7 +1596,7 @@ module Aws::ComputeOptimizer
1276
1596
  params: params,
1277
1597
  config: config)
1278
1598
  context[:gem_name] = 'aws-sdk-computeoptimizer'
1279
- context[:gem_version] = '1.12.0'
1599
+ context[:gem_version] = '1.17.0'
1280
1600
  Seahorse::Client::Request.new(handlers, context)
1281
1601
  end
1282
1602