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