aws-sdk-codegurureviewer 1.13.0 → 1.18.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b3dc52479126596a4738b392fdde867c32e88cfde759aeb4fe435e82d52e427
4
- data.tar.gz: 639d3f9feb9f51e6a68f89425ee02cf7f1b7fbd6690412b661e24f7a73037533
3
+ metadata.gz: dd58cf124a5bfa53af08ab54f1db6f50232a5bf8c969425ce57d2b71b8c17331
4
+ data.tar.gz: 2a6a71c5350414f863ee60cdda1540e3db35319ef5d4f5dfffbe9139218792ba
5
5
  SHA512:
6
- metadata.gz: 59432a7407ede52e9fe9338521ac3f95a5fddf7bcfe21c6a76860a0d1560b1e09cd7d12fd0b601c6d6eb23e64829794d6ffc958758bf2c03577905b4fe9b1546
7
- data.tar.gz: 1ab0f7b9206c850d47d0ccbdf50c4b923137a8ad551ce769d30024087c276d69ba0006d2a2e2201f0b3dd94d53bacf57538ec45ae2aac99e962196f24c8986ce
6
+ metadata.gz: 68853136fe7a85f934fe26575d1db8983f9036c878d60dc1f5963a8c956d6e1b5ef9d4ba234e5c5ef9a2a3fd489e75665053b5d6040f7b9fd8aa63c0b9d687e9
7
+ data.tar.gz: 2a6857a2febfe227241a91415c0b7a06dff28c9738262cdbeebee89ccf3d10c192702011e262d6f0c336709faca63a12f7dc04650b51a6254fc215a083609b30
data/CHANGELOG.md ADDED
@@ -0,0 +1,103 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 1.18.0 (2021-06-23)
5
+ ------------------
6
+
7
+ * Feature - Adds support for S3 based full repository analysis and changed lines scan.
8
+
9
+ 1.17.0 (2021-04-26)
10
+ ------------------
11
+
12
+ * Feature - Include KMS Key Details in Repository Association APIs to enable usage of customer managed KMS Keys.
13
+
14
+ 1.16.0 (2021-03-10)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.15.0 (2021-02-02)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
24
+ 1.14.0 (2020-11-20)
25
+ ------------------
26
+
27
+ * Feature - This release supports tagging repository association resources in Amazon CodeGuru Reviewer.
28
+
29
+ 1.13.0 (2020-09-30)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.12.0 (2020-09-15)
35
+ ------------------
36
+
37
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
38
+
39
+ 1.11.0 (2020-09-01)
40
+ ------------------
41
+
42
+ * Feature - Add support for repository analysis based code reviews
43
+
44
+ 1.10.0 (2020-08-25)
45
+ ------------------
46
+
47
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
48
+
49
+ 1.9.0 (2020-06-30)
50
+ ------------------
51
+
52
+ * Feature - Release GitHub Enterprise Server source provider integration
53
+
54
+ 1.8.0 (2020-06-23)
55
+ ------------------
56
+
57
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
58
+
59
+ 1.7.1 (2020-06-11)
60
+ ------------------
61
+
62
+ * Issue - Republish previous version with correct dependency on `aws-sdk-core`.
63
+
64
+ 1.7.0 (2020-06-10)
65
+ ------------------
66
+
67
+ * Issue - This version has been yanked. (#2327).
68
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
69
+
70
+ 1.6.0 (2020-05-28)
71
+ ------------------
72
+
73
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
74
+
75
+ 1.5.0 (2020-05-11)
76
+ ------------------
77
+
78
+ * Feature - Add Bitbucket integration APIs
79
+
80
+ 1.4.0 (2020-05-07)
81
+ ------------------
82
+
83
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
84
+
85
+ 1.3.0 (2020-04-22)
86
+ ------------------
87
+
88
+ * Feature - Add support for code review and recommendation feedback APIs.
89
+
90
+ 1.2.0 (2020-04-07)
91
+ ------------------
92
+
93
+ * Feature - API updates for CodeGuruReviewer
94
+
95
+ 1.1.0 (2020-03-09)
96
+ ------------------
97
+
98
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
99
+
100
+ 1.0.0 (2019-12-03)
101
+ ------------------
102
+
103
+ * 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.18.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
 
@@ -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.13.0'
52
+ GEM_VERSION = '1.18.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/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
 
@@ -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 AWS
339
- # Region and AWS account where its CodeGuru Reviewer code reviews are
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 [Connect to a repository source provider][2] in the
345
- # *Amazon CodeGuru Reviewer User Guide.*
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/reviewer-ug/step-one.html#select-repository-source-provider
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
@@ -369,9 +369,32 @@ module Aws::CodeGuruReviewer
369
369
  # **A suitable default value is auto-generated.** You should normally
370
370
  # not need to pass this option.**
371
371
  #
372
+ # @option params [Hash<String,String>] :tags
373
+ # An array of key-value pairs used to tag an associated repository. A
374
+ # tag is a custom attribute label with two parts:
375
+ #
376
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`, or
377
+ # `Secret`). Tag keys are case sensitive.
378
+ #
379
+ # * An optional field known as a *tag value* (for example,
380
+ # `111122223333`, `Production`, or a team name). Omitting the tag
381
+ # value is the same as using an empty string. Like tag keys, tag
382
+ # values are case sensitive.
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
+ #
372
394
  # @return [Types::AssociateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
373
395
  #
374
396
  # * {Types::AssociateRepositoryResponse#repository_association #repository_association} => Types::RepositoryAssociation
397
+ # * {Types::AssociateRepositoryResponse#tags #tags} => Hash&lt;String,String&gt;
375
398
  #
376
399
  # @example Request syntax with placeholder values
377
400
  #
@@ -390,8 +413,19 @@ module Aws::CodeGuruReviewer
390
413
  # connection_arn: "ConnectionArn", # required
391
414
  # owner: "Owner", # required
392
415
  # },
416
+ # s3_bucket: {
417
+ # name: "Name", # required
418
+ # bucket_name: "S3BucketName", # required
419
+ # },
393
420
  # },
394
421
  # client_request_token: "ClientRequestToken",
422
+ # tags: {
423
+ # "TagKey" => "TagValue",
424
+ # },
425
+ # kms_key_details: {
426
+ # kms_key_id: "KMSKeyId",
427
+ # encryption_option: "AWS_OWNED_CMK", # accepts AWS_OWNED_CMK, CUSTOMER_MANAGED_CMK
428
+ # },
395
429
  # })
396
430
  #
397
431
  # @example Response structure
@@ -401,11 +435,18 @@ module Aws::CodeGuruReviewer
401
435
  # resp.repository_association.connection_arn #=> String
402
436
  # resp.repository_association.name #=> String
403
437
  # resp.repository_association.owner #=> String
404
- # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
405
- # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
438
+ # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer", "S3Bucket"
439
+ # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
406
440
  # resp.repository_association.state_reason #=> String
407
441
  # resp.repository_association.last_updated_time_stamp #=> Time
408
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
448
+ # resp.tags #=> Hash
449
+ # resp.tags["TagKey"] #=> String
409
450
  #
410
451
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepository AWS API Documentation
411
452
  #
@@ -416,15 +457,23 @@ module Aws::CodeGuruReviewer
416
457
  req.send_request(options)
417
458
  end
418
459
 
419
- # Use to create a code review for a repository analysis.
460
+ # Use to create a code review with a [ `CodeReviewType` ][1] of
461
+ # `RepositoryAnalysis`. This type of code review analyzes all code under
462
+ # a specified branch in an associated repository. `PullRequest` code
463
+ # reviews are automatically triggered by a pull request.
464
+ #
465
+ #
466
+ #
467
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReviewType.html
420
468
  #
421
469
  # @option params [required, String] :name
422
- # The name of the code review. Each code review of the same code review
423
- # type must have a unique name in your AWS account.
470
+ # The name of the code review. The name of each code review in your AWS
471
+ # account must be unique.
424
472
  #
425
473
  # @option params [required, String] :repository_association_arn
426
474
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
427
- # object. You can retrieve this ARN by calling `ListRepositories`.
475
+ # object. You can retrieve this ARN by calling [
476
+ # `ListRepositoryAssociations` ][2].
428
477
  #
429
478
  # A code review can only be created on an associated repository. This is
430
479
  # the ARN of the associated repository.
@@ -432,10 +481,12 @@ module Aws::CodeGuruReviewer
432
481
  #
433
482
  #
434
483
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
484
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
435
485
  #
436
486
  # @option params [required, Types::CodeReviewType] :type
437
487
  # The type of code review to create. This is specified using a [
438
- # `CodeReviewType` ][1] object.
488
+ # `CodeReviewType` ][1] object. You can create a code review only of
489
+ # type `RepositoryAnalysis`.
439
490
  #
440
491
  #
441
492
  #
@@ -456,13 +507,47 @@ module Aws::CodeGuruReviewer
456
507
  #
457
508
  # resp = client.create_code_review({
458
509
  # name: "CodeReviewName", # required
459
- # repository_association_arn: "Arn", # required
510
+ # repository_association_arn: "AssociationArn", # required
460
511
  # type: { # required
461
512
  # repository_analysis: { # required
462
- # repository_head: { # required
513
+ # repository_head: {
463
514
  # branch_name: "BranchName", # required
464
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
+ # },
465
549
  # },
550
+ # analysis_types: ["Security"], # accepts Security, CodeQuality
466
551
  # },
467
552
  # client_request_token: "ClientRequestToken",
468
553
  # })
@@ -473,7 +558,7 @@ module Aws::CodeGuruReviewer
473
558
  # resp.code_review.code_review_arn #=> String
474
559
  # resp.code_review.repository_name #=> String
475
560
  # resp.code_review.owner #=> String
476
- # 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"
477
562
  # resp.code_review.state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
478
563
  # resp.code_review.state_reason #=> String
479
564
  # resp.code_review.created_time_stamp #=> Time
@@ -482,9 +567,24 @@ module Aws::CodeGuruReviewer
482
567
  # resp.code_review.pull_request_id #=> String
483
568
  # resp.code_review.source_code_type.commit_diff.source_commit #=> String
484
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
485
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"
583
+ # resp.code_review.association_arn #=> String
486
584
  # resp.code_review.metrics.metered_lines_of_code_count #=> Integer
487
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"
488
588
  #
489
589
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CreateCodeReview AWS API Documentation
490
590
  #
@@ -521,7 +621,7 @@ module Aws::CodeGuruReviewer
521
621
  # resp.code_review.code_review_arn #=> String
522
622
  # resp.code_review.repository_name #=> String
523
623
  # resp.code_review.owner #=> String
524
- # 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"
525
625
  # resp.code_review.state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
526
626
  # resp.code_review.state_reason #=> String
527
627
  # resp.code_review.created_time_stamp #=> Time
@@ -530,9 +630,29 @@ module Aws::CodeGuruReviewer
530
630
  # resp.code_review.pull_request_id #=> String
531
631
  # resp.code_review.source_code_type.commit_diff.source_commit #=> String
532
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
533
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"
646
+ # resp.code_review.association_arn #=> String
534
647
  # resp.code_review.metrics.metered_lines_of_code_count #=> Integer
535
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
536
656
  #
537
657
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeCodeReview AWS API Documentation
538
658
  #
@@ -610,20 +730,23 @@ module Aws::CodeGuruReviewer
610
730
  #
611
731
  # @option params [required, String] :association_arn
612
732
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
613
- # object. You can retrieve this ARN by calling `ListRepositories`.
733
+ # object. You can retrieve this ARN by calling [
734
+ # `ListRepositoryAssociations` ][2].
614
735
  #
615
736
  #
616
737
  #
617
738
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
739
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
618
740
  #
619
741
  # @return [Types::DescribeRepositoryAssociationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
620
742
  #
621
743
  # * {Types::DescribeRepositoryAssociationResponse#repository_association #repository_association} => Types::RepositoryAssociation
744
+ # * {Types::DescribeRepositoryAssociationResponse#tags #tags} => Hash&lt;String,String&gt;
622
745
  #
623
746
  # @example Request syntax with placeholder values
624
747
  #
625
748
  # resp = client.describe_repository_association({
626
- # association_arn: "Arn", # required
749
+ # association_arn: "AssociationArn", # required
627
750
  # })
628
751
  #
629
752
  # @example Response structure
@@ -633,11 +756,23 @@ module Aws::CodeGuruReviewer
633
756
  # resp.repository_association.connection_arn #=> String
634
757
  # resp.repository_association.name #=> String
635
758
  # resp.repository_association.owner #=> String
636
- # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
637
- # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
759
+ # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer", "S3Bucket"
760
+ # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
638
761
  # resp.repository_association.state_reason #=> String
639
762
  # resp.repository_association.last_updated_time_stamp #=> Time
640
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
769
+ # resp.tags #=> Hash
770
+ # resp.tags["TagKey"] #=> String
771
+ #
772
+ #
773
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
774
+ #
775
+ # * repository_association_succeeded
641
776
  #
642
777
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociation AWS API Documentation
643
778
  #
@@ -653,20 +788,23 @@ module Aws::CodeGuruReviewer
653
788
  #
654
789
  # @option params [required, String] :association_arn
655
790
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
656
- # object. You can retrieve this ARN by calling `ListRepositories`.
791
+ # object. You can retrieve this ARN by calling [
792
+ # `ListRepositoryAssociations` ][2].
657
793
  #
658
794
  #
659
795
  #
660
796
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
797
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
661
798
  #
662
799
  # @return [Types::DisassociateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
663
800
  #
664
801
  # * {Types::DisassociateRepositoryResponse#repository_association #repository_association} => Types::RepositoryAssociation
802
+ # * {Types::DisassociateRepositoryResponse#tags #tags} => Hash&lt;String,String&gt;
665
803
  #
666
804
  # @example Request syntax with placeholder values
667
805
  #
668
806
  # resp = client.disassociate_repository({
669
- # association_arn: "Arn", # required
807
+ # association_arn: "AssociationArn", # required
670
808
  # })
671
809
  #
672
810
  # @example Response structure
@@ -676,11 +814,18 @@ module Aws::CodeGuruReviewer
676
814
  # resp.repository_association.connection_arn #=> String
677
815
  # resp.repository_association.name #=> String
678
816
  # resp.repository_association.owner #=> String
679
- # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
680
- # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
817
+ # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer", "S3Bucket"
818
+ # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
681
819
  # resp.repository_association.state_reason #=> String
682
820
  # resp.repository_association.last_updated_time_stamp #=> Time
683
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
827
+ # resp.tags #=> Hash
828
+ # resp.tags["TagKey"] #=> String
684
829
  #
685
830
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepository AWS API Documentation
686
831
  #
@@ -741,7 +886,7 @@ module Aws::CodeGuruReviewer
741
886
  # @example Request syntax with placeholder values
742
887
  #
743
888
  # resp = client.list_code_reviews({
744
- # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
889
+ # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer, S3Bucket
745
890
  # states: ["Completed"], # accepts Completed, Pending, Failed, Deleting
746
891
  # repository_names: ["Name"],
747
892
  # type: "PullRequest", # required, accepts PullRequest, RepositoryAnalysis
@@ -756,7 +901,7 @@ module Aws::CodeGuruReviewer
756
901
  # resp.code_review_summaries[0].code_review_arn #=> String
757
902
  # resp.code_review_summaries[0].repository_name #=> String
758
903
  # resp.code_review_summaries[0].owner #=> String
759
- # 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"
760
905
  # resp.code_review_summaries[0].state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
761
906
  # resp.code_review_summaries[0].created_time_stamp #=> Time
762
907
  # resp.code_review_summaries[0].last_updated_time_stamp #=> Time
@@ -764,6 +909,21 @@ module Aws::CodeGuruReviewer
764
909
  # resp.code_review_summaries[0].pull_request_id #=> String
765
910
  # resp.code_review_summaries[0].metrics_summary.metered_lines_of_code_count #=> Integer
766
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"
767
927
  # resp.next_token #=> String
768
928
  #
769
929
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListCodeReviews AWS API Documentation
@@ -890,6 +1050,7 @@ module Aws::CodeGuruReviewer
890
1050
  # resp.recommendation_summaries[0].start_line #=> Integer
891
1051
  # resp.recommendation_summaries[0].end_line #=> Integer
892
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"
893
1054
  # resp.next_token #=> String
894
1055
  #
895
1056
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRecommendations AWS API Documentation
@@ -945,6 +1106,18 @@ module Aws::CodeGuruReviewer
945
1106
  # * **Disassociating**\: CodeGuru Reviewer is removing the repository's
946
1107
  # pull request notifications and source code access.
947
1108
  #
1109
+ # * **Disassociated**\: CodeGuru Reviewer successfully disassociated the
1110
+ # repository. You can create a new association with this repository if
1111
+ # you want to review source code in it later. You can control access
1112
+ # to code reviews created in an associated repository with tags after
1113
+ # it has been disassociated. For more information, see [Using tags to
1114
+ # control access to associated repositories][1] in the *Amazon
1115
+ # CodeGuru Reviewer User Guide*.
1116
+ #
1117
+ #
1118
+ #
1119
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html
1120
+ #
948
1121
  # @option params [Array<String>] :names
949
1122
  # List of repository names to use as a filter.
950
1123
  #
@@ -988,8 +1161,8 @@ module Aws::CodeGuruReviewer
988
1161
  # @example Request syntax with placeholder values
989
1162
  #
990
1163
  # resp = client.list_repository_associations({
991
- # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
992
- # states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating
1164
+ # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer, S3Bucket
1165
+ # states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating, Disassociated
993
1166
  # names: ["Name"],
994
1167
  # owners: ["Owner"],
995
1168
  # max_results: 1,
@@ -1005,8 +1178,8 @@ module Aws::CodeGuruReviewer
1005
1178
  # resp.repository_association_summaries[0].association_id #=> String
1006
1179
  # resp.repository_association_summaries[0].name #=> String
1007
1180
  # resp.repository_association_summaries[0].owner #=> String
1008
- # resp.repository_association_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
1009
- # resp.repository_association_summaries[0].state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
1181
+ # resp.repository_association_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer", "S3Bucket"
1182
+ # resp.repository_association_summaries[0].state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
1010
1183
  # resp.next_token #=> String
1011
1184
  #
1012
1185
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRepositoryAssociations AWS API Documentation
@@ -1018,6 +1191,43 @@ module Aws::CodeGuruReviewer
1018
1191
  req.send_request(options)
1019
1192
  end
1020
1193
 
1194
+ # Returns the list of tags associated with an associated repository
1195
+ # resource.
1196
+ #
1197
+ # @option params [required, String] :resource_arn
1198
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1199
+ # object. You can retrieve this ARN by calling [
1200
+ # `ListRepositoryAssociations` ][2].
1201
+ #
1202
+ #
1203
+ #
1204
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1205
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1206
+ #
1207
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1208
+ #
1209
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash&lt;String,String&gt;
1210
+ #
1211
+ # @example Request syntax with placeholder values
1212
+ #
1213
+ # resp = client.list_tags_for_resource({
1214
+ # resource_arn: "AssociationArn", # required
1215
+ # })
1216
+ #
1217
+ # @example Response structure
1218
+ #
1219
+ # resp.tags #=> Hash
1220
+ # resp.tags["TagKey"] #=> String
1221
+ #
1222
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListTagsForResource AWS API Documentation
1223
+ #
1224
+ # @overload list_tags_for_resource(params = {})
1225
+ # @param [Hash] params ({})
1226
+ def list_tags_for_resource(params = {}, options = {})
1227
+ req = build_request(:list_tags_for_resource, params)
1228
+ req.send_request(options)
1229
+ end
1230
+
1021
1231
  # Stores customer feedback for a CodeGuru Reviewer recommendation. When
1022
1232
  # this API is called again with different reactions the previous
1023
1233
  # feedback is overwritten.
@@ -1056,6 +1266,84 @@ module Aws::CodeGuruReviewer
1056
1266
  req.send_request(options)
1057
1267
  end
1058
1268
 
1269
+ # Adds one or more tags to an associated repository.
1270
+ #
1271
+ # @option params [required, String] :resource_arn
1272
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1273
+ # object. You can retrieve this ARN by calling [
1274
+ # `ListRepositoryAssociations` ][2].
1275
+ #
1276
+ #
1277
+ #
1278
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1279
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1280
+ #
1281
+ # @option params [required, Hash<String,String>] :tags
1282
+ # An array of key-value pairs used to tag an associated repository. A
1283
+ # tag is a custom attribute label with two parts:
1284
+ #
1285
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`, or
1286
+ # `Secret`). Tag keys are case sensitive.
1287
+ #
1288
+ # * An optional field known as a *tag value* (for example,
1289
+ # `111122223333`, `Production`, or a team name). Omitting the tag
1290
+ # value is the same as using an empty string. Like tag keys, tag
1291
+ # values are case sensitive.
1292
+ #
1293
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1294
+ #
1295
+ # @example Request syntax with placeholder values
1296
+ #
1297
+ # resp = client.tag_resource({
1298
+ # resource_arn: "AssociationArn", # required
1299
+ # tags: { # required
1300
+ # "TagKey" => "TagValue",
1301
+ # },
1302
+ # })
1303
+ #
1304
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/TagResource AWS API Documentation
1305
+ #
1306
+ # @overload tag_resource(params = {})
1307
+ # @param [Hash] params ({})
1308
+ def tag_resource(params = {}, options = {})
1309
+ req = build_request(:tag_resource, params)
1310
+ req.send_request(options)
1311
+ end
1312
+
1313
+ # Removes a tag from an associated repository.
1314
+ #
1315
+ # @option params [required, String] :resource_arn
1316
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1317
+ # object. You can retrieve this ARN by calling [
1318
+ # `ListRepositoryAssociations` ][2].
1319
+ #
1320
+ #
1321
+ #
1322
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1323
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1324
+ #
1325
+ # @option params [required, Array<String>] :tag_keys
1326
+ # A list of the keys for each tag you want to remove from an associated
1327
+ # repository.
1328
+ #
1329
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1330
+ #
1331
+ # @example Request syntax with placeholder values
1332
+ #
1333
+ # resp = client.untag_resource({
1334
+ # resource_arn: "AssociationArn", # required
1335
+ # tag_keys: ["TagKey"], # required
1336
+ # })
1337
+ #
1338
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/UntagResource AWS API Documentation
1339
+ #
1340
+ # @overload untag_resource(params = {})
1341
+ # @param [Hash] params ({})
1342
+ def untag_resource(params = {}, options = {})
1343
+ req = build_request(:untag_resource, params)
1344
+ req.send_request(options)
1345
+ end
1346
+
1059
1347
  # @!endgroup
1060
1348
 
1061
1349
  # @param params ({})
@@ -1069,14 +1357,129 @@ module Aws::CodeGuruReviewer
1069
1357
  params: params,
1070
1358
  config: config)
1071
1359
  context[:gem_name] = 'aws-sdk-codegurureviewer'
1072
- context[:gem_version] = '1.13.0'
1360
+ context[:gem_version] = '1.18.0'
1073
1361
  Seahorse::Client::Request.new(handlers, context)
1074
1362
  end
1075
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
+
1076
1459
  # @api private
1077
1460
  # @deprecated
1078
1461
  def waiter_names
1079
- []
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
+ }
1080
1483
  end
1081
1484
 
1082
1485
  class << self