Paws::CodeBuild::UpdateWebhook - Arguments for method UpdateWebhook on Paws::CodeBuild
This class represents the parameters used for calling the method UpdateWebhook on the AWS CodeBuild service. Use the attributes of this class as arguments to method UpdateWebhook.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateWebhook.
my $codebuild = Paws->service('CodeBuild'); my $UpdateWebhookOutput = $codebuild->UpdateWebhook( 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 RotateSecret => 1, # OPTIONAL ); # Results: my $Webhook = $UpdateWebhookOutput->Webhook; # Returns a L<Paws::CodeBuild::UpdateWebhookOutput> 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/UpdateWebhook
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.
branchFilter
It is recommended that you use filterGroups instead of branchFilter.
filterGroups
Specifies the type of build this webhook will trigger.
Valid values are: "BUILD", "BUILD_BATCH"
"BUILD"
"BUILD_BATCH"
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.
WebhookFilter
EVENT
The name of the CodeBuild project.
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.
rotateSecret
This class forms part of Paws, documenting arguments for method UpdateWebhook in Paws::CodeBuild
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
To install Paws, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paws
CPAN shell
perl -MCPAN -e shell install Paws
For more information on module installation, please visit the detailed CPAN module installation guide.