Skip to content

Commit

Permalink
feat(client-codebuild): AWS CodeBuild now supports manually creating …
Browse files Browse the repository at this point in the history
…GitHub webhooks
  • Loading branch information
awstools committed May 29, 2024
1 parent e90775f commit a66b85b
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export interface BatchGetProjectsCommandOutput extends BatchGetProjectsOutput, _
* // ],
* // ],
* // buildType: "BUILD" || "BUILD_BATCH",
* // manualCreation: true || false,
* // lastModifiedSecret: new Date("TIMESTAMP"),
* // },
* // vpcConfig: { // VpcConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ export interface CreateProjectCommandOutput extends CreateProjectOutput, __Metad
* // ],
* // ],
* // buildType: "BUILD" || "BUILD_BATCH",
* // manualCreation: true || false,
* // lastModifiedSecret: new Date("TIMESTAMP"),
* // },
* // vpcConfig: { // VpcConfig
Expand Down
2 changes: 2 additions & 0 deletions clients/client-codebuild/src/commands/CreateWebhookCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export interface CreateWebhookCommandOutput extends CreateWebhookOutput, __Metad
* ],
* ],
* buildType: "BUILD" || "BUILD_BATCH",
* manualCreation: true || false,
* };
* const command = new CreateWebhookCommand(input);
* const response = await client.send(command);
Expand All @@ -76,6 +77,7 @@ export interface CreateWebhookCommandOutput extends CreateWebhookOutput, __Metad
* // ],
* // ],
* // buildType: "BUILD" || "BUILD_BATCH",
* // manualCreation: true || false,
* // lastModifiedSecret: new Date("TIMESTAMP"),
* // },
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ export interface UpdateProjectCommandOutput extends UpdateProjectOutput, __Metad
* // ],
* // ],
* // buildType: "BUILD" || "BUILD_BATCH",
* // manualCreation: true || false,
* // lastModifiedSecret: new Date("TIMESTAMP"),
* // },
* // vpcConfig: { // VpcConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export interface UpdateWebhookCommandOutput extends UpdateWebhookOutput, __Metad
* // ],
* // ],
* // buildType: "BUILD" || "BUILD_BATCH",
* // manualCreation: true || false,
* // lastModifiedSecret: new Date("TIMESTAMP"),
* // },
* // };
Expand Down
31 changes: 28 additions & 3 deletions clients/client-codebuild/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3116,7 +3116,8 @@ export interface Fleet {
vpcConfig?: VpcConfig;

/**
* <p>The service role associated with the compute fleet.</p>
* <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">
* Allow a user to add a permission policy for a fleet service role</a> in the <i>CodeBuild User Guide</i>.</p>
* @public
*/
fleetServiceRole?: string;
Expand Down Expand Up @@ -3712,6 +3713,17 @@ export interface Webhook {
*/
buildType?: WebhookBuildType;

/**
* <p>If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns <code>payloadUrl</code> and
* <code>secret</code> values for the webhook. The <code>payloadUrl</code> and <code>secret</code> values in the output can
* be used to manually create a webhook within GitHub.</p>
* <note>
* <p>manualCreation is only available for GitHub webhooks.</p>
* </note>
* @public
*/
manualCreation?: boolean;

/**
* <p>A timestamp that indicates the last time a repository's secret token was modified.
* </p>
Expand Down Expand Up @@ -4652,7 +4664,8 @@ export interface CreateFleetInput {
vpcConfig?: VpcConfig;

/**
* <p>The service role associated with the compute fleet.</p>
* <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">
* Allow a user to add a permission policy for a fleet service role</a> in the <i>CodeBuild User Guide</i>.</p>
* @public
*/
fleetServiceRole?: string;
Expand Down Expand Up @@ -4991,6 +5004,17 @@ export interface CreateWebhookInput {
* @public
*/
buildType?: WebhookBuildType;

/**
* <p>If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns <code>payloadUrl</code> and
* <code>secret</code> values for the webhook. The <code>payloadUrl</code> and <code>secret</code> values in the output can be
* used to manually create a webhook within GitHub.</p>
* <note>
* <p>manualCreation is only available for GitHub webhooks.</p>
* </note>
* @public
*/
manualCreation?: boolean;
}

/**
Expand Down Expand Up @@ -7822,7 +7846,8 @@ export interface UpdateFleetInput {
vpcConfig?: VpcConfig;

/**
* <p>The service role associated with the compute fleet.</p>
* <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">
* Allow a user to add a permission policy for a fleet service role</a> in the <i>CodeBuild User Guide</i>.</p>
* @public
*/
fleetServiceRole?: string;
Expand Down
1 change: 1 addition & 0 deletions clients/client-codebuild/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3158,6 +3158,7 @@ const de_Webhook = (output: any, context: __SerdeContext): Webhook => {
buildType: __expectString,
filterGroups: _json,
lastModifiedSecret: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
manualCreation: __expectBoolean,
payloadUrl: __expectString,
secret: __expectString,
url: __expectString,
Expand Down
18 changes: 15 additions & 3 deletions codegen/sdk-codegen/aws-models/codebuild.json
Original file line number Diff line number Diff line change
Expand Up @@ -2899,7 +2899,7 @@
"fleetServiceRole": {
"target": "com.amazonaws.codebuild#NonEmptyString",
"traits": {
"smithy.api#documentation": "<p>The service role associated with the compute fleet.</p>"
"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>"
}
},
"tags": {
Expand Down Expand Up @@ -3228,6 +3228,12 @@
"traits": {
"smithy.api#documentation": "<p>Specifies the type of build this webhook will trigger.</p>"
}
},
"manualCreation": {
"target": "com.amazonaws.codebuild#WrapperBoolean",
"traits": {
"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>"
}
}
},
"traits": {
Expand Down Expand Up @@ -4118,7 +4124,7 @@
"fleetServiceRole": {
"target": "com.amazonaws.codebuild#NonEmptyString",
"traits": {
"smithy.api#documentation": "<p>The service role associated with the compute fleet.</p>"
"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>"
}
},
"tags": {
Expand Down Expand Up @@ -8487,7 +8493,7 @@
"fleetServiceRole": {
"target": "com.amazonaws.codebuild#NonEmptyString",
"traits": {
"smithy.api#documentation": "<p>The service role associated with the compute fleet.</p>"
"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>"
}
},
"tags": {
Expand Down Expand Up @@ -8964,6 +8970,12 @@
"smithy.api#documentation": "<p>Specifies the type of build this webhook will trigger.</p>"
}
},
"manualCreation": {
"target": "com.amazonaws.codebuild#WrapperBoolean",
"traits": {
"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>"
}
},
"lastModifiedSecret": {
"target": "com.amazonaws.codebuild#Timestamp",
"traits": {
Expand Down

0 comments on commit a66b85b

Please sign in to comment.