aws-sdk-codecommit 1.0.0.rc1 → 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,23 +1,14 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module CodeCommit
10
- module Errors
8
+ module Aws::CodeCommit
9
+ module Errors
11
10
 
12
- extend Aws::Errors::DynamicErrors
11
+ extend Aws::Errors::DynamicErrors
13
12
 
14
- # Raised when calling #load or #data on a resource class that can not be
15
- # loaded. This can happen when:
16
- #
17
- # * A resource class has identifiers, but no data attributes.
18
- # * Resource data is only available when making an API call that
19
- # enumerates all resources of that type.
20
- class ResourceNotLoadable < RuntimeError; end
21
- end
22
13
  end
23
14
  end
@@ -1,25 +1,23 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module CodeCommit
10
- class Resource
8
+ module Aws::CodeCommit
9
+ class Resource
11
10
 
12
- # @param options ({})
13
- # @option options [Client] :client
14
- def initialize(options = {})
15
- @client = options[:client] || Client.new(options)
16
- end
17
-
18
- # @return [Client]
19
- def client
20
- @client
21
- end
11
+ # @param options ({})
12
+ # @option options [Client] :client
13
+ def initialize(options = {})
14
+ @client = options[:client] || Client.new(options)
15
+ end
22
16
 
17
+ # @return [Client]
18
+ def client
19
+ @client
23
20
  end
21
+
24
22
  end
25
23
  end
@@ -1,702 +1,963 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module CodeCommit
10
- module Types
11
-
12
- # Represents the input of a batch get repositories operation.
13
- # @note When making an API call, pass BatchGetRepositoriesInput
14
- # data as a hash:
15
- #
16
- # {
17
- # repository_names: ["RepositoryName"], # required
18
- # }
19
- # @!attribute [rw] repository_names
20
- # The names of the repositories to get information about.
21
- # @return [Array<String>]
22
- class BatchGetRepositoriesInput < Struct.new(
23
- :repository_names)
24
- include Aws::Structure
25
- end
26
-
27
- # Represents the output of a batch get repositories operation.
28
- # @!attribute [rw] repositories
29
- # A list of repositories returned by the batch get repositories
30
- # operation.
31
- # @return [Array<Types::RepositoryMetadata>]
32
- #
33
- # @!attribute [rw] repositories_not_found
34
- # Returns a list of repository names for which information could not
35
- # be found.
36
- # @return [Array<String>]
37
- class BatchGetRepositoriesOutput < Struct.new(
38
- :repositories,
39
- :repositories_not_found)
40
- include Aws::Structure
41
- end
42
-
43
- # Returns information about a branch.
44
- # @!attribute [rw] branch_name
45
- # The name of the branch.
46
- # @return [String]
47
- #
48
- # @!attribute [rw] commit_id
49
- # The ID of the last commit made to the branch.
50
- # @return [String]
51
- class BranchInfo < Struct.new(
52
- :branch_name,
53
- :commit_id)
54
- include Aws::Structure
55
- end
56
-
57
- # Returns information about a specific commit.
58
- # @!attribute [rw] tree_id
59
- # Tree information for the specified commit.
60
- # @return [String]
61
- #
62
- # @!attribute [rw] parents
63
- # The parent list for the specified commit.
64
- # @return [Array<String>]
65
- #
66
- # @!attribute [rw] message
67
- # The message associated with the specified commit.
68
- # @return [String]
69
- #
70
- # @!attribute [rw] author
71
- # Information about the author of the specified commit.
72
- # @return [Types::UserInfo]
73
- #
74
- # @!attribute [rw] committer
75
- # Information about the person who committed the specified commit,
76
- # also known as the committer. For more information about the
77
- # difference between an author and a committer in Git, see [Viewing
78
- # the Commit History][1] in Pro Git by Scott Chacon and Ben Straub.
79
- #
80
- #
81
- #
82
- # [1]: http://git-scm.com/book/ch2-3.html
83
- # @return [Types::UserInfo]
84
- #
85
- # @!attribute [rw] additional_data
86
- # Any additional data associated with the specified commit.
87
- # @return [String]
88
- class Commit < Struct.new(
89
- :tree_id,
90
- :parents,
91
- :message,
92
- :author,
93
- :committer,
94
- :additional_data)
95
- include Aws::Structure
96
- end
97
-
98
- # Represents the input of a create branch operation.
99
- # @note When making an API call, pass CreateBranchInput
100
- # data as a hash:
101
- #
102
- # {
103
- # repository_name: "RepositoryName", # required
104
- # branch_name: "BranchName", # required
105
- # commit_id: "CommitId", # required
106
- # }
107
- # @!attribute [rw] repository_name
108
- # The name of the repository in which you want to create the new
109
- # branch.
110
- # @return [String]
111
- #
112
- # @!attribute [rw] branch_name
113
- # The name of the new branch to create.
114
- # @return [String]
115
- #
116
- # @!attribute [rw] commit_id
117
- # The ID of the commit to point the new branch to.
118
- # @return [String]
119
- class CreateBranchInput < Struct.new(
120
- :repository_name,
121
- :branch_name,
122
- :commit_id)
123
- include Aws::Structure
124
- end
125
-
126
- # Represents the input of a create repository operation.
127
- # @note When making an API call, pass CreateRepositoryInput
128
- # data as a hash:
129
- #
130
- # {
131
- # repository_name: "RepositoryName", # required
132
- # repository_description: "RepositoryDescription",
133
- # }
134
- # @!attribute [rw] repository_name
135
- # The name of the new repository to be created.
136
- #
137
- # <note markdown="1">The repository name must be unique across the calling AWS account.
138
- # In addition, repository names are limited to 100 alphanumeric, dash,
139
- # and underscore characters, and cannot include certain characters.
140
- # For a full description of the limits on repository names, see
141
- # [Limits][1] in the AWS CodeCommit User Guide. The suffix ".git" is
142
- # prohibited.
143
- #
144
- # </note>
145
- #
146
- #
147
- #
148
- # [1]: http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html
149
- # @return [String]
150
- #
151
- # @!attribute [rw] repository_description
152
- # A comment or description about the new repository.
153
- #
154
- # <note markdown="1">The description field for a repository accepts all HTML characters
155
- # and all valid Unicode characters. Applications that do not
156
- # HTML-encode the description and display it in a web page could
157
- # expose users to potentially malicious code. Make sure that you
158
- # HTML-encode the description field in any application that uses this
159
- # API to display the repository description on a web page.
160
- #
161
- # </note>
162
- # @return [String]
163
- class CreateRepositoryInput < Struct.new(
164
- :repository_name,
165
- :repository_description)
166
- include Aws::Structure
167
- end
168
-
169
- # Represents the output of a create repository operation.
170
- # @!attribute [rw] repository_metadata
171
- # Information about the newly created repository.
172
- # @return [Types::RepositoryMetadata]
173
- class CreateRepositoryOutput < Struct.new(
174
- :repository_metadata)
175
- include Aws::Structure
176
- end
177
-
178
- # Represents the input of a delete repository operation.
179
- # @note When making an API call, pass DeleteRepositoryInput
180
- # data as a hash:
181
- #
182
- # {
183
- # repository_name: "RepositoryName", # required
184
- # }
185
- # @!attribute [rw] repository_name
186
- # The name of the repository to delete.
187
- # @return [String]
188
- class DeleteRepositoryInput < Struct.new(
189
- :repository_name)
190
- include Aws::Structure
191
- end
192
-
193
- # Represents the output of a delete repository operation.
194
- # @!attribute [rw] repository_id
195
- # The ID of the repository that was deleted.
196
- # @return [String]
197
- class DeleteRepositoryOutput < Struct.new(
198
- :repository_id)
199
- include Aws::Structure
200
- end
201
-
202
- # Represents the input of a get branch operation.
203
- # @note When making an API call, pass GetBranchInput
204
- # data as a hash:
205
- #
206
- # {
207
- # repository_name: "RepositoryName",
208
- # branch_name: "BranchName",
209
- # }
210
- # @!attribute [rw] repository_name
211
- # The name of the repository that contains the branch for which you
212
- # want to retrieve information.
213
- # @return [String]
214
- #
215
- # @!attribute [rw] branch_name
216
- # The name of the branch for which you want to retrieve information.
217
- # @return [String]
218
- class GetBranchInput < Struct.new(
219
- :repository_name,
220
- :branch_name)
221
- include Aws::Structure
222
- end
223
-
224
- # Represents the output of a get branch operation.
225
- # @!attribute [rw] branch
226
- # The name of the branch.
227
- # @return [Types::BranchInfo]
228
- class GetBranchOutput < Struct.new(
229
- :branch)
230
- include Aws::Structure
231
- end
232
-
233
- # Represents the input of a get commit operation.
234
- # @note When making an API call, pass GetCommitInput
235
- # data as a hash:
236
- #
237
- # {
238
- # repository_name: "RepositoryName", # required
239
- # commit_id: "ObjectId", # required
240
- # }
241
- # @!attribute [rw] repository_name
242
- # The name of the repository to which the commit was made.
243
- # @return [String]
244
- #
245
- # @!attribute [rw] commit_id
246
- # The commit ID.
247
- # @return [String]
248
- class GetCommitInput < Struct.new(
249
- :repository_name,
250
- :commit_id)
251
- include Aws::Structure
252
- end
253
-
254
- # Represents the output of a get commit operation.
255
- # @!attribute [rw] commit
256
- # Information about the specified commit.
257
- # @return [Types::Commit]
258
- class GetCommitOutput < Struct.new(
259
- :commit)
260
- include Aws::Structure
261
- end
262
-
263
- # Represents the input of a get repository operation.
264
- # @note When making an API call, pass GetRepositoryInput
265
- # data as a hash:
266
- #
267
- # {
268
- # repository_name: "RepositoryName", # required
269
- # }
270
- # @!attribute [rw] repository_name
271
- # The name of the repository to get information about.
272
- # @return [String]
273
- class GetRepositoryInput < Struct.new(
274
- :repository_name)
275
- include Aws::Structure
276
- end
277
-
278
- # Represents the output of a get repository operation.
279
- # @!attribute [rw] repository_metadata
280
- # Information about the repository.
281
- # @return [Types::RepositoryMetadata]
282
- class GetRepositoryOutput < Struct.new(
283
- :repository_metadata)
284
- include Aws::Structure
285
- end
286
-
287
- # Represents the input of a get repository triggers operation.
288
- # @note When making an API call, pass GetRepositoryTriggersInput
289
- # data as a hash:
290
- #
291
- # {
292
- # repository_name: "RepositoryName",
293
- # }
294
- # @!attribute [rw] repository_name
295
- # The name of the repository for which the trigger is configured.
296
- # @return [String]
297
- class GetRepositoryTriggersInput < Struct.new(
298
- :repository_name)
299
- include Aws::Structure
300
- end
301
-
302
- # Represents the output of a get repository triggers operation.
303
- # @!attribute [rw] configuration_id
304
- # The system-generated unique ID for the trigger.
305
- # @return [String]
306
- #
307
- # @!attribute [rw] triggers
308
- # The JSON block of configuration information for each trigger.
309
- # @return [Array<Types::RepositoryTrigger>]
310
- class GetRepositoryTriggersOutput < Struct.new(
311
- :configuration_id,
312
- :triggers)
313
- include Aws::Structure
314
- end
315
-
316
- # Represents the input of a list branches operation.
317
- # @note When making an API call, pass ListBranchesInput
318
- # data as a hash:
319
- #
320
- # {
321
- # repository_name: "RepositoryName", # required
322
- # next_token: "NextToken",
323
- # }
324
- # @!attribute [rw] repository_name
325
- # The name of the repository that contains the branches.
326
- # @return [String]
327
- #
328
- # @!attribute [rw] next_token
329
- # An enumeration token that allows the operation to batch the results.
330
- # @return [String]
331
- class ListBranchesInput < Struct.new(
332
- :repository_name,
333
- :next_token)
334
- include Aws::Structure
335
- end
336
-
337
- # Represents the output of a list branches operation.
338
- # @!attribute [rw] branches
339
- # The list of branch names.
340
- # @return [Array<String>]
341
- #
342
- # @!attribute [rw] next_token
343
- # An enumeration token that returns the batch of the results.
344
- # @return [String]
345
- class ListBranchesOutput < Struct.new(
346
- :branches,
347
- :next_token)
348
- include Aws::Structure
349
- end
350
-
351
- # Represents the input of a list repositories operation.
352
- # @note When making an API call, pass ListRepositoriesInput
353
- # data as a hash:
354
- #
355
- # {
356
- # next_token: "NextToken",
357
- # sort_by: "repositoryName", # accepts repositoryName, lastModifiedDate
358
- # order: "ascending", # accepts ascending, descending
359
- # }
360
- # @!attribute [rw] next_token
361
- # An enumeration token that allows the operation to batch the results
362
- # of the operation. Batch sizes are 1,000 for list repository
363
- # operations. When the client sends the token back to AWS CodeCommit,
364
- # another page of 1,000 records is retrieved.
365
- # @return [String]
366
- #
367
- # @!attribute [rw] sort_by
368
- # The criteria used to sort the results of a list repositories
369
- # operation.
370
- # @return [String]
371
- #
372
- # @!attribute [rw] order
373
- # The order in which to sort the results of a list repositories
374
- # operation.
375
- # @return [String]
376
- class ListRepositoriesInput < Struct.new(
377
- :next_token,
378
- :sort_by,
379
- :order)
380
- include Aws::Structure
381
- end
382
-
383
- # Represents the output of a list repositories operation.
384
- # @!attribute [rw] repositories
385
- # Lists the repositories called by the list repositories operation.
386
- # @return [Array<Types::RepositoryNameIdPair>]
387
- #
388
- # @!attribute [rw] next_token
389
- # An enumeration token that allows the operation to batch the results
390
- # of the operation. Batch sizes are 1,000 for list repository
391
- # operations. When the client sends the token back to AWS CodeCommit,
392
- # another page of 1,000 records is retrieved.
393
- # @return [String]
394
- class ListRepositoriesOutput < Struct.new(
395
- :repositories,
396
- :next_token)
397
- include Aws::Structure
398
- end
399
-
400
- # Represents the input ofa put repository triggers operation.
401
- # @note When making an API call, pass PutRepositoryTriggersInput
402
- # data as a hash:
403
- #
404
- # {
405
- # repository_name: "RepositoryName",
406
- # triggers: [
407
- # {
408
- # name: "RepositoryTriggerName",
409
- # destination_arn: "Arn",
410
- # custom_data: "RepositoryTriggerCustomData",
411
- # branches: ["BranchName"],
412
- # events: ["all"], # accepts all, updateReference, createReference, deleteReference
413
- # },
414
- # ],
415
- # }
416
- # @!attribute [rw] repository_name
417
- # The name of the repository where you want to create or update the
418
- # trigger.
419
- # @return [String]
420
- #
421
- # @!attribute [rw] triggers
422
- # The JSON block of configuration information for each trigger.
423
- # @return [Array<Types::RepositoryTrigger>]
424
- class PutRepositoryTriggersInput < Struct.new(
425
- :repository_name,
426
- :triggers)
427
- include Aws::Structure
428
- end
429
-
430
- # Represents the output of a put repository triggers operation.
431
- # @!attribute [rw] configuration_id
432
- # The system-generated unique ID for the create or update operation.
433
- # @return [String]
434
- class PutRepositoryTriggersOutput < Struct.new(
435
- :configuration_id)
436
- include Aws::Structure
437
- end
438
-
439
- # Information about a repository.
440
- # @!attribute [rw] account_id
441
- # The ID of the AWS account associated with the repository.
442
- # @return [String]
443
- #
444
- # @!attribute [rw] repository_id
445
- # The ID of the repository.
446
- # @return [String]
447
- #
448
- # @!attribute [rw] repository_name
449
- # The repository's name.
450
- # @return [String]
451
- #
452
- # @!attribute [rw] repository_description
453
- # A comment or description about the repository.
454
- # @return [String]
455
- #
456
- # @!attribute [rw] default_branch
457
- # The repository's default branch name.
458
- # @return [String]
459
- #
460
- # @!attribute [rw] last_modified_date
461
- # The date and time the repository was last modified, in timestamp
462
- # format.
463
- # @return [Time]
464
- #
465
- # @!attribute [rw] creation_date
466
- # The date and time the repository was created, in timestamp format.
467
- # @return [Time]
468
- #
469
- # @!attribute [rw] clone_url_http
470
- # The URL to use for cloning the repository over HTTPS.
471
- # @return [String]
472
- #
473
- # @!attribute [rw] clone_url_ssh
474
- # The URL to use for cloning the repository over SSH.
475
- # @return [String]
476
- #
477
- # @!attribute [rw] arn
478
- # The Amazon Resource Name (ARN) of the repository.
479
- # @return [String]
480
- class RepositoryMetadata < Struct.new(
481
- :account_id,
482
- :repository_id,
483
- :repository_name,
484
- :repository_description,
485
- :default_branch,
486
- :last_modified_date,
487
- :creation_date,
488
- :clone_url_http,
489
- :clone_url_ssh,
490
- :arn)
491
- include Aws::Structure
492
- end
493
-
494
- # Information about a repository name and ID.
495
- # @!attribute [rw] repository_name
496
- # The name associated with the repository.
497
- # @return [String]
498
- #
499
- # @!attribute [rw] repository_id
500
- # The ID associated with the repository.
501
- # @return [String]
502
- class RepositoryNameIdPair < Struct.new(
503
- :repository_name,
504
- :repository_id)
505
- include Aws::Structure
506
- end
507
-
508
- # Information about a trigger for a repository.
509
- # @note When making an API call, pass RepositoryTrigger
510
- # data as a hash:
511
- #
512
- # {
513
- # name: "RepositoryTriggerName",
514
- # destination_arn: "Arn",
515
- # custom_data: "RepositoryTriggerCustomData",
516
- # branches: ["BranchName"],
517
- # events: ["all"], # accepts all, updateReference, createReference, deleteReference
518
- # }
519
- # @!attribute [rw] name
520
- # The name of the trigger.
521
- # @return [String]
522
- #
523
- # @!attribute [rw] destination_arn
524
- # The ARN of the resource that is the target for a trigger. For
525
- # example, the ARN of a topic in Amazon Simple Notification Service
526
- # (SNS).
527
- # @return [String]
528
- #
529
- # @!attribute [rw] custom_data
530
- # Any custom data associated with the trigger that will be included in
531
- # the information sent to the target of the trigger.
532
- # @return [String]
533
- #
534
- # @!attribute [rw] branches
535
- # The branches that will be included in the trigger configuration. If
536
- # no branches are specified, the trigger will apply to all branches.
537
- # @return [Array<String>]
538
- #
539
- # @!attribute [rw] events
540
- # The repository events that will cause the trigger to run actions in
541
- # another service, such as sending a notification through Amazon
542
- # Simple Notification Service (SNS). If no events are specified, the
543
- # trigger will run for all repository events.
544
- # @return [Array<String>]
545
- class RepositoryTrigger < Struct.new(
546
- :name,
547
- :destination_arn,
548
- :custom_data,
549
- :branches,
550
- :events)
551
- include Aws::Structure
552
- end
553
-
554
- # A trigger failed to run.
555
- # @!attribute [rw] trigger
556
- # The name of the trigger that did not run.
557
- # @return [String]
558
- #
559
- # @!attribute [rw] failure_message
560
- # Additional message information about the trigger that did not run.
561
- # @return [String]
562
- class RepositoryTriggerExecutionFailure < Struct.new(
563
- :trigger,
564
- :failure_message)
565
- include Aws::Structure
566
- end
567
-
568
- # Represents the input of a test repository triggers operation.
569
- # @note When making an API call, pass TestRepositoryTriggersInput
570
- # data as a hash:
571
- #
572
- # {
573
- # repository_name: "RepositoryName",
574
- # triggers: [
575
- # {
576
- # name: "RepositoryTriggerName",
577
- # destination_arn: "Arn",
578
- # custom_data: "RepositoryTriggerCustomData",
579
- # branches: ["BranchName"],
580
- # events: ["all"], # accepts all, updateReference, createReference, deleteReference
581
- # },
582
- # ],
583
- # }
584
- # @!attribute [rw] repository_name
585
- # The name of the repository in which to test the triggers.
586
- # @return [String]
587
- #
588
- # @!attribute [rw] triggers
589
- # The list of triggers to test.
590
- # @return [Array<Types::RepositoryTrigger>]
591
- class TestRepositoryTriggersInput < Struct.new(
592
- :repository_name,
593
- :triggers)
594
- include Aws::Structure
595
- end
596
-
597
- # Represents the output of a test repository triggers operation.
598
- # @!attribute [rw] successful_executions
599
- # The list of triggers that were successfully tested. This list
600
- # provides the names of the triggers that were successfully tested,
601
- # separated by commas.
602
- # @return [Array<String>]
603
- #
604
- # @!attribute [rw] failed_executions
605
- # The list of triggers that were not able to be tested. This list
606
- # provides the names of the triggers that could not be tested,
607
- # separated by commas.
608
- # @return [Array<Types::RepositoryTriggerExecutionFailure>]
609
- class TestRepositoryTriggersOutput < Struct.new(
610
- :successful_executions,
611
- :failed_executions)
612
- include Aws::Structure
613
- end
614
-
615
- # Represents the input of an update default branch operation.
616
- # @note When making an API call, pass UpdateDefaultBranchInput
617
- # data as a hash:
618
- #
619
- # {
620
- # repository_name: "RepositoryName", # required
621
- # default_branch_name: "BranchName", # required
622
- # }
623
- # @!attribute [rw] repository_name
624
- # The name of the repository to set or change the default branch for.
625
- # @return [String]
626
- #
627
- # @!attribute [rw] default_branch_name
628
- # The name of the branch to set as the default.
629
- # @return [String]
630
- class UpdateDefaultBranchInput < Struct.new(
631
- :repository_name,
632
- :default_branch_name)
633
- include Aws::Structure
634
- end
635
-
636
- # Represents the input of an update repository description operation.
637
- # @note When making an API call, pass UpdateRepositoryDescriptionInput
638
- # data as a hash:
639
- #
640
- # {
641
- # repository_name: "RepositoryName", # required
642
- # repository_description: "RepositoryDescription",
643
- # }
644
- # @!attribute [rw] repository_name
645
- # The name of the repository to set or change the comment or
646
- # description for.
647
- # @return [String]
648
- #
649
- # @!attribute [rw] repository_description
650
- # The new comment or description for the specified repository.
651
- # Repository descriptions are limited to 1,000 characters.
652
- # @return [String]
653
- class UpdateRepositoryDescriptionInput < Struct.new(
654
- :repository_name,
655
- :repository_description)
656
- include Aws::Structure
657
- end
658
-
659
- # Represents the input of an update repository description operation.
660
- # @note When making an API call, pass UpdateRepositoryNameInput
661
- # data as a hash:
662
- #
663
- # {
664
- # old_name: "RepositoryName", # required
665
- # new_name: "RepositoryName", # required
666
- # }
667
- # @!attribute [rw] old_name
668
- # The existing name of the repository.
669
- # @return [String]
670
- #
671
- # @!attribute [rw] new_name
672
- # The new name for the repository.
673
- # @return [String]
674
- class UpdateRepositoryNameInput < Struct.new(
675
- :old_name,
676
- :new_name)
677
- include Aws::Structure
678
- end
679
-
680
- # Information about the user who made a specified commit.
681
- # @!attribute [rw] name
682
- # The name of the user who made the specified commit.
683
- # @return [String]
684
- #
685
- # @!attribute [rw] email
686
- # The email address associated with the user who made the commit, if
687
- # any.
688
- # @return [String]
689
- #
690
- # @!attribute [rw] date
691
- # The date when the specified commit was pushed to the repository.
692
- # @return [String]
693
- class UserInfo < Struct.new(
694
- :name,
695
- :email,
696
- :date)
697
- include Aws::Structure
698
- end
8
+ module Aws::CodeCommit
9
+ module Types
10
+
11
+ # Represents the input of a batch get repositories operation.
12
+ #
13
+ # @note When making an API call, you may pass BatchGetRepositoriesInput
14
+ # data as a hash:
15
+ #
16
+ # {
17
+ # repository_names: ["RepositoryName"], # required
18
+ # }
19
+ #
20
+ # @!attribute [rw] repository_names
21
+ # The names of the repositories to get information about.
22
+ # @return [Array<String>]
23
+ #
24
+ class BatchGetRepositoriesInput < Struct.new(
25
+ :repository_names)
26
+ include Aws::Structure
27
+ end
28
+
29
+ # Represents the output of a batch get repositories operation.
30
+ #
31
+ # @!attribute [rw] repositories
32
+ # A list of repositories returned by the batch get repositories
33
+ # operation.
34
+ # @return [Array<Types::RepositoryMetadata>]
35
+ #
36
+ # @!attribute [rw] repositories_not_found
37
+ # Returns a list of repository names for which information could not
38
+ # be found.
39
+ # @return [Array<String>]
40
+ #
41
+ class BatchGetRepositoriesOutput < Struct.new(
42
+ :repositories,
43
+ :repositories_not_found)
44
+ include Aws::Structure
45
+ end
46
+
47
+ # Returns information about a specific Git blob object.
48
+ #
49
+ # @!attribute [rw] blob_id
50
+ # The full ID of the blob.
51
+ # @return [String]
52
+ #
53
+ # @!attribute [rw] path
54
+ # The path to the blob and any associated file name, if any.
55
+ # @return [String]
56
+ #
57
+ # @!attribute [rw] mode
58
+ # The file mode permissions of the blob. File mode permission codes
59
+ # include:
60
+ #
61
+ # * `100644` indicates read/write
62
+ #
63
+ # * `100755` indicates read/write/execute
64
+ #
65
+ # * `160000` indicates a submodule
66
+ #
67
+ # * `120000` indicates a symlink
68
+ # @return [String]
69
+ #
70
+ class BlobMetadata < Struct.new(
71
+ :blob_id,
72
+ :path,
73
+ :mode)
74
+ include Aws::Structure
75
+ end
76
+
77
+ # Returns information about a branch.
78
+ #
79
+ # @!attribute [rw] branch_name
80
+ # The name of the branch.
81
+ # @return [String]
82
+ #
83
+ # @!attribute [rw] commit_id
84
+ # The ID of the last commit made to the branch.
85
+ # @return [String]
86
+ #
87
+ class BranchInfo < Struct.new(
88
+ :branch_name,
89
+ :commit_id)
90
+ include Aws::Structure
91
+ end
92
+
93
+ # Returns information about a specific commit.
94
+ #
95
+ # @!attribute [rw] tree_id
96
+ # Tree information for the specified commit.
97
+ # @return [String]
98
+ #
99
+ # @!attribute [rw] parents
100
+ # The parent list for the specified commit.
101
+ # @return [Array<String>]
102
+ #
103
+ # @!attribute [rw] message
104
+ # The commit message associated with the specified commit.
105
+ # @return [String]
106
+ #
107
+ # @!attribute [rw] author
108
+ # Information about the author of the specified commit. Information
109
+ # includes the date in timestamp format with GMT offset, the name of
110
+ # the author, and the email address for the author, as configured in
111
+ # Git.
112
+ # @return [Types::UserInfo]
113
+ #
114
+ # @!attribute [rw] committer
115
+ # Information about the person who committed the specified commit,
116
+ # also known as the committer. Information includes the date in
117
+ # timestamp format with GMT offset, the name of the committer, and the
118
+ # email address for the committer, as configured in Git.
119
+ #
120
+ # For more information about the difference between an author and a
121
+ # committer in Git, see [Viewing the Commit History][1] in Pro Git by
122
+ # Scott Chacon and Ben Straub.
123
+ #
124
+ #
125
+ #
126
+ # [1]: http://git-scm.com/book/ch2-3.html
127
+ # @return [Types::UserInfo]
128
+ #
129
+ # @!attribute [rw] additional_data
130
+ # Any additional data associated with the specified commit.
131
+ # @return [String]
132
+ #
133
+ class Commit < Struct.new(
134
+ :tree_id,
135
+ :parents,
136
+ :message,
137
+ :author,
138
+ :committer,
139
+ :additional_data)
140
+ include Aws::Structure
141
+ end
142
+
143
+ # Represents the input of a create branch operation.
144
+ #
145
+ # @note When making an API call, you may pass CreateBranchInput
146
+ # data as a hash:
147
+ #
148
+ # {
149
+ # repository_name: "RepositoryName", # required
150
+ # branch_name: "BranchName", # required
151
+ # commit_id: "CommitId", # required
152
+ # }
153
+ #
154
+ # @!attribute [rw] repository_name
155
+ # The name of the repository in which you want to create the new
156
+ # branch.
157
+ # @return [String]
158
+ #
159
+ # @!attribute [rw] branch_name
160
+ # The name of the new branch to create.
161
+ # @return [String]
162
+ #
163
+ # @!attribute [rw] commit_id
164
+ # The ID of the commit to point the new branch to.
165
+ # @return [String]
166
+ #
167
+ class CreateBranchInput < Struct.new(
168
+ :repository_name,
169
+ :branch_name,
170
+ :commit_id)
171
+ include Aws::Structure
172
+ end
173
+
174
+ # Represents the input of a create repository operation.
175
+ #
176
+ # @note When making an API call, you may pass CreateRepositoryInput
177
+ # data as a hash:
178
+ #
179
+ # {
180
+ # repository_name: "RepositoryName", # required
181
+ # repository_description: "RepositoryDescription",
182
+ # }
183
+ #
184
+ # @!attribute [rw] repository_name
185
+ # The name of the new repository to be created.
186
+ #
187
+ # <note markdown="1"> The repository name must be unique across the calling AWS account.
188
+ # In addition, repository names are limited to 100 alphanumeric, dash,
189
+ # and underscore characters, and cannot include certain characters.
190
+ # For a full description of the limits on repository names, see
191
+ # [Limits][1] in the AWS CodeCommit User Guide. The suffix ".git" is
192
+ # prohibited.
193
+ #
194
+ # </note>
195
+ #
196
+ #
197
+ #
198
+ # [1]: http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html
199
+ # @return [String]
200
+ #
201
+ # @!attribute [rw] repository_description
202
+ # A comment or description about the new repository.
203
+ #
204
+ # <note markdown="1"> The description field for a repository accepts all HTML characters
205
+ # and all valid Unicode characters. Applications that do not
206
+ # HTML-encode the description and display it in a web page could
207
+ # expose users to potentially malicious code. Make sure that you
208
+ # HTML-encode the description field in any application that uses this
209
+ # API to display the repository description on a web page.
210
+ #
211
+ # </note>
212
+ # @return [String]
213
+ #
214
+ class CreateRepositoryInput < Struct.new(
215
+ :repository_name,
216
+ :repository_description)
217
+ include Aws::Structure
218
+ end
219
+
220
+ # Represents the output of a create repository operation.
221
+ #
222
+ # @!attribute [rw] repository_metadata
223
+ # Information about the newly created repository.
224
+ # @return [Types::RepositoryMetadata]
225
+ #
226
+ class CreateRepositoryOutput < Struct.new(
227
+ :repository_metadata)
228
+ include Aws::Structure
229
+ end
230
+
231
+ # Represents the input of a delete repository operation.
232
+ #
233
+ # @note When making an API call, you may pass DeleteRepositoryInput
234
+ # data as a hash:
235
+ #
236
+ # {
237
+ # repository_name: "RepositoryName", # required
238
+ # }
239
+ #
240
+ # @!attribute [rw] repository_name
241
+ # The name of the repository to delete.
242
+ # @return [String]
243
+ #
244
+ class DeleteRepositoryInput < Struct.new(
245
+ :repository_name)
246
+ include Aws::Structure
247
+ end
248
+
249
+ # Represents the output of a delete repository operation.
250
+ #
251
+ # @!attribute [rw] repository_id
252
+ # The ID of the repository that was deleted.
253
+ # @return [String]
254
+ #
255
+ class DeleteRepositoryOutput < Struct.new(
256
+ :repository_id)
257
+ include Aws::Structure
258
+ end
259
+
260
+ # Returns information about a set of differences for a commit specifier.
261
+ #
262
+ # @!attribute [rw] before_blob
263
+ # Information about a `beforeBlob` data type object, including the ID,
264
+ # the file mode permission code, and the path.
265
+ # @return [Types::BlobMetadata]
266
+ #
267
+ # @!attribute [rw] after_blob
268
+ # Information about an `afterBlob` data type object, including the ID,
269
+ # the file mode permission code, and the path.
270
+ # @return [Types::BlobMetadata]
271
+ #
272
+ # @!attribute [rw] change_type
273
+ # Whether the change type of the difference is an addition (A),
274
+ # deletion (D), or modification (M).
275
+ # @return [String]
276
+ #
277
+ class Difference < Struct.new(
278
+ :before_blob,
279
+ :after_blob,
280
+ :change_type)
281
+ include Aws::Structure
282
+ end
283
+
284
+ # Represents the input of a get blob operation.
285
+ #
286
+ # @note When making an API call, you may pass GetBlobInput
287
+ # data as a hash:
288
+ #
289
+ # {
290
+ # repository_name: "RepositoryName", # required
291
+ # blob_id: "ObjectId", # required
292
+ # }
293
+ #
294
+ # @!attribute [rw] repository_name
295
+ # The name of the repository that contains the blob.
296
+ # @return [String]
297
+ #
298
+ # @!attribute [rw] blob_id
299
+ # The ID of the blob, which is its SHA-1 pointer.
300
+ # @return [String]
301
+ #
302
+ class GetBlobInput < Struct.new(
303
+ :repository_name,
304
+ :blob_id)
305
+ include Aws::Structure
306
+ end
307
+
308
+ # Represents the output of a get blob operation.
309
+ #
310
+ # @!attribute [rw] content
311
+ # The content of the blob, usually a file.
312
+ # @return [String]
313
+ #
314
+ class GetBlobOutput < Struct.new(
315
+ :content)
316
+ include Aws::Structure
317
+ end
318
+
319
+ # Represents the input of a get branch operation.
320
+ #
321
+ # @note When making an API call, you may pass GetBranchInput
322
+ # data as a hash:
323
+ #
324
+ # {
325
+ # repository_name: "RepositoryName",
326
+ # branch_name: "BranchName",
327
+ # }
328
+ #
329
+ # @!attribute [rw] repository_name
330
+ # The name of the repository that contains the branch for which you
331
+ # want to retrieve information.
332
+ # @return [String]
333
+ #
334
+ # @!attribute [rw] branch_name
335
+ # The name of the branch for which you want to retrieve information.
336
+ # @return [String]
337
+ #
338
+ class GetBranchInput < Struct.new(
339
+ :repository_name,
340
+ :branch_name)
341
+ include Aws::Structure
342
+ end
343
+
344
+ # Represents the output of a get branch operation.
345
+ #
346
+ # @!attribute [rw] branch
347
+ # The name of the branch.
348
+ # @return [Types::BranchInfo]
349
+ #
350
+ class GetBranchOutput < Struct.new(
351
+ :branch)
352
+ include Aws::Structure
353
+ end
354
+
355
+ # Represents the input of a get commit operation.
356
+ #
357
+ # @note When making an API call, you may pass GetCommitInput
358
+ # data as a hash:
359
+ #
360
+ # {
361
+ # repository_name: "RepositoryName", # required
362
+ # commit_id: "ObjectId", # required
363
+ # }
364
+ #
365
+ # @!attribute [rw] repository_name
366
+ # The name of the repository to which the commit was made.
367
+ # @return [String]
368
+ #
369
+ # @!attribute [rw] commit_id
370
+ # The commit ID.
371
+ # @return [String]
372
+ #
373
+ class GetCommitInput < Struct.new(
374
+ :repository_name,
375
+ :commit_id)
376
+ include Aws::Structure
377
+ end
378
+
379
+ # Represents the output of a get commit operation.
380
+ #
381
+ # @!attribute [rw] commit
382
+ # A commit data type object that contains information about the
383
+ # specified commit.
384
+ # @return [Types::Commit]
385
+ #
386
+ class GetCommitOutput < Struct.new(
387
+ :commit)
388
+ include Aws::Structure
389
+ end
390
+
391
+ # @note When making an API call, you may pass GetDifferencesInput
392
+ # data as a hash:
393
+ #
394
+ # {
395
+ # repository_name: "RepositoryName", # required
396
+ # before_commit_specifier: "CommitName",
397
+ # after_commit_specifier: "CommitName", # required
398
+ # before_path: "Path",
399
+ # after_path: "Path",
400
+ # max_results: 1,
401
+ # next_token: "NextToken",
402
+ # }
403
+ #
404
+ # @!attribute [rw] repository_name
405
+ # The name of the repository where you want to get differences.
406
+ # @return [String]
407
+ #
408
+ # @!attribute [rw] before_commit_specifier
409
+ # The branch, tag, HEAD, or other fully qualified reference used to
410
+ # identify a commit. For example, the full commit ID. Optional. If not
411
+ # specified, all changes prior to the `afterCommitSpecifier` value
412
+ # will be shown. If you do not use `beforeCommitSpecifier` in your
413
+ # request, consider limiting the results with `maxResults`.
414
+ # @return [String]
415
+ #
416
+ # @!attribute [rw] after_commit_specifier
417
+ # The branch, tag, HEAD, or other fully qualified reference used to
418
+ # identify a commit.
419
+ # @return [String]
420
+ #
421
+ # @!attribute [rw] before_path
422
+ # The file path in which to check for differences. Limits the results
423
+ # to this path. Can also be used to specify the previous name of a
424
+ # directory or folder. If `beforePath` and `afterPath` are not
425
+ # specified, differences will be shown for all paths.
426
+ # @return [String]
427
+ #
428
+ # @!attribute [rw] after_path
429
+ # The file path in which to check differences. Limits the results to
430
+ # this path. Can also be used to specify the changed name of a
431
+ # directory or folder, if it has changed. If not specified,
432
+ # differences will be shown for all paths.
433
+ # @return [String]
434
+ #
435
+ # @!attribute [rw] max_results
436
+ # A non-negative integer used to limit the number of returned results.
437
+ # @return [Integer]
438
+ #
439
+ # @!attribute [rw] next_token
440
+ # An enumeration token that when provided in a request, returns the
441
+ # next batch of the results.
442
+ # @return [String]
443
+ #
444
+ class GetDifferencesInput < Struct.new(
445
+ :repository_name,
446
+ :before_commit_specifier,
447
+ :after_commit_specifier,
448
+ :before_path,
449
+ :after_path,
450
+ :max_results,
451
+ :next_token)
452
+ include Aws::Structure
453
+ end
454
+
455
+ # @!attribute [rw] differences
456
+ # A differences data type object that contains information about the
457
+ # differences, including whether the difference is added, modified, or
458
+ # deleted (A, D, M).
459
+ # @return [Array<Types::Difference>]
460
+ #
461
+ # @!attribute [rw] next_token
462
+ # An enumeration token that can be used in a request to return the
463
+ # next batch of the results.
464
+ # @return [String]
465
+ #
466
+ class GetDifferencesOutput < Struct.new(
467
+ :differences,
468
+ :next_token)
469
+ include Aws::Structure
470
+ end
471
+
472
+ # Represents the input of a get repository operation.
473
+ #
474
+ # @note When making an API call, you may pass GetRepositoryInput
475
+ # data as a hash:
476
+ #
477
+ # {
478
+ # repository_name: "RepositoryName", # required
479
+ # }
480
+ #
481
+ # @!attribute [rw] repository_name
482
+ # The name of the repository to get information about.
483
+ # @return [String]
484
+ #
485
+ class GetRepositoryInput < Struct.new(
486
+ :repository_name)
487
+ include Aws::Structure
488
+ end
489
+
490
+ # Represents the output of a get repository operation.
491
+ #
492
+ # @!attribute [rw] repository_metadata
493
+ # Information about the repository.
494
+ # @return [Types::RepositoryMetadata]
495
+ #
496
+ class GetRepositoryOutput < Struct.new(
497
+ :repository_metadata)
498
+ include Aws::Structure
499
+ end
500
+
501
+ # Represents the input of a get repository triggers operation.
502
+ #
503
+ # @note When making an API call, you may pass GetRepositoryTriggersInput
504
+ # data as a hash:
505
+ #
506
+ # {
507
+ # repository_name: "RepositoryName", # required
508
+ # }
509
+ #
510
+ # @!attribute [rw] repository_name
511
+ # The name of the repository for which the trigger is configured.
512
+ # @return [String]
513
+ #
514
+ class GetRepositoryTriggersInput < Struct.new(
515
+ :repository_name)
516
+ include Aws::Structure
517
+ end
518
+
519
+ # Represents the output of a get repository triggers operation.
520
+ #
521
+ # @!attribute [rw] configuration_id
522
+ # The system-generated unique ID for the trigger.
523
+ # @return [String]
524
+ #
525
+ # @!attribute [rw] triggers
526
+ # The JSON block of configuration information for each trigger.
527
+ # @return [Array<Types::RepositoryTrigger>]
528
+ #
529
+ class GetRepositoryTriggersOutput < Struct.new(
530
+ :configuration_id,
531
+ :triggers)
532
+ include Aws::Structure
533
+ end
534
+
535
+ # Represents the input of a list branches operation.
536
+ #
537
+ # @note When making an API call, you may pass ListBranchesInput
538
+ # data as a hash:
539
+ #
540
+ # {
541
+ # repository_name: "RepositoryName", # required
542
+ # next_token: "NextToken",
543
+ # }
544
+ #
545
+ # @!attribute [rw] repository_name
546
+ # The name of the repository that contains the branches.
547
+ # @return [String]
548
+ #
549
+ # @!attribute [rw] next_token
550
+ # An enumeration token that allows the operation to batch the results.
551
+ # @return [String]
552
+ #
553
+ class ListBranchesInput < Struct.new(
554
+ :repository_name,
555
+ :next_token)
556
+ include Aws::Structure
557
+ end
558
+
559
+ # Represents the output of a list branches operation.
560
+ #
561
+ # @!attribute [rw] branches
562
+ # The list of branch names.
563
+ # @return [Array<String>]
564
+ #
565
+ # @!attribute [rw] next_token
566
+ # An enumeration token that returns the batch of the results.
567
+ # @return [String]
568
+ #
569
+ class ListBranchesOutput < Struct.new(
570
+ :branches,
571
+ :next_token)
572
+ include Aws::Structure
573
+ end
574
+
575
+ # Represents the input of a list repositories operation.
576
+ #
577
+ # @note When making an API call, you may pass ListRepositoriesInput
578
+ # data as a hash:
579
+ #
580
+ # {
581
+ # next_token: "NextToken",
582
+ # sort_by: "repositoryName", # accepts repositoryName, lastModifiedDate
583
+ # order: "ascending", # accepts ascending, descending
584
+ # }
585
+ #
586
+ # @!attribute [rw] next_token
587
+ # An enumeration token that allows the operation to batch the results
588
+ # of the operation. Batch sizes are 1,000 for list repository
589
+ # operations. When the client sends the token back to AWS CodeCommit,
590
+ # another page of 1,000 records is retrieved.
591
+ # @return [String]
592
+ #
593
+ # @!attribute [rw] sort_by
594
+ # The criteria used to sort the results of a list repositories
595
+ # operation.
596
+ # @return [String]
597
+ #
598
+ # @!attribute [rw] order
599
+ # The order in which to sort the results of a list repositories
600
+ # operation.
601
+ # @return [String]
602
+ #
603
+ class ListRepositoriesInput < Struct.new(
604
+ :next_token,
605
+ :sort_by,
606
+ :order)
607
+ include Aws::Structure
608
+ end
609
+
610
+ # Represents the output of a list repositories operation.
611
+ #
612
+ # @!attribute [rw] repositories
613
+ # Lists the repositories called by the list repositories operation.
614
+ # @return [Array<Types::RepositoryNameIdPair>]
615
+ #
616
+ # @!attribute [rw] next_token
617
+ # An enumeration token that allows the operation to batch the results
618
+ # of the operation. Batch sizes are 1,000 for list repository
619
+ # operations. When the client sends the token back to AWS CodeCommit,
620
+ # another page of 1,000 records is retrieved.
621
+ # @return [String]
622
+ #
623
+ class ListRepositoriesOutput < Struct.new(
624
+ :repositories,
625
+ :next_token)
626
+ include Aws::Structure
627
+ end
628
+
629
+ # Represents the input ofa put repository triggers operation.
630
+ #
631
+ # @note When making an API call, you may pass PutRepositoryTriggersInput
632
+ # data as a hash:
633
+ #
634
+ # {
635
+ # repository_name: "RepositoryName", # required
636
+ # triggers: [ # required
637
+ # {
638
+ # name: "RepositoryTriggerName", # required
639
+ # destination_arn: "Arn", # required
640
+ # custom_data: "RepositoryTriggerCustomData",
641
+ # branches: ["BranchName"],
642
+ # events: ["all"], # required, accepts all, updateReference, createReference, deleteReference
643
+ # },
644
+ # ],
645
+ # }
646
+ #
647
+ # @!attribute [rw] repository_name
648
+ # The name of the repository where you want to create or update the
649
+ # trigger.
650
+ # @return [String]
651
+ #
652
+ # @!attribute [rw] triggers
653
+ # The JSON block of configuration information for each trigger.
654
+ # @return [Array<Types::RepositoryTrigger>]
655
+ #
656
+ class PutRepositoryTriggersInput < Struct.new(
657
+ :repository_name,
658
+ :triggers)
659
+ include Aws::Structure
660
+ end
661
+
662
+ # Represents the output of a put repository triggers operation.
663
+ #
664
+ # @!attribute [rw] configuration_id
665
+ # The system-generated unique ID for the create or update operation.
666
+ # @return [String]
667
+ #
668
+ class PutRepositoryTriggersOutput < Struct.new(
669
+ :configuration_id)
670
+ include Aws::Structure
671
+ end
699
672
 
673
+ # Information about a repository.
674
+ #
675
+ # @!attribute [rw] account_id
676
+ # The ID of the AWS account associated with the repository.
677
+ # @return [String]
678
+ #
679
+ # @!attribute [rw] repository_id
680
+ # The ID of the repository.
681
+ # @return [String]
682
+ #
683
+ # @!attribute [rw] repository_name
684
+ # The repository's name.
685
+ # @return [String]
686
+ #
687
+ # @!attribute [rw] repository_description
688
+ # A comment or description about the repository.
689
+ # @return [String]
690
+ #
691
+ # @!attribute [rw] default_branch
692
+ # The repository's default branch name.
693
+ # @return [String]
694
+ #
695
+ # @!attribute [rw] last_modified_date
696
+ # The date and time the repository was last modified, in timestamp
697
+ # format.
698
+ # @return [Time]
699
+ #
700
+ # @!attribute [rw] creation_date
701
+ # The date and time the repository was created, in timestamp format.
702
+ # @return [Time]
703
+ #
704
+ # @!attribute [rw] clone_url_http
705
+ # The URL to use for cloning the repository over HTTPS.
706
+ # @return [String]
707
+ #
708
+ # @!attribute [rw] clone_url_ssh
709
+ # The URL to use for cloning the repository over SSH.
710
+ # @return [String]
711
+ #
712
+ # @!attribute [rw] arn
713
+ # The Amazon Resource Name (ARN) of the repository.
714
+ # @return [String]
715
+ #
716
+ class RepositoryMetadata < Struct.new(
717
+ :account_id,
718
+ :repository_id,
719
+ :repository_name,
720
+ :repository_description,
721
+ :default_branch,
722
+ :last_modified_date,
723
+ :creation_date,
724
+ :clone_url_http,
725
+ :clone_url_ssh,
726
+ :arn)
727
+ include Aws::Structure
700
728
  end
729
+
730
+ # Information about a repository name and ID.
731
+ #
732
+ # @!attribute [rw] repository_name
733
+ # The name associated with the repository.
734
+ # @return [String]
735
+ #
736
+ # @!attribute [rw] repository_id
737
+ # The ID associated with the repository.
738
+ # @return [String]
739
+ #
740
+ class RepositoryNameIdPair < Struct.new(
741
+ :repository_name,
742
+ :repository_id)
743
+ include Aws::Structure
744
+ end
745
+
746
+ # Information about a trigger for a repository.
747
+ #
748
+ # @note When making an API call, you may pass RepositoryTrigger
749
+ # data as a hash:
750
+ #
751
+ # {
752
+ # name: "RepositoryTriggerName", # required
753
+ # destination_arn: "Arn", # required
754
+ # custom_data: "RepositoryTriggerCustomData",
755
+ # branches: ["BranchName"],
756
+ # events: ["all"], # required, accepts all, updateReference, createReference, deleteReference
757
+ # }
758
+ #
759
+ # @!attribute [rw] name
760
+ # The name of the trigger.
761
+ # @return [String]
762
+ #
763
+ # @!attribute [rw] destination_arn
764
+ # The ARN of the resource that is the target for a trigger. For
765
+ # example, the ARN of a topic in Amazon Simple Notification Service
766
+ # (SNS).
767
+ # @return [String]
768
+ #
769
+ # @!attribute [rw] custom_data
770
+ # Any custom data associated with the trigger that will be included in
771
+ # the information sent to the target of the trigger.
772
+ # @return [String]
773
+ #
774
+ # @!attribute [rw] branches
775
+ # The branches that will be included in the trigger configuration. If
776
+ # no branches are specified, the trigger will apply to all branches.
777
+ # @return [Array<String>]
778
+ #
779
+ # @!attribute [rw] events
780
+ # The repository events that will cause the trigger to run actions in
781
+ # another service, such as sending a notification through Amazon
782
+ # Simple Notification Service (SNS).
783
+ #
784
+ # <note markdown="1"> The valid value "all" cannot be used with any other values.
785
+ #
786
+ # </note>
787
+ # @return [Array<String>]
788
+ #
789
+ class RepositoryTrigger < Struct.new(
790
+ :name,
791
+ :destination_arn,
792
+ :custom_data,
793
+ :branches,
794
+ :events)
795
+ include Aws::Structure
796
+ end
797
+
798
+ # A trigger failed to run.
799
+ #
800
+ # @!attribute [rw] trigger
801
+ # The name of the trigger that did not run.
802
+ # @return [String]
803
+ #
804
+ # @!attribute [rw] failure_message
805
+ # Additional message information about the trigger that did not run.
806
+ # @return [String]
807
+ #
808
+ class RepositoryTriggerExecutionFailure < Struct.new(
809
+ :trigger,
810
+ :failure_message)
811
+ include Aws::Structure
812
+ end
813
+
814
+ # Represents the input of a test repository triggers operation.
815
+ #
816
+ # @note When making an API call, you may pass TestRepositoryTriggersInput
817
+ # data as a hash:
818
+ #
819
+ # {
820
+ # repository_name: "RepositoryName", # required
821
+ # triggers: [ # required
822
+ # {
823
+ # name: "RepositoryTriggerName", # required
824
+ # destination_arn: "Arn", # required
825
+ # custom_data: "RepositoryTriggerCustomData",
826
+ # branches: ["BranchName"],
827
+ # events: ["all"], # required, accepts all, updateReference, createReference, deleteReference
828
+ # },
829
+ # ],
830
+ # }
831
+ #
832
+ # @!attribute [rw] repository_name
833
+ # The name of the repository in which to test the triggers.
834
+ # @return [String]
835
+ #
836
+ # @!attribute [rw] triggers
837
+ # The list of triggers to test.
838
+ # @return [Array<Types::RepositoryTrigger>]
839
+ #
840
+ class TestRepositoryTriggersInput < Struct.new(
841
+ :repository_name,
842
+ :triggers)
843
+ include Aws::Structure
844
+ end
845
+
846
+ # Represents the output of a test repository triggers operation.
847
+ #
848
+ # @!attribute [rw] successful_executions
849
+ # The list of triggers that were successfully tested. This list
850
+ # provides the names of the triggers that were successfully tested,
851
+ # separated by commas.
852
+ # @return [Array<String>]
853
+ #
854
+ # @!attribute [rw] failed_executions
855
+ # The list of triggers that were not able to be tested. This list
856
+ # provides the names of the triggers that could not be tested,
857
+ # separated by commas.
858
+ # @return [Array<Types::RepositoryTriggerExecutionFailure>]
859
+ #
860
+ class TestRepositoryTriggersOutput < Struct.new(
861
+ :successful_executions,
862
+ :failed_executions)
863
+ include Aws::Structure
864
+ end
865
+
866
+ # Represents the input of an update default branch operation.
867
+ #
868
+ # @note When making an API call, you may pass UpdateDefaultBranchInput
869
+ # data as a hash:
870
+ #
871
+ # {
872
+ # repository_name: "RepositoryName", # required
873
+ # default_branch_name: "BranchName", # required
874
+ # }
875
+ #
876
+ # @!attribute [rw] repository_name
877
+ # The name of the repository to set or change the default branch for.
878
+ # @return [String]
879
+ #
880
+ # @!attribute [rw] default_branch_name
881
+ # The name of the branch to set as the default.
882
+ # @return [String]
883
+ #
884
+ class UpdateDefaultBranchInput < Struct.new(
885
+ :repository_name,
886
+ :default_branch_name)
887
+ include Aws::Structure
888
+ end
889
+
890
+ # Represents the input of an update repository description operation.
891
+ #
892
+ # @note When making an API call, you may pass UpdateRepositoryDescriptionInput
893
+ # data as a hash:
894
+ #
895
+ # {
896
+ # repository_name: "RepositoryName", # required
897
+ # repository_description: "RepositoryDescription",
898
+ # }
899
+ #
900
+ # @!attribute [rw] repository_name
901
+ # The name of the repository to set or change the comment or
902
+ # description for.
903
+ # @return [String]
904
+ #
905
+ # @!attribute [rw] repository_description
906
+ # The new comment or description for the specified repository.
907
+ # Repository descriptions are limited to 1,000 characters.
908
+ # @return [String]
909
+ #
910
+ class UpdateRepositoryDescriptionInput < Struct.new(
911
+ :repository_name,
912
+ :repository_description)
913
+ include Aws::Structure
914
+ end
915
+
916
+ # Represents the input of an update repository description operation.
917
+ #
918
+ # @note When making an API call, you may pass UpdateRepositoryNameInput
919
+ # data as a hash:
920
+ #
921
+ # {
922
+ # old_name: "RepositoryName", # required
923
+ # new_name: "RepositoryName", # required
924
+ # }
925
+ #
926
+ # @!attribute [rw] old_name
927
+ # The existing name of the repository.
928
+ # @return [String]
929
+ #
930
+ # @!attribute [rw] new_name
931
+ # The new name for the repository.
932
+ # @return [String]
933
+ #
934
+ class UpdateRepositoryNameInput < Struct.new(
935
+ :old_name,
936
+ :new_name)
937
+ include Aws::Structure
938
+ end
939
+
940
+ # Information about the user who made a specified commit.
941
+ #
942
+ # @!attribute [rw] name
943
+ # The name of the user who made the specified commit.
944
+ # @return [String]
945
+ #
946
+ # @!attribute [rw] email
947
+ # The email address associated with the user who made the commit, if
948
+ # any.
949
+ # @return [String]
950
+ #
951
+ # @!attribute [rw] date
952
+ # The date when the specified commit was pushed to the repository.
953
+ # @return [String]
954
+ #
955
+ class UserInfo < Struct.new(
956
+ :name,
957
+ :email,
958
+ :date)
959
+ include Aws::Structure
960
+ end
961
+
701
962
  end
702
963
  end