aws-sdk-codecommit 1.34.1 → 1.39.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: ac535780414bd55e3454c68dfc576a061aac6b064bf316d26b897d332da72cbc
4
- data.tar.gz: 6a2b805fe4ed4c82b4ceac553f09e76fb6fed89154a8fc25810898f8b0f6f970
3
+ metadata.gz: db98fea7a7bea22423ec40e304785ba36cdde60f18e70e3d709d44071f6b88d5
4
+ data.tar.gz: b31c0c0cf0ae21aef971afc1a270a2067816472af6704683603c39baeb2afd21
5
5
  SHA512:
6
- metadata.gz: 2e868ec000598901316cef68d8e046c57395067e5c1d3cfbb341c79ec0d601a8f06a5ea7706399fa5fd24f9756fc046677aa0fbc49eb168c0dcf66ac2a8f941e
7
- data.tar.gz: c8ce898f093a190680fa90f7be3b8c0cfd6fa526cd615f672b4dd444df53571d3a9fd6e40f3b3fca5796ea1c8b3210d7474667cb2289094efdeb91f29f6a55f8
6
+ metadata.gz: 6d99e173efbe4d98de67fa4f80ec674993e48b15712a963a2f4bf05bf584850cf5ee29465504c12ac124aba7cffa5d2a9bf1ec4b3ab6360cd2ff71dcfdf57b08
7
+ data.tar.gz: dc090c089ecb9751b17741befe037fdc7c35710143685697a76c56f6af635d694e0fc791d601b368531daf4665b953dc6e7095d305fc1edc28a871f7364db849
@@ -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:
@@ -5,6 +7,7 @@
5
7
  #
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
10
+
8
11
  require 'aws-sdk-core'
9
12
  require 'aws-sigv4'
10
13
 
@@ -42,9 +45,9 @@ require_relative 'aws-sdk-codecommit/customizations'
42
45
  #
43
46
  # See {Errors} for more information.
44
47
  #
45
- # @service
48
+ # @!group service
46
49
  module Aws::CodeCommit
47
50
 
48
- GEM_VERSION = '1.34.1'
51
+ GEM_VERSION = '1.39.0'
49
52
 
50
53
  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:
@@ -83,13 +85,28 @@ module Aws::CodeCommit
83
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
84
86
  # credentials.
85
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
+ #
86
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
87
103
  # from an EC2 IMDS on an EC2 instance.
88
104
  #
89
- # * `Aws::SharedCredentials` - Used for loading credentials from a
90
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
91
107
  #
92
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
93
110
  #
94
111
  # When `:credentials` are not configured directly, the following
95
112
  # locations will be searched for credentials:
@@ -99,10 +116,10 @@ module Aws::CodeCommit
99
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
100
117
  # * `~/.aws/credentials`
101
118
  # * `~/.aws/config`
102
- # * EC2 IMDS instance profile - When used by default, the timeouts are
103
- # very aggressive. Construct and pass an instance of
104
- # `Aws::InstanceProfileCredentails` to enable retries and extended
105
- # 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.
106
123
  #
107
124
  # @option options [required, String] :region
108
125
  # The AWS region to connect to. The configured `:region` is
@@ -728,7 +745,7 @@ module Aws::CodeCommit
728
745
  #
729
746
  #
730
747
  #
731
- # [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
732
749
  #
733
750
  # @option params [String] :approval_rule_template_description
734
751
  # The description of the approval rule template. Consider providing a
@@ -1048,7 +1065,7 @@ module Aws::CodeCommit
1048
1065
  #
1049
1066
  #
1050
1067
  #
1051
- # [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
1052
1069
  #
1053
1070
  # @return [Types::CreatePullRequestApprovalRuleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1054
1071
  #
@@ -1357,6 +1374,10 @@ module Aws::CodeCommit
1357
1374
  # resp.comment.author_arn #=> String
1358
1375
  # resp.comment.deleted #=> Boolean
1359
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
1360
1381
  #
1361
1382
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteCommentContent AWS API Documentation
1362
1383
  #
@@ -1890,6 +1911,12 @@ module Aws::CodeCommit
1890
1911
  # Returns the content of a comment made on a change, file, or commit in
1891
1912
  # a repository.
1892
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
+ #
1893
1920
  # @option params [required, String] :comment_id
1894
1921
  # The unique, system-generated ID of the comment. To get this ID, use
1895
1922
  # GetCommentsForComparedCommit or GetCommentsForPullRequest.
@@ -1914,6 +1941,10 @@ module Aws::CodeCommit
1914
1941
  # resp.comment.author_arn #=> String
1915
1942
  # resp.comment.deleted #=> Boolean
1916
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
1917
1948
  #
1918
1949
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetComment AWS API Documentation
1919
1950
  #
@@ -1924,9 +1955,70 @@ module Aws::CodeCommit
1924
1955
  req.send_request(options)
1925
1956
  end
1926
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
+
1927
2013
  # Returns information about comments made on the comparison between two
1928
2014
  # commits.
1929
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
+ #
1930
2022
  # @option params [required, String] :repository_name
1931
2023
  # The name of the repository where you want to compare commits.
1932
2024
  #
@@ -1983,6 +2075,10 @@ module Aws::CodeCommit
1983
2075
  # resp.comments_for_compared_commit_data[0].comments[0].author_arn #=> String
1984
2076
  # resp.comments_for_compared_commit_data[0].comments[0].deleted #=> Boolean
1985
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
1986
2082
  # resp.next_token #=> String
1987
2083
  #
1988
2084
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForComparedCommit AWS API Documentation
@@ -1996,6 +2092,12 @@ module Aws::CodeCommit
1996
2092
 
1997
2093
  # Returns comments made on a pull request.
1998
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
+ #
1999
2101
  # @option params [required, String] :pull_request_id
2000
2102
  # The system-generated ID of the pull request. To get this ID, use
2001
2103
  # ListPullRequests.
@@ -2059,6 +2161,10 @@ module Aws::CodeCommit
2059
2161
  # resp.comments_for_pull_request_data[0].comments[0].author_arn #=> String
2060
2162
  # resp.comments_for_pull_request_data[0].comments[0].deleted #=> Boolean
2061
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
2062
2168
  # resp.next_token #=> String
2063
2169
  #
2064
2170
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForPullRequest AWS API Documentation
@@ -3765,6 +3871,10 @@ module Aws::CodeCommit
3765
3871
  # resp.comment.author_arn #=> String
3766
3872
  # resp.comment.deleted #=> Boolean
3767
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
3768
3878
  #
3769
3879
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForComparedCommit AWS API Documentation
3770
3880
  #
@@ -3859,6 +3969,10 @@ module Aws::CodeCommit
3859
3969
  # resp.comment.author_arn #=> String
3860
3970
  # resp.comment.deleted #=> Boolean
3861
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
3862
3976
  #
3863
3977
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForPullRequest AWS API Documentation
3864
3978
  #
@@ -3912,6 +4026,10 @@ module Aws::CodeCommit
3912
4026
  # resp.comment.author_arn #=> String
3913
4027
  # resp.comment.deleted #=> Boolean
3914
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
3915
4033
  #
3916
4034
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentReply AWS API Documentation
3917
4035
  #
@@ -3922,6 +4040,42 @@ module Aws::CodeCommit
3922
4040
  req.send_request(options)
3923
4041
  end
3924
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
+
3925
4079
  # Adds or updates a file in a branch in an AWS CodeCommit repository,
3926
4080
  # and generates a commit for the addition in the specified branch.
3927
4081
  #
@@ -3932,7 +4086,7 @@ module Aws::CodeCommit
3932
4086
  # The name of the branch where you want to add or update the file. If
3933
4087
  # this is an empty repository, this branch is created.
3934
4088
  #
3935
- # @option params [required, String, IO] :file_content
4089
+ # @option params [required, String, StringIO, File] :file_content
3936
4090
  # The content of the file, in binary object format.
3937
4091
  #
3938
4092
  # @option params [required, String] :file_path
@@ -4320,6 +4474,10 @@ module Aws::CodeCommit
4320
4474
  # resp.comment.author_arn #=> String
4321
4475
  # resp.comment.deleted #=> Boolean
4322
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
4323
4481
  #
4324
4482
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateComment AWS API Documentation
4325
4483
  #
@@ -4412,7 +4570,7 @@ module Aws::CodeCommit
4412
4570
  #
4413
4571
  #
4414
4572
  #
4415
- # [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
4416
4574
  #
4417
4575
  # @return [Types::UpdatePullRequestApprovalRuleContentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4418
4576
  #
@@ -4754,7 +4912,7 @@ module Aws::CodeCommit
4754
4912
  params: params,
4755
4913
  config: config)
4756
4914
  context[:gem_name] = 'aws-sdk-codecommit'
4757
- context[:gem_version] = '1.34.1'
4915
+ context[:gem_version] = '1.39.0'
4758
4916
  Seahorse::Client::Request.new(handlers, context)
4759
4917
  end
4760
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"