aws-sdk-codegurureviewer 1.6.0 → 1.11.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: 2c3492806f0e3419708645d5dd13eabaebf46df016ee55ea79b8d4c0f97b7261
4
- data.tar.gz: 1d3b053ea16e00b871aa3bf54db56a19eed80bbb12c7e6ab87456e4cc3e1afd0
3
+ metadata.gz: a17597e3cae8c8f99e884e68fce8cc5f282960dc0032046c4b4f71c6bb5bcb48
4
+ data.tar.gz: 1a7883959a6263a010d49ad360e2e914ea4e484c1f80ce567797627025609699
5
5
  SHA512:
6
- metadata.gz: 6047c8a01d453f228bb8bd26a6e4e41009fbbb94469020ddde287f097e4de2db3ae1ba69241560891bb5576a0bbf3d1e434daeb8ad2abead85200b9ecdcda4e9
7
- data.tar.gz: 0c40e38a1b0c3ae695ddf56c3f7e75482b88fc9b6744b425e83eb633cf24f9e45477a48037987b47a6ff6b7269853932850674da478b7f6e830b46db3d5fd26f
6
+ metadata.gz: 77617b34fe72d1fa4c7495c52e5ef3cb96bc708f265d5cf80898248fdf6be87a95ddaf7188c7722926eb28322ab91238321fea87ced67bb79be8ac7dfb12f2be
7
+ data.tar.gz: 3d1fca8b60788280361736f86df5288d299d3eb52f98f342e3c869db2c7784affae1f44bc37434e94df39e2667ea64aff31200d98d8ffb47c1abe77724858026
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -42,9 +44,9 @@ require_relative 'aws-sdk-codegurureviewer/customizations'
42
44
  #
43
45
  # See {Errors} for more information.
44
46
  #
45
- # @service
47
+ # @!group service
46
48
  module Aws::CodeGuruReviewer
47
49
 
48
- GEM_VERSION = '1.6.0'
50
+ GEM_VERSION = '1.11.0'
49
51
 
50
52
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
29
32
 
@@ -69,6 +72,7 @@ module Aws::CodeGuruReviewer
69
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
72
76
  add_plugin(Aws::Plugins::SignatureV4)
73
77
  add_plugin(Aws::Plugins::Protocols::RestJson)
74
78
 
@@ -81,13 +85,28 @@ module Aws::CodeGuruReviewer
81
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
82
86
  # credentials.
83
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
84
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
85
103
  # from an EC2 IMDS on an EC2 instance.
86
104
  #
87
- # * `Aws::SharedCredentials` - Used for loading credentials from a
88
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
89
107
  #
90
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
91
110
  #
92
111
  # When `:credentials` are not configured directly, the following
93
112
  # locations will be searched for credentials:
@@ -97,10 +116,10 @@ module Aws::CodeGuruReviewer
97
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
98
117
  # * `~/.aws/credentials`
99
118
  # * `~/.aws/config`
100
- # * EC2 IMDS instance profile - When used by default, the timeouts are
101
- # very aggressive. Construct and pass an instance of
102
- # `Aws::InstanceProfileCredentails` to enable retries and extended
103
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
104
123
  #
105
124
  # @option options [required, String] :region
106
125
  # The AWS region to connect to. The configured `:region` is
@@ -161,7 +180,7 @@ module Aws::CodeGuruReviewer
161
180
  # @option options [String] :endpoint
162
181
  # The client endpoint is normally constructed from the `:region`
163
182
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be a valid HTTP(S) URI.
183
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
184
  #
166
185
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
186
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -308,38 +327,41 @@ module Aws::CodeGuruReviewer
308
327
 
309
328
  # @!group API Operations
310
329
 
311
- # Associates an AWS CodeCommit repository with Amazon CodeGuru Reviewer.
312
- # When you associate an AWS CodeCommit repository with Amazon CodeGuru
313
- # Reviewer, Amazon CodeGuru Reviewer will provide recommendations for
314
- # each pull request raised within the repository. You can view
315
- # recommendations in the AWS CodeCommit repository.
330
+ # Use to associate an AWS CodeCommit repository or a repostory managed
331
+ # by AWS CodeStar Connections with Amazon CodeGuru Reviewer. When you
332
+ # associate a repository, CodeGuru Reviewer reviews source code changes
333
+ # in the repository's pull requests and provides automatic
334
+ # recommendations. You can view recommendations using the CodeGuru
335
+ # Reviewer console. For more information, see [Recommendations in Amazon
336
+ # CodeGuru Reviewer][1] in the *Amazon CodeGuru Reviewer User Guide.*
316
337
  #
317
- # You can associate a GitHub repository using the Amazon CodeGuru
318
- # Reviewer console.
338
+ # If you associate a CodeCommit repository, it must be in the same AWS
339
+ # Region and AWS account where its CodeGuru Reviewer code reviews are
340
+ # configured.
319
341
  #
320
- # @option params [required, Types::Repository] :repository
321
- # The repository to associate.
342
+ # Bitbucket and GitHub Enterprise Server repositories are managed by AWS
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.*
322
346
  #
323
- # @option params [String] :client_request_token
324
- # Unique, case-sensitive identifier that you provide to ensure the
325
- # idempotency of the request.
347
+ # <note markdown="1"> You cannot use the CodeGuru Reviewer SDK or the AWS CLI to associate a
348
+ # GitHub repository with Amazon CodeGuru Reviewer. To associate a GitHub
349
+ # repository, use the console. For more information, see [Getting
350
+ # started with CodeGuru Reviewer][3] in the *CodeGuru Reviewer User
351
+ # Guide.*
352
+ #
353
+ # </note>
326
354
  #
327
- # To add a new repository association, this parameter specifies a unique
328
- # identifier for the new repository association that helps ensure
329
- # idempotency.
330
355
  #
331
- # If you use the AWS CLI or one of the AWS SDKs to call this operation,
332
- # you can leave this parameter empty. The CLI or SDK generates a random
333
- # UUID for you and includes that in the request. If you don't use the
334
- # SDK and instead generate a raw HTTP request to the Secrets Manager
335
- # service endpoint, you must generate a ClientRequestToken yourself for
336
- # new versions and include that value in the request.
337
356
  #
338
- # You typically interact with this value if you implement your own retry
339
- # logic and want to ensure that a given repository association is not
340
- # created twice. We recommend that you generate a UUID-type value to
341
- # ensure uniqueness within the specified repository association.
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
359
+ # [3]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/getting-started-with-guru.html
360
+ #
361
+ # @option params [required, Types::Repository] :repository
362
+ # The repository to associate.
342
363
  #
364
+ # @option params [String] :client_request_token
343
365
  # Amazon CodeGuru Reviewer uses this value to prevent the accidental
344
366
  # creation of duplicate repository associations if there are failures
345
367
  # and retries.
@@ -363,6 +385,11 @@ module Aws::CodeGuruReviewer
363
385
  # connection_arn: "ConnectionArn", # required
364
386
  # owner: "Owner", # required
365
387
  # },
388
+ # git_hub_enterprise_server: {
389
+ # name: "Name", # required
390
+ # connection_arn: "ConnectionArn", # required
391
+ # owner: "Owner", # required
392
+ # },
366
393
  # },
367
394
  # client_request_token: "ClientRequestToken",
368
395
  # })
@@ -374,7 +401,7 @@ module Aws::CodeGuruReviewer
374
401
  # resp.repository_association.connection_arn #=> String
375
402
  # resp.repository_association.name #=> String
376
403
  # resp.repository_association.owner #=> String
377
- # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
404
+ # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
378
405
  # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
379
406
  # resp.repository_association.state_reason #=> String
380
407
  # resp.repository_association.last_updated_time_stamp #=> Time
@@ -389,11 +416,94 @@ module Aws::CodeGuruReviewer
389
416
  req.send_request(options)
390
417
  end
391
418
 
392
- # Returns the metadaata associated with the code review along with its
419
+ # Use to create a code review for a repository analysis.
420
+ #
421
+ # @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.
424
+ #
425
+ # @option params [required, String] :repository_association_arn
426
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
427
+ # object. You can retrieve this ARN by calling `ListRepositories`.
428
+ #
429
+ # A code review can only be created on an associated repository. This is
430
+ # the ARN of the associated repository.
431
+ #
432
+ #
433
+ #
434
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
435
+ #
436
+ # @option params [required, Types::CodeReviewType] :type
437
+ # The type of code review to create. This is specified using a [
438
+ # `CodeReviewType` ][1] object.
439
+ #
440
+ #
441
+ #
442
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReviewType.html
443
+ #
444
+ # @option params [String] :client_request_token
445
+ # Amazon CodeGuru Reviewer uses this value to prevent the accidental
446
+ # creation of duplicate code reviews if there are failures and retries.
447
+ #
448
+ # **A suitable default value is auto-generated.** You should normally
449
+ # not need to pass this option.**
450
+ #
451
+ # @return [Types::CreateCodeReviewResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
452
+ #
453
+ # * {Types::CreateCodeReviewResponse#code_review #code_review} => Types::CodeReview
454
+ #
455
+ # @example Request syntax with placeholder values
456
+ #
457
+ # resp = client.create_code_review({
458
+ # name: "CodeReviewName", # required
459
+ # repository_association_arn: "Arn", # required
460
+ # type: { # required
461
+ # repository_analysis: { # required
462
+ # repository_head: { # required
463
+ # branch_name: "BranchName", # required
464
+ # },
465
+ # },
466
+ # },
467
+ # client_request_token: "ClientRequestToken",
468
+ # })
469
+ #
470
+ # @example Response structure
471
+ #
472
+ # resp.code_review.name #=> String
473
+ # resp.code_review.code_review_arn #=> String
474
+ # resp.code_review.repository_name #=> String
475
+ # resp.code_review.owner #=> String
476
+ # resp.code_review.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
477
+ # resp.code_review.state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
478
+ # resp.code_review.state_reason #=> String
479
+ # resp.code_review.created_time_stamp #=> Time
480
+ # resp.code_review.last_updated_time_stamp #=> Time
481
+ # resp.code_review.type #=> String, one of "PullRequest", "RepositoryAnalysis"
482
+ # resp.code_review.pull_request_id #=> String
483
+ # resp.code_review.source_code_type.commit_diff.source_commit #=> String
484
+ # resp.code_review.source_code_type.commit_diff.destination_commit #=> String
485
+ # resp.code_review.source_code_type.repository_head.branch_name #=> String
486
+ # resp.code_review.metrics.metered_lines_of_code_count #=> Integer
487
+ # resp.code_review.metrics.findings_count #=> Integer
488
+ #
489
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CreateCodeReview AWS API Documentation
490
+ #
491
+ # @overload create_code_review(params = {})
492
+ # @param [Hash] params ({})
493
+ def create_code_review(params = {}, options = {})
494
+ req = build_request(:create_code_review, params)
495
+ req.send_request(options)
496
+ end
497
+
498
+ # Returns the metadata associated with the code review along with its
393
499
  # status.
394
500
  #
395
501
  # @option params [required, String] :code_review_arn
396
- # The Amazon Resource Name (ARN) of the code review to describe.
502
+ # The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
503
+ #
504
+ #
505
+ #
506
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
397
507
  #
398
508
  # @return [Types::DescribeCodeReviewResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
399
509
  #
@@ -411,15 +521,16 @@ module Aws::CodeGuruReviewer
411
521
  # resp.code_review.code_review_arn #=> String
412
522
  # resp.code_review.repository_name #=> String
413
523
  # resp.code_review.owner #=> String
414
- # resp.code_review.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
524
+ # resp.code_review.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
415
525
  # resp.code_review.state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
416
526
  # resp.code_review.state_reason #=> String
417
527
  # resp.code_review.created_time_stamp #=> Time
418
528
  # resp.code_review.last_updated_time_stamp #=> Time
419
- # resp.code_review.type #=> String, one of "PullRequest"
529
+ # resp.code_review.type #=> String, one of "PullRequest", "RepositoryAnalysis"
420
530
  # resp.code_review.pull_request_id #=> String
421
531
  # resp.code_review.source_code_type.commit_diff.source_commit #=> String
422
532
  # resp.code_review.source_code_type.commit_diff.destination_commit #=> String
533
+ # resp.code_review.source_code_type.repository_head.branch_name #=> String
423
534
  # resp.code_review.metrics.metered_lines_of_code_count #=> Integer
424
535
  # resp.code_review.metrics.findings_count #=> Integer
425
536
  #
@@ -436,7 +547,11 @@ module Aws::CodeGuruReviewer
436
547
  # recommendation.
437
548
  #
438
549
  # @option params [required, String] :code_review_arn
439
- # The Amazon Resource Name (ARN) that identifies the code review.
550
+ # The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
551
+ #
552
+ #
553
+ #
554
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
440
555
  #
441
556
  # @option params [required, String] :recommendation_id
442
557
  # The recommendation ID that can be used to track the provided
@@ -446,6 +561,15 @@ module Aws::CodeGuruReviewer
446
561
  # Optional parameter to describe the feedback for a given user. If this
447
562
  # is not supplied, it defaults to the user making the request.
448
563
  #
564
+ # The `UserId` is an IAM principal that can be specified as an AWS
565
+ # account ID or an Amazon Resource Name (ARN). For more information, see
566
+ # [ Specifying a Principal][1] in the *AWS Identity and Access
567
+ # Management User Guide*.
568
+ #
569
+ #
570
+ #
571
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying
572
+ #
449
573
  # @return [Types::DescribeRecommendationFeedbackResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
450
574
  #
451
575
  # * {Types::DescribeRecommendationFeedbackResponse#recommendation_feedback #recommendation_feedback} => Types::RecommendationFeedback
@@ -477,11 +601,20 @@ module Aws::CodeGuruReviewer
477
601
  req.send_request(options)
478
602
  end
479
603
 
480
- # Describes a repository association.
604
+ # Returns a [ `RepositoryAssociation` ][1] object that contains
605
+ # information about the requested repository association.
606
+ #
607
+ #
608
+ #
609
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
481
610
  #
482
611
  # @option params [required, String] :association_arn
483
- # The Amazon Resource Name (ARN) identifying the association. You can
484
- # retrieve this ARN by calling `ListRepositories`.
612
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
613
+ # object. You can retrieve this ARN by calling `ListRepositories`.
614
+ #
615
+ #
616
+ #
617
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
485
618
  #
486
619
  # @return [Types::DescribeRepositoryAssociationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
487
620
  #
@@ -500,7 +633,7 @@ module Aws::CodeGuruReviewer
500
633
  # resp.repository_association.connection_arn #=> String
501
634
  # resp.repository_association.name #=> String
502
635
  # resp.repository_association.owner #=> String
503
- # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
636
+ # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
504
637
  # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
505
638
  # resp.repository_association.state_reason #=> String
506
639
  # resp.repository_association.last_updated_time_stamp #=> Time
@@ -519,7 +652,12 @@ module Aws::CodeGuruReviewer
519
652
  # repository.
520
653
  #
521
654
  # @option params [required, String] :association_arn
522
- # The Amazon Resource Name (ARN) identifying the association.
655
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
656
+ # object. You can retrieve this ARN by calling `ListRepositories`.
657
+ #
658
+ #
659
+ #
660
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
523
661
  #
524
662
  # @return [Types::DisassociateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
525
663
  #
@@ -538,7 +676,7 @@ module Aws::CodeGuruReviewer
538
676
  # resp.repository_association.connection_arn #=> String
539
677
  # resp.repository_association.name #=> String
540
678
  # resp.repository_association.owner #=> String
541
- # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
679
+ # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
542
680
  # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
543
681
  # resp.repository_association.state_reason #=> String
544
682
  # resp.repository_association.last_updated_time_stamp #=> Time
@@ -558,13 +696,23 @@ module Aws::CodeGuruReviewer
558
696
  #
559
697
  # @option params [Array<String>] :provider_types
560
698
  # List of provider types for filtering that needs to be applied before
561
- # displaying the result. For example, "providerTypes=\[GitHub\]" will
562
- # list code reviews from GitHub.
699
+ # displaying the result. For example, `providerTypes=[GitHub]` lists
700
+ # code reviews from GitHub.
563
701
  #
564
702
  # @option params [Array<String>] :states
565
703
  # List of states for filtering that needs to be applied before
566
- # displaying the result. For example, "states=\[Pending\]" will list
567
- # code reviews in the Pending state.
704
+ # displaying the result. For example, `states=[Pending]` lists code
705
+ # reviews in the Pending state.
706
+ #
707
+ # The valid code review states are:
708
+ #
709
+ # * `Completed`\: The code review is complete.
710
+ #
711
+ # * `Pending`\: The code review started and has not completed or failed.
712
+ #
713
+ # * `Failed`\: The code review failed.
714
+ #
715
+ # * `Deleting`\: The code review is being deleted.
568
716
  #
569
717
  # @option params [Array<String>] :repository_names
570
718
  # List of repository names for filtering that needs to be applied before
@@ -593,10 +741,10 @@ module Aws::CodeGuruReviewer
593
741
  # @example Request syntax with placeholder values
594
742
  #
595
743
  # resp = client.list_code_reviews({
596
- # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket
744
+ # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
597
745
  # states: ["Completed"], # accepts Completed, Pending, Failed, Deleting
598
746
  # repository_names: ["Name"],
599
- # type: "PullRequest", # required, accepts PullRequest
747
+ # type: "PullRequest", # required, accepts PullRequest, RepositoryAnalysis
600
748
  # max_results: 1,
601
749
  # next_token: "NextToken",
602
750
  # })
@@ -608,11 +756,11 @@ module Aws::CodeGuruReviewer
608
756
  # resp.code_review_summaries[0].code_review_arn #=> String
609
757
  # resp.code_review_summaries[0].repository_name #=> String
610
758
  # resp.code_review_summaries[0].owner #=> String
611
- # resp.code_review_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
759
+ # resp.code_review_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
612
760
  # resp.code_review_summaries[0].state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
613
761
  # resp.code_review_summaries[0].created_time_stamp #=> Time
614
762
  # resp.code_review_summaries[0].last_updated_time_stamp #=> Time
615
- # resp.code_review_summaries[0].type #=> String, one of "PullRequest"
763
+ # resp.code_review_summaries[0].type #=> String, one of "PullRequest", "RepositoryAnalysis"
616
764
  # resp.code_review_summaries[0].pull_request_id #=> String
617
765
  # resp.code_review_summaries[0].metrics_summary.metered_lines_of_code_count #=> Integer
618
766
  # resp.code_review_summaries[0].metrics_summary.findings_count #=> Integer
@@ -627,33 +775,46 @@ module Aws::CodeGuruReviewer
627
775
  req.send_request(options)
628
776
  end
629
777
 
630
- # Lists the customer feedback for a CodeGuru Reviewer recommendation for
631
- # all users. This API will be used from the console to extract the
632
- # previously given feedback by the user to pre-populate the feedback
633
- # emojis for all recommendations.
778
+ # Returns a list of [ `RecommendationFeedbackSummary` ][1] objects that
779
+ # contain customer recommendation feedback for all CodeGuru Reviewer
780
+ # users.
781
+ #
782
+ #
783
+ #
784
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RecommendationFeedbackSummary.html
634
785
  #
635
786
  # @option params [String] :next_token
636
- # If nextToken is returned, there are more results available. The value
637
- # of nextToken is a unique pagination token for each page. Make the call
638
- # again using the returned token to retrieve the next page. Keep all
639
- # other arguments unchanged.
787
+ # If `nextToken` is returned, there are more results available. The
788
+ # value of nextToken is a unique pagination token for each page. Make
789
+ # the call again using the returned token to retrieve the next page.
790
+ # Keep all other arguments unchanged.
640
791
  #
641
792
  # @option params [Integer] :max_results
642
793
  # The maximum number of results that are returned per call. The default
643
794
  # is 100.
644
795
  #
645
796
  # @option params [required, String] :code_review_arn
646
- # The Amazon Resource Name (ARN) that identifies the code review.
797
+ # The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
798
+ #
799
+ #
800
+ #
801
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
647
802
  #
648
803
  # @option params [Array<String>] :user_ids
649
- # Filter on userIds that need to be applied before displaying the
650
- # result. This can be used to query all the recommendation feedback for
651
- # a code review from a given user.
804
+ # An AWS user's account ID or Amazon Resource Name (ARN). Use this ID
805
+ # to query the recommendation feedback for a code review from that user.
806
+ #
807
+ # The `UserId` is an IAM principal that can be specified as an AWS
808
+ # account ID or an Amazon Resource Name (ARN). For more information, see
809
+ # [ Specifying a Principal][1] in the *AWS Identity and Access
810
+ # Management User Guide*.
811
+ #
812
+ #
813
+ #
814
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying
652
815
  #
653
816
  # @option params [Array<String>] :recommendation_ids
654
- # Filter on recommendationIds that need to be applied before displaying
655
- # the result. This can be used to query all the recommendation feedback
656
- # for a given recommendation.
817
+ # Used to query the recommendation feedback for a given recommendation.
657
818
  #
658
819
  # @return [Types::ListRecommendationFeedbackResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
659
820
  #
@@ -700,7 +861,11 @@ module Aws::CodeGuruReviewer
700
861
  # is 100.
701
862
  #
702
863
  # @option params [required, String] :code_review_arn
703
- # The Amazon Resource Name (ARN) of the code review to describe.
864
+ # The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
865
+ #
866
+ #
867
+ #
868
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
704
869
  #
705
870
  # @return [Types::ListRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
706
871
  #
@@ -736,23 +901,58 @@ module Aws::CodeGuruReviewer
736
901
  req.send_request(options)
737
902
  end
738
903
 
739
- # Lists repository associations. You can optionally filter on one or
740
- # more of the following recommendation properties: provider types,
741
- # states, names, and owners.
904
+ # Returns a list of [ `RepositoryAssociationSummary` ][1] objects that
905
+ # contain summary information about a repository association. You can
906
+ # filter the returned list by [ `ProviderType` ][2], [ `Name` ][3], [
907
+ # `State` ][4], and [ `Owner` ][5].
908
+ #
909
+ #
910
+ #
911
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html
912
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-ProviderType
913
+ # [3]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-Name
914
+ # [4]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-State
915
+ # [5]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-Owner
742
916
  #
743
917
  # @option params [Array<String>] :provider_types
744
918
  # List of provider types to use as a filter.
745
919
  #
746
920
  # @option params [Array<String>] :states
747
- # List of states to use as a filter.
921
+ # List of repository association states to use as a filter.
922
+ #
923
+ # The valid repository association states are:
924
+ #
925
+ # * **Associated**\: The repository association is complete.
926
+ #
927
+ # * **Associating**\: CodeGuru Reviewer is:
928
+ #
929
+ # * Setting up pull request notifications. This is required for pull
930
+ # requests to trigger a CodeGuru Reviewer review.
931
+ #
932
+ # <note markdown="1"> If your repository `ProviderType` is `GitHub`, `GitHub Enterprise
933
+ # Server`, or `Bitbucket`, CodeGuru Reviewer creates webhooks in
934
+ # your repository to trigger CodeGuru Reviewer reviews. If you
935
+ # delete these webhooks, reviews of code in your repository cannot
936
+ # be triggered.
937
+ #
938
+ # </note>
939
+ #
940
+ # * Setting up source code access. This is required for CodeGuru
941
+ # Reviewer to securely clone code in your repository.
942
+ #
943
+ # * **Failed**\: The repository failed to associate or disassociate.
944
+ #
945
+ # * **Disassociating**\: CodeGuru Reviewer is removing the repository's
946
+ # pull request notifications and source code access.
748
947
  #
749
948
  # @option params [Array<String>] :names
750
949
  # List of repository names to use as a filter.
751
950
  #
752
951
  # @option params [Array<String>] :owners
753
- # List of owners to use as a filter. For GitHub, this is name of the
754
- # GitHub account that was used to associate the repository. For AWS
755
- # CodeCommit, it is the name of the CodeCommit account that was used to
952
+ # List of owners to use as a filter. For AWS CodeCommit, it is the name
953
+ # of the CodeCommit account that was used to associate the repository.
954
+ # For other repository source providers, such as Bitbucket and GitHub
955
+ # Enterprise Server, this is name of the account that was used to
756
956
  # associate the repository.
757
957
  #
758
958
  # @option params [Integer] :max_results
@@ -762,8 +962,8 @@ module Aws::CodeGuruReviewer
762
962
  # results in a single page with a `nextToken` response element. The
763
963
  # remaining results of the initial request can be seen by sending
764
964
  # another `ListRepositoryAssociations` request with the returned
765
- # `nextToken` value. This value can be between 1 and 25. If this
766
- # parameter is not used, `ListRepositoryAssociations` returns up to 25
965
+ # `nextToken` value. This value can be between 1 and 100. If this
966
+ # parameter is not used, `ListRepositoryAssociations` returns up to 100
767
967
  # results and a `nextToken` value if applicable.
768
968
  #
769
969
  # @option params [String] :next_token
@@ -788,7 +988,7 @@ module Aws::CodeGuruReviewer
788
988
  # @example Request syntax with placeholder values
789
989
  #
790
990
  # resp = client.list_repository_associations({
791
- # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket
991
+ # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
792
992
  # states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating
793
993
  # names: ["Name"],
794
994
  # owners: ["Owner"],
@@ -805,7 +1005,7 @@ module Aws::CodeGuruReviewer
805
1005
  # resp.repository_association_summaries[0].association_id #=> String
806
1006
  # resp.repository_association_summaries[0].name #=> String
807
1007
  # resp.repository_association_summaries[0].owner #=> String
808
- # resp.repository_association_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
1008
+ # resp.repository_association_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
809
1009
  # resp.repository_association_summaries[0].state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
810
1010
  # resp.next_token #=> String
811
1011
  #
@@ -818,12 +1018,16 @@ module Aws::CodeGuruReviewer
818
1018
  req.send_request(options)
819
1019
  end
820
1020
 
821
- # Stores customer feedback for a CodeGuru-Reviewer recommendation. When
1021
+ # Stores customer feedback for a CodeGuru Reviewer recommendation. When
822
1022
  # this API is called again with different reactions the previous
823
1023
  # feedback is overwritten.
824
1024
  #
825
1025
  # @option params [required, String] :code_review_arn
826
- # The Amazon Resource Name (ARN) that identifies the code review.
1026
+ # The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
1027
+ #
1028
+ #
1029
+ #
1030
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
827
1031
  #
828
1032
  # @option params [required, String] :recommendation_id
829
1033
  # The recommendation ID that can be used to track the provided
@@ -865,7 +1069,7 @@ module Aws::CodeGuruReviewer
865
1069
  params: params,
866
1070
  config: config)
867
1071
  context[:gem_name] = 'aws-sdk-codegurureviewer'
868
- context[:gem_version] = '1.6.0'
1072
+ context[:gem_version] = '1.11.0'
869
1073
  Seahorse::Client::Request.new(handlers, context)
870
1074
  end
871
1075