amazonka-codebuild-1.5.0: Amazon CodeBuild SDK.

Copyright(c) 2013-2017 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:

data CreateWebhook Source #

See: createWebhook smart constructor.

Instances

Eq CreateWebhook Source # 
Data CreateWebhook Source # 

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 # 
Show CreateWebhook Source # 
Generic CreateWebhook Source # 

Associated Types

type Rep CreateWebhook :: * -> * #

Hashable CreateWebhook Source # 
ToJSON CreateWebhook Source # 
NFData CreateWebhook Source # 

Methods

rnf :: CreateWebhook -> () #

AWSRequest CreateWebhook Source # 
ToQuery CreateWebhook Source # 
ToPath CreateWebhook Source # 
ToHeaders CreateWebhook Source # 
type Rep CreateWebhook Source # 
type Rep CreateWebhook = D1 (MetaData "CreateWebhook" "Network.AWS.CodeBuild.CreateWebhook" "amazonka-codebuild-1.5.0-2ek6cqv6qBXE0cPl3ApURV" True) (C1 (MetaCons "CreateWebhook'" PrefixI True) (S1 (MetaSel (Just Symbol "_cwProjectName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs CreateWebhook Source # 

Request Lenses

cwProjectName :: Lens' CreateWebhook Text Source #

The name of the build 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 # 
Data CreateWebhookResponse Source # 

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 # 
Show CreateWebhookResponse Source # 
Generic CreateWebhookResponse Source # 
NFData CreateWebhookResponse Source # 

Methods

rnf :: CreateWebhookResponse -> () #

type Rep CreateWebhookResponse Source # 
type Rep CreateWebhookResponse = D1 (MetaData "CreateWebhookResponse" "Network.AWS.CodeBuild.CreateWebhook" "amazonka-codebuild-1.5.0-2ek6cqv6qBXE0cPl3ApURV" False) (C1 (MetaCons "CreateWebhookResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cwrsWebhook") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Webhook))) (S1 (MetaSel (Just Symbol "_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.