blib/lib/Paws/CodeBuild/CreateWebhook.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CodeBuild::CreateWebhook;
3 use Moose;
4 has BranchFilter => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'branchFilter' );
5 has BuildType => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'buildType' );
6 has FilterGroups => (is => 'ro', isa => 'ArrayRef[ArrayRef[Paws::CodeBuild::WebhookFilter]]', traits => ['NameInRequest'], request_name => 'filterGroups' );
7 has ProjectName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'projectName' , required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateWebhook');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CodeBuild::CreateWebhookOutput');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::CodeBuild::CreateWebhook - Arguments for method CreateWebhook on L<Paws::CodeBuild>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method CreateWebhook on the
25 L<AWS CodeBuild|Paws::CodeBuild> service. Use the attributes of this class
26 as arguments to method CreateWebhook.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateWebhook.
29  
30 =head1 SYNOPSIS
31  
32 my $codebuild = Paws->service('CodeBuild');
33 my $CreateWebhookOutput = $codebuild->CreateWebhook(
34 ProjectName => 'MyProjectName',
35 BranchFilter => 'MyString', # OPTIONAL
36 BuildType => 'BUILD', # OPTIONAL
37 FilterGroups => [
38 [
39 {
40 Pattern => 'MyString',
41 Type => 'EVENT'
42 , # values: EVENT, BASE_REF, HEAD_REF, ACTOR_ACCOUNT_ID, FILE_PATH, COMMIT_MESSAGE
43 ExcludeMatchedPattern => 1, # OPTIONAL
44 },
45 ...
46 ],
47 ...
48 ], # OPTIONAL
49 );
50  
51 # Results:
52 my $Webhook = $CreateWebhookOutput->Webhook;
53  
54 # Returns a L<Paws::CodeBuild::CreateWebhookOutput> object.
55  
56 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.
57 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/codebuild/CreateWebhook>
58  
59 =head1 ATTRIBUTES
60  
61  
62 =head2 BranchFilter => Str
63  
64 A regular expression used to determine which repository branches are
65 built when a webhook is triggered. If the name of a branch matches the
66 regular expression, then it is built. If C<branchFilter> is empty, then
67 all branches are built.
68  
69 It is recommended that you use C<filterGroups> instead of
70 C<branchFilter>.
71  
72  
73  
74 =head2 BuildType => Str
75  
76 Specifies the type of build this webhook will trigger.
77  
78 Valid values are: C<"BUILD">, C<"BUILD_BATCH">
79  
80 =head2 FilterGroups => ArrayRef[L<ArrayRef[Paws::CodeBuild::WebhookFilter]>]
81  
82 An array of arrays of C<WebhookFilter> objects used to determine which
83 webhooks are triggered. At least one C<WebhookFilter> in the array must
84 specify C<EVENT> as its C<type>.
85  
86 For a build to be triggered, at least one filter group in the
87 C<filterGroups> array must pass. For a filter group to pass, each of
88 its filters must pass.
89  
90  
91  
92 =head2 B<REQUIRED> ProjectName => Str
93  
94 The name of the CodeBuild project.
95  
96  
97  
98  
99 =head1 SEE ALSO
100  
101 This class forms part of L<Paws>, documenting arguments for method CreateWebhook 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