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

Amazonka.CodeBuild.UpdateWebhook

Description

Updates the webhook associated with an CodeBuild build project.

If you use Bitbucket for your repository, rotateSecret is ignored.

Synopsis

Creating a Request

data UpdateWebhook Source #

See: newUpdateWebhook smart constructor.

Constructors

UpdateWebhook' 

Fields

  • branchFilter :: Maybe Text

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

    It is recommended that you use filterGroups instead of branchFilter.

  • rotateSecret :: Maybe Bool

    A boolean value that specifies whether the associated GitHub repository's secret token should be updated. If you use Bitbucket for your repository, rotateSecret is ignored.

  • filterGroups :: Maybe [[WebhookFilter]]

    An array of arrays of WebhookFilter objects used to determine if a webhook event can trigger a build. A filter group must contain at least one EVENT WebhookFilter.

  • buildType :: Maybe WebhookBuildType

    Specifies the type of build this webhook will trigger.

  • projectName :: Text

    The name of the CodeBuild project.

Instances

Instances details
Eq UpdateWebhook Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

Read UpdateWebhook Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

Show UpdateWebhook Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

Generic UpdateWebhook Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

Associated Types

type Rep UpdateWebhook :: Type -> Type #

NFData UpdateWebhook Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

Methods

rnf :: UpdateWebhook -> () #

Hashable UpdateWebhook Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

ToJSON UpdateWebhook Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

AWSRequest UpdateWebhook Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

Associated Types

type AWSResponse UpdateWebhook #

ToHeaders UpdateWebhook Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

ToPath UpdateWebhook Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

ToQuery UpdateWebhook Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

type Rep UpdateWebhook Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

type Rep UpdateWebhook = D1 ('MetaData "UpdateWebhook" "Amazonka.CodeBuild.UpdateWebhook" "libZSservicesZSamazonka-codebuildZSamazonka-codebuild" 'False) (C1 ('MetaCons "UpdateWebhook'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "branchFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "rotateSecret") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "filterGroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [[WebhookFilter]])) :*: (S1 ('MetaSel ('Just "buildType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe WebhookBuildType)) :*: S1 ('MetaSel ('Just "projectName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse UpdateWebhook Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

newUpdateWebhook Source #

Create a value of UpdateWebhook 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:

$sel:branchFilter:UpdateWebhook', updateWebhook_branchFilter - A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If branchFilter is empty, then all branches are built.

It is recommended that you use filterGroups instead of branchFilter.

$sel:rotateSecret:UpdateWebhook', updateWebhook_rotateSecret - A boolean value that specifies whether the associated GitHub repository's secret token should be updated. If you use Bitbucket for your repository, rotateSecret is ignored.

$sel:filterGroups:UpdateWebhook', updateWebhook_filterGroups - An array of arrays of WebhookFilter objects used to determine if a webhook event can trigger a build. A filter group must contain at least one EVENT WebhookFilter.

$sel:buildType:UpdateWebhook', updateWebhook_buildType - Specifies the type of build this webhook will trigger.

$sel:projectName:UpdateWebhook', updateWebhook_projectName - The name of the CodeBuild project.

Request Lenses

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

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

It is recommended that you use filterGroups instead of branchFilter.

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

A boolean value that specifies whether the associated GitHub repository's secret token should be updated. If you use Bitbucket for your repository, rotateSecret is ignored.

updateWebhook_filterGroups :: Lens' UpdateWebhook (Maybe [[WebhookFilter]]) Source #

An array of arrays of WebhookFilter objects used to determine if a webhook event can trigger a build. A filter group must contain at least one EVENT WebhookFilter.

updateWebhook_buildType :: Lens' UpdateWebhook (Maybe WebhookBuildType) Source #

Specifies the type of build this webhook will trigger.

updateWebhook_projectName :: Lens' UpdateWebhook Text Source #

The name of the CodeBuild project.

Destructuring the Response

data UpdateWebhookResponse Source #

See: newUpdateWebhookResponse smart constructor.

Constructors

UpdateWebhookResponse' 

Fields

  • webhook :: Maybe Webhook

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq UpdateWebhookResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

Read UpdateWebhookResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

Show UpdateWebhookResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

Generic UpdateWebhookResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

Associated Types

type Rep UpdateWebhookResponse :: Type -> Type #

NFData UpdateWebhookResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

Methods

rnf :: UpdateWebhookResponse -> () #

type Rep UpdateWebhookResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.UpdateWebhook

type Rep UpdateWebhookResponse = D1 ('MetaData "UpdateWebhookResponse" "Amazonka.CodeBuild.UpdateWebhook" "libZSservicesZSamazonka-codebuildZSamazonka-codebuild" 'False) (C1 ('MetaCons "UpdateWebhookResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "webhook") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Webhook)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateWebhookResponse Source #

Create a value of UpdateWebhookResponse 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:

$sel:webhook:UpdateWebhookResponse', updateWebhookResponse_webhook - Information about a repository's webhook that is associated with a project in CodeBuild.

$sel:httpStatus:UpdateWebhookResponse', updateWebhookResponse_httpStatus - The response's http status code.

Response Lenses

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

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