| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Amplify.CreateWebhook
Description
Creates a new webhook on an Amplify app.
Synopsis
- data CreateWebhook = CreateWebhook' {
- description :: Maybe Text
- appId :: Text
- branchName :: Text
- newCreateWebhook :: Text -> Text -> CreateWebhook
- createWebhook_description :: Lens' CreateWebhook (Maybe Text)
- createWebhook_appId :: Lens' CreateWebhook Text
- createWebhook_branchName :: Lens' CreateWebhook Text
- data CreateWebhookResponse = CreateWebhookResponse' {
- httpStatus :: Int
- webhook :: Webhook
- newCreateWebhookResponse :: Int -> Webhook -> CreateWebhookResponse
- createWebhookResponse_httpStatus :: Lens' CreateWebhookResponse Int
- createWebhookResponse_webhook :: Lens' CreateWebhookResponse Webhook
Creating a Request
data CreateWebhook Source #
The request structure for the create webhook request.
See: newCreateWebhook smart constructor.
Constructors
| CreateWebhook' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> CreateWebhook |
Create a value of CreateWebhook with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateWebhook, createWebhook_description - The description for a webhook.
CreateWebhook, createWebhook_appId - The unique ID for an Amplify app.
CreateWebhook, createWebhook_branchName - The name for a branch that is part of an Amplify app.
Request Lenses
createWebhook_description :: Lens' CreateWebhook (Maybe Text) Source #
The description for a webhook.
createWebhook_appId :: Lens' CreateWebhook Text Source #
The unique ID for an Amplify app.
createWebhook_branchName :: Lens' CreateWebhook Text Source #
The name for a branch that is part of an Amplify app.
Destructuring the Response
data CreateWebhookResponse Source #
The result structure for the create webhook request.
See: newCreateWebhookResponse smart constructor.
Constructors
| CreateWebhookResponse' | |
Fields
| |
Instances
newCreateWebhookResponse Source #
Arguments
| :: Int | |
| -> Webhook | |
| -> CreateWebhookResponse |
Create a value of CreateWebhookResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:CreateWebhookResponse', createWebhookResponse_httpStatus - The response's http status code.
$sel:webhook:CreateWebhookResponse', createWebhookResponse_webhook - Describes a webhook that connects repository events to an Amplify app.
Response Lenses
createWebhookResponse_httpStatus :: Lens' CreateWebhookResponse Int Source #
The response's http status code.
createWebhookResponse_webhook :: Lens' CreateWebhookResponse Webhook Source #
Describes a webhook that connects repository events to an Amplify app.