Copyright | (c) 2013-2017 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, enables AWS CodeBuild to begin automatically rebuilding the source code every time a code change is pushed to the repository.
Important: If you enable webhooks for an AWS CodeBuild project, and the project is used as a build step in AWS CodePipeline, then two identical builds will be created for each commit. One build is triggered through webhooks, and one through AWS CodePipeline. Because billing is on a per-build basis, you will be billed for both builds. Therefore, if you are using AWS CodePipeline, we recommend that you disable webhooks in CodeBuild. In the AWS CodeBuild console, clear the Webhook box. For more information, see step 9 in Change a Build Project’s Settings .
Creating a Request
Creates a value of CreateWebhook
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cwProjectName
- The name of the build project.
data CreateWebhook Source #
See: createWebhook
smart constructor.
Request Lenses
cwProjectName :: Lens' CreateWebhook Text Source #
The name of the build project.
Destructuring the Response
createWebhookResponse Source #
Creates a value of CreateWebhookResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cwrsWebhook
- Information about a webhook in GitHub that connects repository events to a build project in AWS CodeBuild.cwrsResponseStatus
- -- | The response status code.
data CreateWebhookResponse Source #
See: createWebhookResponse
smart constructor.
Response Lenses
cwrsWebhook :: Lens' CreateWebhookResponse (Maybe Webhook) Source #
Information about a webhook in GitHub that connects repository events to a build project in AWS CodeBuild.
cwrsResponseStatus :: Lens' CreateWebhookResponse Int Source #
- - | The response status code.