NAME
Paws::CodeBuild::CreateWebhook - Arguments for method CreateWebhook on Paws::CodeBuild
DESCRIPTION
This class represents the parameters used for calling the method CreateWebhook on the AWS CodeBuild service. Use the attributes of this class as arguments to method CreateWebhook.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateWebhook.
SYNOPSIS
my $codebuild = Paws->service('CodeBuild');
my $CreateWebhookOutput = $codebuild->CreateWebhook(
ProjectName => 'MyProjectName',
BranchFilter => 'MyString', # OPTIONAL
BuildType => 'BUILD', # OPTIONAL
FilterGroups => [
[
{
Pattern => 'MyString',
Type => 'EVENT'
, # values: EVENT, BASE_REF, HEAD_REF, ACTOR_ACCOUNT_ID, FILE_PATH, COMMIT_MESSAGE
ExcludeMatchedPattern => 1, # OPTIONAL
},
...
],
...
], # OPTIONAL
);
# Results:
my $Webhook = $CreateWebhookOutput->Webhook;
# Returns a L<Paws::CodeBuild::CreateWebhookOutput> object.
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/codebuild/CreateWebhook
ATTRIBUTES
BranchFilter => Str
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
.
BuildType => Str
Specifies the type of build this webhook will trigger.
Valid values are: "BUILD"
, "BUILD_BATCH"
FilterGroups => ArrayRef[ArrayRef[Paws::CodeBuild::WebhookFilter]]
An array of arrays of WebhookFilter
objects used to determine which webhooks are triggered. At least one WebhookFilter
in the array must specify EVENT
as its type
.
For a build to be triggered, at least one filter group in the filterGroups
array must pass. For a filter group to pass, each of its filters must pass.
REQUIRED ProjectName => Str
The name of the CodeBuild project.
SEE ALSO
This class forms part of Paws, documenting arguments for method CreateWebhook in Paws::CodeBuild
BUGS and CONTRIBUTIONS
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues