aws-sdk-codebuild 1.160.0 → 1.162.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-codebuild/client.rb +40 -2
- data/lib/aws-sdk-codebuild/client_api.rb +13 -0
- data/lib/aws-sdk-codebuild/types.rb +71 -4
- data/lib/aws-sdk-codebuild.rb +1 -1
- data/sig/client.rbs +9 -1
- data/sig/types.rbs +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc0e7df9115034649961b79be140f8b80bab0c0f7b094e0ccb46c38e08dd7eb8
|
4
|
+
data.tar.gz: c9ea5654b23f65140659427d605b87fb68174e3b005caf0449c6e5223910ef38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 422ad4cf8e6cca55c6a97c3367b51cf742fbd25330801951baa7e2b8e6741b72cd000c2762c2c8f009eefed03f42c875ecd00905eec3f77bb4cf1e505fa8f7c0
|
7
|
+
data.tar.gz: 7973fe3bd856807cf2f2d849928ee2c396d79f83bf53606035c430a613c213ba19de267f8849b3e489d9072802b0724b8568938cbdb9142e03c13059a1899bc9
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.162.0 (2025-08-12)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - AWS CodeBuild now supports PullRequestBuildPolicy in webhook object.
|
8
|
+
|
9
|
+
1.161.0 (2025-08-07)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - AWS CodeBuild now supports comment-based pull request control.
|
13
|
+
|
4
14
|
1.160.0 (2025-08-04)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.162.0
|
@@ -1122,6 +1122,9 @@ module Aws::CodeBuild
|
|
1122
1122
|
# resp.projects[0].webhook.scope_configuration.scope #=> String, one of "GITHUB_ORGANIZATION", "GITHUB_GLOBAL", "GITLAB_GROUP"
|
1123
1123
|
# resp.projects[0].webhook.status #=> String, one of "CREATING", "CREATE_FAILED", "ACTIVE", "DELETING"
|
1124
1124
|
# resp.projects[0].webhook.status_message #=> String
|
1125
|
+
# resp.projects[0].webhook.pull_request_build_policy.requires_comment_approval #=> String, one of "DISABLED", "ALL_PULL_REQUESTS", "FORK_PULL_REQUESTS"
|
1126
|
+
# resp.projects[0].webhook.pull_request_build_policy.approver_roles #=> Array
|
1127
|
+
# resp.projects[0].webhook.pull_request_build_policy.approver_roles[0] #=> String, one of "GITHUB_READ", "GITHUB_TRIAGE", "GITHUB_WRITE", "GITHUB_MAINTAIN", "GITHUB_ADMIN", "GITLAB_GUEST", "GITLAB_PLANNER", "GITLAB_REPORTER", "GITLAB_DEVELOPER", "GITLAB_MAINTAINER", "GITLAB_OWNER", "BITBUCKET_READ", "BITBUCKET_WRITE", "BITBUCKET_ADMIN"
|
1125
1128
|
# resp.projects[0].vpc_config.vpc_id #=> String
|
1126
1129
|
# resp.projects[0].vpc_config.subnets #=> Array
|
1127
1130
|
# resp.projects[0].vpc_config.subnets[0] #=> String
|
@@ -2162,6 +2165,9 @@ module Aws::CodeBuild
|
|
2162
2165
|
# resp.project.webhook.scope_configuration.scope #=> String, one of "GITHUB_ORGANIZATION", "GITHUB_GLOBAL", "GITLAB_GROUP"
|
2163
2166
|
# resp.project.webhook.status #=> String, one of "CREATING", "CREATE_FAILED", "ACTIVE", "DELETING"
|
2164
2167
|
# resp.project.webhook.status_message #=> String
|
2168
|
+
# resp.project.webhook.pull_request_build_policy.requires_comment_approval #=> String, one of "DISABLED", "ALL_PULL_REQUESTS", "FORK_PULL_REQUESTS"
|
2169
|
+
# resp.project.webhook.pull_request_build_policy.approver_roles #=> Array
|
2170
|
+
# resp.project.webhook.pull_request_build_policy.approver_roles[0] #=> String, one of "GITHUB_READ", "GITHUB_TRIAGE", "GITHUB_WRITE", "GITHUB_MAINTAIN", "GITHUB_ADMIN", "GITLAB_GUEST", "GITLAB_PLANNER", "GITLAB_REPORTER", "GITLAB_DEVELOPER", "GITLAB_MAINTAINER", "GITLAB_OWNER", "BITBUCKET_READ", "BITBUCKET_WRITE", "BITBUCKET_ADMIN"
|
2165
2171
|
# resp.project.vpc_config.vpc_id #=> String
|
2166
2172
|
# resp.project.vpc_config.subnets #=> Array
|
2167
2173
|
# resp.project.vpc_config.subnets[0] #=> String
|
@@ -2355,6 +2361,12 @@ module Aws::CodeBuild
|
|
2355
2361
|
#
|
2356
2362
|
# </note>
|
2357
2363
|
#
|
2364
|
+
# @option params [Types::PullRequestBuildPolicy] :pull_request_build_policy
|
2365
|
+
# A PullRequestBuildPolicy object that defines comment-based approval
|
2366
|
+
# requirements for triggering builds on pull requests. This policy helps
|
2367
|
+
# control when automated builds are executed based on contributor
|
2368
|
+
# permissions and approval workflows.
|
2369
|
+
#
|
2358
2370
|
# @return [Types::CreateWebhookOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2359
2371
|
#
|
2360
2372
|
# * {Types::CreateWebhookOutput#webhook #webhook} => Types::Webhook
|
@@ -2380,6 +2392,10 @@ module Aws::CodeBuild
|
|
2380
2392
|
# domain: "String",
|
2381
2393
|
# scope: "GITHUB_ORGANIZATION", # required, accepts GITHUB_ORGANIZATION, GITHUB_GLOBAL, GITLAB_GROUP
|
2382
2394
|
# },
|
2395
|
+
# pull_request_build_policy: {
|
2396
|
+
# requires_comment_approval: "DISABLED", # required, accepts DISABLED, ALL_PULL_REQUESTS, FORK_PULL_REQUESTS
|
2397
|
+
# approver_roles: ["GITHUB_READ"], # accepts GITHUB_READ, GITHUB_TRIAGE, GITHUB_WRITE, GITHUB_MAINTAIN, GITHUB_ADMIN, GITLAB_GUEST, GITLAB_PLANNER, GITLAB_REPORTER, GITLAB_DEVELOPER, GITLAB_MAINTAINER, GITLAB_OWNER, BITBUCKET_READ, BITBUCKET_WRITE, BITBUCKET_ADMIN
|
2398
|
+
# },
|
2383
2399
|
# })
|
2384
2400
|
#
|
2385
2401
|
# @example Response structure
|
@@ -2401,6 +2417,9 @@ module Aws::CodeBuild
|
|
2401
2417
|
# resp.webhook.scope_configuration.scope #=> String, one of "GITHUB_ORGANIZATION", "GITHUB_GLOBAL", "GITLAB_GROUP"
|
2402
2418
|
# resp.webhook.status #=> String, one of "CREATING", "CREATE_FAILED", "ACTIVE", "DELETING"
|
2403
2419
|
# resp.webhook.status_message #=> String
|
2420
|
+
# resp.webhook.pull_request_build_policy.requires_comment_approval #=> String, one of "DISABLED", "ALL_PULL_REQUESTS", "FORK_PULL_REQUESTS"
|
2421
|
+
# resp.webhook.pull_request_build_policy.approver_roles #=> Array
|
2422
|
+
# resp.webhook.pull_request_build_policy.approver_roles[0] #=> String, one of "GITHUB_READ", "GITHUB_TRIAGE", "GITHUB_WRITE", "GITHUB_MAINTAIN", "GITHUB_ADMIN", "GITLAB_GUEST", "GITLAB_PLANNER", "GITLAB_REPORTER", "GITLAB_DEVELOPER", "GITLAB_MAINTAINER", "GITLAB_OWNER", "BITBUCKET_READ", "BITBUCKET_WRITE", "BITBUCKET_ADMIN"
|
2404
2423
|
#
|
2405
2424
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateWebhook AWS API Documentation
|
2406
2425
|
#
|
@@ -4373,13 +4392,16 @@ module Aws::CodeBuild
|
|
4373
4392
|
# ability to call this API and set this parameter can override the
|
4374
4393
|
# default settings. Moreover, we encourage that you use a trustworthy
|
4375
4394
|
# buildspec location like a file in your source repository or a Amazon
|
4376
|
-
# S3 bucket.
|
4395
|
+
# S3 bucket. Alternatively, you can restrict overrides to the buildspec
|
4396
|
+
# by using a condition key: [Prevent unauthorized modifications to
|
4397
|
+
# project buildspec][2].
|
4377
4398
|
#
|
4378
4399
|
# </note>
|
4379
4400
|
#
|
4380
4401
|
#
|
4381
4402
|
#
|
4382
4403
|
# [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-name-storage
|
4404
|
+
# [2]: https://docs.aws.amazon.com/codebuild/latest/userguide/action-context-keys.html#action-context-keys-example-overridebuildspec.html
|
4383
4405
|
#
|
4384
4406
|
# @option params [Boolean] :insecure_ssl_override
|
4385
4407
|
# Enable this flag to override the insecure SSL setting that is
|
@@ -6760,6 +6782,9 @@ module Aws::CodeBuild
|
|
6760
6782
|
# resp.project.webhook.scope_configuration.scope #=> String, one of "GITHUB_ORGANIZATION", "GITHUB_GLOBAL", "GITLAB_GROUP"
|
6761
6783
|
# resp.project.webhook.status #=> String, one of "CREATING", "CREATE_FAILED", "ACTIVE", "DELETING"
|
6762
6784
|
# resp.project.webhook.status_message #=> String
|
6785
|
+
# resp.project.webhook.pull_request_build_policy.requires_comment_approval #=> String, one of "DISABLED", "ALL_PULL_REQUESTS", "FORK_PULL_REQUESTS"
|
6786
|
+
# resp.project.webhook.pull_request_build_policy.approver_roles #=> Array
|
6787
|
+
# resp.project.webhook.pull_request_build_policy.approver_roles[0] #=> String, one of "GITHUB_READ", "GITHUB_TRIAGE", "GITHUB_WRITE", "GITHUB_MAINTAIN", "GITHUB_ADMIN", "GITLAB_GUEST", "GITLAB_PLANNER", "GITLAB_REPORTER", "GITLAB_DEVELOPER", "GITLAB_MAINTAINER", "GITLAB_OWNER", "BITBUCKET_READ", "BITBUCKET_WRITE", "BITBUCKET_ADMIN"
|
6763
6788
|
# resp.project.vpc_config.vpc_id #=> String
|
6764
6789
|
# resp.project.vpc_config.subnets #=> Array
|
6765
6790
|
# resp.project.vpc_config.subnets[0] #=> String
|
@@ -7007,6 +7032,12 @@ module Aws::CodeBuild
|
|
7007
7032
|
#
|
7008
7033
|
# [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/sample-runner-buildkite.html
|
7009
7034
|
#
|
7035
|
+
# @option params [Types::PullRequestBuildPolicy] :pull_request_build_policy
|
7036
|
+
# A PullRequestBuildPolicy object that defines comment-based approval
|
7037
|
+
# requirements for triggering builds on pull requests. This policy helps
|
7038
|
+
# control when automated builds are executed based on contributor
|
7039
|
+
# permissions and approval workflows.
|
7040
|
+
#
|
7010
7041
|
# @return [Types::UpdateWebhookOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7011
7042
|
#
|
7012
7043
|
# * {Types::UpdateWebhookOutput#webhook #webhook} => Types::Webhook
|
@@ -7027,6 +7058,10 @@ module Aws::CodeBuild
|
|
7027
7058
|
# ],
|
7028
7059
|
# ],
|
7029
7060
|
# build_type: "BUILD", # accepts BUILD, BUILD_BATCH, RUNNER_BUILDKITE_BUILD
|
7061
|
+
# pull_request_build_policy: {
|
7062
|
+
# requires_comment_approval: "DISABLED", # required, accepts DISABLED, ALL_PULL_REQUESTS, FORK_PULL_REQUESTS
|
7063
|
+
# approver_roles: ["GITHUB_READ"], # accepts GITHUB_READ, GITHUB_TRIAGE, GITHUB_WRITE, GITHUB_MAINTAIN, GITHUB_ADMIN, GITLAB_GUEST, GITLAB_PLANNER, GITLAB_REPORTER, GITLAB_DEVELOPER, GITLAB_MAINTAINER, GITLAB_OWNER, BITBUCKET_READ, BITBUCKET_WRITE, BITBUCKET_ADMIN
|
7064
|
+
# },
|
7030
7065
|
# })
|
7031
7066
|
#
|
7032
7067
|
# @example Response structure
|
@@ -7048,6 +7083,9 @@ module Aws::CodeBuild
|
|
7048
7083
|
# resp.webhook.scope_configuration.scope #=> String, one of "GITHUB_ORGANIZATION", "GITHUB_GLOBAL", "GITLAB_GROUP"
|
7049
7084
|
# resp.webhook.status #=> String, one of "CREATING", "CREATE_FAILED", "ACTIVE", "DELETING"
|
7050
7085
|
# resp.webhook.status_message #=> String
|
7086
|
+
# resp.webhook.pull_request_build_policy.requires_comment_approval #=> String, one of "DISABLED", "ALL_PULL_REQUESTS", "FORK_PULL_REQUESTS"
|
7087
|
+
# resp.webhook.pull_request_build_policy.approver_roles #=> Array
|
7088
|
+
# resp.webhook.pull_request_build_policy.approver_roles[0] #=> String, one of "GITHUB_READ", "GITHUB_TRIAGE", "GITHUB_WRITE", "GITHUB_MAINTAIN", "GITHUB_ADMIN", "GITLAB_GUEST", "GITLAB_PLANNER", "GITLAB_REPORTER", "GITLAB_DEVELOPER", "GITLAB_MAINTAINER", "GITLAB_OWNER", "BITBUCKET_READ", "BITBUCKET_WRITE", "BITBUCKET_ADMIN"
|
7051
7089
|
#
|
7052
7090
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateWebhook AWS API Documentation
|
7053
7091
|
#
|
@@ -7076,7 +7114,7 @@ module Aws::CodeBuild
|
|
7076
7114
|
tracer: tracer
|
7077
7115
|
)
|
7078
7116
|
context[:gem_name] = 'aws-sdk-codebuild'
|
7079
|
-
context[:gem_version] = '1.
|
7117
|
+
context[:gem_version] = '1.162.0'
|
7080
7118
|
Seahorse::Client::Request.new(handlers, context)
|
7081
7119
|
end
|
7082
7120
|
|
@@ -231,6 +231,10 @@ module Aws::CodeBuild
|
|
231
231
|
ProjectVisibilityType = Shapes::StringShape.new(name: 'ProjectVisibilityType')
|
232
232
|
Projects = Shapes::ListShape.new(name: 'Projects')
|
233
233
|
ProxyConfiguration = Shapes::StructureShape.new(name: 'ProxyConfiguration')
|
234
|
+
PullRequestBuildApproverRole = Shapes::StringShape.new(name: 'PullRequestBuildApproverRole')
|
235
|
+
PullRequestBuildApproverRoles = Shapes::ListShape.new(name: 'PullRequestBuildApproverRoles')
|
236
|
+
PullRequestBuildCommentApproval = Shapes::StringShape.new(name: 'PullRequestBuildCommentApproval')
|
237
|
+
PullRequestBuildPolicy = Shapes::StructureShape.new(name: 'PullRequestBuildPolicy')
|
234
238
|
PutResourcePolicyInput = Shapes::StructureShape.new(name: 'PutResourcePolicyInput')
|
235
239
|
PutResourcePolicyOutput = Shapes::StructureShape.new(name: 'PutResourcePolicyOutput')
|
236
240
|
RegistryCredential = Shapes::StructureShape.new(name: 'RegistryCredential')
|
@@ -672,6 +676,7 @@ module Aws::CodeBuild
|
|
672
676
|
CreateWebhookInput.add_member(:build_type, Shapes::ShapeRef.new(shape: WebhookBuildType, location_name: "buildType"))
|
673
677
|
CreateWebhookInput.add_member(:manual_creation, Shapes::ShapeRef.new(shape: WrapperBoolean, location_name: "manualCreation"))
|
674
678
|
CreateWebhookInput.add_member(:scope_configuration, Shapes::ShapeRef.new(shape: ScopeConfiguration, location_name: "scopeConfiguration"))
|
679
|
+
CreateWebhookInput.add_member(:pull_request_build_policy, Shapes::ShapeRef.new(shape: PullRequestBuildPolicy, location_name: "pullRequestBuildPolicy"))
|
675
680
|
CreateWebhookInput.struct_class = Types::CreateWebhookInput
|
676
681
|
|
677
682
|
CreateWebhookOutput.add_member(:webhook, Shapes::ShapeRef.new(shape: Webhook, location_name: "webhook"))
|
@@ -1166,6 +1171,12 @@ module Aws::CodeBuild
|
|
1166
1171
|
ProxyConfiguration.add_member(:ordered_proxy_rules, Shapes::ShapeRef.new(shape: FleetProxyRules, location_name: "orderedProxyRules"))
|
1167
1172
|
ProxyConfiguration.struct_class = Types::ProxyConfiguration
|
1168
1173
|
|
1174
|
+
PullRequestBuildApproverRoles.member = Shapes::ShapeRef.new(shape: PullRequestBuildApproverRole)
|
1175
|
+
|
1176
|
+
PullRequestBuildPolicy.add_member(:requires_comment_approval, Shapes::ShapeRef.new(shape: PullRequestBuildCommentApproval, required: true, location_name: "requiresCommentApproval"))
|
1177
|
+
PullRequestBuildPolicy.add_member(:approver_roles, Shapes::ShapeRef.new(shape: PullRequestBuildApproverRoles, location_name: "approverRoles"))
|
1178
|
+
PullRequestBuildPolicy.struct_class = Types::PullRequestBuildPolicy
|
1179
|
+
|
1169
1180
|
PutResourcePolicyInput.add_member(:policy, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "policy"))
|
1170
1181
|
PutResourcePolicyInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "resourceArn"))
|
1171
1182
|
PutResourcePolicyInput.struct_class = Types::PutResourcePolicyInput
|
@@ -1568,6 +1579,7 @@ module Aws::CodeBuild
|
|
1568
1579
|
UpdateWebhookInput.add_member(:rotate_secret, Shapes::ShapeRef.new(shape: Boolean, location_name: "rotateSecret"))
|
1569
1580
|
UpdateWebhookInput.add_member(:filter_groups, Shapes::ShapeRef.new(shape: FilterGroups, location_name: "filterGroups"))
|
1570
1581
|
UpdateWebhookInput.add_member(:build_type, Shapes::ShapeRef.new(shape: WebhookBuildType, location_name: "buildType"))
|
1582
|
+
UpdateWebhookInput.add_member(:pull_request_build_policy, Shapes::ShapeRef.new(shape: PullRequestBuildPolicy, location_name: "pullRequestBuildPolicy"))
|
1571
1583
|
UpdateWebhookInput.struct_class = Types::UpdateWebhookInput
|
1572
1584
|
|
1573
1585
|
UpdateWebhookOutput.add_member(:webhook, Shapes::ShapeRef.new(shape: Webhook, location_name: "webhook"))
|
@@ -1589,6 +1601,7 @@ module Aws::CodeBuild
|
|
1589
1601
|
Webhook.add_member(:scope_configuration, Shapes::ShapeRef.new(shape: ScopeConfiguration, location_name: "scopeConfiguration"))
|
1590
1602
|
Webhook.add_member(:status, Shapes::ShapeRef.new(shape: WebhookStatus, location_name: "status"))
|
1591
1603
|
Webhook.add_member(:status_message, Shapes::ShapeRef.new(shape: String, location_name: "statusMessage"))
|
1604
|
+
Webhook.add_member(:pull_request_build_policy, Shapes::ShapeRef.new(shape: PullRequestBuildPolicy, location_name: "pullRequestBuildPolicy"))
|
1592
1605
|
Webhook.struct_class = Types::Webhook
|
1593
1606
|
|
1594
1607
|
WebhookFilter.add_member(:type, Shapes::ShapeRef.new(shape: WebhookFilterType, required: true, location_name: "type"))
|
@@ -2204,6 +2204,13 @@ module Aws::CodeBuild
|
|
2204
2204
|
# </note>
|
2205
2205
|
# @return [Types::ScopeConfiguration]
|
2206
2206
|
#
|
2207
|
+
# @!attribute [rw] pull_request_build_policy
|
2208
|
+
# A PullRequestBuildPolicy object that defines comment-based approval
|
2209
|
+
# requirements for triggering builds on pull requests. This policy
|
2210
|
+
# helps control when automated builds are executed based on
|
2211
|
+
# contributor permissions and approval workflows.
|
2212
|
+
# @return [Types::PullRequestBuildPolicy]
|
2213
|
+
#
|
2207
2214
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateWebhookInput AWS API Documentation
|
2208
2215
|
#
|
2209
2216
|
class CreateWebhookInput < Struct.new(
|
@@ -2212,7 +2219,8 @@ module Aws::CodeBuild
|
|
2212
2219
|
:filter_groups,
|
2213
2220
|
:build_type,
|
2214
2221
|
:manual_creation,
|
2215
|
-
:scope_configuration
|
2222
|
+
:scope_configuration,
|
2223
|
+
:pull_request_build_policy)
|
2216
2224
|
SENSITIVE = []
|
2217
2225
|
include Aws::Structure
|
2218
2226
|
end
|
@@ -5504,6 +5512,46 @@ module Aws::CodeBuild
|
|
5504
5512
|
include Aws::Structure
|
5505
5513
|
end
|
5506
5514
|
|
5515
|
+
# A PullRequestBuildPolicy object that defines comment-based approval
|
5516
|
+
# requirements for triggering builds on pull requests. This policy helps
|
5517
|
+
# control when automated builds are executed based on contributor
|
5518
|
+
# permissions and approval workflows.
|
5519
|
+
#
|
5520
|
+
# @!attribute [rw] requires_comment_approval
|
5521
|
+
# Specifies when comment-based approval is required before triggering
|
5522
|
+
# a build on pull requests. This setting determines whether builds run
|
5523
|
+
# automatically or require explicit approval through comments.
|
5524
|
+
#
|
5525
|
+
# * *DISABLED*: Builds trigger automatically without requiring comment
|
5526
|
+
# approval
|
5527
|
+
#
|
5528
|
+
# * *ALL\_PULL\_REQUESTS*: All pull requests require comment approval
|
5529
|
+
# before builds execute (unless contributor is one of the approver
|
5530
|
+
# roles)
|
5531
|
+
#
|
5532
|
+
# * *FORK\_PULL\_REQUESTS*: Only pull requests from forked
|
5533
|
+
# repositories require comment approval (unless contributor is one
|
5534
|
+
# of the approver roles)
|
5535
|
+
# @return [String]
|
5536
|
+
#
|
5537
|
+
# @!attribute [rw] approver_roles
|
5538
|
+
# List of repository roles that have approval privileges for pull
|
5539
|
+
# request builds when comment approval is required. Only users with
|
5540
|
+
# these roles can provide valid comment approvals. If a pull request
|
5541
|
+
# contributor is one of these roles, their pull request builds will
|
5542
|
+
# trigger automatically. This field is only applicable when
|
5543
|
+
# `requiresCommentApproval` is not *DISABLED*.
|
5544
|
+
# @return [Array<String>]
|
5545
|
+
#
|
5546
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/PullRequestBuildPolicy AWS API Documentation
|
5547
|
+
#
|
5548
|
+
class PullRequestBuildPolicy < Struct.new(
|
5549
|
+
:requires_comment_approval,
|
5550
|
+
:approver_roles)
|
5551
|
+
SENSITIVE = []
|
5552
|
+
include Aws::Structure
|
5553
|
+
end
|
5554
|
+
|
5507
5555
|
# @!attribute [rw] policy
|
5508
5556
|
# A JSON-formatted resource policy. For more information, see [Sharing
|
5509
5557
|
# a Project][1] and [Sharing a Report Group][2] in the *CodeBuild User
|
@@ -6889,13 +6937,16 @@ module Aws::CodeBuild
|
|
6889
6937
|
# with the ability to call this API and set this parameter can
|
6890
6938
|
# override the default settings. Moreover, we encourage that you use a
|
6891
6939
|
# trustworthy buildspec location like a file in your source repository
|
6892
|
-
# or a Amazon S3 bucket.
|
6940
|
+
# or a Amazon S3 bucket. Alternatively, you can restrict overrides to
|
6941
|
+
# the buildspec by using a condition key: [Prevent unauthorized
|
6942
|
+
# modifications to project buildspec][2].
|
6893
6943
|
#
|
6894
6944
|
# </note>
|
6895
6945
|
#
|
6896
6946
|
#
|
6897
6947
|
#
|
6898
6948
|
# [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-name-storage
|
6949
|
+
# [2]: https://docs.aws.amazon.com/codebuild/latest/userguide/action-context-keys.html#action-context-keys-example-overridebuildspec.html
|
6899
6950
|
# @return [String]
|
6900
6951
|
#
|
6901
6952
|
# @!attribute [rw] insecure_ssl_override
|
@@ -8036,6 +8087,13 @@ module Aws::CodeBuild
|
|
8036
8087
|
# [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/sample-runner-buildkite.html
|
8037
8088
|
# @return [String]
|
8038
8089
|
#
|
8090
|
+
# @!attribute [rw] pull_request_build_policy
|
8091
|
+
# A PullRequestBuildPolicy object that defines comment-based approval
|
8092
|
+
# requirements for triggering builds on pull requests. This policy
|
8093
|
+
# helps control when automated builds are executed based on
|
8094
|
+
# contributor permissions and approval workflows.
|
8095
|
+
# @return [Types::PullRequestBuildPolicy]
|
8096
|
+
#
|
8039
8097
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateWebhookInput AWS API Documentation
|
8040
8098
|
#
|
8041
8099
|
class UpdateWebhookInput < Struct.new(
|
@@ -8043,7 +8101,8 @@ module Aws::CodeBuild
|
|
8043
8101
|
:branch_filter,
|
8044
8102
|
:rotate_secret,
|
8045
8103
|
:filter_groups,
|
8046
|
-
:build_type
|
8104
|
+
:build_type,
|
8105
|
+
:pull_request_build_policy)
|
8047
8106
|
SENSITIVE = []
|
8048
8107
|
include Aws::Structure
|
8049
8108
|
end
|
@@ -8183,6 +8242,13 @@ module Aws::CodeBuild
|
|
8183
8242
|
# A message associated with the status of a webhook.
|
8184
8243
|
# @return [String]
|
8185
8244
|
#
|
8245
|
+
# @!attribute [rw] pull_request_build_policy
|
8246
|
+
# A PullRequestBuildPolicy object that defines comment-based approval
|
8247
|
+
# requirements for triggering builds on pull requests. This policy
|
8248
|
+
# helps control when automated builds are executed based on
|
8249
|
+
# contributor permissions and approval workflows.
|
8250
|
+
# @return [Types::PullRequestBuildPolicy]
|
8251
|
+
#
|
8186
8252
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/Webhook AWS API Documentation
|
8187
8253
|
#
|
8188
8254
|
class Webhook < Struct.new(
|
@@ -8196,7 +8262,8 @@ module Aws::CodeBuild
|
|
8196
8262
|
:last_modified_secret,
|
8197
8263
|
:scope_configuration,
|
8198
8264
|
:status,
|
8199
|
-
:status_message
|
8265
|
+
:status_message,
|
8266
|
+
:pull_request_build_policy)
|
8200
8267
|
SENSITIVE = []
|
8201
8268
|
include Aws::Structure
|
8202
8269
|
end
|
data/lib/aws-sdk-codebuild.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -464,6 +464,10 @@ module Aws
|
|
464
464
|
name: ::String,
|
465
465
|
domain: ::String?,
|
466
466
|
scope: ("GITHUB_ORGANIZATION" | "GITHUB_GLOBAL" | "GITLAB_GROUP")
|
467
|
+
},
|
468
|
+
?pull_request_build_policy: {
|
469
|
+
requires_comment_approval: ("DISABLED" | "ALL_PULL_REQUESTS" | "FORK_PULL_REQUESTS"),
|
470
|
+
approver_roles: Array[("GITHUB_READ" | "GITHUB_TRIAGE" | "GITHUB_WRITE" | "GITHUB_MAINTAIN" | "GITHUB_ADMIN" | "GITLAB_GUEST" | "GITLAB_PLANNER" | "GITLAB_REPORTER" | "GITLAB_DEVELOPER" | "GITLAB_MAINTAINER" | "GITLAB_OWNER" | "BITBUCKET_READ" | "BITBUCKET_WRITE" | "BITBUCKET_ADMIN")]?
|
467
471
|
}
|
468
472
|
) -> _CreateWebhookResponseSuccess
|
469
473
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateWebhookResponseSuccess
|
@@ -1493,7 +1497,11 @@ module Aws
|
|
1493
1497
|
},
|
1494
1498
|
],
|
1495
1499
|
],
|
1496
|
-
?build_type: ("BUILD" | "BUILD_BATCH" | "RUNNER_BUILDKITE_BUILD")
|
1500
|
+
?build_type: ("BUILD" | "BUILD_BATCH" | "RUNNER_BUILDKITE_BUILD"),
|
1501
|
+
?pull_request_build_policy: {
|
1502
|
+
requires_comment_approval: ("DISABLED" | "ALL_PULL_REQUESTS" | "FORK_PULL_REQUESTS"),
|
1503
|
+
approver_roles: Array[("GITHUB_READ" | "GITHUB_TRIAGE" | "GITHUB_WRITE" | "GITHUB_MAINTAIN" | "GITHUB_ADMIN" | "GITLAB_GUEST" | "GITLAB_PLANNER" | "GITLAB_REPORTER" | "GITLAB_DEVELOPER" | "GITLAB_MAINTAINER" | "GITLAB_OWNER" | "BITBUCKET_READ" | "BITBUCKET_WRITE" | "BITBUCKET_ADMIN")]?
|
1504
|
+
}
|
1497
1505
|
) -> _UpdateWebhookResponseSuccess
|
1498
1506
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateWebhookResponseSuccess
|
1499
1507
|
end
|
data/sig/types.rbs
CHANGED
@@ -396,6 +396,7 @@ module Aws::CodeBuild
|
|
396
396
|
attr_accessor build_type: ("BUILD" | "BUILD_BATCH" | "RUNNER_BUILDKITE_BUILD")
|
397
397
|
attr_accessor manual_creation: bool
|
398
398
|
attr_accessor scope_configuration: Types::ScopeConfiguration
|
399
|
+
attr_accessor pull_request_build_policy: Types::PullRequestBuildPolicy
|
399
400
|
SENSITIVE: []
|
400
401
|
end
|
401
402
|
|
@@ -1012,6 +1013,12 @@ module Aws::CodeBuild
|
|
1012
1013
|
SENSITIVE: []
|
1013
1014
|
end
|
1014
1015
|
|
1016
|
+
class PullRequestBuildPolicy
|
1017
|
+
attr_accessor requires_comment_approval: ("DISABLED" | "ALL_PULL_REQUESTS" | "FORK_PULL_REQUESTS")
|
1018
|
+
attr_accessor approver_roles: ::Array[("GITHUB_READ" | "GITHUB_TRIAGE" | "GITHUB_WRITE" | "GITHUB_MAINTAIN" | "GITHUB_ADMIN" | "GITLAB_GUEST" | "GITLAB_PLANNER" | "GITLAB_REPORTER" | "GITLAB_DEVELOPER" | "GITLAB_MAINTAINER" | "GITLAB_OWNER" | "BITBUCKET_READ" | "BITBUCKET_WRITE" | "BITBUCKET_ADMIN")]
|
1019
|
+
SENSITIVE: []
|
1020
|
+
end
|
1021
|
+
|
1015
1022
|
class PutResourcePolicyInput
|
1016
1023
|
attr_accessor policy: ::String
|
1017
1024
|
attr_accessor resource_arn: ::String
|
@@ -1492,6 +1499,7 @@ module Aws::CodeBuild
|
|
1492
1499
|
attr_accessor rotate_secret: bool
|
1493
1500
|
attr_accessor filter_groups: ::Array[::Array[Types::WebhookFilter]]
|
1494
1501
|
attr_accessor build_type: ("BUILD" | "BUILD_BATCH" | "RUNNER_BUILDKITE_BUILD")
|
1502
|
+
attr_accessor pull_request_build_policy: Types::PullRequestBuildPolicy
|
1495
1503
|
SENSITIVE: []
|
1496
1504
|
end
|
1497
1505
|
|
@@ -1519,6 +1527,7 @@ module Aws::CodeBuild
|
|
1519
1527
|
attr_accessor scope_configuration: Types::ScopeConfiguration
|
1520
1528
|
attr_accessor status: ("CREATING" | "CREATE_FAILED" | "ACTIVE" | "DELETING")
|
1521
1529
|
attr_accessor status_message: ::String
|
1530
|
+
attr_accessor pull_request_build_policy: Types::PullRequestBuildPolicy
|
1522
1531
|
SENSITIVE: []
|
1523
1532
|
end
|
1524
1533
|
|