aws-sdk-codegurureviewer 1.15.0 → 1.19.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 +108 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-codegurureviewer.rb +3 -2
- data/lib/aws-sdk-codegurureviewer/client.rb +256 -21
- data/lib/aws-sdk-codegurureviewer/client_api.rb +72 -2
- data/lib/aws-sdk-codegurureviewer/errors.rb +1 -1
- data/lib/aws-sdk-codegurureviewer/resource.rb +1 -1
- data/lib/aws-sdk-codegurureviewer/types.rb +597 -32
- data/lib/aws-sdk-codegurureviewer/waiters.rb +167 -0
- metadata +12 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2759608b1a0e7906fe3fe4c0c0aba2f6bd67cdb0364ac68c2bea1447154efc5e
|
|
4
|
+
data.tar.gz: 852fb734c1b90b9e4fa2653c48385a57e23c95fdd01ee209a50684408b6ddf23
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: edd8d2dbb630f30ecc371e0b90892b780dfb404fdf38c51be09adb88a8cf67216ef3aac075573f28e8a6da597bf97b2f00c8555dd1abdce4e1f1caa7386c4ca3
|
|
7
|
+
data.tar.gz: 73e1e09df2c9bb58dd819fa4afcf78e48b6039a4e251b42c0fb4f4380bf3685ccd2d7415a66d7ce945114fd0d64056b5992be7a1b2e1c318f47bdcc47634a6d8
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
Unreleased Changes
|
|
2
|
+
------------------
|
|
3
|
+
|
|
4
|
+
1.19.0 (2021-07-28)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
8
|
+
|
|
9
|
+
1.18.0 (2021-06-23)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Adds support for S3 based full repository analysis and changed lines scan.
|
|
13
|
+
|
|
14
|
+
1.17.0 (2021-04-26)
|
|
15
|
+
------------------
|
|
16
|
+
|
|
17
|
+
* Feature - Include KMS Key Details in Repository Association APIs to enable usage of customer managed KMS Keys.
|
|
18
|
+
|
|
19
|
+
1.16.0 (2021-03-10)
|
|
20
|
+
------------------
|
|
21
|
+
|
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
23
|
+
|
|
24
|
+
1.15.0 (2021-02-02)
|
|
25
|
+
------------------
|
|
26
|
+
|
|
27
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
28
|
+
|
|
29
|
+
1.14.0 (2020-11-20)
|
|
30
|
+
------------------
|
|
31
|
+
|
|
32
|
+
* Feature - This release supports tagging repository association resources in Amazon CodeGuru Reviewer.
|
|
33
|
+
|
|
34
|
+
1.13.0 (2020-09-30)
|
|
35
|
+
------------------
|
|
36
|
+
|
|
37
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
38
|
+
|
|
39
|
+
1.12.0 (2020-09-15)
|
|
40
|
+
------------------
|
|
41
|
+
|
|
42
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
43
|
+
|
|
44
|
+
1.11.0 (2020-09-01)
|
|
45
|
+
------------------
|
|
46
|
+
|
|
47
|
+
* Feature - Add support for repository analysis based code reviews
|
|
48
|
+
|
|
49
|
+
1.10.0 (2020-08-25)
|
|
50
|
+
------------------
|
|
51
|
+
|
|
52
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
53
|
+
|
|
54
|
+
1.9.0 (2020-06-30)
|
|
55
|
+
------------------
|
|
56
|
+
|
|
57
|
+
* Feature - Release GitHub Enterprise Server source provider integration
|
|
58
|
+
|
|
59
|
+
1.8.0 (2020-06-23)
|
|
60
|
+
------------------
|
|
61
|
+
|
|
62
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
63
|
+
|
|
64
|
+
1.7.1 (2020-06-11)
|
|
65
|
+
------------------
|
|
66
|
+
|
|
67
|
+
* Issue - Republish previous version with correct dependency on `aws-sdk-core`.
|
|
68
|
+
|
|
69
|
+
1.7.0 (2020-06-10)
|
|
70
|
+
------------------
|
|
71
|
+
|
|
72
|
+
* Issue - This version has been yanked. (#2327).
|
|
73
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
74
|
+
|
|
75
|
+
1.6.0 (2020-05-28)
|
|
76
|
+
------------------
|
|
77
|
+
|
|
78
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
79
|
+
|
|
80
|
+
1.5.0 (2020-05-11)
|
|
81
|
+
------------------
|
|
82
|
+
|
|
83
|
+
* Feature - Add Bitbucket integration APIs
|
|
84
|
+
|
|
85
|
+
1.4.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.3.0 (2020-04-22)
|
|
91
|
+
------------------
|
|
92
|
+
|
|
93
|
+
* Feature - Add support for code review and recommendation feedback APIs.
|
|
94
|
+
|
|
95
|
+
1.2.0 (2020-04-07)
|
|
96
|
+
------------------
|
|
97
|
+
|
|
98
|
+
* Feature - API updates for CodeGuruReviewer
|
|
99
|
+
|
|
100
|
+
1.1.0 (2020-03-09)
|
|
101
|
+
------------------
|
|
102
|
+
|
|
103
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
104
|
+
|
|
105
|
+
1.0.0 (2019-12-03)
|
|
106
|
+
------------------
|
|
107
|
+
|
|
108
|
+
* Feature - Initial release of `aws-sdk-codegurureviewer`.
|
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.19.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/
|
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
|
7
7
|
#
|
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
|
9
9
|
|
|
@@ -15,6 +15,7 @@ require_relative 'aws-sdk-codegurureviewer/types'
|
|
|
15
15
|
require_relative 'aws-sdk-codegurureviewer/client_api'
|
|
16
16
|
require_relative 'aws-sdk-codegurureviewer/client'
|
|
17
17
|
require_relative 'aws-sdk-codegurureviewer/errors'
|
|
18
|
+
require_relative 'aws-sdk-codegurureviewer/waiters'
|
|
18
19
|
require_relative 'aws-sdk-codegurureviewer/resource'
|
|
19
20
|
require_relative 'aws-sdk-codegurureviewer/customizations'
|
|
20
21
|
|
|
@@ -48,6 +49,6 @@ require_relative 'aws-sdk-codegurureviewer/customizations'
|
|
|
48
49
|
# @!group service
|
|
49
50
|
module Aws::CodeGuruReviewer
|
|
50
51
|
|
|
51
|
-
GEM_VERSION = '1.
|
|
52
|
+
GEM_VERSION = '1.19.0'
|
|
52
53
|
|
|
53
54
|
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/
|
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
|
7
7
|
#
|
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
|
9
9
|
|
|
@@ -335,14 +335,14 @@ module Aws::CodeGuruReviewer
|
|
|
335
335
|
# Reviewer console. For more information, see [Recommendations in Amazon
|
|
336
336
|
# CodeGuru Reviewer][1] in the *Amazon CodeGuru Reviewer User Guide.*
|
|
337
337
|
#
|
|
338
|
-
# If you associate a CodeCommit repository, it must be in the same
|
|
339
|
-
# Region and AWS account where its CodeGuru Reviewer code reviews
|
|
340
|
-
# configured.
|
|
338
|
+
# If you associate a CodeCommit or S3 repository, it must be in the same
|
|
339
|
+
# AWS Region and AWS account where its CodeGuru Reviewer code reviews
|
|
340
|
+
# are configured.
|
|
341
341
|
#
|
|
342
342
|
# Bitbucket and GitHub Enterprise Server repositories are managed by AWS
|
|
343
343
|
# CodeStar Connections to connect to CodeGuru Reviewer. For more
|
|
344
|
-
# information, see [
|
|
345
|
-
#
|
|
344
|
+
# information, see [Associate a repository][2] in the *Amazon CodeGuru
|
|
345
|
+
# Reviewer User Guide.*
|
|
346
346
|
#
|
|
347
347
|
# <note markdown="1"> You cannot use the CodeGuru Reviewer SDK or the AWS CLI to associate a
|
|
348
348
|
# GitHub repository with Amazon CodeGuru Reviewer. To associate a GitHub
|
|
@@ -355,7 +355,7 @@ module Aws::CodeGuruReviewer
|
|
|
355
355
|
#
|
|
356
356
|
#
|
|
357
357
|
# [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/recommendations.html
|
|
358
|
-
# [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/
|
|
358
|
+
# [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/getting-started-associate-repository.html
|
|
359
359
|
# [3]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/getting-started-with-guru.html
|
|
360
360
|
#
|
|
361
361
|
# @option params [required, Types::Repository] :repository
|
|
@@ -381,6 +381,16 @@ module Aws::CodeGuruReviewer
|
|
|
381
381
|
# value is the same as using an empty string. Like tag keys, tag
|
|
382
382
|
# values are case sensitive.
|
|
383
383
|
#
|
|
384
|
+
# @option params [Types::KMSKeyDetails] :kms_key_details
|
|
385
|
+
# A `KMSKeyDetails` object that contains:
|
|
386
|
+
#
|
|
387
|
+
# * The encryption option for this repository association. It is either
|
|
388
|
+
# owned by AWS Key Management Service (KMS) (`AWS_OWNED_CMK`) or
|
|
389
|
+
# customer managed (`CUSTOMER_MANAGED_CMK`).
|
|
390
|
+
#
|
|
391
|
+
# * The ID of the AWS KMS key that is associated with this respository
|
|
392
|
+
# association.
|
|
393
|
+
#
|
|
384
394
|
# @return [Types::AssociateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
385
395
|
#
|
|
386
396
|
# * {Types::AssociateRepositoryResponse#repository_association #repository_association} => Types::RepositoryAssociation
|
|
@@ -403,11 +413,19 @@ module Aws::CodeGuruReviewer
|
|
|
403
413
|
# connection_arn: "ConnectionArn", # required
|
|
404
414
|
# owner: "Owner", # required
|
|
405
415
|
# },
|
|
416
|
+
# s3_bucket: {
|
|
417
|
+
# name: "Name", # required
|
|
418
|
+
# bucket_name: "S3BucketName", # required
|
|
419
|
+
# },
|
|
406
420
|
# },
|
|
407
421
|
# client_request_token: "ClientRequestToken",
|
|
408
422
|
# tags: {
|
|
409
423
|
# "TagKey" => "TagValue",
|
|
410
424
|
# },
|
|
425
|
+
# kms_key_details: {
|
|
426
|
+
# kms_key_id: "KMSKeyId",
|
|
427
|
+
# encryption_option: "AWS_OWNED_CMK", # accepts AWS_OWNED_CMK, CUSTOMER_MANAGED_CMK
|
|
428
|
+
# },
|
|
411
429
|
# })
|
|
412
430
|
#
|
|
413
431
|
# @example Response structure
|
|
@@ -417,11 +435,16 @@ module Aws::CodeGuruReviewer
|
|
|
417
435
|
# resp.repository_association.connection_arn #=> String
|
|
418
436
|
# resp.repository_association.name #=> String
|
|
419
437
|
# resp.repository_association.owner #=> String
|
|
420
|
-
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
|
|
438
|
+
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer", "S3Bucket"
|
|
421
439
|
# resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
|
|
422
440
|
# resp.repository_association.state_reason #=> String
|
|
423
441
|
# resp.repository_association.last_updated_time_stamp #=> Time
|
|
424
442
|
# resp.repository_association.created_time_stamp #=> Time
|
|
443
|
+
# resp.repository_association.kms_key_details.kms_key_id #=> String
|
|
444
|
+
# resp.repository_association.kms_key_details.encryption_option #=> String, one of "AWS_OWNED_CMK", "CUSTOMER_MANAGED_CMK"
|
|
445
|
+
# resp.repository_association.s3_repository_details.bucket_name #=> String
|
|
446
|
+
# resp.repository_association.s3_repository_details.code_artifacts.source_code_artifacts_object_key #=> String
|
|
447
|
+
# resp.repository_association.s3_repository_details.code_artifacts.build_artifacts_object_key #=> String
|
|
425
448
|
# resp.tags #=> Hash
|
|
426
449
|
# resp.tags["TagKey"] #=> String
|
|
427
450
|
#
|
|
@@ -437,8 +460,7 @@ module Aws::CodeGuruReviewer
|
|
|
437
460
|
# Use to create a code review with a [ `CodeReviewType` ][1] of
|
|
438
461
|
# `RepositoryAnalysis`. This type of code review analyzes all code under
|
|
439
462
|
# a specified branch in an associated repository. `PullRequest` code
|
|
440
|
-
# reviews are automatically triggered by a pull request
|
|
441
|
-
# created using this method.
|
|
463
|
+
# reviews are automatically triggered by a pull request.
|
|
442
464
|
#
|
|
443
465
|
#
|
|
444
466
|
#
|
|
@@ -488,10 +510,44 @@ module Aws::CodeGuruReviewer
|
|
|
488
510
|
# repository_association_arn: "AssociationArn", # required
|
|
489
511
|
# type: { # required
|
|
490
512
|
# repository_analysis: { # required
|
|
491
|
-
# repository_head: {
|
|
513
|
+
# repository_head: {
|
|
492
514
|
# branch_name: "BranchName", # required
|
|
493
515
|
# },
|
|
516
|
+
# source_code_type: {
|
|
517
|
+
# commit_diff: {
|
|
518
|
+
# source_commit: "CommitId",
|
|
519
|
+
# destination_commit: "CommitId",
|
|
520
|
+
# merge_base_commit: "CommitId",
|
|
521
|
+
# },
|
|
522
|
+
# repository_head: {
|
|
523
|
+
# branch_name: "BranchName", # required
|
|
524
|
+
# },
|
|
525
|
+
# branch_diff: {
|
|
526
|
+
# source_branch_name: "BranchName", # required
|
|
527
|
+
# destination_branch_name: "BranchName", # required
|
|
528
|
+
# },
|
|
529
|
+
# s3_bucket_repository: {
|
|
530
|
+
# name: "Name", # required
|
|
531
|
+
# details: {
|
|
532
|
+
# bucket_name: "S3BucketName",
|
|
533
|
+
# code_artifacts: {
|
|
534
|
+
# source_code_artifacts_object_key: "SourceCodeArtifactsObjectKey", # required
|
|
535
|
+
# build_artifacts_object_key: "BuildArtifactsObjectKey",
|
|
536
|
+
# },
|
|
537
|
+
# },
|
|
538
|
+
# },
|
|
539
|
+
# request_metadata: {
|
|
540
|
+
# request_id: "RequestId",
|
|
541
|
+
# requester: "Requester",
|
|
542
|
+
# event_info: {
|
|
543
|
+
# name: "EventName",
|
|
544
|
+
# state: "EventState",
|
|
545
|
+
# },
|
|
546
|
+
# vendor_name: "GitHub", # accepts GitHub, GitLab, NativeS3
|
|
547
|
+
# },
|
|
548
|
+
# },
|
|
494
549
|
# },
|
|
550
|
+
# analysis_types: ["Security"], # accepts Security, CodeQuality
|
|
495
551
|
# },
|
|
496
552
|
# client_request_token: "ClientRequestToken",
|
|
497
553
|
# })
|
|
@@ -502,7 +558,7 @@ module Aws::CodeGuruReviewer
|
|
|
502
558
|
# resp.code_review.code_review_arn #=> String
|
|
503
559
|
# resp.code_review.repository_name #=> String
|
|
504
560
|
# resp.code_review.owner #=> String
|
|
505
|
-
# resp.code_review.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
|
|
561
|
+
# resp.code_review.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer", "S3Bucket"
|
|
506
562
|
# resp.code_review.state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
|
|
507
563
|
# resp.code_review.state_reason #=> String
|
|
508
564
|
# resp.code_review.created_time_stamp #=> Time
|
|
@@ -511,10 +567,24 @@ module Aws::CodeGuruReviewer
|
|
|
511
567
|
# resp.code_review.pull_request_id #=> String
|
|
512
568
|
# resp.code_review.source_code_type.commit_diff.source_commit #=> String
|
|
513
569
|
# resp.code_review.source_code_type.commit_diff.destination_commit #=> String
|
|
570
|
+
# resp.code_review.source_code_type.commit_diff.merge_base_commit #=> String
|
|
514
571
|
# resp.code_review.source_code_type.repository_head.branch_name #=> String
|
|
572
|
+
# resp.code_review.source_code_type.branch_diff.source_branch_name #=> String
|
|
573
|
+
# resp.code_review.source_code_type.branch_diff.destination_branch_name #=> String
|
|
574
|
+
# resp.code_review.source_code_type.s3_bucket_repository.name #=> String
|
|
575
|
+
# resp.code_review.source_code_type.s3_bucket_repository.details.bucket_name #=> String
|
|
576
|
+
# resp.code_review.source_code_type.s3_bucket_repository.details.code_artifacts.source_code_artifacts_object_key #=> String
|
|
577
|
+
# resp.code_review.source_code_type.s3_bucket_repository.details.code_artifacts.build_artifacts_object_key #=> String
|
|
578
|
+
# resp.code_review.source_code_type.request_metadata.request_id #=> String
|
|
579
|
+
# resp.code_review.source_code_type.request_metadata.requester #=> String
|
|
580
|
+
# resp.code_review.source_code_type.request_metadata.event_info.name #=> String
|
|
581
|
+
# resp.code_review.source_code_type.request_metadata.event_info.state #=> String
|
|
582
|
+
# resp.code_review.source_code_type.request_metadata.vendor_name #=> String, one of "GitHub", "GitLab", "NativeS3"
|
|
515
583
|
# resp.code_review.association_arn #=> String
|
|
516
584
|
# resp.code_review.metrics.metered_lines_of_code_count #=> Integer
|
|
517
585
|
# resp.code_review.metrics.findings_count #=> Integer
|
|
586
|
+
# resp.code_review.analysis_types #=> Array
|
|
587
|
+
# resp.code_review.analysis_types[0] #=> String, one of "Security", "CodeQuality"
|
|
518
588
|
#
|
|
519
589
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CreateCodeReview AWS API Documentation
|
|
520
590
|
#
|
|
@@ -551,7 +621,7 @@ module Aws::CodeGuruReviewer
|
|
|
551
621
|
# resp.code_review.code_review_arn #=> String
|
|
552
622
|
# resp.code_review.repository_name #=> String
|
|
553
623
|
# resp.code_review.owner #=> String
|
|
554
|
-
# resp.code_review.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
|
|
624
|
+
# resp.code_review.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer", "S3Bucket"
|
|
555
625
|
# resp.code_review.state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
|
|
556
626
|
# resp.code_review.state_reason #=> String
|
|
557
627
|
# resp.code_review.created_time_stamp #=> Time
|
|
@@ -560,10 +630,29 @@ module Aws::CodeGuruReviewer
|
|
|
560
630
|
# resp.code_review.pull_request_id #=> String
|
|
561
631
|
# resp.code_review.source_code_type.commit_diff.source_commit #=> String
|
|
562
632
|
# resp.code_review.source_code_type.commit_diff.destination_commit #=> String
|
|
633
|
+
# resp.code_review.source_code_type.commit_diff.merge_base_commit #=> String
|
|
563
634
|
# resp.code_review.source_code_type.repository_head.branch_name #=> String
|
|
635
|
+
# resp.code_review.source_code_type.branch_diff.source_branch_name #=> String
|
|
636
|
+
# resp.code_review.source_code_type.branch_diff.destination_branch_name #=> String
|
|
637
|
+
# resp.code_review.source_code_type.s3_bucket_repository.name #=> String
|
|
638
|
+
# resp.code_review.source_code_type.s3_bucket_repository.details.bucket_name #=> String
|
|
639
|
+
# resp.code_review.source_code_type.s3_bucket_repository.details.code_artifacts.source_code_artifacts_object_key #=> String
|
|
640
|
+
# resp.code_review.source_code_type.s3_bucket_repository.details.code_artifacts.build_artifacts_object_key #=> String
|
|
641
|
+
# resp.code_review.source_code_type.request_metadata.request_id #=> String
|
|
642
|
+
# resp.code_review.source_code_type.request_metadata.requester #=> String
|
|
643
|
+
# resp.code_review.source_code_type.request_metadata.event_info.name #=> String
|
|
644
|
+
# resp.code_review.source_code_type.request_metadata.event_info.state #=> String
|
|
645
|
+
# resp.code_review.source_code_type.request_metadata.vendor_name #=> String, one of "GitHub", "GitLab", "NativeS3"
|
|
564
646
|
# resp.code_review.association_arn #=> String
|
|
565
647
|
# resp.code_review.metrics.metered_lines_of_code_count #=> Integer
|
|
566
648
|
# resp.code_review.metrics.findings_count #=> Integer
|
|
649
|
+
# resp.code_review.analysis_types #=> Array
|
|
650
|
+
# resp.code_review.analysis_types[0] #=> String, one of "Security", "CodeQuality"
|
|
651
|
+
#
|
|
652
|
+
#
|
|
653
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
654
|
+
#
|
|
655
|
+
# * code_review_completed
|
|
567
656
|
#
|
|
568
657
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeCodeReview AWS API Documentation
|
|
569
658
|
#
|
|
@@ -667,14 +756,24 @@ module Aws::CodeGuruReviewer
|
|
|
667
756
|
# resp.repository_association.connection_arn #=> String
|
|
668
757
|
# resp.repository_association.name #=> String
|
|
669
758
|
# resp.repository_association.owner #=> String
|
|
670
|
-
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
|
|
759
|
+
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer", "S3Bucket"
|
|
671
760
|
# resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
|
|
672
761
|
# resp.repository_association.state_reason #=> String
|
|
673
762
|
# resp.repository_association.last_updated_time_stamp #=> Time
|
|
674
763
|
# resp.repository_association.created_time_stamp #=> Time
|
|
764
|
+
# resp.repository_association.kms_key_details.kms_key_id #=> String
|
|
765
|
+
# resp.repository_association.kms_key_details.encryption_option #=> String, one of "AWS_OWNED_CMK", "CUSTOMER_MANAGED_CMK"
|
|
766
|
+
# resp.repository_association.s3_repository_details.bucket_name #=> String
|
|
767
|
+
# resp.repository_association.s3_repository_details.code_artifacts.source_code_artifacts_object_key #=> String
|
|
768
|
+
# resp.repository_association.s3_repository_details.code_artifacts.build_artifacts_object_key #=> String
|
|
675
769
|
# resp.tags #=> Hash
|
|
676
770
|
# resp.tags["TagKey"] #=> String
|
|
677
771
|
#
|
|
772
|
+
#
|
|
773
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
774
|
+
#
|
|
775
|
+
# * repository_association_succeeded
|
|
776
|
+
#
|
|
678
777
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociation AWS API Documentation
|
|
679
778
|
#
|
|
680
779
|
# @overload describe_repository_association(params = {})
|
|
@@ -715,11 +814,16 @@ module Aws::CodeGuruReviewer
|
|
|
715
814
|
# resp.repository_association.connection_arn #=> String
|
|
716
815
|
# resp.repository_association.name #=> String
|
|
717
816
|
# resp.repository_association.owner #=> String
|
|
718
|
-
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
|
|
817
|
+
# resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer", "S3Bucket"
|
|
719
818
|
# resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
|
|
720
819
|
# resp.repository_association.state_reason #=> String
|
|
721
820
|
# resp.repository_association.last_updated_time_stamp #=> Time
|
|
722
821
|
# resp.repository_association.created_time_stamp #=> Time
|
|
822
|
+
# resp.repository_association.kms_key_details.kms_key_id #=> String
|
|
823
|
+
# resp.repository_association.kms_key_details.encryption_option #=> String, one of "AWS_OWNED_CMK", "CUSTOMER_MANAGED_CMK"
|
|
824
|
+
# resp.repository_association.s3_repository_details.bucket_name #=> String
|
|
825
|
+
# resp.repository_association.s3_repository_details.code_artifacts.source_code_artifacts_object_key #=> String
|
|
826
|
+
# resp.repository_association.s3_repository_details.code_artifacts.build_artifacts_object_key #=> String
|
|
723
827
|
# resp.tags #=> Hash
|
|
724
828
|
# resp.tags["TagKey"] #=> String
|
|
725
829
|
#
|
|
@@ -782,7 +886,7 @@ module Aws::CodeGuruReviewer
|
|
|
782
886
|
# @example Request syntax with placeholder values
|
|
783
887
|
#
|
|
784
888
|
# resp = client.list_code_reviews({
|
|
785
|
-
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
|
|
889
|
+
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer, S3Bucket
|
|
786
890
|
# states: ["Completed"], # accepts Completed, Pending, Failed, Deleting
|
|
787
891
|
# repository_names: ["Name"],
|
|
788
892
|
# type: "PullRequest", # required, accepts PullRequest, RepositoryAnalysis
|
|
@@ -797,7 +901,7 @@ module Aws::CodeGuruReviewer
|
|
|
797
901
|
# resp.code_review_summaries[0].code_review_arn #=> String
|
|
798
902
|
# resp.code_review_summaries[0].repository_name #=> String
|
|
799
903
|
# resp.code_review_summaries[0].owner #=> String
|
|
800
|
-
# resp.code_review_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
|
|
904
|
+
# resp.code_review_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer", "S3Bucket"
|
|
801
905
|
# resp.code_review_summaries[0].state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
|
|
802
906
|
# resp.code_review_summaries[0].created_time_stamp #=> Time
|
|
803
907
|
# resp.code_review_summaries[0].last_updated_time_stamp #=> Time
|
|
@@ -805,6 +909,21 @@ module Aws::CodeGuruReviewer
|
|
|
805
909
|
# resp.code_review_summaries[0].pull_request_id #=> String
|
|
806
910
|
# resp.code_review_summaries[0].metrics_summary.metered_lines_of_code_count #=> Integer
|
|
807
911
|
# resp.code_review_summaries[0].metrics_summary.findings_count #=> Integer
|
|
912
|
+
# resp.code_review_summaries[0].source_code_type.commit_diff.source_commit #=> String
|
|
913
|
+
# resp.code_review_summaries[0].source_code_type.commit_diff.destination_commit #=> String
|
|
914
|
+
# resp.code_review_summaries[0].source_code_type.commit_diff.merge_base_commit #=> String
|
|
915
|
+
# resp.code_review_summaries[0].source_code_type.repository_head.branch_name #=> String
|
|
916
|
+
# resp.code_review_summaries[0].source_code_type.branch_diff.source_branch_name #=> String
|
|
917
|
+
# resp.code_review_summaries[0].source_code_type.branch_diff.destination_branch_name #=> String
|
|
918
|
+
# resp.code_review_summaries[0].source_code_type.s3_bucket_repository.name #=> String
|
|
919
|
+
# resp.code_review_summaries[0].source_code_type.s3_bucket_repository.details.bucket_name #=> String
|
|
920
|
+
# resp.code_review_summaries[0].source_code_type.s3_bucket_repository.details.code_artifacts.source_code_artifacts_object_key #=> String
|
|
921
|
+
# resp.code_review_summaries[0].source_code_type.s3_bucket_repository.details.code_artifacts.build_artifacts_object_key #=> String
|
|
922
|
+
# resp.code_review_summaries[0].source_code_type.request_metadata.request_id #=> String
|
|
923
|
+
# resp.code_review_summaries[0].source_code_type.request_metadata.requester #=> String
|
|
924
|
+
# resp.code_review_summaries[0].source_code_type.request_metadata.event_info.name #=> String
|
|
925
|
+
# resp.code_review_summaries[0].source_code_type.request_metadata.event_info.state #=> String
|
|
926
|
+
# resp.code_review_summaries[0].source_code_type.request_metadata.vendor_name #=> String, one of "GitHub", "GitLab", "NativeS3"
|
|
808
927
|
# resp.next_token #=> String
|
|
809
928
|
#
|
|
810
929
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListCodeReviews AWS API Documentation
|
|
@@ -931,6 +1050,7 @@ module Aws::CodeGuruReviewer
|
|
|
931
1050
|
# resp.recommendation_summaries[0].start_line #=> Integer
|
|
932
1051
|
# resp.recommendation_summaries[0].end_line #=> Integer
|
|
933
1052
|
# resp.recommendation_summaries[0].description #=> String
|
|
1053
|
+
# resp.recommendation_summaries[0].recommendation_category #=> String, one of "AWSBestPractices", "AWSCloudFormationIssues", "DuplicateCode", "CodeMaintenanceIssues", "ConcurrencyIssues", "InputValidations", "PythonBestPractices", "JavaBestPractices", "ResourceLeaks", "SecurityIssues"
|
|
934
1054
|
# resp.next_token #=> String
|
|
935
1055
|
#
|
|
936
1056
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendations AWS API Documentation
|
|
@@ -1041,7 +1161,7 @@ module Aws::CodeGuruReviewer
|
|
|
1041
1161
|
# @example Request syntax with placeholder values
|
|
1042
1162
|
#
|
|
1043
1163
|
# resp = client.list_repository_associations({
|
|
1044
|
-
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
|
|
1164
|
+
# provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer, S3Bucket
|
|
1045
1165
|
# states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating, Disassociated
|
|
1046
1166
|
# names: ["Name"],
|
|
1047
1167
|
# owners: ["Owner"],
|
|
@@ -1058,7 +1178,7 @@ module Aws::CodeGuruReviewer
|
|
|
1058
1178
|
# resp.repository_association_summaries[0].association_id #=> String
|
|
1059
1179
|
# resp.repository_association_summaries[0].name #=> String
|
|
1060
1180
|
# resp.repository_association_summaries[0].owner #=> String
|
|
1061
|
-
# resp.repository_association_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
|
|
1181
|
+
# resp.repository_association_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer", "S3Bucket"
|
|
1062
1182
|
# resp.repository_association_summaries[0].state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
|
|
1063
1183
|
# resp.next_token #=> String
|
|
1064
1184
|
#
|
|
@@ -1237,14 +1357,129 @@ module Aws::CodeGuruReviewer
|
|
|
1237
1357
|
params: params,
|
|
1238
1358
|
config: config)
|
|
1239
1359
|
context[:gem_name] = 'aws-sdk-codegurureviewer'
|
|
1240
|
-
context[:gem_version] = '1.
|
|
1360
|
+
context[:gem_version] = '1.19.0'
|
|
1241
1361
|
Seahorse::Client::Request.new(handlers, context)
|
|
1242
1362
|
end
|
|
1243
1363
|
|
|
1364
|
+
# Polls an API operation until a resource enters a desired state.
|
|
1365
|
+
#
|
|
1366
|
+
# ## Basic Usage
|
|
1367
|
+
#
|
|
1368
|
+
# A waiter will call an API operation until:
|
|
1369
|
+
#
|
|
1370
|
+
# * It is successful
|
|
1371
|
+
# * It enters a terminal state
|
|
1372
|
+
# * It makes the maximum number of attempts
|
|
1373
|
+
#
|
|
1374
|
+
# In between attempts, the waiter will sleep.
|
|
1375
|
+
#
|
|
1376
|
+
# # polls in a loop, sleeping between attempts
|
|
1377
|
+
# client.wait_until(waiter_name, params)
|
|
1378
|
+
#
|
|
1379
|
+
# ## Configuration
|
|
1380
|
+
#
|
|
1381
|
+
# You can configure the maximum number of polling attempts, and the
|
|
1382
|
+
# delay (in seconds) between each polling attempt. You can pass
|
|
1383
|
+
# configuration as the final arguments hash.
|
|
1384
|
+
#
|
|
1385
|
+
# # poll for ~25 seconds
|
|
1386
|
+
# client.wait_until(waiter_name, params, {
|
|
1387
|
+
# max_attempts: 5,
|
|
1388
|
+
# delay: 5,
|
|
1389
|
+
# })
|
|
1390
|
+
#
|
|
1391
|
+
# ## Callbacks
|
|
1392
|
+
#
|
|
1393
|
+
# You can be notified before each polling attempt and before each
|
|
1394
|
+
# delay. If you throw `:success` or `:failure` from these callbacks,
|
|
1395
|
+
# it will terminate the waiter.
|
|
1396
|
+
#
|
|
1397
|
+
# started_at = Time.now
|
|
1398
|
+
# client.wait_until(waiter_name, params, {
|
|
1399
|
+
#
|
|
1400
|
+
# # disable max attempts
|
|
1401
|
+
# max_attempts: nil,
|
|
1402
|
+
#
|
|
1403
|
+
# # poll for 1 hour, instead of a number of attempts
|
|
1404
|
+
# before_wait: -> (attempts, response) do
|
|
1405
|
+
# throw :failure if Time.now - started_at > 3600
|
|
1406
|
+
# end
|
|
1407
|
+
# })
|
|
1408
|
+
#
|
|
1409
|
+
# ## Handling Errors
|
|
1410
|
+
#
|
|
1411
|
+
# When a waiter is unsuccessful, it will raise an error.
|
|
1412
|
+
# All of the failure errors extend from
|
|
1413
|
+
# {Aws::Waiters::Errors::WaiterFailed}.
|
|
1414
|
+
#
|
|
1415
|
+
# begin
|
|
1416
|
+
# client.wait_until(...)
|
|
1417
|
+
# rescue Aws::Waiters::Errors::WaiterFailed
|
|
1418
|
+
# # resource did not enter the desired state in time
|
|
1419
|
+
# end
|
|
1420
|
+
#
|
|
1421
|
+
# ## Valid Waiters
|
|
1422
|
+
#
|
|
1423
|
+
# The following table lists the valid waiter names, the operations they call,
|
|
1424
|
+
# and the default `:delay` and `:max_attempts` values.
|
|
1425
|
+
#
|
|
1426
|
+
# | waiter_name | params | :delay | :max_attempts |
|
|
1427
|
+
# | -------------------------------- | ---------------------------------------- | -------- | ------------- |
|
|
1428
|
+
# | code_review_completed | {Client#describe_code_review} | 10 | 60 |
|
|
1429
|
+
# | repository_association_succeeded | {Client#describe_repository_association} | 10 | 20 |
|
|
1430
|
+
#
|
|
1431
|
+
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
|
1432
|
+
# because the waiter has entered a state that it will not transition
|
|
1433
|
+
# out of, preventing success.
|
|
1434
|
+
#
|
|
1435
|
+
# @raise [Errors::TooManyAttemptsError] Raised when the configured
|
|
1436
|
+
# maximum number of attempts have been made, and the waiter is not
|
|
1437
|
+
# yet successful.
|
|
1438
|
+
#
|
|
1439
|
+
# @raise [Errors::UnexpectedError] Raised when an error is encounted
|
|
1440
|
+
# while polling for a resource that is not expected.
|
|
1441
|
+
#
|
|
1442
|
+
# @raise [Errors::NoSuchWaiterError] Raised when you request to wait
|
|
1443
|
+
# for an unknown state.
|
|
1444
|
+
#
|
|
1445
|
+
# @return [Boolean] Returns `true` if the waiter was successful.
|
|
1446
|
+
# @param [Symbol] waiter_name
|
|
1447
|
+
# @param [Hash] params ({})
|
|
1448
|
+
# @param [Hash] options ({})
|
|
1449
|
+
# @option options [Integer] :max_attempts
|
|
1450
|
+
# @option options [Integer] :delay
|
|
1451
|
+
# @option options [Proc] :before_attempt
|
|
1452
|
+
# @option options [Proc] :before_wait
|
|
1453
|
+
def wait_until(waiter_name, params = {}, options = {})
|
|
1454
|
+
w = waiter(waiter_name, options)
|
|
1455
|
+
yield(w.waiter) if block_given? # deprecated
|
|
1456
|
+
w.wait(params)
|
|
1457
|
+
end
|
|
1458
|
+
|
|
1244
1459
|
# @api private
|
|
1245
1460
|
# @deprecated
|
|
1246
1461
|
def waiter_names
|
|
1247
|
-
|
|
1462
|
+
waiters.keys
|
|
1463
|
+
end
|
|
1464
|
+
|
|
1465
|
+
private
|
|
1466
|
+
|
|
1467
|
+
# @param [Symbol] waiter_name
|
|
1468
|
+
# @param [Hash] options ({})
|
|
1469
|
+
def waiter(waiter_name, options = {})
|
|
1470
|
+
waiter_class = waiters[waiter_name]
|
|
1471
|
+
if waiter_class
|
|
1472
|
+
waiter_class.new(options.merge(client: self))
|
|
1473
|
+
else
|
|
1474
|
+
raise Aws::Waiters::Errors::NoSuchWaiterError.new(waiter_name, waiters.keys)
|
|
1475
|
+
end
|
|
1476
|
+
end
|
|
1477
|
+
|
|
1478
|
+
def waiters
|
|
1479
|
+
{
|
|
1480
|
+
code_review_completed: Waiters::CodeReviewCompleted,
|
|
1481
|
+
repository_association_succeeded: Waiters::RepositoryAssociationSucceeded
|
|
1482
|
+
}
|
|
1248
1483
|
end
|
|
1249
1484
|
|
|
1250
1485
|
class << self
|