libZSservicesZSamazonka-amplifyZSamazonka-amplify
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Amplify.CreateWebhook

Description

Creates a new webhook on an Amplify app.

Synopsis

Creating a Request

data CreateWebhook Source #

The request structure for the create webhook request.

See: newCreateWebhook smart constructor.

Constructors

CreateWebhook' 

Fields

Instances

Instances details
Eq CreateWebhook Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

Read CreateWebhook Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

Show CreateWebhook Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

Generic CreateWebhook Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

Associated Types

type Rep CreateWebhook :: Type -> Type #

NFData CreateWebhook Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

Methods

rnf :: CreateWebhook -> () #

Hashable CreateWebhook Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

ToJSON CreateWebhook Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

AWSRequest CreateWebhook Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

Associated Types

type AWSResponse CreateWebhook #

ToHeaders CreateWebhook Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

ToPath CreateWebhook Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

ToQuery CreateWebhook Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

type Rep CreateWebhook Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

type Rep CreateWebhook = D1 ('MetaData "CreateWebhook" "Amazonka.Amplify.CreateWebhook" "libZSservicesZSamazonka-amplifyZSamazonka-amplify" 'False) (C1 ('MetaCons "CreateWebhook'" 'PrefixI 'True) (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "appId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "branchName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateWebhook Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

newCreateWebhook Source #

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.

Constructors

CreateWebhookResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • webhook :: Webhook

    Describes a webhook that connects repository events to an Amplify app.

Instances

Instances details
Eq CreateWebhookResponse Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

Read CreateWebhookResponse Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

Show CreateWebhookResponse Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

Generic CreateWebhookResponse Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

Associated Types

type Rep CreateWebhookResponse :: Type -> Type #

NFData CreateWebhookResponse Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

Methods

rnf :: CreateWebhookResponse -> () #

type Rep CreateWebhookResponse Source # 
Instance details

Defined in Amazonka.Amplify.CreateWebhook

type Rep CreateWebhookResponse = D1 ('MetaData "CreateWebhookResponse" "Amazonka.Amplify.CreateWebhook" "libZSservicesZSamazonka-amplifyZSamazonka-amplify" 'False) (C1 ('MetaCons "CreateWebhookResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "webhook") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Webhook)))

newCreateWebhookResponse Source #

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_webhook :: Lens' CreateWebhookResponse Webhook Source #

Describes a webhook that connects repository events to an Amplify app.