amazonka-codepipeline-2.0: Amazon CodePipeline SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.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

AWSRequest PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Associated Types

type AWSResponse PutWebhook #

Generic PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Associated Types

type Rep PutWebhook :: Type -> Type #

Read PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Show PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

NFData PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Methods

rnf :: PutWebhook -> () #

Eq PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Hashable PutWebhook Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

type AWSResponse 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" "amazonka-codepipeline-2.0-AHHPJTmnvhi1gPjRAFzjQE" '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)))

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:

PutWebhook, putWebhook_tags - The tags for the 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
Generic PutWebhookResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Associated Types

type Rep PutWebhookResponse :: Type -> Type #

Read PutWebhookResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Show PutWebhookResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

NFData PutWebhookResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

Methods

rnf :: PutWebhookResponse -> () #

Eq PutWebhookResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

type Rep PutWebhookResponse Source # 
Instance details

Defined in Amazonka.CodePipeline.PutWebhook

type Rep PutWebhookResponse = D1 ('MetaData "PutWebhookResponse" "Amazonka.CodePipeline.PutWebhook" "amazonka-codepipeline-2.0-AHHPJTmnvhi1gPjRAFzjQE" '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:

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.