aws-sdk-codecommit 1.33.0 → 1.38.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: c4cdf6e7810af5fac2185f4014f9ed5f17c00e3d7fb388ce55e31dc9b1457420
4
- data.tar.gz: 6c365bbd2c5f6585d931e8aebae642d5efcdd6554ca944640f25103d05c1bf6c
3
+ metadata.gz: 3d6e07a848a8a010dc732ccb370e94d4192b1ce40d6f5c01adcd688ea0f1a6ec
4
+ data.tar.gz: dd3d1205777870dec84c8529c676dbd64ae9b62557594cbe71cef1ed73f13652
5
5
  SHA512:
6
- metadata.gz: 9687367780fa583ce6fb433fd1c30531902d1d7070996fffb194dd9b0f2a674228b6f676eb654e248d4a8baa81599bf833628998a8026570b1daf548adaaac7f
7
- data.tar.gz: 41d3b549ba042870d1edeb057422d9c45ee2eb5206f469a94172402f689768aaaf25190689c969a8aa6975b764dc13f457cb39a647f39ca82742eb1e9a3af522
6
+ metadata.gz: 4f23dc635b29a8f0176ba1ce1bc473f1cd54258adc4a49de784e44538d70c49e26949fdb58def84d64f974894a625f0ceb960f6f0596359177649adc05fb49e0
7
+ data.tar.gz: 8d6be9b42669ce70674299cf6ddfe9a1e4404d34d2f3b00e8959704137f81f3e31a7a7ec38a1946f0997ad2d4357663661d58df4e9f3344b8771799bd0b5a257
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -42,9 +44,9 @@ require_relative 'aws-sdk-codecommit/customizations'
42
44
  #
43
45
  # See {Errors} for more information.
44
46
  #
45
- # @service
47
+ # @!group service
46
48
  module Aws::CodeCommit
47
49
 
48
- GEM_VERSION = '1.33.0'
50
+ GEM_VERSION = '1.38.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
 
@@ -81,13 +85,28 @@ module Aws::CodeCommit
81
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
82
86
  # credentials.
83
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
84
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
85
103
  # from an EC2 IMDS on an EC2 instance.
86
104
  #
87
- # * `Aws::SharedCredentials` - Used for loading credentials from a
88
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
89
107
  #
90
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
91
110
  #
92
111
  # When `:credentials` are not configured directly, the following
93
112
  # locations will be searched for credentials:
@@ -97,10 +116,10 @@ module Aws::CodeCommit
97
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
98
117
  # * `~/.aws/credentials`
99
118
  # * `~/.aws/config`
100
- # * EC2 IMDS instance profile - When used by default, the timeouts are
101
- # very aggressive. Construct and pass an instance of
102
- # `Aws::InstanceProfileCredentails` to enable retries and extended
103
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
104
123
  #
105
124
  # @option options [required, String] :region
106
125
  # The AWS region to connect to. The configured `:region` is
@@ -161,7 +180,7 @@ module Aws::CodeCommit
161
180
  # @option options [String] :endpoint
162
181
  # The client endpoint is normally constructed from the `:region`
163
182
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be a valid HTTP(S) URI.
183
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
184
  #
166
185
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
186
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -726,7 +745,7 @@ module Aws::CodeCommit
726
745
  #
727
746
  #
728
747
  #
729
- # [1]: https://docs.aws.amazon.com/iam/latest/UserGuide/reference_identifiers.html
748
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html
730
749
  #
731
750
  # @option params [String] :approval_rule_template_description
732
751
  # The description of the approval rule template. Consider providing a
@@ -1046,7 +1065,7 @@ module Aws::CodeCommit
1046
1065
  #
1047
1066
  #
1048
1067
  #
1049
- # [1]: https://docs.aws.amazon.com/iam/latest/UserGuide/reference_identifiers.html
1068
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html
1050
1069
  #
1051
1070
  # @return [Types::CreatePullRequestApprovalRuleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1052
1071
  #
@@ -1355,6 +1374,10 @@ module Aws::CodeCommit
1355
1374
  # resp.comment.author_arn #=> String
1356
1375
  # resp.comment.deleted #=> Boolean
1357
1376
  # resp.comment.client_request_token #=> String
1377
+ # resp.comment.caller_reactions #=> Array
1378
+ # resp.comment.caller_reactions[0] #=> String
1379
+ # resp.comment.reaction_counts #=> Hash
1380
+ # resp.comment.reaction_counts["ReactionValue"] #=> Integer
1358
1381
  #
1359
1382
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteCommentContent AWS API Documentation
1360
1383
  #
@@ -1888,6 +1911,12 @@ module Aws::CodeCommit
1888
1911
  # Returns the content of a comment made on a change, file, or commit in
1889
1912
  # a repository.
1890
1913
  #
1914
+ # <note markdown="1"> Reaction counts might include numbers from user identities who were
1915
+ # deleted after the reaction was made. For a count of reactions from
1916
+ # active identities, use GetCommentReactions.
1917
+ #
1918
+ # </note>
1919
+ #
1891
1920
  # @option params [required, String] :comment_id
1892
1921
  # The unique, system-generated ID of the comment. To get this ID, use
1893
1922
  # GetCommentsForComparedCommit or GetCommentsForPullRequest.
@@ -1912,6 +1941,10 @@ module Aws::CodeCommit
1912
1941
  # resp.comment.author_arn #=> String
1913
1942
  # resp.comment.deleted #=> Boolean
1914
1943
  # resp.comment.client_request_token #=> String
1944
+ # resp.comment.caller_reactions #=> Array
1945
+ # resp.comment.caller_reactions[0] #=> String
1946
+ # resp.comment.reaction_counts #=> Hash
1947
+ # resp.comment.reaction_counts["ReactionValue"] #=> Integer
1915
1948
  #
1916
1949
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetComment AWS API Documentation
1917
1950
  #
@@ -1922,9 +1955,70 @@ module Aws::CodeCommit
1922
1955
  req.send_request(options)
1923
1956
  end
1924
1957
 
1958
+ # Returns information about reactions to a specified comment ID.
1959
+ # Reactions from users who have been deleted will not be included in the
1960
+ # count.
1961
+ #
1962
+ # @option params [required, String] :comment_id
1963
+ # The ID of the comment for which you want to get reactions information.
1964
+ #
1965
+ # @option params [String] :reaction_user_arn
1966
+ # Optional. The Amazon Resource Name (ARN) of the user or identity for
1967
+ # which you want to get reaction information.
1968
+ #
1969
+ # @option params [String] :next_token
1970
+ # An enumeration token that, when provided in a request, returns the
1971
+ # next batch of the results.
1972
+ #
1973
+ # @option params [Integer] :max_results
1974
+ # A non-zero, non-negative integer used to limit the number of returned
1975
+ # results. The default is the same as the allowed maximum, 1,000.
1976
+ #
1977
+ # @return [Types::GetCommentReactionsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1978
+ #
1979
+ # * {Types::GetCommentReactionsOutput#reactions_for_comment #reactions_for_comment} => Array&lt;Types::ReactionForComment&gt;
1980
+ # * {Types::GetCommentReactionsOutput#next_token #next_token} => String
1981
+ #
1982
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1983
+ #
1984
+ # @example Request syntax with placeholder values
1985
+ #
1986
+ # resp = client.get_comment_reactions({
1987
+ # comment_id: "CommentId", # required
1988
+ # reaction_user_arn: "Arn",
1989
+ # next_token: "NextToken",
1990
+ # max_results: 1,
1991
+ # })
1992
+ #
1993
+ # @example Response structure
1994
+ #
1995
+ # resp.reactions_for_comment #=> Array
1996
+ # resp.reactions_for_comment[0].reaction.emoji #=> String
1997
+ # resp.reactions_for_comment[0].reaction.short_code #=> String
1998
+ # resp.reactions_for_comment[0].reaction.unicode #=> String
1999
+ # resp.reactions_for_comment[0].reaction_users #=> Array
2000
+ # resp.reactions_for_comment[0].reaction_users[0] #=> String
2001
+ # resp.reactions_for_comment[0].reactions_from_deleted_users_count #=> Integer
2002
+ # resp.next_token #=> String
2003
+ #
2004
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentReactions AWS API Documentation
2005
+ #
2006
+ # @overload get_comment_reactions(params = {})
2007
+ # @param [Hash] params ({})
2008
+ def get_comment_reactions(params = {}, options = {})
2009
+ req = build_request(:get_comment_reactions, params)
2010
+ req.send_request(options)
2011
+ end
2012
+
1925
2013
  # Returns information about comments made on the comparison between two
1926
2014
  # commits.
1927
2015
  #
2016
+ # <note markdown="1"> Reaction counts might include numbers from user identities who were
2017
+ # deleted after the reaction was made. For a count of reactions from
2018
+ # active identities, use GetCommentReactions.
2019
+ #
2020
+ # </note>
2021
+ #
1928
2022
  # @option params [required, String] :repository_name
1929
2023
  # The name of the repository where you want to compare commits.
1930
2024
  #
@@ -1981,6 +2075,10 @@ module Aws::CodeCommit
1981
2075
  # resp.comments_for_compared_commit_data[0].comments[0].author_arn #=> String
1982
2076
  # resp.comments_for_compared_commit_data[0].comments[0].deleted #=> Boolean
1983
2077
  # resp.comments_for_compared_commit_data[0].comments[0].client_request_token #=> String
2078
+ # resp.comments_for_compared_commit_data[0].comments[0].caller_reactions #=> Array
2079
+ # resp.comments_for_compared_commit_data[0].comments[0].caller_reactions[0] #=> String
2080
+ # resp.comments_for_compared_commit_data[0].comments[0].reaction_counts #=> Hash
2081
+ # resp.comments_for_compared_commit_data[0].comments[0].reaction_counts["ReactionValue"] #=> Integer
1984
2082
  # resp.next_token #=> String
1985
2083
  #
1986
2084
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForComparedCommit AWS API Documentation
@@ -1994,6 +2092,12 @@ module Aws::CodeCommit
1994
2092
 
1995
2093
  # Returns comments made on a pull request.
1996
2094
  #
2095
+ # <note markdown="1"> Reaction counts might include numbers from user identities who were
2096
+ # deleted after the reaction was made. For a count of reactions from
2097
+ # active identities, use GetCommentReactions.
2098
+ #
2099
+ # </note>
2100
+ #
1997
2101
  # @option params [required, String] :pull_request_id
1998
2102
  # The system-generated ID of the pull request. To get this ID, use
1999
2103
  # ListPullRequests.
@@ -2057,6 +2161,10 @@ module Aws::CodeCommit
2057
2161
  # resp.comments_for_pull_request_data[0].comments[0].author_arn #=> String
2058
2162
  # resp.comments_for_pull_request_data[0].comments[0].deleted #=> Boolean
2059
2163
  # resp.comments_for_pull_request_data[0].comments[0].client_request_token #=> String
2164
+ # resp.comments_for_pull_request_data[0].comments[0].caller_reactions #=> Array
2165
+ # resp.comments_for_pull_request_data[0].comments[0].caller_reactions[0] #=> String
2166
+ # resp.comments_for_pull_request_data[0].comments[0].reaction_counts #=> Hash
2167
+ # resp.comments_for_pull_request_data[0].comments[0].reaction_counts["ReactionValue"] #=> Integer
2060
2168
  # resp.next_token #=> String
2061
2169
  #
2062
2170
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForPullRequest AWS API Documentation
@@ -3763,6 +3871,10 @@ module Aws::CodeCommit
3763
3871
  # resp.comment.author_arn #=> String
3764
3872
  # resp.comment.deleted #=> Boolean
3765
3873
  # resp.comment.client_request_token #=> String
3874
+ # resp.comment.caller_reactions #=> Array
3875
+ # resp.comment.caller_reactions[0] #=> String
3876
+ # resp.comment.reaction_counts #=> Hash
3877
+ # resp.comment.reaction_counts["ReactionValue"] #=> Integer
3766
3878
  #
3767
3879
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForComparedCommit AWS API Documentation
3768
3880
  #
@@ -3857,6 +3969,10 @@ module Aws::CodeCommit
3857
3969
  # resp.comment.author_arn #=> String
3858
3970
  # resp.comment.deleted #=> Boolean
3859
3971
  # resp.comment.client_request_token #=> String
3972
+ # resp.comment.caller_reactions #=> Array
3973
+ # resp.comment.caller_reactions[0] #=> String
3974
+ # resp.comment.reaction_counts #=> Hash
3975
+ # resp.comment.reaction_counts["ReactionValue"] #=> Integer
3860
3976
  #
3861
3977
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForPullRequest AWS API Documentation
3862
3978
  #
@@ -3910,6 +4026,10 @@ module Aws::CodeCommit
3910
4026
  # resp.comment.author_arn #=> String
3911
4027
  # resp.comment.deleted #=> Boolean
3912
4028
  # resp.comment.client_request_token #=> String
4029
+ # resp.comment.caller_reactions #=> Array
4030
+ # resp.comment.caller_reactions[0] #=> String
4031
+ # resp.comment.reaction_counts #=> Hash
4032
+ # resp.comment.reaction_counts["ReactionValue"] #=> Integer
3913
4033
  #
3914
4034
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentReply AWS API Documentation
3915
4035
  #
@@ -3920,6 +4040,42 @@ module Aws::CodeCommit
3920
4040
  req.send_request(options)
3921
4041
  end
3922
4042
 
4043
+ # Adds or updates a reaction to a specified comment for the user whose
4044
+ # identity is used to make the request. You can only add or update a
4045
+ # reaction for yourself. You cannot add, modify, or delete a reaction
4046
+ # for another user.
4047
+ #
4048
+ # @option params [required, String] :comment_id
4049
+ # The ID of the comment to which you want to add or update a reaction.
4050
+ #
4051
+ # @option params [required, String] :reaction_value
4052
+ # The emoji reaction you want to add or update. To remove a reaction,
4053
+ # provide a value of blank or null. You can also provide the value of
4054
+ # none. For information about emoji reaction values supported in AWS
4055
+ # CodeCommit, see the [AWS CodeCommit User Guide][1].
4056
+ #
4057
+ #
4058
+ #
4059
+ # [1]: https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-commit-comment.html#emoji-reaction-table
4060
+ #
4061
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
4062
+ #
4063
+ # @example Request syntax with placeholder values
4064
+ #
4065
+ # resp = client.put_comment_reaction({
4066
+ # comment_id: "CommentId", # required
4067
+ # reaction_value: "ReactionValue", # required
4068
+ # })
4069
+ #
4070
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutCommentReaction AWS API Documentation
4071
+ #
4072
+ # @overload put_comment_reaction(params = {})
4073
+ # @param [Hash] params ({})
4074
+ def put_comment_reaction(params = {}, options = {})
4075
+ req = build_request(:put_comment_reaction, params)
4076
+ req.send_request(options)
4077
+ end
4078
+
3923
4079
  # Adds or updates a file in a branch in an AWS CodeCommit repository,
3924
4080
  # and generates a commit for the addition in the specified branch.
3925
4081
  #
@@ -3930,7 +4086,7 @@ module Aws::CodeCommit
3930
4086
  # The name of the branch where you want to add or update the file. If
3931
4087
  # this is an empty repository, this branch is created.
3932
4088
  #
3933
- # @option params [required, String, IO] :file_content
4089
+ # @option params [required, String, StringIO, File] :file_content
3934
4090
  # The content of the file, in binary object format.
3935
4091
  #
3936
4092
  # @option params [required, String] :file_path
@@ -4318,6 +4474,10 @@ module Aws::CodeCommit
4318
4474
  # resp.comment.author_arn #=> String
4319
4475
  # resp.comment.deleted #=> Boolean
4320
4476
  # resp.comment.client_request_token #=> String
4477
+ # resp.comment.caller_reactions #=> Array
4478
+ # resp.comment.caller_reactions[0] #=> String
4479
+ # resp.comment.reaction_counts #=> Hash
4480
+ # resp.comment.reaction_counts["ReactionValue"] #=> Integer
4321
4481
  #
4322
4482
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateComment AWS API Documentation
4323
4483
  #
@@ -4410,7 +4570,7 @@ module Aws::CodeCommit
4410
4570
  #
4411
4571
  #
4412
4572
  #
4413
- # [1]: https://docs.aws.amazon.com/iam/latest/UserGuide/reference_identifiers.html
4573
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html
4414
4574
  #
4415
4575
  # @return [Types::UpdatePullRequestApprovalRuleContentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4416
4576
  #
@@ -4752,7 +4912,7 @@ module Aws::CodeCommit
4752
4912
  params: params,
4753
4913
  config: config)
4754
4914
  context[:gem_name] = 'aws-sdk-codecommit'
4755
- context[:gem_version] = '1.33.0'
4915
+ context[:gem_version] = '1.38.0'
4756
4916
  Seahorse::Client::Request.new(handlers, context)
4757
4917
  end
4758
4918
 
@@ -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"