amazonka-codebuild-1.6.1: 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.CreateWebhook

Contents

Description

For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, enables AWS CodeBuild to begin automatically rebuilding the source code every time a code change is pushed to the repository.

Important: If you enable webhooks for an AWS CodeBuild project, and the project is used as a build step in AWS CodePipeline, then two identical builds will be created for each commit. One build is triggered through webhooks, and one through AWS CodePipeline. Because billing is on a per-build basis, you will be billed for both builds. Therefore, if you are using AWS CodePipeline, we recommend that you disable webhooks in CodeBuild. In the AWS CodeBuild console, clear the Webhook box. For more information, see step 9 in Change a Build Project's Settings .

Synopsis

Creating a Request

createWebhook Source #

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

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

  • cwBranchFilter - 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.
  • cwProjectName - The name of the AWS CodeBuild project.

data CreateWebhook Source #

See: createWebhook smart constructor.

Instances
Eq CreateWebhook Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

Data CreateWebhook Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

Methods

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

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

toConstr :: CreateWebhook -> Constr #

dataTypeOf :: CreateWebhook -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateWebhook Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

Show CreateWebhook Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

Generic CreateWebhook Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

Associated Types

type Rep CreateWebhook :: Type -> Type #

Hashable CreateWebhook Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

ToJSON CreateWebhook Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

AWSRequest CreateWebhook Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

Associated Types

type Rs CreateWebhook :: Type #

ToHeaders CreateWebhook Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

ToPath CreateWebhook Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

ToQuery CreateWebhook Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

NFData CreateWebhook Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

Methods

rnf :: CreateWebhook -> () #

type Rep CreateWebhook Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

type Rep CreateWebhook = D1 (MetaData "CreateWebhook" "Network.AWS.CodeBuild.CreateWebhook" "amazonka-codebuild-1.6.1-CHtoXrKmhWY3Wp1eAVtcUH" False) (C1 (MetaCons "CreateWebhook'" PrefixI True) (S1 (MetaSel (Just "_cwBranchFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cwProjectName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs CreateWebhook Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

Request Lenses

cwBranchFilter :: Lens' CreateWebhook (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.

cwProjectName :: Lens' CreateWebhook Text Source #

The name of the AWS CodeBuild project.

Destructuring the Response

createWebhookResponse Source #

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

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

  • cwrsWebhook - Information about a webhook in GitHub that connects repository events to a build project in AWS CodeBuild.
  • cwrsResponseStatus - -- | The response status code.

data CreateWebhookResponse Source #

See: createWebhookResponse smart constructor.

Instances
Eq CreateWebhookResponse Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

Data CreateWebhookResponse Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

Methods

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

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

toConstr :: CreateWebhookResponse -> Constr #

dataTypeOf :: CreateWebhookResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateWebhookResponse Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

Show CreateWebhookResponse Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

Generic CreateWebhookResponse Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

Associated Types

type Rep CreateWebhookResponse :: Type -> Type #

NFData CreateWebhookResponse Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

Methods

rnf :: CreateWebhookResponse -> () #

type Rep CreateWebhookResponse Source # 
Instance details

Defined in Network.AWS.CodeBuild.CreateWebhook

type Rep CreateWebhookResponse = D1 (MetaData "CreateWebhookResponse" "Network.AWS.CodeBuild.CreateWebhook" "amazonka-codebuild-1.6.1-CHtoXrKmhWY3Wp1eAVtcUH" False) (C1 (MetaCons "CreateWebhookResponse'" PrefixI True) (S1 (MetaSel (Just "_cwrsWebhook") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Webhook)) :*: S1 (MetaSel (Just "_cwrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

cwrsWebhook :: Lens' CreateWebhookResponse (Maybe Webhook) Source #

Information about a webhook in GitHub that connects repository events to a build project in AWS CodeBuild.

cwrsResponseStatus :: Lens' CreateWebhookResponse Int Source #

  • - | The response status code.