amazonka-codepipeline-1.6.0: Amazon CodePipeline SDK.

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

Network.AWS.CodePipeline.PutWebhook

Contents

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

putWebhook Source #

Creates a value of PutWebhook with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • pwWebhook - 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 which identifies the webhook being defined. You may choose to name the webhook after the pipeline and action it targets so that you can easily recognize what it's used for later.

data PutWebhook Source #

See: putWebhook smart constructor.

Instances

Eq PutWebhook Source # 
Data PutWebhook Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutWebhook -> c PutWebhook #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutWebhook #

toConstr :: PutWebhook -> Constr #

dataTypeOf :: PutWebhook -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PutWebhook) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutWebhook) #

gmapT :: (forall b. Data b => b -> b) -> PutWebhook -> PutWebhook #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutWebhook -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutWebhook -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutWebhook -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutWebhook -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutWebhook -> m PutWebhook #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutWebhook -> m PutWebhook #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutWebhook -> m PutWebhook #

Read PutWebhook Source # 
Show PutWebhook Source # 
Generic PutWebhook Source # 

Associated Types

type Rep PutWebhook :: * -> * #

Hashable PutWebhook Source # 
ToJSON PutWebhook Source # 
NFData PutWebhook Source # 

Methods

rnf :: PutWebhook -> () #

AWSRequest PutWebhook Source # 
ToHeaders PutWebhook Source # 

Methods

toHeaders :: PutWebhook -> [Header] #

ToPath PutWebhook Source # 
ToQuery PutWebhook Source # 
type Rep PutWebhook Source # 
type Rep PutWebhook = D1 * (MetaData "PutWebhook" "Network.AWS.CodePipeline.PutWebhook" "amazonka-codepipeline-1.6.0-EK1TXgMpZBH3zXFbRFQIXQ" True) (C1 * (MetaCons "PutWebhook'" PrefixI True) (S1 * (MetaSel (Just Symbol "_pwWebhook") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * WebhookDefinition)))
type Rs PutWebhook Source # 

Request Lenses

pwWebhook :: 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 which identifies the webhook being defined. You may choose to 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

putWebhookResponse Source #

Creates a value of PutWebhookResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • pwrsWebhook - The detail returned from creating the webhook, such as the webhook name, webhook URL, and webhook ARN.
  • pwrsResponseStatus - -- | The response status code.

data PutWebhookResponse Source #

See: putWebhookResponse smart constructor.

Instances

Eq PutWebhookResponse Source # 
Data PutWebhookResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutWebhookResponse -> c PutWebhookResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutWebhookResponse #

toConstr :: PutWebhookResponse -> Constr #

dataTypeOf :: PutWebhookResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PutWebhookResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutWebhookResponse) #

gmapT :: (forall b. Data b => b -> b) -> PutWebhookResponse -> PutWebhookResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutWebhookResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutWebhookResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutWebhookResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutWebhookResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutWebhookResponse -> m PutWebhookResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutWebhookResponse -> m PutWebhookResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutWebhookResponse -> m PutWebhookResponse #

Read PutWebhookResponse Source # 
Show PutWebhookResponse Source # 
Generic PutWebhookResponse Source # 
NFData PutWebhookResponse Source # 

Methods

rnf :: PutWebhookResponse -> () #

type Rep PutWebhookResponse Source # 
type Rep PutWebhookResponse = D1 * (MetaData "PutWebhookResponse" "Network.AWS.CodePipeline.PutWebhook" "amazonka-codepipeline-1.6.0-EK1TXgMpZBH3zXFbRFQIXQ" False) (C1 * (MetaCons "PutWebhookResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_pwrsWebhook") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ListWebhookItem))) (S1 * (MetaSel (Just Symbol "_pwrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

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

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

pwrsResponseStatus :: Lens' PutWebhookResponse Int Source #

  • - | The response status code.