amazonka-codebuild-1.6.0: Amazon CodeBuild 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.CodeBuild.UpdateWebhook

Contents

Description

Updates the webhook associated with an AWS CodeBuild build project.

Synopsis

Creating a Request

updateWebhook Source #

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

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

  • uwBranchFilter - A regular expression used to determine which branches in a repository are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If it doesn't match, then it is not. If branchFilter is empty, then all branches are built.
  • uwRotateSecret - A boolean value that specifies whether the associated repository's secret token should be updated.
  • uwProjectName - The name of the AWS CodeBuild project.

data UpdateWebhook Source #

See: updateWebhook smart constructor.

Instances

Eq UpdateWebhook Source # 
Data UpdateWebhook Source # 

Methods

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

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

toConstr :: UpdateWebhook -> Constr #

dataTypeOf :: UpdateWebhook -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateWebhook Source # 
Show UpdateWebhook Source # 
Generic UpdateWebhook Source # 

Associated Types

type Rep UpdateWebhook :: * -> * #

Hashable UpdateWebhook Source # 
ToJSON UpdateWebhook Source # 
NFData UpdateWebhook Source # 

Methods

rnf :: UpdateWebhook -> () #

AWSRequest UpdateWebhook Source # 
ToHeaders UpdateWebhook Source # 
ToPath UpdateWebhook Source # 
ToQuery UpdateWebhook Source # 
type Rep UpdateWebhook Source # 
type Rep UpdateWebhook = D1 * (MetaData "UpdateWebhook" "Network.AWS.CodeBuild.UpdateWebhook" "amazonka-codebuild-1.6.0-3VlWGhdhReJGNFnMlVFSyp" False) (C1 * (MetaCons "UpdateWebhook'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_uwBranchFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_uwRotateSecret") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_uwProjectName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs UpdateWebhook Source # 

Request Lenses

uwBranchFilter :: Lens' UpdateWebhook (Maybe Text) Source #

A regular expression used to determine which branches in a repository are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If it doesn't match, then it is not. If branchFilter is empty, then all branches are built.

uwRotateSecret :: Lens' UpdateWebhook (Maybe Bool) Source #

A boolean value that specifies whether the associated repository's secret token should be updated.

uwProjectName :: Lens' UpdateWebhook Text Source #

The name of the AWS CodeBuild project.

Destructuring the Response

updateWebhookResponse Source #

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

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

  • uwrsWebhook - Information about a repository's webhook that is associated with a project in AWS CodeBuild.
  • uwrsResponseStatus - -- | The response status code.

data UpdateWebhookResponse Source #

See: updateWebhookResponse smart constructor.

Instances

Eq UpdateWebhookResponse Source # 
Data UpdateWebhookResponse Source # 

Methods

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

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

toConstr :: UpdateWebhookResponse -> Constr #

dataTypeOf :: UpdateWebhookResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateWebhookResponse Source # 
Show UpdateWebhookResponse Source # 
Generic UpdateWebhookResponse Source # 
NFData UpdateWebhookResponse Source # 

Methods

rnf :: UpdateWebhookResponse -> () #

type Rep UpdateWebhookResponse Source # 
type Rep UpdateWebhookResponse = D1 * (MetaData "UpdateWebhookResponse" "Network.AWS.CodeBuild.UpdateWebhook" "amazonka-codebuild-1.6.0-3VlWGhdhReJGNFnMlVFSyp" False) (C1 * (MetaCons "UpdateWebhookResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_uwrsWebhook") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Webhook))) (S1 * (MetaSel (Just Symbol "_uwrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

uwrsWebhook :: Lens' UpdateWebhookResponse (Maybe Webhook) Source #

Information about a repository's webhook that is associated with a project in AWS CodeBuild.

uwrsResponseStatus :: Lens' UpdateWebhookResponse Int Source #

  • - | The response status code.