aws-sdk-codegurureviewer 1.12.0 → 1.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a548bb9e62ffde1a29973534325e12e3c6bd18805976ffdfeb25ce0c22ae239
4
- data.tar.gz: 699d7d9ab105a60bd02bb2a7c2de2b8a9b2fc3733e92c8ad56b7078403a77e51
3
+ metadata.gz: de1579048264593150393396476a03d254711166e6f38e131f27bf76f010320e
4
+ data.tar.gz: dc6fdeb64156b0d626b3491ecbc2da1cfd9a96b5ad9f533c8bf4176cb3e07188
5
5
  SHA512:
6
- metadata.gz: 7f39127ea3c5a6d0adfd782caa992aa23082f6e309f4ac2e9218c00a465fc7fb5f6e886c1a4393b585e734ad31b6ade64e1bbf199cabc4128851607e40eeae51
7
- data.tar.gz: a5c1e60574033974419baefe1fb93311aea38d272b9700dc532f848a239849819979f96e22c60315852b0736f44a76ccab55af143b45ac46fb2d5b0f81f04ead
6
+ metadata.gz: 9eb0f2c09c67f1c8d7158fba240d86ec92ed9b375c21622dd97272e454bc71431ce5d158ff41bde6cfcbbe480dfd321d7560e7d735d10c5f11fc974ea519ee72
7
+ data.tar.gz: 266915a8a37edc43fba5220256d13561f9dc81447da34a7542da471077a888a2bea9566a8cb4fb0d505881b014e5758c8d70c4be4f54004d96ed50c6313d7419
data/CHANGELOG.md ADDED
@@ -0,0 +1,98 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 1.17.0 (2021-04-26)
5
+ ------------------
6
+
7
+ * Feature - Include KMS Key Details in Repository Association APIs to enable usage of customer managed KMS Keys.
8
+
9
+ 1.16.0 (2021-03-10)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.15.0 (2021-02-02)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.14.0 (2020-11-20)
20
+ ------------------
21
+
22
+ * Feature - This release supports tagging repository association resources in Amazon CodeGuru Reviewer.
23
+
24
+ 1.13.0 (2020-09-30)
25
+ ------------------
26
+
27
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
28
+
29
+ 1.12.0 (2020-09-15)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.11.0 (2020-09-01)
35
+ ------------------
36
+
37
+ * Feature - Add support for repository analysis based code reviews
38
+
39
+ 1.10.0 (2020-08-25)
40
+ ------------------
41
+
42
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
43
+
44
+ 1.9.0 (2020-06-30)
45
+ ------------------
46
+
47
+ * Feature - Release GitHub Enterprise Server source provider integration
48
+
49
+ 1.8.0 (2020-06-23)
50
+ ------------------
51
+
52
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
53
+
54
+ 1.7.1 (2020-06-11)
55
+ ------------------
56
+
57
+ * Issue - Republish previous version with correct dependency on `aws-sdk-core`.
58
+
59
+ 1.7.0 (2020-06-10)
60
+ ------------------
61
+
62
+ * Issue - This version has been yanked. (#2327).
63
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
64
+
65
+ 1.6.0 (2020-05-28)
66
+ ------------------
67
+
68
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
69
+
70
+ 1.5.0 (2020-05-11)
71
+ ------------------
72
+
73
+ * Feature - Add Bitbucket integration APIs
74
+
75
+ 1.4.0 (2020-05-07)
76
+ ------------------
77
+
78
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
79
+
80
+ 1.3.0 (2020-04-22)
81
+ ------------------
82
+
83
+ * Feature - Add support for code review and recommendation feedback APIs.
84
+
85
+ 1.2.0 (2020-04-07)
86
+ ------------------
87
+
88
+ * Feature - API updates for CodeGuruReviewer
89
+
90
+ 1.1.0 (2020-03-09)
91
+ ------------------
92
+
93
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
94
+
95
+ 1.0.0 (2019-12-03)
96
+ ------------------
97
+
98
+ * Feature - Initial release of `aws-sdk-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.17.0
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-codegurureviewer/customizations'
48
48
  # @!group service
49
49
  module Aws::CodeGuruReviewer
50
50
 
51
- GEM_VERSION = '1.12.0'
51
+ GEM_VERSION = '1.17.0'
52
52
 
53
53
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -341,8 +341,8 @@ module Aws::CodeGuruReviewer
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
  #
@@ -392,6 +415,13 @@ module Aws::CodeGuruReviewer
392
415
  # },
393
416
  # },
394
417
  # client_request_token: "ClientRequestToken",
418
+ # tags: {
419
+ # "TagKey" => "TagValue",
420
+ # },
421
+ # kms_key_details: {
422
+ # kms_key_id: "KMSKeyId",
423
+ # encryption_option: "AWS_OWNED_CMK", # accepts AWS_OWNED_CMK, CUSTOMER_MANAGED_CMK
424
+ # },
395
425
  # })
396
426
  #
397
427
  # @example Response structure
@@ -402,10 +432,14 @@ module Aws::CodeGuruReviewer
402
432
  # resp.repository_association.name #=> String
403
433
  # resp.repository_association.owner #=> String
404
434
  # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
405
- # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
435
+ # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
406
436
  # resp.repository_association.state_reason #=> String
407
437
  # resp.repository_association.last_updated_time_stamp #=> Time
408
438
  # resp.repository_association.created_time_stamp #=> Time
439
+ # resp.repository_association.kms_key_details.kms_key_id #=> String
440
+ # resp.repository_association.kms_key_details.encryption_option #=> String, one of "AWS_OWNED_CMK", "CUSTOMER_MANAGED_CMK"
441
+ # resp.tags #=> Hash
442
+ # resp.tags["TagKey"] #=> String
409
443
  #
410
444
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepository AWS API Documentation
411
445
  #
@@ -416,15 +450,24 @@ module Aws::CodeGuruReviewer
416
450
  req.send_request(options)
417
451
  end
418
452
 
419
- # Use to create a code review for a repository analysis.
453
+ # Use to create a code review with a [ `CodeReviewType` ][1] of
454
+ # `RepositoryAnalysis`. This type of code review analyzes all code under
455
+ # a specified branch in an associated repository. `PullRequest` code
456
+ # reviews are automatically triggered by a pull request so cannot be
457
+ # created using this method.
458
+ #
459
+ #
460
+ #
461
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReviewType.html
420
462
  #
421
463
  # @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.
464
+ # The name of the code review. The name of each code review in your AWS
465
+ # account must be unique.
424
466
  #
425
467
  # @option params [required, String] :repository_association_arn
426
468
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
427
- # object. You can retrieve this ARN by calling `ListRepositories`.
469
+ # object. You can retrieve this ARN by calling [
470
+ # `ListRepositoryAssociations` ][2].
428
471
  #
429
472
  # A code review can only be created on an associated repository. This is
430
473
  # the ARN of the associated repository.
@@ -432,10 +475,12 @@ module Aws::CodeGuruReviewer
432
475
  #
433
476
  #
434
477
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
478
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
435
479
  #
436
480
  # @option params [required, Types::CodeReviewType] :type
437
481
  # The type of code review to create. This is specified using a [
438
- # `CodeReviewType` ][1] object.
482
+ # `CodeReviewType` ][1] object. You can create a code review only of
483
+ # type `RepositoryAnalysis`.
439
484
  #
440
485
  #
441
486
  #
@@ -456,7 +501,7 @@ module Aws::CodeGuruReviewer
456
501
  #
457
502
  # resp = client.create_code_review({
458
503
  # name: "CodeReviewName", # required
459
- # repository_association_arn: "Arn", # required
504
+ # repository_association_arn: "AssociationArn", # required
460
505
  # type: { # required
461
506
  # repository_analysis: { # required
462
507
  # repository_head: { # required
@@ -483,6 +528,7 @@ module Aws::CodeGuruReviewer
483
528
  # resp.code_review.source_code_type.commit_diff.source_commit #=> String
484
529
  # resp.code_review.source_code_type.commit_diff.destination_commit #=> String
485
530
  # resp.code_review.source_code_type.repository_head.branch_name #=> String
531
+ # resp.code_review.association_arn #=> String
486
532
  # resp.code_review.metrics.metered_lines_of_code_count #=> Integer
487
533
  # resp.code_review.metrics.findings_count #=> Integer
488
534
  #
@@ -531,6 +577,7 @@ module Aws::CodeGuruReviewer
531
577
  # resp.code_review.source_code_type.commit_diff.source_commit #=> String
532
578
  # resp.code_review.source_code_type.commit_diff.destination_commit #=> String
533
579
  # resp.code_review.source_code_type.repository_head.branch_name #=> String
580
+ # resp.code_review.association_arn #=> String
534
581
  # resp.code_review.metrics.metered_lines_of_code_count #=> Integer
535
582
  # resp.code_review.metrics.findings_count #=> Integer
536
583
  #
@@ -610,20 +657,23 @@ module Aws::CodeGuruReviewer
610
657
  #
611
658
  # @option params [required, String] :association_arn
612
659
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
613
- # object. You can retrieve this ARN by calling `ListRepositories`.
660
+ # object. You can retrieve this ARN by calling [
661
+ # `ListRepositoryAssociations` ][2].
614
662
  #
615
663
  #
616
664
  #
617
665
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
666
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
618
667
  #
619
668
  # @return [Types::DescribeRepositoryAssociationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
620
669
  #
621
670
  # * {Types::DescribeRepositoryAssociationResponse#repository_association #repository_association} => Types::RepositoryAssociation
671
+ # * {Types::DescribeRepositoryAssociationResponse#tags #tags} => Hash&lt;String,String&gt;
622
672
  #
623
673
  # @example Request syntax with placeholder values
624
674
  #
625
675
  # resp = client.describe_repository_association({
626
- # association_arn: "Arn", # required
676
+ # association_arn: "AssociationArn", # required
627
677
  # })
628
678
  #
629
679
  # @example Response structure
@@ -634,10 +684,14 @@ module Aws::CodeGuruReviewer
634
684
  # resp.repository_association.name #=> String
635
685
  # resp.repository_association.owner #=> String
636
686
  # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
637
- # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
687
+ # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
638
688
  # resp.repository_association.state_reason #=> String
639
689
  # resp.repository_association.last_updated_time_stamp #=> Time
640
690
  # resp.repository_association.created_time_stamp #=> Time
691
+ # resp.repository_association.kms_key_details.kms_key_id #=> String
692
+ # resp.repository_association.kms_key_details.encryption_option #=> String, one of "AWS_OWNED_CMK", "CUSTOMER_MANAGED_CMK"
693
+ # resp.tags #=> Hash
694
+ # resp.tags["TagKey"] #=> String
641
695
  #
642
696
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociation AWS API Documentation
643
697
  #
@@ -653,20 +707,23 @@ module Aws::CodeGuruReviewer
653
707
  #
654
708
  # @option params [required, String] :association_arn
655
709
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
656
- # object. You can retrieve this ARN by calling `ListRepositories`.
710
+ # object. You can retrieve this ARN by calling [
711
+ # `ListRepositoryAssociations` ][2].
657
712
  #
658
713
  #
659
714
  #
660
715
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
716
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
661
717
  #
662
718
  # @return [Types::DisassociateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
663
719
  #
664
720
  # * {Types::DisassociateRepositoryResponse#repository_association #repository_association} => Types::RepositoryAssociation
721
+ # * {Types::DisassociateRepositoryResponse#tags #tags} => Hash&lt;String,String&gt;
665
722
  #
666
723
  # @example Request syntax with placeholder values
667
724
  #
668
725
  # resp = client.disassociate_repository({
669
- # association_arn: "Arn", # required
726
+ # association_arn: "AssociationArn", # required
670
727
  # })
671
728
  #
672
729
  # @example Response structure
@@ -677,10 +734,14 @@ module Aws::CodeGuruReviewer
677
734
  # resp.repository_association.name #=> String
678
735
  # resp.repository_association.owner #=> String
679
736
  # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
680
- # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
737
+ # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
681
738
  # resp.repository_association.state_reason #=> String
682
739
  # resp.repository_association.last_updated_time_stamp #=> Time
683
740
  # resp.repository_association.created_time_stamp #=> Time
741
+ # resp.repository_association.kms_key_details.kms_key_id #=> String
742
+ # resp.repository_association.kms_key_details.encryption_option #=> String, one of "AWS_OWNED_CMK", "CUSTOMER_MANAGED_CMK"
743
+ # resp.tags #=> Hash
744
+ # resp.tags["TagKey"] #=> String
684
745
  #
685
746
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepository AWS API Documentation
686
747
  #
@@ -945,6 +1006,18 @@ module Aws::CodeGuruReviewer
945
1006
  # * **Disassociating**\: CodeGuru Reviewer is removing the repository's
946
1007
  # pull request notifications and source code access.
947
1008
  #
1009
+ # * **Disassociated**\: CodeGuru Reviewer successfully disassociated the
1010
+ # repository. You can create a new association with this repository if
1011
+ # you want to review source code in it later. You can control access
1012
+ # to code reviews created in an associated repository with tags after
1013
+ # it has been disassociated. For more information, see [Using tags to
1014
+ # control access to associated repositories][1] in the *Amazon
1015
+ # CodeGuru Reviewer User Guide*.
1016
+ #
1017
+ #
1018
+ #
1019
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html
1020
+ #
948
1021
  # @option params [Array<String>] :names
949
1022
  # List of repository names to use as a filter.
950
1023
  #
@@ -989,7 +1062,7 @@ module Aws::CodeGuruReviewer
989
1062
  #
990
1063
  # resp = client.list_repository_associations({
991
1064
  # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
992
- # states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating
1065
+ # states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating, Disassociated
993
1066
  # names: ["Name"],
994
1067
  # owners: ["Owner"],
995
1068
  # max_results: 1,
@@ -1006,7 +1079,7 @@ module Aws::CodeGuruReviewer
1006
1079
  # resp.repository_association_summaries[0].name #=> String
1007
1080
  # resp.repository_association_summaries[0].owner #=> String
1008
1081
  # 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"
1082
+ # resp.repository_association_summaries[0].state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
1010
1083
  # resp.next_token #=> String
1011
1084
  #
1012
1085
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRepositoryAssociations AWS API Documentation
@@ -1018,6 +1091,43 @@ module Aws::CodeGuruReviewer
1018
1091
  req.send_request(options)
1019
1092
  end
1020
1093
 
1094
+ # Returns the list of tags associated with an associated repository
1095
+ # resource.
1096
+ #
1097
+ # @option params [required, String] :resource_arn
1098
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1099
+ # object. You can retrieve this ARN by calling [
1100
+ # `ListRepositoryAssociations` ][2].
1101
+ #
1102
+ #
1103
+ #
1104
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1105
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1106
+ #
1107
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1108
+ #
1109
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash&lt;String,String&gt;
1110
+ #
1111
+ # @example Request syntax with placeholder values
1112
+ #
1113
+ # resp = client.list_tags_for_resource({
1114
+ # resource_arn: "AssociationArn", # required
1115
+ # })
1116
+ #
1117
+ # @example Response structure
1118
+ #
1119
+ # resp.tags #=> Hash
1120
+ # resp.tags["TagKey"] #=> String
1121
+ #
1122
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListTagsForResource AWS API Documentation
1123
+ #
1124
+ # @overload list_tags_for_resource(params = {})
1125
+ # @param [Hash] params ({})
1126
+ def list_tags_for_resource(params = {}, options = {})
1127
+ req = build_request(:list_tags_for_resource, params)
1128
+ req.send_request(options)
1129
+ end
1130
+
1021
1131
  # Stores customer feedback for a CodeGuru Reviewer recommendation. When
1022
1132
  # this API is called again with different reactions the previous
1023
1133
  # feedback is overwritten.
@@ -1056,6 +1166,84 @@ module Aws::CodeGuruReviewer
1056
1166
  req.send_request(options)
1057
1167
  end
1058
1168
 
1169
+ # Adds one or more tags to an associated repository.
1170
+ #
1171
+ # @option params [required, String] :resource_arn
1172
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1173
+ # object. You can retrieve this ARN by calling [
1174
+ # `ListRepositoryAssociations` ][2].
1175
+ #
1176
+ #
1177
+ #
1178
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1179
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1180
+ #
1181
+ # @option params [required, Hash<String,String>] :tags
1182
+ # An array of key-value pairs used to tag an associated repository. A
1183
+ # tag is a custom attribute label with two parts:
1184
+ #
1185
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`, or
1186
+ # `Secret`). Tag keys are case sensitive.
1187
+ #
1188
+ # * An optional field known as a *tag value* (for example,
1189
+ # `111122223333`, `Production`, or a team name). Omitting the tag
1190
+ # value is the same as using an empty string. Like tag keys, tag
1191
+ # values are case sensitive.
1192
+ #
1193
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1194
+ #
1195
+ # @example Request syntax with placeholder values
1196
+ #
1197
+ # resp = client.tag_resource({
1198
+ # resource_arn: "AssociationArn", # required
1199
+ # tags: { # required
1200
+ # "TagKey" => "TagValue",
1201
+ # },
1202
+ # })
1203
+ #
1204
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/TagResource AWS API Documentation
1205
+ #
1206
+ # @overload tag_resource(params = {})
1207
+ # @param [Hash] params ({})
1208
+ def tag_resource(params = {}, options = {})
1209
+ req = build_request(:tag_resource, params)
1210
+ req.send_request(options)
1211
+ end
1212
+
1213
+ # Removes a tag from an associated repository.
1214
+ #
1215
+ # @option params [required, String] :resource_arn
1216
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1217
+ # object. You can retrieve this ARN by calling [
1218
+ # `ListRepositoryAssociations` ][2].
1219
+ #
1220
+ #
1221
+ #
1222
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1223
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1224
+ #
1225
+ # @option params [required, Array<String>] :tag_keys
1226
+ # A list of the keys for each tag you want to remove from an associated
1227
+ # repository.
1228
+ #
1229
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1230
+ #
1231
+ # @example Request syntax with placeholder values
1232
+ #
1233
+ # resp = client.untag_resource({
1234
+ # resource_arn: "AssociationArn", # required
1235
+ # tag_keys: ["TagKey"], # required
1236
+ # })
1237
+ #
1238
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/UntagResource AWS API Documentation
1239
+ #
1240
+ # @overload untag_resource(params = {})
1241
+ # @param [Hash] params ({})
1242
+ def untag_resource(params = {}, options = {})
1243
+ req = build_request(:untag_resource, params)
1244
+ req.send_request(options)
1245
+ end
1246
+
1059
1247
  # @!endgroup
1060
1248
 
1061
1249
  # @param params ({})
@@ -1069,7 +1257,7 @@ module Aws::CodeGuruReviewer
1069
1257
  params: params,
1070
1258
  config: config)
1071
1259
  context[:gem_name] = 'aws-sdk-codegurureviewer'
1072
- context[:gem_version] = '1.12.0'
1260
+ context[:gem_version] = '1.17.0'
1073
1261
  Seahorse::Client::Request.new(handlers, context)
1074
1262
  end
1075
1263