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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3bd769e7bc0b3132eb35b53e25f9cbb08ff99f6eaa044facc70be540692c35eb
4
- data.tar.gz: d04d4b2ad7da307c135f7540fb56a4ad472f991940028788ed9e0271677d5b79
3
+ metadata.gz: '08c6fcb5c35df1e27f452e085becf49800c12c8f7975c26d86b2b668070cfadd'
4
+ data.tar.gz: 114e654661c28c0d613b9102ce165cacebee350e9e169d939f0e3e4d1b489520
5
5
  SHA512:
6
- metadata.gz: cee7db1232aef825999084f109e838510c2ee4a3d89a6afb6ad876c5d125ee34a76a7435afdcb55399ebecdc55aa94675c4123a984fcae3f42a188ab5875c337
7
- data.tar.gz: 7e7af76b4a583102b073ec60c0b9e7efece0c962104a4b46d3c879df2e2782070c0a6bdd33dbbd696f364ac2780470c453a8b6cf70223ce6a7d4928d7b474aab
6
+ metadata.gz: 1047d510c350df817d69244288e03ebafe2b00ee0c0bf497704e15cc4277c90078c4d24869c62d567c16bab39b54d0eca4e0f6e466b843180db37847d60def9e
7
+ data.tar.gz: 9d1d9d4a54f393482b189f513723c341c0f52af1e59b23027f83c7e2393483869392002531c24bc76b212d40b2120f6d9ef103093251e23970a2398538e674fb
@@ -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
 
@@ -47,6 +48,6 @@ require_relative 'aws-sdk-codegurureviewer/customizations'
47
48
  # @!group service
48
49
  module Aws::CodeGuruReviewer
49
50
 
50
- GEM_VERSION = '1.10.0'
51
+ GEM_VERSION = '1.15.0'
51
52
 
52
53
  end
@@ -362,25 +362,6 @@ module Aws::CodeGuruReviewer
362
362
  # The repository to associate.
363
363
  #
364
364
  # @option params [String] :client_request_token
365
- # Unique, case-sensitive identifier that you provide to ensure the
366
- # idempotency of the request.
367
- #
368
- # To add a new repository association, this parameter specifies a unique
369
- # identifier for the new repository association that helps ensure
370
- # idempotency.
371
- #
372
- # If you use the AWS CLI or one of the AWS SDKs to call this operation,
373
- # you can leave this parameter empty. The CLI or SDK generates a random
374
- # UUID for you and includes that in the request. If you don't use the
375
- # SDK and instead generate a raw HTTP request to the Secrets Manager
376
- # service endpoint, you must generate a ClientRequestToken yourself for
377
- # new versions and include that value in the request.
378
- #
379
- # You typically interact with this value if you implement your own retry
380
- # logic and want to ensure that a given repository association is not
381
- # created twice. We recommend that you generate a UUID-type value to
382
- # ensure uniqueness within the specified repository association.
383
- #
384
365
  # Amazon CodeGuru Reviewer uses this value to prevent the accidental
385
366
  # creation of duplicate repository associations if there are failures
386
367
  # and retries.
@@ -388,9 +369,22 @@ module Aws::CodeGuruReviewer
388
369
  # **A suitable default value is auto-generated.** You should normally
389
370
  # not need to pass this option.**
390
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
+ #
391
384
  # @return [Types::AssociateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
392
385
  #
393
386
  # * {Types::AssociateRepositoryResponse#repository_association #repository_association} => Types::RepositoryAssociation
387
+ # * {Types::AssociateRepositoryResponse#tags #tags} => Hash&lt;String,String&gt;
394
388
  #
395
389
  # @example Request syntax with placeholder values
396
390
  #
@@ -411,6 +405,9 @@ module Aws::CodeGuruReviewer
411
405
  # },
412
406
  # },
413
407
  # client_request_token: "ClientRequestToken",
408
+ # tags: {
409
+ # "TagKey" => "TagValue",
410
+ # },
414
411
  # })
415
412
  #
416
413
  # @example Response structure
@@ -421,10 +418,12 @@ module Aws::CodeGuruReviewer
421
418
  # resp.repository_association.name #=> String
422
419
  # resp.repository_association.owner #=> String
423
420
  # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
424
- # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
421
+ # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
425
422
  # resp.repository_association.state_reason #=> String
426
423
  # resp.repository_association.last_updated_time_stamp #=> Time
427
424
  # resp.repository_association.created_time_stamp #=> Time
425
+ # resp.tags #=> Hash
426
+ # resp.tags["TagKey"] #=> String
428
427
  #
429
428
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepository AWS API Documentation
430
429
  #
@@ -435,6 +434,97 @@ module Aws::CodeGuruReviewer
435
434
  req.send_request(options)
436
435
  end
437
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
+
438
528
  # Returns the metadata associated with the code review along with its
439
529
  # status.
440
530
  #
@@ -466,10 +556,12 @@ module Aws::CodeGuruReviewer
466
556
  # resp.code_review.state_reason #=> String
467
557
  # resp.code_review.created_time_stamp #=> Time
468
558
  # resp.code_review.last_updated_time_stamp #=> Time
469
- # resp.code_review.type #=> String, one of "PullRequest"
559
+ # resp.code_review.type #=> String, one of "PullRequest", "RepositoryAnalysis"
470
560
  # resp.code_review.pull_request_id #=> String
471
561
  # resp.code_review.source_code_type.commit_diff.source_commit #=> String
472
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
473
565
  # resp.code_review.metrics.metered_lines_of_code_count #=> Integer
474
566
  # resp.code_review.metrics.findings_count #=> Integer
475
567
  #
@@ -549,20 +641,23 @@ module Aws::CodeGuruReviewer
549
641
  #
550
642
  # @option params [required, String] :association_arn
551
643
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
552
- # object. You can retrieve this ARN by calling `ListRepositories`.
644
+ # object. You can retrieve this ARN by calling [
645
+ # `ListRepositoryAssociations` ][2].
553
646
  #
554
647
  #
555
648
  #
556
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
557
651
  #
558
652
  # @return [Types::DescribeRepositoryAssociationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
559
653
  #
560
654
  # * {Types::DescribeRepositoryAssociationResponse#repository_association #repository_association} => Types::RepositoryAssociation
655
+ # * {Types::DescribeRepositoryAssociationResponse#tags #tags} => Hash&lt;String,String&gt;
561
656
  #
562
657
  # @example Request syntax with placeholder values
563
658
  #
564
659
  # resp = client.describe_repository_association({
565
- # association_arn: "Arn", # required
660
+ # association_arn: "AssociationArn", # required
566
661
  # })
567
662
  #
568
663
  # @example Response structure
@@ -573,10 +668,12 @@ module Aws::CodeGuruReviewer
573
668
  # resp.repository_association.name #=> String
574
669
  # resp.repository_association.owner #=> String
575
670
  # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
576
- # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
671
+ # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
577
672
  # resp.repository_association.state_reason #=> String
578
673
  # resp.repository_association.last_updated_time_stamp #=> Time
579
674
  # resp.repository_association.created_time_stamp #=> Time
675
+ # resp.tags #=> Hash
676
+ # resp.tags["TagKey"] #=> String
580
677
  #
581
678
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociation AWS API Documentation
582
679
  #
@@ -592,20 +689,23 @@ module Aws::CodeGuruReviewer
592
689
  #
593
690
  # @option params [required, String] :association_arn
594
691
  # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
595
- # object.
692
+ # object. You can retrieve this ARN by calling [
693
+ # `ListRepositoryAssociations` ][2].
596
694
  #
597
695
  #
598
696
  #
599
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
600
699
  #
601
700
  # @return [Types::DisassociateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
602
701
  #
603
702
  # * {Types::DisassociateRepositoryResponse#repository_association #repository_association} => Types::RepositoryAssociation
703
+ # * {Types::DisassociateRepositoryResponse#tags #tags} => Hash&lt;String,String&gt;
604
704
  #
605
705
  # @example Request syntax with placeholder values
606
706
  #
607
707
  # resp = client.disassociate_repository({
608
- # association_arn: "Arn", # required
708
+ # association_arn: "AssociationArn", # required
609
709
  # })
610
710
  #
611
711
  # @example Response structure
@@ -616,10 +716,12 @@ module Aws::CodeGuruReviewer
616
716
  # resp.repository_association.name #=> String
617
717
  # resp.repository_association.owner #=> String
618
718
  # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
619
- # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
719
+ # resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating", "Disassociated"
620
720
  # resp.repository_association.state_reason #=> String
621
721
  # resp.repository_association.last_updated_time_stamp #=> Time
622
722
  # resp.repository_association.created_time_stamp #=> Time
723
+ # resp.tags #=> Hash
724
+ # resp.tags["TagKey"] #=> String
623
725
  #
624
726
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepository AWS API Documentation
625
727
  #
@@ -683,7 +785,7 @@ module Aws::CodeGuruReviewer
683
785
  # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
684
786
  # states: ["Completed"], # accepts Completed, Pending, Failed, Deleting
685
787
  # repository_names: ["Name"],
686
- # type: "PullRequest", # required, accepts PullRequest
788
+ # type: "PullRequest", # required, accepts PullRequest, RepositoryAnalysis
687
789
  # max_results: 1,
688
790
  # next_token: "NextToken",
689
791
  # })
@@ -699,7 +801,7 @@ module Aws::CodeGuruReviewer
699
801
  # resp.code_review_summaries[0].state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
700
802
  # resp.code_review_summaries[0].created_time_stamp #=> Time
701
803
  # resp.code_review_summaries[0].last_updated_time_stamp #=> Time
702
- # resp.code_review_summaries[0].type #=> String, one of "PullRequest"
804
+ # resp.code_review_summaries[0].type #=> String, one of "PullRequest", "RepositoryAnalysis"
703
805
  # resp.code_review_summaries[0].pull_request_id #=> String
704
806
  # resp.code_review_summaries[0].metrics_summary.metered_lines_of_code_count #=> Integer
705
807
  # resp.code_review_summaries[0].metrics_summary.findings_count #=> Integer
@@ -868,10 +970,11 @@ module Aws::CodeGuruReviewer
868
970
  # * Setting up pull request notifications. This is required for pull
869
971
  # requests to trigger a CodeGuru Reviewer review.
870
972
  #
871
- # <note markdown="1"> If your repository `ProviderType` is `GitHub` or `Bitbucket`,
872
- # CodeGuru Reviewer creates webhooks in your repository to trigger
873
- # CodeGuru Reviewer reviews. If you delete these webhooks, reviews
874
- # 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.
875
978
  #
876
979
  # </note>
877
980
  #
@@ -883,14 +986,27 @@ module Aws::CodeGuruReviewer
883
986
  # * **Disassociating**\: CodeGuru Reviewer is removing the repository's
884
987
  # pull request notifications and source code access.
885
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
+ #
886
1001
  # @option params [Array<String>] :names
887
1002
  # List of repository names to use as a filter.
888
1003
  #
889
1004
  # @option params [Array<String>] :owners
890
1005
  # List of owners to use as a filter. For AWS CodeCommit, it is the name
891
1006
  # of the CodeCommit account that was used to associate the repository.
892
- # For other repository source providers, such as Bitbucket, this is name
893
- # 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.
894
1010
  #
895
1011
  # @option params [Integer] :max_results
896
1012
  # The maximum number of repository association results returned by
@@ -926,7 +1042,7 @@ module Aws::CodeGuruReviewer
926
1042
  #
927
1043
  # resp = client.list_repository_associations({
928
1044
  # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
929
- # states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating
1045
+ # states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating, Disassociated
930
1046
  # names: ["Name"],
931
1047
  # owners: ["Owner"],
932
1048
  # max_results: 1,
@@ -943,7 +1059,7 @@ module Aws::CodeGuruReviewer
943
1059
  # resp.repository_association_summaries[0].name #=> String
944
1060
  # resp.repository_association_summaries[0].owner #=> String
945
1061
  # resp.repository_association_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
946
- # 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"
947
1063
  # resp.next_token #=> String
948
1064
  #
949
1065
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRepositoryAssociations AWS API Documentation
@@ -955,6 +1071,43 @@ module Aws::CodeGuruReviewer
955
1071
  req.send_request(options)
956
1072
  end
957
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
+
958
1111
  # Stores customer feedback for a CodeGuru Reviewer recommendation. When
959
1112
  # this API is called again with different reactions the previous
960
1113
  # feedback is overwritten.
@@ -993,6 +1146,84 @@ module Aws::CodeGuruReviewer
993
1146
  req.send_request(options)
994
1147
  end
995
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
+
996
1227
  # @!endgroup
997
1228
 
998
1229
  # @param params ({})
@@ -1006,7 +1237,7 @@ module Aws::CodeGuruReviewer
1006
1237
  params: params,
1007
1238
  config: config)
1008
1239
  context[:gem_name] = 'aws-sdk-codegurureviewer'
1009
- context[:gem_version] = '1.10.0'
1240
+ context[:gem_version] = '1.15.0'
1010
1241
  Seahorse::Client::Request.new(handlers, context)
1011
1242
  end
1012
1243