Skip to content

Commit a66b85b

Browse files
author
awstools
committed
feat(client-codebuild): AWS CodeBuild now supports manually creating GitHub webhooks
1 parent e90775f commit a66b85b

File tree

8 files changed

+50
-6
lines changed

8 files changed

+50
-6
lines changed

clients/client-codebuild/src/commands/BatchGetProjectsCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ export interface BatchGetProjectsCommandOutput extends BatchGetProjectsOutput, _
178178
* // ],
179179
* // ],
180180
* // buildType: "BUILD" || "BUILD_BATCH",
181+
* // manualCreation: true || false,
181182
* // lastModifiedSecret: new Date("TIMESTAMP"),
182183
* // },
183184
* // vpcConfig: { // VpcConfig

clients/client-codebuild/src/commands/CreateProjectCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ export interface CreateProjectCommandOutput extends CreateProjectOutput, __Metad
335335
* // ],
336336
* // ],
337337
* // buildType: "BUILD" || "BUILD_BATCH",
338+
* // manualCreation: true || false,
338339
* // lastModifiedSecret: new Date("TIMESTAMP"),
339340
* // },
340341
* // vpcConfig: { // VpcConfig

clients/client-codebuild/src/commands/CreateWebhookCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export interface CreateWebhookCommandOutput extends CreateWebhookOutput, __Metad
5757
* ],
5858
* ],
5959
* buildType: "BUILD" || "BUILD_BATCH",
60+
* manualCreation: true || false,
6061
* };
6162
* const command = new CreateWebhookCommand(input);
6263
* const response = await client.send(command);
@@ -76,6 +77,7 @@ export interface CreateWebhookCommandOutput extends CreateWebhookOutput, __Metad
7677
* // ],
7778
* // ],
7879
* // buildType: "BUILD" || "BUILD_BATCH",
80+
* // manualCreation: true || false,
7981
* // lastModifiedSecret: new Date("TIMESTAMP"),
8082
* // },
8183
* // };

clients/client-codebuild/src/commands/UpdateProjectCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ export interface UpdateProjectCommandOutput extends UpdateProjectOutput, __Metad
335335
* // ],
336336
* // ],
337337
* // buildType: "BUILD" || "BUILD_BATCH",
338+
* // manualCreation: true || false,
338339
* // lastModifiedSecret: new Date("TIMESTAMP"),
339340
* // },
340341
* // vpcConfig: { // VpcConfig

clients/client-codebuild/src/commands/UpdateWebhookCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export interface UpdateWebhookCommandOutput extends UpdateWebhookOutput, __Metad
7171
* // ],
7272
* // ],
7373
* // buildType: "BUILD" || "BUILD_BATCH",
74+
* // manualCreation: true || false,
7475
* // lastModifiedSecret: new Date("TIMESTAMP"),
7576
* // },
7677
* // };

clients/client-codebuild/src/models/models_0.ts

+28-3
Original file line numberDiff line numberDiff line change
@@ -3116,7 +3116,8 @@ export interface Fleet {
31163116
vpcConfig?: VpcConfig;
31173117

31183118
/**
3119-
* <p>The service role associated with the compute fleet.</p>
3119+
* <p>The service role associated with the compute fleet. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html">
3120+
* Allow a user to add a permission policy for a fleet service role</a> in the <i>CodeBuild User Guide</i>.</p>
31203121
* @public
31213122
*/
31223123
fleetServiceRole?: string;
@@ -3712,6 +3713,17 @@ export interface Webhook {
37123713
*/
37133714
buildType?: WebhookBuildType;
37143715

3716+
/**
3717+
* <p>If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns <code>payloadUrl</code> and
3718+
* <code>secret</code> values for the webhook. The <code>payloadUrl</code> and <code>secret</code> values in the output can
3719+
* be used to manually create a webhook within GitHub.</p>
3720+
* <note>
3721+
* <p>manualCreation is only available for GitHub webhooks.</p>
3722+
* </note>
3723+
* @public
3724+
*/
3725+
manualCreation?: boolean;
3726+
37153727
/**
37163728
* <p>A timestamp that indicates the last time a repository's secret token was modified.
37173729
* </p>
@@ -4652,7 +4664,8 @@ export interface CreateFleetInput {
46524664
vpcConfig?: VpcConfig;
46534665

46544666
/**
4655-
* <p>The service role associated with the compute fleet.</p>
4667+
* <p>The service role associated with the compute fleet. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html">
4668+
* Allow a user to add a permission policy for a fleet service role</a> in the <i>CodeBuild User Guide</i>.</p>
46564669
* @public
46574670
*/
46584671
fleetServiceRole?: string;
@@ -4991,6 +5004,17 @@ export interface CreateWebhookInput {
49915004
* @public
49925005
*/
49935006
buildType?: WebhookBuildType;
5007+
5008+
/**
5009+
* <p>If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns <code>payloadUrl</code> and
5010+
* <code>secret</code> values for the webhook. The <code>payloadUrl</code> and <code>secret</code> values in the output can be
5011+
* used to manually create a webhook within GitHub.</p>
5012+
* <note>
5013+
* <p>manualCreation is only available for GitHub webhooks.</p>
5014+
* </note>
5015+
* @public
5016+
*/
5017+
manualCreation?: boolean;
49945018
}
49955019

49965020
/**
@@ -7822,7 +7846,8 @@ export interface UpdateFleetInput {
78227846
vpcConfig?: VpcConfig;
78237847

78247848
/**
7825-
* <p>The service role associated with the compute fleet.</p>
7849+
* <p>The service role associated with the compute fleet. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html">
7850+
* Allow a user to add a permission policy for a fleet service role</a> in the <i>CodeBuild User Guide</i>.</p>
78267851
* @public
78277852
*/
78287853
fleetServiceRole?: string;

clients/client-codebuild/src/protocols/Aws_json1_1.ts

+1
Original file line numberDiff line numberDiff line change
@@ -3158,6 +3158,7 @@ const de_Webhook = (output: any, context: __SerdeContext): Webhook => {
31583158
buildType: __expectString,
31593159
filterGroups: _json,
31603160
lastModifiedSecret: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3161+
manualCreation: __expectBoolean,
31613162
payloadUrl: __expectString,
31623163
secret: __expectString,
31633164
url: __expectString,

codegen/sdk-codegen/aws-models/codebuild.json

+15-3
Original file line numberDiff line numberDiff line change
@@ -2899,7 +2899,7 @@
28992899
"fleetServiceRole": {
29002900
"target": "com.amazonaws.codebuild#NonEmptyString",
29012901
"traits": {
2902-
"smithy.api#documentation": "<p>The service role associated with the compute fleet.</p>"
2902+
"smithy.api#documentation": "<p>The service role associated with the compute fleet. For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html\">\n Allow a user to add a permission policy for a fleet service role</a> in the <i>CodeBuild User Guide</i>.</p>"
29032903
}
29042904
},
29052905
"tags": {
@@ -3228,6 +3228,12 @@
32283228
"traits": {
32293229
"smithy.api#documentation": "<p>Specifies the type of build this webhook will trigger.</p>"
32303230
}
3231+
},
3232+
"manualCreation": {
3233+
"target": "com.amazonaws.codebuild#WrapperBoolean",
3234+
"traits": {
3235+
"smithy.api#documentation": "<p>If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns <code>payloadUrl</code> and \n <code>secret</code> values for the webhook. The <code>payloadUrl</code> and <code>secret</code> values in the output can be \n used to manually create a webhook within GitHub.</p>\n <note>\n <p>manualCreation is only available for GitHub webhooks.</p>\n </note>"
3236+
}
32313237
}
32323238
},
32333239
"traits": {
@@ -4118,7 +4124,7 @@
41184124
"fleetServiceRole": {
41194125
"target": "com.amazonaws.codebuild#NonEmptyString",
41204126
"traits": {
4121-
"smithy.api#documentation": "<p>The service role associated with the compute fleet.</p>"
4127+
"smithy.api#documentation": "<p>The service role associated with the compute fleet. For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html\">\n Allow a user to add a permission policy for a fleet service role</a> in the <i>CodeBuild User Guide</i>.</p>"
41224128
}
41234129
},
41244130
"tags": {
@@ -8487,7 +8493,7 @@
84878493
"fleetServiceRole": {
84888494
"target": "com.amazonaws.codebuild#NonEmptyString",
84898495
"traits": {
8490-
"smithy.api#documentation": "<p>The service role associated with the compute fleet.</p>"
8496+
"smithy.api#documentation": "<p>The service role associated with the compute fleet. For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html\">\n Allow a user to add a permission policy for a fleet service role</a> in the <i>CodeBuild User Guide</i>.</p>"
84918497
}
84928498
},
84938499
"tags": {
@@ -8964,6 +8970,12 @@
89648970
"smithy.api#documentation": "<p>Specifies the type of build this webhook will trigger.</p>"
89658971
}
89668972
},
8973+
"manualCreation": {
8974+
"target": "com.amazonaws.codebuild#WrapperBoolean",
8975+
"traits": {
8976+
"smithy.api#documentation": "<p>If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns <code>payloadUrl</code> and \n <code>secret</code> values for the webhook. The <code>payloadUrl</code> and <code>secret</code> values in the output can \n be used to manually create a webhook within GitHub.</p>\n <note>\n <p>manualCreation is only available for GitHub webhooks.</p>\n </note>"
8977+
}
8978+
},
89678979
"lastModifiedSecret": {
89688980
"target": "com.amazonaws.codebuild#Timestamp",
89698981
"traits": {

0 commit comments

Comments
 (0)