Copyright | (c) 2013-2021 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 |
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.
CreateWebhook' | |
|
Instances
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:
$sel:description:CreateWebhook'
, createWebhook_description
- The description for a webhook.
$sel:appId:CreateWebhook'
, createWebhook_appId
- The unique ID for an Amplify app.
$sel:branchName: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.
CreateWebhookResponse' | |
|
Instances
newCreateWebhookResponse Source #
:: 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.