aws-sdk-codebuild 1.57.0 → 1.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,6 +52,44 @@ module Aws::CodeBuild
52
52
  include Aws::Structure
53
53
  end
54
54
 
55
+ # @note When making an API call, you may pass BatchGetBuildBatchesInput
56
+ # data as a hash:
57
+ #
58
+ # {
59
+ # ids: ["NonEmptyString"], # required
60
+ # }
61
+ #
62
+ # @!attribute [rw] ids
63
+ # An array that contains the batch build identifiers to retrieve.
64
+ # @return [Array<String>]
65
+ #
66
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetBuildBatchesInput AWS API Documentation
67
+ #
68
+ class BatchGetBuildBatchesInput < Struct.new(
69
+ :ids)
70
+ SENSITIVE = []
71
+ include Aws::Structure
72
+ end
73
+
74
+ # @!attribute [rw] build_batches
75
+ # An array of `BuildBatch` objects that represent the retrieved batch
76
+ # builds.
77
+ # @return [Array<Types::BuildBatch>]
78
+ #
79
+ # @!attribute [rw] build_batches_not_found
80
+ # An array that contains the identifiers of any batch builds that are
81
+ # not found.
82
+ # @return [Array<String>]
83
+ #
84
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetBuildBatchesOutput AWS API Documentation
85
+ #
86
+ class BatchGetBuildBatchesOutput < Struct.new(
87
+ :build_batches,
88
+ :build_batches_not_found)
89
+ SENSITIVE = []
90
+ include Aws::Structure
91
+ end
92
+
55
93
  # @note When making an API call, you may pass BatchGetBuildsInput
56
94
  # data as a hash:
57
95
  #
@@ -202,6 +240,39 @@ module Aws::CodeBuild
202
240
  include Aws::Structure
203
241
  end
204
242
 
243
+ # Specifies restrictions for the batch build.
244
+ #
245
+ # @note When making an API call, you may pass BatchRestrictions
246
+ # data as a hash:
247
+ #
248
+ # {
249
+ # maximum_builds_allowed: 1,
250
+ # compute_types_allowed: ["NonEmptyString"],
251
+ # }
252
+ #
253
+ # @!attribute [rw] maximum_builds_allowed
254
+ # Specifies the maximum number of builds allowed.
255
+ # @return [Integer]
256
+ #
257
+ # @!attribute [rw] compute_types_allowed
258
+ # An array of strings that specify the compute types that are allowed
259
+ # for the batch build. See [Build environment compute types][1] in the
260
+ # *AWS CodeBuild User Guide* for these values.
261
+ #
262
+ #
263
+ #
264
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html
265
+ # @return [Array<String>]
266
+ #
267
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchRestrictions AWS API Documentation
268
+ #
269
+ class BatchRestrictions < Struct.new(
270
+ :maximum_builds_allowed,
271
+ :compute_types_allowed)
272
+ SENSITIVE = []
273
+ include Aws::Structure
274
+ end
275
+
205
276
  # Information about a build.
206
277
  #
207
278
  # @!attribute [rw] id
@@ -409,6 +480,11 @@ module Aws::CodeBuild
409
480
  # Contains information about the debug session for this build.
410
481
  # @return [Types::DebugSession]
411
482
  #
483
+ # @!attribute [rw] build_batch_arn
484
+ # The ARN of the batch build that this build is a member of, if
485
+ # applicable.
486
+ # @return [String]
487
+ #
412
488
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/Build AWS API Documentation
413
489
  #
414
490
  class Build < Struct.new(
@@ -442,7 +518,8 @@ module Aws::CodeBuild
442
518
  :exported_environment_variables,
443
519
  :report_arns,
444
520
  :file_system_locations,
445
- :debug_session)
521
+ :debug_session,
522
+ :build_batch_arn)
446
523
  SENSITIVE = []
447
524
  include Aws::Structure
448
525
  end
@@ -507,162 +584,553 @@ module Aws::CodeBuild
507
584
  include Aws::Structure
508
585
  end
509
586
 
510
- # Information about a build that could not be successfully deleted.
587
+ # Contains information about a batch build.
511
588
  #
512
589
  # @!attribute [rw] id
513
- # The ID of the build that could not be successfully deleted.
590
+ # The identifier of the batch build.
514
591
  # @return [String]
515
592
  #
516
- # @!attribute [rw] status_code
517
- # Additional information about the build that could not be
518
- # successfully deleted.
593
+ # @!attribute [rw] arn
594
+ # The ARN of the batch build.
519
595
  # @return [String]
520
596
  #
521
- # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildNotDeleted AWS API Documentation
597
+ # @!attribute [rw] start_time
598
+ # The date and time that the batch build started.
599
+ # @return [Time]
522
600
  #
523
- class BuildNotDeleted < Struct.new(
524
- :id,
525
- :status_code)
526
- SENSITIVE = []
527
- include Aws::Structure
528
- end
529
-
530
- # Information about a stage for a build.
601
+ # @!attribute [rw] end_time
602
+ # The date and time that the batch build ended.
603
+ # @return [Time]
531
604
  #
532
- # @!attribute [rw] phase_type
533
- # The name of the build phase. Valid values include:
605
+ # @!attribute [rw] current_phase
606
+ # The current phase of the batch build.
607
+ # @return [String]
534
608
  #
535
- # * `BUILD`\: Core build activities typically occur in this build
536
- # phase.
609
+ # @!attribute [rw] build_batch_status
610
+ # The status of the batch build.
611
+ # @return [String]
537
612
  #
538
- # * `COMPLETED`\: The build has been completed.
613
+ # @!attribute [rw] source_version
614
+ # The identifier of the version of the source code to be built.
615
+ # @return [String]
539
616
  #
540
- # * `DOWNLOAD_SOURCE`\: Source code is being downloaded in this build
541
- # phase.
617
+ # @!attribute [rw] resolved_source_version
618
+ # The identifier of the resolved version of this batch build's source
619
+ # code.
542
620
  #
543
- # * `FINALIZING`\: The build process is completing in this build
544
- # phase.
621
+ # * For AWS CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the
622
+ # commit ID.
545
623
  #
546
- # * `INSTALL`\: Installation activities typically occur in this build
547
- # phase.
624
+ # * For AWS CodePipeline, the source revision provided by AWS
625
+ # CodePipeline.
548
626
  #
549
- # * `POST_BUILD`\: Post-build activities typically occur in this build
550
- # phase.
627
+ # * For Amazon Simple Storage Service (Amazon S3), this does not
628
+ # apply.
629
+ # @return [String]
551
630
  #
552
- # * `PRE_BUILD`\: Pre-build activities typically occur in this build
553
- # phase.
631
+ # @!attribute [rw] project_name
632
+ # The name of the batch build project.
633
+ # @return [String]
554
634
  #
555
- # * `PROVISIONING`\: The build environment is being set up.
635
+ # @!attribute [rw] phases
636
+ # An array of `BuildBatchPhase` objects the specify the phases of the
637
+ # batch build.
638
+ # @return [Array<Types::BuildBatchPhase>]
556
639
  #
557
- # * `QUEUED`\: The build has been submitted and is queued behind other
558
- # submitted builds.
640
+ # @!attribute [rw] source
641
+ # Information about the build input source code for the build project.
642
+ # @return [Types::ProjectSource]
559
643
  #
560
- # * `SUBMITTED`\: The build has been submitted.
644
+ # @!attribute [rw] secondary_sources
645
+ # An array of `ProjectSource` objects that define the sources for the
646
+ # batch build.
647
+ # @return [Array<Types::ProjectSource>]
561
648
  #
562
- # * `UPLOAD_ARTIFACTS`\: Build output artifacts are being uploaded to
563
- # the output location.
649
+ # @!attribute [rw] secondary_source_versions
650
+ # An array of `ProjectSourceVersion` objects. Each
651
+ # `ProjectSourceVersion` must be one of:
652
+ #
653
+ # * For AWS CodeCommit: the commit ID, branch, or Git tag to use.
654
+ #
655
+ # * For GitHub: the commit ID, pull request ID, branch name, or tag
656
+ # name that corresponds to the version of the source code you want
657
+ # to build. If a pull request ID is specified, it must use the
658
+ # format `pr/pull-request-ID` (for example, `pr/25`). If a branch
659
+ # name is specified, the branch's HEAD commit ID is used. If not
660
+ # specified, the default branch's HEAD commit ID is used.
661
+ #
662
+ # * For Bitbucket: the commit ID, branch name, or tag name that
663
+ # corresponds to the version of the source code you want to build.
664
+ # If a branch name is specified, the branch's HEAD commit ID is
665
+ # used. If not specified, the default branch's HEAD commit ID is
666
+ # used.
667
+ #
668
+ # * For Amazon Simple Storage Service (Amazon S3): the version ID of
669
+ # the object that represents the build input ZIP file to use.
670
+ # @return [Array<Types::ProjectSourceVersion>]
671
+ #
672
+ # @!attribute [rw] artifacts
673
+ # A `BuildArtifacts` object the defines the build artifacts for this
674
+ # batch build.
675
+ # @return [Types::BuildArtifacts]
676
+ #
677
+ # @!attribute [rw] secondary_artifacts
678
+ # An array of `BuildArtifacts` objects the define the build artifacts
679
+ # for this batch build.
680
+ # @return [Array<Types::BuildArtifacts>]
681
+ #
682
+ # @!attribute [rw] cache
683
+ # Information about the cache for the build project.
684
+ # @return [Types::ProjectCache]
685
+ #
686
+ # @!attribute [rw] environment
687
+ # Information about the build environment of the build project.
688
+ # @return [Types::ProjectEnvironment]
689
+ #
690
+ # @!attribute [rw] service_role
691
+ # The name of a service role used for builds in the batch.
564
692
  # @return [String]
565
693
  #
566
- # @!attribute [rw] phase_status
567
- # The current status of the build phase. Valid values include:
694
+ # @!attribute [rw] log_config
695
+ # Information about logs for a build project. These can be logs in
696
+ # Amazon CloudWatch Logs, built in a specified S3 bucket, or both.
697
+ # @return [Types::LogsConfig]
568
698
  #
569
- # * `FAILED`\: The build phase failed.
699
+ # @!attribute [rw] build_timeout_in_minutes
700
+ # Specifies the maximum amount of time, in minutes, that the build in
701
+ # a batch must be completed in.
702
+ # @return [Integer]
570
703
  #
571
- # * `FAULT`\: The build phase faulted.
704
+ # @!attribute [rw] queued_timeout_in_minutes
705
+ # Specifies the amount of time, in minutes, that the batch build is
706
+ # allowed to be queued before it times out.
707
+ # @return [Integer]
572
708
  #
573
- # * `IN_PROGRESS`\: The build phase is still in progress.
709
+ # @!attribute [rw] complete
710
+ # Indicates if the batch build is complete.
711
+ # @return [Boolean]
574
712
  #
575
- # * `QUEUED`\: The build has been submitted and is queued behind other
576
- # submitted builds.
713
+ # @!attribute [rw] initiator
714
+ # The entity that started the batch build. Valid values include:
577
715
  #
578
- # * `STOPPED`\: The build phase stopped.
716
+ # * If AWS CodePipeline started the build, the pipeline's name (for
717
+ # example, `codepipeline/my-demo-pipeline`).
579
718
  #
580
- # * `SUCCEEDED`\: The build phase succeeded.
719
+ # * If an AWS Identity and Access Management (IAM) user started the
720
+ # build, the user's name.
581
721
  #
582
- # * `TIMED_OUT`\: The build phase timed out.
722
+ # * If the Jenkins plugin for AWS CodeBuild started the build, the
723
+ # string `CodeBuild-Jenkins-Plugin`.
583
724
  # @return [String]
584
725
  #
585
- # @!attribute [rw] start_time
586
- # When the build phase started, expressed in Unix time format.
587
- # @return [Time]
726
+ # @!attribute [rw] vpc_config
727
+ # Information about the VPC configuration that AWS CodeBuild accesses.
728
+ # @return [Types::VpcConfig]
588
729
  #
589
- # @!attribute [rw] end_time
590
- # When the build phase ended, expressed in Unix time format.
591
- # @return [Time]
730
+ # @!attribute [rw] encryption_key
731
+ # The AWS Key Management Service (AWS KMS) customer master key (CMK)
732
+ # to be used for encrypting the batch build output artifacts.
592
733
  #
593
- # @!attribute [rw] duration_in_seconds
594
- # How long, in seconds, between the starting and ending times of the
595
- # build's phase.
734
+ # <note markdown="1"> You can use a cross-account KMS key to encrypt the build output
735
+ # artifacts if your service role has permission to that key.
736
+ #
737
+ # </note>
738
+ #
739
+ # You can specify either the Amazon Resource Name (ARN) of the CMK or,
740
+ # if available, the CMK's alias (using the format `alias/alias-name
741
+ # `).
742
+ # @return [String]
743
+ #
744
+ # @!attribute [rw] build_batch_number
745
+ # The number of the batch build. For each project, the
746
+ # `buildBatchNumber` of its first batch build is `1`. The
747
+ # `buildBatchNumber` of each subsequent batch build is incremented by
748
+ # `1`. If a batch build is deleted, the `buildBatchNumber` of other
749
+ # batch builds does not change.
596
750
  # @return [Integer]
597
751
  #
598
- # @!attribute [rw] contexts
599
- # Additional information about a build phase, especially to help
600
- # troubleshoot a failed build.
601
- # @return [Array<Types::PhaseContext>]
752
+ # @!attribute [rw] file_system_locations
753
+ # An array of `ProjectFileSystemLocation` objects for the batch build
754
+ # project. A `ProjectFileSystemLocation` object specifies the
755
+ # `identifier`, `location`, `mountOptions`, `mountPoint`, and `type`
756
+ # of a file system created using Amazon Elastic File System.
757
+ # @return [Array<Types::ProjectFileSystemLocation>]
602
758
  #
603
- # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildPhase AWS API Documentation
759
+ # @!attribute [rw] build_batch_config
760
+ # Contains configuration information about a batch build project.
761
+ # @return [Types::ProjectBuildBatchConfig]
604
762
  #
605
- class BuildPhase < Struct.new(
606
- :phase_type,
607
- :phase_status,
763
+ # @!attribute [rw] build_groups
764
+ # An array of `BuildGroup` objects that define the build groups for
765
+ # the batch build.
766
+ # @return [Array<Types::BuildGroup>]
767
+ #
768
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildBatch AWS API Documentation
769
+ #
770
+ class BuildBatch < Struct.new(
771
+ :id,
772
+ :arn,
608
773
  :start_time,
609
774
  :end_time,
610
- :duration_in_seconds,
611
- :contexts)
775
+ :current_phase,
776
+ :build_batch_status,
777
+ :source_version,
778
+ :resolved_source_version,
779
+ :project_name,
780
+ :phases,
781
+ :source,
782
+ :secondary_sources,
783
+ :secondary_source_versions,
784
+ :artifacts,
785
+ :secondary_artifacts,
786
+ :cache,
787
+ :environment,
788
+ :service_role,
789
+ :log_config,
790
+ :build_timeout_in_minutes,
791
+ :queued_timeout_in_minutes,
792
+ :complete,
793
+ :initiator,
794
+ :vpc_config,
795
+ :encryption_key,
796
+ :build_batch_number,
797
+ :file_system_locations,
798
+ :build_batch_config,
799
+ :build_groups)
612
800
  SENSITIVE = []
613
801
  include Aws::Structure
614
802
  end
615
803
 
616
- # Contains information that defines how the AWS CodeBuild build project
617
- # reports the build status to the source provider.
804
+ # Specifies filters when retrieving batch builds.
618
805
  #
619
- # @note When making an API call, you may pass BuildStatusConfig
806
+ # @note When making an API call, you may pass BuildBatchFilter
620
807
  # data as a hash:
621
808
  #
622
809
  # {
623
- # context: "String",
624
- # target_url: "String",
810
+ # status: "SUCCEEDED", # accepts SUCCEEDED, FAILED, FAULT, TIMED_OUT, IN_PROGRESS, STOPPED
625
811
  # }
626
812
  #
627
- # @!attribute [rw] context
628
- # Specifies the context of the build status CodeBuild sends to the
629
- # source provider. The usage of this parameter depends on the source
630
- # provider.
813
+ # @!attribute [rw] status
814
+ # The status of the batch builds to retrieve. Only batch builds that
815
+ # have this status will be retrieved.
816
+ # @return [String]
631
817
  #
632
- # Bitbucket
818
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildBatchFilter AWS API Documentation
633
819
  #
634
- # : This parameter is used for the `name` parameter in the Bitbucket
635
- # commit status. For more information, see [build][1] in the
636
- # Bitbucket API documentation.
820
+ class BuildBatchFilter < Struct.new(
821
+ :status)
822
+ SENSITIVE = []
823
+ include Aws::Structure
824
+ end
825
+
826
+ # Contains information about a stage for a batch build.
637
827
  #
638
- # GitHub/GitHub Enterprise Server
828
+ # @!attribute [rw] phase_type
829
+ # The name of the batch build phase. Valid values include:
639
830
  #
640
- # : This parameter is used for the `context` parameter in the GitHub
641
- # commit status. For more information, see [Create a commit
642
- # status][2] in the GitHub developer guide.
831
+ # COMBINE\_ARTIFACTS
643
832
  #
833
+ # : Build output artifacts are being combined and uploaded to the
834
+ # output location.
644
835
  #
836
+ # DOWNLOAD\_BATCHSPEC
645
837
  #
646
- # [1]: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build
647
- # [2]: https://developer.github.com/v3/repos/statuses/#create-a-commit-status
648
- # @return [String]
838
+ # : The batch build specification is being downloaded.
649
839
  #
650
- # @!attribute [rw] target_url
651
- # Specifies the target url of the build status CodeBuild sends to the
652
- # source provider. The usage of this parameter depends on the source
653
- # provider.
840
+ # FAILED
654
841
  #
655
- # Bitbucket
842
+ # : One or more of the builds failed.
656
843
  #
657
- # : This parameter is used for the `url` parameter in the Bitbucket
658
- # commit status. For more information, see [build][1] in the
659
- # Bitbucket API documentation.
844
+ # IN\_PROGRESS
660
845
  #
661
- # GitHub/GitHub Enterprise Server
846
+ # : The batch build is in progress.
662
847
  #
663
- # : This parameter is used for the `target_url` parameter in the
664
- # GitHub commit status. For more information, see [Create a commit
665
- # status][2] in the GitHub developer guide.
848
+ # STOPPED
849
+ #
850
+ # : The batch build was stopped.
851
+ #
852
+ # SUBMITTED
853
+ #
854
+ # : The btach build has been submitted.
855
+ #
856
+ # SUCCEEDED
857
+ #
858
+ # : The batch build succeeded.
859
+ # @return [String]
860
+ #
861
+ # @!attribute [rw] phase_status
862
+ # The current status of the batch build phase. Valid values include:
863
+ #
864
+ # FAILED
865
+ #
866
+ # : The build phase failed.
867
+ #
868
+ # FAULT
869
+ #
870
+ # : The build phase faulted.
871
+ #
872
+ # IN\_PROGRESS
873
+ #
874
+ # : The build phase is still in progress.
875
+ #
876
+ # QUEUED
877
+ #
878
+ # : The build has been submitted and is queued behind other submitted
879
+ # builds.
880
+ #
881
+ # STOPPED
882
+ #
883
+ # : The build phase stopped.
884
+ #
885
+ # SUCCEEDED
886
+ #
887
+ # : The build phase succeeded.
888
+ #
889
+ # TIMED\_OUT
890
+ #
891
+ # : The build phase timed out.
892
+ # @return [String]
893
+ #
894
+ # @!attribute [rw] start_time
895
+ # When the batch build phase started, expressed in Unix time format.
896
+ # @return [Time]
897
+ #
898
+ # @!attribute [rw] end_time
899
+ # When the batch build phase ended, expressed in Unix time format.
900
+ # @return [Time]
901
+ #
902
+ # @!attribute [rw] duration_in_seconds
903
+ # How long, in seconds, between the starting and ending times of the
904
+ # batch build's phase.
905
+ # @return [Integer]
906
+ #
907
+ # @!attribute [rw] contexts
908
+ # Additional information about the batch build phase. Especially to
909
+ # help troubleshoot a failed btach build.
910
+ # @return [Array<Types::PhaseContext>]
911
+ #
912
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildBatchPhase AWS API Documentation
913
+ #
914
+ class BuildBatchPhase < Struct.new(
915
+ :phase_type,
916
+ :phase_status,
917
+ :start_time,
918
+ :end_time,
919
+ :duration_in_seconds,
920
+ :contexts)
921
+ SENSITIVE = []
922
+ include Aws::Structure
923
+ end
924
+
925
+ # Contains information about a batch build build group. Build groups are
926
+ # used to combine builds that can run in parallel, while still being
927
+ # able to set dependencies on other build groups.
928
+ #
929
+ # @!attribute [rw] identifier
930
+ # Contains the identifier of the build group.
931
+ # @return [String]
932
+ #
933
+ # @!attribute [rw] depends_on
934
+ # An array of strings that contain the identifiers of the build groups
935
+ # that this build group depends on.
936
+ # @return [Array<String>]
937
+ #
938
+ # @!attribute [rw] ignore_failure
939
+ # Specifies if failures in this build group can be ignored.
940
+ # @return [Boolean]
941
+ #
942
+ # @!attribute [rw] current_build_summary
943
+ # A `BuildSummary` object that contains a summary of the current build
944
+ # group.
945
+ # @return [Types::BuildSummary]
946
+ #
947
+ # @!attribute [rw] prior_build_summary_list
948
+ # An array of `BuildSummary` objects that contain summaries of
949
+ # previous build groups.
950
+ # @return [Array<Types::BuildSummary>]
951
+ #
952
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildGroup AWS API Documentation
953
+ #
954
+ class BuildGroup < Struct.new(
955
+ :identifier,
956
+ :depends_on,
957
+ :ignore_failure,
958
+ :current_build_summary,
959
+ :prior_build_summary_list)
960
+ SENSITIVE = []
961
+ include Aws::Structure
962
+ end
963
+
964
+ # Information about a build that could not be successfully deleted.
965
+ #
966
+ # @!attribute [rw] id
967
+ # The ID of the build that could not be successfully deleted.
968
+ # @return [String]
969
+ #
970
+ # @!attribute [rw] status_code
971
+ # Additional information about the build that could not be
972
+ # successfully deleted.
973
+ # @return [String]
974
+ #
975
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildNotDeleted AWS API Documentation
976
+ #
977
+ class BuildNotDeleted < Struct.new(
978
+ :id,
979
+ :status_code)
980
+ SENSITIVE = []
981
+ include Aws::Structure
982
+ end
983
+
984
+ # Information about a stage for a build.
985
+ #
986
+ # @!attribute [rw] phase_type
987
+ # The name of the build phase. Valid values include:
988
+ #
989
+ # * `BUILD`\: Core build activities typically occur in this build
990
+ # phase.
991
+ #
992
+ # * `COMPLETED`\: The build has been completed.
993
+ #
994
+ # * `DOWNLOAD_SOURCE`\: Source code is being downloaded in this build
995
+ # phase.
996
+ #
997
+ # * `FINALIZING`\: The build process is completing in this build
998
+ # phase.
999
+ #
1000
+ # * `INSTALL`\: Installation activities typically occur in this build
1001
+ # phase.
1002
+ #
1003
+ # * `POST_BUILD`\: Post-build activities typically occur in this build
1004
+ # phase.
1005
+ #
1006
+ # * `PRE_BUILD`\: Pre-build activities typically occur in this build
1007
+ # phase.
1008
+ #
1009
+ # * `PROVISIONING`\: The build environment is being set up.
1010
+ #
1011
+ # * `QUEUED`\: The build has been submitted and is queued behind other
1012
+ # submitted builds.
1013
+ #
1014
+ # * `SUBMITTED`\: The build has been submitted.
1015
+ #
1016
+ # * `UPLOAD_ARTIFACTS`\: Build output artifacts are being uploaded to
1017
+ # the output location.
1018
+ # @return [String]
1019
+ #
1020
+ # @!attribute [rw] phase_status
1021
+ # The current status of the build phase. Valid values include:
1022
+ #
1023
+ # FAILED
1024
+ #
1025
+ # : The build phase failed.
1026
+ #
1027
+ # FAULT
1028
+ #
1029
+ # : The build phase faulted.
1030
+ #
1031
+ # IN\_PROGRESS
1032
+ #
1033
+ # : The build phase is still in progress.
1034
+ #
1035
+ # QUEUED
1036
+ #
1037
+ # : The build has been submitted and is queued behind other submitted
1038
+ # builds.
1039
+ #
1040
+ # STOPPED
1041
+ #
1042
+ # : The build phase stopped.
1043
+ #
1044
+ # SUCCEEDED
1045
+ #
1046
+ # : The build phase succeeded.
1047
+ #
1048
+ # TIMED\_OUT
1049
+ #
1050
+ # : The build phase timed out.
1051
+ # @return [String]
1052
+ #
1053
+ # @!attribute [rw] start_time
1054
+ # When the build phase started, expressed in Unix time format.
1055
+ # @return [Time]
1056
+ #
1057
+ # @!attribute [rw] end_time
1058
+ # When the build phase ended, expressed in Unix time format.
1059
+ # @return [Time]
1060
+ #
1061
+ # @!attribute [rw] duration_in_seconds
1062
+ # How long, in seconds, between the starting and ending times of the
1063
+ # build's phase.
1064
+ # @return [Integer]
1065
+ #
1066
+ # @!attribute [rw] contexts
1067
+ # Additional information about a build phase, especially to help
1068
+ # troubleshoot a failed build.
1069
+ # @return [Array<Types::PhaseContext>]
1070
+ #
1071
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildPhase AWS API Documentation
1072
+ #
1073
+ class BuildPhase < Struct.new(
1074
+ :phase_type,
1075
+ :phase_status,
1076
+ :start_time,
1077
+ :end_time,
1078
+ :duration_in_seconds,
1079
+ :contexts)
1080
+ SENSITIVE = []
1081
+ include Aws::Structure
1082
+ end
1083
+
1084
+ # Contains information that defines how the AWS CodeBuild build project
1085
+ # reports the build status to the source provider.
1086
+ #
1087
+ # @note When making an API call, you may pass BuildStatusConfig
1088
+ # data as a hash:
1089
+ #
1090
+ # {
1091
+ # context: "String",
1092
+ # target_url: "String",
1093
+ # }
1094
+ #
1095
+ # @!attribute [rw] context
1096
+ # Specifies the context of the build status CodeBuild sends to the
1097
+ # source provider. The usage of this parameter depends on the source
1098
+ # provider.
1099
+ #
1100
+ # Bitbucket
1101
+ #
1102
+ # : This parameter is used for the `name` parameter in the Bitbucket
1103
+ # commit status. For more information, see [build][1] in the
1104
+ # Bitbucket API documentation.
1105
+ #
1106
+ # GitHub/GitHub Enterprise Server
1107
+ #
1108
+ # : This parameter is used for the `context` parameter in the GitHub
1109
+ # commit status. For more information, see [Create a commit
1110
+ # status][2] in the GitHub developer guide.
1111
+ #
1112
+ #
1113
+ #
1114
+ # [1]: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build
1115
+ # [2]: https://developer.github.com/v3/repos/statuses/#create-a-commit-status
1116
+ # @return [String]
1117
+ #
1118
+ # @!attribute [rw] target_url
1119
+ # Specifies the target url of the build status CodeBuild sends to the
1120
+ # source provider. The usage of this parameter depends on the source
1121
+ # provider.
1122
+ #
1123
+ # Bitbucket
1124
+ #
1125
+ # : This parameter is used for the `url` parameter in the Bitbucket
1126
+ # commit status. For more information, see [build][1] in the
1127
+ # Bitbucket API documentation.
1128
+ #
1129
+ # GitHub/GitHub Enterprise Server
1130
+ #
1131
+ # : This parameter is used for the `target_url` parameter in the
1132
+ # GitHub commit status. For more information, see [Create a commit
1133
+ # status][2] in the GitHub developer guide.
666
1134
  #
667
1135
  #
668
1136
  #
@@ -679,6 +1147,66 @@ module Aws::CodeBuild
679
1147
  include Aws::Structure
680
1148
  end
681
1149
 
1150
+ # Contains summary information about a batch build group.
1151
+ #
1152
+ # @!attribute [rw] arn
1153
+ # The batch build ARN.
1154
+ # @return [String]
1155
+ #
1156
+ # @!attribute [rw] requested_on
1157
+ # When the build was started, expressed in Unix time format.
1158
+ # @return [Time]
1159
+ #
1160
+ # @!attribute [rw] build_status
1161
+ # The status of the build group.
1162
+ #
1163
+ # FAILED
1164
+ #
1165
+ # : The build group failed.
1166
+ #
1167
+ # FAULT
1168
+ #
1169
+ # : The build group faulted.
1170
+ #
1171
+ # IN\_PROGRESS
1172
+ #
1173
+ # : The build group is still in progress.
1174
+ #
1175
+ # STOPPED
1176
+ #
1177
+ # : The build group stopped.
1178
+ #
1179
+ # SUCCEEDED
1180
+ #
1181
+ # : The build group succeeded.
1182
+ #
1183
+ # TIMED\_OUT
1184
+ #
1185
+ # : The build group timed out.
1186
+ # @return [String]
1187
+ #
1188
+ # @!attribute [rw] primary_artifact
1189
+ # A `ResolvedArtifact` object that represents the primary build
1190
+ # artifacts for the build group.
1191
+ # @return [Types::ResolvedArtifact]
1192
+ #
1193
+ # @!attribute [rw] secondary_artifacts
1194
+ # An array of `ResolvedArtifact` objects that represents the secondary
1195
+ # build artifacts for the build group.
1196
+ # @return [Array<Types::ResolvedArtifact>]
1197
+ #
1198
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BuildSummary AWS API Documentation
1199
+ #
1200
+ class BuildSummary < Struct.new(
1201
+ :arn,
1202
+ :requested_on,
1203
+ :build_status,
1204
+ :primary_artifact,
1205
+ :secondary_artifacts)
1206
+ SENSITIVE = []
1207
+ include Aws::Structure
1208
+ end
1209
+
682
1210
  # Information about Amazon CloudWatch Logs for a build project.
683
1211
  #
684
1212
  # @note When making an API call, you may pass CloudWatchLogsConfig
@@ -729,11 +1257,125 @@ module Aws::CodeBuild
729
1257
  include Aws::Structure
730
1258
  end
731
1259
 
732
- # @note When making an API call, you may pass CreateProjectInput
733
- # data as a hash:
1260
+ # Contains code coverage report information.
734
1261
  #
735
- # {
736
- # name: "ProjectName", # required
1262
+ # Line coverage measures how many statements your tests cover. A
1263
+ # statement is a single instruction, not including comments,
1264
+ # conditionals, etc.
1265
+ #
1266
+ # Branch coverage determines if your tests cover every possible branch
1267
+ # of a control structure, such as an `if` or `case` statement.
1268
+ #
1269
+ # @!attribute [rw] id
1270
+ # The identifier of the code coverage report.
1271
+ # @return [String]
1272
+ #
1273
+ # @!attribute [rw] report_arn
1274
+ # The ARN of the report.
1275
+ # @return [String]
1276
+ #
1277
+ # @!attribute [rw] file_path
1278
+ # The path of the test report file.
1279
+ # @return [String]
1280
+ #
1281
+ # @!attribute [rw] line_coverage_percentage
1282
+ # The percentage of lines that are covered by your tests.
1283
+ # @return [Float]
1284
+ #
1285
+ # @!attribute [rw] lines_covered
1286
+ # The number of lines that are covered by your tests.
1287
+ # @return [Integer]
1288
+ #
1289
+ # @!attribute [rw] lines_missed
1290
+ # The number of lines that are not covered by your tests.
1291
+ # @return [Integer]
1292
+ #
1293
+ # @!attribute [rw] branch_coverage_percentage
1294
+ # The percentage of branches that are covered by your tests.
1295
+ # @return [Float]
1296
+ #
1297
+ # @!attribute [rw] branches_covered
1298
+ # The number of conditional branches that are covered by your tests.
1299
+ # @return [Integer]
1300
+ #
1301
+ # @!attribute [rw] branches_missed
1302
+ # The number of conditional branches that are not covered by your
1303
+ # tests.
1304
+ # @return [Integer]
1305
+ #
1306
+ # @!attribute [rw] expired
1307
+ # The date and time that the tests were run.
1308
+ # @return [Time]
1309
+ #
1310
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CodeCoverage AWS API Documentation
1311
+ #
1312
+ class CodeCoverage < Struct.new(
1313
+ :id,
1314
+ :report_arn,
1315
+ :file_path,
1316
+ :line_coverage_percentage,
1317
+ :lines_covered,
1318
+ :lines_missed,
1319
+ :branch_coverage_percentage,
1320
+ :branches_covered,
1321
+ :branches_missed,
1322
+ :expired)
1323
+ SENSITIVE = []
1324
+ include Aws::Structure
1325
+ end
1326
+
1327
+ # Contains a summary of a code coverage report.
1328
+ #
1329
+ # Line coverage measures how many statements your tests cover. A
1330
+ # statement is a single instruction, not including comments,
1331
+ # conditionals, etc.
1332
+ #
1333
+ # Branch coverage determines if your tests cover every possible branch
1334
+ # of a control structure, such as an `if` or `case` statement.
1335
+ #
1336
+ # @!attribute [rw] line_coverage_percentage
1337
+ # The percentage of lines that are covered by your tests.
1338
+ # @return [Float]
1339
+ #
1340
+ # @!attribute [rw] lines_covered
1341
+ # The number of lines that are covered by your tests.
1342
+ # @return [Integer]
1343
+ #
1344
+ # @!attribute [rw] lines_missed
1345
+ # The number of lines that are not covered by your tests.
1346
+ # @return [Integer]
1347
+ #
1348
+ # @!attribute [rw] branch_coverage_percentage
1349
+ # The percentage of branches that are covered by your tests.
1350
+ # @return [Float]
1351
+ #
1352
+ # @!attribute [rw] branches_covered
1353
+ # The number of conditional branches that are covered by your tests.
1354
+ # @return [Integer]
1355
+ #
1356
+ # @!attribute [rw] branches_missed
1357
+ # The number of conditional branches that are not covered by your
1358
+ # tests.
1359
+ # @return [Integer]
1360
+ #
1361
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CodeCoverageReportSummary AWS API Documentation
1362
+ #
1363
+ class CodeCoverageReportSummary < Struct.new(
1364
+ :line_coverage_percentage,
1365
+ :lines_covered,
1366
+ :lines_missed,
1367
+ :branch_coverage_percentage,
1368
+ :branches_covered,
1369
+ :branches_missed)
1370
+ SENSITIVE = []
1371
+ include Aws::Structure
1372
+ end
1373
+
1374
+ # @note When making an API call, you may pass CreateProjectInput
1375
+ # data as a hash:
1376
+ #
1377
+ # {
1378
+ # name: "ProjectName", # required
737
1379
  # description: "ProjectDescription",
738
1380
  # source: { # required
739
1381
  # type: "CODECOMMIT", # required, accepts CODECOMMIT, CODEPIPELINE, GITHUB, S3, BITBUCKET, GITHUB_ENTERPRISE, NO_SOURCE
@@ -869,6 +1511,15 @@ module Aws::CodeBuild
869
1511
  # mount_options: "String",
870
1512
  # },
871
1513
  # ],
1514
+ # build_batch_config: {
1515
+ # service_role: "NonEmptyString",
1516
+ # combine_artifacts: false,
1517
+ # restrictions: {
1518
+ # maximum_builds_allowed: 1,
1519
+ # compute_types_allowed: ["NonEmptyString"],
1520
+ # },
1521
+ # timeout_in_mins: 1,
1522
+ # },
872
1523
  # }
873
1524
  #
874
1525
  # @!attribute [rw] name
@@ -1008,6 +1659,11 @@ module Aws::CodeBuild
1008
1659
  # of a file system created using Amazon Elastic File System.
1009
1660
  # @return [Array<Types::ProjectFileSystemLocation>]
1010
1661
  #
1662
+ # @!attribute [rw] build_batch_config
1663
+ # A ProjectBuildBatchConfig object that defines the batch build
1664
+ # options for the project.
1665
+ # @return [Types::ProjectBuildBatchConfig]
1666
+ #
1011
1667
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateProjectInput AWS API Documentation
1012
1668
  #
1013
1669
  class CreateProjectInput < Struct.new(
@@ -1029,7 +1685,8 @@ module Aws::CodeBuild
1029
1685
  :vpc_config,
1030
1686
  :badge_enabled,
1031
1687
  :logs_config,
1032
- :file_system_locations)
1688
+ :file_system_locations,
1689
+ :build_batch_config)
1033
1690
  SENSITIVE = []
1034
1691
  include Aws::Structure
1035
1692
  end
@@ -1051,7 +1708,7 @@ module Aws::CodeBuild
1051
1708
  #
1052
1709
  # {
1053
1710
  # name: "ReportGroupName", # required
1054
- # type: "TEST", # required, accepts TEST
1711
+ # type: "TEST", # required, accepts TEST, CODE_COVERAGE
1055
1712
  # export_config: { # required
1056
1713
  # export_config_type: "S3", # accepts S3, NO_EXPORT
1057
1714
  # s3_destination: {
@@ -1128,6 +1785,7 @@ module Aws::CodeBuild
1128
1785
  # },
1129
1786
  # ],
1130
1787
  # ],
1788
+ # build_type: "BUILD", # accepts BUILD, BUILD_BATCH
1131
1789
  # }
1132
1790
  #
1133
1791
  # @!attribute [rw] project_name
@@ -1156,12 +1814,17 @@ module Aws::CodeBuild
1156
1814
  # its filters must pass.
1157
1815
  # @return [Array<Array<Types::WebhookFilter>>]
1158
1816
  #
1817
+ # @!attribute [rw] build_type
1818
+ # Specifies the type of build this webhook will trigger.
1819
+ # @return [String]
1820
+ #
1159
1821
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateWebhookInput AWS API Documentation
1160
1822
  #
1161
1823
  class CreateWebhookInput < Struct.new(
1162
1824
  :project_name,
1163
1825
  :branch_filter,
1164
- :filter_groups)
1826
+ :filter_groups,
1827
+ :build_type)
1165
1828
  SENSITIVE = []
1166
1829
  include Aws::Structure
1167
1830
  end
@@ -1205,6 +1868,49 @@ module Aws::CodeBuild
1205
1868
  include Aws::Structure
1206
1869
  end
1207
1870
 
1871
+ # @note When making an API call, you may pass DeleteBuildBatchInput
1872
+ # data as a hash:
1873
+ #
1874
+ # {
1875
+ # id: "NonEmptyString", # required
1876
+ # }
1877
+ #
1878
+ # @!attribute [rw] id
1879
+ # The identifier of the batch build to delete.
1880
+ # @return [String]
1881
+ #
1882
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteBuildBatchInput AWS API Documentation
1883
+ #
1884
+ class DeleteBuildBatchInput < Struct.new(
1885
+ :id)
1886
+ SENSITIVE = []
1887
+ include Aws::Structure
1888
+ end
1889
+
1890
+ # @!attribute [rw] status_code
1891
+ # The status code.
1892
+ # @return [String]
1893
+ #
1894
+ # @!attribute [rw] builds_deleted
1895
+ # An array of strings that contain the identifiers of the builds that
1896
+ # were deleted.
1897
+ # @return [Array<String>]
1898
+ #
1899
+ # @!attribute [rw] builds_not_deleted
1900
+ # An array of `BuildNotDeleted` objects that specify the builds that
1901
+ # could not be deleted.
1902
+ # @return [Array<Types::BuildNotDeleted>]
1903
+ #
1904
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteBuildBatchOutput AWS API Documentation
1905
+ #
1906
+ class DeleteBuildBatchOutput < Struct.new(
1907
+ :status_code,
1908
+ :builds_deleted,
1909
+ :builds_not_deleted)
1910
+ SENSITIVE = []
1911
+ include Aws::Structure
1912
+ end
1913
+
1208
1914
  # @note When making an API call, you may pass DeleteProjectInput
1209
1915
  # data as a hash:
1210
1916
  #
@@ -1351,6 +2057,92 @@ module Aws::CodeBuild
1351
2057
  #
1352
2058
  class DeleteWebhookOutput < Aws::EmptyStructure; end
1353
2059
 
2060
+ # @note When making an API call, you may pass DescribeCodeCoveragesInput
2061
+ # data as a hash:
2062
+ #
2063
+ # {
2064
+ # report_arn: "NonEmptyString", # required
2065
+ # next_token: "String",
2066
+ # max_results: 1,
2067
+ # sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
2068
+ # sort_by: "LINE_COVERAGE_PERCENTAGE", # accepts LINE_COVERAGE_PERCENTAGE, FILE_PATH
2069
+ # min_line_coverage_percentage: 1.0,
2070
+ # max_line_coverage_percentage: 1.0,
2071
+ # }
2072
+ #
2073
+ # @!attribute [rw] report_arn
2074
+ # The ARN of the report for which test cases are returned.
2075
+ # @return [String]
2076
+ #
2077
+ # @!attribute [rw] next_token
2078
+ # The `nextToken` value returned from a previous call to
2079
+ # `DescribeCodeCoverages`. This specifies the next item to return. To
2080
+ # return the beginning of the list, exclude this parameter.
2081
+ # @return [String]
2082
+ #
2083
+ # @!attribute [rw] max_results
2084
+ # The maximum number of results to return.
2085
+ # @return [Integer]
2086
+ #
2087
+ # @!attribute [rw] sort_order
2088
+ # Specifies if the results are sorted in ascending or descending
2089
+ # order.
2090
+ # @return [String]
2091
+ #
2092
+ # @!attribute [rw] sort_by
2093
+ # Specifies how the results are sorted. Possible values are:
2094
+ #
2095
+ # FILE\_PATH
2096
+ #
2097
+ # : The results are sorted by file path.
2098
+ #
2099
+ # LINE\_COVERAGE\_PERCENTAGE
2100
+ #
2101
+ # : The results are sorted by the percentage of lines that are
2102
+ # covered.
2103
+ # @return [String]
2104
+ #
2105
+ # @!attribute [rw] min_line_coverage_percentage
2106
+ # The minimum line coverage percentage to report.
2107
+ # @return [Float]
2108
+ #
2109
+ # @!attribute [rw] max_line_coverage_percentage
2110
+ # The maximum line coverage percentage to report.
2111
+ # @return [Float]
2112
+ #
2113
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DescribeCodeCoveragesInput AWS API Documentation
2114
+ #
2115
+ class DescribeCodeCoveragesInput < Struct.new(
2116
+ :report_arn,
2117
+ :next_token,
2118
+ :max_results,
2119
+ :sort_order,
2120
+ :sort_by,
2121
+ :min_line_coverage_percentage,
2122
+ :max_line_coverage_percentage)
2123
+ SENSITIVE = []
2124
+ include Aws::Structure
2125
+ end
2126
+
2127
+ # @!attribute [rw] next_token
2128
+ # If there are more items to return, this contains a token that is
2129
+ # passed to a subsequent call to `DescribeCodeCoverages` to retrieve
2130
+ # the next set of items.
2131
+ # @return [String]
2132
+ #
2133
+ # @!attribute [rw] code_coverages
2134
+ # An array of `CodeCoverage` objects that contain the results.
2135
+ # @return [Array<Types::CodeCoverage>]
2136
+ #
2137
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DescribeCodeCoveragesOutput AWS API Documentation
2138
+ #
2139
+ class DescribeCodeCoveragesOutput < Struct.new(
2140
+ :next_token,
2141
+ :code_coverages)
2142
+ SENSITIVE = []
2143
+ include Aws::Structure
2144
+ end
2145
+
1354
2146
  # @note When making an API call, you may pass DescribeTestCasesInput
1355
2147
  # data as a hash:
1356
2148
  #
@@ -1721,6 +2513,148 @@ module Aws::CodeBuild
1721
2513
  #
1722
2514
  class InvalidateProjectCacheOutput < Aws::EmptyStructure; end
1723
2515
 
2516
+ # @note When making an API call, you may pass ListBuildBatchesForProjectInput
2517
+ # data as a hash:
2518
+ #
2519
+ # {
2520
+ # project_name: "NonEmptyString",
2521
+ # filter: {
2522
+ # status: "SUCCEEDED", # accepts SUCCEEDED, FAILED, FAULT, TIMED_OUT, IN_PROGRESS, STOPPED
2523
+ # },
2524
+ # max_results: 1,
2525
+ # sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
2526
+ # next_token: "String",
2527
+ # }
2528
+ #
2529
+ # @!attribute [rw] project_name
2530
+ # The name of the project.
2531
+ # @return [String]
2532
+ #
2533
+ # @!attribute [rw] filter
2534
+ # A `BuildBatchFilter` object that specifies the filters for the
2535
+ # search.
2536
+ # @return [Types::BuildBatchFilter]
2537
+ #
2538
+ # @!attribute [rw] max_results
2539
+ # The maximum number of results to return.
2540
+ # @return [Integer]
2541
+ #
2542
+ # @!attribute [rw] sort_order
2543
+ # Specifies the sort order of the returned items. Valid values
2544
+ # include:
2545
+ #
2546
+ # * `ASCENDING`\: List the batch build identifiers in ascending order
2547
+ # by identifier.
2548
+ #
2549
+ # * `DESCENDING`\: List the batch build identifiers in descending
2550
+ # order by identifier.
2551
+ # @return [String]
2552
+ #
2553
+ # @!attribute [rw] next_token
2554
+ # The `nextToken` value returned from a previous call to
2555
+ # `ListBuildBatchesForProject`. This specifies the next item to
2556
+ # return. To return the beginning of the list, exclude this parameter.
2557
+ # @return [String]
2558
+ #
2559
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListBuildBatchesForProjectInput AWS API Documentation
2560
+ #
2561
+ class ListBuildBatchesForProjectInput < Struct.new(
2562
+ :project_name,
2563
+ :filter,
2564
+ :max_results,
2565
+ :sort_order,
2566
+ :next_token)
2567
+ SENSITIVE = []
2568
+ include Aws::Structure
2569
+ end
2570
+
2571
+ # @!attribute [rw] ids
2572
+ # An array of strings that contains the batch build identifiers.
2573
+ # @return [Array<String>]
2574
+ #
2575
+ # @!attribute [rw] next_token
2576
+ # If there are more items to return, this contains a token that is
2577
+ # passed to a subsequent call to `ListBuildBatchesForProject` to
2578
+ # retrieve the next set of items.
2579
+ # @return [String]
2580
+ #
2581
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListBuildBatchesForProjectOutput AWS API Documentation
2582
+ #
2583
+ class ListBuildBatchesForProjectOutput < Struct.new(
2584
+ :ids,
2585
+ :next_token)
2586
+ SENSITIVE = []
2587
+ include Aws::Structure
2588
+ end
2589
+
2590
+ # @note When making an API call, you may pass ListBuildBatchesInput
2591
+ # data as a hash:
2592
+ #
2593
+ # {
2594
+ # filter: {
2595
+ # status: "SUCCEEDED", # accepts SUCCEEDED, FAILED, FAULT, TIMED_OUT, IN_PROGRESS, STOPPED
2596
+ # },
2597
+ # max_results: 1,
2598
+ # sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
2599
+ # next_token: "String",
2600
+ # }
2601
+ #
2602
+ # @!attribute [rw] filter
2603
+ # A `BuildBatchFilter` object that specifies the filters for the
2604
+ # search.
2605
+ # @return [Types::BuildBatchFilter]
2606
+ #
2607
+ # @!attribute [rw] max_results
2608
+ # The maximum number of results to return.
2609
+ # @return [Integer]
2610
+ #
2611
+ # @!attribute [rw] sort_order
2612
+ # Specifies the sort order of the returned items. Valid values
2613
+ # include:
2614
+ #
2615
+ # * `ASCENDING`\: List the batch build identifiers in ascending order
2616
+ # by identifier.
2617
+ #
2618
+ # * `DESCENDING`\: List the batch build identifiers in descending
2619
+ # order by identifier.
2620
+ # @return [String]
2621
+ #
2622
+ # @!attribute [rw] next_token
2623
+ # The `nextToken` value returned from a previous call to
2624
+ # `ListBuildBatches`. This specifies the next item to return. To
2625
+ # return the beginning of the list, exclude this parameter.
2626
+ # @return [String]
2627
+ #
2628
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListBuildBatchesInput AWS API Documentation
2629
+ #
2630
+ class ListBuildBatchesInput < Struct.new(
2631
+ :filter,
2632
+ :max_results,
2633
+ :sort_order,
2634
+ :next_token)
2635
+ SENSITIVE = []
2636
+ include Aws::Structure
2637
+ end
2638
+
2639
+ # @!attribute [rw] ids
2640
+ # An array of strings that contains the batch build identifiers.
2641
+ # @return [Array<String>]
2642
+ #
2643
+ # @!attribute [rw] next_token
2644
+ # If there are more items to return, this contains a token that is
2645
+ # passed to a subsequent call to `ListBuildBatches` to retrieve the
2646
+ # next set of items.
2647
+ # @return [String]
2648
+ #
2649
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListBuildBatchesOutput AWS API Documentation
2650
+ #
2651
+ class ListBuildBatchesOutput < Struct.new(
2652
+ :ids,
2653
+ :next_token)
2654
+ SENSITIVE = []
2655
+ include Aws::Structure
2656
+ end
2657
+
1724
2658
  # @note When making an API call, you may pass ListBuildsForProjectInput
1725
2659
  # data as a hash:
1726
2660
  #
@@ -2646,6 +3580,11 @@ module Aws::CodeBuild
2646
3580
  # of a file system created using Amazon Elastic File System.
2647
3581
  # @return [Array<Types::ProjectFileSystemLocation>]
2648
3582
  #
3583
+ # @!attribute [rw] build_batch_config
3584
+ # A ProjectBuildBatchConfig object that defines the batch build
3585
+ # options for the project.
3586
+ # @return [Types::ProjectBuildBatchConfig]
3587
+ #
2649
3588
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/Project AWS API Documentation
2650
3589
  #
2651
3590
  class Project < Struct.new(
@@ -2671,7 +3610,8 @@ module Aws::CodeBuild
2671
3610
  :vpc_config,
2672
3611
  :badge,
2673
3612
  :logs_config,
2674
- :file_system_locations)
3613
+ :file_system_locations,
3614
+ :build_batch_config)
2675
3615
  SENSITIVE = []
2676
3616
  include Aws::Structure
2677
3617
  end
@@ -2876,26 +3816,71 @@ module Aws::CodeBuild
2876
3816
  include Aws::Structure
2877
3817
  end
2878
3818
 
2879
- # Information about the cache for the build project.
3819
+ # Contains configuration information about a batch build project.
2880
3820
  #
2881
- # @note When making an API call, you may pass ProjectCache
3821
+ # @note When making an API call, you may pass ProjectBuildBatchConfig
2882
3822
  # data as a hash:
2883
3823
  #
2884
3824
  # {
2885
- # type: "NO_CACHE", # required, accepts NO_CACHE, S3, LOCAL
2886
- # location: "String",
2887
- # modes: ["LOCAL_DOCKER_LAYER_CACHE"], # accepts LOCAL_DOCKER_LAYER_CACHE, LOCAL_SOURCE_CACHE, LOCAL_CUSTOM_CACHE
3825
+ # service_role: "NonEmptyString",
3826
+ # combine_artifacts: false,
3827
+ # restrictions: {
3828
+ # maximum_builds_allowed: 1,
3829
+ # compute_types_allowed: ["NonEmptyString"],
3830
+ # },
3831
+ # timeout_in_mins: 1,
2888
3832
  # }
2889
3833
  #
2890
- # @!attribute [rw] type
2891
- # The type of cache used by the build project. Valid values include:
3834
+ # @!attribute [rw] service_role
3835
+ # Specifies the service role ARN for the batch build project.
3836
+ # @return [String]
2892
3837
  #
2893
- # * `NO_CACHE`\: The build project does not use any cache.
3838
+ # @!attribute [rw] combine_artifacts
3839
+ # Specifies if the build artifacts for the batch build should be
3840
+ # combined into a single artifact location.
3841
+ # @return [Boolean]
2894
3842
  #
2895
- # * `S3`\: The build project reads and writes from and to S3.
3843
+ # @!attribute [rw] restrictions
3844
+ # A `BatchRestrictions` object that specifies the restrictions for the
3845
+ # batch build.
3846
+ # @return [Types::BatchRestrictions]
2896
3847
  #
2897
- # * `LOCAL`\: The build project stores a cache locally on a build host
2898
- # that is only available to that build host.
3848
+ # @!attribute [rw] timeout_in_mins
3849
+ # Specifies the maximum amount of time, in minutes, that the batch
3850
+ # build must be completed in.
3851
+ # @return [Integer]
3852
+ #
3853
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ProjectBuildBatchConfig AWS API Documentation
3854
+ #
3855
+ class ProjectBuildBatchConfig < Struct.new(
3856
+ :service_role,
3857
+ :combine_artifacts,
3858
+ :restrictions,
3859
+ :timeout_in_mins)
3860
+ SENSITIVE = []
3861
+ include Aws::Structure
3862
+ end
3863
+
3864
+ # Information about the cache for the build project.
3865
+ #
3866
+ # @note When making an API call, you may pass ProjectCache
3867
+ # data as a hash:
3868
+ #
3869
+ # {
3870
+ # type: "NO_CACHE", # required, accepts NO_CACHE, S3, LOCAL
3871
+ # location: "String",
3872
+ # modes: ["LOCAL_DOCKER_LAYER_CACHE"], # accepts LOCAL_DOCKER_LAYER_CACHE, LOCAL_SOURCE_CACHE, LOCAL_CUSTOM_CACHE
3873
+ # }
3874
+ #
3875
+ # @!attribute [rw] type
3876
+ # The type of cache used by the build project. Valid values include:
3877
+ #
3878
+ # * `NO_CACHE`\: The build project does not use any cache.
3879
+ #
3880
+ # * `S3`\: The build project reads and writes from and to S3.
3881
+ #
3882
+ # * `LOCAL`\: The build project stores a cache locally on a build host
3883
+ # that is only available to that build host.
2899
3884
  # @return [String]
2900
3885
  #
2901
3886
  # @!attribute [rw] location
@@ -3545,6 +4530,14 @@ module Aws::CodeBuild
3545
4530
  #
3546
4531
  # @!attribute [rw] type
3547
4532
  # The type of the report that was run.
4533
+ #
4534
+ # CODE\_COVERAGE
4535
+ #
4536
+ # : A code coverage report.
4537
+ #
4538
+ # TEST
4539
+ #
4540
+ # : A test report.
3548
4541
  # @return [String]
3549
4542
  #
3550
4543
  # @!attribute [rw] name
@@ -3589,6 +4582,11 @@ module Aws::CodeBuild
3589
4582
  # test report.
3590
4583
  # @return [Types::TestReportSummary]
3591
4584
  #
4585
+ # @!attribute [rw] code_coverage_summary
4586
+ # A `CodeCoverageReportSummary` object that contains a code coverage
4587
+ # summary for this report.
4588
+ # @return [Types::CodeCoverageReportSummary]
4589
+ #
3592
4590
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/Report AWS API Documentation
3593
4591
  #
3594
4592
  class Report < Struct.new(
@@ -3602,7 +4600,8 @@ module Aws::CodeBuild
3602
4600
  :expired,
3603
4601
  :export_config,
3604
4602
  :truncated,
3605
- :test_summary)
4603
+ :test_summary,
4604
+ :code_coverage_summary)
3606
4605
  SENSITIVE = []
3607
4606
  include Aws::Structure
3608
4607
  end
@@ -3719,173 +4718,697 @@ module Aws::CodeBuild
3719
4718
  include Aws::Structure
3720
4719
  end
3721
4720
 
4721
+ # Represents a resolved build artifact. A resolve artifact is an
4722
+ # artifact that is built and deployed to the destination, such as Amazon
4723
+ # Simple Storage Service (Amazon S3).
4724
+ #
4725
+ # @!attribute [rw] type
4726
+ # Specifies the type of artifact.
4727
+ # @return [String]
4728
+ #
4729
+ # @!attribute [rw] location
4730
+ # The location of the artifact.
4731
+ # @return [String]
4732
+ #
4733
+ # @!attribute [rw] identifier
4734
+ # The identifier of the artifact.
4735
+ # @return [String]
4736
+ #
4737
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ResolvedArtifact AWS API Documentation
4738
+ #
4739
+ class ResolvedArtifact < Struct.new(
4740
+ :type,
4741
+ :location,
4742
+ :identifier)
4743
+ SENSITIVE = []
4744
+ include Aws::Structure
4745
+ end
4746
+
3722
4747
  # The specified AWS resource cannot be created, because an AWS resource
3723
4748
  # with the same settings already exists.
3724
4749
  #
3725
- # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ResourceAlreadyExistsException AWS API Documentation
4750
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ResourceAlreadyExistsException AWS API Documentation
4751
+ #
4752
+ class ResourceAlreadyExistsException < Aws::EmptyStructure; end
4753
+
4754
+ # The specified AWS resource cannot be found.
4755
+ #
4756
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ResourceNotFoundException AWS API Documentation
4757
+ #
4758
+ class ResourceNotFoundException < Aws::EmptyStructure; end
4759
+
4760
+ # @note When making an API call, you may pass RetryBuildBatchInput
4761
+ # data as a hash:
4762
+ #
4763
+ # {
4764
+ # id: "NonEmptyString",
4765
+ # idempotency_token: "String",
4766
+ # retry_type: "RETRY_ALL_BUILDS", # accepts RETRY_ALL_BUILDS, RETRY_FAILED_BUILDS
4767
+ # }
4768
+ #
4769
+ # @!attribute [rw] id
4770
+ # Specifies the identifier of the batch build to restart.
4771
+ # @return [String]
4772
+ #
4773
+ # @!attribute [rw] idempotency_token
4774
+ # A unique, case sensitive identifier you provide to ensure the
4775
+ # idempotency of the `RetryBuildBatch` request. The token is included
4776
+ # in the `RetryBuildBatch` request and is valid for five minutes. If
4777
+ # you repeat the `RetryBuildBatch` request with the same token, but
4778
+ # change a parameter, AWS CodeBuild returns a parameter mismatch
4779
+ # error.
4780
+ # @return [String]
4781
+ #
4782
+ # @!attribute [rw] retry_type
4783
+ # Specifies the type of retry to perform.
4784
+ # @return [String]
4785
+ #
4786
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/RetryBuildBatchInput AWS API Documentation
4787
+ #
4788
+ class RetryBuildBatchInput < Struct.new(
4789
+ :id,
4790
+ :idempotency_token,
4791
+ :retry_type)
4792
+ SENSITIVE = []
4793
+ include Aws::Structure
4794
+ end
4795
+
4796
+ # @!attribute [rw] build_batch
4797
+ # Contains information about a batch build.
4798
+ # @return [Types::BuildBatch]
4799
+ #
4800
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/RetryBuildBatchOutput AWS API Documentation
4801
+ #
4802
+ class RetryBuildBatchOutput < Struct.new(
4803
+ :build_batch)
4804
+ SENSITIVE = []
4805
+ include Aws::Structure
4806
+ end
4807
+
4808
+ # @note When making an API call, you may pass RetryBuildInput
4809
+ # data as a hash:
4810
+ #
4811
+ # {
4812
+ # id: "NonEmptyString",
4813
+ # idempotency_token: "String",
4814
+ # }
4815
+ #
4816
+ # @!attribute [rw] id
4817
+ # Specifies the identifier of the build to restart.
4818
+ # @return [String]
4819
+ #
4820
+ # @!attribute [rw] idempotency_token
4821
+ # A unique, case sensitive identifier you provide to ensure the
4822
+ # idempotency of the `RetryBuild` request. The token is included in
4823
+ # the `RetryBuild` request and is valid for five minutes. If you
4824
+ # repeat the `RetryBuild` request with the same token, but change a
4825
+ # parameter, AWS CodeBuild returns a parameter mismatch error.
4826
+ # @return [String]
4827
+ #
4828
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/RetryBuildInput AWS API Documentation
4829
+ #
4830
+ class RetryBuildInput < Struct.new(
4831
+ :id,
4832
+ :idempotency_token)
4833
+ SENSITIVE = []
4834
+ include Aws::Structure
4835
+ end
4836
+
4837
+ # @!attribute [rw] build
4838
+ # Information about a build.
4839
+ # @return [Types::Build]
4840
+ #
4841
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/RetryBuildOutput AWS API Documentation
4842
+ #
4843
+ class RetryBuildOutput < Struct.new(
4844
+ :build)
4845
+ SENSITIVE = []
4846
+ include Aws::Structure
4847
+ end
4848
+
4849
+ # Information about S3 logs for a build project.
4850
+ #
4851
+ # @note When making an API call, you may pass S3LogsConfig
4852
+ # data as a hash:
4853
+ #
4854
+ # {
4855
+ # status: "ENABLED", # required, accepts ENABLED, DISABLED
4856
+ # location: "String",
4857
+ # encryption_disabled: false,
4858
+ # }
4859
+ #
4860
+ # @!attribute [rw] status
4861
+ # The current status of the S3 build logs. Valid values are:
4862
+ #
4863
+ # * `ENABLED`\: S3 build logs are enabled for this build project.
4864
+ #
4865
+ # * `DISABLED`\: S3 build logs are not enabled for this build project.
4866
+ # @return [String]
4867
+ #
4868
+ # @!attribute [rw] location
4869
+ # The ARN of an S3 bucket and the path prefix for S3 logs. If your
4870
+ # Amazon S3 bucket name is `my-bucket`, and your path prefix is
4871
+ # `build-log`, then acceptable formats are `my-bucket/build-log` or
4872
+ # `arn:aws:s3:::my-bucket/build-log`.
4873
+ # @return [String]
4874
+ #
4875
+ # @!attribute [rw] encryption_disabled
4876
+ # Set to true if you do not want your S3 build log output encrypted.
4877
+ # By default S3 build logs are encrypted.
4878
+ # @return [Boolean]
4879
+ #
4880
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/S3LogsConfig AWS API Documentation
4881
+ #
4882
+ class S3LogsConfig < Struct.new(
4883
+ :status,
4884
+ :location,
4885
+ :encryption_disabled)
4886
+ SENSITIVE = []
4887
+ include Aws::Structure
4888
+ end
4889
+
4890
+ # Information about the S3 bucket where the raw data of a report are
4891
+ # exported.
4892
+ #
4893
+ # @note When making an API call, you may pass S3ReportExportConfig
4894
+ # data as a hash:
4895
+ #
4896
+ # {
4897
+ # bucket: "NonEmptyString",
4898
+ # path: "String",
4899
+ # packaging: "ZIP", # accepts ZIP, NONE
4900
+ # encryption_key: "NonEmptyString",
4901
+ # encryption_disabled: false,
4902
+ # }
4903
+ #
4904
+ # @!attribute [rw] bucket
4905
+ # The name of the S3 bucket where the raw data of a report are
4906
+ # exported.
4907
+ # @return [String]
4908
+ #
4909
+ # @!attribute [rw] path
4910
+ # The path to the exported report's raw data results.
4911
+ # @return [String]
4912
+ #
4913
+ # @!attribute [rw] packaging
4914
+ # The type of build output artifact to create. Valid values include:
4915
+ #
4916
+ # * `NONE`\: AWS CodeBuild creates the raw data in the output bucket.
4917
+ # This is the default if packaging is not specified.
4918
+ #
4919
+ # * `ZIP`\: AWS CodeBuild creates a ZIP file with the raw data in the
4920
+ # output bucket.
4921
+ # @return [String]
4922
+ #
4923
+ # @!attribute [rw] encryption_key
4924
+ # The encryption key for the report's encrypted raw data.
4925
+ # @return [String]
4926
+ #
4927
+ # @!attribute [rw] encryption_disabled
4928
+ # A boolean value that specifies if the results of a report are
4929
+ # encrypted.
4930
+ # @return [Boolean]
4931
+ #
4932
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/S3ReportExportConfig AWS API Documentation
4933
+ #
4934
+ class S3ReportExportConfig < Struct.new(
4935
+ :bucket,
4936
+ :path,
4937
+ :packaging,
4938
+ :encryption_key,
4939
+ :encryption_disabled)
4940
+ SENSITIVE = []
4941
+ include Aws::Structure
4942
+ end
4943
+
4944
+ # Information about the authorization settings for AWS CodeBuild to
4945
+ # access the source code to be built.
4946
+ #
4947
+ # This information is for the AWS CodeBuild console's use only. Your
4948
+ # code should not get or set this information directly.
4949
+ #
4950
+ # @note When making an API call, you may pass SourceAuth
4951
+ # data as a hash:
4952
+ #
4953
+ # {
4954
+ # type: "OAUTH", # required, accepts OAUTH
4955
+ # resource: "String",
4956
+ # }
4957
+ #
4958
+ # @!attribute [rw] type
4959
+ # <note markdown="1"> This data type is deprecated and is no longer accurate or used.
4960
+ #
4961
+ # </note>
4962
+ #
4963
+ # The authorization type to use. The only valid value is `OAUTH`,
4964
+ # which represents the OAuth authorization type.
4965
+ # @return [String]
4966
+ #
4967
+ # @!attribute [rw] resource
4968
+ # The resource value that applies to the specified authorization type.
4969
+ # @return [String]
4970
+ #
4971
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/SourceAuth AWS API Documentation
4972
+ #
4973
+ class SourceAuth < Struct.new(
4974
+ :type,
4975
+ :resource)
4976
+ SENSITIVE = []
4977
+ include Aws::Structure
4978
+ end
4979
+
4980
+ # Information about the credentials for a GitHub, GitHub Enterprise, or
4981
+ # Bitbucket repository.
4982
+ #
4983
+ # @!attribute [rw] arn
4984
+ # The Amazon Resource Name (ARN) of the token.
4985
+ # @return [String]
4986
+ #
4987
+ # @!attribute [rw] server_type
4988
+ # The type of source provider. The valid options are GITHUB,
4989
+ # GITHUB\_ENTERPRISE, or BITBUCKET.
4990
+ # @return [String]
4991
+ #
4992
+ # @!attribute [rw] auth_type
4993
+ # The type of authentication used by the credentials. Valid options
4994
+ # are OAUTH, BASIC\_AUTH, or PERSONAL\_ACCESS\_TOKEN.
4995
+ # @return [String]
4996
+ #
4997
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/SourceCredentialsInfo AWS API Documentation
4998
+ #
4999
+ class SourceCredentialsInfo < Struct.new(
5000
+ :arn,
5001
+ :server_type,
5002
+ :auth_type)
5003
+ SENSITIVE = []
5004
+ include Aws::Structure
5005
+ end
5006
+
5007
+ # @note When making an API call, you may pass StartBuildBatchInput
5008
+ # data as a hash:
5009
+ #
5010
+ # {
5011
+ # project_name: "NonEmptyString", # required
5012
+ # secondary_sources_override: [
5013
+ # {
5014
+ # type: "CODECOMMIT", # required, accepts CODECOMMIT, CODEPIPELINE, GITHUB, S3, BITBUCKET, GITHUB_ENTERPRISE, NO_SOURCE
5015
+ # location: "String",
5016
+ # git_clone_depth: 1,
5017
+ # git_submodules_config: {
5018
+ # fetch_submodules: false, # required
5019
+ # },
5020
+ # buildspec: "String",
5021
+ # auth: {
5022
+ # type: "OAUTH", # required, accepts OAUTH
5023
+ # resource: "String",
5024
+ # },
5025
+ # report_build_status: false,
5026
+ # build_status_config: {
5027
+ # context: "String",
5028
+ # target_url: "String",
5029
+ # },
5030
+ # insecure_ssl: false,
5031
+ # source_identifier: "String",
5032
+ # },
5033
+ # ],
5034
+ # secondary_sources_version_override: [
5035
+ # {
5036
+ # source_identifier: "String", # required
5037
+ # source_version: "String", # required
5038
+ # },
5039
+ # ],
5040
+ # source_version: "String",
5041
+ # artifacts_override: {
5042
+ # type: "CODEPIPELINE", # required, accepts CODEPIPELINE, S3, NO_ARTIFACTS
5043
+ # location: "String",
5044
+ # path: "String",
5045
+ # namespace_type: "NONE", # accepts NONE, BUILD_ID
5046
+ # name: "String",
5047
+ # packaging: "NONE", # accepts NONE, ZIP
5048
+ # override_artifact_name: false,
5049
+ # encryption_disabled: false,
5050
+ # artifact_identifier: "String",
5051
+ # },
5052
+ # secondary_artifacts_override: [
5053
+ # {
5054
+ # type: "CODEPIPELINE", # required, accepts CODEPIPELINE, S3, NO_ARTIFACTS
5055
+ # location: "String",
5056
+ # path: "String",
5057
+ # namespace_type: "NONE", # accepts NONE, BUILD_ID
5058
+ # name: "String",
5059
+ # packaging: "NONE", # accepts NONE, ZIP
5060
+ # override_artifact_name: false,
5061
+ # encryption_disabled: false,
5062
+ # artifact_identifier: "String",
5063
+ # },
5064
+ # ],
5065
+ # environment_variables_override: [
5066
+ # {
5067
+ # name: "NonEmptyString", # required
5068
+ # value: "String", # required
5069
+ # type: "PLAINTEXT", # accepts PLAINTEXT, PARAMETER_STORE, SECRETS_MANAGER
5070
+ # },
5071
+ # ],
5072
+ # source_type_override: "CODECOMMIT", # accepts CODECOMMIT, CODEPIPELINE, GITHUB, S3, BITBUCKET, GITHUB_ENTERPRISE, NO_SOURCE
5073
+ # source_location_override: "String",
5074
+ # source_auth_override: {
5075
+ # type: "OAUTH", # required, accepts OAUTH
5076
+ # resource: "String",
5077
+ # },
5078
+ # git_clone_depth_override: 1,
5079
+ # git_submodules_config_override: {
5080
+ # fetch_submodules: false, # required
5081
+ # },
5082
+ # buildspec_override: "String",
5083
+ # insecure_ssl_override: false,
5084
+ # report_build_batch_status_override: false,
5085
+ # environment_type_override: "WINDOWS_CONTAINER", # accepts WINDOWS_CONTAINER, LINUX_CONTAINER, LINUX_GPU_CONTAINER, ARM_CONTAINER, WINDOWS_SERVER_2019_CONTAINER
5086
+ # image_override: "NonEmptyString",
5087
+ # compute_type_override: "BUILD_GENERAL1_SMALL", # accepts BUILD_GENERAL1_SMALL, BUILD_GENERAL1_MEDIUM, BUILD_GENERAL1_LARGE, BUILD_GENERAL1_2XLARGE
5088
+ # certificate_override: "String",
5089
+ # cache_override: {
5090
+ # type: "NO_CACHE", # required, accepts NO_CACHE, S3, LOCAL
5091
+ # location: "String",
5092
+ # modes: ["LOCAL_DOCKER_LAYER_CACHE"], # accepts LOCAL_DOCKER_LAYER_CACHE, LOCAL_SOURCE_CACHE, LOCAL_CUSTOM_CACHE
5093
+ # },
5094
+ # service_role_override: "NonEmptyString",
5095
+ # privileged_mode_override: false,
5096
+ # build_timeout_in_minutes_override: 1,
5097
+ # queued_timeout_in_minutes_override: 1,
5098
+ # encryption_key_override: "NonEmptyString",
5099
+ # idempotency_token: "String",
5100
+ # logs_config_override: {
5101
+ # cloud_watch_logs: {
5102
+ # status: "ENABLED", # required, accepts ENABLED, DISABLED
5103
+ # group_name: "String",
5104
+ # stream_name: "String",
5105
+ # },
5106
+ # s3_logs: {
5107
+ # status: "ENABLED", # required, accepts ENABLED, DISABLED
5108
+ # location: "String",
5109
+ # encryption_disabled: false,
5110
+ # },
5111
+ # },
5112
+ # registry_credential_override: {
5113
+ # credential: "NonEmptyString", # required
5114
+ # credential_provider: "SECRETS_MANAGER", # required, accepts SECRETS_MANAGER
5115
+ # },
5116
+ # image_pull_credentials_type_override: "CODEBUILD", # accepts CODEBUILD, SERVICE_ROLE
5117
+ # build_batch_config_override: {
5118
+ # service_role: "NonEmptyString",
5119
+ # combine_artifacts: false,
5120
+ # restrictions: {
5121
+ # maximum_builds_allowed: 1,
5122
+ # compute_types_allowed: ["NonEmptyString"],
5123
+ # },
5124
+ # timeout_in_mins: 1,
5125
+ # },
5126
+ # }
5127
+ #
5128
+ # @!attribute [rw] project_name
5129
+ # The name of the project.
5130
+ # @return [String]
5131
+ #
5132
+ # @!attribute [rw] secondary_sources_override
5133
+ # An array of `ProjectSource` objects that override the secondary
5134
+ # sources defined in the batch build project.
5135
+ # @return [Array<Types::ProjectSource>]
5136
+ #
5137
+ # @!attribute [rw] secondary_sources_version_override
5138
+ # An array of `ProjectSourceVersion` objects that override the
5139
+ # secondary source versions in the batch build project.
5140
+ # @return [Array<Types::ProjectSourceVersion>]
5141
+ #
5142
+ # @!attribute [rw] source_version
5143
+ # The version of the batch build input to be built, for this build
5144
+ # only. If not specified, the latest version is used. If specified,
5145
+ # the contents depends on the source provider:
5146
+ #
5147
+ # AWS CodeCommit
5148
+ #
5149
+ # : The commit ID, branch, or Git tag to use.
5150
+ #
5151
+ # GitHub
5152
+ #
5153
+ # : The commit ID, pull request ID, branch name, or tag name that
5154
+ # corresponds to the version of the source code you want to build.
5155
+ # If a pull request ID is specified, it must use the format
5156
+ # `pr/pull-request-ID` (for example `pr/25`). If a branch name is
5157
+ # specified, the branch's HEAD commit ID is used. If not specified,
5158
+ # the default branch's HEAD commit ID is used.
5159
+ #
5160
+ # Bitbucket
5161
+ #
5162
+ # : The commit ID, branch name, or tag name that corresponds to the
5163
+ # version of the source code you want to build. If a branch name is
5164
+ # specified, the branch's HEAD commit ID is used. If not specified,
5165
+ # the default branch's HEAD commit ID is used.
5166
+ #
5167
+ # Amazon Simple Storage Service (Amazon S3)
5168
+ #
5169
+ # : The version ID of the object that represents the build input ZIP
5170
+ # file to use.
5171
+ #
5172
+ # If `sourceVersion` is specified at the project level, then this
5173
+ # `sourceVersion` (at the build level) takes precedence.
5174
+ #
5175
+ # For more information, see [Source Version Sample with CodeBuild][1]
5176
+ # in the *AWS CodeBuild User Guide*.
5177
+ #
5178
+ #
5179
+ #
5180
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html
5181
+ # @return [String]
5182
+ #
5183
+ # @!attribute [rw] artifacts_override
5184
+ # An array of `ProjectArtifacts` objects that contains information
5185
+ # about the build output artifact overrides for the build project.
5186
+ # @return [Types::ProjectArtifacts]
5187
+ #
5188
+ # @!attribute [rw] secondary_artifacts_override
5189
+ # An array of `ProjectArtifacts` objects that override the secondary
5190
+ # artifacts defined in the batch build project.
5191
+ # @return [Array<Types::ProjectArtifacts>]
5192
+ #
5193
+ # @!attribute [rw] environment_variables_override
5194
+ # An array of `EnvironmentVariable` objects that override, or add to,
5195
+ # the environment variables defined in the batch build project.
5196
+ # @return [Array<Types::EnvironmentVariable>]
5197
+ #
5198
+ # @!attribute [rw] source_type_override
5199
+ # The source input type that overrides the source input defined in the
5200
+ # batch build project.
5201
+ # @return [String]
5202
+ #
5203
+ # @!attribute [rw] source_location_override
5204
+ # A location that overrides, for this batch build, the source location
5205
+ # defined in the batch build project.
5206
+ # @return [String]
5207
+ #
5208
+ # @!attribute [rw] source_auth_override
5209
+ # A `SourceAuth` object that overrides the one defined in the batch
5210
+ # build project. This override applies only if the build project's
5211
+ # source is BitBucket or GitHub.
5212
+ # @return [Types::SourceAuth]
5213
+ #
5214
+ # @!attribute [rw] git_clone_depth_override
5215
+ # The user-defined depth of history, with a minimum value of 0, that
5216
+ # overrides, for this batch build only, any previous depth of history
5217
+ # defined in the batch build project.
5218
+ # @return [Integer]
5219
+ #
5220
+ # @!attribute [rw] git_submodules_config_override
5221
+ # A `GitSubmodulesConfig` object that overrides the Git submodules
5222
+ # configuration for this batch build.
5223
+ # @return [Types::GitSubmodulesConfig]
5224
+ #
5225
+ # @!attribute [rw] buildspec_override
5226
+ # A buildspec file declaration that overrides, for this build only,
5227
+ # the latest one already defined in the build project.
5228
+ #
5229
+ # If this value is set, it can be either an inline buildspec
5230
+ # definition, the path to an alternate buildspec file relative to the
5231
+ # value of the built-in `CODEBUILD_SRC_DIR` environment variable, or
5232
+ # the path to an S3 bucket. The bucket must be in the same AWS Region
5233
+ # as the build project. Specify the buildspec file using its ARN (for
5234
+ # example, `arn:aws:s3:::my-codebuild-sample2/buildspec.yml`). If this
5235
+ # value is not provided or is set to an empty string, the source code
5236
+ # must contain a buildspec file in its root directory. For more
5237
+ # information, see [Buildspec File Name and Storage Location][1].
5238
+ #
3726
5239
  #
3727
- class ResourceAlreadyExistsException < Aws::EmptyStructure; end
3728
-
3729
- # The specified AWS resource cannot be found.
3730
5240
  #
3731
- # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ResourceNotFoundException AWS API Documentation
5241
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-name-storage
5242
+ # @return [String]
3732
5243
  #
3733
- class ResourceNotFoundException < Aws::EmptyStructure; end
3734
-
3735
- # Information about S3 logs for a build project.
5244
+ # @!attribute [rw] insecure_ssl_override
5245
+ # Enable this flag to override the insecure SSL setting that is
5246
+ # specified in the batch build project. The insecure SSL setting
5247
+ # determines whether to ignore SSL warnings while connecting to the
5248
+ # project source code. This override applies only if the build's
5249
+ # source is GitHub Enterprise.
5250
+ # @return [Boolean]
3736
5251
  #
3737
- # @note When making an API call, you may pass S3LogsConfig
3738
- # data as a hash:
5252
+ # @!attribute [rw] report_build_batch_status_override
5253
+ # Set to `true` to report to your source provider the status of a
5254
+ # batch build's start and completion. If you use this option with a
5255
+ # source provider other than GitHub, GitHub Enterprise, or Bitbucket,
5256
+ # an `invalidInputException` is thrown.
3739
5257
  #
3740
- # {
3741
- # status: "ENABLED", # required, accepts ENABLED, DISABLED
3742
- # location: "String",
3743
- # encryption_disabled: false,
3744
- # }
5258
+ # <note markdown="1"> The status of a build triggered by a webhook is always reported to
5259
+ # your source provider.
3745
5260
  #
3746
- # @!attribute [rw] status
3747
- # The current status of the S3 build logs. Valid values are:
5261
+ # </note>
5262
+ # @return [Boolean]
3748
5263
  #
3749
- # * `ENABLED`\: S3 build logs are enabled for this build project.
5264
+ # @!attribute [rw] environment_type_override
5265
+ # A container type for this batch build that overrides the one
5266
+ # specified in the batch build project.
5267
+ # @return [String]
3750
5268
  #
3751
- # * `DISABLED`\: S3 build logs are not enabled for this build project.
5269
+ # @!attribute [rw] image_override
5270
+ # The name of an image for this batch build that overrides the one
5271
+ # specified in the batch build project.
3752
5272
  # @return [String]
3753
5273
  #
3754
- # @!attribute [rw] location
3755
- # The ARN of an S3 bucket and the path prefix for S3 logs. If your
3756
- # Amazon S3 bucket name is `my-bucket`, and your path prefix is
3757
- # `build-log`, then acceptable formats are `my-bucket/build-log` or
3758
- # `arn:aws:s3:::my-bucket/build-log`.
5274
+ # @!attribute [rw] compute_type_override
5275
+ # The name of a compute type for this batch build that overrides the
5276
+ # one specified in the batch build project.
3759
5277
  # @return [String]
3760
5278
  #
3761
- # @!attribute [rw] encryption_disabled
3762
- # Set to true if you do not want your S3 build log output encrypted.
3763
- # By default S3 build logs are encrypted.
3764
- # @return [Boolean]
5279
+ # @!attribute [rw] certificate_override
5280
+ # The name of a certificate for this batch build that overrides the
5281
+ # one specified in the batch build project.
5282
+ # @return [String]
3765
5283
  #
3766
- # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/S3LogsConfig AWS API Documentation
5284
+ # @!attribute [rw] cache_override
5285
+ # A `ProjectCache` object that specifies cache overrides.
5286
+ # @return [Types::ProjectCache]
3767
5287
  #
3768
- class S3LogsConfig < Struct.new(
3769
- :status,
3770
- :location,
3771
- :encryption_disabled)
3772
- SENSITIVE = []
3773
- include Aws::Structure
3774
- end
3775
-
3776
- # Information about the S3 bucket where the raw data of a report are
3777
- # exported.
5288
+ # @!attribute [rw] service_role_override
5289
+ # The name of a service role for this batch build that overrides the
5290
+ # one specified in the batch build project.
5291
+ # @return [String]
3778
5292
  #
3779
- # @note When making an API call, you may pass S3ReportExportConfig
3780
- # data as a hash:
5293
+ # @!attribute [rw] privileged_mode_override
5294
+ # Enable this flag to override privileged mode in the batch build
5295
+ # project.
5296
+ # @return [Boolean]
3781
5297
  #
3782
- # {
3783
- # bucket: "NonEmptyString",
3784
- # path: "String",
3785
- # packaging: "ZIP", # accepts ZIP, NONE
3786
- # encryption_key: "NonEmptyString",
3787
- # encryption_disabled: false,
3788
- # }
5298
+ # @!attribute [rw] build_timeout_in_minutes_override
5299
+ # Overrides the build timeout specified in the batch build project.
5300
+ # @return [Integer]
3789
5301
  #
3790
- # @!attribute [rw] bucket
3791
- # The name of the S3 bucket where the raw data of a report are
3792
- # exported.
3793
- # @return [String]
5302
+ # @!attribute [rw] queued_timeout_in_minutes_override
5303
+ # The number of minutes a batch build is allowed to be queued before
5304
+ # it times out.
5305
+ # @return [Integer]
3794
5306
  #
3795
- # @!attribute [rw] path
3796
- # The path to the exported report's raw data results.
3797
- # @return [String]
5307
+ # @!attribute [rw] encryption_key_override
5308
+ # The AWS Key Management Service (AWS KMS) customer master key (CMK)
5309
+ # that overrides the one specified in the batch build project. The CMK
5310
+ # key encrypts the build output artifacts.
3798
5311
  #
3799
- # @!attribute [rw] packaging
3800
- # The type of build output artifact to create. Valid values include:
5312
+ # <note markdown="1"> You can use a cross-account KMS key to encrypt the build output
5313
+ # artifacts if your service role has permission to that key.
3801
5314
  #
3802
- # * `NONE`\: AWS CodeBuild creates the raw data in the output bucket.
3803
- # This is the default if packaging is not specified.
5315
+ # </note>
3804
5316
  #
3805
- # * `ZIP`\: AWS CodeBuild creates a ZIP file with the raw data in the
3806
- # output bucket.
5317
+ # You can specify either the Amazon Resource Name (ARN) of the CMK or,
5318
+ # if available, the CMK's alias (using the format `alias/alias-name
5319
+ # `).
3807
5320
  # @return [String]
3808
5321
  #
3809
- # @!attribute [rw] encryption_key
3810
- # The encryption key for the report's encrypted raw data.
5322
+ # @!attribute [rw] idempotency_token
5323
+ # A unique, case sensitive identifier you provide to ensure the
5324
+ # idempotency of the `StartBuildBatch` request. The token is included
5325
+ # in the `StartBuildBatch` request and is valid for five minutes. If
5326
+ # you repeat the `StartBuildBatch` request with the same token, but
5327
+ # change a parameter, AWS CodeBuild returns a parameter mismatch
5328
+ # error.
3811
5329
  # @return [String]
3812
5330
  #
3813
- # @!attribute [rw] encryption_disabled
3814
- # A boolean value that specifies if the results of a report are
3815
- # encrypted.
3816
- # @return [Boolean]
3817
- #
3818
- # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/S3ReportExportConfig AWS API Documentation
5331
+ # @!attribute [rw] logs_config_override
5332
+ # A `LogsConfig` object that override the log settings defined in the
5333
+ # batch build project.
5334
+ # @return [Types::LogsConfig]
3819
5335
  #
3820
- class S3ReportExportConfig < Struct.new(
3821
- :bucket,
3822
- :path,
3823
- :packaging,
3824
- :encryption_key,
3825
- :encryption_disabled)
3826
- SENSITIVE = []
3827
- include Aws::Structure
3828
- end
3829
-
3830
- # Information about the authorization settings for AWS CodeBuild to
3831
- # access the source code to be built.
5336
+ # @!attribute [rw] registry_credential_override
5337
+ # A `RegistryCredential` object that overrides credentials for access
5338
+ # to a private registry.
5339
+ # @return [Types::RegistryCredential]
3832
5340
  #
3833
- # This information is for the AWS CodeBuild console's use only. Your
3834
- # code should not get or set this information directly.
5341
+ # @!attribute [rw] image_pull_credentials_type_override
5342
+ # The type of credentials AWS CodeBuild uses to pull images in your
5343
+ # batch build. There are two valid values:
3835
5344
  #
3836
- # @note When making an API call, you may pass SourceAuth
3837
- # data as a hash:
5345
+ # CODEBUILD
3838
5346
  #
3839
- # {
3840
- # type: "OAUTH", # required, accepts OAUTH
3841
- # resource: "String",
3842
- # }
5347
+ # : Specifies that AWS CodeBuild uses its own credentials. This
5348
+ # requires that you modify your ECR repository policy to trust AWS
5349
+ # CodeBuild's service principal.
3843
5350
  #
3844
- # @!attribute [rw] type
3845
- # <note markdown="1"> This data type is deprecated and is no longer accurate or used.
5351
+ # SERVICE\_ROLE
3846
5352
  #
3847
- # </note>
5353
+ # : Specifies that AWS CodeBuild uses your build project's service
5354
+ # role.
3848
5355
  #
3849
- # The authorization type to use. The only valid value is `OAUTH`,
3850
- # which represents the OAuth authorization type.
5356
+ # When using a cross-account or private registry image, you must use
5357
+ # `SERVICE_ROLE` credentials. When using an AWS CodeBuild curated
5358
+ # image, you must use `CODEBUILD` credentials.
3851
5359
  # @return [String]
3852
5360
  #
3853
- # @!attribute [rw] resource
3854
- # The resource value that applies to the specified authorization type.
3855
- # @return [String]
5361
+ # @!attribute [rw] build_batch_config_override
5362
+ # A `BuildBatchConfigOverride` object that contains batch build
5363
+ # configuration overrides.
5364
+ # @return [Types::ProjectBuildBatchConfig]
3856
5365
  #
3857
- # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/SourceAuth AWS API Documentation
5366
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/StartBuildBatchInput AWS API Documentation
3858
5367
  #
3859
- class SourceAuth < Struct.new(
3860
- :type,
3861
- :resource)
5368
+ class StartBuildBatchInput < Struct.new(
5369
+ :project_name,
5370
+ :secondary_sources_override,
5371
+ :secondary_sources_version_override,
5372
+ :source_version,
5373
+ :artifacts_override,
5374
+ :secondary_artifacts_override,
5375
+ :environment_variables_override,
5376
+ :source_type_override,
5377
+ :source_location_override,
5378
+ :source_auth_override,
5379
+ :git_clone_depth_override,
5380
+ :git_submodules_config_override,
5381
+ :buildspec_override,
5382
+ :insecure_ssl_override,
5383
+ :report_build_batch_status_override,
5384
+ :environment_type_override,
5385
+ :image_override,
5386
+ :compute_type_override,
5387
+ :certificate_override,
5388
+ :cache_override,
5389
+ :service_role_override,
5390
+ :privileged_mode_override,
5391
+ :build_timeout_in_minutes_override,
5392
+ :queued_timeout_in_minutes_override,
5393
+ :encryption_key_override,
5394
+ :idempotency_token,
5395
+ :logs_config_override,
5396
+ :registry_credential_override,
5397
+ :image_pull_credentials_type_override,
5398
+ :build_batch_config_override)
3862
5399
  SENSITIVE = []
3863
5400
  include Aws::Structure
3864
5401
  end
3865
5402
 
3866
- # Information about the credentials for a GitHub, GitHub Enterprise, or
3867
- # Bitbucket repository.
3868
- #
3869
- # @!attribute [rw] arn
3870
- # The Amazon Resource Name (ARN) of the token.
3871
- # @return [String]
3872
- #
3873
- # @!attribute [rw] server_type
3874
- # The type of source provider. The valid options are GITHUB,
3875
- # GITHUB\_ENTERPRISE, or BITBUCKET.
3876
- # @return [String]
3877
- #
3878
- # @!attribute [rw] auth_type
3879
- # The type of authentication used by the credentials. Valid options
3880
- # are OAUTH, BASIC\_AUTH, or PERSONAL\_ACCESS\_TOKEN.
3881
- # @return [String]
5403
+ # @!attribute [rw] build_batch
5404
+ # A `BuildBatch` object that contains information about the batch
5405
+ # build.
5406
+ # @return [Types::BuildBatch]
3882
5407
  #
3883
- # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/SourceCredentialsInfo AWS API Documentation
5408
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/StartBuildBatchOutput AWS API Documentation
3884
5409
  #
3885
- class SourceCredentialsInfo < Struct.new(
3886
- :arn,
3887
- :server_type,
3888
- :auth_type)
5410
+ class StartBuildBatchOutput < Struct.new(
5411
+ :build_batch)
3889
5412
  SENSITIVE = []
3890
5413
  include Aws::Structure
3891
5414
  end
@@ -4023,27 +5546,34 @@ module Aws::CodeBuild
4023
5546
  # @return [Array<Types::ProjectSourceVersion>]
4024
5547
  #
4025
5548
  # @!attribute [rw] source_version
4026
- # A version of the build input to be built, for this build only. If
4027
- # not specified, the latest version is used. If specified, must be one
4028
- # of:
5549
+ # The version of the build input to be built, for this build only. If
5550
+ # not specified, the latest version is used. If specified, the
5551
+ # contents depends on the source provider:
4029
5552
  #
4030
- # * For AWS CodeCommit: the commit ID, branch, or Git tag to use.
5553
+ # AWS CodeCommit
4031
5554
  #
4032
- # * For GitHub: the commit ID, pull request ID, branch name, or tag
4033
- # name that corresponds to the version of the source code you want
4034
- # to build. If a pull request ID is specified, it must use the
4035
- # format `pr/pull-request-ID` (for example `pr/25`). If a branch
4036
- # name is specified, the branch's HEAD commit ID is used. If not
4037
- # specified, the default branch's HEAD commit ID is used.
5555
+ # : The commit ID, branch, or Git tag to use.
4038
5556
  #
4039
- # * For Bitbucket: the commit ID, branch name, or tag name that
5557
+ # GitHub
5558
+ #
5559
+ # : The commit ID, pull request ID, branch name, or tag name that
4040
5560
  # corresponds to the version of the source code you want to build.
4041
- # If a branch name is specified, the branch's HEAD commit ID is
4042
- # used. If not specified, the default branch's HEAD commit ID is
4043
- # used.
5561
+ # If a pull request ID is specified, it must use the format
5562
+ # `pr/pull-request-ID` (for example `pr/25`). If a branch name is
5563
+ # specified, the branch's HEAD commit ID is used. If not specified,
5564
+ # the default branch's HEAD commit ID is used.
4044
5565
  #
4045
- # * For Amazon Simple Storage Service (Amazon S3): the version ID of
4046
- # the object that represents the build input ZIP file to use.
5566
+ # Bitbucket
5567
+ #
5568
+ # : The commit ID, branch name, or tag name that corresponds to the
5569
+ # version of the source code you want to build. If a branch name is
5570
+ # specified, the branch's HEAD commit ID is used. If not specified,
5571
+ # the default branch's HEAD commit ID is used.
5572
+ #
5573
+ # Amazon Simple Storage Service (Amazon S3)
5574
+ #
5575
+ # : The version ID of the object that represents the build input ZIP
5576
+ # file to use.
4047
5577
  #
4048
5578
  # If `sourceVersion` is specified at the project level, then this
4049
5579
  # `sourceVersion` (at the build level) takes precedence.
@@ -4224,16 +5754,20 @@ module Aws::CodeBuild
4224
5754
  # The type of credentials AWS CodeBuild uses to pull images in your
4225
5755
  # build. There are two valid values:
4226
5756
  #
4227
- # * `CODEBUILD` specifies that AWS CodeBuild uses its own credentials.
4228
- # This requires that you modify your ECR repository policy to trust
4229
- # AWS CodeBuild's service principal.
5757
+ # CODEBUILD
4230
5758
  #
4231
- # * `SERVICE_ROLE` specifies that AWS CodeBuild uses your build
4232
- # project's service role.
5759
+ # : Specifies that AWS CodeBuild uses its own credentials. This
5760
+ # requires that you modify your ECR repository policy to trust AWS
5761
+ # CodeBuild's service principal.
5762
+ #
5763
+ # SERVICE\_ROLE
5764
+ #
5765
+ # : Specifies that AWS CodeBuild uses your build project's service
5766
+ # role.
4233
5767
  #
4234
5768
  # When using a cross-account or private registry image, you must use
4235
- # SERVICE\_ROLE credentials. When using an AWS CodeBuild curated
4236
- # image, you must use CODEBUILD credentials.
5769
+ # `SERVICE_ROLE` credentials. When using an AWS CodeBuild curated
5770
+ # image, you must use `CODEBUILD` credentials.
4237
5771
  # @return [String]
4238
5772
  #
4239
5773
  # @!attribute [rw] debug_session_enabled
@@ -4295,6 +5829,37 @@ module Aws::CodeBuild
4295
5829
  include Aws::Structure
4296
5830
  end
4297
5831
 
5832
+ # @note When making an API call, you may pass StopBuildBatchInput
5833
+ # data as a hash:
5834
+ #
5835
+ # {
5836
+ # id: "NonEmptyString", # required
5837
+ # }
5838
+ #
5839
+ # @!attribute [rw] id
5840
+ # The identifier of the batch build to stop.
5841
+ # @return [String]
5842
+ #
5843
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/StopBuildBatchInput AWS API Documentation
5844
+ #
5845
+ class StopBuildBatchInput < Struct.new(
5846
+ :id)
5847
+ SENSITIVE = []
5848
+ include Aws::Structure
5849
+ end
5850
+
5851
+ # @!attribute [rw] build_batch
5852
+ # Contains information about a batch build.
5853
+ # @return [Types::BuildBatch]
5854
+ #
5855
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/StopBuildBatchOutput AWS API Documentation
5856
+ #
5857
+ class StopBuildBatchOutput < Struct.new(
5858
+ :build_batch)
5859
+ SENSITIVE = []
5860
+ include Aws::Structure
5861
+ end
5862
+
4298
5863
  # @note When making an API call, you may pass StopBuildInput
4299
5864
  # data as a hash:
4300
5865
  #
@@ -4603,6 +6168,15 @@ module Aws::CodeBuild
4603
6168
  # mount_options: "String",
4604
6169
  # },
4605
6170
  # ],
6171
+ # build_batch_config: {
6172
+ # service_role: "NonEmptyString",
6173
+ # combine_artifacts: false,
6174
+ # restrictions: {
6175
+ # maximum_builds_allowed: 1,
6176
+ # compute_types_allowed: ["NonEmptyString"],
6177
+ # },
6178
+ # timeout_in_mins: 1,
6179
+ # },
4606
6180
  # }
4607
6181
  #
4608
6182
  # @!attribute [rw] name
@@ -4747,6 +6321,10 @@ module Aws::CodeBuild
4747
6321
  # of a file system created using Amazon Elastic File System.
4748
6322
  # @return [Array<Types::ProjectFileSystemLocation>]
4749
6323
  #
6324
+ # @!attribute [rw] build_batch_config
6325
+ # Contains configuration information about a batch build project.
6326
+ # @return [Types::ProjectBuildBatchConfig]
6327
+ #
4750
6328
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateProjectInput AWS API Documentation
4751
6329
  #
4752
6330
  class UpdateProjectInput < Struct.new(
@@ -4768,7 +6346,8 @@ module Aws::CodeBuild
4768
6346
  :vpc_config,
4769
6347
  :badge_enabled,
4770
6348
  :logs_config,
4771
- :file_system_locations)
6349
+ :file_system_locations,
6350
+ :build_batch_config)
4772
6351
  SENSITIVE = []
4773
6352
  include Aws::Structure
4774
6353
  end
@@ -4866,6 +6445,7 @@ module Aws::CodeBuild
4866
6445
  # },
4867
6446
  # ],
4868
6447
  # ],
6448
+ # build_type: "BUILD", # accepts BUILD, BUILD_BATCH
4869
6449
  # }
4870
6450
  #
4871
6451
  # @!attribute [rw] project_name
@@ -4896,13 +6476,18 @@ module Aws::CodeBuild
4896
6476
  # least one `EVENT` `WebhookFilter`.
4897
6477
  # @return [Array<Array<Types::WebhookFilter>>]
4898
6478
  #
6479
+ # @!attribute [rw] build_type
6480
+ # Specifies the type of build this webhook will trigger.
6481
+ # @return [String]
6482
+ #
4899
6483
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateWebhookInput AWS API Documentation
4900
6484
  #
4901
6485
  class UpdateWebhookInput < Struct.new(
4902
6486
  :project_name,
4903
6487
  :branch_filter,
4904
6488
  :rotate_secret,
4905
- :filter_groups)
6489
+ :filter_groups,
6490
+ :build_type)
4906
6491
  SENSITIVE = []
4907
6492
  include Aws::Structure
4908
6493
  end
@@ -4994,6 +6579,10 @@ module Aws::CodeBuild
4994
6579
  # its filters must pass.
4995
6580
  # @return [Array<Array<Types::WebhookFilter>>]
4996
6581
  #
6582
+ # @!attribute [rw] build_type
6583
+ # Specifies the type of build this webhook will trigger.
6584
+ # @return [String]
6585
+ #
4997
6586
  # @!attribute [rw] last_modified_secret
4998
6587
  # A timestamp that indicates the last time a repository's secret
4999
6588
  # token was modified.
@@ -5007,6 +6596,7 @@ module Aws::CodeBuild
5007
6596
  :secret,
5008
6597
  :branch_filter,
5009
6598
  :filter_groups,
6599
+ :build_type,
5010
6600
  :last_modified_secret)
5011
6601
  SENSITIVE = []
5012
6602
  include Aws::Structure