-
Notifications
You must be signed in to change notification settings - Fork 597
/
types.go
2170 lines (1766 loc) · 78.5 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// Specifies restrictions for the batch build.
type BatchRestrictions struct {
// An array of strings that specify the compute types that are allowed for the
// batch build. See Build environment compute types
// (https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html)
// in the CodeBuild User Guide for these values.
ComputeTypesAllowed []string
// Specifies the maximum number of builds allowed.
MaximumBuildsAllowed *int32
noSmithyDocumentSerde
}
// Information about a build.
type Build struct {
// The Amazon Resource Name (ARN) of the build.
Arn *string
// Information about the output artifacts for the build.
Artifacts *BuildArtifacts
// The ARN of the batch build that this build is a member of, if applicable.
BuildBatchArn *string
// Whether the build is complete. True if complete; otherwise, false.
BuildComplete bool
// The number of the build. For each project, the buildNumber of its first build is
// 1. The buildNumber of each subsequent build is incremented by 1. If a build is
// deleted, the buildNumber of other builds does not change.
BuildNumber *int64
// The current status of the build. Valid values include:
//
// * FAILED: The build
// failed.
//
// * FAULT: The build faulted.
//
// * IN_PROGRESS: The build is still in
// progress.
//
// * STOPPED: The build stopped.
//
// * SUCCEEDED: The build succeeded.
//
// *
// TIMED_OUT: The build timed out.
BuildStatus StatusType
// Information about the cache for the build.
Cache *ProjectCache
// The current build phase.
CurrentPhase *string
// Contains information about the debug session for this build.
DebugSession *DebugSession
// The Key Management Service customer master key (CMK) to be used for encrypting
// the build output artifacts. You can use a cross-account KMS key to encrypt the
// build output artifacts if your service role has permission to that key. You can
// specify either the Amazon Resource Name (ARN) of the CMK or, if available, the
// CMK's alias (using the format alias/).
EncryptionKey *string
// When the build process ended, expressed in Unix time format.
EndTime *time.Time
// Information about the build environment for this build.
Environment *ProjectEnvironment
// A list of exported environment variables for this build. Exported environment
// variables are used in conjunction with CodePipeline to export environment
// variables from the current build stage to subsequent stages in the pipeline. For
// more information, see Working with variables
// (https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-variables.html)
// in the CodePipeline User Guide.
ExportedEnvironmentVariables []ExportedEnvironmentVariable
// An array of ProjectFileSystemLocation objects for a CodeBuild build project. A
// ProjectFileSystemLocation object specifies the identifier, location,
// mountOptions, mountPoint, and type of a file system created using Amazon Elastic
// File System.
FileSystemLocations []ProjectFileSystemLocation
// The unique ID for the build.
Id *string
// The entity that started the build. Valid values include:
//
// * If CodePipeline
// started the build, the pipeline's name (for example,
// codepipeline/my-demo-pipeline).
//
// * If an IAM user started the build, the user's
// name (for example, MyUserName).
//
// * If the Jenkins plugin for CodeBuild started
// the build, the string CodeBuild-Jenkins-Plugin.
Initiator *string
// Information about the build's logs in CloudWatch Logs.
Logs *LogsLocation
// Describes a network interface.
NetworkInterface *NetworkInterface
// Information about all previous build phases that are complete and information
// about any current build phase that is not yet complete.
Phases []BuildPhase
// The name of the CodeBuild project.
ProjectName *string
// The number of minutes a build is allowed to be queued before it times out.
QueuedTimeoutInMinutes *int32
// An array of the ARNs associated with this build's reports.
ReportArns []string
// An identifier for the version of this build's source code.
//
// * For CodeCommit,
// GitHub, GitHub Enterprise, and BitBucket, the commit ID.
//
// * For CodePipeline,
// the source revision provided by CodePipeline.
//
// * For Amazon S3, this does not
// apply.
ResolvedSourceVersion *string
// An array of ProjectArtifacts objects.
SecondaryArtifacts []BuildArtifacts
// An array of ProjectSourceVersion objects. Each ProjectSourceVersion must be one
// of:
//
// * For CodeCommit: the commit ID, branch, or Git tag to use.
//
// * For GitHub:
// the commit ID, pull request ID, branch name, or tag name that corresponds to the
// version of the source code you want to build. If a pull request ID is specified,
// it must use the format pr/pull-request-ID (for example, pr/25). If a branch name
// is specified, the branch's HEAD commit ID is used. If not specified, the default
// branch's HEAD commit ID is used.
//
// * For Bitbucket: the commit ID, branch name,
// or tag name that corresponds to the version of the source code you want to
// build. If a branch name is specified, the branch's HEAD commit ID is used. If
// not specified, the default branch's HEAD commit ID is used.
//
// * For Amazon S3:
// the version ID of the object that represents the build input ZIP file to use.
SecondarySourceVersions []ProjectSourceVersion
// An array of ProjectSource objects.
SecondarySources []ProjectSource
// The name of a service role used for this build.
ServiceRole *string
// Information about the source code to be built.
Source *ProjectSource
// Any version identifier for the version of the source code to be built. If
// sourceVersion is specified at the project level, then this sourceVersion (at the
// build level) takes precedence. For more information, see Source Version Sample
// with CodeBuild
// (https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html)
// in the CodeBuild User Guide.
SourceVersion *string
// When the build process started, expressed in Unix time format.
StartTime *time.Time
// How long, in minutes, for CodeBuild to wait before timing out this build if it
// does not get marked as completed.
TimeoutInMinutes *int32
// If your CodeBuild project accesses resources in an Amazon VPC, you provide this
// parameter that identifies the VPC ID and the list of security group IDs and
// subnet IDs. The security groups and subnets must belong to the same VPC. You
// must provide at least one security group and one subnet ID.
VpcConfig *VpcConfig
noSmithyDocumentSerde
}
// Information about build output artifacts.
type BuildArtifacts struct {
// An identifier for this artifact definition.
ArtifactIdentifier *string
// Specifies the bucket owner's access for objects that another account uploads to
// their Amazon S3 bucket. By default, only the account that uploads the objects to
// the bucket has access to these objects. This property allows you to give the
// bucket owner access to these objects. To use this property, your CodeBuild
// service role must have the s3:PutBucketAcl permission. This permission allows
// CodeBuild to modify the access control list for the bucket. This property can be
// one of the following values: NONE The bucket owner does not have access to the
// objects. This is the default. READ_ONLY The bucket owner has read-only access to
// the objects. The uploading account retains ownership of the objects. FULL The
// bucket owner has full access to the objects. Object ownership is determined by
// the following criteria:
//
// * If the bucket is configured with the Bucket owner
// preferred setting, the bucket owner owns the objects. The uploading account will
// have object access as specified by the bucket's policy.
//
// * Otherwise, the
// uploading account retains ownership of the objects.
//
// For more information about
// Amazon S3 object ownership, see Controlling ownership of uploaded objects using
// S3 Object Ownership
// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html)
// in the Amazon Simple Storage Service User Guide.
BucketOwnerAccess BucketOwnerAccess
// Information that tells you if encryption for build artifacts is disabled.
EncryptionDisabled *bool
// Information about the location of the build artifacts.
Location *string
// The MD5 hash of the build artifact. You can use this hash along with a checksum
// tool to confirm file integrity and authenticity. This value is available only if
// the build project's packaging value is set to ZIP.
Md5sum *string
// If this flag is set, a name specified in the buildspec file overrides the
// artifact name. The name specified in a buildspec file is calculated at build
// time and uses the Shell Command Language. For example, you can append a date and
// time to your artifact name so that it is always unique.
OverrideArtifactName *bool
// The SHA-256 hash of the build artifact. You can use this hash along with a
// checksum tool to confirm file integrity and authenticity. This value is
// available only if the build project's packaging value is set to ZIP.
Sha256sum *string
noSmithyDocumentSerde
}
// Contains information about a batch build.
type BuildBatch struct {
// The ARN of the batch build.
Arn *string
// A BuildArtifacts object the defines the build artifacts for this batch build.
Artifacts *BuildArtifacts
// Contains configuration information about a batch build project.
BuildBatchConfig *ProjectBuildBatchConfig
// The number of the batch build. For each project, the buildBatchNumber of its
// first batch build is 1. The buildBatchNumber of each subsequent batch build is
// incremented by 1. If a batch build is deleted, the buildBatchNumber of other
// batch builds does not change.
BuildBatchNumber *int64
// The status of the batch build.
BuildBatchStatus StatusType
// An array of BuildGroup objects that define the build groups for the batch build.
BuildGroups []BuildGroup
// Specifies the maximum amount of time, in minutes, that the build in a batch must
// be completed in.
BuildTimeoutInMinutes *int32
// Information about the cache for the build project.
Cache *ProjectCache
// Indicates if the batch build is complete.
Complete bool
// The current phase of the batch build.
CurrentPhase *string
// Specifies if session debugging is enabled for this batch build. For more
// information, see Viewing a running build in Session Manager
// (https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html).
// Batch session debugging is not supported for matrix batch builds.
DebugSessionEnabled *bool
// The Key Management Service customer master key (CMK) to be used for encrypting
// the batch build output artifacts. You can use a cross-account KMS key to encrypt
// the build output artifacts if your service role has permission to that key. You
// can specify either the Amazon Resource Name (ARN) of the CMK or, if available,
// the CMK's alias (using the format alias/).
EncryptionKey *string
// The date and time that the batch build ended.
EndTime *time.Time
// Information about the build environment of the build project.
Environment *ProjectEnvironment
// An array of ProjectFileSystemLocation objects for the batch build project. A
// ProjectFileSystemLocation object specifies the identifier, location,
// mountOptions, mountPoint, and type of a file system created using Amazon Elastic
// File System.
FileSystemLocations []ProjectFileSystemLocation
// The identifier of the batch build.
Id *string
// The entity that started the batch build. Valid values include:
//
// * If
// CodePipeline started the build, the pipeline's name (for example,
// codepipeline/my-demo-pipeline).
//
// * If an IAM user started the build, the user's
// name.
//
// * If the Jenkins plugin for CodeBuild started the build, the string
// CodeBuild-Jenkins-Plugin.
Initiator *string
// Information about logs for a build project. These can be logs in CloudWatch
// Logs, built in a specified S3 bucket, or both.
LogConfig *LogsConfig
// An array of BuildBatchPhase objects the specify the phases of the batch build.
Phases []BuildBatchPhase
// The name of the batch build project.
ProjectName *string
// Specifies the amount of time, in minutes, that the batch build is allowed to be
// queued before it times out.
QueuedTimeoutInMinutes *int32
// The identifier of the resolved version of this batch build's source code.
//
// * For
// CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID.
//
// * For
// CodePipeline, the source revision provided by CodePipeline.
//
// * For Amazon S3,
// this does not apply.
ResolvedSourceVersion *string
// An array of BuildArtifacts objects the define the build artifacts for this batch
// build.
SecondaryArtifacts []BuildArtifacts
// An array of ProjectSourceVersion objects. Each ProjectSourceVersion must be one
// of:
//
// * For CodeCommit: the commit ID, branch, or Git tag to use.
//
// * For GitHub:
// the commit ID, pull request ID, branch name, or tag name that corresponds to the
// version of the source code you want to build. If a pull request ID is specified,
// it must use the format pr/pull-request-ID (for example, pr/25). If a branch name
// is specified, the branch's HEAD commit ID is used. If not specified, the default
// branch's HEAD commit ID is used.
//
// * For Bitbucket: the commit ID, branch name,
// or tag name that corresponds to the version of the source code you want to
// build. If a branch name is specified, the branch's HEAD commit ID is used. If
// not specified, the default branch's HEAD commit ID is used.
//
// * For Amazon S3:
// the version ID of the object that represents the build input ZIP file to use.
SecondarySourceVersions []ProjectSourceVersion
// An array of ProjectSource objects that define the sources for the batch build.
SecondarySources []ProjectSource
// The name of a service role used for builds in the batch.
ServiceRole *string
// Information about the build input source code for the build project.
Source *ProjectSource
// The identifier of the version of the source code to be built.
SourceVersion *string
// The date and time that the batch build started.
StartTime *time.Time
// Information about the VPC configuration that CodeBuild accesses.
VpcConfig *VpcConfig
noSmithyDocumentSerde
}
// Specifies filters when retrieving batch builds.
type BuildBatchFilter struct {
// The status of the batch builds to retrieve. Only batch builds that have this
// status will be retrieved.
Status StatusType
noSmithyDocumentSerde
}
// Contains information about a stage for a batch build.
type BuildBatchPhase struct {
// Additional information about the batch build phase. Especially to help
// troubleshoot a failed batch build.
Contexts []PhaseContext
// How long, in seconds, between the starting and ending times of the batch build's
// phase.
DurationInSeconds *int64
// When the batch build phase ended, expressed in Unix time format.
EndTime *time.Time
// The current status of the batch build phase. Valid values include: FAILED The
// build phase failed. FAULT The build phase faulted. IN_PROGRESS The build phase
// is still in progress. STOPPED The build phase stopped. SUCCEEDED The build phase
// succeeded. TIMED_OUT The build phase timed out.
PhaseStatus StatusType
// The name of the batch build phase. Valid values include: COMBINE_ARTIFACTS Build
// output artifacts are being combined and uploaded to the output location.
// DOWNLOAD_BATCHSPEC The batch build specification is being downloaded. FAILED One
// or more of the builds failed. IN_PROGRESS The batch build is in progress.
// STOPPED The batch build was stopped. SUBMITTED The btach build has been
// submitted. SUCCEEDED The batch build succeeded.
PhaseType BuildBatchPhaseType
// When the batch build phase started, expressed in Unix time format.
StartTime *time.Time
noSmithyDocumentSerde
}
// Contains information about a batch build build group. Build groups are used to
// combine builds that can run in parallel, while still being able to set
// dependencies on other build groups.
type BuildGroup struct {
// A BuildSummary object that contains a summary of the current build group.
CurrentBuildSummary *BuildSummary
// An array of strings that contain the identifiers of the build groups that this
// build group depends on.
DependsOn []string
// Contains the identifier of the build group.
Identifier *string
// Specifies if failures in this build group can be ignored.
IgnoreFailure bool
// An array of BuildSummary objects that contain summaries of previous build
// groups.
PriorBuildSummaryList []BuildSummary
noSmithyDocumentSerde
}
// Information about a build that could not be successfully deleted.
type BuildNotDeleted struct {
// The ID of the build that could not be successfully deleted.
Id *string
// Additional information about the build that could not be successfully deleted.
StatusCode *string
noSmithyDocumentSerde
}
// Information about a stage for a build.
type BuildPhase struct {
// Additional information about a build phase, especially to help troubleshoot a
// failed build.
Contexts []PhaseContext
// How long, in seconds, between the starting and ending times of the build's
// phase.
DurationInSeconds *int64
// When the build phase ended, expressed in Unix time format.
EndTime *time.Time
// The current status of the build phase. Valid values include: FAILED The build
// phase failed. FAULT The build phase faulted. IN_PROGRESS The build phase is
// still in progress. STOPPED The build phase stopped. SUCCEEDED The build phase
// succeeded. TIMED_OUT The build phase timed out.
PhaseStatus StatusType
// The name of the build phase. Valid values include: BUILD Core build activities
// typically occur in this build phase. COMPLETED The build has been completed.
// DOWNLOAD_SOURCE Source code is being downloaded in this build phase. FINALIZING
// The build process is completing in this build phase. INSTALL Installation
// activities typically occur in this build phase. POST_BUILD Post-build activities
// typically occur in this build phase. PRE_BUILD Pre-build activities typically
// occur in this build phase. PROVISIONING The build environment is being set up.
// QUEUED The build has been submitted and is queued behind other submitted builds.
// SUBMITTED The build has been submitted. UPLOAD_ARTIFACTS Build output artifacts
// are being uploaded to the output location.
PhaseType BuildPhaseType
// When the build phase started, expressed in Unix time format.
StartTime *time.Time
noSmithyDocumentSerde
}
// Contains information that defines how the CodeBuild build project reports the
// build status to the source provider.
type BuildStatusConfig struct {
// Specifies the context of the build status CodeBuild sends to the source
// provider. The usage of this parameter depends on the source provider. Bitbucket
// This parameter is used for the name parameter in the Bitbucket commit status.
// For more information, see build
// (https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build)
// in the Bitbucket API documentation. GitHub/GitHub Enterprise Server This
// parameter is used for the context parameter in the GitHub commit status. For
// more information, see Create a commit status
// (https://developer.github.com/v3/repos/statuses/#create-a-commit-status) in the
// GitHub developer guide.
Context *string
// Specifies the target url of the build status CodeBuild sends to the source
// provider. The usage of this parameter depends on the source provider. Bitbucket
// This parameter is used for the url parameter in the Bitbucket commit status. For
// more information, see build
// (https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build)
// in the Bitbucket API documentation. GitHub/GitHub Enterprise Server This
// parameter is used for the target_url parameter in the GitHub commit status. For
// more information, see Create a commit status
// (https://developer.github.com/v3/repos/statuses/#create-a-commit-status) in the
// GitHub developer guide.
TargetUrl *string
noSmithyDocumentSerde
}
// Contains summary information about a batch build group.
type BuildSummary struct {
// The batch build ARN.
Arn *string
// The status of the build group. FAILED The build group failed. FAULT The build
// group faulted. IN_PROGRESS The build group is still in progress. STOPPED The
// build group stopped. SUCCEEDED The build group succeeded. TIMED_OUT The build
// group timed out.
BuildStatus StatusType
// A ResolvedArtifact object that represents the primary build artifacts for the
// build group.
PrimaryArtifact *ResolvedArtifact
// When the build was started, expressed in Unix time format.
RequestedOn *time.Time
// An array of ResolvedArtifact objects that represents the secondary build
// artifacts for the build group.
SecondaryArtifacts []ResolvedArtifact
noSmithyDocumentSerde
}
// Information about CloudWatch Logs for a build project.
type CloudWatchLogsConfig struct {
// The current status of the logs in CloudWatch Logs for a build project. Valid
// values are:
//
// * ENABLED: CloudWatch Logs are enabled for this build project.
//
// *
// DISABLED: CloudWatch Logs are not enabled for this build project.
//
// This member is required.
Status LogsConfigStatusType
// The group name of the logs in CloudWatch Logs. For more information, see Working
// with Log Groups and Log Streams
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html).
GroupName *string
// The prefix of the stream name of the CloudWatch Logs. For more information, see
// Working with Log Groups and Log Streams
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html).
StreamName *string
noSmithyDocumentSerde
}
// Contains code coverage report information. Line coverage measures how many
// statements your tests cover. A statement is a single instruction, not including
// comments, conditionals, etc. Branch coverage determines if your tests cover
// every possible branch of a control structure, such as an if or case statement.
type CodeCoverage struct {
// The percentage of branches that are covered by your tests.
BranchCoveragePercentage *float64
// The number of conditional branches that are covered by your tests.
BranchesCovered *int32
// The number of conditional branches that are not covered by your tests.
BranchesMissed *int32
// The date and time that the tests were run.
Expired *time.Time
// The path of the test report file.
FilePath *string
// The identifier of the code coverage report.
Id *string
// The percentage of lines that are covered by your tests.
LineCoveragePercentage *float64
// The number of lines that are covered by your tests.
LinesCovered *int32
// The number of lines that are not covered by your tests.
LinesMissed *int32
// The ARN of the report.
ReportARN *string
noSmithyDocumentSerde
}
// Contains a summary of a code coverage report. Line coverage measures how many
// statements your tests cover. A statement is a single instruction, not including
// comments, conditionals, etc. Branch coverage determines if your tests cover
// every possible branch of a control structure, such as an if or case statement.
type CodeCoverageReportSummary struct {
// The percentage of branches that are covered by your tests.
BranchCoveragePercentage *float64
// The number of conditional branches that are covered by your tests.
BranchesCovered *int32
// The number of conditional branches that are not covered by your tests.
BranchesMissed *int32
// The percentage of lines that are covered by your tests.
LineCoveragePercentage *float64
// The number of lines that are covered by your tests.
LinesCovered *int32
// The number of lines that are not covered by your tests.
LinesMissed *int32
noSmithyDocumentSerde
}
// Contains information about the debug session for a build. For more information,
// see Viewing a running build in Session Manager
// (https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html).
type DebugSession struct {
// Specifies if session debugging is enabled for this build.
SessionEnabled *bool
// Contains the identifier of the Session Manager session used for the build. To
// work with the paused build, you open this session to examine, control, and
// resume the build.
SessionTarget *string
noSmithyDocumentSerde
}
// Information about a Docker image that is managed by CodeBuild.
type EnvironmentImage struct {
// The description of the Docker image.
Description *string
// The name of the Docker image.
Name *string
// A list of environment image versions.
Versions []string
noSmithyDocumentSerde
}
// A set of Docker images that are related by programming language and are managed
// by CodeBuild.
type EnvironmentLanguage struct {
// The list of Docker images that are related by the specified programming
// language.
Images []EnvironmentImage
// The programming language for the Docker images.
Language LanguageType
noSmithyDocumentSerde
}
// A set of Docker images that are related by platform and are managed by
// CodeBuild.
type EnvironmentPlatform struct {
// The list of programming languages that are available for the specified platform.
Languages []EnvironmentLanguage
// The platform's name.
Platform PlatformType
noSmithyDocumentSerde
}
// Information about an environment variable for a build project or a build.
type EnvironmentVariable struct {
// The name or key of the environment variable.
//
// This member is required.
Name *string
// The value of the environment variable. We strongly discourage the use of
// PLAINTEXT environment variables to store sensitive values, especially Amazon Web
// Services secret key IDs and secret access keys. PLAINTEXT environment variables
// can be displayed in plain text using the CodeBuild console and the CLI. For
// sensitive values, we recommend you use an environment variable of type
// PARAMETER_STORE or SECRETS_MANAGER.
//
// This member is required.
Value *string
// The type of environment variable. Valid values include:
//
// * PARAMETER_STORE: An
// environment variable stored in Systems Manager Parameter Store. To learn how to
// specify a parameter store environment variable, see env/parameter-store
// (https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.env.parameter-store)
// in the CodeBuild User Guide.
//
// * PLAINTEXT: An environment variable in plain text
// format. This is the default value.
//
// * SECRETS_MANAGER: An environment variable
// stored in Secrets Manager. To learn how to specify a secrets manager environment
// variable, see env/secrets-manager
// (https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.env.secrets-manager)
// in the CodeBuild User Guide.
Type EnvironmentVariableType
noSmithyDocumentSerde
}
// Contains information about an exported environment variable. Exported
// environment variables are used in conjunction with CodePipeline to export
// environment variables from the current build stage to subsequent stages in the
// pipeline. For more information, see Working with variables
// (https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-variables.html)
// in the CodePipeline User Guide. During a build, the value of a variable is
// available starting with the install phase. It can be updated between the start
// of the install phase and the end of the post_build phase. After the post_build
// phase ends, the value of exported variables cannot change.
type ExportedEnvironmentVariable struct {
// The name of the exported environment variable.
Name *string
// The value assigned to the exported environment variable.
Value *string
noSmithyDocumentSerde
}
// Information about the Git submodules configuration for an CodeBuild build
// project.
type GitSubmodulesConfig struct {
// Set to true to fetch Git submodules for your CodeBuild build project.
//
// This member is required.
FetchSubmodules *bool
noSmithyDocumentSerde
}
// Information about logs for a build project. These can be logs in CloudWatch
// Logs, built in a specified S3 bucket, or both.
type LogsConfig struct {
// Information about CloudWatch Logs for a build project. CloudWatch Logs are
// enabled by default.
CloudWatchLogs *CloudWatchLogsConfig
// Information about logs built to an S3 bucket for a build project. S3 logs are
// not enabled by default.
S3Logs *S3LogsConfig
noSmithyDocumentSerde
}
// Information about build logs in CloudWatch Logs.
type LogsLocation struct {
// Information about CloudWatch Logs for a build project.
CloudWatchLogs *CloudWatchLogsConfig
// The ARN of CloudWatch Logs for a build project. Its format is
// arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}.
// For more information, see Resources Defined by CloudWatch Logs
// (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatchlogs.html#amazoncloudwatchlogs-resources-for-iam-policies).
CloudWatchLogsArn *string
// The URL to an individual build log in CloudWatch Logs.
DeepLink *string
// The name of the CloudWatch Logs group for the build logs.
GroupName *string
// The URL to a build log in an S3 bucket.
S3DeepLink *string
// Information about S3 logs for a build project.
S3Logs *S3LogsConfig
// The ARN of S3 logs for a build project. Its format is
// arn:${Partition}:s3:::${BucketName}/${ObjectName}. For more information, see
// Resources Defined by Amazon S3
// (https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html#amazons3-resources-for-iam-policies).
S3LogsArn *string
// The name of the CloudWatch Logs stream for the build logs.
StreamName *string
noSmithyDocumentSerde
}
// Describes a network interface.
type NetworkInterface struct {
// The ID of the network interface.
NetworkInterfaceId *string
// The ID of the subnet.
SubnetId *string
noSmithyDocumentSerde
}
// Additional information about a build phase that has an error. You can use this
// information for troubleshooting.
type PhaseContext struct {
// An explanation of the build phase's context. This might include a command ID and
// an exit code.
Message *string
// The status code for the context of the build phase.
StatusCode *string
noSmithyDocumentSerde
}
// Information about a build project.
type Project struct {
// The Amazon Resource Name (ARN) of the build project.
Arn *string
// Information about the build output artifacts for the build project.
Artifacts *ProjectArtifacts
// Information about the build badge for the build project.
Badge *ProjectBadge
// A ProjectBuildBatchConfig object that defines the batch build options for the
// project.
BuildBatchConfig *ProjectBuildBatchConfig
// Information about the cache for the build project.
Cache *ProjectCache
// The maximum number of concurrent builds that are allowed for this project. New
// builds are only started if the current number of builds is less than or equal to
// this limit. If the current build count meets this limit, new builds are
// throttled and are not run.
ConcurrentBuildLimit *int32
// When the build project was created, expressed in Unix time format.
Created *time.Time
// A description that makes the build project easy to identify.
Description *string
// The Key Management Service customer master key (CMK) to be used for encrypting
// the build output artifacts. You can use a cross-account KMS key to encrypt the
// build output artifacts if your service role has permission to that key. You can
// specify either the Amazon Resource Name (ARN) of the CMK or, if available, the
// CMK's alias (using the format alias/). If you don't specify a value, CodeBuild
// uses the managed CMK for Amazon Simple Storage Service (Amazon S3).
EncryptionKey *string
// Information about the build environment for this build project.
Environment *ProjectEnvironment
// An array of ProjectFileSystemLocation objects for a CodeBuild build project. A
// ProjectFileSystemLocation object specifies the identifier, location,
// mountOptions, mountPoint, and type of a file system created using Amazon Elastic
// File System.
FileSystemLocations []ProjectFileSystemLocation
// When the build project's settings were last modified, expressed in Unix time
// format.
LastModified *time.Time
// Information about logs for the build project. A project can create logs in
// CloudWatch Logs, an S3 bucket, or both.
LogsConfig *LogsConfig
// The name of the build project.
Name *string
// Specifies the visibility of the project's builds. Possible values are:
// PUBLIC_READ The project builds are visible to the public. PRIVATE The project
// builds are not visible to the public.
ProjectVisibility ProjectVisibilityType
// Contains the project identifier used with the public build APIs.
PublicProjectAlias *string
// The number of minutes a build is allowed to be queued before it times out.
QueuedTimeoutInMinutes *int32
// The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and
// Amazon S3 artifacts for the project's builds.
ResourceAccessRole *string
// An array of ProjectArtifacts objects.
SecondaryArtifacts []ProjectArtifacts
// An array of ProjectSourceVersion objects. If secondarySourceVersions is
// specified at the build level, then they take over these secondarySourceVersions
// (at the project level).
SecondarySourceVersions []ProjectSourceVersion
// An array of ProjectSource objects.
SecondarySources []ProjectSource
// The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon
// Web Services services on behalf of the Amazon Web Services account.
ServiceRole *string
// Information about the build input source code for this build project.
Source *ProjectSource
// A version of the build input to be built for this project. If not specified, the
// latest version is used. If specified, it must be one of:
//
// * For CodeCommit: the
// commit ID, branch, or Git tag to use.
//
// * For GitHub: the commit ID, pull request
// ID, branch name, or tag name that corresponds to the version of the source code
// you want to build. If a pull request ID is specified, it must use the format
// pr/pull-request-ID (for example pr/25). If a branch name is specified, the
// branch's HEAD commit ID is used. If not specified, the default branch's HEAD
// commit ID is used.
//
// * For Bitbucket: the commit ID, branch name, or tag name
// that corresponds to the version of the source code you want to build. If a
// branch name is specified, the branch's HEAD commit ID is used. If not specified,
// the default branch's HEAD commit ID is used.
//
// * For Amazon S3: the version ID of
// the object that represents the build input ZIP file to use.
//
// If sourceVersion is
// specified at the build level, then that version takes precedence over this
// sourceVersion (at the project level). For more information, see Source Version