aws-sdk-codebuild 1.56.0 → 1.61.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9d9bed04ab4431a1f06fb72fd662ff7ed458c12b7e487b05d2ea6835e36fc9b
4
- data.tar.gz: e904dd36a7ae80e41747dca6d2824009284639dc0e398791fd050cedb066c7b9
3
+ metadata.gz: eca78a903842308103f8e4c59584e54c7f43f8e87d16871dbe2f9936951251ee
4
+ data.tar.gz: 6d9b2e87e658c5934317058cd03a0c304a690ce136449041c3ff32903da8a23f
5
5
  SHA512:
6
- metadata.gz: 733a596c4ce1027c6780dc07c808f657fb732108e33843a938faac1acc010dd14a9f800dc1885433c4fee24453504001cb63aa844c1fd8657b286d12ed06fda7
7
- data.tar.gz: fe44a63d7f35f4dd84f3f6d4c78cd523b8dee40e626d285743b3cc11b3d9da112febefbe2ec5b960a2de8a8aa272f2739a1d2101121f33af05b537db103c5092
6
+ metadata.gz: 56d78d2b5792b27a250bcdb866c9d13774dbddcc44eac38fe6529b362d534cbc1cc3584e80870cf6b21d8754255a4a0c893f03f98202680500f9d88a932d3b03
7
+ data.tar.gz: 9b7cd92b9e41b162e2aa2d349da44e4e26d8c8459f0ebc39aedc60402e3c22fd0d23655fc4dc0df783cabe6af41277283f4a1e9e904546d743f0632ff9163fdf
@@ -44,9 +44,9 @@ require_relative 'aws-sdk-codebuild/customizations'
44
44
  #
45
45
  # See {Errors} for more information.
46
46
  #
47
- # @service
47
+ # @!group service
48
48
  module Aws::CodeBuild
49
49
 
50
- GEM_VERSION = '1.56.0'
50
+ GEM_VERSION = '1.61.0'
51
51
 
52
52
  end
@@ -85,13 +85,28 @@ module Aws::CodeBuild
85
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
86
  # credentials.
87
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
88
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
89
103
  # from an EC2 IMDS on an EC2 instance.
90
104
  #
91
- # * `Aws::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
93
107
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
95
110
  #
96
111
  # When `:credentials` are not configured directly, the following
97
112
  # locations will be searched for credentials:
@@ -101,10 +116,10 @@ module Aws::CodeBuild
101
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
102
117
  # * `~/.aws/credentials`
103
118
  # * `~/.aws/config`
104
- # * EC2 IMDS instance profile - When used by default, the timeouts are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
107
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
108
123
  #
109
124
  # @option options [required, String] :region
110
125
  # The AWS region to connect to. The configured `:region` is
@@ -355,6 +370,168 @@ module Aws::CodeBuild
355
370
  req.send_request(options)
356
371
  end
357
372
 
373
+ # Retrieves information about one or more batch builds.
374
+ #
375
+ # @option params [required, Array<String>] :ids
376
+ # An array that contains the batch build identifiers to retrieve.
377
+ #
378
+ # @return [Types::BatchGetBuildBatchesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
379
+ #
380
+ # * {Types::BatchGetBuildBatchesOutput#build_batches #build_batches} => Array&lt;Types::BuildBatch&gt;
381
+ # * {Types::BatchGetBuildBatchesOutput#build_batches_not_found #build_batches_not_found} => Array&lt;String&gt;
382
+ #
383
+ # @example Request syntax with placeholder values
384
+ #
385
+ # resp = client.batch_get_build_batches({
386
+ # ids: ["NonEmptyString"], # required
387
+ # })
388
+ #
389
+ # @example Response structure
390
+ #
391
+ # resp.build_batches #=> Array
392
+ # resp.build_batches[0].id #=> String
393
+ # resp.build_batches[0].arn #=> String
394
+ # resp.build_batches[0].start_time #=> Time
395
+ # resp.build_batches[0].end_time #=> Time
396
+ # resp.build_batches[0].current_phase #=> String
397
+ # resp.build_batches[0].build_batch_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
398
+ # resp.build_batches[0].source_version #=> String
399
+ # resp.build_batches[0].resolved_source_version #=> String
400
+ # resp.build_batches[0].project_name #=> String
401
+ # resp.build_batches[0].phases #=> Array
402
+ # resp.build_batches[0].phases[0].phase_type #=> String, one of "SUBMITTED", "DOWNLOAD_BATCHSPEC", "IN_PROGRESS", "COMBINE_ARTIFACTS", "SUCCEEDED", "FAILED", "STOPPED"
403
+ # resp.build_batches[0].phases[0].phase_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
404
+ # resp.build_batches[0].phases[0].start_time #=> Time
405
+ # resp.build_batches[0].phases[0].end_time #=> Time
406
+ # resp.build_batches[0].phases[0].duration_in_seconds #=> Integer
407
+ # resp.build_batches[0].phases[0].contexts #=> Array
408
+ # resp.build_batches[0].phases[0].contexts[0].status_code #=> String
409
+ # resp.build_batches[0].phases[0].contexts[0].message #=> String
410
+ # resp.build_batches[0].source.type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3", "BITBUCKET", "GITHUB_ENTERPRISE", "NO_SOURCE"
411
+ # resp.build_batches[0].source.location #=> String
412
+ # resp.build_batches[0].source.git_clone_depth #=> Integer
413
+ # resp.build_batches[0].source.git_submodules_config.fetch_submodules #=> Boolean
414
+ # resp.build_batches[0].source.buildspec #=> String
415
+ # resp.build_batches[0].source.auth.type #=> String, one of "OAUTH"
416
+ # resp.build_batches[0].source.auth.resource #=> String
417
+ # resp.build_batches[0].source.report_build_status #=> Boolean
418
+ # resp.build_batches[0].source.build_status_config.context #=> String
419
+ # resp.build_batches[0].source.build_status_config.target_url #=> String
420
+ # resp.build_batches[0].source.insecure_ssl #=> Boolean
421
+ # resp.build_batches[0].source.source_identifier #=> String
422
+ # resp.build_batches[0].secondary_sources #=> Array
423
+ # resp.build_batches[0].secondary_sources[0].type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3", "BITBUCKET", "GITHUB_ENTERPRISE", "NO_SOURCE"
424
+ # resp.build_batches[0].secondary_sources[0].location #=> String
425
+ # resp.build_batches[0].secondary_sources[0].git_clone_depth #=> Integer
426
+ # resp.build_batches[0].secondary_sources[0].git_submodules_config.fetch_submodules #=> Boolean
427
+ # resp.build_batches[0].secondary_sources[0].buildspec #=> String
428
+ # resp.build_batches[0].secondary_sources[0].auth.type #=> String, one of "OAUTH"
429
+ # resp.build_batches[0].secondary_sources[0].auth.resource #=> String
430
+ # resp.build_batches[0].secondary_sources[0].report_build_status #=> Boolean
431
+ # resp.build_batches[0].secondary_sources[0].build_status_config.context #=> String
432
+ # resp.build_batches[0].secondary_sources[0].build_status_config.target_url #=> String
433
+ # resp.build_batches[0].secondary_sources[0].insecure_ssl #=> Boolean
434
+ # resp.build_batches[0].secondary_sources[0].source_identifier #=> String
435
+ # resp.build_batches[0].secondary_source_versions #=> Array
436
+ # resp.build_batches[0].secondary_source_versions[0].source_identifier #=> String
437
+ # resp.build_batches[0].secondary_source_versions[0].source_version #=> String
438
+ # resp.build_batches[0].artifacts.location #=> String
439
+ # resp.build_batches[0].artifacts.sha256sum #=> String
440
+ # resp.build_batches[0].artifacts.md5sum #=> String
441
+ # resp.build_batches[0].artifacts.override_artifact_name #=> Boolean
442
+ # resp.build_batches[0].artifacts.encryption_disabled #=> Boolean
443
+ # resp.build_batches[0].artifacts.artifact_identifier #=> String
444
+ # resp.build_batches[0].secondary_artifacts #=> Array
445
+ # resp.build_batches[0].secondary_artifacts[0].location #=> String
446
+ # resp.build_batches[0].secondary_artifacts[0].sha256sum #=> String
447
+ # resp.build_batches[0].secondary_artifacts[0].md5sum #=> String
448
+ # resp.build_batches[0].secondary_artifacts[0].override_artifact_name #=> Boolean
449
+ # resp.build_batches[0].secondary_artifacts[0].encryption_disabled #=> Boolean
450
+ # resp.build_batches[0].secondary_artifacts[0].artifact_identifier #=> String
451
+ # resp.build_batches[0].cache.type #=> String, one of "NO_CACHE", "S3", "LOCAL"
452
+ # resp.build_batches[0].cache.location #=> String
453
+ # resp.build_batches[0].cache.modes #=> Array
454
+ # resp.build_batches[0].cache.modes[0] #=> String, one of "LOCAL_DOCKER_LAYER_CACHE", "LOCAL_SOURCE_CACHE", "LOCAL_CUSTOM_CACHE"
455
+ # resp.build_batches[0].environment.type #=> String, one of "WINDOWS_CONTAINER", "LINUX_CONTAINER", "LINUX_GPU_CONTAINER", "ARM_CONTAINER", "WINDOWS_SERVER_2019_CONTAINER"
456
+ # resp.build_batches[0].environment.image #=> String
457
+ # resp.build_batches[0].environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE", "BUILD_GENERAL1_2XLARGE"
458
+ # resp.build_batches[0].environment.environment_variables #=> Array
459
+ # resp.build_batches[0].environment.environment_variables[0].name #=> String
460
+ # resp.build_batches[0].environment.environment_variables[0].value #=> String
461
+ # resp.build_batches[0].environment.environment_variables[0].type #=> String, one of "PLAINTEXT", "PARAMETER_STORE", "SECRETS_MANAGER"
462
+ # resp.build_batches[0].environment.privileged_mode #=> Boolean
463
+ # resp.build_batches[0].environment.certificate #=> String
464
+ # resp.build_batches[0].environment.registry_credential.credential #=> String
465
+ # resp.build_batches[0].environment.registry_credential.credential_provider #=> String, one of "SECRETS_MANAGER"
466
+ # resp.build_batches[0].environment.image_pull_credentials_type #=> String, one of "CODEBUILD", "SERVICE_ROLE"
467
+ # resp.build_batches[0].service_role #=> String
468
+ # resp.build_batches[0].log_config.cloud_watch_logs.status #=> String, one of "ENABLED", "DISABLED"
469
+ # resp.build_batches[0].log_config.cloud_watch_logs.group_name #=> String
470
+ # resp.build_batches[0].log_config.cloud_watch_logs.stream_name #=> String
471
+ # resp.build_batches[0].log_config.s3_logs.status #=> String, one of "ENABLED", "DISABLED"
472
+ # resp.build_batches[0].log_config.s3_logs.location #=> String
473
+ # resp.build_batches[0].log_config.s3_logs.encryption_disabled #=> Boolean
474
+ # resp.build_batches[0].build_timeout_in_minutes #=> Integer
475
+ # resp.build_batches[0].queued_timeout_in_minutes #=> Integer
476
+ # resp.build_batches[0].complete #=> Boolean
477
+ # resp.build_batches[0].initiator #=> String
478
+ # resp.build_batches[0].vpc_config.vpc_id #=> String
479
+ # resp.build_batches[0].vpc_config.subnets #=> Array
480
+ # resp.build_batches[0].vpc_config.subnets[0] #=> String
481
+ # resp.build_batches[0].vpc_config.security_group_ids #=> Array
482
+ # resp.build_batches[0].vpc_config.security_group_ids[0] #=> String
483
+ # resp.build_batches[0].encryption_key #=> String
484
+ # resp.build_batches[0].build_batch_number #=> Integer
485
+ # resp.build_batches[0].file_system_locations #=> Array
486
+ # resp.build_batches[0].file_system_locations[0].type #=> String, one of "EFS"
487
+ # resp.build_batches[0].file_system_locations[0].location #=> String
488
+ # resp.build_batches[0].file_system_locations[0].mount_point #=> String
489
+ # resp.build_batches[0].file_system_locations[0].identifier #=> String
490
+ # resp.build_batches[0].file_system_locations[0].mount_options #=> String
491
+ # resp.build_batches[0].build_batch_config.service_role #=> String
492
+ # resp.build_batches[0].build_batch_config.combine_artifacts #=> Boolean
493
+ # resp.build_batches[0].build_batch_config.restrictions.maximum_builds_allowed #=> Integer
494
+ # resp.build_batches[0].build_batch_config.restrictions.compute_types_allowed #=> Array
495
+ # resp.build_batches[0].build_batch_config.restrictions.compute_types_allowed[0] #=> String
496
+ # resp.build_batches[0].build_batch_config.timeout_in_mins #=> Integer
497
+ # resp.build_batches[0].build_groups #=> Array
498
+ # resp.build_batches[0].build_groups[0].identifier #=> String
499
+ # resp.build_batches[0].build_groups[0].depends_on #=> Array
500
+ # resp.build_batches[0].build_groups[0].depends_on[0] #=> String
501
+ # resp.build_batches[0].build_groups[0].ignore_failure #=> Boolean
502
+ # resp.build_batches[0].build_groups[0].current_build_summary.arn #=> String
503
+ # resp.build_batches[0].build_groups[0].current_build_summary.requested_on #=> Time
504
+ # resp.build_batches[0].build_groups[0].current_build_summary.build_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
505
+ # resp.build_batches[0].build_groups[0].current_build_summary.primary_artifact.type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
506
+ # resp.build_batches[0].build_groups[0].current_build_summary.primary_artifact.location #=> String
507
+ # resp.build_batches[0].build_groups[0].current_build_summary.primary_artifact.identifier #=> String
508
+ # resp.build_batches[0].build_groups[0].current_build_summary.secondary_artifacts #=> Array
509
+ # resp.build_batches[0].build_groups[0].current_build_summary.secondary_artifacts[0].type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
510
+ # resp.build_batches[0].build_groups[0].current_build_summary.secondary_artifacts[0].location #=> String
511
+ # resp.build_batches[0].build_groups[0].current_build_summary.secondary_artifacts[0].identifier #=> String
512
+ # resp.build_batches[0].build_groups[0].prior_build_summary_list #=> Array
513
+ # resp.build_batches[0].build_groups[0].prior_build_summary_list[0].arn #=> String
514
+ # resp.build_batches[0].build_groups[0].prior_build_summary_list[0].requested_on #=> Time
515
+ # resp.build_batches[0].build_groups[0].prior_build_summary_list[0].build_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
516
+ # resp.build_batches[0].build_groups[0].prior_build_summary_list[0].primary_artifact.type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
517
+ # resp.build_batches[0].build_groups[0].prior_build_summary_list[0].primary_artifact.location #=> String
518
+ # resp.build_batches[0].build_groups[0].prior_build_summary_list[0].primary_artifact.identifier #=> String
519
+ # resp.build_batches[0].build_groups[0].prior_build_summary_list[0].secondary_artifacts #=> Array
520
+ # resp.build_batches[0].build_groups[0].prior_build_summary_list[0].secondary_artifacts[0].type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
521
+ # resp.build_batches[0].build_groups[0].prior_build_summary_list[0].secondary_artifacts[0].location #=> String
522
+ # resp.build_batches[0].build_groups[0].prior_build_summary_list[0].secondary_artifacts[0].identifier #=> String
523
+ # resp.build_batches_not_found #=> Array
524
+ # resp.build_batches_not_found[0] #=> String
525
+ #
526
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetBuildBatches AWS API Documentation
527
+ #
528
+ # @overload batch_get_build_batches(params = {})
529
+ # @param [Hash] params ({})
530
+ def batch_get_build_batches(params = {}, options = {})
531
+ req = build_request(:batch_get_build_batches, params)
532
+ req.send_request(options)
533
+ end
534
+
358
535
  # Gets information about one or more builds.
359
536
  #
360
537
  # @option params [required, Array<String>] :ids
@@ -691,7 +868,7 @@ module Aws::CodeBuild
691
868
  # resp.builds[0].cache.location #=> String
692
869
  # resp.builds[0].cache.modes #=> Array
693
870
  # resp.builds[0].cache.modes[0] #=> String, one of "LOCAL_DOCKER_LAYER_CACHE", "LOCAL_SOURCE_CACHE", "LOCAL_CUSTOM_CACHE"
694
- # resp.builds[0].environment.type #=> String, one of "WINDOWS_CONTAINER", "LINUX_CONTAINER", "LINUX_GPU_CONTAINER", "ARM_CONTAINER"
871
+ # resp.builds[0].environment.type #=> String, one of "WINDOWS_CONTAINER", "LINUX_CONTAINER", "LINUX_GPU_CONTAINER", "ARM_CONTAINER", "WINDOWS_SERVER_2019_CONTAINER"
695
872
  # resp.builds[0].environment.image #=> String
696
873
  # resp.builds[0].environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE", "BUILD_GENERAL1_2XLARGE"
697
874
  # resp.builds[0].environment.environment_variables #=> Array
@@ -739,6 +916,9 @@ module Aws::CodeBuild
739
916
  # resp.builds[0].file_system_locations[0].mount_point #=> String
740
917
  # resp.builds[0].file_system_locations[0].identifier #=> String
741
918
  # resp.builds[0].file_system_locations[0].mount_options #=> String
919
+ # resp.builds[0].debug_session.session_enabled #=> Boolean
920
+ # resp.builds[0].debug_session.session_target #=> String
921
+ # resp.builds[0].build_batch_arn #=> String
742
922
  # resp.builds_not_found #=> Array
743
923
  # resp.builds_not_found[0] #=> String
744
924
  #
@@ -827,7 +1007,7 @@ module Aws::CodeBuild
827
1007
  # resp.projects[0].cache.location #=> String
828
1008
  # resp.projects[0].cache.modes #=> Array
829
1009
  # resp.projects[0].cache.modes[0] #=> String, one of "LOCAL_DOCKER_LAYER_CACHE", "LOCAL_SOURCE_CACHE", "LOCAL_CUSTOM_CACHE"
830
- # resp.projects[0].environment.type #=> String, one of "WINDOWS_CONTAINER", "LINUX_CONTAINER", "LINUX_GPU_CONTAINER", "ARM_CONTAINER"
1010
+ # resp.projects[0].environment.type #=> String, one of "WINDOWS_CONTAINER", "LINUX_CONTAINER", "LINUX_GPU_CONTAINER", "ARM_CONTAINER", "WINDOWS_SERVER_2019_CONTAINER"
831
1011
  # resp.projects[0].environment.image #=> String
832
1012
  # resp.projects[0].environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE", "BUILD_GENERAL1_2XLARGE"
833
1013
  # resp.projects[0].environment.environment_variables #=> Array
@@ -857,6 +1037,7 @@ module Aws::CodeBuild
857
1037
  # resp.projects[0].webhook.filter_groups[0][0].type #=> String, one of "EVENT", "BASE_REF", "HEAD_REF", "ACTOR_ACCOUNT_ID", "FILE_PATH", "COMMIT_MESSAGE"
858
1038
  # resp.projects[0].webhook.filter_groups[0][0].pattern #=> String
859
1039
  # resp.projects[0].webhook.filter_groups[0][0].exclude_matched_pattern #=> Boolean
1040
+ # resp.projects[0].webhook.build_type #=> String, one of "BUILD", "BUILD_BATCH"
860
1041
  # resp.projects[0].webhook.last_modified_secret #=> Time
861
1042
  # resp.projects[0].vpc_config.vpc_id #=> String
862
1043
  # resp.projects[0].vpc_config.subnets #=> Array
@@ -877,6 +1058,12 @@ module Aws::CodeBuild
877
1058
  # resp.projects[0].file_system_locations[0].mount_point #=> String
878
1059
  # resp.projects[0].file_system_locations[0].identifier #=> String
879
1060
  # resp.projects[0].file_system_locations[0].mount_options #=> String
1061
+ # resp.projects[0].build_batch_config.service_role #=> String
1062
+ # resp.projects[0].build_batch_config.combine_artifacts #=> Boolean
1063
+ # resp.projects[0].build_batch_config.restrictions.maximum_builds_allowed #=> Integer
1064
+ # resp.projects[0].build_batch_config.restrictions.compute_types_allowed #=> Array
1065
+ # resp.projects[0].build_batch_config.restrictions.compute_types_allowed[0] #=> String
1066
+ # resp.projects[0].build_batch_config.timeout_in_mins #=> Integer
880
1067
  # resp.projects_not_found #=> Array
881
1068
  # resp.projects_not_found[0] #=> String
882
1069
  #
@@ -911,7 +1098,7 @@ module Aws::CodeBuild
911
1098
  # resp.report_groups #=> Array
912
1099
  # resp.report_groups[0].arn #=> String
913
1100
  # resp.report_groups[0].name #=> String
914
- # resp.report_groups[0].type #=> String, one of "TEST"
1101
+ # resp.report_groups[0].type #=> String, one of "TEST", "CODE_COVERAGE"
915
1102
  # resp.report_groups[0].export_config.export_config_type #=> String, one of "S3", "NO_EXPORT"
916
1103
  # resp.report_groups[0].export_config.s3_destination.bucket #=> String
917
1104
  # resp.report_groups[0].export_config.s3_destination.path #=> String
@@ -955,7 +1142,7 @@ module Aws::CodeBuild
955
1142
  #
956
1143
  # resp.reports #=> Array
957
1144
  # resp.reports[0].arn #=> String
958
- # resp.reports[0].type #=> String, one of "TEST"
1145
+ # resp.reports[0].type #=> String, one of "TEST", "CODE_COVERAGE"
959
1146
  # resp.reports[0].name #=> String
960
1147
  # resp.reports[0].report_group_arn #=> String
961
1148
  # resp.reports[0].execution_id #=> String
@@ -973,6 +1160,12 @@ module Aws::CodeBuild
973
1160
  # resp.reports[0].test_summary.status_counts #=> Hash
974
1161
  # resp.reports[0].test_summary.status_counts["String"] #=> Integer
975
1162
  # resp.reports[0].test_summary.duration_in_nano_seconds #=> Integer
1163
+ # resp.reports[0].code_coverage_summary.line_coverage_percentage #=> Float
1164
+ # resp.reports[0].code_coverage_summary.lines_covered #=> Integer
1165
+ # resp.reports[0].code_coverage_summary.lines_missed #=> Integer
1166
+ # resp.reports[0].code_coverage_summary.branch_coverage_percentage #=> Float
1167
+ # resp.reports[0].code_coverage_summary.branches_covered #=> Integer
1168
+ # resp.reports[0].code_coverage_summary.branches_missed #=> Integer
976
1169
  # resp.reports_not_found #=> Array
977
1170
  # resp.reports_not_found[0] #=> String
978
1171
  #
@@ -1074,7 +1267,8 @@ module Aws::CodeBuild
1074
1267
  # </note>
1075
1268
  #
1076
1269
  # You can specify either the Amazon Resource Name (ARN) of the CMK or,
1077
- # if available, the CMK's alias (using the format `alias/alias-name `).
1270
+ # if available, the CMK's alias (using the format
1271
+ # `alias/<alias-name>`).
1078
1272
  #
1079
1273
  # @option params [Array<Types::Tag>] :tags
1080
1274
  # A list of tag key and value pairs associated with this build project.
@@ -1100,6 +1294,10 @@ module Aws::CodeBuild
1100
1294
  # `identifier`, `location`, `mountOptions`, `mountPoint`, and `type` of
1101
1295
  # a file system created using Amazon Elastic File System.
1102
1296
  #
1297
+ # @option params [Types::ProjectBuildBatchConfig] :build_batch_config
1298
+ # A ProjectBuildBatchConfig object that defines the batch build options
1299
+ # for the project.
1300
+ #
1103
1301
  # @return [Types::CreateProjectOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1104
1302
  #
1105
1303
  # * {Types::CreateProjectOutput#project #project} => Types::Project
@@ -1188,7 +1386,7 @@ module Aws::CodeBuild
1188
1386
  # modes: ["LOCAL_DOCKER_LAYER_CACHE"], # accepts LOCAL_DOCKER_LAYER_CACHE, LOCAL_SOURCE_CACHE, LOCAL_CUSTOM_CACHE
1189
1387
  # },
1190
1388
  # environment: { # required
1191
- # type: "WINDOWS_CONTAINER", # required, accepts WINDOWS_CONTAINER, LINUX_CONTAINER, LINUX_GPU_CONTAINER, ARM_CONTAINER
1389
+ # type: "WINDOWS_CONTAINER", # required, accepts WINDOWS_CONTAINER, LINUX_CONTAINER, LINUX_GPU_CONTAINER, ARM_CONTAINER, WINDOWS_SERVER_2019_CONTAINER
1192
1390
  # image: "NonEmptyString", # required
1193
1391
  # compute_type: "BUILD_GENERAL1_SMALL", # required, accepts BUILD_GENERAL1_SMALL, BUILD_GENERAL1_MEDIUM, BUILD_GENERAL1_LARGE, BUILD_GENERAL1_2XLARGE
1194
1392
  # environment_variables: [
@@ -1243,6 +1441,15 @@ module Aws::CodeBuild
1243
1441
  # mount_options: "String",
1244
1442
  # },
1245
1443
  # ],
1444
+ # build_batch_config: {
1445
+ # service_role: "NonEmptyString",
1446
+ # combine_artifacts: false,
1447
+ # restrictions: {
1448
+ # maximum_builds_allowed: 1,
1449
+ # compute_types_allowed: ["NonEmptyString"],
1450
+ # },
1451
+ # timeout_in_mins: 1,
1452
+ # },
1246
1453
  # })
1247
1454
  #
1248
1455
  # @example Response structure
@@ -1302,7 +1509,7 @@ module Aws::CodeBuild
1302
1509
  # resp.project.cache.location #=> String
1303
1510
  # resp.project.cache.modes #=> Array
1304
1511
  # resp.project.cache.modes[0] #=> String, one of "LOCAL_DOCKER_LAYER_CACHE", "LOCAL_SOURCE_CACHE", "LOCAL_CUSTOM_CACHE"
1305
- # resp.project.environment.type #=> String, one of "WINDOWS_CONTAINER", "LINUX_CONTAINER", "LINUX_GPU_CONTAINER", "ARM_CONTAINER"
1512
+ # resp.project.environment.type #=> String, one of "WINDOWS_CONTAINER", "LINUX_CONTAINER", "LINUX_GPU_CONTAINER", "ARM_CONTAINER", "WINDOWS_SERVER_2019_CONTAINER"
1306
1513
  # resp.project.environment.image #=> String
1307
1514
  # resp.project.environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE", "BUILD_GENERAL1_2XLARGE"
1308
1515
  # resp.project.environment.environment_variables #=> Array
@@ -1332,6 +1539,7 @@ module Aws::CodeBuild
1332
1539
  # resp.project.webhook.filter_groups[0][0].type #=> String, one of "EVENT", "BASE_REF", "HEAD_REF", "ACTOR_ACCOUNT_ID", "FILE_PATH", "COMMIT_MESSAGE"
1333
1540
  # resp.project.webhook.filter_groups[0][0].pattern #=> String
1334
1541
  # resp.project.webhook.filter_groups[0][0].exclude_matched_pattern #=> Boolean
1542
+ # resp.project.webhook.build_type #=> String, one of "BUILD", "BUILD_BATCH"
1335
1543
  # resp.project.webhook.last_modified_secret #=> Time
1336
1544
  # resp.project.vpc_config.vpc_id #=> String
1337
1545
  # resp.project.vpc_config.subnets #=> Array
@@ -1352,6 +1560,12 @@ module Aws::CodeBuild
1352
1560
  # resp.project.file_system_locations[0].mount_point #=> String
1353
1561
  # resp.project.file_system_locations[0].identifier #=> String
1354
1562
  # resp.project.file_system_locations[0].mount_options #=> String
1563
+ # resp.project.build_batch_config.service_role #=> String
1564
+ # resp.project.build_batch_config.combine_artifacts #=> Boolean
1565
+ # resp.project.build_batch_config.restrictions.maximum_builds_allowed #=> Integer
1566
+ # resp.project.build_batch_config.restrictions.compute_types_allowed #=> Array
1567
+ # resp.project.build_batch_config.restrictions.compute_types_allowed[0] #=> String
1568
+ # resp.project.build_batch_config.timeout_in_mins #=> Integer
1355
1569
  #
1356
1570
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateProject AWS API Documentation
1357
1571
  #
@@ -1389,7 +1603,7 @@ module Aws::CodeBuild
1389
1603
  #
1390
1604
  # resp = client.create_report_group({
1391
1605
  # name: "ReportGroupName", # required
1392
- # type: "TEST", # required, accepts TEST
1606
+ # type: "TEST", # required, accepts TEST, CODE_COVERAGE
1393
1607
  # export_config: { # required
1394
1608
  # export_config_type: "S3", # accepts S3, NO_EXPORT
1395
1609
  # s3_destination: {
@@ -1412,7 +1626,7 @@ module Aws::CodeBuild
1412
1626
  #
1413
1627
  # resp.report_group.arn #=> String
1414
1628
  # resp.report_group.name #=> String
1415
- # resp.report_group.type #=> String, one of "TEST"
1629
+ # resp.report_group.type #=> String, one of "TEST", "CODE_COVERAGE"
1416
1630
  # resp.report_group.export_config.export_config_type #=> String, one of "S3", "NO_EXPORT"
1417
1631
  # resp.report_group.export_config.s3_destination.bucket #=> String
1418
1632
  # resp.report_group.export_config.s3_destination.path #=> String
@@ -1475,6 +1689,9 @@ module Aws::CodeBuild
1475
1689
  # `filterGroups` array must pass. For a filter group to pass, each of
1476
1690
  # its filters must pass.
1477
1691
  #
1692
+ # @option params [String] :build_type
1693
+ # Specifies the type of build this webhook will trigger.
1694
+ #
1478
1695
  # @return [Types::CreateWebhookOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1479
1696
  #
1480
1697
  # * {Types::CreateWebhookOutput#webhook #webhook} => Types::Webhook
@@ -1493,6 +1710,7 @@ module Aws::CodeBuild
1493
1710
  # },
1494
1711
  # ],
1495
1712
  # ],
1713
+ # build_type: "BUILD", # accepts BUILD, BUILD_BATCH
1496
1714
  # })
1497
1715
  #
1498
1716
  # @example Response structure
@@ -1506,6 +1724,7 @@ module Aws::CodeBuild
1506
1724
  # resp.webhook.filter_groups[0][0].type #=> String, one of "EVENT", "BASE_REF", "HEAD_REF", "ACTOR_ACCOUNT_ID", "FILE_PATH", "COMMIT_MESSAGE"
1507
1725
  # resp.webhook.filter_groups[0][0].pattern #=> String
1508
1726
  # resp.webhook.filter_groups[0][0].exclude_matched_pattern #=> Boolean
1727
+ # resp.webhook.build_type #=> String, one of "BUILD", "BUILD_BATCH"
1509
1728
  # resp.webhook.last_modified_secret #=> Time
1510
1729
  #
1511
1730
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateWebhook AWS API Documentation
@@ -1517,6 +1736,41 @@ module Aws::CodeBuild
1517
1736
  req.send_request(options)
1518
1737
  end
1519
1738
 
1739
+ # Deletes a batch build.
1740
+ #
1741
+ # @option params [required, String] :id
1742
+ # The identifier of the batch build to delete.
1743
+ #
1744
+ # @return [Types::DeleteBuildBatchOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1745
+ #
1746
+ # * {Types::DeleteBuildBatchOutput#status_code #status_code} => String
1747
+ # * {Types::DeleteBuildBatchOutput#builds_deleted #builds_deleted} => Array&lt;String&gt;
1748
+ # * {Types::DeleteBuildBatchOutput#builds_not_deleted #builds_not_deleted} => Array&lt;Types::BuildNotDeleted&gt;
1749
+ #
1750
+ # @example Request syntax with placeholder values
1751
+ #
1752
+ # resp = client.delete_build_batch({
1753
+ # id: "NonEmptyString", # required
1754
+ # })
1755
+ #
1756
+ # @example Response structure
1757
+ #
1758
+ # resp.status_code #=> String
1759
+ # resp.builds_deleted #=> Array
1760
+ # resp.builds_deleted[0] #=> String
1761
+ # resp.builds_not_deleted #=> Array
1762
+ # resp.builds_not_deleted[0].id #=> String
1763
+ # resp.builds_not_deleted[0].status_code #=> String
1764
+ #
1765
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteBuildBatch AWS API Documentation
1766
+ #
1767
+ # @overload delete_build_batch(params = {})
1768
+ # @param [Hash] params ({})
1769
+ def delete_build_batch(params = {}, options = {})
1770
+ req = build_request(:delete_build_batch, params)
1771
+ req.send_request(options)
1772
+ end
1773
+
1520
1774
  # Deletes a build project. When you delete a project, its builds are not
1521
1775
  # deleted.
1522
1776
  #
@@ -1562,20 +1816,26 @@ module Aws::CodeBuild
1562
1816
  req.send_request(options)
1563
1817
  end
1564
1818
 
1565
- # `DeleteReportGroup`\: Deletes a report group. Before you delete a
1566
- # report group, you must delete its reports. Use
1567
- # [ListReportsForReportGroup][1] to get the reports in a report group.
1568
- # Use [DeleteReport][2] to delete the reports. If you call
1569
- # `DeleteReportGroup` for a report group that contains one or more
1570
- # reports, an exception is thrown.
1819
+ # Deletes a report group. Before you delete a report group, you must
1820
+ # delete its reports.
1571
1821
  #
1822
+ # @option params [required, String] :arn
1823
+ # The ARN of the report group to delete.
1572
1824
  #
1825
+ # @option params [Boolean] :delete_reports
1826
+ # If `true`, deletes any reports that belong to a report group before
1827
+ # deleting the report group.
1573
1828
  #
1574
- # [1]: https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ListReportsForReportGroup.html
1575
- # [2]: https://docs.aws.amazon.com/codebuild/latest/APIReference/API_DeleteReport.html
1829
+ # If `false`, you must delete any reports in the report group. Use
1830
+ # [ListReportsForReportGroup][1] to get the reports in a report group.
1831
+ # Use [DeleteReport][2] to delete the reports. If you call
1832
+ # `DeleteReportGroup` for a report group that contains one or more
1833
+ # reports, an exception is thrown.
1576
1834
  #
1577
- # @option params [required, String] :arn
1578
- # The ARN of the report group to delete.
1835
+ #
1836
+ #
1837
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ListReportsForReportGroup.html
1838
+ # [2]: https://docs.aws.amazon.com/codebuild/latest/APIReference/API_DeleteReport.html
1579
1839
  #
1580
1840
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1581
1841
  #
@@ -1583,6 +1843,7 @@ module Aws::CodeBuild
1583
1843
  #
1584
1844
  # resp = client.delete_report_group({
1585
1845
  # arn: "NonEmptyString", # required
1846
+ # delete_reports: false,
1586
1847
  # })
1587
1848
  #
1588
1849
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteReportGroup AWS API Documentation
@@ -1670,6 +1931,82 @@ module Aws::CodeBuild
1670
1931
  req.send_request(options)
1671
1932
  end
1672
1933
 
1934
+ # Retrieves one or more code coverage reports.
1935
+ #
1936
+ # @option params [required, String] :report_arn
1937
+ # The ARN of the report for which test cases are returned.
1938
+ #
1939
+ # @option params [String] :next_token
1940
+ # The `nextToken` value returned from a previous call to
1941
+ # `DescribeCodeCoverages`. This specifies the next item to return. To
1942
+ # return the beginning of the list, exclude this parameter.
1943
+ #
1944
+ # @option params [Integer] :max_results
1945
+ # The maximum number of results to return.
1946
+ #
1947
+ # @option params [String] :sort_order
1948
+ # Specifies if the results are sorted in ascending or descending order.
1949
+ #
1950
+ # @option params [String] :sort_by
1951
+ # Specifies how the results are sorted. Possible values are:
1952
+ #
1953
+ # FILE\_PATH
1954
+ #
1955
+ # : The results are sorted by file path.
1956
+ #
1957
+ # LINE\_COVERAGE\_PERCENTAGE
1958
+ #
1959
+ # : The results are sorted by the percentage of lines that are covered.
1960
+ #
1961
+ # @option params [Float] :min_line_coverage_percentage
1962
+ # The minimum line coverage percentage to report.
1963
+ #
1964
+ # @option params [Float] :max_line_coverage_percentage
1965
+ # The maximum line coverage percentage to report.
1966
+ #
1967
+ # @return [Types::DescribeCodeCoveragesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1968
+ #
1969
+ # * {Types::DescribeCodeCoveragesOutput#next_token #next_token} => String
1970
+ # * {Types::DescribeCodeCoveragesOutput#code_coverages #code_coverages} => Array&lt;Types::CodeCoverage&gt;
1971
+ #
1972
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1973
+ #
1974
+ # @example Request syntax with placeholder values
1975
+ #
1976
+ # resp = client.describe_code_coverages({
1977
+ # report_arn: "NonEmptyString", # required
1978
+ # next_token: "String",
1979
+ # max_results: 1,
1980
+ # sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
1981
+ # sort_by: "LINE_COVERAGE_PERCENTAGE", # accepts LINE_COVERAGE_PERCENTAGE, FILE_PATH
1982
+ # min_line_coverage_percentage: 1.0,
1983
+ # max_line_coverage_percentage: 1.0,
1984
+ # })
1985
+ #
1986
+ # @example Response structure
1987
+ #
1988
+ # resp.next_token #=> String
1989
+ # resp.code_coverages #=> Array
1990
+ # resp.code_coverages[0].id #=> String
1991
+ # resp.code_coverages[0].report_arn #=> String
1992
+ # resp.code_coverages[0].file_path #=> String
1993
+ # resp.code_coverages[0].line_coverage_percentage #=> Float
1994
+ # resp.code_coverages[0].lines_covered #=> Integer
1995
+ # resp.code_coverages[0].lines_missed #=> Integer
1996
+ # resp.code_coverages[0].branch_coverage_percentage #=> Float
1997
+ # resp.code_coverages[0].branches_covered #=> Integer
1998
+ # resp.code_coverages[0].branches_missed #=> Integer
1999
+ # resp.code_coverages[0].expired #=> Time
2000
+ #
2001
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DescribeCodeCoverages AWS API Documentation
2002
+ #
2003
+ # @overload describe_code_coverages(params = {})
2004
+ # @param [Hash] params ({})
2005
+ def describe_code_coverages(params = {}, options = {})
2006
+ req = build_request(:describe_code_coverages, params)
2007
+ req.send_request(options)
2008
+ end
2009
+
1673
2010
  # Returns a list of details about test cases for a report.
1674
2011
  #
1675
2012
  # @option params [required, String] :report_arn
@@ -1707,6 +2044,7 @@ module Aws::CodeBuild
1707
2044
  # max_results: 1,
1708
2045
  # filter: {
1709
2046
  # status: "String",
2047
+ # keyword: "String",
1710
2048
  # },
1711
2049
  # })
1712
2050
  #
@@ -1837,6 +2175,120 @@ module Aws::CodeBuild
1837
2175
  req.send_request(options)
1838
2176
  end
1839
2177
 
2178
+ # Retrieves the identifiers of your build batches in the current region.
2179
+ #
2180
+ # @option params [Types::BuildBatchFilter] :filter
2181
+ # A `BuildBatchFilter` object that specifies the filters for the search.
2182
+ #
2183
+ # @option params [Integer] :max_results
2184
+ # The maximum number of results to return.
2185
+ #
2186
+ # @option params [String] :sort_order
2187
+ # Specifies the sort order of the returned items. Valid values include:
2188
+ #
2189
+ # * `ASCENDING`\: List the batch build identifiers in ascending order by
2190
+ # identifier.
2191
+ #
2192
+ # * `DESCENDING`\: List the batch build identifiers in descending order
2193
+ # by identifier.
2194
+ #
2195
+ # @option params [String] :next_token
2196
+ # The `nextToken` value returned from a previous call to
2197
+ # `ListBuildBatches`. This specifies the next item to return. To return
2198
+ # the beginning of the list, exclude this parameter.
2199
+ #
2200
+ # @return [Types::ListBuildBatchesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2201
+ #
2202
+ # * {Types::ListBuildBatchesOutput#ids #ids} => Array&lt;String&gt;
2203
+ # * {Types::ListBuildBatchesOutput#next_token #next_token} => String
2204
+ #
2205
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2206
+ #
2207
+ # @example Request syntax with placeholder values
2208
+ #
2209
+ # resp = client.list_build_batches({
2210
+ # filter: {
2211
+ # status: "SUCCEEDED", # accepts SUCCEEDED, FAILED, FAULT, TIMED_OUT, IN_PROGRESS, STOPPED
2212
+ # },
2213
+ # max_results: 1,
2214
+ # sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
2215
+ # next_token: "String",
2216
+ # })
2217
+ #
2218
+ # @example Response structure
2219
+ #
2220
+ # resp.ids #=> Array
2221
+ # resp.ids[0] #=> String
2222
+ # resp.next_token #=> String
2223
+ #
2224
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListBuildBatches AWS API Documentation
2225
+ #
2226
+ # @overload list_build_batches(params = {})
2227
+ # @param [Hash] params ({})
2228
+ def list_build_batches(params = {}, options = {})
2229
+ req = build_request(:list_build_batches, params)
2230
+ req.send_request(options)
2231
+ end
2232
+
2233
+ # Retrieves the identifiers of the build batches for a specific project.
2234
+ #
2235
+ # @option params [String] :project_name
2236
+ # The name of the project.
2237
+ #
2238
+ # @option params [Types::BuildBatchFilter] :filter
2239
+ # A `BuildBatchFilter` object that specifies the filters for the search.
2240
+ #
2241
+ # @option params [Integer] :max_results
2242
+ # The maximum number of results to return.
2243
+ #
2244
+ # @option params [String] :sort_order
2245
+ # Specifies the sort order of the returned items. Valid values include:
2246
+ #
2247
+ # * `ASCENDING`\: List the batch build identifiers in ascending order by
2248
+ # identifier.
2249
+ #
2250
+ # * `DESCENDING`\: List the batch build identifiers in descending order
2251
+ # by identifier.
2252
+ #
2253
+ # @option params [String] :next_token
2254
+ # The `nextToken` value returned from a previous call to
2255
+ # `ListBuildBatchesForProject`. This specifies the next item to return.
2256
+ # To return the beginning of the list, exclude this parameter.
2257
+ #
2258
+ # @return [Types::ListBuildBatchesForProjectOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2259
+ #
2260
+ # * {Types::ListBuildBatchesForProjectOutput#ids #ids} => Array&lt;String&gt;
2261
+ # * {Types::ListBuildBatchesForProjectOutput#next_token #next_token} => String
2262
+ #
2263
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2264
+ #
2265
+ # @example Request syntax with placeholder values
2266
+ #
2267
+ # resp = client.list_build_batches_for_project({
2268
+ # project_name: "NonEmptyString",
2269
+ # filter: {
2270
+ # status: "SUCCEEDED", # accepts SUCCEEDED, FAILED, FAULT, TIMED_OUT, IN_PROGRESS, STOPPED
2271
+ # },
2272
+ # max_results: 1,
2273
+ # sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
2274
+ # next_token: "String",
2275
+ # })
2276
+ #
2277
+ # @example Response structure
2278
+ #
2279
+ # resp.ids #=> Array
2280
+ # resp.ids[0] #=> String
2281
+ # resp.next_token #=> String
2282
+ #
2283
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListBuildBatchesForProject AWS API Documentation
2284
+ #
2285
+ # @overload list_build_batches_for_project(params = {})
2286
+ # @param [Hash] params ({})
2287
+ def list_build_batches_for_project(params = {}, options = {})
2288
+ req = build_request(:list_build_batches_for_project, params)
2289
+ req.send_request(options)
2290
+ end
2291
+
1840
2292
  # Gets a list of build IDs, with each build ID representing a single
1841
2293
  # build.
1842
2294
  #
@@ -2407,102 +2859,431 @@ module Aws::CodeBuild
2407
2859
  req.send_request(options)
2408
2860
  end
2409
2861
 
2410
- # Starts running a build.
2411
- #
2412
- # @option params [required, String] :project_name
2413
- # The name of the AWS CodeBuild build project to start running a build.
2414
- #
2415
- # @option params [Array<Types::ProjectSource>] :secondary_sources_override
2416
- # An array of `ProjectSource` objects.
2417
- #
2418
- # @option params [Array<Types::ProjectSourceVersion>] :secondary_sources_version_override
2419
- # An array of `ProjectSourceVersion` objects that specify one or more
2420
- # versions of the project's secondary sources to be used for this build
2421
- # only.
2422
- #
2423
- # @option params [String] :source_version
2424
- # A version of the build input to be built, for this build only. If not
2425
- # specified, the latest version is used. If specified, must be one of:
2426
- #
2427
- # * For AWS CodeCommit: the commit ID, branch, or Git tag to use.
2428
- #
2429
- # * For GitHub: the commit ID, pull request ID, branch name, or tag name
2430
- # that corresponds to the version of the source code you want to
2431
- # build. If a pull request ID is specified, it must use the format
2432
- # `pr/pull-request-ID` (for example `pr/25`). If a branch name is
2433
- # specified, the branch's HEAD commit ID is used. If not specified,
2434
- # the default branch's HEAD commit ID is used.
2435
- #
2436
- # * For Bitbucket: the commit ID, branch name, or tag name that
2437
- # corresponds to the version of the source code you want to build. If
2438
- # a branch name is specified, the branch's HEAD commit ID is used. If
2439
- # not specified, the default branch's HEAD commit ID is used.
2440
- #
2441
- # * For Amazon Simple Storage Service (Amazon S3): the version ID of the
2442
- # object that represents the build input ZIP file to use.
2443
- #
2444
- # If `sourceVersion` is specified at the project level, then this
2445
- # `sourceVersion` (at the build level) takes precedence.
2446
- #
2447
- # For more information, see [Source Version Sample with CodeBuild][1] in
2448
- # the *AWS CodeBuild User Guide*.
2449
- #
2450
- #
2451
- #
2452
- # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html
2453
- #
2454
- # @option params [Types::ProjectArtifacts] :artifacts_override
2455
- # Build output artifact settings that override, for this build only, the
2456
- # latest ones already defined in the build project.
2457
- #
2458
- # @option params [Array<Types::ProjectArtifacts>] :secondary_artifacts_override
2459
- # An array of `ProjectArtifacts` objects.
2460
- #
2461
- # @option params [Array<Types::EnvironmentVariable>] :environment_variables_override
2462
- # A set of environment variables that overrides, for this build only,
2463
- # the latest ones already defined in the build project.
2464
- #
2465
- # @option params [String] :source_type_override
2466
- # A source input type, for this build, that overrides the source input
2467
- # defined in the build project.
2468
- #
2469
- # @option params [String] :source_location_override
2470
- # A location that overrides, for this build, the source location for the
2471
- # one defined in the build project.
2472
- #
2473
- # @option params [Types::SourceAuth] :source_auth_override
2474
- # An authorization type for this build that overrides the one defined in
2475
- # the build project. This override applies only if the build project's
2476
- # source is BitBucket or GitHub.
2862
+ # Restarts a build.
2477
2863
  #
2478
- # @option params [Integer] :git_clone_depth_override
2479
- # The user-defined depth of history, with a minimum value of 0, that
2480
- # overrides, for this build only, any previous depth of history defined
2481
- # in the build project.
2864
+ # @option params [String] :id
2865
+ # Specifies the identifier of the build to restart.
2482
2866
  #
2483
- # @option params [Types::GitSubmodulesConfig] :git_submodules_config_override
2484
- # Information about the Git submodules configuration for this build of
2485
- # an AWS CodeBuild build project.
2867
+ # @option params [String] :idempotency_token
2868
+ # A unique, case sensitive identifier you provide to ensure the
2869
+ # idempotency of the `RetryBuild` request. The token is included in the
2870
+ # `RetryBuild` request and is valid for five minutes. If you repeat the
2871
+ # `RetryBuild` request with the same token, but change a parameter, AWS
2872
+ # CodeBuild returns a parameter mismatch error.
2486
2873
  #
2487
- # @option params [String] :buildspec_override
2488
- # A buildspec file declaration that overrides, for this build only, the
2489
- # latest one already defined in the build project.
2874
+ # @return [Types::RetryBuildOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2490
2875
  #
2491
- # If this value is set, it can be either an inline buildspec definition,
2492
- # the path to an alternate buildspec file relative to the value of the
2493
- # built-in `CODEBUILD_SRC_DIR` environment variable, or the path to an
2494
- # S3 bucket. The bucket must be in the same AWS Region as the build
2495
- # project. Specify the buildspec file using its ARN (for example,
2496
- # `arn:aws:s3:::my-codebuild-sample2/buildspec.yml`). If this value is
2497
- # not provided or is set to an empty string, the source code must
2498
- # contain a buildspec file in its root directory. For more information,
2499
- # see [Buildspec File Name and Storage Location][1].
2876
+ # * {Types::RetryBuildOutput#build #build} => Types::Build
2500
2877
  #
2878
+ # @example Request syntax with placeholder values
2501
2879
  #
2880
+ # resp = client.retry_build({
2881
+ # id: "NonEmptyString",
2882
+ # idempotency_token: "String",
2883
+ # })
2502
2884
  #
2503
- # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-name-storage
2885
+ # @example Response structure
2504
2886
  #
2505
- # @option params [Boolean] :insecure_ssl_override
2887
+ # resp.build.id #=> String
2888
+ # resp.build.arn #=> String
2889
+ # resp.build.build_number #=> Integer
2890
+ # resp.build.start_time #=> Time
2891
+ # resp.build.end_time #=> Time
2892
+ # resp.build.current_phase #=> String
2893
+ # resp.build.build_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
2894
+ # resp.build.source_version #=> String
2895
+ # resp.build.resolved_source_version #=> String
2896
+ # resp.build.project_name #=> String
2897
+ # resp.build.phases #=> Array
2898
+ # resp.build.phases[0].phase_type #=> String, one of "SUBMITTED", "QUEUED", "PROVISIONING", "DOWNLOAD_SOURCE", "INSTALL", "PRE_BUILD", "BUILD", "POST_BUILD", "UPLOAD_ARTIFACTS", "FINALIZING", "COMPLETED"
2899
+ # resp.build.phases[0].phase_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
2900
+ # resp.build.phases[0].start_time #=> Time
2901
+ # resp.build.phases[0].end_time #=> Time
2902
+ # resp.build.phases[0].duration_in_seconds #=> Integer
2903
+ # resp.build.phases[0].contexts #=> Array
2904
+ # resp.build.phases[0].contexts[0].status_code #=> String
2905
+ # resp.build.phases[0].contexts[0].message #=> String
2906
+ # resp.build.source.type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3", "BITBUCKET", "GITHUB_ENTERPRISE", "NO_SOURCE"
2907
+ # resp.build.source.location #=> String
2908
+ # resp.build.source.git_clone_depth #=> Integer
2909
+ # resp.build.source.git_submodules_config.fetch_submodules #=> Boolean
2910
+ # resp.build.source.buildspec #=> String
2911
+ # resp.build.source.auth.type #=> String, one of "OAUTH"
2912
+ # resp.build.source.auth.resource #=> String
2913
+ # resp.build.source.report_build_status #=> Boolean
2914
+ # resp.build.source.build_status_config.context #=> String
2915
+ # resp.build.source.build_status_config.target_url #=> String
2916
+ # resp.build.source.insecure_ssl #=> Boolean
2917
+ # resp.build.source.source_identifier #=> String
2918
+ # resp.build.secondary_sources #=> Array
2919
+ # resp.build.secondary_sources[0].type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3", "BITBUCKET", "GITHUB_ENTERPRISE", "NO_SOURCE"
2920
+ # resp.build.secondary_sources[0].location #=> String
2921
+ # resp.build.secondary_sources[0].git_clone_depth #=> Integer
2922
+ # resp.build.secondary_sources[0].git_submodules_config.fetch_submodules #=> Boolean
2923
+ # resp.build.secondary_sources[0].buildspec #=> String
2924
+ # resp.build.secondary_sources[0].auth.type #=> String, one of "OAUTH"
2925
+ # resp.build.secondary_sources[0].auth.resource #=> String
2926
+ # resp.build.secondary_sources[0].report_build_status #=> Boolean
2927
+ # resp.build.secondary_sources[0].build_status_config.context #=> String
2928
+ # resp.build.secondary_sources[0].build_status_config.target_url #=> String
2929
+ # resp.build.secondary_sources[0].insecure_ssl #=> Boolean
2930
+ # resp.build.secondary_sources[0].source_identifier #=> String
2931
+ # resp.build.secondary_source_versions #=> Array
2932
+ # resp.build.secondary_source_versions[0].source_identifier #=> String
2933
+ # resp.build.secondary_source_versions[0].source_version #=> String
2934
+ # resp.build.artifacts.location #=> String
2935
+ # resp.build.artifacts.sha256sum #=> String
2936
+ # resp.build.artifacts.md5sum #=> String
2937
+ # resp.build.artifacts.override_artifact_name #=> Boolean
2938
+ # resp.build.artifacts.encryption_disabled #=> Boolean
2939
+ # resp.build.artifacts.artifact_identifier #=> String
2940
+ # resp.build.secondary_artifacts #=> Array
2941
+ # resp.build.secondary_artifacts[0].location #=> String
2942
+ # resp.build.secondary_artifacts[0].sha256sum #=> String
2943
+ # resp.build.secondary_artifacts[0].md5sum #=> String
2944
+ # resp.build.secondary_artifacts[0].override_artifact_name #=> Boolean
2945
+ # resp.build.secondary_artifacts[0].encryption_disabled #=> Boolean
2946
+ # resp.build.secondary_artifacts[0].artifact_identifier #=> String
2947
+ # resp.build.cache.type #=> String, one of "NO_CACHE", "S3", "LOCAL"
2948
+ # resp.build.cache.location #=> String
2949
+ # resp.build.cache.modes #=> Array
2950
+ # resp.build.cache.modes[0] #=> String, one of "LOCAL_DOCKER_LAYER_CACHE", "LOCAL_SOURCE_CACHE", "LOCAL_CUSTOM_CACHE"
2951
+ # resp.build.environment.type #=> String, one of "WINDOWS_CONTAINER", "LINUX_CONTAINER", "LINUX_GPU_CONTAINER", "ARM_CONTAINER", "WINDOWS_SERVER_2019_CONTAINER"
2952
+ # resp.build.environment.image #=> String
2953
+ # resp.build.environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE", "BUILD_GENERAL1_2XLARGE"
2954
+ # resp.build.environment.environment_variables #=> Array
2955
+ # resp.build.environment.environment_variables[0].name #=> String
2956
+ # resp.build.environment.environment_variables[0].value #=> String
2957
+ # resp.build.environment.environment_variables[0].type #=> String, one of "PLAINTEXT", "PARAMETER_STORE", "SECRETS_MANAGER"
2958
+ # resp.build.environment.privileged_mode #=> Boolean
2959
+ # resp.build.environment.certificate #=> String
2960
+ # resp.build.environment.registry_credential.credential #=> String
2961
+ # resp.build.environment.registry_credential.credential_provider #=> String, one of "SECRETS_MANAGER"
2962
+ # resp.build.environment.image_pull_credentials_type #=> String, one of "CODEBUILD", "SERVICE_ROLE"
2963
+ # resp.build.service_role #=> String
2964
+ # resp.build.logs.group_name #=> String
2965
+ # resp.build.logs.stream_name #=> String
2966
+ # resp.build.logs.deep_link #=> String
2967
+ # resp.build.logs.s3_deep_link #=> String
2968
+ # resp.build.logs.cloud_watch_logs_arn #=> String
2969
+ # resp.build.logs.s3_logs_arn #=> String
2970
+ # resp.build.logs.cloud_watch_logs.status #=> String, one of "ENABLED", "DISABLED"
2971
+ # resp.build.logs.cloud_watch_logs.group_name #=> String
2972
+ # resp.build.logs.cloud_watch_logs.stream_name #=> String
2973
+ # resp.build.logs.s3_logs.status #=> String, one of "ENABLED", "DISABLED"
2974
+ # resp.build.logs.s3_logs.location #=> String
2975
+ # resp.build.logs.s3_logs.encryption_disabled #=> Boolean
2976
+ # resp.build.timeout_in_minutes #=> Integer
2977
+ # resp.build.queued_timeout_in_minutes #=> Integer
2978
+ # resp.build.build_complete #=> Boolean
2979
+ # resp.build.initiator #=> String
2980
+ # resp.build.vpc_config.vpc_id #=> String
2981
+ # resp.build.vpc_config.subnets #=> Array
2982
+ # resp.build.vpc_config.subnets[0] #=> String
2983
+ # resp.build.vpc_config.security_group_ids #=> Array
2984
+ # resp.build.vpc_config.security_group_ids[0] #=> String
2985
+ # resp.build.network_interface.subnet_id #=> String
2986
+ # resp.build.network_interface.network_interface_id #=> String
2987
+ # resp.build.encryption_key #=> String
2988
+ # resp.build.exported_environment_variables #=> Array
2989
+ # resp.build.exported_environment_variables[0].name #=> String
2990
+ # resp.build.exported_environment_variables[0].value #=> String
2991
+ # resp.build.report_arns #=> Array
2992
+ # resp.build.report_arns[0] #=> String
2993
+ # resp.build.file_system_locations #=> Array
2994
+ # resp.build.file_system_locations[0].type #=> String, one of "EFS"
2995
+ # resp.build.file_system_locations[0].location #=> String
2996
+ # resp.build.file_system_locations[0].mount_point #=> String
2997
+ # resp.build.file_system_locations[0].identifier #=> String
2998
+ # resp.build.file_system_locations[0].mount_options #=> String
2999
+ # resp.build.debug_session.session_enabled #=> Boolean
3000
+ # resp.build.debug_session.session_target #=> String
3001
+ # resp.build.build_batch_arn #=> String
3002
+ #
3003
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/RetryBuild AWS API Documentation
3004
+ #
3005
+ # @overload retry_build(params = {})
3006
+ # @param [Hash] params ({})
3007
+ def retry_build(params = {}, options = {})
3008
+ req = build_request(:retry_build, params)
3009
+ req.send_request(options)
3010
+ end
3011
+
3012
+ # Restarts a batch build.
3013
+ #
3014
+ # @option params [String] :id
3015
+ # Specifies the identifier of the batch build to restart.
3016
+ #
3017
+ # @option params [String] :idempotency_token
3018
+ # A unique, case sensitive identifier you provide to ensure the
3019
+ # idempotency of the `RetryBuildBatch` request. The token is included in
3020
+ # the `RetryBuildBatch` request and is valid for five minutes. If you
3021
+ # repeat the `RetryBuildBatch` request with the same token, but change a
3022
+ # parameter, AWS CodeBuild returns a parameter mismatch error.
3023
+ #
3024
+ # @option params [String] :retry_type
3025
+ # Specifies the type of retry to perform.
3026
+ #
3027
+ # @return [Types::RetryBuildBatchOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3028
+ #
3029
+ # * {Types::RetryBuildBatchOutput#build_batch #build_batch} => Types::BuildBatch
3030
+ #
3031
+ # @example Request syntax with placeholder values
3032
+ #
3033
+ # resp = client.retry_build_batch({
3034
+ # id: "NonEmptyString",
3035
+ # idempotency_token: "String",
3036
+ # retry_type: "RETRY_ALL_BUILDS", # accepts RETRY_ALL_BUILDS, RETRY_FAILED_BUILDS
3037
+ # })
3038
+ #
3039
+ # @example Response structure
3040
+ #
3041
+ # resp.build_batch.id #=> String
3042
+ # resp.build_batch.arn #=> String
3043
+ # resp.build_batch.start_time #=> Time
3044
+ # resp.build_batch.end_time #=> Time
3045
+ # resp.build_batch.current_phase #=> String
3046
+ # resp.build_batch.build_batch_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
3047
+ # resp.build_batch.source_version #=> String
3048
+ # resp.build_batch.resolved_source_version #=> String
3049
+ # resp.build_batch.project_name #=> String
3050
+ # resp.build_batch.phases #=> Array
3051
+ # resp.build_batch.phases[0].phase_type #=> String, one of "SUBMITTED", "DOWNLOAD_BATCHSPEC", "IN_PROGRESS", "COMBINE_ARTIFACTS", "SUCCEEDED", "FAILED", "STOPPED"
3052
+ # resp.build_batch.phases[0].phase_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
3053
+ # resp.build_batch.phases[0].start_time #=> Time
3054
+ # resp.build_batch.phases[0].end_time #=> Time
3055
+ # resp.build_batch.phases[0].duration_in_seconds #=> Integer
3056
+ # resp.build_batch.phases[0].contexts #=> Array
3057
+ # resp.build_batch.phases[0].contexts[0].status_code #=> String
3058
+ # resp.build_batch.phases[0].contexts[0].message #=> String
3059
+ # resp.build_batch.source.type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3", "BITBUCKET", "GITHUB_ENTERPRISE", "NO_SOURCE"
3060
+ # resp.build_batch.source.location #=> String
3061
+ # resp.build_batch.source.git_clone_depth #=> Integer
3062
+ # resp.build_batch.source.git_submodules_config.fetch_submodules #=> Boolean
3063
+ # resp.build_batch.source.buildspec #=> String
3064
+ # resp.build_batch.source.auth.type #=> String, one of "OAUTH"
3065
+ # resp.build_batch.source.auth.resource #=> String
3066
+ # resp.build_batch.source.report_build_status #=> Boolean
3067
+ # resp.build_batch.source.build_status_config.context #=> String
3068
+ # resp.build_batch.source.build_status_config.target_url #=> String
3069
+ # resp.build_batch.source.insecure_ssl #=> Boolean
3070
+ # resp.build_batch.source.source_identifier #=> String
3071
+ # resp.build_batch.secondary_sources #=> Array
3072
+ # resp.build_batch.secondary_sources[0].type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3", "BITBUCKET", "GITHUB_ENTERPRISE", "NO_SOURCE"
3073
+ # resp.build_batch.secondary_sources[0].location #=> String
3074
+ # resp.build_batch.secondary_sources[0].git_clone_depth #=> Integer
3075
+ # resp.build_batch.secondary_sources[0].git_submodules_config.fetch_submodules #=> Boolean
3076
+ # resp.build_batch.secondary_sources[0].buildspec #=> String
3077
+ # resp.build_batch.secondary_sources[0].auth.type #=> String, one of "OAUTH"
3078
+ # resp.build_batch.secondary_sources[0].auth.resource #=> String
3079
+ # resp.build_batch.secondary_sources[0].report_build_status #=> Boolean
3080
+ # resp.build_batch.secondary_sources[0].build_status_config.context #=> String
3081
+ # resp.build_batch.secondary_sources[0].build_status_config.target_url #=> String
3082
+ # resp.build_batch.secondary_sources[0].insecure_ssl #=> Boolean
3083
+ # resp.build_batch.secondary_sources[0].source_identifier #=> String
3084
+ # resp.build_batch.secondary_source_versions #=> Array
3085
+ # resp.build_batch.secondary_source_versions[0].source_identifier #=> String
3086
+ # resp.build_batch.secondary_source_versions[0].source_version #=> String
3087
+ # resp.build_batch.artifacts.location #=> String
3088
+ # resp.build_batch.artifacts.sha256sum #=> String
3089
+ # resp.build_batch.artifacts.md5sum #=> String
3090
+ # resp.build_batch.artifacts.override_artifact_name #=> Boolean
3091
+ # resp.build_batch.artifacts.encryption_disabled #=> Boolean
3092
+ # resp.build_batch.artifacts.artifact_identifier #=> String
3093
+ # resp.build_batch.secondary_artifacts #=> Array
3094
+ # resp.build_batch.secondary_artifacts[0].location #=> String
3095
+ # resp.build_batch.secondary_artifacts[0].sha256sum #=> String
3096
+ # resp.build_batch.secondary_artifacts[0].md5sum #=> String
3097
+ # resp.build_batch.secondary_artifacts[0].override_artifact_name #=> Boolean
3098
+ # resp.build_batch.secondary_artifacts[0].encryption_disabled #=> Boolean
3099
+ # resp.build_batch.secondary_artifacts[0].artifact_identifier #=> String
3100
+ # resp.build_batch.cache.type #=> String, one of "NO_CACHE", "S3", "LOCAL"
3101
+ # resp.build_batch.cache.location #=> String
3102
+ # resp.build_batch.cache.modes #=> Array
3103
+ # resp.build_batch.cache.modes[0] #=> String, one of "LOCAL_DOCKER_LAYER_CACHE", "LOCAL_SOURCE_CACHE", "LOCAL_CUSTOM_CACHE"
3104
+ # resp.build_batch.environment.type #=> String, one of "WINDOWS_CONTAINER", "LINUX_CONTAINER", "LINUX_GPU_CONTAINER", "ARM_CONTAINER", "WINDOWS_SERVER_2019_CONTAINER"
3105
+ # resp.build_batch.environment.image #=> String
3106
+ # resp.build_batch.environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE", "BUILD_GENERAL1_2XLARGE"
3107
+ # resp.build_batch.environment.environment_variables #=> Array
3108
+ # resp.build_batch.environment.environment_variables[0].name #=> String
3109
+ # resp.build_batch.environment.environment_variables[0].value #=> String
3110
+ # resp.build_batch.environment.environment_variables[0].type #=> String, one of "PLAINTEXT", "PARAMETER_STORE", "SECRETS_MANAGER"
3111
+ # resp.build_batch.environment.privileged_mode #=> Boolean
3112
+ # resp.build_batch.environment.certificate #=> String
3113
+ # resp.build_batch.environment.registry_credential.credential #=> String
3114
+ # resp.build_batch.environment.registry_credential.credential_provider #=> String, one of "SECRETS_MANAGER"
3115
+ # resp.build_batch.environment.image_pull_credentials_type #=> String, one of "CODEBUILD", "SERVICE_ROLE"
3116
+ # resp.build_batch.service_role #=> String
3117
+ # resp.build_batch.log_config.cloud_watch_logs.status #=> String, one of "ENABLED", "DISABLED"
3118
+ # resp.build_batch.log_config.cloud_watch_logs.group_name #=> String
3119
+ # resp.build_batch.log_config.cloud_watch_logs.stream_name #=> String
3120
+ # resp.build_batch.log_config.s3_logs.status #=> String, one of "ENABLED", "DISABLED"
3121
+ # resp.build_batch.log_config.s3_logs.location #=> String
3122
+ # resp.build_batch.log_config.s3_logs.encryption_disabled #=> Boolean
3123
+ # resp.build_batch.build_timeout_in_minutes #=> Integer
3124
+ # resp.build_batch.queued_timeout_in_minutes #=> Integer
3125
+ # resp.build_batch.complete #=> Boolean
3126
+ # resp.build_batch.initiator #=> String
3127
+ # resp.build_batch.vpc_config.vpc_id #=> String
3128
+ # resp.build_batch.vpc_config.subnets #=> Array
3129
+ # resp.build_batch.vpc_config.subnets[0] #=> String
3130
+ # resp.build_batch.vpc_config.security_group_ids #=> Array
3131
+ # resp.build_batch.vpc_config.security_group_ids[0] #=> String
3132
+ # resp.build_batch.encryption_key #=> String
3133
+ # resp.build_batch.build_batch_number #=> Integer
3134
+ # resp.build_batch.file_system_locations #=> Array
3135
+ # resp.build_batch.file_system_locations[0].type #=> String, one of "EFS"
3136
+ # resp.build_batch.file_system_locations[0].location #=> String
3137
+ # resp.build_batch.file_system_locations[0].mount_point #=> String
3138
+ # resp.build_batch.file_system_locations[0].identifier #=> String
3139
+ # resp.build_batch.file_system_locations[0].mount_options #=> String
3140
+ # resp.build_batch.build_batch_config.service_role #=> String
3141
+ # resp.build_batch.build_batch_config.combine_artifacts #=> Boolean
3142
+ # resp.build_batch.build_batch_config.restrictions.maximum_builds_allowed #=> Integer
3143
+ # resp.build_batch.build_batch_config.restrictions.compute_types_allowed #=> Array
3144
+ # resp.build_batch.build_batch_config.restrictions.compute_types_allowed[0] #=> String
3145
+ # resp.build_batch.build_batch_config.timeout_in_mins #=> Integer
3146
+ # resp.build_batch.build_groups #=> Array
3147
+ # resp.build_batch.build_groups[0].identifier #=> String
3148
+ # resp.build_batch.build_groups[0].depends_on #=> Array
3149
+ # resp.build_batch.build_groups[0].depends_on[0] #=> String
3150
+ # resp.build_batch.build_groups[0].ignore_failure #=> Boolean
3151
+ # resp.build_batch.build_groups[0].current_build_summary.arn #=> String
3152
+ # resp.build_batch.build_groups[0].current_build_summary.requested_on #=> Time
3153
+ # resp.build_batch.build_groups[0].current_build_summary.build_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
3154
+ # resp.build_batch.build_groups[0].current_build_summary.primary_artifact.type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
3155
+ # resp.build_batch.build_groups[0].current_build_summary.primary_artifact.location #=> String
3156
+ # resp.build_batch.build_groups[0].current_build_summary.primary_artifact.identifier #=> String
3157
+ # resp.build_batch.build_groups[0].current_build_summary.secondary_artifacts #=> Array
3158
+ # resp.build_batch.build_groups[0].current_build_summary.secondary_artifacts[0].type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
3159
+ # resp.build_batch.build_groups[0].current_build_summary.secondary_artifacts[0].location #=> String
3160
+ # resp.build_batch.build_groups[0].current_build_summary.secondary_artifacts[0].identifier #=> String
3161
+ # resp.build_batch.build_groups[0].prior_build_summary_list #=> Array
3162
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].arn #=> String
3163
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].requested_on #=> Time
3164
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].build_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
3165
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].primary_artifact.type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
3166
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].primary_artifact.location #=> String
3167
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].primary_artifact.identifier #=> String
3168
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].secondary_artifacts #=> Array
3169
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].secondary_artifacts[0].type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
3170
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].secondary_artifacts[0].location #=> String
3171
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].secondary_artifacts[0].identifier #=> String
3172
+ #
3173
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/RetryBuildBatch AWS API Documentation
3174
+ #
3175
+ # @overload retry_build_batch(params = {})
3176
+ # @param [Hash] params ({})
3177
+ def retry_build_batch(params = {}, options = {})
3178
+ req = build_request(:retry_build_batch, params)
3179
+ req.send_request(options)
3180
+ end
3181
+
3182
+ # Starts running a build.
3183
+ #
3184
+ # @option params [required, String] :project_name
3185
+ # The name of the AWS CodeBuild build project to start running a build.
3186
+ #
3187
+ # @option params [Array<Types::ProjectSource>] :secondary_sources_override
3188
+ # An array of `ProjectSource` objects.
3189
+ #
3190
+ # @option params [Array<Types::ProjectSourceVersion>] :secondary_sources_version_override
3191
+ # An array of `ProjectSourceVersion` objects that specify one or more
3192
+ # versions of the project's secondary sources to be used for this build
3193
+ # only.
3194
+ #
3195
+ # @option params [String] :source_version
3196
+ # The version of the build input to be built, for this build only. If
3197
+ # not specified, the latest version is used. If specified, the contents
3198
+ # depends on the source provider:
3199
+ #
3200
+ # AWS CodeCommit
3201
+ #
3202
+ # : The commit ID, branch, or Git tag to use.
3203
+ #
3204
+ # GitHub
3205
+ #
3206
+ # : The commit ID, pull request ID, branch name, or tag name that
3207
+ # corresponds to the version of the source code you want to build. If
3208
+ # a pull request ID is specified, it must use the format
3209
+ # `pr/pull-request-ID` (for example `pr/25`). If a branch name is
3210
+ # specified, the branch's HEAD commit ID is used. If not specified,
3211
+ # the default branch's HEAD commit ID is used.
3212
+ #
3213
+ # Bitbucket
3214
+ #
3215
+ # : The commit ID, branch name, or tag name that corresponds to the
3216
+ # version of the source code you want to build. If a branch name is
3217
+ # specified, the branch's HEAD commit ID is used. If not specified,
3218
+ # the default branch's HEAD commit ID is used.
3219
+ #
3220
+ # Amazon Simple Storage Service (Amazon S3)
3221
+ #
3222
+ # : The version ID of the object that represents the build input ZIP
3223
+ # file to use.
3224
+ #
3225
+ # If `sourceVersion` is specified at the project level, then this
3226
+ # `sourceVersion` (at the build level) takes precedence.
3227
+ #
3228
+ # For more information, see [Source Version Sample with CodeBuild][1] in
3229
+ # the *AWS CodeBuild User Guide*.
3230
+ #
3231
+ #
3232
+ #
3233
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html
3234
+ #
3235
+ # @option params [Types::ProjectArtifacts] :artifacts_override
3236
+ # Build output artifact settings that override, for this build only, the
3237
+ # latest ones already defined in the build project.
3238
+ #
3239
+ # @option params [Array<Types::ProjectArtifacts>] :secondary_artifacts_override
3240
+ # An array of `ProjectArtifacts` objects.
3241
+ #
3242
+ # @option params [Array<Types::EnvironmentVariable>] :environment_variables_override
3243
+ # A set of environment variables that overrides, for this build only,
3244
+ # the latest ones already defined in the build project.
3245
+ #
3246
+ # @option params [String] :source_type_override
3247
+ # A source input type, for this build, that overrides the source input
3248
+ # defined in the build project.
3249
+ #
3250
+ # @option params [String] :source_location_override
3251
+ # A location that overrides, for this build, the source location for the
3252
+ # one defined in the build project.
3253
+ #
3254
+ # @option params [Types::SourceAuth] :source_auth_override
3255
+ # An authorization type for this build that overrides the one defined in
3256
+ # the build project. This override applies only if the build project's
3257
+ # source is BitBucket or GitHub.
3258
+ #
3259
+ # @option params [Integer] :git_clone_depth_override
3260
+ # The user-defined depth of history, with a minimum value of 0, that
3261
+ # overrides, for this build only, any previous depth of history defined
3262
+ # in the build project.
3263
+ #
3264
+ # @option params [Types::GitSubmodulesConfig] :git_submodules_config_override
3265
+ # Information about the Git submodules configuration for this build of
3266
+ # an AWS CodeBuild build project.
3267
+ #
3268
+ # @option params [String] :buildspec_override
3269
+ # A buildspec file declaration that overrides, for this build only, the
3270
+ # latest one already defined in the build project.
3271
+ #
3272
+ # If this value is set, it can be either an inline buildspec definition,
3273
+ # the path to an alternate buildspec file relative to the value of the
3274
+ # built-in `CODEBUILD_SRC_DIR` environment variable, or the path to an
3275
+ # S3 bucket. The bucket must be in the same AWS Region as the build
3276
+ # project. Specify the buildspec file using its ARN (for example,
3277
+ # `arn:aws:s3:::my-codebuild-sample2/buildspec.yml`). If this value is
3278
+ # not provided or is set to an empty string, the source code must
3279
+ # contain a buildspec file in its root directory. For more information,
3280
+ # see [Buildspec File Name and Storage Location][1].
3281
+ #
3282
+ #
3283
+ #
3284
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-name-storage
3285
+ #
3286
+ # @option params [Boolean] :insecure_ssl_override
2506
3287
  # Enable this flag to override the insecure SSL setting that is
2507
3288
  # specified in the build project. The insecure SSL setting determines
2508
3289
  # whether to ignore SSL warnings while connecting to the project source
@@ -2572,7 +3353,8 @@ module Aws::CodeBuild
2572
3353
  # </note>
2573
3354
  #
2574
3355
  # You can specify either the Amazon Resource Name (ARN) of the CMK or,
2575
- # if available, the CMK's alias (using the format `alias/alias-name `).
3356
+ # if available, the CMK's alias (using the format
3357
+ # `alias/<alias-name>`).
2576
3358
  #
2577
3359
  # @option params [String] :idempotency_token
2578
3360
  # A unique, case sensitive identifier you provide to ensure the
@@ -2592,16 +3374,28 @@ module Aws::CodeBuild
2592
3374
  # The type of credentials AWS CodeBuild uses to pull images in your
2593
3375
  # build. There are two valid values:
2594
3376
  #
2595
- # * `CODEBUILD` specifies that AWS CodeBuild uses its own credentials.
2596
- # This requires that you modify your ECR repository policy to trust
2597
- # AWS CodeBuild's service principal.
3377
+ # CODEBUILD
3378
+ #
3379
+ # : Specifies that AWS CodeBuild uses its own credentials. This requires
3380
+ # that you modify your ECR repository policy to trust AWS CodeBuild's
3381
+ # service principal.
3382
+ #
3383
+ # SERVICE\_ROLE
2598
3384
  #
2599
- # * `SERVICE_ROLE` specifies that AWS CodeBuild uses your build
2600
- # project's service role.
3385
+ # : Specifies that AWS CodeBuild uses your build project's service
3386
+ # role.
2601
3387
  #
2602
3388
  # When using a cross-account or private registry image, you must use
2603
- # SERVICE\_ROLE credentials. When using an AWS CodeBuild curated image,
2604
- # you must use CODEBUILD credentials.
3389
+ # `SERVICE_ROLE` credentials. When using an AWS CodeBuild curated image,
3390
+ # you must use `CODEBUILD` credentials.
3391
+ #
3392
+ # @option params [Boolean] :debug_session_enabled
3393
+ # Specifies if session debugging is enabled for this build. For more
3394
+ # information, see [Viewing a running build in Session Manager][1].
3395
+ #
3396
+ #
3397
+ #
3398
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html
2605
3399
  #
2606
3400
  # @return [Types::StartBuildOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2607
3401
  #
@@ -2688,7 +3482,7 @@ module Aws::CodeBuild
2688
3482
  # context: "String",
2689
3483
  # target_url: "String",
2690
3484
  # },
2691
- # environment_type_override: "WINDOWS_CONTAINER", # accepts WINDOWS_CONTAINER, LINUX_CONTAINER, LINUX_GPU_CONTAINER, ARM_CONTAINER
3485
+ # environment_type_override: "WINDOWS_CONTAINER", # accepts WINDOWS_CONTAINER, LINUX_CONTAINER, LINUX_GPU_CONTAINER, ARM_CONTAINER, WINDOWS_SERVER_2019_CONTAINER
2692
3486
  # image_override: "NonEmptyString",
2693
3487
  # compute_type_override: "BUILD_GENERAL1_SMALL", # accepts BUILD_GENERAL1_SMALL, BUILD_GENERAL1_MEDIUM, BUILD_GENERAL1_LARGE, BUILD_GENERAL1_2XLARGE
2694
3488
  # certificate_override: "String",
@@ -2720,6 +3514,7 @@ module Aws::CodeBuild
2720
3514
  # credential_provider: "SECRETS_MANAGER", # required, accepts SECRETS_MANAGER
2721
3515
  # },
2722
3516
  # image_pull_credentials_type_override: "CODEBUILD", # accepts CODEBUILD, SERVICE_ROLE
3517
+ # debug_session_enabled: false,
2723
3518
  # })
2724
3519
  #
2725
3520
  # @example Response structure
@@ -2788,7 +3583,7 @@ module Aws::CodeBuild
2788
3583
  # resp.build.cache.location #=> String
2789
3584
  # resp.build.cache.modes #=> Array
2790
3585
  # resp.build.cache.modes[0] #=> String, one of "LOCAL_DOCKER_LAYER_CACHE", "LOCAL_SOURCE_CACHE", "LOCAL_CUSTOM_CACHE"
2791
- # resp.build.environment.type #=> String, one of "WINDOWS_CONTAINER", "LINUX_CONTAINER", "LINUX_GPU_CONTAINER", "ARM_CONTAINER"
3586
+ # resp.build.environment.type #=> String, one of "WINDOWS_CONTAINER", "LINUX_CONTAINER", "LINUX_GPU_CONTAINER", "ARM_CONTAINER", "WINDOWS_SERVER_2019_CONTAINER"
2792
3587
  # resp.build.environment.image #=> String
2793
3588
  # resp.build.environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE", "BUILD_GENERAL1_2XLARGE"
2794
3589
  # resp.build.environment.environment_variables #=> Array
@@ -2836,6 +3631,9 @@ module Aws::CodeBuild
2836
3631
  # resp.build.file_system_locations[0].mount_point #=> String
2837
3632
  # resp.build.file_system_locations[0].identifier #=> String
2838
3633
  # resp.build.file_system_locations[0].mount_options #=> String
3634
+ # resp.build.debug_session.session_enabled #=> Boolean
3635
+ # resp.build.debug_session.session_target #=> String
3636
+ # resp.build.build_batch_arn #=> String
2839
3637
  #
2840
3638
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/StartBuild AWS API Documentation
2841
3639
  #
@@ -2846,6 +3644,482 @@ module Aws::CodeBuild
2846
3644
  req.send_request(options)
2847
3645
  end
2848
3646
 
3647
+ # Starts a batch build for a project.
3648
+ #
3649
+ # @option params [required, String] :project_name
3650
+ # The name of the project.
3651
+ #
3652
+ # @option params [Array<Types::ProjectSource>] :secondary_sources_override
3653
+ # An array of `ProjectSource` objects that override the secondary
3654
+ # sources defined in the batch build project.
3655
+ #
3656
+ # @option params [Array<Types::ProjectSourceVersion>] :secondary_sources_version_override
3657
+ # An array of `ProjectSourceVersion` objects that override the secondary
3658
+ # source versions in the batch build project.
3659
+ #
3660
+ # @option params [String] :source_version
3661
+ # The version of the batch build input to be built, for this build only.
3662
+ # If not specified, the latest version is used. If specified, the
3663
+ # contents depends on the source provider:
3664
+ #
3665
+ # AWS CodeCommit
3666
+ #
3667
+ # : The commit ID, branch, or Git tag to use.
3668
+ #
3669
+ # GitHub
3670
+ #
3671
+ # : The commit ID, pull request ID, branch name, or tag name that
3672
+ # corresponds to the version of the source code you want to build. If
3673
+ # a pull request ID is specified, it must use the format
3674
+ # `pr/pull-request-ID` (for example `pr/25`). If a branch name is
3675
+ # specified, the branch's HEAD commit ID is used. If not specified,
3676
+ # the default branch's HEAD commit ID is used.
3677
+ #
3678
+ # Bitbucket
3679
+ #
3680
+ # : The commit ID, branch name, or tag name that corresponds to the
3681
+ # version of the source code you want to build. If a branch name is
3682
+ # specified, the branch's HEAD commit ID is used. If not specified,
3683
+ # the default branch's HEAD commit ID is used.
3684
+ #
3685
+ # Amazon Simple Storage Service (Amazon S3)
3686
+ #
3687
+ # : The version ID of the object that represents the build input ZIP
3688
+ # file to use.
3689
+ #
3690
+ # If `sourceVersion` is specified at the project level, then this
3691
+ # `sourceVersion` (at the build level) takes precedence.
3692
+ #
3693
+ # For more information, see [Source Version Sample with CodeBuild][1] in
3694
+ # the *AWS CodeBuild User Guide*.
3695
+ #
3696
+ #
3697
+ #
3698
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html
3699
+ #
3700
+ # @option params [Types::ProjectArtifacts] :artifacts_override
3701
+ # An array of `ProjectArtifacts` objects that contains information about
3702
+ # the build output artifact overrides for the build project.
3703
+ #
3704
+ # @option params [Array<Types::ProjectArtifacts>] :secondary_artifacts_override
3705
+ # An array of `ProjectArtifacts` objects that override the secondary
3706
+ # artifacts defined in the batch build project.
3707
+ #
3708
+ # @option params [Array<Types::EnvironmentVariable>] :environment_variables_override
3709
+ # An array of `EnvironmentVariable` objects that override, or add to,
3710
+ # the environment variables defined in the batch build project.
3711
+ #
3712
+ # @option params [String] :source_type_override
3713
+ # The source input type that overrides the source input defined in the
3714
+ # batch build project.
3715
+ #
3716
+ # @option params [String] :source_location_override
3717
+ # A location that overrides, for this batch build, the source location
3718
+ # defined in the batch build project.
3719
+ #
3720
+ # @option params [Types::SourceAuth] :source_auth_override
3721
+ # A `SourceAuth` object that overrides the one defined in the batch
3722
+ # build project. This override applies only if the build project's
3723
+ # source is BitBucket or GitHub.
3724
+ #
3725
+ # @option params [Integer] :git_clone_depth_override
3726
+ # The user-defined depth of history, with a minimum value of 0, that
3727
+ # overrides, for this batch build only, any previous depth of history
3728
+ # defined in the batch build project.
3729
+ #
3730
+ # @option params [Types::GitSubmodulesConfig] :git_submodules_config_override
3731
+ # A `GitSubmodulesConfig` object that overrides the Git submodules
3732
+ # configuration for this batch build.
3733
+ #
3734
+ # @option params [String] :buildspec_override
3735
+ # A buildspec file declaration that overrides, for this build only, the
3736
+ # latest one already defined in the build project.
3737
+ #
3738
+ # If this value is set, it can be either an inline buildspec definition,
3739
+ # the path to an alternate buildspec file relative to the value of the
3740
+ # built-in `CODEBUILD_SRC_DIR` environment variable, or the path to an
3741
+ # S3 bucket. The bucket must be in the same AWS Region as the build
3742
+ # project. Specify the buildspec file using its ARN (for example,
3743
+ # `arn:aws:s3:::my-codebuild-sample2/buildspec.yml`). If this value is
3744
+ # not provided or is set to an empty string, the source code must
3745
+ # contain a buildspec file in its root directory. For more information,
3746
+ # see [Buildspec File Name and Storage Location][1].
3747
+ #
3748
+ #
3749
+ #
3750
+ # [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-name-storage
3751
+ #
3752
+ # @option params [Boolean] :insecure_ssl_override
3753
+ # Enable this flag to override the insecure SSL setting that is
3754
+ # specified in the batch build project. The insecure SSL setting
3755
+ # determines whether to ignore SSL warnings while connecting to the
3756
+ # project source code. This override applies only if the build's source
3757
+ # is GitHub Enterprise.
3758
+ #
3759
+ # @option params [Boolean] :report_build_batch_status_override
3760
+ # Set to `true` to report to your source provider the status of a batch
3761
+ # build's start and completion. If you use this option with a source
3762
+ # provider other than GitHub, GitHub Enterprise, or Bitbucket, an
3763
+ # `invalidInputException` is thrown.
3764
+ #
3765
+ # <note markdown="1"> The status of a build triggered by a webhook is always reported to
3766
+ # your source provider.
3767
+ #
3768
+ # </note>
3769
+ #
3770
+ # @option params [String] :environment_type_override
3771
+ # A container type for this batch build that overrides the one specified
3772
+ # in the batch build project.
3773
+ #
3774
+ # @option params [String] :image_override
3775
+ # The name of an image for this batch build that overrides the one
3776
+ # specified in the batch build project.
3777
+ #
3778
+ # @option params [String] :compute_type_override
3779
+ # The name of a compute type for this batch build that overrides the one
3780
+ # specified in the batch build project.
3781
+ #
3782
+ # @option params [String] :certificate_override
3783
+ # The name of a certificate for this batch build that overrides the one
3784
+ # specified in the batch build project.
3785
+ #
3786
+ # @option params [Types::ProjectCache] :cache_override
3787
+ # A `ProjectCache` object that specifies cache overrides.
3788
+ #
3789
+ # @option params [String] :service_role_override
3790
+ # The name of a service role for this batch build that overrides the one
3791
+ # specified in the batch build project.
3792
+ #
3793
+ # @option params [Boolean] :privileged_mode_override
3794
+ # Enable this flag to override privileged mode in the batch build
3795
+ # project.
3796
+ #
3797
+ # @option params [Integer] :build_timeout_in_minutes_override
3798
+ # Overrides the build timeout specified in the batch build project.
3799
+ #
3800
+ # @option params [Integer] :queued_timeout_in_minutes_override
3801
+ # The number of minutes a batch build is allowed to be queued before it
3802
+ # times out.
3803
+ #
3804
+ # @option params [String] :encryption_key_override
3805
+ # The AWS Key Management Service (AWS KMS) customer master key (CMK)
3806
+ # that overrides the one specified in the batch build project. The CMK
3807
+ # key encrypts the build output artifacts.
3808
+ #
3809
+ # <note markdown="1"> You can use a cross-account KMS key to encrypt the build output
3810
+ # artifacts if your service role has permission to that key.
3811
+ #
3812
+ # </note>
3813
+ #
3814
+ # You can specify either the Amazon Resource Name (ARN) of the CMK or,
3815
+ # if available, the CMK's alias (using the format
3816
+ # `alias/<alias-name>`).
3817
+ #
3818
+ # @option params [String] :idempotency_token
3819
+ # A unique, case sensitive identifier you provide to ensure the
3820
+ # idempotency of the `StartBuildBatch` request. The token is included in
3821
+ # the `StartBuildBatch` request and is valid for five minutes. If you
3822
+ # repeat the `StartBuildBatch` request with the same token, but change a
3823
+ # parameter, AWS CodeBuild returns a parameter mismatch error.
3824
+ #
3825
+ # @option params [Types::LogsConfig] :logs_config_override
3826
+ # A `LogsConfig` object that override the log settings defined in the
3827
+ # batch build project.
3828
+ #
3829
+ # @option params [Types::RegistryCredential] :registry_credential_override
3830
+ # A `RegistryCredential` object that overrides credentials for access to
3831
+ # a private registry.
3832
+ #
3833
+ # @option params [String] :image_pull_credentials_type_override
3834
+ # The type of credentials AWS CodeBuild uses to pull images in your
3835
+ # batch build. There are two valid values:
3836
+ #
3837
+ # CODEBUILD
3838
+ #
3839
+ # : Specifies that AWS CodeBuild uses its own credentials. This requires
3840
+ # that you modify your ECR repository policy to trust AWS CodeBuild's
3841
+ # service principal.
3842
+ #
3843
+ # SERVICE\_ROLE
3844
+ #
3845
+ # : Specifies that AWS CodeBuild uses your build project's service
3846
+ # role.
3847
+ #
3848
+ # When using a cross-account or private registry image, you must use
3849
+ # `SERVICE_ROLE` credentials. When using an AWS CodeBuild curated image,
3850
+ # you must use `CODEBUILD` credentials.
3851
+ #
3852
+ # @option params [Types::ProjectBuildBatchConfig] :build_batch_config_override
3853
+ # A `BuildBatchConfigOverride` object that contains batch build
3854
+ # configuration overrides.
3855
+ #
3856
+ # @return [Types::StartBuildBatchOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3857
+ #
3858
+ # * {Types::StartBuildBatchOutput#build_batch #build_batch} => Types::BuildBatch
3859
+ #
3860
+ # @example Request syntax with placeholder values
3861
+ #
3862
+ # resp = client.start_build_batch({
3863
+ # project_name: "NonEmptyString", # required
3864
+ # secondary_sources_override: [
3865
+ # {
3866
+ # type: "CODECOMMIT", # required, accepts CODECOMMIT, CODEPIPELINE, GITHUB, S3, BITBUCKET, GITHUB_ENTERPRISE, NO_SOURCE
3867
+ # location: "String",
3868
+ # git_clone_depth: 1,
3869
+ # git_submodules_config: {
3870
+ # fetch_submodules: false, # required
3871
+ # },
3872
+ # buildspec: "String",
3873
+ # auth: {
3874
+ # type: "OAUTH", # required, accepts OAUTH
3875
+ # resource: "String",
3876
+ # },
3877
+ # report_build_status: false,
3878
+ # build_status_config: {
3879
+ # context: "String",
3880
+ # target_url: "String",
3881
+ # },
3882
+ # insecure_ssl: false,
3883
+ # source_identifier: "String",
3884
+ # },
3885
+ # ],
3886
+ # secondary_sources_version_override: [
3887
+ # {
3888
+ # source_identifier: "String", # required
3889
+ # source_version: "String", # required
3890
+ # },
3891
+ # ],
3892
+ # source_version: "String",
3893
+ # artifacts_override: {
3894
+ # type: "CODEPIPELINE", # required, accepts CODEPIPELINE, S3, NO_ARTIFACTS
3895
+ # location: "String",
3896
+ # path: "String",
3897
+ # namespace_type: "NONE", # accepts NONE, BUILD_ID
3898
+ # name: "String",
3899
+ # packaging: "NONE", # accepts NONE, ZIP
3900
+ # override_artifact_name: false,
3901
+ # encryption_disabled: false,
3902
+ # artifact_identifier: "String",
3903
+ # },
3904
+ # secondary_artifacts_override: [
3905
+ # {
3906
+ # type: "CODEPIPELINE", # required, accepts CODEPIPELINE, S3, NO_ARTIFACTS
3907
+ # location: "String",
3908
+ # path: "String",
3909
+ # namespace_type: "NONE", # accepts NONE, BUILD_ID
3910
+ # name: "String",
3911
+ # packaging: "NONE", # accepts NONE, ZIP
3912
+ # override_artifact_name: false,
3913
+ # encryption_disabled: false,
3914
+ # artifact_identifier: "String",
3915
+ # },
3916
+ # ],
3917
+ # environment_variables_override: [
3918
+ # {
3919
+ # name: "NonEmptyString", # required
3920
+ # value: "String", # required
3921
+ # type: "PLAINTEXT", # accepts PLAINTEXT, PARAMETER_STORE, SECRETS_MANAGER
3922
+ # },
3923
+ # ],
3924
+ # source_type_override: "CODECOMMIT", # accepts CODECOMMIT, CODEPIPELINE, GITHUB, S3, BITBUCKET, GITHUB_ENTERPRISE, NO_SOURCE
3925
+ # source_location_override: "String",
3926
+ # source_auth_override: {
3927
+ # type: "OAUTH", # required, accepts OAUTH
3928
+ # resource: "String",
3929
+ # },
3930
+ # git_clone_depth_override: 1,
3931
+ # git_submodules_config_override: {
3932
+ # fetch_submodules: false, # required
3933
+ # },
3934
+ # buildspec_override: "String",
3935
+ # insecure_ssl_override: false,
3936
+ # report_build_batch_status_override: false,
3937
+ # environment_type_override: "WINDOWS_CONTAINER", # accepts WINDOWS_CONTAINER, LINUX_CONTAINER, LINUX_GPU_CONTAINER, ARM_CONTAINER, WINDOWS_SERVER_2019_CONTAINER
3938
+ # image_override: "NonEmptyString",
3939
+ # compute_type_override: "BUILD_GENERAL1_SMALL", # accepts BUILD_GENERAL1_SMALL, BUILD_GENERAL1_MEDIUM, BUILD_GENERAL1_LARGE, BUILD_GENERAL1_2XLARGE
3940
+ # certificate_override: "String",
3941
+ # cache_override: {
3942
+ # type: "NO_CACHE", # required, accepts NO_CACHE, S3, LOCAL
3943
+ # location: "String",
3944
+ # modes: ["LOCAL_DOCKER_LAYER_CACHE"], # accepts LOCAL_DOCKER_LAYER_CACHE, LOCAL_SOURCE_CACHE, LOCAL_CUSTOM_CACHE
3945
+ # },
3946
+ # service_role_override: "NonEmptyString",
3947
+ # privileged_mode_override: false,
3948
+ # build_timeout_in_minutes_override: 1,
3949
+ # queued_timeout_in_minutes_override: 1,
3950
+ # encryption_key_override: "NonEmptyString",
3951
+ # idempotency_token: "String",
3952
+ # logs_config_override: {
3953
+ # cloud_watch_logs: {
3954
+ # status: "ENABLED", # required, accepts ENABLED, DISABLED
3955
+ # group_name: "String",
3956
+ # stream_name: "String",
3957
+ # },
3958
+ # s3_logs: {
3959
+ # status: "ENABLED", # required, accepts ENABLED, DISABLED
3960
+ # location: "String",
3961
+ # encryption_disabled: false,
3962
+ # },
3963
+ # },
3964
+ # registry_credential_override: {
3965
+ # credential: "NonEmptyString", # required
3966
+ # credential_provider: "SECRETS_MANAGER", # required, accepts SECRETS_MANAGER
3967
+ # },
3968
+ # image_pull_credentials_type_override: "CODEBUILD", # accepts CODEBUILD, SERVICE_ROLE
3969
+ # build_batch_config_override: {
3970
+ # service_role: "NonEmptyString",
3971
+ # combine_artifacts: false,
3972
+ # restrictions: {
3973
+ # maximum_builds_allowed: 1,
3974
+ # compute_types_allowed: ["NonEmptyString"],
3975
+ # },
3976
+ # timeout_in_mins: 1,
3977
+ # },
3978
+ # })
3979
+ #
3980
+ # @example Response structure
3981
+ #
3982
+ # resp.build_batch.id #=> String
3983
+ # resp.build_batch.arn #=> String
3984
+ # resp.build_batch.start_time #=> Time
3985
+ # resp.build_batch.end_time #=> Time
3986
+ # resp.build_batch.current_phase #=> String
3987
+ # resp.build_batch.build_batch_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
3988
+ # resp.build_batch.source_version #=> String
3989
+ # resp.build_batch.resolved_source_version #=> String
3990
+ # resp.build_batch.project_name #=> String
3991
+ # resp.build_batch.phases #=> Array
3992
+ # resp.build_batch.phases[0].phase_type #=> String, one of "SUBMITTED", "DOWNLOAD_BATCHSPEC", "IN_PROGRESS", "COMBINE_ARTIFACTS", "SUCCEEDED", "FAILED", "STOPPED"
3993
+ # resp.build_batch.phases[0].phase_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
3994
+ # resp.build_batch.phases[0].start_time #=> Time
3995
+ # resp.build_batch.phases[0].end_time #=> Time
3996
+ # resp.build_batch.phases[0].duration_in_seconds #=> Integer
3997
+ # resp.build_batch.phases[0].contexts #=> Array
3998
+ # resp.build_batch.phases[0].contexts[0].status_code #=> String
3999
+ # resp.build_batch.phases[0].contexts[0].message #=> String
4000
+ # resp.build_batch.source.type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3", "BITBUCKET", "GITHUB_ENTERPRISE", "NO_SOURCE"
4001
+ # resp.build_batch.source.location #=> String
4002
+ # resp.build_batch.source.git_clone_depth #=> Integer
4003
+ # resp.build_batch.source.git_submodules_config.fetch_submodules #=> Boolean
4004
+ # resp.build_batch.source.buildspec #=> String
4005
+ # resp.build_batch.source.auth.type #=> String, one of "OAUTH"
4006
+ # resp.build_batch.source.auth.resource #=> String
4007
+ # resp.build_batch.source.report_build_status #=> Boolean
4008
+ # resp.build_batch.source.build_status_config.context #=> String
4009
+ # resp.build_batch.source.build_status_config.target_url #=> String
4010
+ # resp.build_batch.source.insecure_ssl #=> Boolean
4011
+ # resp.build_batch.source.source_identifier #=> String
4012
+ # resp.build_batch.secondary_sources #=> Array
4013
+ # resp.build_batch.secondary_sources[0].type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3", "BITBUCKET", "GITHUB_ENTERPRISE", "NO_SOURCE"
4014
+ # resp.build_batch.secondary_sources[0].location #=> String
4015
+ # resp.build_batch.secondary_sources[0].git_clone_depth #=> Integer
4016
+ # resp.build_batch.secondary_sources[0].git_submodules_config.fetch_submodules #=> Boolean
4017
+ # resp.build_batch.secondary_sources[0].buildspec #=> String
4018
+ # resp.build_batch.secondary_sources[0].auth.type #=> String, one of "OAUTH"
4019
+ # resp.build_batch.secondary_sources[0].auth.resource #=> String
4020
+ # resp.build_batch.secondary_sources[0].report_build_status #=> Boolean
4021
+ # resp.build_batch.secondary_sources[0].build_status_config.context #=> String
4022
+ # resp.build_batch.secondary_sources[0].build_status_config.target_url #=> String
4023
+ # resp.build_batch.secondary_sources[0].insecure_ssl #=> Boolean
4024
+ # resp.build_batch.secondary_sources[0].source_identifier #=> String
4025
+ # resp.build_batch.secondary_source_versions #=> Array
4026
+ # resp.build_batch.secondary_source_versions[0].source_identifier #=> String
4027
+ # resp.build_batch.secondary_source_versions[0].source_version #=> String
4028
+ # resp.build_batch.artifacts.location #=> String
4029
+ # resp.build_batch.artifacts.sha256sum #=> String
4030
+ # resp.build_batch.artifacts.md5sum #=> String
4031
+ # resp.build_batch.artifacts.override_artifact_name #=> Boolean
4032
+ # resp.build_batch.artifacts.encryption_disabled #=> Boolean
4033
+ # resp.build_batch.artifacts.artifact_identifier #=> String
4034
+ # resp.build_batch.secondary_artifacts #=> Array
4035
+ # resp.build_batch.secondary_artifacts[0].location #=> String
4036
+ # resp.build_batch.secondary_artifacts[0].sha256sum #=> String
4037
+ # resp.build_batch.secondary_artifacts[0].md5sum #=> String
4038
+ # resp.build_batch.secondary_artifacts[0].override_artifact_name #=> Boolean
4039
+ # resp.build_batch.secondary_artifacts[0].encryption_disabled #=> Boolean
4040
+ # resp.build_batch.secondary_artifacts[0].artifact_identifier #=> String
4041
+ # resp.build_batch.cache.type #=> String, one of "NO_CACHE", "S3", "LOCAL"
4042
+ # resp.build_batch.cache.location #=> String
4043
+ # resp.build_batch.cache.modes #=> Array
4044
+ # resp.build_batch.cache.modes[0] #=> String, one of "LOCAL_DOCKER_LAYER_CACHE", "LOCAL_SOURCE_CACHE", "LOCAL_CUSTOM_CACHE"
4045
+ # resp.build_batch.environment.type #=> String, one of "WINDOWS_CONTAINER", "LINUX_CONTAINER", "LINUX_GPU_CONTAINER", "ARM_CONTAINER", "WINDOWS_SERVER_2019_CONTAINER"
4046
+ # resp.build_batch.environment.image #=> String
4047
+ # resp.build_batch.environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE", "BUILD_GENERAL1_2XLARGE"
4048
+ # resp.build_batch.environment.environment_variables #=> Array
4049
+ # resp.build_batch.environment.environment_variables[0].name #=> String
4050
+ # resp.build_batch.environment.environment_variables[0].value #=> String
4051
+ # resp.build_batch.environment.environment_variables[0].type #=> String, one of "PLAINTEXT", "PARAMETER_STORE", "SECRETS_MANAGER"
4052
+ # resp.build_batch.environment.privileged_mode #=> Boolean
4053
+ # resp.build_batch.environment.certificate #=> String
4054
+ # resp.build_batch.environment.registry_credential.credential #=> String
4055
+ # resp.build_batch.environment.registry_credential.credential_provider #=> String, one of "SECRETS_MANAGER"
4056
+ # resp.build_batch.environment.image_pull_credentials_type #=> String, one of "CODEBUILD", "SERVICE_ROLE"
4057
+ # resp.build_batch.service_role #=> String
4058
+ # resp.build_batch.log_config.cloud_watch_logs.status #=> String, one of "ENABLED", "DISABLED"
4059
+ # resp.build_batch.log_config.cloud_watch_logs.group_name #=> String
4060
+ # resp.build_batch.log_config.cloud_watch_logs.stream_name #=> String
4061
+ # resp.build_batch.log_config.s3_logs.status #=> String, one of "ENABLED", "DISABLED"
4062
+ # resp.build_batch.log_config.s3_logs.location #=> String
4063
+ # resp.build_batch.log_config.s3_logs.encryption_disabled #=> Boolean
4064
+ # resp.build_batch.build_timeout_in_minutes #=> Integer
4065
+ # resp.build_batch.queued_timeout_in_minutes #=> Integer
4066
+ # resp.build_batch.complete #=> Boolean
4067
+ # resp.build_batch.initiator #=> String
4068
+ # resp.build_batch.vpc_config.vpc_id #=> String
4069
+ # resp.build_batch.vpc_config.subnets #=> Array
4070
+ # resp.build_batch.vpc_config.subnets[0] #=> String
4071
+ # resp.build_batch.vpc_config.security_group_ids #=> Array
4072
+ # resp.build_batch.vpc_config.security_group_ids[0] #=> String
4073
+ # resp.build_batch.encryption_key #=> String
4074
+ # resp.build_batch.build_batch_number #=> Integer
4075
+ # resp.build_batch.file_system_locations #=> Array
4076
+ # resp.build_batch.file_system_locations[0].type #=> String, one of "EFS"
4077
+ # resp.build_batch.file_system_locations[0].location #=> String
4078
+ # resp.build_batch.file_system_locations[0].mount_point #=> String
4079
+ # resp.build_batch.file_system_locations[0].identifier #=> String
4080
+ # resp.build_batch.file_system_locations[0].mount_options #=> String
4081
+ # resp.build_batch.build_batch_config.service_role #=> String
4082
+ # resp.build_batch.build_batch_config.combine_artifacts #=> Boolean
4083
+ # resp.build_batch.build_batch_config.restrictions.maximum_builds_allowed #=> Integer
4084
+ # resp.build_batch.build_batch_config.restrictions.compute_types_allowed #=> Array
4085
+ # resp.build_batch.build_batch_config.restrictions.compute_types_allowed[0] #=> String
4086
+ # resp.build_batch.build_batch_config.timeout_in_mins #=> Integer
4087
+ # resp.build_batch.build_groups #=> Array
4088
+ # resp.build_batch.build_groups[0].identifier #=> String
4089
+ # resp.build_batch.build_groups[0].depends_on #=> Array
4090
+ # resp.build_batch.build_groups[0].depends_on[0] #=> String
4091
+ # resp.build_batch.build_groups[0].ignore_failure #=> Boolean
4092
+ # resp.build_batch.build_groups[0].current_build_summary.arn #=> String
4093
+ # resp.build_batch.build_groups[0].current_build_summary.requested_on #=> Time
4094
+ # resp.build_batch.build_groups[0].current_build_summary.build_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
4095
+ # resp.build_batch.build_groups[0].current_build_summary.primary_artifact.type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
4096
+ # resp.build_batch.build_groups[0].current_build_summary.primary_artifact.location #=> String
4097
+ # resp.build_batch.build_groups[0].current_build_summary.primary_artifact.identifier #=> String
4098
+ # resp.build_batch.build_groups[0].current_build_summary.secondary_artifacts #=> Array
4099
+ # resp.build_batch.build_groups[0].current_build_summary.secondary_artifacts[0].type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
4100
+ # resp.build_batch.build_groups[0].current_build_summary.secondary_artifacts[0].location #=> String
4101
+ # resp.build_batch.build_groups[0].current_build_summary.secondary_artifacts[0].identifier #=> String
4102
+ # resp.build_batch.build_groups[0].prior_build_summary_list #=> Array
4103
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].arn #=> String
4104
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].requested_on #=> Time
4105
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].build_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
4106
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].primary_artifact.type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
4107
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].primary_artifact.location #=> String
4108
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].primary_artifact.identifier #=> String
4109
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].secondary_artifacts #=> Array
4110
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].secondary_artifacts[0].type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
4111
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].secondary_artifacts[0].location #=> String
4112
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].secondary_artifacts[0].identifier #=> String
4113
+ #
4114
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/StartBuildBatch AWS API Documentation
4115
+ #
4116
+ # @overload start_build_batch(params = {})
4117
+ # @param [Hash] params ({})
4118
+ def start_build_batch(params = {}, options = {})
4119
+ req = build_request(:start_build_batch, params)
4120
+ req.send_request(options)
4121
+ end
4122
+
2849
4123
  # Attempts to stop running a build.
2850
4124
  #
2851
4125
  # @option params [required, String] :id
@@ -2927,7 +4201,7 @@ module Aws::CodeBuild
2927
4201
  # resp.build.cache.location #=> String
2928
4202
  # resp.build.cache.modes #=> Array
2929
4203
  # resp.build.cache.modes[0] #=> String, one of "LOCAL_DOCKER_LAYER_CACHE", "LOCAL_SOURCE_CACHE", "LOCAL_CUSTOM_CACHE"
2930
- # resp.build.environment.type #=> String, one of "WINDOWS_CONTAINER", "LINUX_CONTAINER", "LINUX_GPU_CONTAINER", "ARM_CONTAINER"
4204
+ # resp.build.environment.type #=> String, one of "WINDOWS_CONTAINER", "LINUX_CONTAINER", "LINUX_GPU_CONTAINER", "ARM_CONTAINER", "WINDOWS_SERVER_2019_CONTAINER"
2931
4205
  # resp.build.environment.image #=> String
2932
4206
  # resp.build.environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE", "BUILD_GENERAL1_2XLARGE"
2933
4207
  # resp.build.environment.environment_variables #=> Array
@@ -2975,6 +4249,9 @@ module Aws::CodeBuild
2975
4249
  # resp.build.file_system_locations[0].mount_point #=> String
2976
4250
  # resp.build.file_system_locations[0].identifier #=> String
2977
4251
  # resp.build.file_system_locations[0].mount_options #=> String
4252
+ # resp.build.debug_session.session_enabled #=> Boolean
4253
+ # resp.build.debug_session.session_target #=> String
4254
+ # resp.build.build_batch_arn #=> String
2978
4255
  #
2979
4256
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/StopBuild AWS API Documentation
2980
4257
  #
@@ -2985,6 +4262,164 @@ module Aws::CodeBuild
2985
4262
  req.send_request(options)
2986
4263
  end
2987
4264
 
4265
+ # Stops a running batch build.
4266
+ #
4267
+ # @option params [required, String] :id
4268
+ # The identifier of the batch build to stop.
4269
+ #
4270
+ # @return [Types::StopBuildBatchOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4271
+ #
4272
+ # * {Types::StopBuildBatchOutput#build_batch #build_batch} => Types::BuildBatch
4273
+ #
4274
+ # @example Request syntax with placeholder values
4275
+ #
4276
+ # resp = client.stop_build_batch({
4277
+ # id: "NonEmptyString", # required
4278
+ # })
4279
+ #
4280
+ # @example Response structure
4281
+ #
4282
+ # resp.build_batch.id #=> String
4283
+ # resp.build_batch.arn #=> String
4284
+ # resp.build_batch.start_time #=> Time
4285
+ # resp.build_batch.end_time #=> Time
4286
+ # resp.build_batch.current_phase #=> String
4287
+ # resp.build_batch.build_batch_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
4288
+ # resp.build_batch.source_version #=> String
4289
+ # resp.build_batch.resolved_source_version #=> String
4290
+ # resp.build_batch.project_name #=> String
4291
+ # resp.build_batch.phases #=> Array
4292
+ # resp.build_batch.phases[0].phase_type #=> String, one of "SUBMITTED", "DOWNLOAD_BATCHSPEC", "IN_PROGRESS", "COMBINE_ARTIFACTS", "SUCCEEDED", "FAILED", "STOPPED"
4293
+ # resp.build_batch.phases[0].phase_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
4294
+ # resp.build_batch.phases[0].start_time #=> Time
4295
+ # resp.build_batch.phases[0].end_time #=> Time
4296
+ # resp.build_batch.phases[0].duration_in_seconds #=> Integer
4297
+ # resp.build_batch.phases[0].contexts #=> Array
4298
+ # resp.build_batch.phases[0].contexts[0].status_code #=> String
4299
+ # resp.build_batch.phases[0].contexts[0].message #=> String
4300
+ # resp.build_batch.source.type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3", "BITBUCKET", "GITHUB_ENTERPRISE", "NO_SOURCE"
4301
+ # resp.build_batch.source.location #=> String
4302
+ # resp.build_batch.source.git_clone_depth #=> Integer
4303
+ # resp.build_batch.source.git_submodules_config.fetch_submodules #=> Boolean
4304
+ # resp.build_batch.source.buildspec #=> String
4305
+ # resp.build_batch.source.auth.type #=> String, one of "OAUTH"
4306
+ # resp.build_batch.source.auth.resource #=> String
4307
+ # resp.build_batch.source.report_build_status #=> Boolean
4308
+ # resp.build_batch.source.build_status_config.context #=> String
4309
+ # resp.build_batch.source.build_status_config.target_url #=> String
4310
+ # resp.build_batch.source.insecure_ssl #=> Boolean
4311
+ # resp.build_batch.source.source_identifier #=> String
4312
+ # resp.build_batch.secondary_sources #=> Array
4313
+ # resp.build_batch.secondary_sources[0].type #=> String, one of "CODECOMMIT", "CODEPIPELINE", "GITHUB", "S3", "BITBUCKET", "GITHUB_ENTERPRISE", "NO_SOURCE"
4314
+ # resp.build_batch.secondary_sources[0].location #=> String
4315
+ # resp.build_batch.secondary_sources[0].git_clone_depth #=> Integer
4316
+ # resp.build_batch.secondary_sources[0].git_submodules_config.fetch_submodules #=> Boolean
4317
+ # resp.build_batch.secondary_sources[0].buildspec #=> String
4318
+ # resp.build_batch.secondary_sources[0].auth.type #=> String, one of "OAUTH"
4319
+ # resp.build_batch.secondary_sources[0].auth.resource #=> String
4320
+ # resp.build_batch.secondary_sources[0].report_build_status #=> Boolean
4321
+ # resp.build_batch.secondary_sources[0].build_status_config.context #=> String
4322
+ # resp.build_batch.secondary_sources[0].build_status_config.target_url #=> String
4323
+ # resp.build_batch.secondary_sources[0].insecure_ssl #=> Boolean
4324
+ # resp.build_batch.secondary_sources[0].source_identifier #=> String
4325
+ # resp.build_batch.secondary_source_versions #=> Array
4326
+ # resp.build_batch.secondary_source_versions[0].source_identifier #=> String
4327
+ # resp.build_batch.secondary_source_versions[0].source_version #=> String
4328
+ # resp.build_batch.artifacts.location #=> String
4329
+ # resp.build_batch.artifacts.sha256sum #=> String
4330
+ # resp.build_batch.artifacts.md5sum #=> String
4331
+ # resp.build_batch.artifacts.override_artifact_name #=> Boolean
4332
+ # resp.build_batch.artifacts.encryption_disabled #=> Boolean
4333
+ # resp.build_batch.artifacts.artifact_identifier #=> String
4334
+ # resp.build_batch.secondary_artifacts #=> Array
4335
+ # resp.build_batch.secondary_artifacts[0].location #=> String
4336
+ # resp.build_batch.secondary_artifacts[0].sha256sum #=> String
4337
+ # resp.build_batch.secondary_artifacts[0].md5sum #=> String
4338
+ # resp.build_batch.secondary_artifacts[0].override_artifact_name #=> Boolean
4339
+ # resp.build_batch.secondary_artifacts[0].encryption_disabled #=> Boolean
4340
+ # resp.build_batch.secondary_artifacts[0].artifact_identifier #=> String
4341
+ # resp.build_batch.cache.type #=> String, one of "NO_CACHE", "S3", "LOCAL"
4342
+ # resp.build_batch.cache.location #=> String
4343
+ # resp.build_batch.cache.modes #=> Array
4344
+ # resp.build_batch.cache.modes[0] #=> String, one of "LOCAL_DOCKER_LAYER_CACHE", "LOCAL_SOURCE_CACHE", "LOCAL_CUSTOM_CACHE"
4345
+ # resp.build_batch.environment.type #=> String, one of "WINDOWS_CONTAINER", "LINUX_CONTAINER", "LINUX_GPU_CONTAINER", "ARM_CONTAINER", "WINDOWS_SERVER_2019_CONTAINER"
4346
+ # resp.build_batch.environment.image #=> String
4347
+ # resp.build_batch.environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE", "BUILD_GENERAL1_2XLARGE"
4348
+ # resp.build_batch.environment.environment_variables #=> Array
4349
+ # resp.build_batch.environment.environment_variables[0].name #=> String
4350
+ # resp.build_batch.environment.environment_variables[0].value #=> String
4351
+ # resp.build_batch.environment.environment_variables[0].type #=> String, one of "PLAINTEXT", "PARAMETER_STORE", "SECRETS_MANAGER"
4352
+ # resp.build_batch.environment.privileged_mode #=> Boolean
4353
+ # resp.build_batch.environment.certificate #=> String
4354
+ # resp.build_batch.environment.registry_credential.credential #=> String
4355
+ # resp.build_batch.environment.registry_credential.credential_provider #=> String, one of "SECRETS_MANAGER"
4356
+ # resp.build_batch.environment.image_pull_credentials_type #=> String, one of "CODEBUILD", "SERVICE_ROLE"
4357
+ # resp.build_batch.service_role #=> String
4358
+ # resp.build_batch.log_config.cloud_watch_logs.status #=> String, one of "ENABLED", "DISABLED"
4359
+ # resp.build_batch.log_config.cloud_watch_logs.group_name #=> String
4360
+ # resp.build_batch.log_config.cloud_watch_logs.stream_name #=> String
4361
+ # resp.build_batch.log_config.s3_logs.status #=> String, one of "ENABLED", "DISABLED"
4362
+ # resp.build_batch.log_config.s3_logs.location #=> String
4363
+ # resp.build_batch.log_config.s3_logs.encryption_disabled #=> Boolean
4364
+ # resp.build_batch.build_timeout_in_minutes #=> Integer
4365
+ # resp.build_batch.queued_timeout_in_minutes #=> Integer
4366
+ # resp.build_batch.complete #=> Boolean
4367
+ # resp.build_batch.initiator #=> String
4368
+ # resp.build_batch.vpc_config.vpc_id #=> String
4369
+ # resp.build_batch.vpc_config.subnets #=> Array
4370
+ # resp.build_batch.vpc_config.subnets[0] #=> String
4371
+ # resp.build_batch.vpc_config.security_group_ids #=> Array
4372
+ # resp.build_batch.vpc_config.security_group_ids[0] #=> String
4373
+ # resp.build_batch.encryption_key #=> String
4374
+ # resp.build_batch.build_batch_number #=> Integer
4375
+ # resp.build_batch.file_system_locations #=> Array
4376
+ # resp.build_batch.file_system_locations[0].type #=> String, one of "EFS"
4377
+ # resp.build_batch.file_system_locations[0].location #=> String
4378
+ # resp.build_batch.file_system_locations[0].mount_point #=> String
4379
+ # resp.build_batch.file_system_locations[0].identifier #=> String
4380
+ # resp.build_batch.file_system_locations[0].mount_options #=> String
4381
+ # resp.build_batch.build_batch_config.service_role #=> String
4382
+ # resp.build_batch.build_batch_config.combine_artifacts #=> Boolean
4383
+ # resp.build_batch.build_batch_config.restrictions.maximum_builds_allowed #=> Integer
4384
+ # resp.build_batch.build_batch_config.restrictions.compute_types_allowed #=> Array
4385
+ # resp.build_batch.build_batch_config.restrictions.compute_types_allowed[0] #=> String
4386
+ # resp.build_batch.build_batch_config.timeout_in_mins #=> Integer
4387
+ # resp.build_batch.build_groups #=> Array
4388
+ # resp.build_batch.build_groups[0].identifier #=> String
4389
+ # resp.build_batch.build_groups[0].depends_on #=> Array
4390
+ # resp.build_batch.build_groups[0].depends_on[0] #=> String
4391
+ # resp.build_batch.build_groups[0].ignore_failure #=> Boolean
4392
+ # resp.build_batch.build_groups[0].current_build_summary.arn #=> String
4393
+ # resp.build_batch.build_groups[0].current_build_summary.requested_on #=> Time
4394
+ # resp.build_batch.build_groups[0].current_build_summary.build_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
4395
+ # resp.build_batch.build_groups[0].current_build_summary.primary_artifact.type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
4396
+ # resp.build_batch.build_groups[0].current_build_summary.primary_artifact.location #=> String
4397
+ # resp.build_batch.build_groups[0].current_build_summary.primary_artifact.identifier #=> String
4398
+ # resp.build_batch.build_groups[0].current_build_summary.secondary_artifacts #=> Array
4399
+ # resp.build_batch.build_groups[0].current_build_summary.secondary_artifacts[0].type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
4400
+ # resp.build_batch.build_groups[0].current_build_summary.secondary_artifacts[0].location #=> String
4401
+ # resp.build_batch.build_groups[0].current_build_summary.secondary_artifacts[0].identifier #=> String
4402
+ # resp.build_batch.build_groups[0].prior_build_summary_list #=> Array
4403
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].arn #=> String
4404
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].requested_on #=> Time
4405
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].build_status #=> String, one of "SUCCEEDED", "FAILED", "FAULT", "TIMED_OUT", "IN_PROGRESS", "STOPPED"
4406
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].primary_artifact.type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
4407
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].primary_artifact.location #=> String
4408
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].primary_artifact.identifier #=> String
4409
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].secondary_artifacts #=> Array
4410
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].secondary_artifacts[0].type #=> String, one of "CODEPIPELINE", "S3", "NO_ARTIFACTS"
4411
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].secondary_artifacts[0].location #=> String
4412
+ # resp.build_batch.build_groups[0].prior_build_summary_list[0].secondary_artifacts[0].identifier #=> String
4413
+ #
4414
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/StopBuildBatch AWS API Documentation
4415
+ #
4416
+ # @overload stop_build_batch(params = {})
4417
+ # @param [Hash] params ({})
4418
+ def stop_build_batch(params = {}, options = {})
4419
+ req = build_request(:stop_build_batch, params)
4420
+ req.send_request(options)
4421
+ end
4422
+
2988
4423
  # Changes the settings of a build project.
2989
4424
  #
2990
4425
  # @option params [required, String] :name
@@ -3080,7 +4515,8 @@ module Aws::CodeBuild
3080
4515
  # </note>
3081
4516
  #
3082
4517
  # You can specify either the Amazon Resource Name (ARN) of the CMK or,
3083
- # if available, the CMK's alias (using the format `alias/alias-name `).
4518
+ # if available, the CMK's alias (using the format
4519
+ # `alias/<alias-name>`).
3084
4520
  #
3085
4521
  # @option params [Array<Types::Tag>] :tags
3086
4522
  # An updated list of tag key and value pairs associated with this build
@@ -3106,6 +4542,9 @@ module Aws::CodeBuild
3106
4542
  # `identifier`, `location`, `mountOptions`, `mountPoint`, and `type` of
3107
4543
  # a file system created using Amazon Elastic File System.
3108
4544
  #
4545
+ # @option params [Types::ProjectBuildBatchConfig] :build_batch_config
4546
+ # Contains configuration information about a batch build project.
4547
+ #
3109
4548
  # @return [Types::UpdateProjectOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3110
4549
  #
3111
4550
  # * {Types::UpdateProjectOutput#project #project} => Types::Project
@@ -3194,7 +4633,7 @@ module Aws::CodeBuild
3194
4633
  # modes: ["LOCAL_DOCKER_LAYER_CACHE"], # accepts LOCAL_DOCKER_LAYER_CACHE, LOCAL_SOURCE_CACHE, LOCAL_CUSTOM_CACHE
3195
4634
  # },
3196
4635
  # environment: {
3197
- # type: "WINDOWS_CONTAINER", # required, accepts WINDOWS_CONTAINER, LINUX_CONTAINER, LINUX_GPU_CONTAINER, ARM_CONTAINER
4636
+ # type: "WINDOWS_CONTAINER", # required, accepts WINDOWS_CONTAINER, LINUX_CONTAINER, LINUX_GPU_CONTAINER, ARM_CONTAINER, WINDOWS_SERVER_2019_CONTAINER
3198
4637
  # image: "NonEmptyString", # required
3199
4638
  # compute_type: "BUILD_GENERAL1_SMALL", # required, accepts BUILD_GENERAL1_SMALL, BUILD_GENERAL1_MEDIUM, BUILD_GENERAL1_LARGE, BUILD_GENERAL1_2XLARGE
3200
4639
  # environment_variables: [
@@ -3249,6 +4688,15 @@ module Aws::CodeBuild
3249
4688
  # mount_options: "String",
3250
4689
  # },
3251
4690
  # ],
4691
+ # build_batch_config: {
4692
+ # service_role: "NonEmptyString",
4693
+ # combine_artifacts: false,
4694
+ # restrictions: {
4695
+ # maximum_builds_allowed: 1,
4696
+ # compute_types_allowed: ["NonEmptyString"],
4697
+ # },
4698
+ # timeout_in_mins: 1,
4699
+ # },
3252
4700
  # })
3253
4701
  #
3254
4702
  # @example Response structure
@@ -3308,7 +4756,7 @@ module Aws::CodeBuild
3308
4756
  # resp.project.cache.location #=> String
3309
4757
  # resp.project.cache.modes #=> Array
3310
4758
  # resp.project.cache.modes[0] #=> String, one of "LOCAL_DOCKER_LAYER_CACHE", "LOCAL_SOURCE_CACHE", "LOCAL_CUSTOM_CACHE"
3311
- # resp.project.environment.type #=> String, one of "WINDOWS_CONTAINER", "LINUX_CONTAINER", "LINUX_GPU_CONTAINER", "ARM_CONTAINER"
4759
+ # resp.project.environment.type #=> String, one of "WINDOWS_CONTAINER", "LINUX_CONTAINER", "LINUX_GPU_CONTAINER", "ARM_CONTAINER", "WINDOWS_SERVER_2019_CONTAINER"
3312
4760
  # resp.project.environment.image #=> String
3313
4761
  # resp.project.environment.compute_type #=> String, one of "BUILD_GENERAL1_SMALL", "BUILD_GENERAL1_MEDIUM", "BUILD_GENERAL1_LARGE", "BUILD_GENERAL1_2XLARGE"
3314
4762
  # resp.project.environment.environment_variables #=> Array
@@ -3338,6 +4786,7 @@ module Aws::CodeBuild
3338
4786
  # resp.project.webhook.filter_groups[0][0].type #=> String, one of "EVENT", "BASE_REF", "HEAD_REF", "ACTOR_ACCOUNT_ID", "FILE_PATH", "COMMIT_MESSAGE"
3339
4787
  # resp.project.webhook.filter_groups[0][0].pattern #=> String
3340
4788
  # resp.project.webhook.filter_groups[0][0].exclude_matched_pattern #=> Boolean
4789
+ # resp.project.webhook.build_type #=> String, one of "BUILD", "BUILD_BATCH"
3341
4790
  # resp.project.webhook.last_modified_secret #=> Time
3342
4791
  # resp.project.vpc_config.vpc_id #=> String
3343
4792
  # resp.project.vpc_config.subnets #=> Array
@@ -3358,6 +4807,12 @@ module Aws::CodeBuild
3358
4807
  # resp.project.file_system_locations[0].mount_point #=> String
3359
4808
  # resp.project.file_system_locations[0].identifier #=> String
3360
4809
  # resp.project.file_system_locations[0].mount_options #=> String
4810
+ # resp.project.build_batch_config.service_role #=> String
4811
+ # resp.project.build_batch_config.combine_artifacts #=> Boolean
4812
+ # resp.project.build_batch_config.restrictions.maximum_builds_allowed #=> Integer
4813
+ # resp.project.build_batch_config.restrictions.compute_types_allowed #=> Array
4814
+ # resp.project.build_batch_config.restrictions.compute_types_allowed[0] #=> String
4815
+ # resp.project.build_batch_config.timeout_in_mins #=> Integer
3361
4816
  #
3362
4817
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateProject AWS API Documentation
3363
4818
  #
@@ -3417,7 +4872,7 @@ module Aws::CodeBuild
3417
4872
  #
3418
4873
  # resp.report_group.arn #=> String
3419
4874
  # resp.report_group.name #=> String
3420
- # resp.report_group.type #=> String, one of "TEST"
4875
+ # resp.report_group.type #=> String, one of "TEST", "CODE_COVERAGE"
3421
4876
  # resp.report_group.export_config.export_config_type #=> String, one of "S3", "NO_EXPORT"
3422
4877
  # resp.report_group.export_config.s3_destination.bucket #=> String
3423
4878
  # resp.report_group.export_config.s3_destination.path #=> String
@@ -3469,6 +4924,9 @@ module Aws::CodeBuild
3469
4924
  # webhook event can trigger a build. A filter group must contain at
3470
4925
  # least one `EVENT` `WebhookFilter`.
3471
4926
  #
4927
+ # @option params [String] :build_type
4928
+ # Specifies the type of build this webhook will trigger.
4929
+ #
3472
4930
  # @return [Types::UpdateWebhookOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3473
4931
  #
3474
4932
  # * {Types::UpdateWebhookOutput#webhook #webhook} => Types::Webhook
@@ -3488,6 +4946,7 @@ module Aws::CodeBuild
3488
4946
  # },
3489
4947
  # ],
3490
4948
  # ],
4949
+ # build_type: "BUILD", # accepts BUILD, BUILD_BATCH
3491
4950
  # })
3492
4951
  #
3493
4952
  # @example Response structure
@@ -3501,6 +4960,7 @@ module Aws::CodeBuild
3501
4960
  # resp.webhook.filter_groups[0][0].type #=> String, one of "EVENT", "BASE_REF", "HEAD_REF", "ACTOR_ACCOUNT_ID", "FILE_PATH", "COMMIT_MESSAGE"
3502
4961
  # resp.webhook.filter_groups[0][0].pattern #=> String
3503
4962
  # resp.webhook.filter_groups[0][0].exclude_matched_pattern #=> Boolean
4963
+ # resp.webhook.build_type #=> String, one of "BUILD", "BUILD_BATCH"
3504
4964
  # resp.webhook.last_modified_secret #=> Time
3505
4965
  #
3506
4966
  # @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateWebhook AWS API Documentation
@@ -3525,7 +4985,7 @@ module Aws::CodeBuild
3525
4985
  params: params,
3526
4986
  config: config)
3527
4987
  context[:gem_name] = 'aws-sdk-codebuild'
3528
- context[:gem_version] = '1.56.0'
4988
+ context[:gem_version] = '1.61.0'
3529
4989
  Seahorse::Client::Request.new(handlers, context)
3530
4990
  end
3531
4991