libZSservicesZSamazonka-codepipelineZSamazonka-codepipeline
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.CodePipeline.PutWebhook

Description

Defines a webhook and returns a unique webhook URL generated by CodePipeline. This URL can be supplied to third party source hosting providers to call every time there's a code change. When CodePipeline receives a POST request on this URL, the pipeline defined in the webhook is started as long as the POST request satisfied the authentication and filtering requirements supplied when defining the webhook. RegisterWebhookWithThirdParty and DeregisterWebhookWithThirdParty APIs can be used to automatically configure supported third parties to call the generated webhook URL.

Synopsis

Creating a Request

data PutWebhook Source #

See: newPutWebhook smart constructor.

Constructors

PutWebhook' 

Fields

  • tags :: Maybe [Tag]

    The tags for the webhook.

  • webhook :: WebhookDefinition

    The detail provided in an input file to create the webhook, such as the webhook name, the pipeline name, and the action name. Give the webhook a unique name that helps you identify it. You might name the webhook after the pipeline and action it targets so that you can easily recognize what it's used for later.

Instances

Instances details
Eq PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Read PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Show PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Generic PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Associated Types

type Rep PutWebhook :: Type -> Type #

NFData PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Methods

rnf :: PutWebhook -> () #

Hashable PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

ToJSON PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

AWSRequest PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Associated Types

type AWSResponse PutWebhook #

ToHeaders PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Methods

toHeaders :: PutWebhook -> [Header] #

ToPath PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

ToQuery PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

type Rep PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

type Rep PutWebhook = D1 ('MetaData "PutWebhook" "Amazonka.CodePipeline.PutWebhook" "libZSservicesZSamazonka-codepipelineZSamazonka-codepipeline" 'False) (C1 ('MetaCons "PutWebhook'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "webhook") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 WebhookDefinition)))
type AWSResponse PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

newPutWebhook Source #

Create a value of PutWebhook 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:tags:PutWebhook', putWebhook_tags - The tags for the webhook.

$sel:webhook:PutWebhook', putWebhook_webhook - The detail provided in an input file to create the webhook, such as the webhook name, the pipeline name, and the action name. Give the webhook a unique name that helps you identify it. You might name the webhook after the pipeline and action it targets so that you can easily recognize what it's used for later.

Request Lenses

putWebhook_tags :: Lens' PutWebhook (Maybe [Tag]) Source #

The tags for the webhook.

putWebhook_webhook :: Lens' PutWebhook WebhookDefinition Source #

The detail provided in an input file to create the webhook, such as the webhook name, the pipeline name, and the action name. Give the webhook a unique name that helps you identify it. You might name the webhook after the pipeline and action it targets so that you can easily recognize what it's used for later.

Destructuring the Response

data PutWebhookResponse Source #

See: newPutWebhookResponse smart constructor.

Constructors

PutWebhookResponse' 

Fields

Instances

Instances details
Eq PutWebhookResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Read PutWebhookResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Show PutWebhookResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Generic PutWebhookResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Associated Types

type Rep PutWebhookResponse :: Type -> Type #

NFData PutWebhookResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Methods

rnf :: PutWebhookResponse -> () #

type Rep PutWebhookResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

type Rep PutWebhookResponse = D1 ('MetaData "PutWebhookResponse" "Amazonka.CodePipeline.PutWebhook" "libZSservicesZSamazonka-codepipelineZSamazonka-codepipeline" 'False) (C1 ('MetaCons "PutWebhookResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "webhook") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ListWebhookItem)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPutWebhookResponse Source #

Create a value of PutWebhookResponse 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:webhook:PutWebhook', putWebhookResponse_webhook - The detail returned from creating the webhook, such as the webhook name, webhook URL, and webhook ARN.

$sel:httpStatus:PutWebhookResponse', putWebhookResponse_httpStatus - The response's http status code.

Response Lenses

putWebhookResponse_webhook :: Lens' PutWebhookResponse (Maybe ListWebhookItem) Source #

The detail returned from creating the webhook, such as the webhook name, webhook URL, and webhook ARN.