Copyright | (c) 2013-2018 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 |
Updates the webhook associated with an AWS CodeBuild build project.
- updateWebhook :: Text -> UpdateWebhook
- data UpdateWebhook
- uwBranchFilter :: Lens' UpdateWebhook (Maybe Text)
- uwRotateSecret :: Lens' UpdateWebhook (Maybe Bool)
- uwProjectName :: Lens' UpdateWebhook Text
- updateWebhookResponse :: Int -> UpdateWebhookResponse
- data UpdateWebhookResponse
- uwrsWebhook :: Lens' UpdateWebhookResponse (Maybe Webhook)
- uwrsResponseStatus :: Lens' UpdateWebhookResponse Int
Creating a Request
Creates a value of UpdateWebhook
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uwBranchFilter
- A regular expression used to determine which branches in a repository are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If it doesn't match, then it is not. If branchFilter is empty, then all branches are built.uwRotateSecret
- A boolean value that specifies whether the associated repository's secret token should be updated.uwProjectName
- The name of the AWS CodeBuild project.
data UpdateWebhook Source #
See: updateWebhook
smart constructor.
Request Lenses
uwBranchFilter :: Lens' UpdateWebhook (Maybe Text) Source #
A regular expression used to determine which branches in a repository are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If it doesn't match, then it is not. If branchFilter is empty, then all branches are built.
uwRotateSecret :: Lens' UpdateWebhook (Maybe Bool) Source #
A boolean value that specifies whether the associated repository's secret token should be updated.
uwProjectName :: Lens' UpdateWebhook Text Source #
The name of the AWS CodeBuild project.
Destructuring the Response
updateWebhookResponse Source #
Creates a value of UpdateWebhookResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uwrsWebhook
- Information about a repository's webhook that is associated with a project in AWS CodeBuild.uwrsResponseStatus
- -- | The response status code.
data UpdateWebhookResponse Source #
See: updateWebhookResponse
smart constructor.
Response Lenses
uwrsWebhook :: Lens' UpdateWebhookResponse (Maybe Webhook) Source #
Information about a repository's webhook that is associated with a project in AWS CodeBuild.
uwrsResponseStatus :: Lens' UpdateWebhookResponse Int Source #
- - | The response status code.