| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::CodeBuild::Webhook; | ||
| 3 | use Moose; | ||
| 4 | has BranchFilter => (is => 'ro', isa => 'Str', request_name => 'branchFilter', traits => ['NameInRequest']); | ||
| 5 | has BuildType => (is => 'ro', isa => 'Str', request_name => 'buildType', traits => ['NameInRequest']); | ||
| 6 | has FilterGroups => (is => 'ro', isa => 'ArrayRef[ArrayRef[Paws::CodeBuild::WebhookFilter]]', request_name => 'filterGroups', traits => ['NameInRequest']); | ||
| 7 | has LastModifiedSecret => (is => 'ro', isa => 'Str', request_name => 'lastModifiedSecret', traits => ['NameInRequest']); | ||
| 8 | has PayloadUrl => (is => 'ro', isa => 'Str', request_name => 'payloadUrl', traits => ['NameInRequest']); | ||
| 9 | has Secret => (is => 'ro', isa => 'Str', request_name => 'secret', traits => ['NameInRequest']); | ||
| 10 | has Url => (is => 'ro', isa => 'Str', request_name => 'url', traits => ['NameInRequest']); | ||
| 11 | |||
| 12 | 1; | ||
| 13 | |||
| 14 | ### main pod documentation begin ### | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | Paws::CodeBuild::Webhook | ||
| 19 | |||
| 20 | =head1 USAGE | ||
| 21 | |||
| 22 | This class represents one of two things: | ||
| 23 | |||
| 24 | =head3 Arguments in a call to a service | ||
| 25 | |||
| 26 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 27 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 28 | |||
| 29 | As an example, if Att1 is expected to be a Paws::CodeBuild::Webhook object: | ||
| 30 | |||
| 31 | $service_obj->Method(Att1 => { BranchFilter => $value, ..., Url => $value }); | ||
| 32 | |||
| 33 | =head3 Results returned from an API call | ||
| 34 | |||
| 35 | Use accessors for each attribute. If Att1 is expected to be an Paws::CodeBuild::Webhook object: | ||
| 36 | |||
| 37 | $result = $service_obj->Method(...); | ||
| 38 | $result->Att1->BranchFilter | ||
| 39 | |||
| 40 | =head1 DESCRIPTION | ||
| 41 | |||
| 42 | Information about a webhook that connects repository events to a build | ||
| 43 | project in CodeBuild. | ||
| 44 | |||
| 45 | =head1 ATTRIBUTES | ||
| 46 | |||
| 47 | |||
| 48 | =head2 BranchFilter => Str | ||
| 49 | |||
| 50 | A regular expression used to determine which repository branches are | ||
| 51 | built when a webhook is triggered. If the name of a branch matches the | ||
| 52 | regular expression, then it is built. If C<branchFilter> is empty, then | ||
| 53 | all branches are built. | ||
| 54 | |||
| 55 | It is recommended that you use C<filterGroups> instead of | ||
| 56 | C<branchFilter>. | ||
| 57 | |||
| 58 | |||
| 59 | =head2 BuildType => Str | ||
| 60 | |||
| 61 | Specifies the type of build this webhook will trigger. | ||
| 62 | |||
| 63 | |||
| 64 | =head2 FilterGroups => ArrayRef[L<ArrayRef[Paws::CodeBuild::WebhookFilter]>] | ||
| 65 | |||
| 66 | An array of arrays of C<WebhookFilter> objects used to determine which | ||
| 67 | webhooks are triggered. At least one C<WebhookFilter> in the array must | ||
| 68 | specify C<EVENT> as its C<type>. | ||
| 69 | |||
| 70 | For a build to be triggered, at least one filter group in the | ||
| 71 | C<filterGroups> array must pass. For a filter group to pass, each of | ||
| 72 | its filters must pass. | ||
| 73 | |||
| 74 | |||
| 75 | =head2 LastModifiedSecret => Str | ||
| 76 | |||
| 77 | A timestamp that indicates the last time a repository's secret token | ||
| 78 | was modified. | ||
| 79 | |||
| 80 | |||
| 81 | =head2 PayloadUrl => Str | ||
| 82 | |||
| 83 | The CodeBuild endpoint where webhook events are sent. | ||
| 84 | |||
| 85 | |||
| 86 | =head2 Secret => Str | ||
| 87 | |||
| 88 | The secret token of the associated repository. | ||
| 89 | |||
| 90 | A Bitbucket webhook does not support C<secret>. | ||
| 91 | |||
| 92 | |||
| 93 | =head2 Url => Str | ||
| 94 | |||
| 95 | The URL to the webhook. | ||
| 96 | |||
| 97 | |||
| 98 | |||
| 99 | =head1 SEE ALSO | ||
| 100 | |||
| 101 | This class forms part of L<Paws>, describing an object used in L<Paws::CodeBuild> | ||
| 102 | |||
| 103 | =head1 BUGS and CONTRIBUTIONS | ||
| 104 | |||
| 105 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 106 | |||
| 107 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 108 | |||
| 109 | =cut | ||
| 110 |