aws-sdk-codecommit 1.58.0 → 1.60.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-codecommit/client.rb +141 -62
- data/lib/aws-sdk-codecommit/client_api.rb +54 -0
- data/lib/aws-sdk-codecommit/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-codecommit/endpoints.rb +14 -0
- data/lib/aws-sdk-codecommit/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-codecommit/types.rb +184 -73
- data/lib/aws-sdk-codecommit.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae32d15a95ef1e908287deebfaacff3fe977d572f07a97ec515339ccd7144974
|
4
|
+
data.tar.gz: 39d7ac9ecb4bc0d7ead86c6b74e1a00310af867723f2669aefd4a2b083c2b135
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f54d95126362714b796fd9c4a8fdc8909de478d11900ff7e589610a6e7acb810931ff8bd9c1e5f03e3ab82dca265a57e1f684597d548da43724be9b4dd72459b
|
7
|
+
data.tar.gz: 27e4ce9a5a6495b058373587bdc44b236cf1b791e70c660963c4ee1fbddbaf411697e95b4adc7f3141706d612466d87c6527f94621e091fbf190293585d282fc
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.60.0 (2023-09-27)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.59.0 (2023-08-18)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Add new ListFileCommitHistory operation to retrieve commits which introduced changes to a specific file.
|
13
|
+
|
4
14
|
1.58.0 (2023-07-11)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.60.0
|
@@ -755,10 +755,10 @@ module Aws::CodeCommit
|
|
755
755
|
end
|
756
756
|
|
757
757
|
# Creates a template for approval rules that can then be associated with
|
758
|
-
# one or more repositories in your
|
759
|
-
# template with a repository,
|
760
|
-
# that matches the conditions of the template for all pull requests
|
761
|
-
# meet the conditions of the template. For more information, see
|
758
|
+
# one or more repositories in your Amazon Web Services account. When you
|
759
|
+
# associate a template with a repository, CodeCommit creates an approval
|
760
|
+
# rule that matches the conditions of the template for all pull requests
|
761
|
+
# that meet the conditions of the template. For more information, see
|
762
762
|
# AssociateApprovalRuleTemplateWithRepository.
|
763
763
|
#
|
764
764
|
# @option params [required, String] :approval_rule_template_name
|
@@ -776,13 +776,13 @@ module Aws::CodeCommit
|
|
776
776
|
# <note markdown="1"> When you create the content of the approval rule template, you can
|
777
777
|
# specify approvers in an approval pool in one of two ways:
|
778
778
|
#
|
779
|
-
# * **CodeCommitApprovers**: This option only requires an
|
780
|
-
# and a resource. It can be used for both IAM users
|
781
|
-
# access users whose name matches the provided resource
|
782
|
-
# a very powerful option that offers a great deal of
|
783
|
-
# example, if you specify the
|
784
|
-
# *Mary\_Major*, all of the following are
|
785
|
-
# from that user:
|
779
|
+
# * **CodeCommitApprovers**: This option only requires an Amazon Web
|
780
|
+
# Services account and a resource. It can be used for both IAM users
|
781
|
+
# and federated access users whose name matches the provided resource
|
782
|
+
# name. This is a very powerful option that offers a great deal of
|
783
|
+
# flexibility. For example, if you specify the Amazon Web Services
|
784
|
+
# account *123456789012* and *Mary\_Major*, all of the following are
|
785
|
+
# counted as approvals coming from that user:
|
786
786
|
#
|
787
787
|
# * An IAM user in the account
|
788
788
|
# (arn:aws:iam::*123456789012*:user/*Mary\_Major*)
|
@@ -1009,8 +1009,9 @@ module Aws::CodeCommit
|
|
1009
1009
|
# token is included, the request returns information about the initial
|
1010
1010
|
# request that used that token.
|
1011
1011
|
#
|
1012
|
-
# <note markdown="1"> The
|
1013
|
-
#
|
1012
|
+
# <note markdown="1"> The Amazon Web ServicesSDKs prepopulate client request tokens. If you
|
1013
|
+
# are using an Amazon Web ServicesSDK, an idempotency token is created
|
1014
|
+
# for you.
|
1014
1015
|
#
|
1015
1016
|
# </note>
|
1016
1017
|
#
|
@@ -1090,19 +1091,19 @@ module Aws::CodeCommit
|
|
1090
1091
|
# @option params [required, String] :approval_rule_content
|
1091
1092
|
# The content of the approval rule, including the number of approvals
|
1092
1093
|
# needed and the structure of an approval pool defined for approvals, if
|
1093
|
-
# any. For more information about approval pools, see the
|
1094
|
+
# any. For more information about approval pools, see the CodeCommit
|
1094
1095
|
# User Guide.
|
1095
1096
|
#
|
1096
1097
|
# <note markdown="1"> When you create the content of the approval rule, you can specify
|
1097
1098
|
# approvers in an approval pool in one of two ways:
|
1098
1099
|
#
|
1099
|
-
# * **CodeCommitApprovers**: This option only requires an
|
1100
|
-
# and a resource. It can be used for both IAM users
|
1101
|
-
# access users whose name matches the provided resource
|
1102
|
-
# a very powerful option that offers a great deal of
|
1103
|
-
# example, if you specify the
|
1104
|
-
# *Mary\_Major*, all of the following would
|
1105
|
-
# coming from that user:
|
1100
|
+
# * **CodeCommitApprovers**: This option only requires an Amazon Web
|
1101
|
+
# Services account and a resource. It can be used for both IAM users
|
1102
|
+
# and federated access users whose name matches the provided resource
|
1103
|
+
# name. This is a very powerful option that offers a great deal of
|
1104
|
+
# flexibility. For example, if you specify the Amazon Web Services
|
1105
|
+
# account *123456789012* and *Mary\_Major*, all of the following would
|
1106
|
+
# be counted as approvals coming from that user:
|
1106
1107
|
#
|
1107
1108
|
# * An IAM user in the account
|
1108
1109
|
# (arn:aws:iam::*123456789012*:user/*Mary\_Major*)
|
@@ -1166,11 +1167,12 @@ module Aws::CodeCommit
|
|
1166
1167
|
# @option params [required, String] :repository_name
|
1167
1168
|
# The name of the new repository to be created.
|
1168
1169
|
#
|
1169
|
-
# <note markdown="1"> The repository name must be unique across the calling
|
1170
|
-
# Repository names are limited to 100 alphanumeric,
|
1171
|
-
# characters, and cannot include certain
|
1172
|
-
# information about the limits on repository names,
|
1173
|
-
# the *
|
1170
|
+
# <note markdown="1"> The repository name must be unique across the calling Amazon Web
|
1171
|
+
# Services account. Repository names are limited to 100 alphanumeric,
|
1172
|
+
# dash, and underscore characters, and cannot include certain
|
1173
|
+
# characters. For more information about the limits on repository names,
|
1174
|
+
# see [Quotas][1] in the *CodeCommit User Guide*. The suffix .git is
|
1175
|
+
# prohibited.
|
1174
1176
|
#
|
1175
1177
|
# </note>
|
1176
1178
|
#
|
@@ -2164,15 +2166,21 @@ module Aws::CodeCommit
|
|
2164
2166
|
# ListPullRequests.
|
2165
2167
|
#
|
2166
2168
|
# @option params [String] :repository_name
|
2167
|
-
# The name of the repository that contains the pull request.
|
2169
|
+
# The name of the repository that contains the pull request. Requirement
|
2170
|
+
# is conditional: `repositoryName` must be specified when
|
2171
|
+
# `beforeCommitId` and `afterCommitId` are included.
|
2168
2172
|
#
|
2169
2173
|
# @option params [String] :before_commit_id
|
2170
2174
|
# The full commit ID of the commit in the destination branch that was
|
2171
2175
|
# the tip of the branch at the time the pull request was created.
|
2176
|
+
# Requirement is conditional: `beforeCommitId` must be specified when
|
2177
|
+
# `repositoryName` is included.
|
2172
2178
|
#
|
2173
2179
|
# @option params [String] :after_commit_id
|
2174
2180
|
# The full commit ID of the commit in the source branch that was the tip
|
2175
|
-
# of the branch at the time the comment was made.
|
2181
|
+
# of the branch at the time the comment was made. Requirement is
|
2182
|
+
# conditional: `afterCommitId` must be specified when `repositoryName`
|
2183
|
+
# is included.
|
2176
2184
|
#
|
2177
2185
|
# @option params [String] :next_token
|
2178
2186
|
# An enumeration token that, when provided in a request, returns the
|
@@ -2368,7 +2376,7 @@ module Aws::CodeCommit
|
|
2368
2376
|
# @option params [String] :commit_specifier
|
2369
2377
|
# The fully quaified reference that identifies the commit that contains
|
2370
2378
|
# the file. For example, you can specify a full commit ID, a tag, a
|
2371
|
-
# branch name, or a reference such as refs/heads/
|
2379
|
+
# branch name, or a reference such as refs/heads/main. If none is
|
2372
2380
|
# provided, the head commit is used.
|
2373
2381
|
#
|
2374
2382
|
# @option params [required, String] :file_path
|
@@ -2917,9 +2925,10 @@ module Aws::CodeCommit
|
|
2917
2925
|
req.send_request(options)
|
2918
2926
|
end
|
2919
2927
|
|
2920
|
-
# Lists all approval rule templates in the specified
|
2921
|
-
#
|
2922
|
-
#
|
2928
|
+
# Lists all approval rule templates in the specified Amazon Web Services
|
2929
|
+
# Region in your Amazon Web Services account. If an Amazon Web Services
|
2930
|
+
# Region is not specified, the Amazon Web Services Region where you are
|
2931
|
+
# signed in is used.
|
2923
2932
|
#
|
2924
2933
|
# @option params [String] :next_token
|
2925
2934
|
# An enumeration token that, when provided in a request, returns the
|
@@ -3040,6 +3049,75 @@ module Aws::CodeCommit
|
|
3040
3049
|
req.send_request(options)
|
3041
3050
|
end
|
3042
3051
|
|
3052
|
+
# Retrieves a list of commits and changes to a specified file.
|
3053
|
+
#
|
3054
|
+
# @option params [required, String] :repository_name
|
3055
|
+
# The name of the repository that contains the file.
|
3056
|
+
#
|
3057
|
+
# @option params [String] :commit_specifier
|
3058
|
+
# The fully quaified reference that identifies the commit that contains
|
3059
|
+
# the file. For example, you can specify a full commit ID, a tag, a
|
3060
|
+
# branch name, or a reference such as `refs/heads/main`. If none is
|
3061
|
+
# provided, the head commit is used.
|
3062
|
+
#
|
3063
|
+
# @option params [required, String] :file_path
|
3064
|
+
# The full path of the file whose history you want to retrieve,
|
3065
|
+
# including the name of the file.
|
3066
|
+
#
|
3067
|
+
# @option params [Integer] :max_results
|
3068
|
+
# A non-zero, non-negative integer used to limit the number of returned
|
3069
|
+
# results.
|
3070
|
+
#
|
3071
|
+
# @option params [String] :next_token
|
3072
|
+
# An enumeration token that allows the operation to batch the results.
|
3073
|
+
#
|
3074
|
+
# @return [Types::ListFileCommitHistoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3075
|
+
#
|
3076
|
+
# * {Types::ListFileCommitHistoryResponse#revision_dag #revision_dag} => Array<Types::FileVersion>
|
3077
|
+
# * {Types::ListFileCommitHistoryResponse#next_token #next_token} => String
|
3078
|
+
#
|
3079
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3080
|
+
#
|
3081
|
+
# @example Request syntax with placeholder values
|
3082
|
+
#
|
3083
|
+
# resp = client.list_file_commit_history({
|
3084
|
+
# repository_name: "RepositoryName", # required
|
3085
|
+
# commit_specifier: "CommitName",
|
3086
|
+
# file_path: "Path", # required
|
3087
|
+
# max_results: 1,
|
3088
|
+
# next_token: "NextToken",
|
3089
|
+
# })
|
3090
|
+
#
|
3091
|
+
# @example Response structure
|
3092
|
+
#
|
3093
|
+
# resp.revision_dag #=> Array
|
3094
|
+
# resp.revision_dag[0].commit.commit_id #=> String
|
3095
|
+
# resp.revision_dag[0].commit.tree_id #=> String
|
3096
|
+
# resp.revision_dag[0].commit.parents #=> Array
|
3097
|
+
# resp.revision_dag[0].commit.parents[0] #=> String
|
3098
|
+
# resp.revision_dag[0].commit.message #=> String
|
3099
|
+
# resp.revision_dag[0].commit.author.name #=> String
|
3100
|
+
# resp.revision_dag[0].commit.author.email #=> String
|
3101
|
+
# resp.revision_dag[0].commit.author.date #=> String
|
3102
|
+
# resp.revision_dag[0].commit.committer.name #=> String
|
3103
|
+
# resp.revision_dag[0].commit.committer.email #=> String
|
3104
|
+
# resp.revision_dag[0].commit.committer.date #=> String
|
3105
|
+
# resp.revision_dag[0].commit.additional_data #=> String
|
3106
|
+
# resp.revision_dag[0].blob_id #=> String
|
3107
|
+
# resp.revision_dag[0].path #=> String
|
3108
|
+
# resp.revision_dag[0].revision_children #=> Array
|
3109
|
+
# resp.revision_dag[0].revision_children[0] #=> String
|
3110
|
+
# resp.next_token #=> String
|
3111
|
+
#
|
3112
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListFileCommitHistory AWS API Documentation
|
3113
|
+
#
|
3114
|
+
# @overload list_file_commit_history(params = {})
|
3115
|
+
# @param [Hash] params ({})
|
3116
|
+
def list_file_commit_history(params = {}, options = {})
|
3117
|
+
req = build_request(:list_file_commit_history, params)
|
3118
|
+
req.send_request(options)
|
3119
|
+
end
|
3120
|
+
|
3043
3121
|
# Returns a list of pull requests for a specified repository. The return
|
3044
3122
|
# list can be refined by pull request status or pull request author ARN.
|
3045
3123
|
#
|
@@ -3100,8 +3178,8 @@ module Aws::CodeCommit
|
|
3100
3178
|
# @option params [String] :next_token
|
3101
3179
|
# An enumeration token that allows the operation to batch the results of
|
3102
3180
|
# the operation. Batch sizes are 1,000 for list repository operations.
|
3103
|
-
# When the client sends the token back to
|
3104
|
-
#
|
3181
|
+
# When the client sends the token back to CodeCommit, another page of
|
3182
|
+
# 1,000 records is retrieved.
|
3105
3183
|
#
|
3106
3184
|
# @option params [String] :sort_by
|
3107
3185
|
# The criteria used to sort the results of a list repositories
|
@@ -3187,9 +3265,9 @@ module Aws::CodeCommit
|
|
3187
3265
|
req.send_request(options)
|
3188
3266
|
end
|
3189
3267
|
|
3190
|
-
# Gets information about
|
3191
|
-
# (ARN) in
|
3192
|
-
# CodeCommit, see [CodeCommit Resources and Operations][1] in the<i>
|
3268
|
+
# Gets information about Amazon Web Servicestags for a specified Amazon
|
3269
|
+
# Resource Name (ARN) in CodeCommit. For a list of valid resources in
|
3270
|
+
# CodeCommit, see [CodeCommit Resources and Operations][1] in the<i>
|
3193
3271
|
# CodeCommit User Guide</i>.
|
3194
3272
|
#
|
3195
3273
|
#
|
@@ -4112,8 +4190,8 @@ module Aws::CodeCommit
|
|
4112
4190
|
# @option params [required, String] :reaction_value
|
4113
4191
|
# The emoji reaction you want to add or update. To remove a reaction,
|
4114
4192
|
# provide a value of blank or null. You can also provide the value of
|
4115
|
-
# none. For information about emoji reaction values supported in
|
4116
|
-
# CodeCommit, see the [
|
4193
|
+
# none. For information about emoji reaction values supported in
|
4194
|
+
# CodeCommit, see the [CodeCommit User Guide][1].
|
4117
4195
|
#
|
4118
4196
|
#
|
4119
4197
|
#
|
@@ -4137,8 +4215,8 @@ module Aws::CodeCommit
|
|
4137
4215
|
req.send_request(options)
|
4138
4216
|
end
|
4139
4217
|
|
4140
|
-
# Adds or updates a file in a branch in an
|
4141
|
-
#
|
4218
|
+
# Adds or updates a file in a branch in an CodeCommit repository, and
|
4219
|
+
# generates a commit for the addition in the specified branch.
|
4142
4220
|
#
|
4143
4221
|
# @option params [required, String] :repository_name
|
4144
4222
|
# The name of the repository where you want to add or update the file.
|
@@ -4263,9 +4341,9 @@ module Aws::CodeCommit
|
|
4263
4341
|
req.send_request(options)
|
4264
4342
|
end
|
4265
4343
|
|
4266
|
-
# Adds or updates tags for a resource in
|
4267
|
-
#
|
4268
|
-
#
|
4344
|
+
# Adds or updates tags for a resource in CodeCommit. For a list of valid
|
4345
|
+
# resources in CodeCommit, see [CodeCommit Resources and Operations][1]
|
4346
|
+
# in the *CodeCommit User Guide*.
|
4269
4347
|
#
|
4270
4348
|
#
|
4271
4349
|
#
|
@@ -4346,9 +4424,9 @@ module Aws::CodeCommit
|
|
4346
4424
|
req.send_request(options)
|
4347
4425
|
end
|
4348
4426
|
|
4349
|
-
# Removes tags for a resource in
|
4350
|
-
# resources in
|
4351
|
-
#
|
4427
|
+
# Removes tags for a resource in CodeCommit. For a list of valid
|
4428
|
+
# resources in CodeCommit, see [CodeCommit Resources and Operations][1]
|
4429
|
+
# in the *CodeCommit User Guide*.
|
4352
4430
|
#
|
4353
4431
|
#
|
4354
4432
|
#
|
@@ -4558,10 +4636,11 @@ module Aws::CodeCommit
|
|
4558
4636
|
# </note>
|
4559
4637
|
#
|
4560
4638
|
# @option params [required, String] :repository_name
|
4561
|
-
# The name of the repository to set or change the
|
4639
|
+
# The name of the repository for which you want to set or change the
|
4640
|
+
# default branch.
|
4562
4641
|
#
|
4563
4642
|
# @option params [required, String] :default_branch_name
|
4564
|
-
# The name of the branch to set as the default.
|
4643
|
+
# The name of the branch to set as the default branch.
|
4565
4644
|
#
|
4566
4645
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4567
4646
|
#
|
@@ -4601,13 +4680,13 @@ module Aws::CodeCommit
|
|
4601
4680
|
# <note markdown="1"> When you update the content of the approval rule, you can specify
|
4602
4681
|
# approvers in an approval pool in one of two ways:
|
4603
4682
|
#
|
4604
|
-
# * **CodeCommitApprovers**: This option only requires an
|
4605
|
-
# and a resource. It can be used for both IAM users
|
4606
|
-
# access users whose name matches the provided resource
|
4607
|
-
# a very powerful option that offers a great deal of
|
4608
|
-
# example, if you specify the
|
4609
|
-
# *Mary\_Major*, all of the following are
|
4610
|
-
# from that user:
|
4683
|
+
# * **CodeCommitApprovers**: This option only requires an Amazon Web
|
4684
|
+
# Services account and a resource. It can be used for both IAM users
|
4685
|
+
# and federated access users whose name matches the provided resource
|
4686
|
+
# name. This is a very powerful option that offers a great deal of
|
4687
|
+
# flexibility. For example, if you specify the Amazon Web Services
|
4688
|
+
# account *123456789012* and *Mary\_Major*, all of the following are
|
4689
|
+
# counted as approvals coming from that user:
|
4611
4690
|
#
|
4612
4691
|
# * An IAM user in the account
|
4613
4692
|
# (arn:aws:iam::*123456789012*:user/*Mary\_Major*)
|
@@ -4926,11 +5005,11 @@ module Aws::CodeCommit
|
|
4926
5005
|
end
|
4927
5006
|
|
4928
5007
|
# Renames a repository. The repository name must be unique across the
|
4929
|
-
# calling
|
4930
|
-
# dash, and underscore characters, and cannot include
|
4931
|
-
# characters. The suffix .git is prohibited. For more
|
4932
|
-
# the limits on repository names, see [
|
4933
|
-
# User Guide.
|
5008
|
+
# calling Amazon Web Services account. Repository names are limited to
|
5009
|
+
# 100 alphanumeric, dash, and underscore characters, and cannot include
|
5010
|
+
# certain characters. The suffix .git is prohibited. For more
|
5011
|
+
# information about the limits on repository names, see [Quotas][1] in
|
5012
|
+
# the CodeCommit User Guide.
|
4934
5013
|
#
|
4935
5014
|
#
|
4936
5015
|
#
|
@@ -4973,7 +5052,7 @@ module Aws::CodeCommit
|
|
4973
5052
|
params: params,
|
4974
5053
|
config: config)
|
4975
5054
|
context[:gem_name] = 'aws-sdk-codecommit'
|
4976
|
-
context[:gem_version] = '1.
|
5055
|
+
context[:gem_version] = '1.60.0'
|
4977
5056
|
Seahorse::Client::Request.new(handlers, context)
|
4978
5057
|
end
|
4979
5058
|
|
@@ -192,6 +192,7 @@ module Aws::CodeCommit
|
|
192
192
|
FileSize = Shapes::IntegerShape.new(name: 'FileSize')
|
193
193
|
FileSizes = Shapes::StructureShape.new(name: 'FileSizes')
|
194
194
|
FileTooLargeException = Shapes::StructureShape.new(name: 'FileTooLargeException')
|
195
|
+
FileVersion = Shapes::StructureShape.new(name: 'FileVersion')
|
195
196
|
FilesMetadata = Shapes::ListShape.new(name: 'FilesMetadata')
|
196
197
|
Folder = Shapes::StructureShape.new(name: 'Folder')
|
197
198
|
FolderContentSizeLimitExceededException = Shapes::StructureShape.new(name: 'FolderContentSizeLimitExceededException')
|
@@ -319,6 +320,8 @@ module Aws::CodeCommit
|
|
319
320
|
ListAssociatedApprovalRuleTemplatesForRepositoryOutput = Shapes::StructureShape.new(name: 'ListAssociatedApprovalRuleTemplatesForRepositoryOutput')
|
320
321
|
ListBranchesInput = Shapes::StructureShape.new(name: 'ListBranchesInput')
|
321
322
|
ListBranchesOutput = Shapes::StructureShape.new(name: 'ListBranchesOutput')
|
323
|
+
ListFileCommitHistoryRequest = Shapes::StructureShape.new(name: 'ListFileCommitHistoryRequest')
|
324
|
+
ListFileCommitHistoryResponse = Shapes::StructureShape.new(name: 'ListFileCommitHistoryResponse')
|
322
325
|
ListPullRequestsInput = Shapes::StructureShape.new(name: 'ListPullRequestsInput')
|
323
326
|
ListPullRequestsOutput = Shapes::StructureShape.new(name: 'ListPullRequestsOutput')
|
324
327
|
ListRepositoriesForApprovalRuleTemplateInput = Shapes::StructureShape.new(name: 'ListRepositoriesForApprovalRuleTemplateInput')
|
@@ -478,6 +481,8 @@ module Aws::CodeCommit
|
|
478
481
|
ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
|
479
482
|
ResourceArnRequiredException = Shapes::StructureShape.new(name: 'ResourceArnRequiredException')
|
480
483
|
RestrictedSourceFileException = Shapes::StructureShape.new(name: 'RestrictedSourceFileException')
|
484
|
+
RevisionChildren = Shapes::ListShape.new(name: 'RevisionChildren')
|
485
|
+
RevisionDag = Shapes::ListShape.new(name: 'RevisionDag')
|
481
486
|
RevisionId = Shapes::StringShape.new(name: 'RevisionId')
|
482
487
|
RevisionIdRequiredException = Shapes::StructureShape.new(name: 'RevisionIdRequiredException')
|
483
488
|
RevisionNotCurrentException = Shapes::StructureShape.new(name: 'RevisionNotCurrentException')
|
@@ -1065,6 +1070,12 @@ module Aws::CodeCommit
|
|
1065
1070
|
|
1066
1071
|
FileTooLargeException.struct_class = Types::FileTooLargeException
|
1067
1072
|
|
1073
|
+
FileVersion.add_member(:commit, Shapes::ShapeRef.new(shape: Commit, location_name: "commit"))
|
1074
|
+
FileVersion.add_member(:blob_id, Shapes::ShapeRef.new(shape: ObjectId, location_name: "blobId"))
|
1075
|
+
FileVersion.add_member(:path, Shapes::ShapeRef.new(shape: Path, location_name: "path"))
|
1076
|
+
FileVersion.add_member(:revision_children, Shapes::ShapeRef.new(shape: RevisionChildren, location_name: "revisionChildren"))
|
1077
|
+
FileVersion.struct_class = Types::FileVersion
|
1078
|
+
|
1068
1079
|
FilesMetadata.member = Shapes::ShapeRef.new(shape: FileMetadata)
|
1069
1080
|
|
1070
1081
|
Folder.add_member(:tree_id, Shapes::ShapeRef.new(shape: ObjectId, location_name: "treeId"))
|
@@ -1420,6 +1431,17 @@ module Aws::CodeCommit
|
|
1420
1431
|
ListBranchesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
1421
1432
|
ListBranchesOutput.struct_class = Types::ListBranchesOutput
|
1422
1433
|
|
1434
|
+
ListFileCommitHistoryRequest.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
1435
|
+
ListFileCommitHistoryRequest.add_member(:commit_specifier, Shapes::ShapeRef.new(shape: CommitName, location_name: "commitSpecifier"))
|
1436
|
+
ListFileCommitHistoryRequest.add_member(:file_path, Shapes::ShapeRef.new(shape: Path, required: true, location_name: "filePath"))
|
1437
|
+
ListFileCommitHistoryRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Limit, location_name: "maxResults"))
|
1438
|
+
ListFileCommitHistoryRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
1439
|
+
ListFileCommitHistoryRequest.struct_class = Types::ListFileCommitHistoryRequest
|
1440
|
+
|
1441
|
+
ListFileCommitHistoryResponse.add_member(:revision_dag, Shapes::ShapeRef.new(shape: RevisionDag, required: true, location_name: "revisionDag"))
|
1442
|
+
ListFileCommitHistoryResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
1443
|
+
ListFileCommitHistoryResponse.struct_class = Types::ListFileCommitHistoryResponse
|
1444
|
+
|
1423
1445
|
ListPullRequestsInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
1424
1446
|
ListPullRequestsInput.add_member(:author_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "authorArn"))
|
1425
1447
|
ListPullRequestsInput.add_member(:pull_request_status, Shapes::ShapeRef.new(shape: PullRequestStatusEnum, location_name: "pullRequestStatus"))
|
@@ -1897,6 +1919,10 @@ module Aws::CodeCommit
|
|
1897
1919
|
|
1898
1920
|
RestrictedSourceFileException.struct_class = Types::RestrictedSourceFileException
|
1899
1921
|
|
1922
|
+
RevisionChildren.member = Shapes::ShapeRef.new(shape: RevisionId)
|
1923
|
+
|
1924
|
+
RevisionDag.member = Shapes::ShapeRef.new(shape: FileVersion)
|
1925
|
+
|
1900
1926
|
RevisionIdRequiredException.struct_class = Types::RevisionIdRequiredException
|
1901
1927
|
|
1902
1928
|
RevisionNotCurrentException.struct_class = Types::RevisionNotCurrentException
|
@@ -3078,6 +3104,34 @@ module Aws::CodeCommit
|
|
3078
3104
|
)
|
3079
3105
|
end)
|
3080
3106
|
|
3107
|
+
api.add_operation(:list_file_commit_history, Seahorse::Model::Operation.new.tap do |o|
|
3108
|
+
o.name = "ListFileCommitHistory"
|
3109
|
+
o.http_method = "POST"
|
3110
|
+
o.http_request_uri = "/"
|
3111
|
+
o.input = Shapes::ShapeRef.new(shape: ListFileCommitHistoryRequest)
|
3112
|
+
o.output = Shapes::ShapeRef.new(shape: ListFileCommitHistoryResponse)
|
3113
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryNameRequiredException)
|
3114
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRepositoryNameException)
|
3115
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryDoesNotExistException)
|
3116
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidContinuationTokenException)
|
3117
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidMaxResultsException)
|
3118
|
+
o.errors << Shapes::ShapeRef.new(shape: TipsDivergenceExceededException)
|
3119
|
+
o.errors << Shapes::ShapeRef.new(shape: CommitRequiredException)
|
3120
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidCommitException)
|
3121
|
+
o.errors << Shapes::ShapeRef.new(shape: CommitDoesNotExistException)
|
3122
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionIntegrityChecksFailedException)
|
3123
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyAccessDeniedException)
|
3124
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyDisabledException)
|
3125
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyNotFoundException)
|
3126
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
|
3127
|
+
o[:pager] = Aws::Pager.new(
|
3128
|
+
limit_key: "max_results",
|
3129
|
+
tokens: {
|
3130
|
+
"next_token" => "next_token"
|
3131
|
+
}
|
3132
|
+
)
|
3133
|
+
end)
|
3134
|
+
|
3081
3135
|
api.add_operation(:list_pull_requests, Seahorse::Model::Operation.new.tap do |o|
|
3082
3136
|
o.name = "ListPullRequests"
|
3083
3137
|
o.http_method = "POST"
|
@@ -14,36 +14,39 @@ module Aws::CodeCommit
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
|
19
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
-
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://codecommit-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
-
end
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://codecommit-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
-
end
|
37
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
38
20
|
end
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
-
|
41
|
-
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codecommit-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codecommit-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codecommit.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
42
45
|
end
|
43
|
-
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codecommit.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
47
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://codecommit.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
48
|
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
47
50
|
raise ArgumentError, 'No endpoint could be resolved'
|
48
51
|
|
49
52
|
end
|
@@ -642,6 +642,20 @@ module Aws::CodeCommit
|
|
642
642
|
end
|
643
643
|
end
|
644
644
|
|
645
|
+
class ListFileCommitHistory
|
646
|
+
def self.build(context)
|
647
|
+
unless context.config.regional_endpoint
|
648
|
+
endpoint = context.config.endpoint.to_s
|
649
|
+
end
|
650
|
+
Aws::CodeCommit::EndpointParameters.new(
|
651
|
+
region: context.config.region,
|
652
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
653
|
+
use_fips: context.config.use_fips_endpoint,
|
654
|
+
endpoint: endpoint,
|
655
|
+
)
|
656
|
+
end
|
657
|
+
end
|
658
|
+
|
645
659
|
class ListPullRequests
|
646
660
|
def self.build(context)
|
647
661
|
unless context.config.regional_endpoint
|
@@ -146,6 +146,8 @@ module Aws::CodeCommit
|
|
146
146
|
Aws::CodeCommit::Endpoints::ListAssociatedApprovalRuleTemplatesForRepository.build(context)
|
147
147
|
when :list_branches
|
148
148
|
Aws::CodeCommit::Endpoints::ListBranches.build(context)
|
149
|
+
when :list_file_commit_history
|
150
|
+
Aws::CodeCommit::Endpoints::ListFileCommitHistory.build(context)
|
149
151
|
when :list_pull_requests
|
150
152
|
Aws::CodeCommit::Endpoints::ListPullRequests.build(context)
|
151
153
|
when :list_repositories
|
@@ -10,8 +10,8 @@
|
|
10
10
|
module Aws::CodeCommit
|
11
11
|
module Types
|
12
12
|
|
13
|
-
# The specified Amazon Resource Name (ARN) does not exist in the
|
14
|
-
# account.
|
13
|
+
# The specified Amazon Resource Name (ARN) does not exist in the Amazon
|
14
|
+
# Web Services account.
|
15
15
|
#
|
16
16
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ActorDoesNotExistException AWS API Documentation
|
17
17
|
#
|
@@ -221,8 +221,8 @@ module Aws::CodeCommit
|
|
221
221
|
class ApprovalRuleTemplateContentRequiredException < Aws::EmptyStructure; end
|
222
222
|
|
223
223
|
# The specified approval rule template does not exist. Verify that the
|
224
|
-
# name is correct and that you are signed in to the
|
225
|
-
# template was created, and then try again.
|
224
|
+
# name is correct and that you are signed in to the Amazon Web Services
|
225
|
+
# Region where the template was created, and then try again.
|
226
226
|
#
|
227
227
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ApprovalRuleTemplateDoesNotExistException AWS API Documentation
|
228
228
|
#
|
@@ -237,8 +237,9 @@ module Aws::CodeCommit
|
|
237
237
|
class ApprovalRuleTemplateInUseException < Aws::EmptyStructure; end
|
238
238
|
|
239
239
|
# You cannot create an approval rule template with that name because a
|
240
|
-
# template with that name already exists in this
|
241
|
-
# account. Approval rule template
|
240
|
+
# template with that name already exists in this Amazon Web Services
|
241
|
+
# Region for your Amazon Web Services account. Approval rule template
|
242
|
+
# names must be unique.
|
242
243
|
#
|
243
244
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ApprovalRuleTemplateNameAlreadyExistsException AWS API Documentation
|
244
245
|
#
|
@@ -294,8 +295,8 @@ module Aws::CodeCommit
|
|
294
295
|
include Aws::Structure
|
295
296
|
end
|
296
297
|
|
297
|
-
# The specified Amazon Resource Name (ARN) does not exist in the
|
298
|
-
# account.
|
298
|
+
# The specified Amazon Resource Name (ARN) does not exist in the Amazon
|
299
|
+
# Web Services account.
|
299
300
|
#
|
300
301
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/AuthorDoesNotExistException AWS API Documentation
|
301
302
|
#
|
@@ -888,7 +889,7 @@ module Aws::CodeCommit
|
|
888
889
|
#
|
889
890
|
class CommentContentRequiredException < Aws::EmptyStructure; end
|
890
891
|
|
891
|
-
# The comment is too large. Comments are limited to
|
892
|
+
# The comment is too large. Comments are limited to 10,240 characters.
|
892
893
|
#
|
893
894
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CommentContentSizeLimitExceededException AWS API Documentation
|
894
895
|
#
|
@@ -1275,13 +1276,13 @@ module Aws::CodeCommit
|
|
1275
1276
|
# <note markdown="1"> When you create the content of the approval rule template, you can
|
1276
1277
|
# specify approvers in an approval pool in one of two ways:
|
1277
1278
|
#
|
1278
|
-
# * **CodeCommitApprovers**: This option only requires an
|
1279
|
-
# and a resource. It can be used for both IAM users
|
1280
|
-
# access users whose name matches the provided
|
1281
|
-
# is a very powerful option that offers a great
|
1282
|
-
# For example, if you specify the
|
1283
|
-
# *Mary\_Major*, all of the
|
1284
|
-
# coming from that user:
|
1279
|
+
# * **CodeCommitApprovers**: This option only requires an Amazon Web
|
1280
|
+
# Services account and a resource. It can be used for both IAM users
|
1281
|
+
# and federated access users whose name matches the provided
|
1282
|
+
# resource name. This is a very powerful option that offers a great
|
1283
|
+
# deal of flexibility. For example, if you specify the Amazon Web
|
1284
|
+
# Services account *123456789012* and *Mary\_Major*, all of the
|
1285
|
+
# following are counted as approvals coming from that user:
|
1285
1286
|
#
|
1286
1287
|
# * An IAM user in the account
|
1287
1288
|
# (arn:aws:iam::*123456789012*:user/*Mary\_Major*)
|
@@ -1472,19 +1473,19 @@ module Aws::CodeCommit
|
|
1472
1473
|
# @!attribute [rw] approval_rule_content
|
1473
1474
|
# The content of the approval rule, including the number of approvals
|
1474
1475
|
# needed and the structure of an approval pool defined for approvals,
|
1475
|
-
# if any. For more information about approval pools, see the
|
1476
|
+
# if any. For more information about approval pools, see the
|
1476
1477
|
# CodeCommit User Guide.
|
1477
1478
|
#
|
1478
1479
|
# <note markdown="1"> When you create the content of the approval rule, you can specify
|
1479
1480
|
# approvers in an approval pool in one of two ways:
|
1480
1481
|
#
|
1481
|
-
# * **CodeCommitApprovers**: This option only requires an
|
1482
|
-
# and a resource. It can be used for both IAM users
|
1483
|
-
# access users whose name matches the provided
|
1484
|
-
# is a very powerful option that offers a great
|
1485
|
-
# For example, if you specify the
|
1486
|
-
# *Mary\_Major*, all of the
|
1487
|
-
# coming from that user:
|
1482
|
+
# * **CodeCommitApprovers**: This option only requires an Amazon Web
|
1483
|
+
# Services account and a resource. It can be used for both IAM users
|
1484
|
+
# and federated access users whose name matches the provided
|
1485
|
+
# resource name. This is a very powerful option that offers a great
|
1486
|
+
# deal of flexibility. For example, if you specify the Amazon Web
|
1487
|
+
# Services account *123456789012* and *Mary\_Major*, all of the
|
1488
|
+
# following would be counted as approvals coming from that user:
|
1488
1489
|
#
|
1489
1490
|
# * An IAM user in the account
|
1490
1491
|
# (arn:aws:iam::*123456789012*:user/*Mary\_Major*)
|
@@ -1557,8 +1558,9 @@ module Aws::CodeCommit
|
|
1557
1558
|
# token is included, the request returns information about the initial
|
1558
1559
|
# request that used that token.
|
1559
1560
|
#
|
1560
|
-
# <note markdown="1"> The
|
1561
|
-
#
|
1561
|
+
# <note markdown="1"> The Amazon Web ServicesSDKs prepopulate client request tokens. If
|
1562
|
+
# you are using an Amazon Web ServicesSDK, an idempotency token is
|
1563
|
+
# created for you.
|
1562
1564
|
#
|
1563
1565
|
# </note>
|
1564
1566
|
#
|
@@ -1594,12 +1596,12 @@ module Aws::CodeCommit
|
|
1594
1596
|
# @!attribute [rw] repository_name
|
1595
1597
|
# The name of the new repository to be created.
|
1596
1598
|
#
|
1597
|
-
# <note markdown="1"> The repository name must be unique across the calling
|
1598
|
-
# Repository names are limited to 100 alphanumeric,
|
1599
|
-
# underscore characters, and cannot include certain
|
1600
|
-
# more information about the limits on repository
|
1601
|
-
# [
|
1602
|
-
# prohibited.
|
1599
|
+
# <note markdown="1"> The repository name must be unique across the calling Amazon Web
|
1600
|
+
# Services account. Repository names are limited to 100 alphanumeric,
|
1601
|
+
# dash, and underscore characters, and cannot include certain
|
1602
|
+
# characters. For more information about the limits on repository
|
1603
|
+
# names, see [Quotas][1] in the *CodeCommit User Guide*. The suffix
|
1604
|
+
# .git is prohibited.
|
1603
1605
|
#
|
1604
1606
|
# </note>
|
1605
1607
|
#
|
@@ -2490,9 +2492,9 @@ module Aws::CodeCommit
|
|
2490
2492
|
include Aws::Structure
|
2491
2493
|
end
|
2492
2494
|
|
2493
|
-
# The specified file exceeds the file size limit for
|
2494
|
-
# more information about limits in
|
2495
|
-
# User Guide
|
2495
|
+
# The specified file exceeds the file size limit for CodeCommit. For
|
2496
|
+
# more information about limits in CodeCommit, see [Quotas][1] in the
|
2497
|
+
# *CodeCommit User Guide*.
|
2496
2498
|
#
|
2497
2499
|
#
|
2498
2500
|
#
|
@@ -2502,6 +2504,40 @@ module Aws::CodeCommit
|
|
2502
2504
|
#
|
2503
2505
|
class FileTooLargeException < Aws::EmptyStructure; end
|
2504
2506
|
|
2507
|
+
# Information about a version of a file.
|
2508
|
+
#
|
2509
|
+
# @!attribute [rw] commit
|
2510
|
+
# Returns information about a specific commit.
|
2511
|
+
# @return [Types::Commit]
|
2512
|
+
#
|
2513
|
+
# @!attribute [rw] blob_id
|
2514
|
+
# The blob ID of the object that represents the content of the file in
|
2515
|
+
# this version.
|
2516
|
+
# @return [String]
|
2517
|
+
#
|
2518
|
+
# @!attribute [rw] path
|
2519
|
+
# The name and path of the file at which this blob is indexed which
|
2520
|
+
# contains the data for this version of the file. This value will vary
|
2521
|
+
# between file versions if a file is renamed or if its path changes.
|
2522
|
+
# @return [String]
|
2523
|
+
#
|
2524
|
+
# @!attribute [rw] revision_children
|
2525
|
+
# An array of commit IDs that contain more recent versions of this
|
2526
|
+
# file. If there are no additional versions of the file, this array
|
2527
|
+
# will be empty.
|
2528
|
+
# @return [Array<String>]
|
2529
|
+
#
|
2530
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/FileVersion AWS API Documentation
|
2531
|
+
#
|
2532
|
+
class FileVersion < Struct.new(
|
2533
|
+
:commit,
|
2534
|
+
:blob_id,
|
2535
|
+
:path,
|
2536
|
+
:revision_children)
|
2537
|
+
SENSITIVE = []
|
2538
|
+
include Aws::Structure
|
2539
|
+
end
|
2540
|
+
|
2505
2541
|
# Returns information about a folder in a repository.
|
2506
2542
|
#
|
2507
2543
|
# @!attribute [rw] tree_id
|
@@ -2773,16 +2809,22 @@ module Aws::CodeCommit
|
|
2773
2809
|
#
|
2774
2810
|
# @!attribute [rw] repository_name
|
2775
2811
|
# The name of the repository that contains the pull request.
|
2812
|
+
# Requirement is conditional: `repositoryName` must be specified when
|
2813
|
+
# `beforeCommitId` and `afterCommitId` are included.
|
2776
2814
|
# @return [String]
|
2777
2815
|
#
|
2778
2816
|
# @!attribute [rw] before_commit_id
|
2779
2817
|
# The full commit ID of the commit in the destination branch that was
|
2780
2818
|
# the tip of the branch at the time the pull request was created.
|
2819
|
+
# Requirement is conditional: `beforeCommitId` must be specified when
|
2820
|
+
# `repositoryName` is included.
|
2781
2821
|
# @return [String]
|
2782
2822
|
#
|
2783
2823
|
# @!attribute [rw] after_commit_id
|
2784
2824
|
# The full commit ID of the commit in the source branch that was the
|
2785
|
-
# tip of the branch at the time the comment was made.
|
2825
|
+
# tip of the branch at the time the comment was made. Requirement is
|
2826
|
+
# conditional: `afterCommitId` must be specified when `repositoryName`
|
2827
|
+
# is included.
|
2786
2828
|
# @return [String]
|
2787
2829
|
#
|
2788
2830
|
# @!attribute [rw] next_token
|
@@ -2943,8 +2985,8 @@ module Aws::CodeCommit
|
|
2943
2985
|
# @!attribute [rw] commit_specifier
|
2944
2986
|
# The fully quaified reference that identifies the commit that
|
2945
2987
|
# contains the file. For example, you can specify a full commit ID, a
|
2946
|
-
# tag, a branch name, or a reference such as refs/heads/
|
2947
|
-
#
|
2988
|
+
# tag, a branch name, or a reference such as refs/heads/main. If none
|
2989
|
+
# is provided, the head commit is used.
|
2948
2990
|
# @return [String]
|
2949
2991
|
#
|
2950
2992
|
# @!attribute [rw] file_path
|
@@ -3517,8 +3559,8 @@ module Aws::CodeCommit
|
|
3517
3559
|
|
3518
3560
|
# The description for the approval rule template is not valid because it
|
3519
3561
|
# exceeds the maximum characters allowed for a description. For more
|
3520
|
-
# information about limits in
|
3521
|
-
# Guide
|
3562
|
+
# information about limits in CodeCommit, see [Quotas][1] in the
|
3563
|
+
# *CodeCommit User Guide*.
|
3522
3564
|
#
|
3523
3565
|
#
|
3524
3566
|
#
|
@@ -3530,8 +3572,8 @@ module Aws::CodeCommit
|
|
3530
3572
|
|
3531
3573
|
# The name of the approval rule template is not valid. Template names
|
3532
3574
|
# must be between 1 and 100 valid characters in length. For more
|
3533
|
-
# information about limits in
|
3534
|
-
# Guide
|
3575
|
+
# information about limits in CodeCommit, see [Quotas][1] in the
|
3576
|
+
# *CodeCommit User Guide*.
|
3535
3577
|
#
|
3536
3578
|
#
|
3537
3579
|
#
|
@@ -3755,7 +3797,7 @@ module Aws::CodeCommit
|
|
3755
3797
|
class InvalidReactionUserArnException < Aws::EmptyStructure; end
|
3756
3798
|
|
3757
3799
|
# The value of the reaction is not valid. For more information, see the
|
3758
|
-
# [
|
3800
|
+
# [CodeCommit User Guide][1].
|
3759
3801
|
#
|
3760
3802
|
#
|
3761
3803
|
#
|
@@ -3766,7 +3808,7 @@ module Aws::CodeCommit
|
|
3766
3808
|
class InvalidReactionValueException < Aws::EmptyStructure; end
|
3767
3809
|
|
3768
3810
|
# The specified reference name format is not valid. Reference names must
|
3769
|
-
# conform to the Git references format (for example, refs/heads/
|
3811
|
+
# conform to the Git references format (for example, refs/heads/main).
|
3770
3812
|
# For more information, see [Git Internals - Git References][1] or
|
3771
3813
|
# consult your Git documentation.
|
3772
3814
|
#
|
@@ -3851,17 +3893,18 @@ module Aws::CodeCommit
|
|
3851
3893
|
#
|
3852
3894
|
class InvalidRepositoryTriggerNameException < Aws::EmptyStructure; end
|
3853
3895
|
|
3854
|
-
# The
|
3855
|
-
# for the repository. Triggers must be
|
3856
|
-
# target for the
|
3896
|
+
# The Amazon Web Services Region for the trigger target does not match
|
3897
|
+
# the Amazon Web Services Region for the repository. Triggers must be
|
3898
|
+
# created in the same Amazon Web Services Region as the target for the
|
3899
|
+
# trigger.
|
3857
3900
|
#
|
3858
3901
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/InvalidRepositoryTriggerRegionException AWS API Documentation
|
3859
3902
|
#
|
3860
3903
|
class InvalidRepositoryTriggerRegionException < Aws::EmptyStructure; end
|
3861
3904
|
|
3862
3905
|
# The value for the resource ARN is not valid. For more information
|
3863
|
-
# about resources in
|
3864
|
-
# Operations][1] in the
|
3906
|
+
# about resources in CodeCommit, see [CodeCommit Resources and
|
3907
|
+
# Operations][1] in the CodeCommit User Guide.
|
3865
3908
|
#
|
3866
3909
|
#
|
3867
3910
|
#
|
@@ -3994,8 +4037,8 @@ module Aws::CodeCommit
|
|
3994
4037
|
end
|
3995
4038
|
|
3996
4039
|
# @!attribute [rw] approval_rule_template_names
|
3997
|
-
# The names of all the approval rule templates found in the
|
3998
|
-
# for your
|
4040
|
+
# The names of all the approval rule templates found in the Amazon Web
|
4041
|
+
# Services Region for your Amazon Web Services account.
|
3999
4042
|
# @return [Array<String>]
|
4000
4043
|
#
|
4001
4044
|
# @!attribute [rw] next_token
|
@@ -4094,6 +4137,63 @@ module Aws::CodeCommit
|
|
4094
4137
|
include Aws::Structure
|
4095
4138
|
end
|
4096
4139
|
|
4140
|
+
# @!attribute [rw] repository_name
|
4141
|
+
# The name of the repository that contains the file.
|
4142
|
+
# @return [String]
|
4143
|
+
#
|
4144
|
+
# @!attribute [rw] commit_specifier
|
4145
|
+
# The fully quaified reference that identifies the commit that
|
4146
|
+
# contains the file. For example, you can specify a full commit ID, a
|
4147
|
+
# tag, a branch name, or a reference such as `refs/heads/main`. If
|
4148
|
+
# none is provided, the head commit is used.
|
4149
|
+
# @return [String]
|
4150
|
+
#
|
4151
|
+
# @!attribute [rw] file_path
|
4152
|
+
# The full path of the file whose history you want to retrieve,
|
4153
|
+
# including the name of the file.
|
4154
|
+
# @return [String]
|
4155
|
+
#
|
4156
|
+
# @!attribute [rw] max_results
|
4157
|
+
# A non-zero, non-negative integer used to limit the number of
|
4158
|
+
# returned results.
|
4159
|
+
# @return [Integer]
|
4160
|
+
#
|
4161
|
+
# @!attribute [rw] next_token
|
4162
|
+
# An enumeration token that allows the operation to batch the results.
|
4163
|
+
# @return [String]
|
4164
|
+
#
|
4165
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListFileCommitHistoryRequest AWS API Documentation
|
4166
|
+
#
|
4167
|
+
class ListFileCommitHistoryRequest < Struct.new(
|
4168
|
+
:repository_name,
|
4169
|
+
:commit_specifier,
|
4170
|
+
:file_path,
|
4171
|
+
:max_results,
|
4172
|
+
:next_token)
|
4173
|
+
SENSITIVE = []
|
4174
|
+
include Aws::Structure
|
4175
|
+
end
|
4176
|
+
|
4177
|
+
# @!attribute [rw] revision_dag
|
4178
|
+
# An array of FileVersion objects that form a directed acyclic graph
|
4179
|
+
# (DAG) of the changes to the file made by the commits that changed
|
4180
|
+
# the file.
|
4181
|
+
# @return [Array<Types::FileVersion>]
|
4182
|
+
#
|
4183
|
+
# @!attribute [rw] next_token
|
4184
|
+
# An enumeration token that can be used to return the next batch of
|
4185
|
+
# results.
|
4186
|
+
# @return [String]
|
4187
|
+
#
|
4188
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListFileCommitHistoryResponse AWS API Documentation
|
4189
|
+
#
|
4190
|
+
class ListFileCommitHistoryResponse < Struct.new(
|
4191
|
+
:revision_dag,
|
4192
|
+
:next_token)
|
4193
|
+
SENSITIVE = []
|
4194
|
+
include Aws::Structure
|
4195
|
+
end
|
4196
|
+
|
4097
4197
|
# @!attribute [rw] repository_name
|
4098
4198
|
# The name of the repository for which you want to list pull requests.
|
4099
4199
|
# @return [String]
|
@@ -4198,7 +4298,7 @@ module Aws::CodeCommit
|
|
4198
4298
|
# @!attribute [rw] next_token
|
4199
4299
|
# An enumeration token that allows the operation to batch the results
|
4200
4300
|
# of the operation. Batch sizes are 1,000 for list repository
|
4201
|
-
# operations. When the client sends the token back to
|
4301
|
+
# operations. When the client sends the token back to CodeCommit,
|
4202
4302
|
# another page of 1,000 records is retrieved.
|
4203
4303
|
# @return [String]
|
4204
4304
|
#
|
@@ -4231,7 +4331,7 @@ module Aws::CodeCommit
|
|
4231
4331
|
# @!attribute [rw] next_token
|
4232
4332
|
# An enumeration token that allows the operation to batch the results
|
4233
4333
|
# of the operation. Batch sizes are 1,000 for list repository
|
4234
|
-
# operations. When the client sends the token back to
|
4334
|
+
# operations. When the client sends the token back to CodeCommit,
|
4235
4335
|
# another page of 1,000 records is retrieved.
|
4236
4336
|
# @return [String]
|
4237
4337
|
#
|
@@ -4982,7 +5082,7 @@ module Aws::CodeCommit
|
|
4982
5082
|
class NoChangeException < Aws::EmptyStructure; end
|
4983
5083
|
|
4984
5084
|
# The maximum number of approval rule templates has been exceeded for
|
4985
|
-
# this
|
5085
|
+
# this Amazon Web Services Region.
|
4986
5086
|
#
|
4987
5087
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/NumberOfRuleTemplatesExceededException AWS API Documentation
|
4988
5088
|
#
|
@@ -5720,8 +5820,8 @@ module Aws::CodeCommit
|
|
5720
5820
|
# @!attribute [rw] reaction_value
|
5721
5821
|
# The emoji reaction you want to add or update. To remove a reaction,
|
5722
5822
|
# provide a value of blank or null. You can also provide the value of
|
5723
|
-
# none. For information about emoji reaction values supported in
|
5724
|
-
# CodeCommit, see the [
|
5823
|
+
# none. For information about emoji reaction values supported in
|
5824
|
+
# CodeCommit, see the [CodeCommit User Guide][1].
|
5725
5825
|
#
|
5726
5826
|
#
|
5727
5827
|
#
|
@@ -5940,8 +6040,8 @@ module Aws::CodeCommit
|
|
5940
6040
|
#
|
5941
6041
|
class ReactionLimitExceededException < Aws::EmptyStructure; end
|
5942
6042
|
|
5943
|
-
# Information about the values for reactions to a comment.
|
5944
|
-
#
|
6043
|
+
# Information about the values for reactions to a comment. CodeCommit
|
6044
|
+
# supports a limited set of reactions.
|
5945
6045
|
#
|
5946
6046
|
# @!attribute [rw] emoji
|
5947
6047
|
# The Emoji Version 1.0 graphic of the reaction. These graphics are
|
@@ -6052,7 +6152,8 @@ module Aws::CodeCommit
|
|
6052
6152
|
# Information about a repository.
|
6053
6153
|
#
|
6054
6154
|
# @!attribute [rw] account_id
|
6055
|
-
# The ID of the
|
6155
|
+
# The ID of the Amazon Web Services account associated with the
|
6156
|
+
# repository.
|
6056
6157
|
# @return [String]
|
6057
6158
|
#
|
6058
6159
|
# @!attribute [rw] repository_id
|
@@ -6157,6 +6258,16 @@ module Aws::CodeCommit
|
|
6157
6258
|
|
6158
6259
|
# Information about a trigger for a repository.
|
6159
6260
|
#
|
6261
|
+
# <note markdown="1"> If you want to receive notifications about repository events, consider
|
6262
|
+
# using notifications instead of triggers. For more information, see
|
6263
|
+
# [Configuring notifications for repository events][1].
|
6264
|
+
#
|
6265
|
+
# </note>
|
6266
|
+
#
|
6267
|
+
#
|
6268
|
+
#
|
6269
|
+
# [1]: https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-repository-email.html
|
6270
|
+
#
|
6160
6271
|
# @!attribute [rw] name
|
6161
6272
|
# The name of the trigger.
|
6162
6273
|
# @return [String]
|
@@ -6254,10 +6365,9 @@ module Aws::CodeCommit
|
|
6254
6365
|
#
|
6255
6366
|
class RepositoryTriggersListRequiredException < Aws::EmptyStructure; end
|
6256
6367
|
|
6257
|
-
# A valid Amazon Resource Name (ARN) for an
|
6258
|
-
# required. For a list of valid resources in
|
6259
|
-
#
|
6260
|
-
# Guide.
|
6368
|
+
# A valid Amazon Resource Name (ARN) for an CodeCommit resource is
|
6369
|
+
# required. For a list of valid resources in CodeCommit, see [CodeCommit
|
6370
|
+
# Resources and Operations][1] in the CodeCommit User Guide.
|
6261
6371
|
#
|
6262
6372
|
#
|
6263
6373
|
#
|
@@ -6558,7 +6668,7 @@ module Aws::CodeCommit
|
|
6558
6668
|
#
|
6559
6669
|
class TitleRequiredException < Aws::EmptyStructure; end
|
6560
6670
|
|
6561
|
-
# The maximum number of tags for an
|
6671
|
+
# The maximum number of tags for an CodeCommit resource has been
|
6562
6672
|
# exceeded.
|
6563
6673
|
#
|
6564
6674
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/TooManyTagsException AWS API Documentation
|
@@ -6713,11 +6823,12 @@ module Aws::CodeCommit
|
|
6713
6823
|
# Represents the input of an update default branch operation.
|
6714
6824
|
#
|
6715
6825
|
# @!attribute [rw] repository_name
|
6716
|
-
# The name of the repository to set or change the
|
6826
|
+
# The name of the repository for which you want to set or change the
|
6827
|
+
# default branch.
|
6717
6828
|
# @return [String]
|
6718
6829
|
#
|
6719
6830
|
# @!attribute [rw] default_branch_name
|
6720
|
-
# The name of the branch to set as the default.
|
6831
|
+
# The name of the branch to set as the default branch.
|
6721
6832
|
# @return [String]
|
6722
6833
|
#
|
6723
6834
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateDefaultBranchInput AWS API Documentation
|
@@ -6748,13 +6859,13 @@ module Aws::CodeCommit
|
|
6748
6859
|
# <note markdown="1"> When you update the content of the approval rule, you can specify
|
6749
6860
|
# approvers in an approval pool in one of two ways:
|
6750
6861
|
#
|
6751
|
-
# * **CodeCommitApprovers**: This option only requires an
|
6752
|
-
# and a resource. It can be used for both IAM users
|
6753
|
-
# access users whose name matches the provided
|
6754
|
-
# is a very powerful option that offers a great
|
6755
|
-
# For example, if you specify the
|
6756
|
-
# *Mary\_Major*, all of the
|
6757
|
-
# coming from that user:
|
6862
|
+
# * **CodeCommitApprovers**: This option only requires an Amazon Web
|
6863
|
+
# Services account and a resource. It can be used for both IAM users
|
6864
|
+
# and federated access users whose name matches the provided
|
6865
|
+
# resource name. This is a very powerful option that offers a great
|
6866
|
+
# deal of flexibility. For example, if you specify the Amazon Web
|
6867
|
+
# Services account *123456789012* and *Mary\_Major*, all of the
|
6868
|
+
# following are counted as approvals coming from that user:
|
6758
6869
|
#
|
6759
6870
|
# * An IAM user in the account
|
6760
6871
|
# (arn:aws:iam::*123456789012*:user/*Mary\_Major*)
|
data/lib/aws-sdk-codecommit.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-codecommit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.60.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.184.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.184.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|