Skip to content

Commit

Permalink
feat(client-codebuild): Add webhook status and status message to AWS …
Browse files Browse the repository at this point in the history
…CodeBuild webhooks
  • Loading branch information
awstools committed Feb 20, 2025
1 parent d1d6a42 commit a5e8b89
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ export interface BatchGetProjectsCommandOutput extends BatchGetProjectsOutput, _
* // domain: "STRING_VALUE",
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL" || "GITLAB_GROUP", // required
* // },
* // status: "CREATING" || "CREATE_FAILED" || "ACTIVE" || "DELETING",
* // statusMessage: "STRING_VALUE",
* // },
* // vpcConfig: { // VpcConfig
* // vpcId: "STRING_VALUE",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-codebuild/src/commands/CreateProjectCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ export interface CreateProjectCommandOutput extends CreateProjectOutput, __Metad
* // domain: "STRING_VALUE",
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL" || "GITLAB_GROUP", // required
* // },
* // status: "CREATING" || "CREATE_FAILED" || "ACTIVE" || "DELETING",
* // statusMessage: "STRING_VALUE",
* // },
* // vpcConfig: { // VpcConfig
* // vpcId: "STRING_VALUE",
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 @@ -90,6 +90,8 @@ export interface CreateWebhookCommandOutput extends CreateWebhookOutput, __Metad
* // domain: "STRING_VALUE",
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL" || "GITLAB_GROUP", // required
* // },
* // status: "CREATING" || "CREATE_FAILED" || "ACTIVE" || "DELETING",
* // statusMessage: "STRING_VALUE",
* // },
* // };
*
Expand Down
2 changes: 2 additions & 0 deletions clients/client-codebuild/src/commands/UpdateProjectCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ export interface UpdateProjectCommandOutput extends UpdateProjectOutput, __Metad
* // domain: "STRING_VALUE",
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL" || "GITLAB_GROUP", // required
* // },
* // status: "CREATING" || "CREATE_FAILED" || "ACTIVE" || "DELETING",
* // statusMessage: "STRING_VALUE",
* // },
* // vpcConfig: { // VpcConfig
* // vpcId: "STRING_VALUE",
Expand Down
2 changes: 2 additions & 0 deletions clients/client-codebuild/src/commands/UpdateWebhookCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ export interface UpdateWebhookCommandOutput extends UpdateWebhookOutput, __Metad
* // domain: "STRING_VALUE",
* // scope: "GITHUB_ORGANIZATION" || "GITHUB_GLOBAL" || "GITLAB_GROUP", // required
* // },
* // status: "CREATING" || "CREATE_FAILED" || "ACTIVE" || "DELETING",
* // statusMessage: "STRING_VALUE",
* // },
* // };
*
Expand Down
46 changes: 46 additions & 0 deletions clients/client-codebuild/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3989,6 +3989,22 @@ export interface ScopeConfiguration {
scope: WebhookScopeType | undefined;
}

/**
* @public
* @enum
*/
export const WebhookStatus = {
ACTIVE: "ACTIVE",
CREATE_FAILED: "CREATE_FAILED",
CREATING: "CREATING",
DELETING: "DELETING",
} as const;

/**
* @public
*/
export type WebhookStatus = (typeof WebhookStatus)[keyof typeof WebhookStatus];

/**
* <p>Information about a webhook that connects repository events to a build project in
* CodeBuild.</p>
Expand Down Expand Up @@ -4077,6 +4093,36 @@ export interface Webhook {
* @public
*/
scopeConfiguration?: ScopeConfiguration | undefined;

/**
* <p>The status of the webhook. Valid values include:</p>
* <ul>
* <li>
* <p>
* <code>CREATING</code>: The webhook is being created.</p>
* </li>
* <li>
* <p>
* <code>CREATE_FAILED</code>: The webhook has failed to create.</p>
* </li>
* <li>
* <p>
* <code>ACTIVE</code>: The webhook has succeeded and is active.</p>
* </li>
* <li>
* <p>
* <code>DELETING</code>: The webhook is being deleted.</p>
* </li>
* </ul>
* @public
*/
status?: WebhookStatus | undefined;

/**
* <p>A message associated with the status of a webhook.</p>
* @public
*/
statusMessage?: string | undefined;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions clients/client-codebuild/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3208,6 +3208,8 @@ const de_Webhook = (output: any, context: __SerdeContext): Webhook => {
payloadUrl: __expectString,
scopeConfiguration: _json,
secret: __expectString,
status: __expectString,
statusMessage: __expectString,
url: __expectString,
}) as any;
};
Expand Down
41 changes: 41 additions & 0 deletions codegen/sdk-codegen/aws-models/codebuild.json
Original file line number Diff line number Diff line change
Expand Up @@ -9401,6 +9401,18 @@
"traits": {
"smithy.api#documentation": "<p>The scope configuration for global or organization webhooks.</p>\n <note>\n <p>Global or organization webhooks are only available for GitHub and Github Enterprise webhooks.</p>\n </note>"
}
},
"status": {
"target": "com.amazonaws.codebuild#WebhookStatus",
"traits": {
"smithy.api#documentation": "<p>The status of the webhook. Valid values include:</p>\n <ul>\n <li>\n <p>\n <code>CREATING</code>: The webhook is being created.</p>\n </li>\n <li>\n <p>\n <code>CREATE_FAILED</code>: The webhook has failed to create.</p>\n </li>\n <li>\n <p>\n <code>ACTIVE</code>: The webhook has succeeded and is active.</p>\n </li>\n <li>\n <p>\n <code>DELETING</code>: The webhook is being deleted.</p>\n </li>\n </ul>"
}
},
"statusMessage": {
"target": "com.amazonaws.codebuild#String",
"traits": {
"smithy.api#documentation": "<p>A message associated with the status of a webhook.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -9546,6 +9558,35 @@
}
}
},
"com.amazonaws.codebuild#WebhookStatus": {
"type": "enum",
"members": {
"CREATING": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "CREATING"
}
},
"CREATE_FAILED": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "CREATE_FAILED"
}
},
"ACTIVE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "ACTIVE"
}
},
"DELETING": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "DELETING"
}
}
}
},
"com.amazonaws.codebuild#WrapperBoolean": {
"type": "boolean"
},
Expand Down

0 comments on commit a5e8b89

Please sign in to comment.