aws-sdk-codegurureviewer 1.9.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97877fd3223aa07ecea5b6eaa4080b18b3a3322ad037404fa9836cd4e1d472e4
4
- data.tar.gz: 17b2086f833788c4e344de3b2b85ecd8b4c70250ef7515dddc8b75e789cbf424
3
+ metadata.gz: 8d969f370bafb268d2ae90038a73cd1e0b9d69019baf8612fb7879bf597db699
4
+ data.tar.gz: fca8d5d7b70baaebf56cad809922e44f024fc37ad343de70b9fd2866e969044a
5
5
  SHA512:
6
- metadata.gz: de05bcf32ecccd4fc8b2271fe3572076437c6007cac4164d93105963ad187b04556a14819fb98f8df642b4a49a7b48b65f0f93f2d945bbbf5fde0c07cf064bc0
7
- data.tar.gz: d93cbeed0e064455f7c7b918b6dd53201a53f845746d042a99d276f0d5cf13495be2019671f5317b82cbd4e6a61ff80455db23fbb749e32b2c8e7d62792677b1
6
+ metadata.gz: 3d16ece638fe1c77beb7439efe32656ad586037b979e1ef96fe708cb600279af1b61080a41b52fa0cb649d978e72d48466fa64690c434e0aa2f9acac786f0efa
7
+ data.tar.gz: e8aa91d5d397021c942c9d88bc16a67a446d10691840ab84009a1647e6ac3b06650071d5fb75627fc9489dd44a5eab98344516b5285617eab118b24e0137e8bf
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-codegurureviewer/customizations'
44
45
  #
45
46
  # See {Errors} for more information.
46
47
  #
47
- # @service
48
+ # @!group service
48
49
  module Aws::CodeGuruReviewer
49
50
 
50
- GEM_VERSION = '1.9.0'
51
+ GEM_VERSION = '1.14.0'
51
52
 
52
53
  end
@@ -85,13 +85,28 @@ module Aws::CodeGuruReviewer
85
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
86
  # credentials.
87
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
+ #
88
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
89
103
  # from an EC2 IMDS on an EC2 instance.
90
104
  #
91
- # * `Aws::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
93
107
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
95
110
  #
96
111
  # When `:credentials` are not configured directly, the following
97
112
  # locations will be searched for credentials:
@@ -101,10 +116,10 @@ module Aws::CodeGuruReviewer
101
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
102
117
  # * `~/.aws/credentials`
103
118
  # * `~/.aws/config`
104
- # * EC2 IMDS instance profile - When used by default, the timeouts are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
107
- # 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.
108
123
  #
109
124
  # @option options [required, String] :region
110
125
  # The AWS region to connect to. The configured `:region` is
@@ -347,25 +362,6 @@ module Aws::CodeGuruReviewer
347
362
  # The repository to associate.
348
363
  #
349
364
  # @option params [String] :client_request_token
350
- # Unique, case-sensitive identifier that you provide to ensure the
351
- # idempotency of the request.
352
- #
353
- # To add a new repository association, this parameter specifies a unique
354
- # identifier for the new repository association that helps ensure
355
- # idempotency.
356
- #
357
- # If you use the AWS CLI or one of the AWS SDKs to call this operation,
358
- # you can leave this parameter empty. The CLI or SDK generates a random
359
- # UUID for you and includes that in the request. If you don't use the
360
- # SDK and instead generate a raw HTTP request to the Secrets Manager
361
- # service endpoint, you must generate a ClientRequestToken yourself for
362
- # new versions and include that value in the request.
363
- #
364
- # You typically interact with this value if you implement your own retry
365
- # logic and want to ensure that a given repository association is not
366
- # created twice. We recommend that you generate a UUID-type value to
367
- # ensure uniqueness within the specified repository association.
368
- #
369
365
  # Amazon CodeGuru Reviewer uses this value to prevent the accidental
370
366
  # creation of duplicate repository associations if there are failures
371
367
  # and retries.
@@ -373,9 +369,22 @@ module Aws::CodeGuruReviewer
373
369
  # **A suitable default value is auto-generated.** You should normally
374
370
  # not need to pass this option.**
375
371
  #
372
+ # @option params [Hash<String,String>] :tags
373
+ # An array of key-value pairs used to tag an associated repository. A
374
+ # tag is a custom attribute label with two parts:
375
+ #
376
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`, or
377
+ # `Secret`). Tag keys are case sensitive.
378
+ #
379
+ # * An optional field known as a *tag value* (for example,
380
+ # `111122223333`, `Production`, or a team name). Omitting the tag
381
+ # value is the same as using an empty string. Like tag keys, tag
382
+ # values are case sensitive.
383
+ #
376
384
  # @return [Types::AssociateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
377
385
  #
378
386
  # * {Types::AssociateRepositoryResponse#repository_association #repository_association} => Types::RepositoryAssociation
387
+ # * {Types::AssociateRepositoryResponse#tags #tags} => Hash&lt;String,String&gt;
379
388
  #
380
389
  # @example Request syntax with placeholder values
381
390
  #
@@ -396,6 +405,9 @@ module Aws::CodeGuruReviewer
396
405
  # },
397
406
  # },
398
407
  # client_request_token: "ClientRequestToken",
408
+ # tags: {
409
+ # "TagKey" => "TagValue",
410
+ # },
399
411
  # })
400
412
  #
401
413
  # @example Response structure
@@ -406,10 +418,12 @@ module Aws::CodeGuruReviewer
406
418
  # resp.repository_association.name #=> String
407
419
  # resp.repository_association.owner #=> String
408
420
  # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
409
- # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
421
+ # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
410
422
  # resp.repository_association.state_reason #=> String
411
423
  # resp.repository_association.last_updated_time_stamp #=> Time
412
424
  # resp.repository_association.created_time_stamp #=> Time
425
+ # resp.tags #=> Hash
426
+ # resp.tags["TagKey"] #=> String
413
427
  #
414
428
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepository AWS API Documentation
415
429
  #
@@ -420,6 +434,97 @@ module Aws::CodeGuruReviewer
420
434
  req.send_request(options)
421
435
  end
422
436
 
437
+ # Use to create a code review with a [ `CodeReviewType` ][1] of
438
+ # `RepositoryAnalysis`. This type of code review analyzes all code under
439
+ # 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.
442
+ #
443
+ #
444
+ #
445
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReviewType.html
446
+ #
447
+ # @option params [required, String] :name
448
+ # The name of the code review. The name of each code review in your AWS
449
+ # account must be unique.
450
+ #
451
+ # @option params [required, String] :repository_association_arn
452
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
453
+ # object. You can retrieve this ARN by calling [
454
+ # `ListRepositoryAssociations` ][2].
455
+ #
456
+ # A code review can only be created on an associated repository. This is
457
+ # the ARN of the associated repository.
458
+ #
459
+ #
460
+ #
461
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
462
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
463
+ #
464
+ # @option params [required, Types::CodeReviewType] :type
465
+ # The type of code review to create. This is specified using a [
466
+ # `CodeReviewType` ][1] object. You can create a code review only of
467
+ # type `RepositoryAnalysis`.
468
+ #
469
+ #
470
+ #
471
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReviewType.html
472
+ #
473
+ # @option params [String] :client_request_token
474
+ # Amazon CodeGuru Reviewer uses this value to prevent the accidental
475
+ # creation of duplicate code reviews if there are failures and retries.
476
+ #
477
+ # **A suitable default value is auto-generated.** You should normally
478
+ # not need to pass this option.**
479
+ #
480
+ # @return [Types::CreateCodeReviewResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
481
+ #
482
+ # * {Types::CreateCodeReviewResponse#code_review #code_review} => Types::CodeReview
483
+ #
484
+ # @example Request syntax with placeholder values
485
+ #
486
+ # resp = client.create_code_review({
487
+ # name: "CodeReviewName", # required
488
+ # repository_association_arn: "AssociationArn", # required
489
+ # type: { # required
490
+ # repository_analysis: { # required
491
+ # repository_head: { # required
492
+ # branch_name: "BranchName", # required
493
+ # },
494
+ # },
495
+ # },
496
+ # client_request_token: "ClientRequestToken",
497
+ # })
498
+ #
499
+ # @example Response structure
500
+ #
501
+ # resp.code_review.name #=> String
502
+ # resp.code_review.code_review_arn #=> String
503
+ # resp.code_review.repository_name #=> String
504
+ # resp.code_review.owner #=> String
505
+ # resp.code_review.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
506
+ # resp.code_review.state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
507
+ # resp.code_review.state_reason #=> String
508
+ # resp.code_review.created_time_stamp #=> Time
509
+ # resp.code_review.last_updated_time_stamp #=> Time
510
+ # resp.code_review.type #=> String, one of "PullRequest", "RepositoryAnalysis"
511
+ # resp.code_review.pull_request_id #=> String
512
+ # resp.code_review.source_code_type.commit_diff.source_commit #=> String
513
+ # resp.code_review.source_code_type.commit_diff.destination_commit #=> String
514
+ # resp.code_review.source_code_type.repository_head.branch_name #=> String
515
+ # resp.code_review.association_arn #=> String
516
+ # resp.code_review.metrics.metered_lines_of_code_count #=> Integer
517
+ # resp.code_review.metrics.findings_count #=> Integer
518
+ #
519
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/CreateCodeReview AWS API Documentation
520
+ #
521
+ # @overload create_code_review(params = {})
522
+ # @param [Hash] params ({})
523
+ def create_code_review(params = {}, options = {})
524
+ req = build_request(:create_code_review, params)
525
+ req.send_request(options)
526
+ end
527
+
423
528
  # Returns the metadata associated with the code review along with its
424
529
  # status.
425
530
  #
@@ -451,10 +556,12 @@ module Aws::CodeGuruReviewer
451
556
  # resp.code_review.state_reason #=> String
452
557
  # resp.code_review.created_time_stamp #=> Time
453
558
  # resp.code_review.last_updated_time_stamp #=> Time
454
- # resp.code_review.type #=> String, one of "PullRequest"
559
+ # resp.code_review.type #=> String, one of "PullRequest", "RepositoryAnalysis"
455
560
  # resp.code_review.pull_request_id #=> String
456
561
  # resp.code_review.source_code_type.commit_diff.source_commit #=> String
457
562
  # resp.code_review.source_code_type.commit_diff.destination_commit #=> String
563
+ # resp.code_review.source_code_type.repository_head.branch_name #=> String
564
+ # resp.code_review.association_arn #=> String
458
565
  # resp.code_review.metrics.metered_lines_of_code_count #=> Integer
459
566
  # resp.code_review.metrics.findings_count #=> Integer
460
567
  #
@@ -534,20 +641,23 @@ module Aws::CodeGuruReviewer
534
641
  #
535
642
  # @option params [required, String] :association_arn
536
643
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
537
- # object. You can retrieve this ARN by calling `ListRepositories`.
644
+ # object. You can retrieve this ARN by calling [
645
+ # `ListRepositoryAssociations` ][2].
538
646
  #
539
647
  #
540
648
  #
541
649
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
650
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
542
651
  #
543
652
  # @return [Types::DescribeRepositoryAssociationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
544
653
  #
545
654
  # * {Types::DescribeRepositoryAssociationResponse#repository_association #repository_association} => Types::RepositoryAssociation
655
+ # * {Types::DescribeRepositoryAssociationResponse#tags #tags} => Hash&lt;String,String&gt;
546
656
  #
547
657
  # @example Request syntax with placeholder values
548
658
  #
549
659
  # resp = client.describe_repository_association({
550
- # association_arn: "Arn", # required
660
+ # association_arn: "AssociationArn", # required
551
661
  # })
552
662
  #
553
663
  # @example Response structure
@@ -558,10 +668,12 @@ module Aws::CodeGuruReviewer
558
668
  # resp.repository_association.name #=> String
559
669
  # resp.repository_association.owner #=> String
560
670
  # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
561
- # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
671
+ # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
562
672
  # resp.repository_association.state_reason #=> String
563
673
  # resp.repository_association.last_updated_time_stamp #=> Time
564
674
  # resp.repository_association.created_time_stamp #=> Time
675
+ # resp.tags #=> Hash
676
+ # resp.tags["TagKey"] #=> String
565
677
  #
566
678
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociation AWS API Documentation
567
679
  #
@@ -577,20 +689,23 @@ module Aws::CodeGuruReviewer
577
689
  #
578
690
  # @option params [required, String] :association_arn
579
691
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
580
- # object.
692
+ # object. You can retrieve this ARN by calling [
693
+ # `ListRepositoryAssociations` ][2].
581
694
  #
582
695
  #
583
696
  #
584
697
  # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
698
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
585
699
  #
586
700
  # @return [Types::DisassociateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
587
701
  #
588
702
  # * {Types::DisassociateRepositoryResponse#repository_association #repository_association} => Types::RepositoryAssociation
703
+ # * {Types::DisassociateRepositoryResponse#tags #tags} => Hash&lt;String,String&gt;
589
704
  #
590
705
  # @example Request syntax with placeholder values
591
706
  #
592
707
  # resp = client.disassociate_repository({
593
- # association_arn: "Arn", # required
708
+ # association_arn: "AssociationArn", # required
594
709
  # })
595
710
  #
596
711
  # @example Response structure
@@ -601,10 +716,12 @@ module Aws::CodeGuruReviewer
601
716
  # resp.repository_association.name #=> String
602
717
  # resp.repository_association.owner #=> String
603
718
  # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
604
- # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
719
+ # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
605
720
  # resp.repository_association.state_reason #=> String
606
721
  # resp.repository_association.last_updated_time_stamp #=> Time
607
722
  # resp.repository_association.created_time_stamp #=> Time
723
+ # resp.tags #=> Hash
724
+ # resp.tags["TagKey"] #=> String
608
725
  #
609
726
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepository AWS API Documentation
610
727
  #
@@ -668,7 +785,7 @@ module Aws::CodeGuruReviewer
668
785
  # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
669
786
  # states: ["Completed"], # accepts Completed, Pending, Failed, Deleting
670
787
  # repository_names: ["Name"],
671
- # type: "PullRequest", # required, accepts PullRequest
788
+ # type: "PullRequest", # required, accepts PullRequest, RepositoryAnalysis
672
789
  # max_results: 1,
673
790
  # next_token: "NextToken",
674
791
  # })
@@ -684,7 +801,7 @@ module Aws::CodeGuruReviewer
684
801
  # resp.code_review_summaries[0].state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
685
802
  # resp.code_review_summaries[0].created_time_stamp #=> Time
686
803
  # resp.code_review_summaries[0].last_updated_time_stamp #=> Time
687
- # resp.code_review_summaries[0].type #=> String, one of "PullRequest"
804
+ # resp.code_review_summaries[0].type #=> String, one of "PullRequest", "RepositoryAnalysis"
688
805
  # resp.code_review_summaries[0].pull_request_id #=> String
689
806
  # resp.code_review_summaries[0].metrics_summary.metered_lines_of_code_count #=> Integer
690
807
  # resp.code_review_summaries[0].metrics_summary.findings_count #=> Integer
@@ -853,10 +970,11 @@ module Aws::CodeGuruReviewer
853
970
  # * Setting up pull request notifications. This is required for pull
854
971
  # requests to trigger a CodeGuru Reviewer review.
855
972
  #
856
- # <note markdown="1"> If your repository `ProviderType` is `GitHub` or `Bitbucket`,
857
- # CodeGuru Reviewer creates webhooks in your repository to trigger
858
- # CodeGuru Reviewer reviews. If you delete these webhooks, reviews
859
- # of code in your repository cannot be triggered.
973
+ # <note markdown="1"> If your repository `ProviderType` is `GitHub`, `GitHub Enterprise
974
+ # Server`, or `Bitbucket`, CodeGuru Reviewer creates webhooks in
975
+ # your repository to trigger CodeGuru Reviewer reviews. If you
976
+ # delete these webhooks, reviews of code in your repository cannot
977
+ # be triggered.
860
978
  #
861
979
  # </note>
862
980
  #
@@ -868,14 +986,27 @@ module Aws::CodeGuruReviewer
868
986
  # * **Disassociating**\: CodeGuru Reviewer is removing the repository's
869
987
  # pull request notifications and source code access.
870
988
  #
989
+ # * **Disassociated**\: CodeGuru Reviewer successfully disassociated the
990
+ # repository. You can create a new association with this repository if
991
+ # you want to review source code in it later. You can control access
992
+ # to code reviews created in an associated repository with tags after
993
+ # it has been disassociated. For more information, see [Using tags to
994
+ # control access to associated repositories][1] in the *Amazon
995
+ # CodeGuru Reviewer User Guide*.
996
+ #
997
+ #
998
+ #
999
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html
1000
+ #
871
1001
  # @option params [Array<String>] :names
872
1002
  # List of repository names to use as a filter.
873
1003
  #
874
1004
  # @option params [Array<String>] :owners
875
1005
  # List of owners to use as a filter. For AWS CodeCommit, it is the name
876
1006
  # of the CodeCommit account that was used to associate the repository.
877
- # For other repository source providers, such as Bitbucket, this is name
878
- # of the account that was used to associate the repository.
1007
+ # For other repository source providers, such as Bitbucket and GitHub
1008
+ # Enterprise Server, this is name of the account that was used to
1009
+ # associate the repository.
879
1010
  #
880
1011
  # @option params [Integer] :max_results
881
1012
  # The maximum number of repository association results returned by
@@ -911,7 +1042,7 @@ module Aws::CodeGuruReviewer
911
1042
  #
912
1043
  # resp = client.list_repository_associations({
913
1044
  # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
914
- # states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating
1045
+ # states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating, Disassociated
915
1046
  # names: ["Name"],
916
1047
  # owners: ["Owner"],
917
1048
  # max_results: 1,
@@ -928,7 +1059,7 @@ module Aws::CodeGuruReviewer
928
1059
  # resp.repository_association_summaries[0].name #=> String
929
1060
  # resp.repository_association_summaries[0].owner #=> String
930
1061
  # resp.repository_association_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
931
- # resp.repository_association_summaries[0].state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
1062
+ # resp.repository_association_summaries[0].state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
932
1063
  # resp.next_token #=> String
933
1064
  #
934
1065
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRepositoryAssociations AWS API Documentation
@@ -940,6 +1071,43 @@ module Aws::CodeGuruReviewer
940
1071
  req.send_request(options)
941
1072
  end
942
1073
 
1074
+ # Returns the list of tags associated with an associated repository
1075
+ # resource.
1076
+ #
1077
+ # @option params [required, String] :resource_arn
1078
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1079
+ # object. You can retrieve this ARN by calling [
1080
+ # `ListRepositoryAssociations` ][2].
1081
+ #
1082
+ #
1083
+ #
1084
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1085
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1086
+ #
1087
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1088
+ #
1089
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash&lt;String,String&gt;
1090
+ #
1091
+ # @example Request syntax with placeholder values
1092
+ #
1093
+ # resp = client.list_tags_for_resource({
1094
+ # resource_arn: "AssociationArn", # required
1095
+ # })
1096
+ #
1097
+ # @example Response structure
1098
+ #
1099
+ # resp.tags #=> Hash
1100
+ # resp.tags["TagKey"] #=> String
1101
+ #
1102
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListTagsForResource AWS API Documentation
1103
+ #
1104
+ # @overload list_tags_for_resource(params = {})
1105
+ # @param [Hash] params ({})
1106
+ def list_tags_for_resource(params = {}, options = {})
1107
+ req = build_request(:list_tags_for_resource, params)
1108
+ req.send_request(options)
1109
+ end
1110
+
943
1111
  # Stores customer feedback for a CodeGuru Reviewer recommendation. When
944
1112
  # this API is called again with different reactions the previous
945
1113
  # feedback is overwritten.
@@ -978,6 +1146,84 @@ module Aws::CodeGuruReviewer
978
1146
  req.send_request(options)
979
1147
  end
980
1148
 
1149
+ # Adds one or more tags to an associated repository.
1150
+ #
1151
+ # @option params [required, String] :resource_arn
1152
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1153
+ # object. You can retrieve this ARN by calling [
1154
+ # `ListRepositoryAssociations` ][2].
1155
+ #
1156
+ #
1157
+ #
1158
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1159
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1160
+ #
1161
+ # @option params [required, Hash<String,String>] :tags
1162
+ # An array of key-value pairs used to tag an associated repository. A
1163
+ # tag is a custom attribute label with two parts:
1164
+ #
1165
+ # * A *tag key* (for example, `CostCenter`, `Environment`, `Project`, or
1166
+ # `Secret`). Tag keys are case sensitive.
1167
+ #
1168
+ # * An optional field known as a *tag value* (for example,
1169
+ # `111122223333`, `Production`, or a team name). Omitting the tag
1170
+ # value is the same as using an empty string. Like tag keys, tag
1171
+ # values are case sensitive.
1172
+ #
1173
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1174
+ #
1175
+ # @example Request syntax with placeholder values
1176
+ #
1177
+ # resp = client.tag_resource({
1178
+ # resource_arn: "AssociationArn", # required
1179
+ # tags: { # required
1180
+ # "TagKey" => "TagValue",
1181
+ # },
1182
+ # })
1183
+ #
1184
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/TagResource AWS API Documentation
1185
+ #
1186
+ # @overload tag_resource(params = {})
1187
+ # @param [Hash] params ({})
1188
+ def tag_resource(params = {}, options = {})
1189
+ req = build_request(:tag_resource, params)
1190
+ req.send_request(options)
1191
+ end
1192
+
1193
+ # Removes a tag from an associated repository.
1194
+ #
1195
+ # @option params [required, String] :resource_arn
1196
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
1197
+ # object. You can retrieve this ARN by calling [
1198
+ # `ListRepositoryAssociations` ][2].
1199
+ #
1200
+ #
1201
+ #
1202
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
1203
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html
1204
+ #
1205
+ # @option params [required, Array<String>] :tag_keys
1206
+ # A list of the keys for each tag you want to remove from an associated
1207
+ # repository.
1208
+ #
1209
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1210
+ #
1211
+ # @example Request syntax with placeholder values
1212
+ #
1213
+ # resp = client.untag_resource({
1214
+ # resource_arn: "AssociationArn", # required
1215
+ # tag_keys: ["TagKey"], # required
1216
+ # })
1217
+ #
1218
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/UntagResource AWS API Documentation
1219
+ #
1220
+ # @overload untag_resource(params = {})
1221
+ # @param [Hash] params ({})
1222
+ def untag_resource(params = {}, options = {})
1223
+ req = build_request(:untag_resource, params)
1224
+ req.send_request(options)
1225
+ end
1226
+
981
1227
  # @!endgroup
982
1228
 
983
1229
  # @param params ({})
@@ -991,7 +1237,7 @@ module Aws::CodeGuruReviewer
991
1237
  params: params,
992
1238
  config: config)
993
1239
  context[:gem_name] = 'aws-sdk-codegurureviewer'
994
- context[:gem_version] = '1.9.0'
1240
+ context[:gem_version] = '1.14.0'
995
1241
  Seahorse::Client::Request.new(handlers, context)
996
1242
  end
997
1243