aws-sdk-codecommit 1.29.0 → 1.34.1

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
- SHA1:
3
- metadata.gz: e3c1a293df06250ed8bbce132068ab29c7552421
4
- data.tar.gz: f889f1517d28bf9674b46696d9a8d3a248feb7be
2
+ SHA256:
3
+ metadata.gz: ac535780414bd55e3454c68dfc576a061aac6b064bf316d26b897d332da72cbc
4
+ data.tar.gz: 6a2b805fe4ed4c82b4ceac553f09e76fb6fed89154a8fc25810898f8b0f6f970
5
5
  SHA512:
6
- metadata.gz: e19120ccb7620e2145fe9fc30ed40648827f6a73acd0dced56fbd5156951078066201d32ff4922eb29d4dd2aee7b382ff3671ba4b11c8e9671948eaa57b48be4
7
- data.tar.gz: b803606248e33b8114f47727ff17ce9e2648c7564dd1fe8e0478a16720438d0bb579e407cc08495a71b4933d35d5ade122c7c4f006dde309a8396698a149c1da
6
+ metadata.gz: 2e868ec000598901316cef68d8e046c57395067e5c1d3cfbb341c79ec0d601a8f06a5ea7706399fa5fd24f9756fc046677aa0fbc49eb168c0dcf66ac2a8f941e
7
+ data.tar.gz: c8ce898f093a190680fa90f7be3b8c0cfd6fa526cd615f672b4dd444df53571d3a9fd6e40f3b3fca5796ea1c8b3210d7474667cb2289094efdeb91f29f6a55f8
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-codecommit/customizations'
24
24
  # methods each accept a hash of request parameters and return a response
25
25
  # structure.
26
26
  #
27
+ # code_commit = Aws::CodeCommit::Client.new
28
+ # resp = code_commit.associate_approval_rule_template_with_repository(params)
29
+ #
27
30
  # See {Client} for more information.
28
31
  #
29
32
  # # Errors
30
33
  #
31
- # Errors returned from AWS CodeCommit all
32
- # extend {Errors::ServiceError}.
34
+ # Errors returned from AWS CodeCommit are defined in the
35
+ # {Errors} module and all extend {Errors::ServiceError}.
33
36
  #
34
37
  # begin
35
38
  # # do stuff
36
39
  # rescue Aws::CodeCommit::Errors::ServiceError
37
- # # rescues all service API errors
40
+ # # rescues all AWS CodeCommit API errors
38
41
  # end
39
42
  #
40
43
  # See {Errors} for more information.
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-codecommit/customizations'
42
45
  # @service
43
46
  module Aws::CodeCommit
44
47
 
45
- GEM_VERSION = '1.29.0'
48
+ GEM_VERSION = '1.34.1'
46
49
 
47
50
  end
@@ -24,12 +24,25 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
24
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
25
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
26
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
27
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
28
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
29
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
29
30
 
30
31
  Aws::Plugins::GlobalConfiguration.add_identifier(:codecommit)
31
32
 
32
33
  module Aws::CodeCommit
34
+ # An API client for CodeCommit. To construct a client, you need to configure a `:region` and `:credentials`.
35
+ #
36
+ # client = Aws::CodeCommit::Client.new(
37
+ # region: region_name,
38
+ # credentials: credentials,
39
+ # # ...
40
+ # )
41
+ #
42
+ # For details on configuring region and credentials see
43
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
44
+ #
45
+ # See {#initialize} for a full list of supported configuration options.
33
46
  class Client < Seahorse::Client::Base
34
47
 
35
48
  include Aws::ClientStubs
@@ -57,6 +70,7 @@ module Aws::CodeCommit
57
70
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
58
71
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
59
72
  add_plugin(Aws::Plugins::TransferEncoding)
73
+ add_plugin(Aws::Plugins::HttpChecksum)
60
74
  add_plugin(Aws::Plugins::SignatureV4)
61
75
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
62
76
 
@@ -93,7 +107,7 @@ module Aws::CodeCommit
93
107
  # @option options [required, String] :region
94
108
  # The AWS region to connect to. The configured `:region` is
95
109
  # used to determine the service `:endpoint`. When not passed,
96
- # a default `:region` is search for in the following locations:
110
+ # a default `:region` is searched for in the following locations:
97
111
  #
98
112
  # * `Aws.config[:region]`
99
113
  # * `ENV['AWS_REGION']`
@@ -108,6 +122,12 @@ module Aws::CodeCommit
108
122
  # When set to `true`, a thread polling for endpoints will be running in
109
123
  # the background every 60 secs (default). Defaults to `false`.
110
124
  #
125
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
126
+ # Used only in `adaptive` retry mode. When true, the request will sleep
127
+ # until there is sufficent client side capacity to retry the request.
128
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
129
+ # not retry instead of sleeping.
130
+ #
111
131
  # @option options [Boolean] :client_side_monitoring (false)
112
132
  # When `true`, client-side metrics will be collected for all API requests from
113
133
  # this client.
@@ -132,6 +152,10 @@ module Aws::CodeCommit
132
152
  # When `true`, an attempt is made to coerce request parameters into
133
153
  # the required types.
134
154
  #
155
+ # @option options [Boolean] :correct_clock_skew (true)
156
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
157
+ # a clock skew correction and retry requests with skewed client clocks.
158
+ #
135
159
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
160
  # Set to true to disable SDK automatically adding host prefix
137
161
  # to default service endpoint when available.
@@ -139,7 +163,7 @@ module Aws::CodeCommit
139
163
  # @option options [String] :endpoint
140
164
  # The client endpoint is normally constructed from the `:region`
141
165
  # option. You should only configure an `:endpoint` when connecting
142
- # to test endpoints. This should be avalid HTTP(S) URI.
166
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
143
167
  #
144
168
  # @option options [Integer] :endpoint_cache_max_entries (1000)
145
169
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -154,7 +178,7 @@ module Aws::CodeCommit
154
178
  # requests fetching endpoints information. Defaults to 60 sec.
155
179
  #
156
180
  # @option options [Boolean] :endpoint_discovery (false)
157
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
181
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
158
182
  #
159
183
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
160
184
  # The log formatter.
@@ -166,15 +190,29 @@ module Aws::CodeCommit
166
190
  # The Logger instance to send log messages to. If this option
167
191
  # is not set, logging will be disabled.
168
192
  #
193
+ # @option options [Integer] :max_attempts (3)
194
+ # An integer representing the maximum number attempts that will be made for
195
+ # a single request, including the initial attempt. For example,
196
+ # setting this value to 5 will result in a request being retried up to
197
+ # 4 times. Used in `standard` and `adaptive` retry modes.
198
+ #
169
199
  # @option options [String] :profile ("default")
170
200
  # Used when loading credentials from the shared credentials file
171
201
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
202
  #
203
+ # @option options [Proc] :retry_backoff
204
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
205
+ # This option is only used in the `legacy` retry mode.
206
+ #
173
207
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
208
+ # The base delay in seconds used by the default backoff function. This option
209
+ # is only used in the `legacy` retry mode.
175
210
  #
176
211
  # @option options [Symbol] :retry_jitter (:none)
177
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
212
+ # A delay randomiser function used by the default backoff function.
213
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
214
+ # otherwise a Proc that takes and returns a number. This option is only used
215
+ # in the `legacy` retry mode.
178
216
  #
179
217
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
218
  #
@@ -182,11 +220,30 @@ module Aws::CodeCommit
182
220
  # The maximum number of times to retry failed requests. Only
183
221
  # ~ 500 level server errors and certain ~ 400 level client errors
184
222
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
223
+ # checksum errors, networking errors, timeout errors, auth errors,
224
+ # endpoint discovery, and errors from expired credentials.
225
+ # This option is only used in the `legacy` retry mode.
187
226
  #
188
227
  # @option options [Integer] :retry_max_delay (0)
189
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
228
+ # The maximum number of seconds to delay between retries (0 for no limit)
229
+ # used by the default backoff function. This option is only used in the
230
+ # `legacy` retry mode.
231
+ #
232
+ # @option options [String] :retry_mode ("legacy")
233
+ # Specifies which retry algorithm to use. Values are:
234
+ #
235
+ # * `legacy` - The pre-existing retry behavior. This is default value if
236
+ # no retry mode is provided.
237
+ #
238
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
239
+ # This includes support for retry quotas, which limit the number of
240
+ # unsuccessful retries a client can make.
241
+ #
242
+ # * `adaptive` - An experimental retry mode that includes all the
243
+ # functionality of `standard` mode along with automatic client side
244
+ # throttling. This is a provisional mode that may change behavior
245
+ # in the future.
246
+ #
190
247
  #
191
248
  # @option options [String] :secret_access_key
192
249
  #
@@ -219,16 +276,15 @@ module Aws::CodeCommit
219
276
  # requests through. Formatted like 'http://proxy.com:123'.
220
277
  #
221
278
  # @option options [Float] :http_open_timeout (15) The number of
222
- # seconds to wait when opening a HTTP session before rasing a
279
+ # seconds to wait when opening a HTTP session before raising a
223
280
  # `Timeout::Error`.
224
281
  #
225
282
  # @option options [Integer] :http_read_timeout (60) The default
226
283
  # number of seconds to wait for response data. This value can
227
- # safely be set
228
- # per-request on the session yeidled by {#session_for}.
284
+ # safely be set per-request on the session.
229
285
  #
230
286
  # @option options [Float] :http_idle_timeout (5) The number of
231
- # seconds a connection is allowed to sit idble before it is
287
+ # seconds a connection is allowed to sit idle before it is
232
288
  # considered stale. Stale connections are closed and removed
233
289
  # from the pool before making a request.
234
290
  #
@@ -237,7 +293,7 @@ module Aws::CodeCommit
237
293
  # request body. This option has no effect unless the request has
238
294
  # "Expect" header set to "100-continue". Defaults to `nil` which
239
295
  # disables this behaviour. This value can safely be set per
240
- # request on the session yeidled by {#session_for}.
296
+ # request on the session.
241
297
  #
242
298
  # @option options [Boolean] :http_wire_trace (false) When `true`,
243
299
  # HTTP debug output will be sent to the `:logger`.
@@ -264,6 +320,85 @@ module Aws::CodeCommit
264
320
 
265
321
  # @!group API Operations
266
322
 
323
+ # Creates an association between an approval rule template and a
324
+ # specified repository. Then, the next time a pull request is created in
325
+ # the repository where the destination reference (if specified) matches
326
+ # the destination reference (branch) for the pull request, an approval
327
+ # rule that matches the template conditions is automatically created for
328
+ # that pull request. If no destination references are specified in the
329
+ # template, an approval rule that matches the template contents is
330
+ # created for all pull requests in that repository.
331
+ #
332
+ # @option params [required, String] :approval_rule_template_name
333
+ # The name for the approval rule template.
334
+ #
335
+ # @option params [required, String] :repository_name
336
+ # The name of the repository that you want to associate with the
337
+ # template.
338
+ #
339
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
340
+ #
341
+ # @example Request syntax with placeholder values
342
+ #
343
+ # resp = client.associate_approval_rule_template_with_repository({
344
+ # approval_rule_template_name: "ApprovalRuleTemplateName", # required
345
+ # repository_name: "RepositoryName", # required
346
+ # })
347
+ #
348
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/AssociateApprovalRuleTemplateWithRepository AWS API Documentation
349
+ #
350
+ # @overload associate_approval_rule_template_with_repository(params = {})
351
+ # @param [Hash] params ({})
352
+ def associate_approval_rule_template_with_repository(params = {}, options = {})
353
+ req = build_request(:associate_approval_rule_template_with_repository, params)
354
+ req.send_request(options)
355
+ end
356
+
357
+ # Creates an association between an approval rule template and one or
358
+ # more specified repositories.
359
+ #
360
+ # @option params [required, String] :approval_rule_template_name
361
+ # The name of the template you want to associate with one or more
362
+ # repositories.
363
+ #
364
+ # @option params [required, Array<String>] :repository_names
365
+ # The names of the repositories you want to associate with the template.
366
+ #
367
+ # <note markdown="1"> The length constraint limit is for each string in the array. The array
368
+ # itself can be empty.
369
+ #
370
+ # </note>
371
+ #
372
+ # @return [Types::BatchAssociateApprovalRuleTemplateWithRepositoriesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
373
+ #
374
+ # * {Types::BatchAssociateApprovalRuleTemplateWithRepositoriesOutput#associated_repository_names #associated_repository_names} => Array&lt;String&gt;
375
+ # * {Types::BatchAssociateApprovalRuleTemplateWithRepositoriesOutput#errors #errors} => Array&lt;Types::BatchAssociateApprovalRuleTemplateWithRepositoriesError&gt;
376
+ #
377
+ # @example Request syntax with placeholder values
378
+ #
379
+ # resp = client.batch_associate_approval_rule_template_with_repositories({
380
+ # approval_rule_template_name: "ApprovalRuleTemplateName", # required
381
+ # repository_names: ["RepositoryName"], # required
382
+ # })
383
+ #
384
+ # @example Response structure
385
+ #
386
+ # resp.associated_repository_names #=> Array
387
+ # resp.associated_repository_names[0] #=> String
388
+ # resp.errors #=> Array
389
+ # resp.errors[0].repository_name #=> String
390
+ # resp.errors[0].error_code #=> String
391
+ # resp.errors[0].error_message #=> String
392
+ #
393
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchAssociateApprovalRuleTemplateWithRepositories AWS API Documentation
394
+ #
395
+ # @overload batch_associate_approval_rule_template_with_repositories(params = {})
396
+ # @param [Hash] params ({})
397
+ def batch_associate_approval_rule_template_with_repositories(params = {}, options = {})
398
+ req = build_request(:batch_associate_approval_rule_template_with_repositories, params)
399
+ req.send_request(options)
400
+ end
401
+
267
402
  # Returns information about one or more merge conflicts in the attempted
268
403
  # merge of two commit specifiers using the squash or three-way merge
269
404
  # strategy.
@@ -274,11 +409,11 @@ module Aws::CodeCommit
274
409
  #
275
410
  # @option params [required, String] :destination_commit_specifier
276
411
  # The branch, tag, HEAD, or other fully qualified reference used to
277
- # identify a commit. For example, a branch name or a full commit ID.
412
+ # identify a commit (for example, a branch name or a full commit ID).
278
413
  #
279
414
  # @option params [required, String] :source_commit_specifier
280
415
  # The branch, tag, HEAD, or other fully qualified reference used to
281
- # identify a commit. For example, a branch name or a full commit ID.
416
+ # identify a commit (for example, a branch name or a full commit ID).
282
417
  #
283
418
  # @option params [required, String] :merge_option
284
419
  # The merge option or strategy you want to use to merge the code.
@@ -295,20 +430,20 @@ module Aws::CodeCommit
295
430
  #
296
431
  # @option params [String] :conflict_detail_level
297
432
  # The level of conflict detail to use. If unspecified, the default
298
- # FILE\_LEVEL is used, which will return a not mergeable result if the
299
- # same file has differences in both branches. If LINE\_LEVEL is
300
- # specified, a conflict will be considered not mergeable if the same
301
- # file in both branches has differences on the same line.
433
+ # FILE\_LEVEL is used, which returns a not-mergeable result if the same
434
+ # file has differences in both branches. If LINE\_LEVEL is specified, a
435
+ # conflict is considered not mergeable if the same file in both branches
436
+ # has differences on the same line.
302
437
  #
303
438
  # @option params [String] :conflict_resolution_strategy
304
439
  # Specifies which branch to use when resolving conflicts, or whether to
305
440
  # attempt automatically merging two versions of a file. The default is
306
441
  # NONE, which requires any conflicts to be resolved manually before the
307
- # merge operation will be successful.
442
+ # merge operation is successful.
308
443
  #
309
444
  # @option params [String] :next_token
310
- # An enumeration token that when provided in a request, returns the next
311
- # batch of the results.
445
+ # An enumeration token that, when provided in a request, returns the
446
+ # next batch of the results.
312
447
  #
313
448
  # @return [Types::BatchDescribeMergeConflictsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
314
449
  #
@@ -385,14 +520,60 @@ module Aws::CodeCommit
385
520
  req.send_request(options)
386
521
  end
387
522
 
523
+ # Removes the association between an approval rule template and one or
524
+ # more specified repositories.
525
+ #
526
+ # @option params [required, String] :approval_rule_template_name
527
+ # The name of the template that you want to disassociate from one or
528
+ # more repositories.
529
+ #
530
+ # @option params [required, Array<String>] :repository_names
531
+ # The repository names that you want to disassociate from the approval
532
+ # rule template.
533
+ #
534
+ # <note markdown="1"> The length constraint limit is for each string in the array. The array
535
+ # itself can be empty.
536
+ #
537
+ # </note>
538
+ #
539
+ # @return [Types::BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
540
+ #
541
+ # * {Types::BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput#disassociated_repository_names #disassociated_repository_names} => Array&lt;String&gt;
542
+ # * {Types::BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput#errors #errors} => Array&lt;Types::BatchDisassociateApprovalRuleTemplateFromRepositoriesError&gt;
543
+ #
544
+ # @example Request syntax with placeholder values
545
+ #
546
+ # resp = client.batch_disassociate_approval_rule_template_from_repositories({
547
+ # approval_rule_template_name: "ApprovalRuleTemplateName", # required
548
+ # repository_names: ["RepositoryName"], # required
549
+ # })
550
+ #
551
+ # @example Response structure
552
+ #
553
+ # resp.disassociated_repository_names #=> Array
554
+ # resp.disassociated_repository_names[0] #=> String
555
+ # resp.errors #=> Array
556
+ # resp.errors[0].repository_name #=> String
557
+ # resp.errors[0].error_code #=> String
558
+ # resp.errors[0].error_message #=> String
559
+ #
560
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchDisassociateApprovalRuleTemplateFromRepositories AWS API Documentation
561
+ #
562
+ # @overload batch_disassociate_approval_rule_template_from_repositories(params = {})
563
+ # @param [Hash] params ({})
564
+ def batch_disassociate_approval_rule_template_from_repositories(params = {}, options = {})
565
+ req = build_request(:batch_disassociate_approval_rule_template_from_repositories, params)
566
+ req.send_request(options)
567
+ end
568
+
388
569
  # Returns information about the contents of one or more commits in a
389
570
  # repository.
390
571
  #
391
572
  # @option params [required, Array<String>] :commit_ids
392
573
  # The full commit IDs of the commits to get information about.
393
574
  #
394
- # <note markdown="1"> You must supply the full SHAs of each commit. You cannot use shortened
395
- # SHAs.
575
+ # <note markdown="1"> You must supply the full SHA IDs of each commit. You cannot use
576
+ # shortened SHA IDs.
396
577
  #
397
578
  # </note>
398
579
  #
@@ -444,16 +625,21 @@ module Aws::CodeCommit
444
625
  #
445
626
  # <note markdown="1"> The description field for a repository accepts all HTML characters and
446
627
  # all valid Unicode characters. Applications that do not HTML-encode the
447
- # description and display it in a web page could expose users to
628
+ # description and display it in a webpage can expose users to
448
629
  # potentially malicious code. Make sure that you HTML-encode the
449
630
  # description field in any application that uses this API to display the
450
- # repository description on a web page.
631
+ # repository description on a webpage.
451
632
  #
452
633
  # </note>
453
634
  #
454
635
  # @option params [required, Array<String>] :repository_names
455
636
  # The names of the repositories to get information about.
456
637
  #
638
+ # <note markdown="1"> The length constraint limit is for each string in the array. The array
639
+ # itself can be empty.
640
+ #
641
+ # </note>
642
+ #
457
643
  # @return [Types::BatchGetRepositoriesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
458
644
  #
459
645
  # * {Types::BatchGetRepositoriesOutput#repositories #repositories} => Array&lt;Types::RepositoryMetadata&gt;
@@ -490,8 +676,98 @@ module Aws::CodeCommit
490
676
  req.send_request(options)
491
677
  end
492
678
 
493
- # Creates a new branch in a repository and points the branch to a
494
- # commit.
679
+ # Creates a template for approval rules that can then be associated with
680
+ # one or more repositories in your AWS account. When you associate a
681
+ # template with a repository, AWS CodeCommit creates an approval rule
682
+ # that matches the conditions of the template for all pull requests that
683
+ # meet the conditions of the template. For more information, see
684
+ # AssociateApprovalRuleTemplateWithRepository.
685
+ #
686
+ # @option params [required, String] :approval_rule_template_name
687
+ # The name of the approval rule template. Provide descriptive names,
688
+ # because this name is applied to the approval rules created
689
+ # automatically in associated repositories.
690
+ #
691
+ # @option params [required, String] :approval_rule_template_content
692
+ # The content of the approval rule that is created on pull requests in
693
+ # associated repositories. If you specify one or more destination
694
+ # references (branches), approval rules are created in an associated
695
+ # repository only if their destination references (branches) match those
696
+ # specified in the template.
697
+ #
698
+ # <note markdown="1"> When you create the content of the approval rule template, you can
699
+ # specify approvers in an approval pool in one of two ways:
700
+ #
701
+ # * **CodeCommitApprovers**\: This option only requires an AWS account
702
+ # and a resource. It can be used for both IAM users and federated
703
+ # access users whose name matches the provided resource name. This is
704
+ # a very powerful option that offers a great deal of flexibility. For
705
+ # example, if you specify the AWS account *123456789012* and
706
+ # *Mary\_Major*, all of the following are counted as approvals coming
707
+ # from that user:
708
+ #
709
+ # * An IAM user in the account
710
+ # (arn:aws:iam::*123456789012*\:user/*Mary\_Major*)
711
+ #
712
+ # * A federated user identified in IAM as Mary\_Major
713
+ # (arn:aws:sts::*123456789012*\:federated-user/*Mary\_Major*)
714
+ #
715
+ # This option does not recognize an active session of someone assuming
716
+ # the role of CodeCommitReview with a role session name of
717
+ # *Mary\_Major*
718
+ # (arn:aws:sts::*123456789012*\:assumed-role/CodeCommitReview/*Mary\_Major*)
719
+ # unless you include a wildcard (*Mary\_Major).
720
+ #
721
+ # * **Fully qualified ARN**\: This option allows you to specify the
722
+ # fully qualified Amazon Resource Name (ARN) of the IAM user or role.
723
+ #
724
+ # For more information about IAM ARNs, wildcards, and formats, see [IAM
725
+ # Identifiers][1] in the *IAM User Guide*.
726
+ #
727
+ # </note>
728
+ #
729
+ #
730
+ #
731
+ # [1]: https://docs.aws.amazon.com/iam/latest/UserGuide/reference_identifiers.html
732
+ #
733
+ # @option params [String] :approval_rule_template_description
734
+ # The description of the approval rule template. Consider providing a
735
+ # description that explains what this template does and when it might be
736
+ # appropriate to associate it with repositories.
737
+ #
738
+ # @return [Types::CreateApprovalRuleTemplateOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
739
+ #
740
+ # * {Types::CreateApprovalRuleTemplateOutput#approval_rule_template #approval_rule_template} => Types::ApprovalRuleTemplate
741
+ #
742
+ # @example Request syntax with placeholder values
743
+ #
744
+ # resp = client.create_approval_rule_template({
745
+ # approval_rule_template_name: "ApprovalRuleTemplateName", # required
746
+ # approval_rule_template_content: "ApprovalRuleTemplateContent", # required
747
+ # approval_rule_template_description: "ApprovalRuleTemplateDescription",
748
+ # })
749
+ #
750
+ # @example Response structure
751
+ #
752
+ # resp.approval_rule_template.approval_rule_template_id #=> String
753
+ # resp.approval_rule_template.approval_rule_template_name #=> String
754
+ # resp.approval_rule_template.approval_rule_template_description #=> String
755
+ # resp.approval_rule_template.approval_rule_template_content #=> String
756
+ # resp.approval_rule_template.rule_content_sha_256 #=> String
757
+ # resp.approval_rule_template.last_modified_date #=> Time
758
+ # resp.approval_rule_template.creation_date #=> Time
759
+ # resp.approval_rule_template.last_modified_user #=> String
760
+ #
761
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateApprovalRuleTemplate AWS API Documentation
762
+ #
763
+ # @overload create_approval_rule_template(params = {})
764
+ # @param [Hash] params ({})
765
+ def create_approval_rule_template(params = {}, options = {})
766
+ req = build_request(:create_approval_rule_template, params)
767
+ req.send_request(options)
768
+ end
769
+
770
+ # Creates a branch in a repository and points the branch to a commit.
495
771
  #
496
772
  # <note markdown="1"> Calling the create branch operation does not set a repository's
497
773
  # default branch. To do this, call the update default branch operation.
@@ -529,39 +805,38 @@ module Aws::CodeCommit
529
805
  # Creates a commit for a repository on the tip of a specified branch.
530
806
  #
531
807
  # @option params [required, String] :repository_name
532
- # The name of the repository where you will create the commit.
808
+ # The name of the repository where you create the commit.
533
809
  #
534
810
  # @option params [required, String] :branch_name
535
- # The name of the branch where you will create the commit.
811
+ # The name of the branch where you create the commit.
536
812
  #
537
813
  # @option params [String] :parent_commit_id
538
- # The ID of the commit that is the parent of the commit you will create.
539
- # If this is an empty repository, this is not required.
814
+ # The ID of the commit that is the parent of the commit you create. Not
815
+ # required if this is an empty repository.
540
816
  #
541
817
  # @option params [String] :author_name
542
- # The name of the author who created the commit. This information will
543
- # be used as both the author and committer for the commit.
818
+ # The name of the author who created the commit. This information is
819
+ # used as both the author and committer for the commit.
544
820
  #
545
821
  # @option params [String] :email
546
822
  # The email address of the person who created the commit.
547
823
  #
548
824
  # @option params [String] :commit_message
549
- # The commit message you want to include as part of creating the commit.
550
- # Commit messages are limited to 256 KB. If no message is specified, a
551
- # default message will be used.
825
+ # The commit message you want to include in the commit. Commit messages
826
+ # are limited to 256 KB. If no message is specified, a default message
827
+ # is used.
552
828
  #
553
829
  # @option params [Boolean] :keep_empty_folders
554
830
  # If the commit contains deletions, whether to keep a folder or folder
555
- # structure if the changes leave the folders empty. If this is specified
556
- # as true, a .gitkeep file will be created for empty folders. The
557
- # default is false.
831
+ # structure if the changes leave the folders empty. If true, a ..gitkeep
832
+ # file is created for empty folders. The default is false.
558
833
  #
559
834
  # @option params [Array<Types::PutFileEntry>] :put_files
560
835
  # The files to add or update in this commit.
561
836
  #
562
837
  # @option params [Array<Types::DeleteFileEntry>] :delete_files
563
- # The files to delete in this commit. These files will still exist in
564
- # prior commits.
838
+ # The files to delete in this commit. These files still exist in earlier
839
+ # commits.
565
840
  #
566
841
  # @option params [Array<Types::SetFileModeEntry>] :set_file_modes
567
842
  # The file modes to update for files in this commit.
@@ -637,28 +912,27 @@ module Aws::CodeCommit
637
912
  # Creates a pull request in the specified repository.
638
913
  #
639
914
  # @option params [required, String] :title
640
- # The title of the pull request. This title will be used to identify the
641
- # pull request to other users in the repository.
915
+ # The title of the pull request. This title is used to identify the pull
916
+ # request to other users in the repository.
642
917
  #
643
918
  # @option params [String] :description
644
919
  # A description of the pull request.
645
920
  #
646
921
  # @option params [required, Array<Types::Target>] :targets
647
922
  # The targets for the pull request, including the source of the code to
648
- # be reviewed (the source branch), and the destination where the creator
923
+ # be reviewed (the source branch) and the destination where the creator
649
924
  # of the pull request intends the code to be merged after the pull
650
925
  # request is closed (the destination branch).
651
926
  #
652
927
  # @option params [String] :client_request_token
653
- # A unique, client-generated idempotency token that when provided in a
928
+ # A unique, client-generated idempotency token that, when provided in a
654
929
  # request, ensures the request cannot be repeated with a changed
655
930
  # parameter. If a request is received with the same parameters and a
656
- # token is included, the request will return information about the
657
- # initial request that used that token.
931
+ # token is included, the request returns information about the initial
932
+ # request that used that token.
658
933
  #
659
- # <note markdown="1"> The AWS SDKs prepopulate client request tokens. If using an AWS SDK,
660
- # you do not have to generate an idempotency token, as this will be done
661
- # for you.
934
+ # <note markdown="1"> The AWS SDKs prepopulate client request tokens. If you are using an
935
+ # AWS SDK, an idempotency token is created for you.
662
936
  #
663
937
  # </note>
664
938
  #
@@ -705,6 +979,17 @@ module Aws::CodeCommit
705
979
  # resp.pull_request.pull_request_targets[0].merge_metadata.merge_commit_id #=> String
706
980
  # resp.pull_request.pull_request_targets[0].merge_metadata.merge_option #=> String, one of "FAST_FORWARD_MERGE", "SQUASH_MERGE", "THREE_WAY_MERGE"
707
981
  # resp.pull_request.client_request_token #=> String
982
+ # resp.pull_request.revision_id #=> String
983
+ # resp.pull_request.approval_rules #=> Array
984
+ # resp.pull_request.approval_rules[0].approval_rule_id #=> String
985
+ # resp.pull_request.approval_rules[0].approval_rule_name #=> String
986
+ # resp.pull_request.approval_rules[0].approval_rule_content #=> String
987
+ # resp.pull_request.approval_rules[0].rule_content_sha_256 #=> String
988
+ # resp.pull_request.approval_rules[0].last_modified_date #=> Time
989
+ # resp.pull_request.approval_rules[0].creation_date #=> Time
990
+ # resp.pull_request.approval_rules[0].last_modified_user #=> String
991
+ # resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_id #=> String
992
+ # resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_name #=> String
708
993
  #
709
994
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreatePullRequest AWS API Documentation
710
995
  #
@@ -715,16 +1000,99 @@ module Aws::CodeCommit
715
1000
  req.send_request(options)
716
1001
  end
717
1002
 
1003
+ # Creates an approval rule for a pull request.
1004
+ #
1005
+ # @option params [required, String] :pull_request_id
1006
+ # The system-generated ID of the pull request for which you want to
1007
+ # create the approval rule.
1008
+ #
1009
+ # @option params [required, String] :approval_rule_name
1010
+ # The name for the approval rule.
1011
+ #
1012
+ # @option params [required, String] :approval_rule_content
1013
+ # The content of the approval rule, including the number of approvals
1014
+ # needed and the structure of an approval pool defined for approvals, if
1015
+ # any. For more information about approval pools, see the AWS CodeCommit
1016
+ # User Guide.
1017
+ #
1018
+ # <note markdown="1"> When you create the content of the approval rule, you can specify
1019
+ # approvers in an approval pool in one of two ways:
1020
+ #
1021
+ # * **CodeCommitApprovers**\: This option only requires an AWS account
1022
+ # and a resource. It can be used for both IAM users and federated
1023
+ # access users whose name matches the provided resource name. This is
1024
+ # a very powerful option that offers a great deal of flexibility. For
1025
+ # example, if you specify the AWS account *123456789012* and
1026
+ # *Mary\_Major*, all of the following would be counted as approvals
1027
+ # coming from that user:
1028
+ #
1029
+ # * An IAM user in the account
1030
+ # (arn:aws:iam::*123456789012*\:user/*Mary\_Major*)
1031
+ #
1032
+ # * A federated user identified in IAM as Mary\_Major
1033
+ # (arn:aws:sts::*123456789012*\:federated-user/*Mary\_Major*)
1034
+ #
1035
+ # This option does not recognize an active session of someone assuming
1036
+ # the role of CodeCommitReview with a role session name of
1037
+ # *Mary\_Major*
1038
+ # (arn:aws:sts::*123456789012*\:assumed-role/CodeCommitReview/*Mary\_Major*)
1039
+ # unless you include a wildcard (*Mary\_Major).
1040
+ #
1041
+ # * **Fully qualified ARN**\: This option allows you to specify the
1042
+ # fully qualified Amazon Resource Name (ARN) of the IAM user or role.
1043
+ #
1044
+ # For more information about IAM ARNs, wildcards, and formats, see [IAM
1045
+ # Identifiers][1] in the *IAM User Guide*.
1046
+ #
1047
+ # </note>
1048
+ #
1049
+ #
1050
+ #
1051
+ # [1]: https://docs.aws.amazon.com/iam/latest/UserGuide/reference_identifiers.html
1052
+ #
1053
+ # @return [Types::CreatePullRequestApprovalRuleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1054
+ #
1055
+ # * {Types::CreatePullRequestApprovalRuleOutput#approval_rule #approval_rule} => Types::ApprovalRule
1056
+ #
1057
+ # @example Request syntax with placeholder values
1058
+ #
1059
+ # resp = client.create_pull_request_approval_rule({
1060
+ # pull_request_id: "PullRequestId", # required
1061
+ # approval_rule_name: "ApprovalRuleName", # required
1062
+ # approval_rule_content: "ApprovalRuleContent", # required
1063
+ # })
1064
+ #
1065
+ # @example Response structure
1066
+ #
1067
+ # resp.approval_rule.approval_rule_id #=> String
1068
+ # resp.approval_rule.approval_rule_name #=> String
1069
+ # resp.approval_rule.approval_rule_content #=> String
1070
+ # resp.approval_rule.rule_content_sha_256 #=> String
1071
+ # resp.approval_rule.last_modified_date #=> Time
1072
+ # resp.approval_rule.creation_date #=> Time
1073
+ # resp.approval_rule.last_modified_user #=> String
1074
+ # resp.approval_rule.origin_approval_rule_template.approval_rule_template_id #=> String
1075
+ # resp.approval_rule.origin_approval_rule_template.approval_rule_template_name #=> String
1076
+ #
1077
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreatePullRequestApprovalRule AWS API Documentation
1078
+ #
1079
+ # @overload create_pull_request_approval_rule(params = {})
1080
+ # @param [Hash] params ({})
1081
+ def create_pull_request_approval_rule(params = {}, options = {})
1082
+ req = build_request(:create_pull_request_approval_rule, params)
1083
+ req.send_request(options)
1084
+ end
1085
+
718
1086
  # Creates a new, empty repository.
719
1087
  #
720
1088
  # @option params [required, String] :repository_name
721
1089
  # The name of the new repository to be created.
722
1090
  #
723
- # <note markdown="1"> The repository name must be unique across the calling AWS account. In
724
- # addition, repository names are limited to 100 alphanumeric, dash, and
725
- # underscore characters, and cannot include certain characters. For a
726
- # full description of the limits on repository names, see [Limits][1] in
727
- # the AWS CodeCommit User Guide. The suffix ".git" is prohibited.
1091
+ # <note markdown="1"> The repository name must be unique across the calling AWS account.
1092
+ # Repository names are limited to 100 alphanumeric, dash, and underscore
1093
+ # characters, and cannot include certain characters. For more
1094
+ # information about the limits on repository names, see [Limits][1] in
1095
+ # the *AWS CodeCommit User Guide*. The suffix .git is prohibited.
728
1096
  #
729
1097
  # </note>
730
1098
  #
@@ -737,10 +1105,10 @@ module Aws::CodeCommit
737
1105
  #
738
1106
  # <note markdown="1"> The description field for a repository accepts all HTML characters and
739
1107
  # all valid Unicode characters. Applications that do not HTML-encode the
740
- # description and display it in a web page could expose users to
1108
+ # description and display it in a webpage can expose users to
741
1109
  # potentially malicious code. Make sure that you HTML-encode the
742
1110
  # description field in any application that uses this API to display the
743
- # repository description on a web page.
1111
+ # repository description on a webpage.
744
1112
  #
745
1113
  # </note>
746
1114
  #
@@ -786,8 +1154,8 @@ module Aws::CodeCommit
786
1154
  # Creates an unreferenced commit that represents the result of merging
787
1155
  # two branches using a specified merge strategy. This can help you
788
1156
  # determine the outcome of a potential merge. This API cannot be used
789
- # with the fast-forward merge strategy, as that strategy does not create
790
- # a merge commit.
1157
+ # with the fast-forward merge strategy because that strategy does not
1158
+ # create a merge commit.
791
1159
  #
792
1160
  # <note markdown="1"> This unreferenced merge commit can only be accessed using the
793
1161
  # GetCommit API or through git commands such as git fetch. To retrieve
@@ -801,32 +1169,31 @@ module Aws::CodeCommit
801
1169
  #
802
1170
  # @option params [required, String] :source_commit_specifier
803
1171
  # The branch, tag, HEAD, or other fully qualified reference used to
804
- # identify a commit. For example, a branch name or a full commit ID.
1172
+ # identify a commit (for example, a branch name or a full commit ID).
805
1173
  #
806
1174
  # @option params [required, String] :destination_commit_specifier
807
1175
  # The branch, tag, HEAD, or other fully qualified reference used to
808
- # identify a commit. For example, a branch name or a full commit ID.
1176
+ # identify a commit (for example, a branch name or a full commit ID).
809
1177
  #
810
1178
  # @option params [required, String] :merge_option
811
1179
  # The merge option or strategy you want to use to merge the code.
812
1180
  #
813
1181
  # @option params [String] :conflict_detail_level
814
1182
  # The level of conflict detail to use. If unspecified, the default
815
- # FILE\_LEVEL is used, which will return a not mergeable result if the
816
- # same file has differences in both branches. If LINE\_LEVEL is
817
- # specified, a conflict will be considered not mergeable if the same
818
- # file in both branches has differences on the same line.
1183
+ # FILE\_LEVEL is used, which returns a not-mergeable result if the same
1184
+ # file has differences in both branches. If LINE\_LEVEL is specified, a
1185
+ # conflict is considered not mergeable if the same file in both branches
1186
+ # has differences on the same line.
819
1187
  #
820
1188
  # @option params [String] :conflict_resolution_strategy
821
1189
  # Specifies which branch to use when resolving conflicts, or whether to
822
1190
  # attempt automatically merging two versions of a file. The default is
823
1191
  # NONE, which requires any conflicts to be resolved manually before the
824
- # merge operation will be successful.
1192
+ # merge operation is successful.
825
1193
  #
826
1194
  # @option params [String] :author_name
827
1195
  # The name of the author who created the unreferenced commit. This
828
- # information will be used as both the author and committer for the
829
- # commit.
1196
+ # information is used as both the author and committer for the commit.
830
1197
  #
831
1198
  # @option params [String] :email
832
1199
  # The email address for the person who created the unreferenced commit.
@@ -837,12 +1204,12 @@ module Aws::CodeCommit
837
1204
  # @option params [Boolean] :keep_empty_folders
838
1205
  # If the commit contains deletions, whether to keep a folder or folder
839
1206
  # structure if the changes leave the folders empty. If this is specified
840
- # as true, a .gitkeep file will be created for empty folders. The
841
- # default is false.
1207
+ # as true, a .gitkeep file is created for empty folders. The default is
1208
+ # false.
842
1209
  #
843
1210
  # @option params [Types::ConflictResolution] :conflict_resolution
844
- # A list of inputs to use when resolving conflicts during a merge if
845
- # AUTOMERGE is chosen as the conflict resolution strategy.
1211
+ # If AUTOMERGE is the conflict resolution strategy, a list of inputs to
1212
+ # use when resolving conflicts during a merge.
846
1213
  #
847
1214
  # @return [Types::CreateUnreferencedMergeCommitOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
848
1215
  #
@@ -899,6 +1266,36 @@ module Aws::CodeCommit
899
1266
  req.send_request(options)
900
1267
  end
901
1268
 
1269
+ # Deletes a specified approval rule template. Deleting a template does
1270
+ # not remove approval rules on pull requests already created with the
1271
+ # template.
1272
+ #
1273
+ # @option params [required, String] :approval_rule_template_name
1274
+ # The name of the approval rule template to delete.
1275
+ #
1276
+ # @return [Types::DeleteApprovalRuleTemplateOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1277
+ #
1278
+ # * {Types::DeleteApprovalRuleTemplateOutput#approval_rule_template_id #approval_rule_template_id} => String
1279
+ #
1280
+ # @example Request syntax with placeholder values
1281
+ #
1282
+ # resp = client.delete_approval_rule_template({
1283
+ # approval_rule_template_name: "ApprovalRuleTemplateName", # required
1284
+ # })
1285
+ #
1286
+ # @example Response structure
1287
+ #
1288
+ # resp.approval_rule_template_id #=> String
1289
+ #
1290
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteApprovalRuleTemplate AWS API Documentation
1291
+ #
1292
+ # @overload delete_approval_rule_template(params = {})
1293
+ # @param [Hash] params ({})
1294
+ def delete_approval_rule_template(params = {}, options = {})
1295
+ req = build_request(:delete_approval_rule_template, params)
1296
+ req.send_request(options)
1297
+ end
1298
+
902
1299
  # Deletes a branch from a repository, unless that branch is the default
903
1300
  # branch for the repository.
904
1301
  #
@@ -971,50 +1368,48 @@ module Aws::CodeCommit
971
1368
  end
972
1369
 
973
1370
  # Deletes a specified file from a specified branch. A commit is created
974
- # on the branch that contains the revision. The file will still exist in
975
- # the commits prior to the commit that contains the deletion.
1371
+ # on the branch that contains the revision. The file still exists in the
1372
+ # commits earlier to the commit that contains the deletion.
976
1373
  #
977
1374
  # @option params [required, String] :repository_name
978
1375
  # The name of the repository that contains the file to delete.
979
1376
  #
980
1377
  # @option params [required, String] :branch_name
981
- # The name of the branch where the commit will be made deleting the
982
- # file.
1378
+ # The name of the branch where the commit that deletes the file is made.
983
1379
  #
984
1380
  # @option params [required, String] :file_path
985
- # The fully-qualified path to the file that will be deleted, including
986
- # the full name and extension of that file. For example,
987
- # /examples/file.md is a fully qualified path to a file named file.md in
988
- # a folder named examples.
1381
+ # The fully qualified path to the file that to be deleted, including the
1382
+ # full name and extension of that file. For example, /examples/file.md
1383
+ # is a fully qualified path to a file named file.md in a folder named
1384
+ # examples.
989
1385
  #
990
1386
  # @option params [required, String] :parent_commit_id
991
1387
  # The ID of the commit that is the tip of the branch where you want to
992
- # create the commit that will delete the file. This must be the HEAD
993
- # commit for the branch. The commit that deletes the file will be
994
- # created from this commit ID.
1388
+ # create the commit that deletes the file. This must be the HEAD commit
1389
+ # for the branch. The commit that deletes the file is created from this
1390
+ # commit ID.
995
1391
  #
996
1392
  # @option params [Boolean] :keep_empty_folders
997
- # Specifies whether to delete the folder or directory that contains the
998
- # file you want to delete if that file is the only object in the folder
999
- # or directory. By default, empty folders will be deleted. This includes
1000
- # empty folders that are part of the directory structure. For example,
1001
- # if the path to a file is dir1/dir2/dir3/dir4, and dir2 and dir3 are
1002
- # empty, deleting the last file in dir4 will also delete the empty
1003
- # folders dir4, dir3, and dir2.
1393
+ # If a file is the only object in the folder or directory, specifies
1394
+ # whether to delete the folder or directory that contains the file. By
1395
+ # default, empty folders are deleted. This includes empty folders that
1396
+ # are part of the directory structure. For example, if the path to a
1397
+ # file is dir1/dir2/dir3/dir4, and dir2 and dir3 are empty, deleting the
1398
+ # last file in dir4 also deletes the empty folders dir4, dir3, and dir2.
1004
1399
  #
1005
1400
  # @option params [String] :commit_message
1006
1401
  # The commit message you want to include as part of deleting the file.
1007
1402
  # Commit messages are limited to 256 KB. If no message is specified, a
1008
- # default message will be used.
1403
+ # default message is used.
1009
1404
  #
1010
1405
  # @option params [String] :name
1011
1406
  # The name of the author of the commit that deletes the file. If no name
1012
- # is specified, the user's ARN will be used as the author name and
1013
- # committer name.
1407
+ # is specified, the user's ARN is used as the author name and committer
1408
+ # name.
1014
1409
  #
1015
1410
  # @option params [String] :email
1016
1411
  # The email address for the commit that deletes the file. If no email
1017
- # address is specified, the email address will be left blank.
1412
+ # address is specified, the email address is left blank.
1018
1413
  #
1019
1414
  # @return [Types::DeleteFileOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1020
1415
  #
@@ -1052,12 +1447,50 @@ module Aws::CodeCommit
1052
1447
  req.send_request(options)
1053
1448
  end
1054
1449
 
1450
+ # Deletes an approval rule from a specified pull request. Approval rules
1451
+ # can be deleted from a pull request only if the pull request is open,
1452
+ # and if the approval rule was created specifically for a pull request
1453
+ # and not generated from an approval rule template associated with the
1454
+ # repository where the pull request was created. You cannot delete an
1455
+ # approval rule from a merged or closed pull request.
1456
+ #
1457
+ # @option params [required, String] :pull_request_id
1458
+ # The system-generated ID of the pull request that contains the approval
1459
+ # rule you want to delete.
1460
+ #
1461
+ # @option params [required, String] :approval_rule_name
1462
+ # The name of the approval rule you want to delete.
1463
+ #
1464
+ # @return [Types::DeletePullRequestApprovalRuleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1465
+ #
1466
+ # * {Types::DeletePullRequestApprovalRuleOutput#approval_rule_id #approval_rule_id} => String
1467
+ #
1468
+ # @example Request syntax with placeholder values
1469
+ #
1470
+ # resp = client.delete_pull_request_approval_rule({
1471
+ # pull_request_id: "PullRequestId", # required
1472
+ # approval_rule_name: "ApprovalRuleName", # required
1473
+ # })
1474
+ #
1475
+ # @example Response structure
1476
+ #
1477
+ # resp.approval_rule_id #=> String
1478
+ #
1479
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeletePullRequestApprovalRule AWS API Documentation
1480
+ #
1481
+ # @overload delete_pull_request_approval_rule(params = {})
1482
+ # @param [Hash] params ({})
1483
+ def delete_pull_request_approval_rule(params = {}, options = {})
1484
+ req = build_request(:delete_pull_request_approval_rule, params)
1485
+ req.send_request(options)
1486
+ end
1487
+
1055
1488
  # Deletes a repository. If a specified repository was already deleted, a
1056
- # null repository ID will be returned.
1489
+ # null repository ID is returned.
1057
1490
  #
1058
1491
  # Deleting a repository also deletes all associated objects and
1059
1492
  # metadata. After a repository is deleted, all future push calls to the
1060
- # deleted repository will fail.
1493
+ # deleted repository fail.
1061
1494
  #
1062
1495
  # @option params [required, String] :repository_name
1063
1496
  # The name of the repository to delete.
@@ -1088,7 +1521,7 @@ module Aws::CodeCommit
1088
1521
  # Returns information about one or more merge conflicts in the attempted
1089
1522
  # merge of two commit specifiers using the squash or three-way merge
1090
1523
  # strategy. If the merge option for the attempted merge is specified as
1091
- # FAST\_FORWARD\_MERGE, an exception will be thrown.
1524
+ # FAST\_FORWARD\_MERGE, an exception is thrown.
1092
1525
  #
1093
1526
  # @option params [required, String] :repository_name
1094
1527
  # The name of the repository where you want to get information about a
@@ -1096,11 +1529,11 @@ module Aws::CodeCommit
1096
1529
  #
1097
1530
  # @option params [required, String] :destination_commit_specifier
1098
1531
  # The branch, tag, HEAD, or other fully qualified reference used to
1099
- # identify a commit. For example, a branch name or a full commit ID.
1532
+ # identify a commit (for example, a branch name or a full commit ID).
1100
1533
  #
1101
1534
  # @option params [required, String] :source_commit_specifier
1102
1535
  # The branch, tag, HEAD, or other fully qualified reference used to
1103
- # identify a commit. For example, a branch name or a full commit ID.
1536
+ # identify a commit (for example, a branch name or a full commit ID).
1104
1537
  #
1105
1538
  # @option params [required, String] :merge_option
1106
1539
  # The merge option or strategy you want to use to merge the code.
@@ -1113,20 +1546,20 @@ module Aws::CodeCommit
1113
1546
  #
1114
1547
  # @option params [String] :conflict_detail_level
1115
1548
  # The level of conflict detail to use. If unspecified, the default
1116
- # FILE\_LEVEL is used, which will return a not mergeable result if the
1117
- # same file has differences in both branches. If LINE\_LEVEL is
1118
- # specified, a conflict will be considered not mergeable if the same
1119
- # file in both branches has differences on the same line.
1549
+ # FILE\_LEVEL is used, which returns a not-mergeable result if the same
1550
+ # file has differences in both branches. If LINE\_LEVEL is specified, a
1551
+ # conflict is considered not mergeable if the same file in both branches
1552
+ # has differences on the same line.
1120
1553
  #
1121
1554
  # @option params [String] :conflict_resolution_strategy
1122
1555
  # Specifies which branch to use when resolving conflicts, or whether to
1123
1556
  # attempt automatically merging two versions of a file. The default is
1124
1557
  # NONE, which requires any conflicts to be resolved manually before the
1125
- # merge operation will be successful.
1558
+ # merge operation is successful.
1126
1559
  #
1127
1560
  # @option params [String] :next_token
1128
- # An enumeration token that when provided in a request, returns the next
1129
- # batch of the results.
1561
+ # An enumeration token that, when provided in a request, returns the
1562
+ # next batch of the results.
1130
1563
  #
1131
1564
  # @return [Types::DescribeMergeConflictsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1132
1565
  #
@@ -1137,6 +1570,8 @@ module Aws::CodeCommit
1137
1570
  # * {Types::DescribeMergeConflictsOutput#source_commit_id #source_commit_id} => String
1138
1571
  # * {Types::DescribeMergeConflictsOutput#base_commit_id #base_commit_id} => String
1139
1572
  #
1573
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1574
+ #
1140
1575
  # @example Request syntax with placeholder values
1141
1576
  #
1142
1577
  # resp = client.describe_merge_conflicts({
@@ -1209,28 +1644,30 @@ module Aws::CodeCommit
1209
1644
  #
1210
1645
  # @option params [String] :actor_arn
1211
1646
  # The Amazon Resource Name (ARN) of the user whose actions resulted in
1212
- # the event. Examples include updating the pull request with additional
1647
+ # the event. Examples include updating the pull request with more
1213
1648
  # commits or changing the status of a pull request.
1214
1649
  #
1215
1650
  # @option params [String] :next_token
1216
- # An enumeration token that when provided in a request, returns the next
1217
- # batch of the results.
1651
+ # An enumeration token that, when provided in a request, returns the
1652
+ # next batch of the results.
1218
1653
  #
1219
1654
  # @option params [Integer] :max_results
1220
- # A non-negative integer used to limit the number of returned results.
1221
- # The default is 100 events, which is also the maximum number of events
1222
- # that can be returned in a result.
1655
+ # A non-zero, non-negative integer used to limit the number of returned
1656
+ # results. The default is 100 events, which is also the maximum number
1657
+ # of events that can be returned in a result.
1223
1658
  #
1224
1659
  # @return [Types::DescribePullRequestEventsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1225
1660
  #
1226
1661
  # * {Types::DescribePullRequestEventsOutput#pull_request_events #pull_request_events} => Array&lt;Types::PullRequestEvent&gt;
1227
1662
  # * {Types::DescribePullRequestEventsOutput#next_token #next_token} => String
1228
1663
  #
1664
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1665
+ #
1229
1666
  # @example Request syntax with placeholder values
1230
1667
  #
1231
1668
  # resp = client.describe_pull_request_events({
1232
1669
  # pull_request_id: "PullRequestId", # required
1233
- # pull_request_event_type: "PULL_REQUEST_CREATED", # accepts PULL_REQUEST_CREATED, PULL_REQUEST_STATUS_CHANGED, PULL_REQUEST_SOURCE_REFERENCE_UPDATED, PULL_REQUEST_MERGE_STATE_CHANGED
1670
+ # pull_request_event_type: "PULL_REQUEST_CREATED", # accepts PULL_REQUEST_CREATED, PULL_REQUEST_STATUS_CHANGED, PULL_REQUEST_SOURCE_REFERENCE_UPDATED, PULL_REQUEST_MERGE_STATE_CHANGED, PULL_REQUEST_APPROVAL_RULE_CREATED, PULL_REQUEST_APPROVAL_RULE_UPDATED, PULL_REQUEST_APPROVAL_RULE_DELETED, PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN, PULL_REQUEST_APPROVAL_STATE_CHANGED
1234
1671
  # actor_arn: "Arn",
1235
1672
  # next_token: "NextToken",
1236
1673
  # max_results: 1,
@@ -1241,7 +1678,7 @@ module Aws::CodeCommit
1241
1678
  # resp.pull_request_events #=> Array
1242
1679
  # resp.pull_request_events[0].pull_request_id #=> String
1243
1680
  # resp.pull_request_events[0].event_date #=> Time
1244
- # resp.pull_request_events[0].pull_request_event_type #=> String, one of "PULL_REQUEST_CREATED", "PULL_REQUEST_STATUS_CHANGED", "PULL_REQUEST_SOURCE_REFERENCE_UPDATED", "PULL_REQUEST_MERGE_STATE_CHANGED"
1681
+ # resp.pull_request_events[0].pull_request_event_type #=> String, one of "PULL_REQUEST_CREATED", "PULL_REQUEST_STATUS_CHANGED", "PULL_REQUEST_SOURCE_REFERENCE_UPDATED", "PULL_REQUEST_MERGE_STATE_CHANGED", "PULL_REQUEST_APPROVAL_RULE_CREATED", "PULL_REQUEST_APPROVAL_RULE_UPDATED", "PULL_REQUEST_APPROVAL_RULE_DELETED", "PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN", "PULL_REQUEST_APPROVAL_STATE_CHANGED"
1245
1682
  # resp.pull_request_events[0].actor_arn #=> String
1246
1683
  # resp.pull_request_events[0].pull_request_created_event_metadata.repository_name #=> String
1247
1684
  # resp.pull_request_events[0].pull_request_created_event_metadata.source_commit_id #=> String
@@ -1258,6 +1695,13 @@ module Aws::CodeCommit
1258
1695
  # resp.pull_request_events[0].pull_request_merged_state_changed_event_metadata.merge_metadata.merged_by #=> String
1259
1696
  # resp.pull_request_events[0].pull_request_merged_state_changed_event_metadata.merge_metadata.merge_commit_id #=> String
1260
1697
  # resp.pull_request_events[0].pull_request_merged_state_changed_event_metadata.merge_metadata.merge_option #=> String, one of "FAST_FORWARD_MERGE", "SQUASH_MERGE", "THREE_WAY_MERGE"
1698
+ # resp.pull_request_events[0].approval_rule_event_metadata.approval_rule_name #=> String
1699
+ # resp.pull_request_events[0].approval_rule_event_metadata.approval_rule_id #=> String
1700
+ # resp.pull_request_events[0].approval_rule_event_metadata.approval_rule_content #=> String
1701
+ # resp.pull_request_events[0].approval_state_changed_event_metadata.revision_id #=> String
1702
+ # resp.pull_request_events[0].approval_state_changed_event_metadata.approval_status #=> String, one of "APPROVE", "REVOKE"
1703
+ # resp.pull_request_events[0].approval_rule_overridden_event_metadata.revision_id #=> String
1704
+ # resp.pull_request_events[0].approval_rule_overridden_event_metadata.override_status #=> String, one of "OVERRIDE", "REVOKE"
1261
1705
  # resp.next_token #=> String
1262
1706
  #
1263
1707
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DescribePullRequestEvents AWS API Documentation
@@ -1269,7 +1713,113 @@ module Aws::CodeCommit
1269
1713
  req.send_request(options)
1270
1714
  end
1271
1715
 
1272
- # Returns the base-64 encoded content of an individual blob within a
1716
+ # Removes the association between a template and a repository so that
1717
+ # approval rules based on the template are not automatically created
1718
+ # when pull requests are created in the specified repository. This does
1719
+ # not delete any approval rules previously created for pull requests
1720
+ # through the template association.
1721
+ #
1722
+ # @option params [required, String] :approval_rule_template_name
1723
+ # The name of the approval rule template to disassociate from a
1724
+ # specified repository.
1725
+ #
1726
+ # @option params [required, String] :repository_name
1727
+ # The name of the repository you want to disassociate from the template.
1728
+ #
1729
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1730
+ #
1731
+ # @example Request syntax with placeholder values
1732
+ #
1733
+ # resp = client.disassociate_approval_rule_template_from_repository({
1734
+ # approval_rule_template_name: "ApprovalRuleTemplateName", # required
1735
+ # repository_name: "RepositoryName", # required
1736
+ # })
1737
+ #
1738
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DisassociateApprovalRuleTemplateFromRepository AWS API Documentation
1739
+ #
1740
+ # @overload disassociate_approval_rule_template_from_repository(params = {})
1741
+ # @param [Hash] params ({})
1742
+ def disassociate_approval_rule_template_from_repository(params = {}, options = {})
1743
+ req = build_request(:disassociate_approval_rule_template_from_repository, params)
1744
+ req.send_request(options)
1745
+ end
1746
+
1747
+ # Evaluates whether a pull request has met all the conditions specified
1748
+ # in its associated approval rules.
1749
+ #
1750
+ # @option params [required, String] :pull_request_id
1751
+ # The system-generated ID of the pull request you want to evaluate.
1752
+ #
1753
+ # @option params [required, String] :revision_id
1754
+ # The system-generated ID for the pull request revision. To retrieve the
1755
+ # most recent revision ID for a pull request, use GetPullRequest.
1756
+ #
1757
+ # @return [Types::EvaluatePullRequestApprovalRulesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1758
+ #
1759
+ # * {Types::EvaluatePullRequestApprovalRulesOutput#evaluation #evaluation} => Types::Evaluation
1760
+ #
1761
+ # @example Request syntax with placeholder values
1762
+ #
1763
+ # resp = client.evaluate_pull_request_approval_rules({
1764
+ # pull_request_id: "PullRequestId", # required
1765
+ # revision_id: "RevisionId", # required
1766
+ # })
1767
+ #
1768
+ # @example Response structure
1769
+ #
1770
+ # resp.evaluation.approved #=> Boolean
1771
+ # resp.evaluation.overridden #=> Boolean
1772
+ # resp.evaluation.approval_rules_satisfied #=> Array
1773
+ # resp.evaluation.approval_rules_satisfied[0] #=> String
1774
+ # resp.evaluation.approval_rules_not_satisfied #=> Array
1775
+ # resp.evaluation.approval_rules_not_satisfied[0] #=> String
1776
+ #
1777
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/EvaluatePullRequestApprovalRules AWS API Documentation
1778
+ #
1779
+ # @overload evaluate_pull_request_approval_rules(params = {})
1780
+ # @param [Hash] params ({})
1781
+ def evaluate_pull_request_approval_rules(params = {}, options = {})
1782
+ req = build_request(:evaluate_pull_request_approval_rules, params)
1783
+ req.send_request(options)
1784
+ end
1785
+
1786
+ # Returns information about a specified approval rule template.
1787
+ #
1788
+ # @option params [required, String] :approval_rule_template_name
1789
+ # The name of the approval rule template for which you want to get
1790
+ # information.
1791
+ #
1792
+ # @return [Types::GetApprovalRuleTemplateOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1793
+ #
1794
+ # * {Types::GetApprovalRuleTemplateOutput#approval_rule_template #approval_rule_template} => Types::ApprovalRuleTemplate
1795
+ #
1796
+ # @example Request syntax with placeholder values
1797
+ #
1798
+ # resp = client.get_approval_rule_template({
1799
+ # approval_rule_template_name: "ApprovalRuleTemplateName", # required
1800
+ # })
1801
+ #
1802
+ # @example Response structure
1803
+ #
1804
+ # resp.approval_rule_template.approval_rule_template_id #=> String
1805
+ # resp.approval_rule_template.approval_rule_template_name #=> String
1806
+ # resp.approval_rule_template.approval_rule_template_description #=> String
1807
+ # resp.approval_rule_template.approval_rule_template_content #=> String
1808
+ # resp.approval_rule_template.rule_content_sha_256 #=> String
1809
+ # resp.approval_rule_template.last_modified_date #=> Time
1810
+ # resp.approval_rule_template.creation_date #=> Time
1811
+ # resp.approval_rule_template.last_modified_user #=> String
1812
+ #
1813
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetApprovalRuleTemplate AWS API Documentation
1814
+ #
1815
+ # @overload get_approval_rule_template(params = {})
1816
+ # @param [Hash] params ({})
1817
+ def get_approval_rule_template(params = {}, options = {})
1818
+ req = build_request(:get_approval_rule_template, params)
1819
+ req.send_request(options)
1820
+ end
1821
+
1822
+ # Returns the base-64 encoded content of an individual blob in a
1273
1823
  # repository.
1274
1824
  #
1275
1825
  # @option params [required, String] :repository_name
@@ -1382,25 +1932,27 @@ module Aws::CodeCommit
1382
1932
  #
1383
1933
  # @option params [String] :before_commit_id
1384
1934
  # To establish the directionality of the comparison, the full commit ID
1385
- # of the 'before' commit.
1935
+ # of the before commit.
1386
1936
  #
1387
1937
  # @option params [required, String] :after_commit_id
1388
1938
  # To establish the directionality of the comparison, the full commit ID
1389
- # of the 'after' commit.
1939
+ # of the after commit.
1390
1940
  #
1391
1941
  # @option params [String] :next_token
1392
1942
  # An enumeration token that when provided in a request, returns the next
1393
1943
  # batch of the results.
1394
1944
  #
1395
1945
  # @option params [Integer] :max_results
1396
- # A non-negative integer used to limit the number of returned results.
1397
- # The default is 100 comments, and is configurable up to 500.
1946
+ # A non-zero, non-negative integer used to limit the number of returned
1947
+ # results. The default is 100 comments, but you can configure up to 500.
1398
1948
  #
1399
1949
  # @return [Types::GetCommentsForComparedCommitOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1400
1950
  #
1401
1951
  # * {Types::GetCommentsForComparedCommitOutput#comments_for_compared_commit_data #comments_for_compared_commit_data} => Array&lt;Types::CommentsForComparedCommit&gt;
1402
1952
  # * {Types::GetCommentsForComparedCommitOutput#next_token #next_token} => String
1403
1953
  #
1954
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1955
+ #
1404
1956
  # @example Request syntax with placeholder values
1405
1957
  #
1406
1958
  # resp = client.get_comments_for_compared_commit({
@@ -1460,19 +2012,21 @@ module Aws::CodeCommit
1460
2012
  # of the branch at the time the comment was made.
1461
2013
  #
1462
2014
  # @option params [String] :next_token
1463
- # An enumeration token that when provided in a request, returns the next
1464
- # batch of the results.
2015
+ # An enumeration token that, when provided in a request, returns the
2016
+ # next batch of the results.
1465
2017
  #
1466
2018
  # @option params [Integer] :max_results
1467
- # A non-negative integer used to limit the number of returned results.
1468
- # The default is 100 comments. You can return up to 500 comments with a
1469
- # single request.
2019
+ # A non-zero, non-negative integer used to limit the number of returned
2020
+ # results. The default is 100 comments. You can return up to 500
2021
+ # comments with a single request.
1470
2022
  #
1471
2023
  # @return [Types::GetCommentsForPullRequestOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1472
2024
  #
1473
2025
  # * {Types::GetCommentsForPullRequestOutput#comments_for_pull_request_data #comments_for_pull_request_data} => Array&lt;Types::CommentsForPullRequest&gt;
1474
2026
  # * {Types::GetCommentsForPullRequestOutput#next_token #next_token} => String
1475
2027
  #
2028
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2029
+ #
1476
2030
  # @example Request syntax with placeholder values
1477
2031
  #
1478
2032
  # resp = client.get_comments_for_pull_request({
@@ -1523,7 +2077,7 @@ module Aws::CodeCommit
1523
2077
  # The name of the repository to which the commit was made.
1524
2078
  #
1525
2079
  # @option params [required, String] :commit_id
1526
- # The commit ID. Commit IDs are the full SHA of the commit.
2080
+ # The commit ID. Commit IDs are the full SHA ID of the commit.
1527
2081
  #
1528
2082
  # @return [Types::GetCommitOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1529
2083
  #
@@ -1561,7 +2115,7 @@ module Aws::CodeCommit
1561
2115
  end
1562
2116
 
1563
2117
  # Returns information about the differences in a valid commit specifier
1564
- # (such as a branch, tag, HEAD, commit ID or other fully qualified
2118
+ # (such as a branch, tag, HEAD, commit ID, or other fully qualified
1565
2119
  # reference). Results can be limited to a specified path.
1566
2120
  #
1567
2121
  # @option params [required, String] :repository_name
@@ -1569,9 +2123,9 @@ module Aws::CodeCommit
1569
2123
  #
1570
2124
  # @option params [String] :before_commit_specifier
1571
2125
  # The branch, tag, HEAD, or other fully qualified reference used to
1572
- # identify a commit. For example, the full commit ID. Optional. If not
1573
- # specified, all changes prior to the `afterCommitSpecifier` value will
1574
- # be shown. If you do not use `beforeCommitSpecifier` in your request,
2126
+ # identify a commit (for example, the full commit ID). Optional. If not
2127
+ # specified, all changes before the `afterCommitSpecifier` value are
2128
+ # shown. If you do not use `beforeCommitSpecifier` in your request,
1575
2129
  # consider limiting the results with `maxResults`.
1576
2130
  #
1577
2131
  # @option params [required, String] :after_commit_specifier
@@ -1582,26 +2136,29 @@ module Aws::CodeCommit
1582
2136
  # The file path in which to check for differences. Limits the results to
1583
2137
  # this path. Can also be used to specify the previous name of a
1584
2138
  # directory or folder. If `beforePath` and `afterPath` are not
1585
- # specified, differences will be shown for all paths.
2139
+ # specified, differences are shown for all paths.
1586
2140
  #
1587
2141
  # @option params [String] :after_path
1588
2142
  # The file path in which to check differences. Limits the results to
1589
2143
  # this path. Can also be used to specify the changed name of a directory
1590
- # or folder, if it has changed. If not specified, differences will be
1591
- # shown for all paths.
2144
+ # or folder, if it has changed. If not specified, differences are shown
2145
+ # for all paths.
1592
2146
  #
1593
2147
  # @option params [Integer] :max_results
1594
- # A non-negative integer used to limit the number of returned results.
2148
+ # A non-zero, non-negative integer used to limit the number of returned
2149
+ # results.
1595
2150
  #
1596
2151
  # @option params [String] :next_token
1597
- # An enumeration token that when provided in a request, returns the next
1598
- # batch of the results.
2152
+ # An enumeration token that, when provided in a request, returns the
2153
+ # next batch of the results.
1599
2154
  #
1600
2155
  # @return [Types::GetDifferencesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1601
2156
  #
1602
2157
  # * {Types::GetDifferencesOutput#differences #differences} => Array&lt;Types::Difference&gt;
1603
2158
  # * {Types::GetDifferencesOutput#next_token #next_token} => String
1604
2159
  #
2160
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2161
+ #
1605
2162
  # @example Request syntax with placeholder values
1606
2163
  #
1607
2164
  # resp = client.get_differences({
@@ -1642,16 +2199,15 @@ module Aws::CodeCommit
1642
2199
  # The name of the repository that contains the file.
1643
2200
  #
1644
2201
  # @option params [String] :commit_specifier
1645
- # The fully-quaified reference that identifies the commit that contains
1646
- # the file. For example, you could specify a full commit ID, a tag, a
2202
+ # The fully quaified reference that identifies the commit that contains
2203
+ # the file. For example, you can specify a full commit ID, a tag, a
1647
2204
  # branch name, or a reference such as refs/heads/master. If none is
1648
- # provided, then the head commit will be used.
2205
+ # provided, the head commit is used.
1649
2206
  #
1650
2207
  # @option params [required, String] :file_path
1651
- # The fully-qualified path to the file, including the full name and
1652
- # extension of the file. For example, /examples/file.md is the
1653
- # fully-qualified path to a file named file.md in a folder named
1654
- # examples.
2208
+ # The fully qualified path to the file, including the full name and
2209
+ # extension of the file. For example, /examples/file.md is the fully
2210
+ # qualified path to a file named file.md in a folder named examples.
1655
2211
  #
1656
2212
  # @return [Types::GetFileOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1657
2213
  #
@@ -1694,17 +2250,17 @@ module Aws::CodeCommit
1694
2250
  # The name of the repository.
1695
2251
  #
1696
2252
  # @option params [String] :commit_specifier
1697
- # A fully-qualified reference used to identify a commit that contains
1698
- # the version of the folder's content to return. A fully-qualified
2253
+ # A fully qualified reference used to identify a commit that contains
2254
+ # the version of the folder's content to return. A fully qualified
1699
2255
  # reference can be a commit ID, branch name, tag, or reference such as
1700
- # HEAD. If no specifier is provided, the folder content will be returned
1701
- # as it exists in the HEAD commit.
2256
+ # HEAD. If no specifier is provided, the folder content is returned as
2257
+ # it exists in the HEAD commit.
1702
2258
  #
1703
2259
  # @option params [required, String] :folder_path
1704
- # The fully-qualified path to the folder whose contents will be
1705
- # returned, including the folder name. For example, /examples is a
1706
- # fully-qualified path to a folder named examples that was created off
1707
- # of the root directory (/) of a repository.
2260
+ # The fully qualified path to the folder whose contents are returned,
2261
+ # including the folder name. For example, /examples is a fully-qualified
2262
+ # path to a folder named examples that was created off of the root
2263
+ # directory (/) of a repository.
1708
2264
  #
1709
2265
  # @return [Types::GetFolderOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1710
2266
  #
@@ -1765,24 +2321,24 @@ module Aws::CodeCommit
1765
2321
  #
1766
2322
  # @option params [required, String] :source_commit_specifier
1767
2323
  # The branch, tag, HEAD, or other fully qualified reference used to
1768
- # identify a commit. For example, a branch name or a full commit ID.
2324
+ # identify a commit (for example, a branch name or a full commit ID).
1769
2325
  #
1770
2326
  # @option params [required, String] :destination_commit_specifier
1771
2327
  # The branch, tag, HEAD, or other fully qualified reference used to
1772
- # identify a commit. For example, a branch name or a full commit ID.
2328
+ # identify a commit (for example, a branch name or a full commit ID).
1773
2329
  #
1774
2330
  # @option params [String] :conflict_detail_level
1775
2331
  # The level of conflict detail to use. If unspecified, the default
1776
- # FILE\_LEVEL is used, which will return a not mergeable result if the
1777
- # same file has differences in both branches. If LINE\_LEVEL is
1778
- # specified, a conflict will be considered not mergeable if the same
1779
- # file in both branches has differences on the same line.
2332
+ # FILE\_LEVEL is used, which returns a not-mergeable result if the same
2333
+ # file has differences in both branches. If LINE\_LEVEL is specified, a
2334
+ # conflict is considered not mergeable if the same file in both branches
2335
+ # has differences on the same line.
1780
2336
  #
1781
2337
  # @option params [String] :conflict_resolution_strategy
1782
2338
  # Specifies which branch to use when resolving conflicts, or whether to
1783
2339
  # attempt automatically merging two versions of a file. The default is
1784
2340
  # NONE, which requires any conflicts to be resolved manually before the
1785
- # merge operation will be successful.
2341
+ # merge operation is successful.
1786
2342
  #
1787
2343
  # @return [Types::GetMergeCommitOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1788
2344
  #
@@ -1825,21 +2381,21 @@ module Aws::CodeCommit
1825
2381
  #
1826
2382
  # @option params [required, String] :destination_commit_specifier
1827
2383
  # The branch, tag, HEAD, or other fully qualified reference used to
1828
- # identify a commit. For example, a branch name or a full commit ID.
2384
+ # identify a commit (for example, a branch name or a full commit ID).
1829
2385
  #
1830
2386
  # @option params [required, String] :source_commit_specifier
1831
2387
  # The branch, tag, HEAD, or other fully qualified reference used to
1832
- # identify a commit. For example, a branch name or a full commit ID.
2388
+ # identify a commit (for example, a branch name or a full commit ID).
1833
2389
  #
1834
2390
  # @option params [required, String] :merge_option
1835
2391
  # The merge option or strategy you want to use to merge the code.
1836
2392
  #
1837
2393
  # @option params [String] :conflict_detail_level
1838
2394
  # The level of conflict detail to use. If unspecified, the default
1839
- # FILE\_LEVEL is used, which will return a not mergeable result if the
1840
- # same file has differences in both branches. If LINE\_LEVEL is
1841
- # specified, a conflict will be considered not mergeable if the same
1842
- # file in both branches has differences on the same line.
2395
+ # FILE\_LEVEL is used, which returns a not-mergeable result if the same
2396
+ # file has differences in both branches. If LINE\_LEVEL is specified, a
2397
+ # conflict is considered not mergeable if the same file in both branches
2398
+ # has differences on the same line.
1843
2399
  #
1844
2400
  # @option params [Integer] :max_conflict_files
1845
2401
  # The maximum number of files to include in the output.
@@ -1848,11 +2404,11 @@ module Aws::CodeCommit
1848
2404
  # Specifies which branch to use when resolving conflicts, or whether to
1849
2405
  # attempt automatically merging two versions of a file. The default is
1850
2406
  # NONE, which requires any conflicts to be resolved manually before the
1851
- # merge operation will be successful.
2407
+ # merge operation is successful.
1852
2408
  #
1853
2409
  # @option params [String] :next_token
1854
- # An enumeration token that when provided in a request, returns the next
1855
- # batch of the results.
2410
+ # An enumeration token that, when provided in a request, returns the
2411
+ # next batch of the results.
1856
2412
  #
1857
2413
  # @return [Types::GetMergeConflictsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1858
2414
  #
@@ -1863,6 +2419,8 @@ module Aws::CodeCommit
1863
2419
  # * {Types::GetMergeConflictsOutput#conflict_metadata_list #conflict_metadata_list} => Array&lt;Types::ConflictMetadata&gt;
1864
2420
  # * {Types::GetMergeConflictsOutput#next_token #next_token} => String
1865
2421
  #
2422
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2423
+ #
1866
2424
  # @example Request syntax with placeholder values
1867
2425
  #
1868
2426
  # resp = client.get_merge_conflicts({
@@ -1914,8 +2472,8 @@ module Aws::CodeCommit
1914
2472
  end
1915
2473
 
1916
2474
  # Returns information about the merge options available for merging two
1917
- # specified branches. For details about why a particular merge option is
1918
- # not available, use GetMergeConflicts or DescribeMergeConflicts.
2475
+ # specified branches. For details about why a merge option is not
2476
+ # available, use GetMergeConflicts or DescribeMergeConflicts.
1919
2477
  #
1920
2478
  # @option params [required, String] :repository_name
1921
2479
  # The name of the repository that contains the commits about which you
@@ -1923,24 +2481,24 @@ module Aws::CodeCommit
1923
2481
  #
1924
2482
  # @option params [required, String] :source_commit_specifier
1925
2483
  # The branch, tag, HEAD, or other fully qualified reference used to
1926
- # identify a commit. For example, a branch name or a full commit ID.
2484
+ # identify a commit (for example, a branch name or a full commit ID).
1927
2485
  #
1928
2486
  # @option params [required, String] :destination_commit_specifier
1929
2487
  # The branch, tag, HEAD, or other fully qualified reference used to
1930
- # identify a commit. For example, a branch name or a full commit ID.
2488
+ # identify a commit (for example, a branch name or a full commit ID).
1931
2489
  #
1932
2490
  # @option params [String] :conflict_detail_level
1933
2491
  # The level of conflict detail to use. If unspecified, the default
1934
- # FILE\_LEVEL is used, which will return a not mergeable result if the
1935
- # same file has differences in both branches. If LINE\_LEVEL is
1936
- # specified, a conflict will be considered not mergeable if the same
1937
- # file in both branches has differences on the same line.
2492
+ # FILE\_LEVEL is used, which returns a not-mergeable result if the same
2493
+ # file has differences in both branches. If LINE\_LEVEL is specified, a
2494
+ # conflict is considered not mergeable if the same file in both branches
2495
+ # has differences on the same line.
1938
2496
  #
1939
2497
  # @option params [String] :conflict_resolution_strategy
1940
2498
  # Specifies which branch to use when resolving conflicts, or whether to
1941
2499
  # attempt automatically merging two versions of a file. The default is
1942
2500
  # NONE, which requires any conflicts to be resolved manually before the
1943
- # merge operation will be successful.
2501
+ # merge operation is successful.
1944
2502
  #
1945
2503
  # @return [Types::GetMergeOptionsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1946
2504
  #
@@ -2013,6 +2571,17 @@ module Aws::CodeCommit
2013
2571
  # resp.pull_request.pull_request_targets[0].merge_metadata.merge_commit_id #=> String
2014
2572
  # resp.pull_request.pull_request_targets[0].merge_metadata.merge_option #=> String, one of "FAST_FORWARD_MERGE", "SQUASH_MERGE", "THREE_WAY_MERGE"
2015
2573
  # resp.pull_request.client_request_token #=> String
2574
+ # resp.pull_request.revision_id #=> String
2575
+ # resp.pull_request.approval_rules #=> Array
2576
+ # resp.pull_request.approval_rules[0].approval_rule_id #=> String
2577
+ # resp.pull_request.approval_rules[0].approval_rule_name #=> String
2578
+ # resp.pull_request.approval_rules[0].approval_rule_content #=> String
2579
+ # resp.pull_request.approval_rules[0].rule_content_sha_256 #=> String
2580
+ # resp.pull_request.approval_rules[0].last_modified_date #=> Time
2581
+ # resp.pull_request.approval_rules[0].creation_date #=> Time
2582
+ # resp.pull_request.approval_rules[0].last_modified_user #=> String
2583
+ # resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_id #=> String
2584
+ # resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_name #=> String
2016
2585
  #
2017
2586
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequest AWS API Documentation
2018
2587
  #
@@ -2023,14 +2592,89 @@ module Aws::CodeCommit
2023
2592
  req.send_request(options)
2024
2593
  end
2025
2594
 
2595
+ # Gets information about the approval states for a specified pull
2596
+ # request. Approval states only apply to pull requests that have one or
2597
+ # more approval rules applied to them.
2598
+ #
2599
+ # @option params [required, String] :pull_request_id
2600
+ # The system-generated ID for the pull request.
2601
+ #
2602
+ # @option params [required, String] :revision_id
2603
+ # The system-generated ID for the pull request revision.
2604
+ #
2605
+ # @return [Types::GetPullRequestApprovalStatesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2606
+ #
2607
+ # * {Types::GetPullRequestApprovalStatesOutput#approvals #approvals} => Array&lt;Types::Approval&gt;
2608
+ #
2609
+ # @example Request syntax with placeholder values
2610
+ #
2611
+ # resp = client.get_pull_request_approval_states({
2612
+ # pull_request_id: "PullRequestId", # required
2613
+ # revision_id: "RevisionId", # required
2614
+ # })
2615
+ #
2616
+ # @example Response structure
2617
+ #
2618
+ # resp.approvals #=> Array
2619
+ # resp.approvals[0].user_arn #=> String
2620
+ # resp.approvals[0].approval_state #=> String, one of "APPROVE", "REVOKE"
2621
+ #
2622
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequestApprovalStates AWS API Documentation
2623
+ #
2624
+ # @overload get_pull_request_approval_states(params = {})
2625
+ # @param [Hash] params ({})
2626
+ def get_pull_request_approval_states(params = {}, options = {})
2627
+ req = build_request(:get_pull_request_approval_states, params)
2628
+ req.send_request(options)
2629
+ end
2630
+
2631
+ # Returns information about whether approval rules have been set aside
2632
+ # (overridden) for a pull request, and if so, the Amazon Resource Name
2633
+ # (ARN) of the user or identity that overrode the rules and their
2634
+ # requirements for the pull request.
2635
+ #
2636
+ # @option params [required, String] :pull_request_id
2637
+ # The ID of the pull request for which you want to get information about
2638
+ # whether approval rules have been set aside (overridden).
2639
+ #
2640
+ # @option params [required, String] :revision_id
2641
+ # The system-generated ID of the revision for the pull request. To
2642
+ # retrieve the most recent revision ID, use GetPullRequest.
2643
+ #
2644
+ # @return [Types::GetPullRequestOverrideStateOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2645
+ #
2646
+ # * {Types::GetPullRequestOverrideStateOutput#overridden #overridden} => Boolean
2647
+ # * {Types::GetPullRequestOverrideStateOutput#overrider #overrider} => String
2648
+ #
2649
+ # @example Request syntax with placeholder values
2650
+ #
2651
+ # resp = client.get_pull_request_override_state({
2652
+ # pull_request_id: "PullRequestId", # required
2653
+ # revision_id: "RevisionId", # required
2654
+ # })
2655
+ #
2656
+ # @example Response structure
2657
+ #
2658
+ # resp.overridden #=> Boolean
2659
+ # resp.overrider #=> String
2660
+ #
2661
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequestOverrideState AWS API Documentation
2662
+ #
2663
+ # @overload get_pull_request_override_state(params = {})
2664
+ # @param [Hash] params ({})
2665
+ def get_pull_request_override_state(params = {}, options = {})
2666
+ req = build_request(:get_pull_request_override_state, params)
2667
+ req.send_request(options)
2668
+ end
2669
+
2026
2670
  # Returns information about a repository.
2027
2671
  #
2028
2672
  # <note markdown="1"> The description field for a repository accepts all HTML characters and
2029
2673
  # all valid Unicode characters. Applications that do not HTML-encode the
2030
- # description and display it in a web page could expose users to
2674
+ # description and display it in a webpage can expose users to
2031
2675
  # potentially malicious code. Make sure that you HTML-encode the
2032
2676
  # description field in any application that uses this API to display the
2033
- # repository description on a web page.
2677
+ # repository description on a webpage.
2034
2678
  #
2035
2679
  # </note>
2036
2680
  #
@@ -2106,6 +2750,92 @@ module Aws::CodeCommit
2106
2750
  req.send_request(options)
2107
2751
  end
2108
2752
 
2753
+ # Lists all approval rule templates in the specified AWS Region in your
2754
+ # AWS account. If an AWS Region is not specified, the AWS Region where
2755
+ # you are signed in is used.
2756
+ #
2757
+ # @option params [String] :next_token
2758
+ # An enumeration token that, when provided in a request, returns the
2759
+ # next batch of the results.
2760
+ #
2761
+ # @option params [Integer] :max_results
2762
+ # A non-zero, non-negative integer used to limit the number of returned
2763
+ # results.
2764
+ #
2765
+ # @return [Types::ListApprovalRuleTemplatesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2766
+ #
2767
+ # * {Types::ListApprovalRuleTemplatesOutput#approval_rule_template_names #approval_rule_template_names} => Array&lt;String&gt;
2768
+ # * {Types::ListApprovalRuleTemplatesOutput#next_token #next_token} => String
2769
+ #
2770
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2771
+ #
2772
+ # @example Request syntax with placeholder values
2773
+ #
2774
+ # resp = client.list_approval_rule_templates({
2775
+ # next_token: "NextToken",
2776
+ # max_results: 1,
2777
+ # })
2778
+ #
2779
+ # @example Response structure
2780
+ #
2781
+ # resp.approval_rule_template_names #=> Array
2782
+ # resp.approval_rule_template_names[0] #=> String
2783
+ # resp.next_token #=> String
2784
+ #
2785
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListApprovalRuleTemplates AWS API Documentation
2786
+ #
2787
+ # @overload list_approval_rule_templates(params = {})
2788
+ # @param [Hash] params ({})
2789
+ def list_approval_rule_templates(params = {}, options = {})
2790
+ req = build_request(:list_approval_rule_templates, params)
2791
+ req.send_request(options)
2792
+ end
2793
+
2794
+ # Lists all approval rule templates that are associated with a specified
2795
+ # repository.
2796
+ #
2797
+ # @option params [required, String] :repository_name
2798
+ # The name of the repository for which you want to list all associated
2799
+ # approval rule templates.
2800
+ #
2801
+ # @option params [String] :next_token
2802
+ # An enumeration token that, when provided in a request, returns the
2803
+ # next batch of the results.
2804
+ #
2805
+ # @option params [Integer] :max_results
2806
+ # A non-zero, non-negative integer used to limit the number of returned
2807
+ # results.
2808
+ #
2809
+ # @return [Types::ListAssociatedApprovalRuleTemplatesForRepositoryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2810
+ #
2811
+ # * {Types::ListAssociatedApprovalRuleTemplatesForRepositoryOutput#approval_rule_template_names #approval_rule_template_names} => Array&lt;String&gt;
2812
+ # * {Types::ListAssociatedApprovalRuleTemplatesForRepositoryOutput#next_token #next_token} => String
2813
+ #
2814
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2815
+ #
2816
+ # @example Request syntax with placeholder values
2817
+ #
2818
+ # resp = client.list_associated_approval_rule_templates_for_repository({
2819
+ # repository_name: "RepositoryName", # required
2820
+ # next_token: "NextToken",
2821
+ # max_results: 1,
2822
+ # })
2823
+ #
2824
+ # @example Response structure
2825
+ #
2826
+ # resp.approval_rule_template_names #=> Array
2827
+ # resp.approval_rule_template_names[0] #=> String
2828
+ # resp.next_token #=> String
2829
+ #
2830
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListAssociatedApprovalRuleTemplatesForRepository AWS API Documentation
2831
+ #
2832
+ # @overload list_associated_approval_rule_templates_for_repository(params = {})
2833
+ # @param [Hash] params ({})
2834
+ def list_associated_approval_rule_templates_for_repository(params = {}, options = {})
2835
+ req = build_request(:list_associated_approval_rule_templates_for_repository, params)
2836
+ req.send_request(options)
2837
+ end
2838
+
2109
2839
  # Gets information about one or more branches in a repository.
2110
2840
  #
2111
2841
  # @option params [required, String] :repository_name
@@ -2119,6 +2849,8 @@ module Aws::CodeCommit
2119
2849
  # * {Types::ListBranchesOutput#branches #branches} => Array&lt;String&gt;
2120
2850
  # * {Types::ListBranchesOutput#next_token #next_token} => String
2121
2851
  #
2852
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2853
+ #
2122
2854
  # @example Request syntax with placeholder values
2123
2855
  #
2124
2856
  # resp = client.list_branches({
@@ -2157,17 +2889,20 @@ module Aws::CodeCommit
2157
2889
  # results to the pull requests that match the specified status.
2158
2890
  #
2159
2891
  # @option params [String] :next_token
2160
- # An enumeration token that when provided in a request, returns the next
2161
- # batch of the results.
2892
+ # An enumeration token that, when provided in a request, returns the
2893
+ # next batch of the results.
2162
2894
  #
2163
2895
  # @option params [Integer] :max_results
2164
- # A non-negative integer used to limit the number of returned results.
2896
+ # A non-zero, non-negative integer used to limit the number of returned
2897
+ # results.
2165
2898
  #
2166
2899
  # @return [Types::ListPullRequestsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2167
2900
  #
2168
2901
  # * {Types::ListPullRequestsOutput#pull_request_ids #pull_request_ids} => Array&lt;String&gt;
2169
2902
  # * {Types::ListPullRequestsOutput#next_token #next_token} => String
2170
2903
  #
2904
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2905
+ #
2171
2906
  # @example Request syntax with placeholder values
2172
2907
  #
2173
2908
  # resp = client.list_pull_requests({
@@ -2214,6 +2949,8 @@ module Aws::CodeCommit
2214
2949
  # * {Types::ListRepositoriesOutput#repositories #repositories} => Array&lt;Types::RepositoryNameIdPair&gt;
2215
2950
  # * {Types::ListRepositoriesOutput#next_token #next_token} => String
2216
2951
  #
2952
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2953
+ #
2217
2954
  # @example Request syntax with placeholder values
2218
2955
  #
2219
2956
  # resp = client.list_repositories({
@@ -2238,10 +2975,55 @@ module Aws::CodeCommit
2238
2975
  req.send_request(options)
2239
2976
  end
2240
2977
 
2978
+ # Lists all repositories associated with the specified approval rule
2979
+ # template.
2980
+ #
2981
+ # @option params [required, String] :approval_rule_template_name
2982
+ # The name of the approval rule template for which you want to list
2983
+ # repositories that are associated with that template.
2984
+ #
2985
+ # @option params [String] :next_token
2986
+ # An enumeration token that, when provided in a request, returns the
2987
+ # next batch of the results.
2988
+ #
2989
+ # @option params [Integer] :max_results
2990
+ # A non-zero, non-negative integer used to limit the number of returned
2991
+ # results.
2992
+ #
2993
+ # @return [Types::ListRepositoriesForApprovalRuleTemplateOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2994
+ #
2995
+ # * {Types::ListRepositoriesForApprovalRuleTemplateOutput#repository_names #repository_names} => Array&lt;String&gt;
2996
+ # * {Types::ListRepositoriesForApprovalRuleTemplateOutput#next_token #next_token} => String
2997
+ #
2998
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2999
+ #
3000
+ # @example Request syntax with placeholder values
3001
+ #
3002
+ # resp = client.list_repositories_for_approval_rule_template({
3003
+ # approval_rule_template_name: "ApprovalRuleTemplateName", # required
3004
+ # next_token: "NextToken",
3005
+ # max_results: 1,
3006
+ # })
3007
+ #
3008
+ # @example Response structure
3009
+ #
3010
+ # resp.repository_names #=> Array
3011
+ # resp.repository_names[0] #=> String
3012
+ # resp.next_token #=> String
3013
+ #
3014
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListRepositoriesForApprovalRuleTemplate AWS API Documentation
3015
+ #
3016
+ # @overload list_repositories_for_approval_rule_template(params = {})
3017
+ # @param [Hash] params ({})
3018
+ def list_repositories_for_approval_rule_template(params = {}, options = {})
3019
+ req = build_request(:list_repositories_for_approval_rule_template, params)
3020
+ req.send_request(options)
3021
+ end
3022
+
2241
3023
  # Gets information about AWS tags for a specified Amazon Resource Name
2242
3024
  # (ARN) in AWS CodeCommit. For a list of valid resources in AWS
2243
- # CodeCommit, see [CodeCommit Resources and Operations][1] in the AWS
2244
- # CodeCommit User Guide.
3025
+ # CodeCommit, see [CodeCommit Resources and Operations][1] in the<i> AWS
3026
+ # CodeCommit User Guide</i>.
2245
3027
  #
2246
3028
  #
2247
3029
  #
@@ -2252,8 +3034,8 @@ module Aws::CodeCommit
2252
3034
  # get information about tags, if any.
2253
3035
  #
2254
3036
  # @option params [String] :next_token
2255
- # An enumeration token that when provided in a request, returns the next
2256
- # batch of the results.
3037
+ # An enumeration token that, when provided in a request, returns the
3038
+ # next batch of the results.
2257
3039
  #
2258
3040
  # @return [Types::ListTagsForResourceOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2259
3041
  #
@@ -2289,14 +3071,14 @@ module Aws::CodeCommit
2289
3071
  #
2290
3072
  # @option params [required, String] :source_commit_specifier
2291
3073
  # The branch, tag, HEAD, or other fully qualified reference used to
2292
- # identify a commit. For example, a branch name or a full commit ID.
3074
+ # identify a commit (for example, a branch name or a full commit ID).
2293
3075
  #
2294
3076
  # @option params [required, String] :destination_commit_specifier
2295
3077
  # The branch, tag, HEAD, or other fully qualified reference used to
2296
- # identify a commit. For example, a branch name or a full commit ID.
3078
+ # identify a commit (for example, a branch name or a full commit ID).
2297
3079
  #
2298
3080
  # @option params [String] :target_branch
2299
- # The branch where the merge will be applied.
3081
+ # The branch where the merge is applied.
2300
3082
  #
2301
3083
  # @return [Types::MergeBranchesByFastForwardOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2302
3084
  #
@@ -2333,35 +3115,35 @@ module Aws::CodeCommit
2333
3115
  #
2334
3116
  # @option params [required, String] :source_commit_specifier
2335
3117
  # The branch, tag, HEAD, or other fully qualified reference used to
2336
- # identify a commit. For example, a branch name or a full commit ID.
3118
+ # identify a commit (for example, a branch name or a full commit ID).
2337
3119
  #
2338
3120
  # @option params [required, String] :destination_commit_specifier
2339
3121
  # The branch, tag, HEAD, or other fully qualified reference used to
2340
- # identify a commit. For example, a branch name or a full commit ID.
3122
+ # identify a commit (for example, a branch name or a full commit ID).
2341
3123
  #
2342
3124
  # @option params [String] :target_branch
2343
- # The branch where the merge will be applied.
3125
+ # The branch where the merge is applied.
2344
3126
  #
2345
3127
  # @option params [String] :conflict_detail_level
2346
3128
  # The level of conflict detail to use. If unspecified, the default
2347
- # FILE\_LEVEL is used, which will return a not mergeable result if the
2348
- # same file has differences in both branches. If LINE\_LEVEL is
2349
- # specified, a conflict will be considered not mergeable if the same
2350
- # file in both branches has differences on the same line.
3129
+ # FILE\_LEVEL is used, which returns a not-mergeable result if the same
3130
+ # file has differences in both branches. If LINE\_LEVEL is specified, a
3131
+ # conflict is considered not mergeable if the same file in both branches
3132
+ # has differences on the same line.
2351
3133
  #
2352
3134
  # @option params [String] :conflict_resolution_strategy
2353
3135
  # Specifies which branch to use when resolving conflicts, or whether to
2354
3136
  # attempt automatically merging two versions of a file. The default is
2355
3137
  # NONE, which requires any conflicts to be resolved manually before the
2356
- # merge operation will be successful.
3138
+ # merge operation is successful.
2357
3139
  #
2358
3140
  # @option params [String] :author_name
2359
- # The name of the author who created the commit. This information will
2360
- # be used as both the author and committer for the commit.
3141
+ # The name of the author who created the commit. This information is
3142
+ # used as both the author and committer for the commit.
2361
3143
  #
2362
3144
  # @option params [String] :email
2363
3145
  # The email address of the person merging the branches. This information
2364
- # will be used in the commit information for the merge.
3146
+ # is used in the commit information for the merge.
2365
3147
  #
2366
3148
  # @option params [String] :commit_message
2367
3149
  # The commit message for the merge.
@@ -2369,12 +3151,12 @@ module Aws::CodeCommit
2369
3151
  # @option params [Boolean] :keep_empty_folders
2370
3152
  # If the commit contains deletions, whether to keep a folder or folder
2371
3153
  # structure if the changes leave the folders empty. If this is specified
2372
- # as true, a .gitkeep file will be created for empty folders. The
2373
- # default is false.
3154
+ # as true, a .gitkeep file is created for empty folders. The default is
3155
+ # false.
2374
3156
  #
2375
3157
  # @option params [Types::ConflictResolution] :conflict_resolution
2376
- # A list of inputs to use when resolving conflicts during a merge if
2377
- # AUTOMERGE is chosen as the conflict resolution strategy.
3158
+ # If AUTOMERGE is the conflict resolution strategy, a list of inputs to
3159
+ # use when resolving conflicts during a merge.
2378
3160
  #
2379
3161
  # @return [Types::MergeBranchesBySquashOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2380
3162
  #
@@ -2438,48 +3220,47 @@ module Aws::CodeCommit
2438
3220
  #
2439
3221
  # @option params [required, String] :source_commit_specifier
2440
3222
  # The branch, tag, HEAD, or other fully qualified reference used to
2441
- # identify a commit. For example, a branch name or a full commit ID.
3223
+ # identify a commit (for example, a branch name or a full commit ID).
2442
3224
  #
2443
3225
  # @option params [required, String] :destination_commit_specifier
2444
3226
  # The branch, tag, HEAD, or other fully qualified reference used to
2445
- # identify a commit. For example, a branch name or a full commit ID.
3227
+ # identify a commit (for example, a branch name or a full commit ID).
2446
3228
  #
2447
3229
  # @option params [String] :target_branch
2448
- # The branch where the merge will be applied.
3230
+ # The branch where the merge is applied.
2449
3231
  #
2450
3232
  # @option params [String] :conflict_detail_level
2451
3233
  # The level of conflict detail to use. If unspecified, the default
2452
- # FILE\_LEVEL is used, which will return a not mergeable result if the
2453
- # same file has differences in both branches. If LINE\_LEVEL is
2454
- # specified, a conflict will be considered not mergeable if the same
2455
- # file in both branches has differences on the same line.
3234
+ # FILE\_LEVEL is used, which returns a not-mergeable result if the same
3235
+ # file has differences in both branches. If LINE\_LEVEL is specified, a
3236
+ # conflict is considered not mergeable if the same file in both branches
3237
+ # has differences on the same line.
2456
3238
  #
2457
3239
  # @option params [String] :conflict_resolution_strategy
2458
3240
  # Specifies which branch to use when resolving conflicts, or whether to
2459
3241
  # attempt automatically merging two versions of a file. The default is
2460
3242
  # NONE, which requires any conflicts to be resolved manually before the
2461
- # merge operation will be successful.
3243
+ # merge operation is successful.
2462
3244
  #
2463
3245
  # @option params [String] :author_name
2464
- # The name of the author who created the commit. This information will
2465
- # be used as both the author and committer for the commit.
3246
+ # The name of the author who created the commit. This information is
3247
+ # used as both the author and committer for the commit.
2466
3248
  #
2467
3249
  # @option params [String] :email
2468
3250
  # The email address of the person merging the branches. This information
2469
- # will be used in the commit information for the merge.
3251
+ # is used in the commit information for the merge.
2470
3252
  #
2471
3253
  # @option params [String] :commit_message
2472
3254
  # The commit message to include in the commit information for the merge.
2473
3255
  #
2474
3256
  # @option params [Boolean] :keep_empty_folders
2475
3257
  # If the commit contains deletions, whether to keep a folder or folder
2476
- # structure if the changes leave the folders empty. If this is specified
2477
- # as true, a .gitkeep file will be created for empty folders. The
2478
- # default is false.
3258
+ # structure if the changes leave the folders empty. If true, a .gitkeep
3259
+ # file is created for empty folders. The default is false.
2479
3260
  #
2480
3261
  # @option params [Types::ConflictResolution] :conflict_resolution
2481
- # A list of inputs to use when resolving conflicts during a merge if
2482
- # AUTOMERGE is chosen as the conflict resolution strategy.
3262
+ # If AUTOMERGE is the conflict resolution strategy, a list of inputs to
3263
+ # use when resolving conflicts during a merge.
2483
3264
  #
2484
3265
  # @return [Types::MergeBranchesByThreeWayOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2485
3266
  #
@@ -2587,6 +3368,17 @@ module Aws::CodeCommit
2587
3368
  # resp.pull_request.pull_request_targets[0].merge_metadata.merge_commit_id #=> String
2588
3369
  # resp.pull_request.pull_request_targets[0].merge_metadata.merge_option #=> String, one of "FAST_FORWARD_MERGE", "SQUASH_MERGE", "THREE_WAY_MERGE"
2589
3370
  # resp.pull_request.client_request_token #=> String
3371
+ # resp.pull_request.revision_id #=> String
3372
+ # resp.pull_request.approval_rules #=> Array
3373
+ # resp.pull_request.approval_rules[0].approval_rule_id #=> String
3374
+ # resp.pull_request.approval_rules[0].approval_rule_name #=> String
3375
+ # resp.pull_request.approval_rules[0].approval_rule_content #=> String
3376
+ # resp.pull_request.approval_rules[0].rule_content_sha_256 #=> String
3377
+ # resp.pull_request.approval_rules[0].last_modified_date #=> Time
3378
+ # resp.pull_request.approval_rules[0].creation_date #=> Time
3379
+ # resp.pull_request.approval_rules[0].last_modified_user #=> String
3380
+ # resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_id #=> String
3381
+ # resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_name #=> String
2590
3382
  #
2591
3383
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestByFastForward AWS API Documentation
2592
3384
  #
@@ -2617,37 +3409,36 @@ module Aws::CodeCommit
2617
3409
  #
2618
3410
  # @option params [String] :conflict_detail_level
2619
3411
  # The level of conflict detail to use. If unspecified, the default
2620
- # FILE\_LEVEL is used, which will return a not mergeable result if the
2621
- # same file has differences in both branches. If LINE\_LEVEL is
2622
- # specified, a conflict will be considered not mergeable if the same
2623
- # file in both branches has differences on the same line.
3412
+ # FILE\_LEVEL is used, which returns a not-mergeable result if the same
3413
+ # file has differences in both branches. If LINE\_LEVEL is specified, a
3414
+ # conflict is considered not mergeable if the same file in both branches
3415
+ # has differences on the same line.
2624
3416
  #
2625
3417
  # @option params [String] :conflict_resolution_strategy
2626
3418
  # Specifies which branch to use when resolving conflicts, or whether to
2627
3419
  # attempt automatically merging two versions of a file. The default is
2628
3420
  # NONE, which requires any conflicts to be resolved manually before the
2629
- # merge operation will be successful.
3421
+ # merge operation is successful.
2630
3422
  #
2631
3423
  # @option params [String] :commit_message
2632
3424
  # The commit message to include in the commit information for the merge.
2633
3425
  #
2634
3426
  # @option params [String] :author_name
2635
- # The name of the author who created the commit. This information will
2636
- # be used as both the author and committer for the commit.
3427
+ # The name of the author who created the commit. This information is
3428
+ # used as both the author and committer for the commit.
2637
3429
  #
2638
3430
  # @option params [String] :email
2639
3431
  # The email address of the person merging the branches. This information
2640
- # will be used in the commit information for the merge.
3432
+ # is used in the commit information for the merge.
2641
3433
  #
2642
3434
  # @option params [Boolean] :keep_empty_folders
2643
3435
  # If the commit contains deletions, whether to keep a folder or folder
2644
- # structure if the changes leave the folders empty. If this is specified
2645
- # as true, a .gitkeep file will be created for empty folders. The
2646
- # default is false.
3436
+ # structure if the changes leave the folders empty. If true, a .gitkeep
3437
+ # file is created for empty folders. The default is false.
2647
3438
  #
2648
3439
  # @option params [Types::ConflictResolution] :conflict_resolution
2649
- # A list of inputs to use when resolving conflicts during a merge if
2650
- # AUTOMERGE is chosen as the conflict resolution strategy.
3440
+ # If AUTOMERGE is the conflict resolution strategy, a list of inputs to
3441
+ # use when resolving conflicts during a merge.
2651
3442
  #
2652
3443
  # @return [Types::MergePullRequestBySquashOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2653
3444
  #
@@ -2709,6 +3500,17 @@ module Aws::CodeCommit
2709
3500
  # resp.pull_request.pull_request_targets[0].merge_metadata.merge_commit_id #=> String
2710
3501
  # resp.pull_request.pull_request_targets[0].merge_metadata.merge_option #=> String, one of "FAST_FORWARD_MERGE", "SQUASH_MERGE", "THREE_WAY_MERGE"
2711
3502
  # resp.pull_request.client_request_token #=> String
3503
+ # resp.pull_request.revision_id #=> String
3504
+ # resp.pull_request.approval_rules #=> Array
3505
+ # resp.pull_request.approval_rules[0].approval_rule_id #=> String
3506
+ # resp.pull_request.approval_rules[0].approval_rule_name #=> String
3507
+ # resp.pull_request.approval_rules[0].approval_rule_content #=> String
3508
+ # resp.pull_request.approval_rules[0].rule_content_sha_256 #=> String
3509
+ # resp.pull_request.approval_rules[0].last_modified_date #=> Time
3510
+ # resp.pull_request.approval_rules[0].creation_date #=> Time
3511
+ # resp.pull_request.approval_rules[0].last_modified_user #=> String
3512
+ # resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_id #=> String
3513
+ # resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_name #=> String
2712
3514
  #
2713
3515
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestBySquash AWS API Documentation
2714
3516
  #
@@ -2739,37 +3541,36 @@ module Aws::CodeCommit
2739
3541
  #
2740
3542
  # @option params [String] :conflict_detail_level
2741
3543
  # The level of conflict detail to use. If unspecified, the default
2742
- # FILE\_LEVEL is used, which will return a not mergeable result if the
2743
- # same file has differences in both branches. If LINE\_LEVEL is
2744
- # specified, a conflict will be considered not mergeable if the same
2745
- # file in both branches has differences on the same line.
3544
+ # FILE\_LEVEL is used, which returns a not-mergeable result if the same
3545
+ # file has differences in both branches. If LINE\_LEVEL is specified, a
3546
+ # conflict is considered not mergeable if the same file in both branches
3547
+ # has differences on the same line.
2746
3548
  #
2747
3549
  # @option params [String] :conflict_resolution_strategy
2748
3550
  # Specifies which branch to use when resolving conflicts, or whether to
2749
3551
  # attempt automatically merging two versions of a file. The default is
2750
3552
  # NONE, which requires any conflicts to be resolved manually before the
2751
- # merge operation will be successful.
3553
+ # merge operation is successful.
2752
3554
  #
2753
3555
  # @option params [String] :commit_message
2754
3556
  # The commit message to include in the commit information for the merge.
2755
3557
  #
2756
3558
  # @option params [String] :author_name
2757
- # The name of the author who created the commit. This information will
2758
- # be used as both the author and committer for the commit.
3559
+ # The name of the author who created the commit. This information is
3560
+ # used as both the author and committer for the commit.
2759
3561
  #
2760
3562
  # @option params [String] :email
2761
3563
  # The email address of the person merging the branches. This information
2762
- # will be used in the commit information for the merge.
3564
+ # is used in the commit information for the merge.
2763
3565
  #
2764
3566
  # @option params [Boolean] :keep_empty_folders
2765
3567
  # If the commit contains deletions, whether to keep a folder or folder
2766
- # structure if the changes leave the folders empty. If this is specified
2767
- # as true, a .gitkeep file will be created for empty folders. The
2768
- # default is false.
3568
+ # structure if the changes leave the folders empty. If true, a .gitkeep
3569
+ # file is created for empty folders. The default is false.
2769
3570
  #
2770
3571
  # @option params [Types::ConflictResolution] :conflict_resolution
2771
- # A list of inputs to use when resolving conflicts during a merge if
2772
- # AUTOMERGE is chosen as the conflict resolution strategy.
3572
+ # If AUTOMERGE is the conflict resolution strategy, a list of inputs to
3573
+ # use when resolving conflicts during a merge.
2773
3574
  #
2774
3575
  # @return [Types::MergePullRequestByThreeWayOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2775
3576
  #
@@ -2831,6 +3632,17 @@ module Aws::CodeCommit
2831
3632
  # resp.pull_request.pull_request_targets[0].merge_metadata.merge_commit_id #=> String
2832
3633
  # resp.pull_request.pull_request_targets[0].merge_metadata.merge_option #=> String, one of "FAST_FORWARD_MERGE", "SQUASH_MERGE", "THREE_WAY_MERGE"
2833
3634
  # resp.pull_request.client_request_token #=> String
3635
+ # resp.pull_request.revision_id #=> String
3636
+ # resp.pull_request.approval_rules #=> Array
3637
+ # resp.pull_request.approval_rules[0].approval_rule_id #=> String
3638
+ # resp.pull_request.approval_rules[0].approval_rule_name #=> String
3639
+ # resp.pull_request.approval_rules[0].approval_rule_content #=> String
3640
+ # resp.pull_request.approval_rules[0].rule_content_sha_256 #=> String
3641
+ # resp.pull_request.approval_rules[0].last_modified_date #=> Time
3642
+ # resp.pull_request.approval_rules[0].creation_date #=> Time
3643
+ # resp.pull_request.approval_rules[0].last_modified_user #=> String
3644
+ # resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_id #=> String
3645
+ # resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_name #=> String
2834
3646
  #
2835
3647
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestByThreeWay AWS API Documentation
2836
3648
  #
@@ -2841,6 +3653,44 @@ module Aws::CodeCommit
2841
3653
  req.send_request(options)
2842
3654
  end
2843
3655
 
3656
+ # Sets aside (overrides) all approval rule requirements for a specified
3657
+ # pull request.
3658
+ #
3659
+ # @option params [required, String] :pull_request_id
3660
+ # The system-generated ID of the pull request for which you want to
3661
+ # override all approval rule requirements. To get this information, use
3662
+ # GetPullRequest.
3663
+ #
3664
+ # @option params [required, String] :revision_id
3665
+ # The system-generated ID of the most recent revision of the pull
3666
+ # request. You cannot override approval rules for anything but the most
3667
+ # recent revision of a pull request. To get the revision ID, use
3668
+ # GetPullRequest.
3669
+ #
3670
+ # @option params [required, String] :override_status
3671
+ # Whether you want to set aside approval rule requirements for the pull
3672
+ # request (OVERRIDE) or revoke a previous override and apply approval
3673
+ # rule requirements (REVOKE). REVOKE status is not stored.
3674
+ #
3675
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3676
+ #
3677
+ # @example Request syntax with placeholder values
3678
+ #
3679
+ # resp = client.override_pull_request_approval_rules({
3680
+ # pull_request_id: "PullRequestId", # required
3681
+ # revision_id: "RevisionId", # required
3682
+ # override_status: "OVERRIDE", # required, accepts OVERRIDE, REVOKE
3683
+ # })
3684
+ #
3685
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/OverridePullRequestApprovalRules AWS API Documentation
3686
+ #
3687
+ # @overload override_pull_request_approval_rules(params = {})
3688
+ # @param [Hash] params ({})
3689
+ def override_pull_request_approval_rules(params = {}, options = {})
3690
+ req = build_request(:override_pull_request_approval_rules, params)
3691
+ req.send_request(options)
3692
+ end
3693
+
2844
3694
  # Posts a comment on the comparison between two commits.
2845
3695
  #
2846
3696
  # @option params [required, String] :repository_name
@@ -2849,16 +3699,12 @@ module Aws::CodeCommit
2849
3699
  #
2850
3700
  # @option params [String] :before_commit_id
2851
3701
  # To establish the directionality of the comparison, the full commit ID
2852
- # of the 'before' commit.
2853
- #
2854
- # <note markdown="1"> This is required for commenting on any commit unless that commit is
2855
- # the initial commit.
2856
- #
2857
- # </note>
3702
+ # of the before commit. Required for commenting on any commit unless
3703
+ # that commit is the initial commit.
2858
3704
  #
2859
3705
  # @option params [required, String] :after_commit_id
2860
3706
  # To establish the directionality of the comparison, the full commit ID
2861
- # of the 'after' commit.
3707
+ # of the after commit.
2862
3708
  #
2863
3709
  # @option params [Types::Location] :location
2864
3710
  # The location of the comparison where you want to comment.
@@ -2867,11 +3713,11 @@ module Aws::CodeCommit
2867
3713
  # The content of the comment you want to make.
2868
3714
  #
2869
3715
  # @option params [String] :client_request_token
2870
- # A unique, client-generated idempotency token that when provided in a
3716
+ # A unique, client-generated idempotency token that, when provided in a
2871
3717
  # request, ensures the request cannot be repeated with a changed
2872
3718
  # parameter. If a request is received with the same parameters and a
2873
- # token is included, the request will return information about the
2874
- # initial request that used that token.
3719
+ # token is included, the request returns information about the initial
3720
+ # request that used that token.
2875
3721
  #
2876
3722
  # **A suitable default value is auto-generated.** You should normally
2877
3723
  # not need to pass this option.**
@@ -2950,19 +3796,19 @@ module Aws::CodeCommit
2950
3796
  #
2951
3797
  # @option params [Types::Location] :location
2952
3798
  # The location of the change where you want to post your comment. If no
2953
- # location is provided, the comment will be posted as a general comment
2954
- # on the pull request difference between the before commit ID and the
2955
- # after commit ID.
3799
+ # location is provided, the comment is posted as a general comment on
3800
+ # the pull request difference between the before commit ID and the after
3801
+ # commit ID.
2956
3802
  #
2957
3803
  # @option params [required, String] :content
2958
3804
  # The content of your comment on the change.
2959
3805
  #
2960
3806
  # @option params [String] :client_request_token
2961
- # A unique, client-generated idempotency token that when provided in a
3807
+ # A unique, client-generated idempotency token that, when provided in a
2962
3808
  # request, ensures the request cannot be repeated with a changed
2963
3809
  # parameter. If a request is received with the same parameters and a
2964
- # token is included, the request will return information about the
2965
- # initial request that used that token.
3810
+ # token is included, the request returns information about the initial
3811
+ # request that used that token.
2966
3812
  #
2967
3813
  # **A suitable default value is auto-generated.** You should normally
2968
3814
  # not need to pass this option.**
@@ -3032,11 +3878,11 @@ module Aws::CodeCommit
3032
3878
  # GetCommentsForPullRequest.
3033
3879
  #
3034
3880
  # @option params [String] :client_request_token
3035
- # A unique, client-generated idempotency token that when provided in a
3881
+ # A unique, client-generated idempotency token that, when provided in a
3036
3882
  # request, ensures the request cannot be repeated with a changed
3037
3883
  # parameter. If a request is received with the same parameters and a
3038
- # token is included, the request will return information about the
3039
- # initial request that used that token.
3884
+ # token is included, the request returns information about the initial
3885
+ # request that used that token.
3040
3886
  #
3041
3887
  # **A suitable default value is auto-generated.** You should normally
3042
3888
  # not need to pass this option.**
@@ -3084,7 +3930,7 @@ module Aws::CodeCommit
3084
3930
  #
3085
3931
  # @option params [required, String] :branch_name
3086
3932
  # The name of the branch where you want to add or update the file. If
3087
- # this is an empty repository, this branch will be created.
3933
+ # this is an empty repository, this branch is created.
3088
3934
  #
3089
3935
  # @option params [required, String, IO] :file_content
3090
3936
  # The content of the file, in binary object format.
@@ -3093,14 +3939,14 @@ module Aws::CodeCommit
3093
3939
  # The name of the file you want to add or update, including the relative
3094
3940
  # path to the file in the repository.
3095
3941
  #
3096
- # <note markdown="1"> If the path does not currently exist in the repository, the path will
3097
- # be created as part of adding the file.
3942
+ # <note markdown="1"> If the path does not currently exist in the repository, the path is
3943
+ # created as part of adding the file.
3098
3944
  #
3099
3945
  # </note>
3100
3946
  #
3101
3947
  # @option params [String] :file_mode
3102
3948
  # The file mode permissions of the blob. Valid file mode permissions are
3103
- # listed below.
3949
+ # listed here.
3104
3950
  #
3105
3951
  # @option params [String] :parent_commit_id
3106
3952
  # The full commit ID of the head commit in the branch where you want to
@@ -3109,18 +3955,18 @@ module Aws::CodeCommit
3109
3955
  # required.
3110
3956
  #
3111
3957
  # The commit ID must match the ID of the head commit at the time of the
3112
- # operation, or an error will occur, and the file will not be added or
3958
+ # operation. Otherwise, an error occurs, and the file is not added or
3113
3959
  # updated.
3114
3960
  #
3115
3961
  # @option params [String] :commit_message
3116
- # A message about why this file was added or updated. While optional,
3117
- # adding a message is strongly encouraged in order to provide a more
3118
- # useful commit history for your repository.
3962
+ # A message about why this file was added or updated. Although it is
3963
+ # optional, a message makes the commit history for your repository more
3964
+ # useful.
3119
3965
  #
3120
3966
  # @option params [String] :name
3121
- # The name of the person adding or updating the file. While optional,
3122
- # adding a name is strongly encouraged in order to provide a more useful
3123
- # commit history for your repository.
3967
+ # The name of the person adding or updating the file. Although it is
3968
+ # optional, a name makes the commit history for your repository more
3969
+ # useful.
3124
3970
  #
3125
3971
  # @option params [String] :email
3126
3972
  # An email address for the person adding or updating the file.
@@ -3160,8 +4006,8 @@ module Aws::CodeCommit
3160
4006
  req.send_request(options)
3161
4007
  end
3162
4008
 
3163
- # Replaces all triggers for a repository. This can be used to create or
3164
- # delete triggers.
4009
+ # Replaces all triggers for a repository. Used to create or delete
4010
+ # triggers.
3165
4011
  #
3166
4012
  # @option params [required, String] :repository_name
3167
4013
  # The name of the repository where you want to create or update the
@@ -3204,7 +4050,7 @@ module Aws::CodeCommit
3204
4050
 
3205
4051
  # Adds or updates tags for a resource in AWS CodeCommit. For a list of
3206
4052
  # valid resources in AWS CodeCommit, see [CodeCommit Resources and
3207
- # Operations][1] in the AWS CodeCommit User Guide.
4053
+ # Operations][1] in the *AWS CodeCommit User Guide*.
3208
4054
  #
3209
4055
  #
3210
4056
  #
@@ -3239,8 +4085,8 @@ module Aws::CodeCommit
3239
4085
 
3240
4086
  # Tests the functionality of repository triggers by sending information
3241
4087
  # to the trigger target. If real data is available in the repository,
3242
- # the test will send data from the last commit. If no data is available,
3243
- # sample data will be generated.
4088
+ # the test sends data from the last commit. If no data is available,
4089
+ # sample data is generated.
3244
4090
  #
3245
4091
  # @option params [required, String] :repository_name
3246
4092
  # The name of the repository in which to test the triggers.
@@ -3287,7 +4133,7 @@ module Aws::CodeCommit
3287
4133
 
3288
4134
  # Removes tags for a resource in AWS CodeCommit. For a list of valid
3289
4135
  # resources in AWS CodeCommit, see [CodeCommit Resources and
3290
- # Operations][1] in the AWS CodeCommit User Guide.
4136
+ # Operations][1] in the *AWS CodeCommit User Guide*.
3291
4137
  #
3292
4138
  #
3293
4139
  #
@@ -3318,6 +4164,132 @@ module Aws::CodeCommit
3318
4164
  req.send_request(options)
3319
4165
  end
3320
4166
 
4167
+ # Updates the content of an approval rule template. You can change the
4168
+ # number of required approvals, the membership of the approval rule, and
4169
+ # whether an approval pool is defined.
4170
+ #
4171
+ # @option params [required, String] :approval_rule_template_name
4172
+ # The name of the approval rule template where you want to update the
4173
+ # content of the rule.
4174
+ #
4175
+ # @option params [required, String] :new_rule_content
4176
+ # The content that replaces the existing content of the rule. Content
4177
+ # statements must be complete. You cannot provide only the changes.
4178
+ #
4179
+ # @option params [String] :existing_rule_content_sha_256
4180
+ # The SHA-256 hash signature for the content of the approval rule. You
4181
+ # can retrieve this information by using GetPullRequest.
4182
+ #
4183
+ # @return [Types::UpdateApprovalRuleTemplateContentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4184
+ #
4185
+ # * {Types::UpdateApprovalRuleTemplateContentOutput#approval_rule_template #approval_rule_template} => Types::ApprovalRuleTemplate
4186
+ #
4187
+ # @example Request syntax with placeholder values
4188
+ #
4189
+ # resp = client.update_approval_rule_template_content({
4190
+ # approval_rule_template_name: "ApprovalRuleTemplateName", # required
4191
+ # new_rule_content: "ApprovalRuleTemplateContent", # required
4192
+ # existing_rule_content_sha_256: "RuleContentSha256",
4193
+ # })
4194
+ #
4195
+ # @example Response structure
4196
+ #
4197
+ # resp.approval_rule_template.approval_rule_template_id #=> String
4198
+ # resp.approval_rule_template.approval_rule_template_name #=> String
4199
+ # resp.approval_rule_template.approval_rule_template_description #=> String
4200
+ # resp.approval_rule_template.approval_rule_template_content #=> String
4201
+ # resp.approval_rule_template.rule_content_sha_256 #=> String
4202
+ # resp.approval_rule_template.last_modified_date #=> Time
4203
+ # resp.approval_rule_template.creation_date #=> Time
4204
+ # resp.approval_rule_template.last_modified_user #=> String
4205
+ #
4206
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateApprovalRuleTemplateContent AWS API Documentation
4207
+ #
4208
+ # @overload update_approval_rule_template_content(params = {})
4209
+ # @param [Hash] params ({})
4210
+ def update_approval_rule_template_content(params = {}, options = {})
4211
+ req = build_request(:update_approval_rule_template_content, params)
4212
+ req.send_request(options)
4213
+ end
4214
+
4215
+ # Updates the description for a specified approval rule template.
4216
+ #
4217
+ # @option params [required, String] :approval_rule_template_name
4218
+ # The name of the template for which you want to update the description.
4219
+ #
4220
+ # @option params [required, String] :approval_rule_template_description
4221
+ # The updated description of the approval rule template.
4222
+ #
4223
+ # @return [Types::UpdateApprovalRuleTemplateDescriptionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4224
+ #
4225
+ # * {Types::UpdateApprovalRuleTemplateDescriptionOutput#approval_rule_template #approval_rule_template} => Types::ApprovalRuleTemplate
4226
+ #
4227
+ # @example Request syntax with placeholder values
4228
+ #
4229
+ # resp = client.update_approval_rule_template_description({
4230
+ # approval_rule_template_name: "ApprovalRuleTemplateName", # required
4231
+ # approval_rule_template_description: "ApprovalRuleTemplateDescription", # required
4232
+ # })
4233
+ #
4234
+ # @example Response structure
4235
+ #
4236
+ # resp.approval_rule_template.approval_rule_template_id #=> String
4237
+ # resp.approval_rule_template.approval_rule_template_name #=> String
4238
+ # resp.approval_rule_template.approval_rule_template_description #=> String
4239
+ # resp.approval_rule_template.approval_rule_template_content #=> String
4240
+ # resp.approval_rule_template.rule_content_sha_256 #=> String
4241
+ # resp.approval_rule_template.last_modified_date #=> Time
4242
+ # resp.approval_rule_template.creation_date #=> Time
4243
+ # resp.approval_rule_template.last_modified_user #=> String
4244
+ #
4245
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateApprovalRuleTemplateDescription AWS API Documentation
4246
+ #
4247
+ # @overload update_approval_rule_template_description(params = {})
4248
+ # @param [Hash] params ({})
4249
+ def update_approval_rule_template_description(params = {}, options = {})
4250
+ req = build_request(:update_approval_rule_template_description, params)
4251
+ req.send_request(options)
4252
+ end
4253
+
4254
+ # Updates the name of a specified approval rule template.
4255
+ #
4256
+ # @option params [required, String] :old_approval_rule_template_name
4257
+ # The current name of the approval rule template.
4258
+ #
4259
+ # @option params [required, String] :new_approval_rule_template_name
4260
+ # The new name you want to apply to the approval rule template.
4261
+ #
4262
+ # @return [Types::UpdateApprovalRuleTemplateNameOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4263
+ #
4264
+ # * {Types::UpdateApprovalRuleTemplateNameOutput#approval_rule_template #approval_rule_template} => Types::ApprovalRuleTemplate
4265
+ #
4266
+ # @example Request syntax with placeholder values
4267
+ #
4268
+ # resp = client.update_approval_rule_template_name({
4269
+ # old_approval_rule_template_name: "ApprovalRuleTemplateName", # required
4270
+ # new_approval_rule_template_name: "ApprovalRuleTemplateName", # required
4271
+ # })
4272
+ #
4273
+ # @example Response structure
4274
+ #
4275
+ # resp.approval_rule_template.approval_rule_template_id #=> String
4276
+ # resp.approval_rule_template.approval_rule_template_name #=> String
4277
+ # resp.approval_rule_template.approval_rule_template_description #=> String
4278
+ # resp.approval_rule_template.approval_rule_template_content #=> String
4279
+ # resp.approval_rule_template.rule_content_sha_256 #=> String
4280
+ # resp.approval_rule_template.last_modified_date #=> Time
4281
+ # resp.approval_rule_template.creation_date #=> Time
4282
+ # resp.approval_rule_template.last_modified_user #=> String
4283
+ #
4284
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateApprovalRuleTemplateName AWS API Documentation
4285
+ #
4286
+ # @overload update_approval_rule_template_name(params = {})
4287
+ # @param [Hash] params ({})
4288
+ def update_approval_rule_template_name(params = {}, options = {})
4289
+ req = build_request(:update_approval_rule_template_name, params)
4290
+ req.send_request(options)
4291
+ end
4292
+
3321
4293
  # Replaces the contents of a comment.
3322
4294
  #
3323
4295
  # @option params [required, String] :comment_id
@@ -3325,8 +4297,7 @@ module Aws::CodeCommit
3325
4297
  # ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
3326
4298
  #
3327
4299
  # @option params [required, String] :content
3328
- # The updated content with which you want to replace the existing
3329
- # content of the comment.
4300
+ # The updated content to replace the existing content of the comment.
3330
4301
  #
3331
4302
  # @return [Types::UpdateCommentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3332
4303
  #
@@ -3391,6 +4362,123 @@ module Aws::CodeCommit
3391
4362
  req.send_request(options)
3392
4363
  end
3393
4364
 
4365
+ # Updates the structure of an approval rule created specifically for a
4366
+ # pull request. For example, you can change the number of required
4367
+ # approvers and the approval pool for approvers.
4368
+ #
4369
+ # @option params [required, String] :pull_request_id
4370
+ # The system-generated ID of the pull request.
4371
+ #
4372
+ # @option params [required, String] :approval_rule_name
4373
+ # The name of the approval rule you want to update.
4374
+ #
4375
+ # @option params [String] :existing_rule_content_sha_256
4376
+ # The SHA-256 hash signature for the content of the approval rule. You
4377
+ # can retrieve this information by using GetPullRequest.
4378
+ #
4379
+ # @option params [required, String] :new_rule_content
4380
+ # The updated content for the approval rule.
4381
+ #
4382
+ # <note markdown="1"> When you update the content of the approval rule, you can specify
4383
+ # approvers in an approval pool in one of two ways:
4384
+ #
4385
+ # * **CodeCommitApprovers**\: This option only requires an AWS account
4386
+ # and a resource. It can be used for both IAM users and federated
4387
+ # access users whose name matches the provided resource name. This is
4388
+ # a very powerful option that offers a great deal of flexibility. For
4389
+ # example, if you specify the AWS account *123456789012* and
4390
+ # *Mary\_Major*, all of the following are counted as approvals coming
4391
+ # from that user:
4392
+ #
4393
+ # * An IAM user in the account
4394
+ # (arn:aws:iam::*123456789012*\:user/*Mary\_Major*)
4395
+ #
4396
+ # * A federated user identified in IAM as Mary\_Major
4397
+ # (arn:aws:sts::*123456789012*\:federated-user/*Mary\_Major*)
4398
+ #
4399
+ # This option does not recognize an active session of someone assuming
4400
+ # the role of CodeCommitReview with a role session name of
4401
+ # *Mary\_Major*
4402
+ # (arn:aws:sts::*123456789012*\:assumed-role/CodeCommitReview/*Mary\_Major*)
4403
+ # unless you include a wildcard (*Mary\_Major).
4404
+ #
4405
+ # * **Fully qualified ARN**\: This option allows you to specify the
4406
+ # fully qualified Amazon Resource Name (ARN) of the IAM user or role.
4407
+ #
4408
+ # For more information about IAM ARNs, wildcards, and formats, see [IAM
4409
+ # Identifiers][1] in the *IAM User Guide*.
4410
+ #
4411
+ # </note>
4412
+ #
4413
+ #
4414
+ #
4415
+ # [1]: https://docs.aws.amazon.com/iam/latest/UserGuide/reference_identifiers.html
4416
+ #
4417
+ # @return [Types::UpdatePullRequestApprovalRuleContentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4418
+ #
4419
+ # * {Types::UpdatePullRequestApprovalRuleContentOutput#approval_rule #approval_rule} => Types::ApprovalRule
4420
+ #
4421
+ # @example Request syntax with placeholder values
4422
+ #
4423
+ # resp = client.update_pull_request_approval_rule_content({
4424
+ # pull_request_id: "PullRequestId", # required
4425
+ # approval_rule_name: "ApprovalRuleName", # required
4426
+ # existing_rule_content_sha_256: "RuleContentSha256",
4427
+ # new_rule_content: "ApprovalRuleContent", # required
4428
+ # })
4429
+ #
4430
+ # @example Response structure
4431
+ #
4432
+ # resp.approval_rule.approval_rule_id #=> String
4433
+ # resp.approval_rule.approval_rule_name #=> String
4434
+ # resp.approval_rule.approval_rule_content #=> String
4435
+ # resp.approval_rule.rule_content_sha_256 #=> String
4436
+ # resp.approval_rule.last_modified_date #=> Time
4437
+ # resp.approval_rule.creation_date #=> Time
4438
+ # resp.approval_rule.last_modified_user #=> String
4439
+ # resp.approval_rule.origin_approval_rule_template.approval_rule_template_id #=> String
4440
+ # resp.approval_rule.origin_approval_rule_template.approval_rule_template_name #=> String
4441
+ #
4442
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestApprovalRuleContent AWS API Documentation
4443
+ #
4444
+ # @overload update_pull_request_approval_rule_content(params = {})
4445
+ # @param [Hash] params ({})
4446
+ def update_pull_request_approval_rule_content(params = {}, options = {})
4447
+ req = build_request(:update_pull_request_approval_rule_content, params)
4448
+ req.send_request(options)
4449
+ end
4450
+
4451
+ # Updates the state of a user's approval on a pull request. The user is
4452
+ # derived from the signed-in account when the request is made.
4453
+ #
4454
+ # @option params [required, String] :pull_request_id
4455
+ # The system-generated ID of the pull request.
4456
+ #
4457
+ # @option params [required, String] :revision_id
4458
+ # The system-generated ID of the revision.
4459
+ #
4460
+ # @option params [required, String] :approval_state
4461
+ # The approval state to associate with the user on the pull request.
4462
+ #
4463
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
4464
+ #
4465
+ # @example Request syntax with placeholder values
4466
+ #
4467
+ # resp = client.update_pull_request_approval_state({
4468
+ # pull_request_id: "PullRequestId", # required
4469
+ # revision_id: "RevisionId", # required
4470
+ # approval_state: "APPROVE", # required, accepts APPROVE, REVOKE
4471
+ # })
4472
+ #
4473
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestApprovalState AWS API Documentation
4474
+ #
4475
+ # @overload update_pull_request_approval_state(params = {})
4476
+ # @param [Hash] params ({})
4477
+ def update_pull_request_approval_state(params = {}, options = {})
4478
+ req = build_request(:update_pull_request_approval_state, params)
4479
+ req.send_request(options)
4480
+ end
4481
+
3394
4482
  # Replaces the contents of the description of a pull request.
3395
4483
  #
3396
4484
  # @option params [required, String] :pull_request_id
@@ -3399,7 +4487,7 @@ module Aws::CodeCommit
3399
4487
  #
3400
4488
  # @option params [required, String] :description
3401
4489
  # The updated content of the description for the pull request. This
3402
- # content will replace the existing description.
4490
+ # content replaces the existing description.
3403
4491
  #
3404
4492
  # @return [Types::UpdatePullRequestDescriptionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3405
4493
  #
@@ -3433,6 +4521,17 @@ module Aws::CodeCommit
3433
4521
  # resp.pull_request.pull_request_targets[0].merge_metadata.merge_commit_id #=> String
3434
4522
  # resp.pull_request.pull_request_targets[0].merge_metadata.merge_option #=> String, one of "FAST_FORWARD_MERGE", "SQUASH_MERGE", "THREE_WAY_MERGE"
3435
4523
  # resp.pull_request.client_request_token #=> String
4524
+ # resp.pull_request.revision_id #=> String
4525
+ # resp.pull_request.approval_rules #=> Array
4526
+ # resp.pull_request.approval_rules[0].approval_rule_id #=> String
4527
+ # resp.pull_request.approval_rules[0].approval_rule_name #=> String
4528
+ # resp.pull_request.approval_rules[0].approval_rule_content #=> String
4529
+ # resp.pull_request.approval_rules[0].rule_content_sha_256 #=> String
4530
+ # resp.pull_request.approval_rules[0].last_modified_date #=> Time
4531
+ # resp.pull_request.approval_rules[0].creation_date #=> Time
4532
+ # resp.pull_request.approval_rules[0].last_modified_user #=> String
4533
+ # resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_id #=> String
4534
+ # resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_name #=> String
3436
4535
  #
3437
4536
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestDescription AWS API Documentation
3438
4537
  #
@@ -3452,7 +4551,7 @@ module Aws::CodeCommit
3452
4551
  # @option params [required, String] :pull_request_status
3453
4552
  # The status of the pull request. The only valid operations are to
3454
4553
  # update the status from `OPEN` to `OPEN`, `OPEN` to `CLOSED` or from
3455
- # from `CLOSED` to `CLOSED`.
4554
+ # `CLOSED` to `CLOSED`.
3456
4555
  #
3457
4556
  # @return [Types::UpdatePullRequestStatusOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3458
4557
  #
@@ -3486,6 +4585,17 @@ module Aws::CodeCommit
3486
4585
  # resp.pull_request.pull_request_targets[0].merge_metadata.merge_commit_id #=> String
3487
4586
  # resp.pull_request.pull_request_targets[0].merge_metadata.merge_option #=> String, one of "FAST_FORWARD_MERGE", "SQUASH_MERGE", "THREE_WAY_MERGE"
3488
4587
  # resp.pull_request.client_request_token #=> String
4588
+ # resp.pull_request.revision_id #=> String
4589
+ # resp.pull_request.approval_rules #=> Array
4590
+ # resp.pull_request.approval_rules[0].approval_rule_id #=> String
4591
+ # resp.pull_request.approval_rules[0].approval_rule_name #=> String
4592
+ # resp.pull_request.approval_rules[0].approval_rule_content #=> String
4593
+ # resp.pull_request.approval_rules[0].rule_content_sha_256 #=> String
4594
+ # resp.pull_request.approval_rules[0].last_modified_date #=> Time
4595
+ # resp.pull_request.approval_rules[0].creation_date #=> Time
4596
+ # resp.pull_request.approval_rules[0].last_modified_user #=> String
4597
+ # resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_id #=> String
4598
+ # resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_name #=> String
3489
4599
  #
3490
4600
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestStatus AWS API Documentation
3491
4601
  #
@@ -3503,7 +4613,7 @@ module Aws::CodeCommit
3503
4613
  # ListPullRequests.
3504
4614
  #
3505
4615
  # @option params [required, String] :title
3506
- # The updated title of the pull request. This will replace the existing
4616
+ # The updated title of the pull request. This replaces the existing
3507
4617
  # title.
3508
4618
  #
3509
4619
  # @return [Types::UpdatePullRequestTitleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -3538,6 +4648,17 @@ module Aws::CodeCommit
3538
4648
  # resp.pull_request.pull_request_targets[0].merge_metadata.merge_commit_id #=> String
3539
4649
  # resp.pull_request.pull_request_targets[0].merge_metadata.merge_option #=> String, one of "FAST_FORWARD_MERGE", "SQUASH_MERGE", "THREE_WAY_MERGE"
3540
4650
  # resp.pull_request.client_request_token #=> String
4651
+ # resp.pull_request.revision_id #=> String
4652
+ # resp.pull_request.approval_rules #=> Array
4653
+ # resp.pull_request.approval_rules[0].approval_rule_id #=> String
4654
+ # resp.pull_request.approval_rules[0].approval_rule_name #=> String
4655
+ # resp.pull_request.approval_rules[0].approval_rule_content #=> String
4656
+ # resp.pull_request.approval_rules[0].rule_content_sha_256 #=> String
4657
+ # resp.pull_request.approval_rules[0].last_modified_date #=> Time
4658
+ # resp.pull_request.approval_rules[0].creation_date #=> Time
4659
+ # resp.pull_request.approval_rules[0].last_modified_user #=> String
4660
+ # resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_id #=> String
4661
+ # resp.pull_request.approval_rules[0].origin_approval_rule_template.approval_rule_template_name #=> String
3541
4662
  #
3542
4663
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestTitle AWS API Documentation
3543
4664
  #
@@ -3552,10 +4673,10 @@ module Aws::CodeCommit
3552
4673
  #
3553
4674
  # <note markdown="1"> The description field for a repository accepts all HTML characters and
3554
4675
  # all valid Unicode characters. Applications that do not HTML-encode the
3555
- # description and display it in a web page could expose users to
4676
+ # description and display it in a webpage can expose users to
3556
4677
  # potentially malicious code. Make sure that you HTML-encode the
3557
4678
  # description field in any application that uses this API to display the
3558
- # repository description on a web page.
4679
+ # repository description on a webpage.
3559
4680
  #
3560
4681
  # </note>
3561
4682
  #
@@ -3586,18 +4707,18 @@ module Aws::CodeCommit
3586
4707
  end
3587
4708
 
3588
4709
  # Renames a repository. The repository name must be unique across the
3589
- # calling AWS account. In addition, repository names are limited to 100
3590
- # alphanumeric, dash, and underscore characters, and cannot include
3591
- # certain characters. The suffix ".git" is prohibited. For a full
3592
- # description of the limits on repository names, see [Limits][1] in the
3593
- # AWS CodeCommit User Guide.
4710
+ # calling AWS account. Repository names are limited to 100 alphanumeric,
4711
+ # dash, and underscore characters, and cannot include certain
4712
+ # characters. The suffix .git is prohibited. For more information about
4713
+ # the limits on repository names, see [Limits][1] in the AWS CodeCommit
4714
+ # User Guide.
3594
4715
  #
3595
4716
  #
3596
4717
  #
3597
4718
  # [1]: https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html
3598
4719
  #
3599
4720
  # @option params [required, String] :old_name
3600
- # The existing name of the repository.
4721
+ # The current name of the repository.
3601
4722
  #
3602
4723
  # @option params [required, String] :new_name
3603
4724
  # The new name for the repository.
@@ -3633,7 +4754,7 @@ module Aws::CodeCommit
3633
4754
  params: params,
3634
4755
  config: config)
3635
4756
  context[:gem_name] = 'aws-sdk-codecommit'
3636
- context[:gem_version] = '1.29.0'
4757
+ context[:gem_version] = '1.34.1'
3637
4758
  Seahorse::Client::Request.new(handlers, context)
3638
4759
  end
3639
4760