aws-sdk-codegurureviewer 1.10.0 → 1.15.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.
@@ -17,16 +17,22 @@ module Aws::CodeGuruReviewer
17
17
  Arn = Shapes::StringShape.new(name: 'Arn')
18
18
  AssociateRepositoryRequest = Shapes::StructureShape.new(name: 'AssociateRepositoryRequest')
19
19
  AssociateRepositoryResponse = Shapes::StructureShape.new(name: 'AssociateRepositoryResponse')
20
+ AssociationArn = Shapes::StringShape.new(name: 'AssociationArn')
20
21
  AssociationId = Shapes::StringShape.new(name: 'AssociationId')
22
+ BranchName = Shapes::StringShape.new(name: 'BranchName')
21
23
  ClientRequestToken = Shapes::StringShape.new(name: 'ClientRequestToken')
22
24
  CodeCommitRepository = Shapes::StructureShape.new(name: 'CodeCommitRepository')
23
25
  CodeReview = Shapes::StructureShape.new(name: 'CodeReview')
26
+ CodeReviewName = Shapes::StringShape.new(name: 'CodeReviewName')
24
27
  CodeReviewSummaries = Shapes::ListShape.new(name: 'CodeReviewSummaries')
25
28
  CodeReviewSummary = Shapes::StructureShape.new(name: 'CodeReviewSummary')
29
+ CodeReviewType = Shapes::StructureShape.new(name: 'CodeReviewType')
26
30
  CommitDiffSourceCodeType = Shapes::StructureShape.new(name: 'CommitDiffSourceCodeType')
27
31
  CommitId = Shapes::StringShape.new(name: 'CommitId')
28
32
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
29
33
  ConnectionArn = Shapes::StringShape.new(name: 'ConnectionArn')
34
+ CreateCodeReviewRequest = Shapes::StructureShape.new(name: 'CreateCodeReviewRequest')
35
+ CreateCodeReviewResponse = Shapes::StructureShape.new(name: 'CreateCodeReviewResponse')
30
36
  DescribeCodeReviewRequest = Shapes::StructureShape.new(name: 'DescribeCodeReviewRequest')
31
37
  DescribeCodeReviewResponse = Shapes::StructureShape.new(name: 'DescribeCodeReviewResponse')
32
38
  DescribeRecommendationFeedbackRequest = Shapes::StructureShape.new(name: 'DescribeRecommendationFeedbackRequest')
@@ -51,6 +57,8 @@ module Aws::CodeGuruReviewer
51
57
  ListRecommendationsResponse = Shapes::StructureShape.new(name: 'ListRecommendationsResponse')
52
58
  ListRepositoryAssociationsRequest = Shapes::StructureShape.new(name: 'ListRepositoryAssociationsRequest')
53
59
  ListRepositoryAssociationsResponse = Shapes::StructureShape.new(name: 'ListRepositoryAssociationsResponse')
60
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
61
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
54
62
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
55
63
  MeteredLinesOfCodeCount = Shapes::IntegerShape.new(name: 'MeteredLinesOfCodeCount')
56
64
  Metrics = Shapes::StructureShape.new(name: 'Metrics')
@@ -76,20 +84,30 @@ module Aws::CodeGuruReviewer
76
84
  RecommendationSummaries = Shapes::ListShape.new(name: 'RecommendationSummaries')
77
85
  RecommendationSummary = Shapes::StructureShape.new(name: 'RecommendationSummary')
78
86
  Repository = Shapes::StructureShape.new(name: 'Repository')
87
+ RepositoryAnalysis = Shapes::StructureShape.new(name: 'RepositoryAnalysis')
79
88
  RepositoryAssociation = Shapes::StructureShape.new(name: 'RepositoryAssociation')
80
89
  RepositoryAssociationState = Shapes::StringShape.new(name: 'RepositoryAssociationState')
81
90
  RepositoryAssociationStates = Shapes::ListShape.new(name: 'RepositoryAssociationStates')
82
91
  RepositoryAssociationSummaries = Shapes::ListShape.new(name: 'RepositoryAssociationSummaries')
83
92
  RepositoryAssociationSummary = Shapes::StructureShape.new(name: 'RepositoryAssociationSummary')
93
+ RepositoryHeadSourceCodeType = Shapes::StructureShape.new(name: 'RepositoryHeadSourceCodeType')
84
94
  RepositoryNames = Shapes::ListShape.new(name: 'RepositoryNames')
85
95
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
86
96
  SourceCodeType = Shapes::StructureShape.new(name: 'SourceCodeType')
87
97
  StateReason = Shapes::StringShape.new(name: 'StateReason')
98
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
99
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
100
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
101
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
102
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
103
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
88
104
  Text = Shapes::StringShape.new(name: 'Text')
89
105
  ThirdPartySourceRepository = Shapes::StructureShape.new(name: 'ThirdPartySourceRepository')
90
106
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
91
107
  TimeStamp = Shapes::TimestampShape.new(name: 'TimeStamp')
92
108
  Type = Shapes::StringShape.new(name: 'Type')
109
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
110
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
93
111
  UserId = Shapes::StringShape.new(name: 'UserId')
94
112
  UserIds = Shapes::ListShape.new(name: 'UserIds')
95
113
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
@@ -99,9 +117,11 @@ module Aws::CodeGuruReviewer
99
117
 
100
118
  AssociateRepositoryRequest.add_member(:repository, Shapes::ShapeRef.new(shape: Repository, required: true, location_name: "Repository"))
101
119
  AssociateRepositoryRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
120
+ AssociateRepositoryRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
102
121
  AssociateRepositoryRequest.struct_class = Types::AssociateRepositoryRequest
103
122
 
104
123
  AssociateRepositoryResponse.add_member(:repository_association, Shapes::ShapeRef.new(shape: RepositoryAssociation, location_name: "RepositoryAssociation"))
124
+ AssociateRepositoryResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
105
125
  AssociateRepositoryResponse.struct_class = Types::AssociateRepositoryResponse
106
126
 
107
127
  CodeCommitRepository.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "Name"))
@@ -119,6 +139,7 @@ module Aws::CodeGuruReviewer
119
139
  CodeReview.add_member(:type, Shapes::ShapeRef.new(shape: Type, location_name: "Type"))
120
140
  CodeReview.add_member(:pull_request_id, Shapes::ShapeRef.new(shape: PullRequestId, location_name: "PullRequestId"))
121
141
  CodeReview.add_member(:source_code_type, Shapes::ShapeRef.new(shape: SourceCodeType, location_name: "SourceCodeType"))
142
+ CodeReview.add_member(:association_arn, Shapes::ShapeRef.new(shape: AssociationArn, location_name: "AssociationArn"))
122
143
  CodeReview.add_member(:metrics, Shapes::ShapeRef.new(shape: Metrics, location_name: "Metrics"))
123
144
  CodeReview.struct_class = Types::CodeReview
124
145
 
@@ -137,6 +158,9 @@ module Aws::CodeGuruReviewer
137
158
  CodeReviewSummary.add_member(:metrics_summary, Shapes::ShapeRef.new(shape: MetricsSummary, location_name: "MetricsSummary"))
138
159
  CodeReviewSummary.struct_class = Types::CodeReviewSummary
139
160
 
161
+ CodeReviewType.add_member(:repository_analysis, Shapes::ShapeRef.new(shape: RepositoryAnalysis, required: true, location_name: "RepositoryAnalysis"))
162
+ CodeReviewType.struct_class = Types::CodeReviewType
163
+
140
164
  CommitDiffSourceCodeType.add_member(:source_commit, Shapes::ShapeRef.new(shape: CommitId, location_name: "SourceCommit"))
141
165
  CommitDiffSourceCodeType.add_member(:destination_commit, Shapes::ShapeRef.new(shape: CommitId, location_name: "DestinationCommit"))
142
166
  CommitDiffSourceCodeType.struct_class = Types::CommitDiffSourceCodeType
@@ -144,6 +168,15 @@ module Aws::CodeGuruReviewer
144
168
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
145
169
  ConflictException.struct_class = Types::ConflictException
146
170
 
171
+ CreateCodeReviewRequest.add_member(:name, Shapes::ShapeRef.new(shape: CodeReviewName, required: true, location_name: "Name"))
172
+ CreateCodeReviewRequest.add_member(:repository_association_arn, Shapes::ShapeRef.new(shape: AssociationArn, required: true, location_name: "RepositoryAssociationArn"))
173
+ CreateCodeReviewRequest.add_member(:type, Shapes::ShapeRef.new(shape: CodeReviewType, required: true, location_name: "Type"))
174
+ CreateCodeReviewRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
175
+ CreateCodeReviewRequest.struct_class = Types::CreateCodeReviewRequest
176
+
177
+ CreateCodeReviewResponse.add_member(:code_review, Shapes::ShapeRef.new(shape: CodeReview, location_name: "CodeReview"))
178
+ CreateCodeReviewResponse.struct_class = Types::CreateCodeReviewResponse
179
+
147
180
  DescribeCodeReviewRequest.add_member(:code_review_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "CodeReviewArn"))
148
181
  DescribeCodeReviewRequest.struct_class = Types::DescribeCodeReviewRequest
149
182
 
@@ -158,16 +191,18 @@ module Aws::CodeGuruReviewer
158
191
  DescribeRecommendationFeedbackResponse.add_member(:recommendation_feedback, Shapes::ShapeRef.new(shape: RecommendationFeedback, location_name: "RecommendationFeedback"))
159
192
  DescribeRecommendationFeedbackResponse.struct_class = Types::DescribeRecommendationFeedbackResponse
160
193
 
161
- DescribeRepositoryAssociationRequest.add_member(:association_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "AssociationArn"))
194
+ DescribeRepositoryAssociationRequest.add_member(:association_arn, Shapes::ShapeRef.new(shape: AssociationArn, required: true, location: "uri", location_name: "AssociationArn"))
162
195
  DescribeRepositoryAssociationRequest.struct_class = Types::DescribeRepositoryAssociationRequest
163
196
 
164
197
  DescribeRepositoryAssociationResponse.add_member(:repository_association, Shapes::ShapeRef.new(shape: RepositoryAssociation, location_name: "RepositoryAssociation"))
198
+ DescribeRepositoryAssociationResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
165
199
  DescribeRepositoryAssociationResponse.struct_class = Types::DescribeRepositoryAssociationResponse
166
200
 
167
- DisassociateRepositoryRequest.add_member(:association_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "AssociationArn"))
201
+ DisassociateRepositoryRequest.add_member(:association_arn, Shapes::ShapeRef.new(shape: AssociationArn, required: true, location: "uri", location_name: "AssociationArn"))
168
202
  DisassociateRepositoryRequest.struct_class = Types::DisassociateRepositoryRequest
169
203
 
170
204
  DisassociateRepositoryResponse.add_member(:repository_association, Shapes::ShapeRef.new(shape: RepositoryAssociation, location_name: "RepositoryAssociation"))
205
+ DisassociateRepositoryResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
171
206
  DisassociateRepositoryResponse.struct_class = Types::DisassociateRepositoryResponse
172
207
 
173
208
  InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
@@ -219,6 +254,12 @@ module Aws::CodeGuruReviewer
219
254
  ListRepositoryAssociationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
220
255
  ListRepositoryAssociationsResponse.struct_class = Types::ListRepositoryAssociationsResponse
221
256
 
257
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AssociationArn, required: true, location: "uri", location_name: "resourceArn"))
258
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
259
+
260
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
261
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
262
+
222
263
  Metrics.add_member(:metered_lines_of_code_count, Shapes::ShapeRef.new(shape: MeteredLinesOfCodeCount, location_name: "MeteredLinesOfCodeCount"))
223
264
  Metrics.add_member(:findings_count, Shapes::ShapeRef.new(shape: FindingsCount, location_name: "FindingsCount"))
224
265
  Metrics.struct_class = Types::Metrics
@@ -276,6 +317,9 @@ module Aws::CodeGuruReviewer
276
317
  Repository.add_member(:git_hub_enterprise_server, Shapes::ShapeRef.new(shape: ThirdPartySourceRepository, location_name: "GitHubEnterpriseServer"))
277
318
  Repository.struct_class = Types::Repository
278
319
 
320
+ RepositoryAnalysis.add_member(:repository_head, Shapes::ShapeRef.new(shape: RepositoryHeadSourceCodeType, required: true, location_name: "RepositoryHead"))
321
+ RepositoryAnalysis.struct_class = Types::RepositoryAnalysis
322
+
279
323
  RepositoryAssociation.add_member(:association_id, Shapes::ShapeRef.new(shape: AssociationId, location_name: "AssociationId"))
280
324
  RepositoryAssociation.add_member(:association_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "AssociationArn"))
281
325
  RepositoryAssociation.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, location_name: "ConnectionArn"))
@@ -302,14 +346,29 @@ module Aws::CodeGuruReviewer
302
346
  RepositoryAssociationSummary.add_member(:state, Shapes::ShapeRef.new(shape: RepositoryAssociationState, location_name: "State"))
303
347
  RepositoryAssociationSummary.struct_class = Types::RepositoryAssociationSummary
304
348
 
349
+ RepositoryHeadSourceCodeType.add_member(:branch_name, Shapes::ShapeRef.new(shape: BranchName, required: true, location_name: "BranchName"))
350
+ RepositoryHeadSourceCodeType.struct_class = Types::RepositoryHeadSourceCodeType
351
+
305
352
  RepositoryNames.member = Shapes::ShapeRef.new(shape: Name)
306
353
 
307
354
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
308
355
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
309
356
 
310
357
  SourceCodeType.add_member(:commit_diff, Shapes::ShapeRef.new(shape: CommitDiffSourceCodeType, location_name: "CommitDiff"))
358
+ SourceCodeType.add_member(:repository_head, Shapes::ShapeRef.new(shape: RepositoryHeadSourceCodeType, location_name: "RepositoryHead"))
311
359
  SourceCodeType.struct_class = Types::SourceCodeType
312
360
 
361
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
362
+
363
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
364
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
365
+
366
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AssociationArn, required: true, location: "uri", location_name: "resourceArn"))
367
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
368
+ TagResourceRequest.struct_class = Types::TagResourceRequest
369
+
370
+ TagResourceResponse.struct_class = Types::TagResourceResponse
371
+
313
372
  ThirdPartySourceRepository.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "Name"))
314
373
  ThirdPartySourceRepository.add_member(:connection_arn, Shapes::ShapeRef.new(shape: ConnectionArn, required: true, location_name: "ConnectionArn"))
315
374
  ThirdPartySourceRepository.add_member(:owner, Shapes::ShapeRef.new(shape: Owner, required: true, location_name: "Owner"))
@@ -318,6 +377,12 @@ module Aws::CodeGuruReviewer
318
377
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
319
378
  ThrottlingException.struct_class = Types::ThrottlingException
320
379
 
380
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AssociationArn, required: true, location: "uri", location_name: "resourceArn"))
381
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
382
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
383
+
384
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
385
+
321
386
  UserIds.member = Shapes::ShapeRef.new(shape: UserId)
322
387
 
323
388
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
@@ -355,6 +420,20 @@ module Aws::CodeGuruReviewer
355
420
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
356
421
  end)
357
422
 
423
+ api.add_operation(:create_code_review, Seahorse::Model::Operation.new.tap do |o|
424
+ o.name = "CreateCodeReview"
425
+ o.http_method = "POST"
426
+ o.http_request_uri = "/codereviews"
427
+ o.input = Shapes::ShapeRef.new(shape: CreateCodeReviewRequest)
428
+ o.output = Shapes::ShapeRef.new(shape: CreateCodeReviewResponse)
429
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
430
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
431
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
432
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
433
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
434
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
435
+ end)
436
+
358
437
  api.add_operation(:describe_code_review, Seahorse::Model::Operation.new.tap do |o|
359
438
  o.name = "DescribeCodeReview"
360
439
  o.http_method = "GET"
@@ -481,6 +560,17 @@ module Aws::CodeGuruReviewer
481
560
  )
482
561
  end)
483
562
 
563
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
564
+ o.name = "ListTagsForResource"
565
+ o.http_method = "GET"
566
+ o.http_request_uri = "/tags/{resourceArn}"
567
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
568
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
569
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
570
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
571
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
572
+ end)
573
+
484
574
  api.add_operation(:put_recommendation_feedback, Seahorse::Model::Operation.new.tap do |o|
485
575
  o.name = "PutRecommendationFeedback"
486
576
  o.http_method = "PUT"
@@ -493,6 +583,28 @@ module Aws::CodeGuruReviewer
493
583
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
494
584
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
495
585
  end)
586
+
587
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
588
+ o.name = "TagResource"
589
+ o.http_method = "POST"
590
+ o.http_request_uri = "/tags/{resourceArn}"
591
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
592
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
593
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
594
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
595
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
596
+ end)
597
+
598
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
599
+ o.name = "UntagResource"
600
+ o.http_method = "DELETE"
601
+ o.http_request_uri = "/tags/{resourceArn}"
602
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
603
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
604
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
605
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
606
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
607
+ end)
496
608
  end
497
609
 
498
610
  end
@@ -43,6 +43,9 @@ module Aws::CodeGuruReviewer
43
43
  # },
44
44
  # },
45
45
  # client_request_token: "ClientRequestToken",
46
+ # tags: {
47
+ # "TagKey" => "TagValue",
48
+ # },
46
49
  # }
47
50
  #
48
51
  # @!attribute [rw] repository
@@ -50,27 +53,6 @@ module Aws::CodeGuruReviewer
50
53
  # @return [Types::Repository]
51
54
  #
52
55
  # @!attribute [rw] client_request_token
53
- # Unique, case-sensitive identifier that you provide to ensure the
54
- # idempotency of the request.
55
- #
56
- # To add a new repository association, this parameter specifies a
57
- # unique identifier for the new repository association that helps
58
- # ensure idempotency.
59
- #
60
- # If you use the AWS CLI or one of the AWS SDKs to call this
61
- # operation, you can leave this parameter empty. The CLI or SDK
62
- # generates a random UUID for you and includes that in the request. If
63
- # you don't use the SDK and instead generate a raw HTTP request to
64
- # the Secrets Manager service endpoint, you must generate a
65
- # ClientRequestToken yourself for new versions and include that value
66
- # in the request.
67
- #
68
- # You typically interact with this value if you implement your own
69
- # retry logic and want to ensure that a given repository association
70
- # is not created twice. We recommend that you generate a UUID-type
71
- # value to ensure uniqueness within the specified repository
72
- # association.
73
- #
74
56
  # Amazon CodeGuru Reviewer uses this value to prevent the accidental
75
57
  # creation of duplicate repository associations if there are failures
76
58
  # and retries.
@@ -79,11 +61,25 @@ module Aws::CodeGuruReviewer
79
61
  # not need to pass this option.
80
62
  # @return [String]
81
63
  #
64
+ # @!attribute [rw] tags
65
+ # An array of key-value pairs used to tag an associated repository. A
66
+ # tag is a custom attribute label with two parts:
67
+ #
68
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`,
69
+ # or `Secret`). Tag keys are case sensitive.
70
+ #
71
+ # * An optional field known as a *tag value* (for example,
72
+ # `111122223333`, `Production`, or a team name). Omitting the tag
73
+ # value is the same as using an empty string. Like tag keys, tag
74
+ # values are case sensitive.
75
+ # @return [Hash<String,String>]
76
+ #
82
77
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepositoryRequest AWS API Documentation
83
78
  #
84
79
  class AssociateRepositoryRequest < Struct.new(
85
80
  :repository,
86
- :client_request_token)
81
+ :client_request_token,
82
+ :tags)
87
83
  SENSITIVE = []
88
84
  include Aws::Structure
89
85
  end
@@ -92,10 +88,24 @@ module Aws::CodeGuruReviewer
92
88
  # Information about the repository association.
93
89
  # @return [Types::RepositoryAssociation]
94
90
  #
91
+ # @!attribute [rw] tags
92
+ # An array of key-value pairs used to tag an associated repository. A
93
+ # tag is a custom attribute label with two parts:
94
+ #
95
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`,
96
+ # or `Secret`). Tag keys are case sensitive.
97
+ #
98
+ # * An optional field known as a *tag value* (for example,
99
+ # `111122223333`, `Production`, or a team name). Omitting the tag
100
+ # value is the same as using an empty string. Like tag keys, tag
101
+ # values are case sensitive.
102
+ # @return [Hash<String,String>]
103
+ #
95
104
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepositoryResponse AWS API Documentation
96
105
  #
97
106
  class AssociateRepositoryResponse < Struct.new(
98
- :repository_association)
107
+ :repository_association,
108
+ :tags)
99
109
  SENSITIVE = []
100
110
  include Aws::Structure
101
111
  end
@@ -128,7 +138,8 @@ module Aws::CodeGuruReviewer
128
138
  include Aws::Structure
129
139
  end
130
140
 
131
- # Information about a code review.
141
+ # Information about a code review. A code review belongs to the
142
+ # associated repository that contains the reviewed code.
132
143
  #
133
144
  # @!attribute [rw] name
134
145
  # The name of the code review.
@@ -149,8 +160,8 @@ module Aws::CodeGuruReviewer
149
160
  # @!attribute [rw] owner
150
161
  # The owner of the repository. For an AWS CodeCommit repository, this
151
162
  # is the AWS account ID of the account that owns the repository. For a
152
- # GitHub or Bitbucket repository, this is the username for the account
153
- # that owns the repository.
163
+ # GitHub, GitHub Enterprise Server, or Bitbucket repository, this is
164
+ # the username for the account that owns the repository.
154
165
  # @return [String]
155
166
  #
156
167
  # @!attribute [rw] provider_type
@@ -197,6 +208,17 @@ module Aws::CodeGuruReviewer
197
208
  # The type of the source code for the code review.
198
209
  # @return [Types::SourceCodeType]
199
210
  #
211
+ # @!attribute [rw] association_arn
212
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
213
+ # that contains the reviewed source code. You can retrieve associated
214
+ # repository ARNs by calling [ `ListRepositoryAssociations` ][2].
215
+ #
216
+ #
217
+ #
218
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
219
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
220
+ # @return [String]
221
+ #
200
222
  # @!attribute [rw] metrics
201
223
  # The statistics from the code review.
202
224
  # @return [Types::Metrics]
@@ -216,6 +238,7 @@ module Aws::CodeGuruReviewer
216
238
  :type,
217
239
  :pull_request_id,
218
240
  :source_code_type,
241
+ :association_arn,
219
242
  :metrics)
220
243
  SENSITIVE = []
221
244
  include Aws::Structure
@@ -242,8 +265,8 @@ module Aws::CodeGuruReviewer
242
265
  # @!attribute [rw] owner
243
266
  # The owner of the repository. For an AWS CodeCommit repository, this
244
267
  # is the AWS account ID of the account that owns the repository. For a
245
- # GitHub or Bitbucket repository, this is the username for the account
246
- # that owns the repository.
268
+ # GitHub, GitHub Enterprise Server, or Bitbucket repository, this is
269
+ # the username for the account that owns the repository.
247
270
  # @return [String]
248
271
  #
249
272
  # @!attribute [rw] provider_type
@@ -305,14 +328,63 @@ module Aws::CodeGuruReviewer
305
328
  include Aws::Structure
306
329
  end
307
330
 
308
- # The commit diff for the pull request.
331
+ # The type of a code review. There are two code review types:
332
+ #
333
+ # * `PullRequest` - A code review that is automatically triggered by a
334
+ # pull request on an assocaited repository. Because this type of code
335
+ # review is automatically generated, you cannot specify this code
336
+ # review type using [ `CreateCodeReview` ][1].
337
+ #
338
+ # * `RepositoryAnalysis` - A code review that analyzes all code under a
339
+ # specified branch in an associated respository. The assocated
340
+ # repository is specified using its ARN in [ `CreateCodeReview` ][1].
341
+ #
342
+ #
343
+ #
344
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CreateCodeReview
345
+ #
346
+ # @note When making an API call, you may pass CodeReviewType
347
+ # data as a hash:
348
+ #
349
+ # {
350
+ # repository_analysis: { # required
351
+ # repository_head: { # required
352
+ # branch_name: "BranchName", # required
353
+ # },
354
+ # },
355
+ # }
356
+ #
357
+ # @!attribute [rw] repository_analysis
358
+ # A code review that analyzes all code under a specified branch in an
359
+ # associated respository. The assocated repository is specified using
360
+ # its ARN in [ `CreateCodeReview` ][1].
361
+ #
362
+ #
363
+ #
364
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CreateCodeReview
365
+ # @return [Types::RepositoryAnalysis]
366
+ #
367
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CodeReviewType AWS API Documentation
368
+ #
369
+ class CodeReviewType < Struct.new(
370
+ :repository_analysis)
371
+ SENSITIVE = []
372
+ include Aws::Structure
373
+ end
374
+
375
+ # A type of [ `SourceCodeType` ][1] that specifies the commit diff for a
376
+ # pull request on an associated repository.
377
+ #
378
+ #
379
+ #
380
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType
309
381
  #
310
382
  # @!attribute [rw] source_commit
311
- # The SHA of the source commit.
383
+ # The SHA of the source commit used to generate a commit diff.
312
384
  # @return [String]
313
385
  #
314
386
  # @!attribute [rw] destination_commit
315
- # The SHA of the destination commit.
387
+ # The SHA of the destination commit used to generate a commit diff.
316
388
  # @return [String]
317
389
  #
318
390
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CommitDiffSourceCodeType AWS API Documentation
@@ -339,6 +411,84 @@ module Aws::CodeGuruReviewer
339
411
  include Aws::Structure
340
412
  end
341
413
 
414
+ # @note When making an API call, you may pass CreateCodeReviewRequest
415
+ # data as a hash:
416
+ #
417
+ # {
418
+ # name: "CodeReviewName", # required
419
+ # repository_association_arn: "AssociationArn", # required
420
+ # type: { # required
421
+ # repository_analysis: { # required
422
+ # repository_head: { # required
423
+ # branch_name: "BranchName", # required
424
+ # },
425
+ # },
426
+ # },
427
+ # client_request_token: "ClientRequestToken",
428
+ # }
429
+ #
430
+ # @!attribute [rw] name
431
+ # The name of the code review. The name of each code review in your
432
+ # AWS account must be unique.
433
+ # @return [String]
434
+ #
435
+ # @!attribute [rw] repository_association_arn
436
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
437
+ # object. You can retrieve this ARN by calling [
438
+ # `ListRepositoryAssociations` ][2].
439
+ #
440
+ # A code review can only be created on an associated repository. This
441
+ # is the ARN of the associated repository.
442
+ #
443
+ #
444
+ #
445
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
446
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
447
+ # @return [String]
448
+ #
449
+ # @!attribute [rw] type
450
+ # The type of code review to create. This is specified using a [
451
+ # `CodeReviewType` ][1] object. You can create a code review only of
452
+ # type `RepositoryAnalysis`.
453
+ #
454
+ #
455
+ #
456
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReviewType.html
457
+ # @return [Types::CodeReviewType]
458
+ #
459
+ # @!attribute [rw] client_request_token
460
+ # Amazon CodeGuru Reviewer uses this value to prevent the accidental
461
+ # creation of duplicate code reviews if there are failures and
462
+ # retries.
463
+ #
464
+ # **A suitable default value is auto-generated.** You should normally
465
+ # not need to pass this option.
466
+ # @return [String]
467
+ #
468
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CreateCodeReviewRequest AWS API Documentation
469
+ #
470
+ class CreateCodeReviewRequest < Struct.new(
471
+ :name,
472
+ :repository_association_arn,
473
+ :type,
474
+ :client_request_token)
475
+ SENSITIVE = []
476
+ include Aws::Structure
477
+ end
478
+
479
+ # @!attribute [rw] code_review
480
+ # Information about a code review. A code review belongs to the
481
+ # associated repository that contains the reviewed code.
482
+ # @return [Types::CodeReview]
483
+ #
484
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CreateCodeReviewResponse AWS API Documentation
485
+ #
486
+ class CreateCodeReviewResponse < Struct.new(
487
+ :code_review)
488
+ SENSITIVE = []
489
+ include Aws::Structure
490
+ end
491
+
342
492
  # @note When making an API call, you may pass DescribeCodeReviewRequest
343
493
  # data as a hash:
344
494
  #
@@ -436,16 +586,18 @@ module Aws::CodeGuruReviewer
436
586
  # data as a hash:
437
587
  #
438
588
  # {
439
- # association_arn: "Arn", # required
589
+ # association_arn: "AssociationArn", # required
440
590
  # }
441
591
  #
442
592
  # @!attribute [rw] association_arn
443
593
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
444
- # object. You can retrieve this ARN by calling `ListRepositories`.
594
+ # object. You can retrieve this ARN by calling [
595
+ # `ListRepositoryAssociations` ][2].
445
596
  #
446
597
  #
447
598
  #
448
599
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
600
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
449
601
  # @return [String]
450
602
  #
451
603
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociationRequest AWS API Documentation
@@ -460,10 +612,24 @@ module Aws::CodeGuruReviewer
460
612
  # Information about the repository association.
461
613
  # @return [Types::RepositoryAssociation]
462
614
  #
615
+ # @!attribute [rw] tags
616
+ # An array of key-value pairs used to tag an associated repository. A
617
+ # tag is a custom attribute label with two parts:
618
+ #
619
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`,
620
+ # or `Secret`). Tag keys are case sensitive.
621
+ #
622
+ # * An optional field known as a *tag value* (for example,
623
+ # `111122223333`, `Production`, or a team name). Omitting the tag
624
+ # value is the same as using an empty string. Like tag keys, tag
625
+ # values are case sensitive.
626
+ # @return [Hash<String,String>]
627
+ #
463
628
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociationResponse AWS API Documentation
464
629
  #
465
630
  class DescribeRepositoryAssociationResponse < Struct.new(
466
- :repository_association)
631
+ :repository_association,
632
+ :tags)
467
633
  SENSITIVE = []
468
634
  include Aws::Structure
469
635
  end
@@ -472,16 +638,18 @@ module Aws::CodeGuruReviewer
472
638
  # data as a hash:
473
639
  #
474
640
  # {
475
- # association_arn: "Arn", # required
641
+ # association_arn: "AssociationArn", # required
476
642
  # }
477
643
  #
478
644
  # @!attribute [rw] association_arn
479
645
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
480
- # object.
646
+ # object. You can retrieve this ARN by calling [
647
+ # `ListRepositoryAssociations` ][2].
481
648
  #
482
649
  #
483
650
  #
484
651
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
652
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
485
653
  # @return [String]
486
654
  #
487
655
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepositoryRequest AWS API Documentation
@@ -496,10 +664,24 @@ module Aws::CodeGuruReviewer
496
664
  # Information about the disassociated repository.
497
665
  # @return [Types::RepositoryAssociation]
498
666
  #
667
+ # @!attribute [rw] tags
668
+ # An array of key-value pairs used to tag an associated repository. A
669
+ # tag is a custom attribute label with two parts:
670
+ #
671
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`,
672
+ # or `Secret`). Tag keys are case sensitive.
673
+ #
674
+ # * An optional field known as a *tag value* (for example,
675
+ # `111122223333`, `Production`, or a team name). Omitting the tag
676
+ # value is the same as using an empty string. Like tag keys, tag
677
+ # values are case sensitive.
678
+ # @return [Hash<String,String>]
679
+ #
499
680
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepositoryResponse AWS API Documentation
500
681
  #
501
682
  class DisassociateRepositoryResponse < Struct.new(
502
- :repository_association)
683
+ :repository_association,
684
+ :tags)
503
685
  SENSITIVE = []
504
686
  include Aws::Structure
505
687
  end
@@ -525,7 +707,7 @@ module Aws::CodeGuruReviewer
525
707
  # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
526
708
  # states: ["Completed"], # accepts Completed, Pending, Failed, Deleting
527
709
  # repository_names: ["Name"],
528
- # type: "PullRequest", # required, accepts PullRequest
710
+ # type: "PullRequest", # required, accepts PullRequest, RepositoryAnalysis
529
711
  # max_results: 1,
530
712
  # next_token: "NextToken",
531
713
  # }
@@ -746,7 +928,7 @@ module Aws::CodeGuruReviewer
746
928
  #
747
929
  # {
748
930
  # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
749
- # states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating
931
+ # states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating, Disassociated
750
932
  # names: ["Name"],
751
933
  # owners: ["Owner"],
752
934
  # max_results: 1,
@@ -769,10 +951,11 @@ module Aws::CodeGuruReviewer
769
951
  # * Setting up pull request notifications. This is required for pull
770
952
  # requests to trigger a CodeGuru Reviewer review.
771
953
  #
772
- # <note markdown="1"> If your repository `ProviderType` is `GitHub` or `Bitbucket`,
773
- # CodeGuru Reviewer creates webhooks in your repository to trigger
774
- # CodeGuru Reviewer reviews. If you delete these webhooks, reviews
775
- # of code in your repository cannot be triggered.
954
+ # <note markdown="1"> If your repository `ProviderType` is `GitHub`, `GitHub
955
+ # Enterprise Server`, or `Bitbucket`, CodeGuru Reviewer creates
956
+ # webhooks in your repository to trigger CodeGuru Reviewer
957
+ # reviews. If you delete these webhooks, reviews of code in your
958
+ # repository cannot be triggered.
776
959
  #
777
960
  # </note>
778
961
  #
@@ -783,6 +966,18 @@ module Aws::CodeGuruReviewer
783
966
  #
784
967
  # * **Disassociating**\: CodeGuru Reviewer is removing the
785
968
  # repository's pull request notifications and source code access.
969
+ #
970
+ # * **Disassociated**\: CodeGuru Reviewer successfully disassociated
971
+ # the repository. You can create a new association with this
972
+ # repository if you want to review source code in it later. You can
973
+ # control access to code reviews created in an associated repository
974
+ # with tags after it has been disassociated. For more information,
975
+ # see [Using tags to control access to associated repositories][1]
976
+ # in the *Amazon CodeGuru Reviewer User Guide*.
977
+ #
978
+ #
979
+ #
980
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html
786
981
  # @return [Array<String>]
787
982
  #
788
983
  # @!attribute [rw] names
@@ -792,9 +987,9 @@ module Aws::CodeGuruReviewer
792
987
  # @!attribute [rw] owners
793
988
  # List of owners to use as a filter. For AWS CodeCommit, it is the
794
989
  # name of the CodeCommit account that was used to associate the
795
- # repository. For other repository source providers, such as
796
- # Bitbucket, this is name of the account that was used to associate
797
- # the repository.
990
+ # repository. For other repository source providers, such as Bitbucket
991
+ # and GitHub Enterprise Server, this is name of the account that was
992
+ # used to associate the repository.
798
993
  # @return [Array<String>]
799
994
  #
800
995
  # @!attribute [rw] max_results
@@ -858,6 +1053,53 @@ module Aws::CodeGuruReviewer
858
1053
  include Aws::Structure
859
1054
  end
860
1055
 
1056
+ # @note When making an API call, you may pass ListTagsForResourceRequest
1057
+ # data as a hash:
1058
+ #
1059
+ # {
1060
+ # resource_arn: "AssociationArn", # required
1061
+ # }
1062
+ #
1063
+ # @!attribute [rw] resource_arn
1064
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1065
+ # object. You can retrieve this ARN by calling [
1066
+ # `ListRepositoryAssociations` ][2].
1067
+ #
1068
+ #
1069
+ #
1070
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1071
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1072
+ # @return [String]
1073
+ #
1074
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListTagsForResourceRequest AWS API Documentation
1075
+ #
1076
+ class ListTagsForResourceRequest < Struct.new(
1077
+ :resource_arn)
1078
+ SENSITIVE = []
1079
+ include Aws::Structure
1080
+ end
1081
+
1082
+ # @!attribute [rw] tags
1083
+ # An array of key-value pairs used to tag an associated repository. A
1084
+ # tag is a custom attribute label with two parts:
1085
+ #
1086
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`,
1087
+ # or `Secret`). Tag keys are case sensitive.
1088
+ #
1089
+ # * An optional field known as a *tag value* (for example,
1090
+ # `111122223333`, `Production`, or a team name). Omitting the tag
1091
+ # value is the same as using an empty string. Like tag keys, tag
1092
+ # values are case sensitive.
1093
+ # @return [Hash<String,String>]
1094
+ #
1095
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListTagsForResourceResponse AWS API Documentation
1096
+ #
1097
+ class ListTagsForResourceResponse < Struct.new(
1098
+ :tags)
1099
+ SENSITIVE = []
1100
+ include Aws::Structure
1101
+ end
1102
+
861
1103
  # Information about the statistics from the code review.
862
1104
  #
863
1105
  # @!attribute [rw] metered_lines_of_code_count
@@ -1146,6 +1388,40 @@ module Aws::CodeGuruReviewer
1146
1388
  include Aws::Structure
1147
1389
  end
1148
1390
 
1391
+ # A code review type that analyzes all code under a specified branch in
1392
+ # an associated respository. The assocated repository is specified using
1393
+ # its ARN when you call [ `CreateCodeReview` ][1].
1394
+ #
1395
+ #
1396
+ #
1397
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CreateCodeReview
1398
+ #
1399
+ # @note When making an API call, you may pass RepositoryAnalysis
1400
+ # data as a hash:
1401
+ #
1402
+ # {
1403
+ # repository_head: { # required
1404
+ # branch_name: "BranchName", # required
1405
+ # },
1406
+ # }
1407
+ #
1408
+ # @!attribute [rw] repository_head
1409
+ # A [ `SourceCodeType` ][1] that specifies the tip of a branch in an
1410
+ # associated repository.
1411
+ #
1412
+ #
1413
+ #
1414
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType
1415
+ # @return [Types::RepositoryHeadSourceCodeType]
1416
+ #
1417
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RepositoryAnalysis AWS API Documentation
1418
+ #
1419
+ class RepositoryAnalysis < Struct.new(
1420
+ :repository_head)
1421
+ SENSITIVE = []
1422
+ include Aws::Structure
1423
+ end
1424
+
1149
1425
  # Information about a repository association. The [
1150
1426
  # `DescribeRepositoryAssociation` ][1] operation returns a
1151
1427
  # `RepositoryAssociation` object.
@@ -1167,7 +1443,7 @@ module Aws::CodeGuruReviewer
1167
1443
  # The Amazon Resource Name (ARN) of an AWS CodeStar Connections
1168
1444
  # connection. Its format is
1169
1445
  # `arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id`.
1170
- # For more information, see [Connection][1] in the *AWS CodeStar
1446
+ # For more information, see [ `Connection` ][1] in the *AWS CodeStar
1171
1447
  # Connections API Reference*.
1172
1448
  #
1173
1449
  #
@@ -1182,8 +1458,8 @@ module Aws::CodeGuruReviewer
1182
1458
  # @!attribute [rw] owner
1183
1459
  # The owner of the repository. For an AWS CodeCommit repository, this
1184
1460
  # is the AWS account ID of the account that owns the repository. For a
1185
- # GitHub or Bitbucket repository, this is the username for the account
1186
- # that owns the repository.
1461
+ # GitHub, GitHub Enterprise Server, or Bitbucket repository, this is
1462
+ # the username for the account that owns the repository.
1187
1463
  # @return [String]
1188
1464
  #
1189
1465
  # @!attribute [rw] provider_type
@@ -1202,10 +1478,11 @@ module Aws::CodeGuruReviewer
1202
1478
  # * Setting up pull request notifications. This is required for pull
1203
1479
  # requests to trigger a CodeGuru Reviewer review.
1204
1480
  #
1205
- # <note markdown="1"> If your repository `ProviderType` is `GitHub` or `Bitbucket`,
1206
- # CodeGuru Reviewer creates webhooks in your repository to trigger
1207
- # CodeGuru Reviewer reviews. If you delete these webhooks, reviews
1208
- # of code in your repository cannot be triggered.
1481
+ # <note markdown="1"> If your repository `ProviderType` is `GitHub`, `GitHub
1482
+ # Enterprise Server`, or `Bitbucket`, CodeGuru Reviewer creates
1483
+ # webhooks in your repository to trigger CodeGuru Reviewer
1484
+ # reviews. If you delete these webhooks, reviews of code in your
1485
+ # repository cannot be triggered.
1209
1486
  #
1210
1487
  # </note>
1211
1488
  #
@@ -1216,6 +1493,18 @@ module Aws::CodeGuruReviewer
1216
1493
  #
1217
1494
  # * **Disassociating**\: CodeGuru Reviewer is removing the
1218
1495
  # repository's pull request notifications and source code access.
1496
+ #
1497
+ # * **Disassociated**\: CodeGuru Reviewer successfully disassociated
1498
+ # the repository. You can create a new association with this
1499
+ # repository if you want to review source code in it later. You can
1500
+ # control access to code reviews created in an associated repository
1501
+ # with tags after it has been disassociated. For more information,
1502
+ # see [Using tags to control access to associated repositories][1]
1503
+ # in the *Amazon CodeGuru Reviewer User Guide*.
1504
+ #
1505
+ #
1506
+ #
1507
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html
1219
1508
  # @return [String]
1220
1509
  #
1221
1510
  # @!attribute [rw] state_reason
@@ -1260,18 +1549,20 @@ module Aws::CodeGuruReviewer
1260
1549
  #
1261
1550
  # @!attribute [rw] association_arn
1262
1551
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1263
- # object.
1552
+ # object. You can retrieve this ARN by calling [
1553
+ # `ListRepositoryAssociations` ][2].
1264
1554
  #
1265
1555
  #
1266
1556
  #
1267
1557
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1558
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1268
1559
  # @return [String]
1269
1560
  #
1270
1561
  # @!attribute [rw] connection_arn
1271
1562
  # The Amazon Resource Name (ARN) of an AWS CodeStar Connections
1272
1563
  # connection. Its format is
1273
1564
  # `arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id`.
1274
- # For more information, see [Connection][1] in the *AWS CodeStar
1565
+ # For more information, see [ `Connection` ][1] in the *AWS CodeStar
1275
1566
  # Connections API Reference*.
1276
1567
  #
1277
1568
  #
@@ -1295,8 +1586,8 @@ module Aws::CodeGuruReviewer
1295
1586
  # @!attribute [rw] owner
1296
1587
  # The owner of the repository. For an AWS CodeCommit repository, this
1297
1588
  # is the AWS account ID of the account that owns the repository. For a
1298
- # GitHub or Bitbucket repository, this is the username for the account
1299
- # that owns the repository.
1589
+ # GitHub, GitHub Enterprise Server, or Bitbucket repository, this is
1590
+ # the username for the account that owns the repository.
1300
1591
  # @return [String]
1301
1592
  #
1302
1593
  # @!attribute [rw] provider_type
@@ -1315,10 +1606,11 @@ module Aws::CodeGuruReviewer
1315
1606
  # * Setting up pull request notifications. This is required for pull
1316
1607
  # requests to trigger a CodeGuru Reviewer review.
1317
1608
  #
1318
- # <note markdown="1"> If your repository `ProviderType` is `GitHub` or `Bitbucket`,
1319
- # CodeGuru Reviewer creates webhooks in your repository to trigger
1320
- # CodeGuru Reviewer reviews. If you delete these webhooks, reviews
1321
- # of code in your repository cannot be triggered.
1609
+ # <note markdown="1"> If your repository `ProviderType` is `GitHub`, `GitHub
1610
+ # Enterprise Server`, or `Bitbucket`, CodeGuru Reviewer creates
1611
+ # webhooks in your repository to trigger CodeGuru Reviewer
1612
+ # reviews. If you delete these webhooks, reviews of code in your
1613
+ # repository cannot be triggered.
1322
1614
  #
1323
1615
  # </note>
1324
1616
  #
@@ -1329,6 +1621,18 @@ module Aws::CodeGuruReviewer
1329
1621
  #
1330
1622
  # * **Disassociating**\: CodeGuru Reviewer is removing the
1331
1623
  # repository's pull request notifications and source code access.
1624
+ #
1625
+ # * **Disassociated**\: CodeGuru Reviewer successfully disassociated
1626
+ # the repository. You can create a new association with this
1627
+ # repository if you want to review source code in it later. You can
1628
+ # control access to code reviews created in an associated repository
1629
+ # with tags after it has been disassociated. For more information,
1630
+ # see [Using tags to control access to associated repositories][1]
1631
+ # in the *Amazon CodeGuru Reviewer User Guide*.
1632
+ #
1633
+ #
1634
+ #
1635
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html
1332
1636
  # @return [String]
1333
1637
  #
1334
1638
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RepositoryAssociationSummary AWS API Documentation
@@ -1346,6 +1650,33 @@ module Aws::CodeGuruReviewer
1346
1650
  include Aws::Structure
1347
1651
  end
1348
1652
 
1653
+ # A [ `SourceCodeType` ][1] that specifies the tip of a branch in an
1654
+ # associated repository.
1655
+ #
1656
+ #
1657
+ #
1658
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType
1659
+ #
1660
+ # @note When making an API call, you may pass RepositoryHeadSourceCodeType
1661
+ # data as a hash:
1662
+ #
1663
+ # {
1664
+ # branch_name: "BranchName", # required
1665
+ # }
1666
+ #
1667
+ # @!attribute [rw] branch_name
1668
+ # The name of the branch in an associated repository. The
1669
+ # `RepositoryHeadSourceCodeType` specifies the tip of this branch.
1670
+ # @return [String]
1671
+ #
1672
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/RepositoryHeadSourceCodeType AWS API Documentation
1673
+ #
1674
+ class RepositoryHeadSourceCodeType < Struct.new(
1675
+ :branch_name)
1676
+ SENSITIVE = []
1677
+ include Aws::Structure
1678
+ end
1679
+
1349
1680
  # The resource specified in the request was not found.
1350
1681
  #
1351
1682
  # @!attribute [rw] message
@@ -1359,20 +1690,84 @@ module Aws::CodeGuruReviewer
1359
1690
  include Aws::Structure
1360
1691
  end
1361
1692
 
1362
- # Information about the source code type.
1693
+ # Specifies the source code that is analyzed in a code review. A code
1694
+ # review can analyze the source code that is specified using a pull
1695
+ # request diff or a branch in an associated repository.
1363
1696
  #
1364
1697
  # @!attribute [rw] commit_diff
1365
- # The commit diff for the pull request.
1698
+ # A [ `SourceCodeType` ][1] that specifies a commit diff created by a
1699
+ # pull request on an associated repository.
1700
+ #
1701
+ #
1702
+ #
1703
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType
1366
1704
  # @return [Types::CommitDiffSourceCodeType]
1367
1705
  #
1706
+ # @!attribute [rw] repository_head
1707
+ # A [ `SourceCodeType` ][1] that specifies the tip of a branch in an
1708
+ # associated repository.
1709
+ #
1710
+ #
1711
+ #
1712
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_SourceCodeType
1713
+ # @return [Types::RepositoryHeadSourceCodeType]
1714
+ #
1368
1715
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/SourceCodeType AWS API Documentation
1369
1716
  #
1370
1717
  class SourceCodeType < Struct.new(
1371
- :commit_diff)
1718
+ :commit_diff,
1719
+ :repository_head)
1372
1720
  SENSITIVE = []
1373
1721
  include Aws::Structure
1374
1722
  end
1375
1723
 
1724
+ # @note When making an API call, you may pass TagResourceRequest
1725
+ # data as a hash:
1726
+ #
1727
+ # {
1728
+ # resource_arn: "AssociationArn", # required
1729
+ # tags: { # required
1730
+ # "TagKey" => "TagValue",
1731
+ # },
1732
+ # }
1733
+ #
1734
+ # @!attribute [rw] resource_arn
1735
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1736
+ # object. You can retrieve this ARN by calling [
1737
+ # `ListRepositoryAssociations` ][2].
1738
+ #
1739
+ #
1740
+ #
1741
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1742
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1743
+ # @return [String]
1744
+ #
1745
+ # @!attribute [rw] tags
1746
+ # An array of key-value pairs used to tag an associated repository. A
1747
+ # tag is a custom attribute label with two parts:
1748
+ #
1749
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`,
1750
+ # or `Secret`). Tag keys are case sensitive.
1751
+ #
1752
+ # * An optional field known as a *tag value* (for example,
1753
+ # `111122223333`, `Production`, or a team name). Omitting the tag
1754
+ # value is the same as using an empty string. Like tag keys, tag
1755
+ # values are case sensitive.
1756
+ # @return [Hash<String,String>]
1757
+ #
1758
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/TagResourceRequest AWS API Documentation
1759
+ #
1760
+ class TagResourceRequest < Struct.new(
1761
+ :resource_arn,
1762
+ :tags)
1763
+ SENSITIVE = []
1764
+ include Aws::Structure
1765
+ end
1766
+
1767
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/TagResourceResponse AWS API Documentation
1768
+ #
1769
+ class TagResourceResponse < Aws::EmptyStructure; end
1770
+
1376
1771
  # Information about a third-party source repository connected to
1377
1772
  # CodeGuru Reviewer.
1378
1773
  #
@@ -1393,7 +1788,7 @@ module Aws::CodeGuruReviewer
1393
1788
  # The Amazon Resource Name (ARN) of an AWS CodeStar Connections
1394
1789
  # connection. Its format is
1395
1790
  # `arn:aws:codestar-connections:region-id:aws-account_id:connection/connection-id`.
1396
- # For more information, see [Connection][1] in the *AWS CodeStar
1791
+ # For more information, see [ `Connection` ][1] in the *AWS CodeStar
1397
1792
  # Connections API Reference*.
1398
1793
  #
1399
1794
  #
@@ -1430,6 +1825,43 @@ module Aws::CodeGuruReviewer
1430
1825
  include Aws::Structure
1431
1826
  end
1432
1827
 
1828
+ # @note When making an API call, you may pass UntagResourceRequest
1829
+ # data as a hash:
1830
+ #
1831
+ # {
1832
+ # resource_arn: "AssociationArn", # required
1833
+ # tag_keys: ["TagKey"], # required
1834
+ # }
1835
+ #
1836
+ # @!attribute [rw] resource_arn
1837
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1838
+ # object. You can retrieve this ARN by calling [
1839
+ # `ListRepositoryAssociations` ][2].
1840
+ #
1841
+ #
1842
+ #
1843
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1844
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1845
+ # @return [String]
1846
+ #
1847
+ # @!attribute [rw] tag_keys
1848
+ # A list of the keys for each tag you want to remove from an
1849
+ # associated repository.
1850
+ # @return [Array<String>]
1851
+ #
1852
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/UntagResourceRequest AWS API Documentation
1853
+ #
1854
+ class UntagResourceRequest < Struct.new(
1855
+ :resource_arn,
1856
+ :tag_keys)
1857
+ SENSITIVE = []
1858
+ include Aws::Structure
1859
+ end
1860
+
1861
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/UntagResourceResponse AWS API Documentation
1862
+ #
1863
+ class UntagResourceResponse < Aws::EmptyStructure; end
1864
+
1433
1865
  # The input fails to satisfy the specified constraints.
1434
1866
  #
1435
1867
  # @!attribute [rw] message