aws-sdk-codecommit 1.32.0 → 1.37.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: 4a0d341dfc2fe5613486ca46b661896dd4c95605b024de0381041f2a5afae629
4
- data.tar.gz: 2da128f77e2227d7fcf37bbc75095a6320ee2aec199d1dbc9c874f9de4ecdb39
3
+ metadata.gz: 31828e3bbecaa8b6466da5d4701808711c0bd43131e50b4619054588bd9287f8
4
+ data.tar.gz: cb89ae9944b1177c377d12d084152cbe52b21bbb001304a3b2c8c0d4547c7520
5
5
  SHA512:
6
- metadata.gz: '056468b1f611aaabeb83faec8678ba3fa7884e340e14b61a6ff06e93800318373abf945d8c12a0bfe8a0d2d92a01eff31f694175cbeca01c9041ab5ecbd53c3f'
7
- data.tar.gz: '08ef4e373a66d3b76479340647b9eb91a4a6c345451a1ab2a6015e892d7fb8b28ae0b8a87935896d01deec5ad3009f09a1f6f563e027c520c88ee8d5c996ab2e'
6
+ metadata.gz: 825535e18607d21998b076977b1369aad320ff1771292def8508460a7ea217913fe906588448f6ad38a4e788ae37587472eaf082d7cf3a46b7a8f79d8ea69bf5
7
+ data.tar.gz: c3583312131d253e101d4f70bf8233b8a2177e7fb60d59306aae471bea5cda136d24abbaa7248351e925b5ffb74eec879bcff3bd77313750e857357b15194743
@@ -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:
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-codecommit/customizations'
45
47
  # @service
46
48
  module Aws::CodeCommit
47
49
 
48
- GEM_VERSION = '1.32.0'
50
+ GEM_VERSION = '1.37.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/json_rpc.rb'
29
32
 
@@ -69,6 +72,7 @@ module Aws::CodeCommit
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::JsonRpc)
74
78
 
@@ -161,7 +165,7 @@ module Aws::CodeCommit
161
165
  # @option options [String] :endpoint
162
166
  # The client endpoint is normally constructed from the `:region`
163
167
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be a valid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
169
  #
166
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -176,7 +180,7 @@ module Aws::CodeCommit
176
180
  # requests fetching endpoints information. Defaults to 60 sec.
177
181
  #
178
182
  # @option options [Boolean] :endpoint_discovery (false)
179
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
183
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
180
184
  #
181
185
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
182
186
  # The log formatter.
@@ -726,7 +730,7 @@ module Aws::CodeCommit
726
730
  #
727
731
  #
728
732
  #
729
- # [1]: https://docs.aws.amazon.com/iam/latest/UserGuide/reference_identifiers.html
733
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html
730
734
  #
731
735
  # @option params [String] :approval_rule_template_description
732
736
  # The description of the approval rule template. Consider providing a
@@ -1046,7 +1050,7 @@ module Aws::CodeCommit
1046
1050
  #
1047
1051
  #
1048
1052
  #
1049
- # [1]: https://docs.aws.amazon.com/iam/latest/UserGuide/reference_identifiers.html
1053
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html
1050
1054
  #
1051
1055
  # @return [Types::CreatePullRequestApprovalRuleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1052
1056
  #
@@ -1355,6 +1359,10 @@ module Aws::CodeCommit
1355
1359
  # resp.comment.author_arn #=> String
1356
1360
  # resp.comment.deleted #=> Boolean
1357
1361
  # resp.comment.client_request_token #=> String
1362
+ # resp.comment.caller_reactions #=> Array
1363
+ # resp.comment.caller_reactions[0] #=> String
1364
+ # resp.comment.reaction_counts #=> Hash
1365
+ # resp.comment.reaction_counts["ReactionValue"] #=> Integer
1358
1366
  #
1359
1367
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteCommentContent AWS API Documentation
1360
1368
  #
@@ -1888,6 +1896,12 @@ module Aws::CodeCommit
1888
1896
  # Returns the content of a comment made on a change, file, or commit in
1889
1897
  # a repository.
1890
1898
  #
1899
+ # <note markdown="1"> Reaction counts might include numbers from user identities who were
1900
+ # deleted after the reaction was made. For a count of reactions from
1901
+ # active identities, use GetCommentReactions.
1902
+ #
1903
+ # </note>
1904
+ #
1891
1905
  # @option params [required, String] :comment_id
1892
1906
  # The unique, system-generated ID of the comment. To get this ID, use
1893
1907
  # GetCommentsForComparedCommit or GetCommentsForPullRequest.
@@ -1912,6 +1926,10 @@ module Aws::CodeCommit
1912
1926
  # resp.comment.author_arn #=> String
1913
1927
  # resp.comment.deleted #=> Boolean
1914
1928
  # resp.comment.client_request_token #=> String
1929
+ # resp.comment.caller_reactions #=> Array
1930
+ # resp.comment.caller_reactions[0] #=> String
1931
+ # resp.comment.reaction_counts #=> Hash
1932
+ # resp.comment.reaction_counts["ReactionValue"] #=> Integer
1915
1933
  #
1916
1934
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetComment AWS API Documentation
1917
1935
  #
@@ -1922,9 +1940,70 @@ module Aws::CodeCommit
1922
1940
  req.send_request(options)
1923
1941
  end
1924
1942
 
1943
+ # Returns information about reactions to a specified comment ID.
1944
+ # Reactions from users who have been deleted will not be included in the
1945
+ # count.
1946
+ #
1947
+ # @option params [required, String] :comment_id
1948
+ # The ID of the comment for which you want to get reactions information.
1949
+ #
1950
+ # @option params [String] :reaction_user_arn
1951
+ # Optional. The Amazon Resource Name (ARN) of the user or identity for
1952
+ # which you want to get reaction information.
1953
+ #
1954
+ # @option params [String] :next_token
1955
+ # An enumeration token that, when provided in a request, returns the
1956
+ # next batch of the results.
1957
+ #
1958
+ # @option params [Integer] :max_results
1959
+ # A non-zero, non-negative integer used to limit the number of returned
1960
+ # results. The default is the same as the allowed maximum, 1,000.
1961
+ #
1962
+ # @return [Types::GetCommentReactionsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1963
+ #
1964
+ # * {Types::GetCommentReactionsOutput#reactions_for_comment #reactions_for_comment} => Array&lt;Types::ReactionForComment&gt;
1965
+ # * {Types::GetCommentReactionsOutput#next_token #next_token} => String
1966
+ #
1967
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1968
+ #
1969
+ # @example Request syntax with placeholder values
1970
+ #
1971
+ # resp = client.get_comment_reactions({
1972
+ # comment_id: "CommentId", # required
1973
+ # reaction_user_arn: "Arn",
1974
+ # next_token: "NextToken",
1975
+ # max_results: 1,
1976
+ # })
1977
+ #
1978
+ # @example Response structure
1979
+ #
1980
+ # resp.reactions_for_comment #=> Array
1981
+ # resp.reactions_for_comment[0].reaction.emoji #=> String
1982
+ # resp.reactions_for_comment[0].reaction.short_code #=> String
1983
+ # resp.reactions_for_comment[0].reaction.unicode #=> String
1984
+ # resp.reactions_for_comment[0].reaction_users #=> Array
1985
+ # resp.reactions_for_comment[0].reaction_users[0] #=> String
1986
+ # resp.reactions_for_comment[0].reactions_from_deleted_users_count #=> Integer
1987
+ # resp.next_token #=> String
1988
+ #
1989
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentReactions AWS API Documentation
1990
+ #
1991
+ # @overload get_comment_reactions(params = {})
1992
+ # @param [Hash] params ({})
1993
+ def get_comment_reactions(params = {}, options = {})
1994
+ req = build_request(:get_comment_reactions, params)
1995
+ req.send_request(options)
1996
+ end
1997
+
1925
1998
  # Returns information about comments made on the comparison between two
1926
1999
  # commits.
1927
2000
  #
2001
+ # <note markdown="1"> Reaction counts might include numbers from user identities who were
2002
+ # deleted after the reaction was made. For a count of reactions from
2003
+ # active identities, use GetCommentReactions.
2004
+ #
2005
+ # </note>
2006
+ #
1928
2007
  # @option params [required, String] :repository_name
1929
2008
  # The name of the repository where you want to compare commits.
1930
2009
  #
@@ -1981,6 +2060,10 @@ module Aws::CodeCommit
1981
2060
  # resp.comments_for_compared_commit_data[0].comments[0].author_arn #=> String
1982
2061
  # resp.comments_for_compared_commit_data[0].comments[0].deleted #=> Boolean
1983
2062
  # resp.comments_for_compared_commit_data[0].comments[0].client_request_token #=> String
2063
+ # resp.comments_for_compared_commit_data[0].comments[0].caller_reactions #=> Array
2064
+ # resp.comments_for_compared_commit_data[0].comments[0].caller_reactions[0] #=> String
2065
+ # resp.comments_for_compared_commit_data[0].comments[0].reaction_counts #=> Hash
2066
+ # resp.comments_for_compared_commit_data[0].comments[0].reaction_counts["ReactionValue"] #=> Integer
1984
2067
  # resp.next_token #=> String
1985
2068
  #
1986
2069
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForComparedCommit AWS API Documentation
@@ -1994,6 +2077,12 @@ module Aws::CodeCommit
1994
2077
 
1995
2078
  # Returns comments made on a pull request.
1996
2079
  #
2080
+ # <note markdown="1"> Reaction counts might include numbers from user identities who were
2081
+ # deleted after the reaction was made. For a count of reactions from
2082
+ # active identities, use GetCommentReactions.
2083
+ #
2084
+ # </note>
2085
+ #
1997
2086
  # @option params [required, String] :pull_request_id
1998
2087
  # The system-generated ID of the pull request. To get this ID, use
1999
2088
  # ListPullRequests.
@@ -2057,6 +2146,10 @@ module Aws::CodeCommit
2057
2146
  # resp.comments_for_pull_request_data[0].comments[0].author_arn #=> String
2058
2147
  # resp.comments_for_pull_request_data[0].comments[0].deleted #=> Boolean
2059
2148
  # resp.comments_for_pull_request_data[0].comments[0].client_request_token #=> String
2149
+ # resp.comments_for_pull_request_data[0].comments[0].caller_reactions #=> Array
2150
+ # resp.comments_for_pull_request_data[0].comments[0].caller_reactions[0] #=> String
2151
+ # resp.comments_for_pull_request_data[0].comments[0].reaction_counts #=> Hash
2152
+ # resp.comments_for_pull_request_data[0].comments[0].reaction_counts["ReactionValue"] #=> Integer
2060
2153
  # resp.next_token #=> String
2061
2154
  #
2062
2155
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForPullRequest AWS API Documentation
@@ -3763,6 +3856,10 @@ module Aws::CodeCommit
3763
3856
  # resp.comment.author_arn #=> String
3764
3857
  # resp.comment.deleted #=> Boolean
3765
3858
  # resp.comment.client_request_token #=> String
3859
+ # resp.comment.caller_reactions #=> Array
3860
+ # resp.comment.caller_reactions[0] #=> String
3861
+ # resp.comment.reaction_counts #=> Hash
3862
+ # resp.comment.reaction_counts["ReactionValue"] #=> Integer
3766
3863
  #
3767
3864
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForComparedCommit AWS API Documentation
3768
3865
  #
@@ -3857,6 +3954,10 @@ module Aws::CodeCommit
3857
3954
  # resp.comment.author_arn #=> String
3858
3955
  # resp.comment.deleted #=> Boolean
3859
3956
  # resp.comment.client_request_token #=> String
3957
+ # resp.comment.caller_reactions #=> Array
3958
+ # resp.comment.caller_reactions[0] #=> String
3959
+ # resp.comment.reaction_counts #=> Hash
3960
+ # resp.comment.reaction_counts["ReactionValue"] #=> Integer
3860
3961
  #
3861
3962
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForPullRequest AWS API Documentation
3862
3963
  #
@@ -3910,6 +4011,10 @@ module Aws::CodeCommit
3910
4011
  # resp.comment.author_arn #=> String
3911
4012
  # resp.comment.deleted #=> Boolean
3912
4013
  # resp.comment.client_request_token #=> String
4014
+ # resp.comment.caller_reactions #=> Array
4015
+ # resp.comment.caller_reactions[0] #=> String
4016
+ # resp.comment.reaction_counts #=> Hash
4017
+ # resp.comment.reaction_counts["ReactionValue"] #=> Integer
3913
4018
  #
3914
4019
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentReply AWS API Documentation
3915
4020
  #
@@ -3920,6 +4025,42 @@ module Aws::CodeCommit
3920
4025
  req.send_request(options)
3921
4026
  end
3922
4027
 
4028
+ # Adds or updates a reaction to a specified comment for the user whose
4029
+ # identity is used to make the request. You can only add or update a
4030
+ # reaction for yourself. You cannot add, modify, or delete a reaction
4031
+ # for another user.
4032
+ #
4033
+ # @option params [required, String] :comment_id
4034
+ # The ID of the comment to which you want to add or update a reaction.
4035
+ #
4036
+ # @option params [required, String] :reaction_value
4037
+ # The emoji reaction you want to add or update. To remove a reaction,
4038
+ # provide a value of blank or null. You can also provide the value of
4039
+ # none. For information about emoji reaction values supported in AWS
4040
+ # CodeCommit, see the [AWS CodeCommit User Guide][1].
4041
+ #
4042
+ #
4043
+ #
4044
+ # [1]: https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table
4045
+ #
4046
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
4047
+ #
4048
+ # @example Request syntax with placeholder values
4049
+ #
4050
+ # resp = client.put_comment_reaction({
4051
+ # comment_id: "CommentId", # required
4052
+ # reaction_value: "ReactionValue", # required
4053
+ # })
4054
+ #
4055
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutCommentReaction AWS API Documentation
4056
+ #
4057
+ # @overload put_comment_reaction(params = {})
4058
+ # @param [Hash] params ({})
4059
+ def put_comment_reaction(params = {}, options = {})
4060
+ req = build_request(:put_comment_reaction, params)
4061
+ req.send_request(options)
4062
+ end
4063
+
3923
4064
  # Adds or updates a file in a branch in an AWS CodeCommit repository,
3924
4065
  # and generates a commit for the addition in the specified branch.
3925
4066
  #
@@ -4318,6 +4459,10 @@ module Aws::CodeCommit
4318
4459
  # resp.comment.author_arn #=> String
4319
4460
  # resp.comment.deleted #=> Boolean
4320
4461
  # resp.comment.client_request_token #=> String
4462
+ # resp.comment.caller_reactions #=> Array
4463
+ # resp.comment.caller_reactions[0] #=> String
4464
+ # resp.comment.reaction_counts #=> Hash
4465
+ # resp.comment.reaction_counts["ReactionValue"] #=> Integer
4321
4466
  #
4322
4467
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateComment AWS API Documentation
4323
4468
  #
@@ -4410,7 +4555,7 @@ module Aws::CodeCommit
4410
4555
  #
4411
4556
  #
4412
4557
  #
4413
- # [1]: https://docs.aws.amazon.com/iam/latest/UserGuide/reference_identifiers.html
4558
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html
4414
4559
  #
4415
4560
  # @return [Types::UpdatePullRequestApprovalRuleContentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4416
4561
  #
@@ -4752,7 +4897,7 @@ module Aws::CodeCommit
4752
4897
  params: params,
4753
4898
  config: config)
4754
4899
  context[:gem_name] = 'aws-sdk-codecommit'
4755
- context[:gem_version] = '1.32.0'
4900
+ context[:gem_version] = '1.37.0'
4756
4901
  Seahorse::Client::Request.new(handlers, context)
4757
4902
  end
4758
4903
 
@@ -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:
@@ -76,6 +78,7 @@ module Aws::CodeCommit
76
78
  BranchNameIsTagNameException = Shapes::StructureShape.new(name: 'BranchNameIsTagNameException')
77
79
  BranchNameList = Shapes::ListShape.new(name: 'BranchNameList')
78
80
  BranchNameRequiredException = Shapes::StructureShape.new(name: 'BranchNameRequiredException')
81
+ CallerReactions = Shapes::ListShape.new(name: 'CallerReactions')
79
82
  CannotDeleteApprovalRuleFromTemplateException = Shapes::StructureShape.new(name: 'CannotDeleteApprovalRuleFromTemplateException')
80
83
  CannotModifyApprovalRuleFromTemplateException = Shapes::StructureShape.new(name: 'CannotModifyApprovalRuleFromTemplateException')
81
84
  CapitalBoolean = Shapes::BooleanShape.new(name: 'CapitalBoolean')
@@ -118,6 +121,7 @@ module Aws::CodeCommit
118
121
  ConflictResolutionStrategyTypeEnum = Shapes::StringShape.new(name: 'ConflictResolutionStrategyTypeEnum')
119
122
  Conflicts = Shapes::ListShape.new(name: 'Conflicts')
120
123
  Content = Shapes::StringShape.new(name: 'Content')
124
+ Count = Shapes::IntegerShape.new(name: 'Count')
121
125
  CreateApprovalRuleTemplateInput = Shapes::StructureShape.new(name: 'CreateApprovalRuleTemplateInput')
122
126
  CreateApprovalRuleTemplateOutput = Shapes::StructureShape.new(name: 'CreateApprovalRuleTemplateOutput')
123
127
  CreateBranchInput = Shapes::StructureShape.new(name: 'CreateBranchInput')
@@ -201,6 +205,8 @@ module Aws::CodeCommit
201
205
  GetBranchOutput = Shapes::StructureShape.new(name: 'GetBranchOutput')
202
206
  GetCommentInput = Shapes::StructureShape.new(name: 'GetCommentInput')
203
207
  GetCommentOutput = Shapes::StructureShape.new(name: 'GetCommentOutput')
208
+ GetCommentReactionsInput = Shapes::StructureShape.new(name: 'GetCommentReactionsInput')
209
+ GetCommentReactionsOutput = Shapes::StructureShape.new(name: 'GetCommentReactionsOutput')
204
210
  GetCommentsForComparedCommitInput = Shapes::StructureShape.new(name: 'GetCommentsForComparedCommitInput')
205
211
  GetCommentsForComparedCommitOutput = Shapes::StructureShape.new(name: 'GetCommentsForComparedCommitOutput')
206
212
  GetCommentsForPullRequestInput = Shapes::StructureShape.new(name: 'GetCommentsForPullRequestInput')
@@ -268,6 +274,8 @@ module Aws::CodeCommit
268
274
  InvalidPullRequestIdException = Shapes::StructureShape.new(name: 'InvalidPullRequestIdException')
269
275
  InvalidPullRequestStatusException = Shapes::StructureShape.new(name: 'InvalidPullRequestStatusException')
270
276
  InvalidPullRequestStatusUpdateException = Shapes::StructureShape.new(name: 'InvalidPullRequestStatusUpdateException')
277
+ InvalidReactionUserArnException = Shapes::StructureShape.new(name: 'InvalidReactionUserArnException')
278
+ InvalidReactionValueException = Shapes::StructureShape.new(name: 'InvalidReactionValueException')
271
279
  InvalidReferenceNameException = Shapes::StructureShape.new(name: 'InvalidReferenceNameException')
272
280
  InvalidRelativeFileVersionEnumException = Shapes::StructureShape.new(name: 'InvalidRelativeFileVersionEnumException')
273
281
  InvalidReplacementContentException = Shapes::StructureShape.new(name: 'InvalidReplacementContentException')
@@ -407,6 +415,7 @@ module Aws::CodeCommit
407
415
  PullRequestStatusRequiredException = Shapes::StructureShape.new(name: 'PullRequestStatusRequiredException')
408
416
  PullRequestTarget = Shapes::StructureShape.new(name: 'PullRequestTarget')
409
417
  PullRequestTargetList = Shapes::ListShape.new(name: 'PullRequestTargetList')
418
+ PutCommentReactionInput = Shapes::StructureShape.new(name: 'PutCommentReactionInput')
410
419
  PutFileEntries = Shapes::ListShape.new(name: 'PutFileEntries')
411
420
  PutFileEntry = Shapes::StructureShape.new(name: 'PutFileEntry')
412
421
  PutFileEntryConflictException = Shapes::StructureShape.new(name: 'PutFileEntryConflictException')
@@ -414,6 +423,17 @@ module Aws::CodeCommit
414
423
  PutFileOutput = Shapes::StructureShape.new(name: 'PutFileOutput')
415
424
  PutRepositoryTriggersInput = Shapes::StructureShape.new(name: 'PutRepositoryTriggersInput')
416
425
  PutRepositoryTriggersOutput = Shapes::StructureShape.new(name: 'PutRepositoryTriggersOutput')
426
+ ReactionCountsMap = Shapes::MapShape.new(name: 'ReactionCountsMap')
427
+ ReactionEmoji = Shapes::StringShape.new(name: 'ReactionEmoji')
428
+ ReactionForComment = Shapes::StructureShape.new(name: 'ReactionForComment')
429
+ ReactionLimitExceededException = Shapes::StructureShape.new(name: 'ReactionLimitExceededException')
430
+ ReactionShortCode = Shapes::StringShape.new(name: 'ReactionShortCode')
431
+ ReactionUnicode = Shapes::StringShape.new(name: 'ReactionUnicode')
432
+ ReactionUsersList = Shapes::ListShape.new(name: 'ReactionUsersList')
433
+ ReactionValue = Shapes::StringShape.new(name: 'ReactionValue')
434
+ ReactionValueFormats = Shapes::StructureShape.new(name: 'ReactionValueFormats')
435
+ ReactionValueRequiredException = Shapes::StructureShape.new(name: 'ReactionValueRequiredException')
436
+ ReactionsForCommentList = Shapes::ListShape.new(name: 'ReactionsForCommentList')
417
437
  ReferenceDoesNotExistException = Shapes::StructureShape.new(name: 'ReferenceDoesNotExistException')
418
438
  ReferenceName = Shapes::StringShape.new(name: 'ReferenceName')
419
439
  ReferenceNameRequiredException = Shapes::StructureShape.new(name: 'ReferenceNameRequiredException')
@@ -696,6 +716,8 @@ module Aws::CodeCommit
696
716
 
697
717
  BranchNameRequiredException.struct_class = Types::BranchNameRequiredException
698
718
 
719
+ CallerReactions.member = Shapes::ShapeRef.new(shape: ReactionValue)
720
+
699
721
  CannotDeleteApprovalRuleFromTemplateException.struct_class = Types::CannotDeleteApprovalRuleFromTemplateException
700
722
 
701
723
  CannotModifyApprovalRuleFromTemplateException.struct_class = Types::CannotModifyApprovalRuleFromTemplateException
@@ -710,6 +732,8 @@ module Aws::CodeCommit
710
732
  Comment.add_member(:author_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "authorArn"))
711
733
  Comment.add_member(:deleted, Shapes::ShapeRef.new(shape: IsCommentDeleted, location_name: "deleted"))
712
734
  Comment.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "clientRequestToken"))
735
+ Comment.add_member(:caller_reactions, Shapes::ShapeRef.new(shape: CallerReactions, location_name: "callerReactions"))
736
+ Comment.add_member(:reaction_counts, Shapes::ShapeRef.new(shape: ReactionCountsMap, location_name: "reactionCounts"))
713
737
  Comment.struct_class = Types::Comment
714
738
 
715
739
  CommentContentRequiredException.struct_class = Types::CommentContentRequiredException
@@ -1080,6 +1104,16 @@ module Aws::CodeCommit
1080
1104
  GetCommentOutput.add_member(:comment, Shapes::ShapeRef.new(shape: Comment, location_name: "comment"))
1081
1105
  GetCommentOutput.struct_class = Types::GetCommentOutput
1082
1106
 
1107
+ GetCommentReactionsInput.add_member(:comment_id, Shapes::ShapeRef.new(shape: CommentId, required: true, location_name: "commentId"))
1108
+ GetCommentReactionsInput.add_member(:reaction_user_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "reactionUserArn"))
1109
+ GetCommentReactionsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1110
+ GetCommentReactionsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
1111
+ GetCommentReactionsInput.struct_class = Types::GetCommentReactionsInput
1112
+
1113
+ GetCommentReactionsOutput.add_member(:reactions_for_comment, Shapes::ShapeRef.new(shape: ReactionsForCommentList, required: true, location_name: "reactionsForComment"))
1114
+ GetCommentReactionsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1115
+ GetCommentReactionsOutput.struct_class = Types::GetCommentReactionsOutput
1116
+
1083
1117
  GetCommentsForComparedCommitInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
1084
1118
  GetCommentsForComparedCommitInput.add_member(:before_commit_id, Shapes::ShapeRef.new(shape: CommitId, location_name: "beforeCommitId"))
1085
1119
  GetCommentsForComparedCommitInput.add_member(:after_commit_id, Shapes::ShapeRef.new(shape: CommitId, required: true, location_name: "afterCommitId"))
@@ -1304,6 +1338,10 @@ module Aws::CodeCommit
1304
1338
 
1305
1339
  InvalidPullRequestStatusUpdateException.struct_class = Types::InvalidPullRequestStatusUpdateException
1306
1340
 
1341
+ InvalidReactionUserArnException.struct_class = Types::InvalidReactionUserArnException
1342
+
1343
+ InvalidReactionValueException.struct_class = Types::InvalidReactionValueException
1344
+
1307
1345
  InvalidReferenceNameException.struct_class = Types::InvalidReferenceNameException
1308
1346
 
1309
1347
  InvalidRelativeFileVersionEnumException.struct_class = Types::InvalidRelativeFileVersionEnumException
@@ -1714,6 +1752,10 @@ module Aws::CodeCommit
1714
1752
 
1715
1753
  PullRequestTargetList.member = Shapes::ShapeRef.new(shape: PullRequestTarget)
1716
1754
 
1755
+ PutCommentReactionInput.add_member(:comment_id, Shapes::ShapeRef.new(shape: CommentId, required: true, location_name: "commentId"))
1756
+ PutCommentReactionInput.add_member(:reaction_value, Shapes::ShapeRef.new(shape: ReactionValue, required: true, location_name: "reactionValue"))
1757
+ PutCommentReactionInput.struct_class = Types::PutCommentReactionInput
1758
+
1717
1759
  PutFileEntries.member = Shapes::ShapeRef.new(shape: PutFileEntry)
1718
1760
 
1719
1761
  PutFileEntry.add_member(:file_path, Shapes::ShapeRef.new(shape: Path, required: true, location_name: "filePath"))
@@ -1747,6 +1789,27 @@ module Aws::CodeCommit
1747
1789
  PutRepositoryTriggersOutput.add_member(:configuration_id, Shapes::ShapeRef.new(shape: RepositoryTriggersConfigurationId, location_name: "configurationId"))
1748
1790
  PutRepositoryTriggersOutput.struct_class = Types::PutRepositoryTriggersOutput
1749
1791
 
1792
+ ReactionCountsMap.key = Shapes::ShapeRef.new(shape: ReactionValue)
1793
+ ReactionCountsMap.value = Shapes::ShapeRef.new(shape: Count)
1794
+
1795
+ ReactionForComment.add_member(:reaction, Shapes::ShapeRef.new(shape: ReactionValueFormats, location_name: "reaction"))
1796
+ ReactionForComment.add_member(:reaction_users, Shapes::ShapeRef.new(shape: ReactionUsersList, location_name: "reactionUsers"))
1797
+ ReactionForComment.add_member(:reactions_from_deleted_users_count, Shapes::ShapeRef.new(shape: Count, location_name: "reactionsFromDeletedUsersCount"))
1798
+ ReactionForComment.struct_class = Types::ReactionForComment
1799
+
1800
+ ReactionLimitExceededException.struct_class = Types::ReactionLimitExceededException
1801
+
1802
+ ReactionUsersList.member = Shapes::ShapeRef.new(shape: Arn)
1803
+
1804
+ ReactionValueFormats.add_member(:emoji, Shapes::ShapeRef.new(shape: ReactionEmoji, location_name: "emoji"))
1805
+ ReactionValueFormats.add_member(:short_code, Shapes::ShapeRef.new(shape: ReactionShortCode, location_name: "shortCode"))
1806
+ ReactionValueFormats.add_member(:unicode, Shapes::ShapeRef.new(shape: ReactionUnicode, location_name: "unicode"))
1807
+ ReactionValueFormats.struct_class = Types::ReactionValueFormats
1808
+
1809
+ ReactionValueRequiredException.struct_class = Types::ReactionValueRequiredException
1810
+
1811
+ ReactionsForCommentList.member = Shapes::ShapeRef.new(shape: ReactionForComment)
1812
+
1750
1813
  ReferenceDoesNotExistException.struct_class = Types::ReferenceDoesNotExistException
1751
1814
 
1752
1815
  ReferenceNameRequiredException.struct_class = Types::ReferenceNameRequiredException
@@ -2607,9 +2670,35 @@ module Aws::CodeCommit
2607
2670
  o.input = Shapes::ShapeRef.new(shape: GetCommentInput)
2608
2671
  o.output = Shapes::ShapeRef.new(shape: GetCommentOutput)
2609
2672
  o.errors << Shapes::ShapeRef.new(shape: CommentDoesNotExistException)
2673
+ o.errors << Shapes::ShapeRef.new(shape: CommentDeletedException)
2610
2674
  o.errors << Shapes::ShapeRef.new(shape: CommentIdRequiredException)
2611
2675
  o.errors << Shapes::ShapeRef.new(shape: InvalidCommentIdException)
2676
+ o.errors << Shapes::ShapeRef.new(shape: EncryptionIntegrityChecksFailedException)
2677
+ o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyAccessDeniedException)
2678
+ o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyDisabledException)
2679
+ o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyNotFoundException)
2680
+ o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
2681
+ end)
2682
+
2683
+ api.add_operation(:get_comment_reactions, Seahorse::Model::Operation.new.tap do |o|
2684
+ o.name = "GetCommentReactions"
2685
+ o.http_method = "POST"
2686
+ o.http_request_uri = "/"
2687
+ o.input = Shapes::ShapeRef.new(shape: GetCommentReactionsInput)
2688
+ o.output = Shapes::ShapeRef.new(shape: GetCommentReactionsOutput)
2689
+ o.errors << Shapes::ShapeRef.new(shape: CommentDoesNotExistException)
2690
+ o.errors << Shapes::ShapeRef.new(shape: CommentIdRequiredException)
2691
+ o.errors << Shapes::ShapeRef.new(shape: InvalidCommentIdException)
2692
+ o.errors << Shapes::ShapeRef.new(shape: InvalidReactionUserArnException)
2693
+ o.errors << Shapes::ShapeRef.new(shape: InvalidMaxResultsException)
2694
+ o.errors << Shapes::ShapeRef.new(shape: InvalidContinuationTokenException)
2612
2695
  o.errors << Shapes::ShapeRef.new(shape: CommentDeletedException)
2696
+ o[:pager] = Aws::Pager.new(
2697
+ limit_key: "max_results",
2698
+ tokens: {
2699
+ "next_token" => "next_token"
2700
+ }
2701
+ )
2613
2702
  end)
2614
2703
 
2615
2704
  api.add_operation(:get_comments_for_compared_commit, Seahorse::Model::Operation.new.tap do |o|
@@ -3351,15 +3440,16 @@ module Aws::CodeCommit
3351
3440
  o.errors << Shapes::ShapeRef.new(shape: InvalidFilePositionException)
3352
3441
  o.errors << Shapes::ShapeRef.new(shape: CommitIdRequiredException)
3353
3442
  o.errors << Shapes::ShapeRef.new(shape: InvalidCommitIdException)
3443
+ o.errors << Shapes::ShapeRef.new(shape: BeforeCommitIdAndAfterCommitIdAreSameException)
3354
3444
  o.errors << Shapes::ShapeRef.new(shape: EncryptionIntegrityChecksFailedException)
3355
3445
  o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyAccessDeniedException)
3356
3446
  o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyDisabledException)
3357
3447
  o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyNotFoundException)
3358
3448
  o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
3359
- o.errors << Shapes::ShapeRef.new(shape: BeforeCommitIdAndAfterCommitIdAreSameException)
3360
3449
  o.errors << Shapes::ShapeRef.new(shape: CommitDoesNotExistException)
3361
3450
  o.errors << Shapes::ShapeRef.new(shape: InvalidPathException)
3362
3451
  o.errors << Shapes::ShapeRef.new(shape: PathDoesNotExistException)
3452
+ o.errors << Shapes::ShapeRef.new(shape: PathRequiredException)
3363
3453
  end)
3364
3454
 
3365
3455
  api.add_operation(:post_comment_for_pull_request, Seahorse::Model::Operation.new.tap do |o|
@@ -3386,6 +3476,7 @@ module Aws::CodeCommit
3386
3476
  o.errors << Shapes::ShapeRef.new(shape: InvalidFilePositionException)
3387
3477
  o.errors << Shapes::ShapeRef.new(shape: CommitIdRequiredException)
3388
3478
  o.errors << Shapes::ShapeRef.new(shape: InvalidCommitIdException)
3479
+ o.errors << Shapes::ShapeRef.new(shape: BeforeCommitIdAndAfterCommitIdAreSameException)
3389
3480
  o.errors << Shapes::ShapeRef.new(shape: EncryptionIntegrityChecksFailedException)
3390
3481
  o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyAccessDeniedException)
3391
3482
  o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyDisabledException)
@@ -3395,7 +3486,6 @@ module Aws::CodeCommit
3395
3486
  o.errors << Shapes::ShapeRef.new(shape: InvalidPathException)
3396
3487
  o.errors << Shapes::ShapeRef.new(shape: PathDoesNotExistException)
3397
3488
  o.errors << Shapes::ShapeRef.new(shape: PathRequiredException)
3398
- o.errors << Shapes::ShapeRef.new(shape: BeforeCommitIdAndAfterCommitIdAreSameException)
3399
3489
  end)
3400
3490
 
3401
3491
  api.add_operation(:post_comment_reply, Seahorse::Model::Operation.new.tap do |o|
@@ -3414,6 +3504,21 @@ module Aws::CodeCommit
3414
3504
  o.errors << Shapes::ShapeRef.new(shape: InvalidCommentIdException)
3415
3505
  end)
3416
3506
 
3507
+ api.add_operation(:put_comment_reaction, Seahorse::Model::Operation.new.tap do |o|
3508
+ o.name = "PutCommentReaction"
3509
+ o.http_method = "POST"
3510
+ o.http_request_uri = "/"
3511
+ o.input = Shapes::ShapeRef.new(shape: PutCommentReactionInput)
3512
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
3513
+ o.errors << Shapes::ShapeRef.new(shape: CommentDoesNotExistException)
3514
+ o.errors << Shapes::ShapeRef.new(shape: CommentIdRequiredException)
3515
+ o.errors << Shapes::ShapeRef.new(shape: InvalidCommentIdException)
3516
+ o.errors << Shapes::ShapeRef.new(shape: InvalidReactionValueException)
3517
+ o.errors << Shapes::ShapeRef.new(shape: ReactionValueRequiredException)
3518
+ o.errors << Shapes::ShapeRef.new(shape: ReactionLimitExceededException)
3519
+ o.errors << Shapes::ShapeRef.new(shape: CommentDeletedException)
3520
+ end)
3521
+
3417
3522
  api.add_operation(:put_file, Seahorse::Model::Operation.new.tap do |o|
3418
3523
  o.name = "PutFile"
3419
3524
  o.http_method = "POST"