aws-sdk-codebuild 1.160.0 → 1.161.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-codebuild/client.rb +25 -2
- data/lib/aws-sdk-codebuild/client_api.rb +12 -0
- data/lib/aws-sdk-codebuild/types.rb +62 -3
- data/lib/aws-sdk-codebuild.rb +1 -1
- data/sig/client.rbs +9 -1
- data/sig/types.rbs +8 -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: 823f589e2ccc20585ebdae2c47c4ec5c044d6bc48de579efef0a688f23cdcba2
|
4
|
+
data.tar.gz: 19d94829dbb363a6cc8a80533c7d5fc864e84da4343f14e1fc212bc3561ba97a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67449f79e6ad5b4573cd51797f6ad77d664750fc8785e08263987aba5ec7769d92c28a1d457813f86ad7e9ee5fb6fda5569aa4088145a111be1898186502ca79
|
7
|
+
data.tar.gz: b7034b93000f0067f0da2cee91593844bfc0a3c6e8af7cd613725b833c3ee23f956fe95eb10f6add1a5f44330bf0b28a6cc93731f55b7982c17526881292cf4b
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.161.0
|
@@ -2355,6 +2355,12 @@ module Aws::CodeBuild
|
|
2355
2355
|
#
|
2356
2356
|
# </note>
|
2357
2357
|
#
|
2358
|
+
# @option params [Types::PullRequestBuildPolicy] :pull_request_build_policy
|
2359
|
+
# A PullRequestBuildPolicy object that defines comment-based approval
|
2360
|
+
# requirements for triggering builds on pull requests. This policy helps
|
2361
|
+
# control when automated builds are executed based on contributor
|
2362
|
+
# permissions and approval workflows.
|
2363
|
+
#
|
2358
2364
|
# @return [Types::CreateWebhookOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2359
2365
|
#
|
2360
2366
|
# * {Types::CreateWebhookOutput#webhook #webhook} => Types::Webhook
|
@@ -2380,6 +2386,10 @@ module Aws::CodeBuild
|
|
2380
2386
|
# domain: "String",
|
2381
2387
|
# scope: "GITHUB_ORGANIZATION", # required, accepts GITHUB_ORGANIZATION, GITHUB_GLOBAL, GITLAB_GROUP
|
2382
2388
|
# },
|
2389
|
+
# pull_request_build_policy: {
|
2390
|
+
# requires_comment_approval: "DISABLED", # required, accepts DISABLED, ALL_PULL_REQUESTS, FORK_PULL_REQUESTS
|
2391
|
+
# 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
|
2392
|
+
# },
|
2383
2393
|
# })
|
2384
2394
|
#
|
2385
2395
|
# @example Response structure
|
@@ -4373,13 +4383,16 @@ module Aws::CodeBuild
|
|
4373
4383
|
# ability to call this API and set this parameter can override the
|
4374
4384
|
# default settings. Moreover, we encourage that you use a trustworthy
|
4375
4385
|
# buildspec location like a file in your source repository or a Amazon
|
4376
|
-
# S3 bucket.
|
4386
|
+
# S3 bucket. Alternatively, you can restrict overrides to the buildspec
|
4387
|
+
# by using a condition key: [Prevent unauthorized modifications to
|
4388
|
+
# project buildspec][2].
|
4377
4389
|
#
|
4378
4390
|
# </note>
|
4379
4391
|
#
|
4380
4392
|
#
|
4381
4393
|
#
|
4382
4394
|
# [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-name-storage
|
4395
|
+
# [2]: https://docs.aws.amazon.com/codebuild/latest/userguide/action-context-keys.html#action-context-keys-example-overridebuildspec.html
|
4383
4396
|
#
|
4384
4397
|
# @option params [Boolean] :insecure_ssl_override
|
4385
4398
|
# Enable this flag to override the insecure SSL setting that is
|
@@ -7007,6 +7020,12 @@ module Aws::CodeBuild
|
|
7007
7020
|
#
|
7008
7021
|
# [1]: https://docs.aws.amazon.com/codebuild/latest/userguide/sample-runner-buildkite.html
|
7009
7022
|
#
|
7023
|
+
# @option params [Types::PullRequestBuildPolicy] :pull_request_build_policy
|
7024
|
+
# A PullRequestBuildPolicy object that defines comment-based approval
|
7025
|
+
# requirements for triggering builds on pull requests. This policy helps
|
7026
|
+
# control when automated builds are executed based on contributor
|
7027
|
+
# permissions and approval workflows.
|
7028
|
+
#
|
7010
7029
|
# @return [Types::UpdateWebhookOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7011
7030
|
#
|
7012
7031
|
# * {Types::UpdateWebhookOutput#webhook #webhook} => Types::Webhook
|
@@ -7027,6 +7046,10 @@ module Aws::CodeBuild
|
|
7027
7046
|
# ],
|
7028
7047
|
# ],
|
7029
7048
|
# build_type: "BUILD", # accepts BUILD, BUILD_BATCH, RUNNER_BUILDKITE_BUILD
|
7049
|
+
# pull_request_build_policy: {
|
7050
|
+
# requires_comment_approval: "DISABLED", # required, accepts DISABLED, ALL_PULL_REQUESTS, FORK_PULL_REQUESTS
|
7051
|
+
# 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
|
7052
|
+
# },
|
7030
7053
|
# })
|
7031
7054
|
#
|
7032
7055
|
# @example Response structure
|
@@ -7076,7 +7099,7 @@ module Aws::CodeBuild
|
|
7076
7099
|
tracer: tracer
|
7077
7100
|
)
|
7078
7101
|
context[:gem_name] = 'aws-sdk-codebuild'
|
7079
|
-
context[:gem_version] = '1.
|
7102
|
+
context[:gem_version] = '1.161.0'
|
7080
7103
|
Seahorse::Client::Request.new(handlers, context)
|
7081
7104
|
end
|
7082
7105
|
|
@@ -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"))
|
@@ -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
|
+
# Configuration policy that defines comment-based approval requirements
|
5516
|
+
# for triggering builds on pull requests. This policy helps control when
|
5517
|
+
# automated builds are executed based on contributor permissions and
|
5518
|
+
# 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
|
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
|
|