AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Webhook

import "github.com/aws/aws-sdk-go/service/codebuild"

type Webhook struct { BranchFilter *string `locationName:"branchFilter" type:"string"` FilterGroups [][]*WebhookFilter `locationName:"filterGroups" type:"list"` LastModifiedSecret *time.Time `locationName:"lastModifiedSecret" type:"timestamp"` PayloadUrl *string `locationName:"payloadUrl" min:"1" type:"string"` Secret *string `locationName:"secret" min:"1" type:"string"` Url *string `locationName:"url" min:"1" type:"string"` }

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

BranchFilter

Type: *string

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.

FilterGroups

A filter used to determine which webhooks trigger a build.

LastModifiedSecret

Type: *time.Time

A timestamp that indicates the last time a repository's secret token was modified.

PayloadUrl

Type: *string

The AWS CodeBuild endpoint where webhook events are sent.

Secret

Type: *string

The secret token of the associated repository.

A Bitbucket webhook does not support secret.

Url

Type: *string

The URL to the webhook.

Method

GoString

func (s Webhook) GoString() string

GoString returns the string representation

SetBranchFilter

func (s *Webhook) SetBranchFilter(v string) *Webhook

SetBranchFilter sets the BranchFilter field's value.

SetFilterGroups

func (s *Webhook) SetFilterGroups(v [][]*WebhookFilter) *Webhook

SetFilterGroups sets the FilterGroups field's value.

SetLastModifiedSecret

func (s *Webhook) SetLastModifiedSecret(v time.Time) *Webhook

SetLastModifiedSecret sets the LastModifiedSecret field's value.

SetPayloadUrl

func (s *Webhook) SetPayloadUrl(v string) *Webhook

SetPayloadUrl sets the PayloadUrl field's value.

SetSecret

func (s *Webhook) SetSecret(v string) *Webhook

SetSecret sets the Secret field's value.

SetUrl

func (s *Webhook) SetUrl(v string) *Webhook

SetUrl sets the Url field's value.

String

func (s Webhook) String() string

String returns the string representation

On this page: