File Coverage

blib/lib/Paws/CodeCommit/RepositoryTrigger.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::CodeCommit::RepositoryTrigger;
2 1     1   421 use Moose;
  1         3  
  1         8  
3             has Branches => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'branches', traits => ['NameInRequest']);
4             has CustomData => (is => 'ro', isa => 'Str', request_name => 'customData', traits => ['NameInRequest']);
5             has DestinationArn => (is => 'ro', isa => 'Str', request_name => 'destinationArn', traits => ['NameInRequest'], required => 1);
6             has Events => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'events', traits => ['NameInRequest'], required => 1);
7             has Name => (is => 'ro', isa => 'Str', request_name => 'name', traits => ['NameInRequest'], required => 1);
8             1;
9              
10             ### main pod documentation begin ###
11              
12             =head1 NAME
13              
14             Paws::CodeCommit::RepositoryTrigger
15              
16             =head1 USAGE
17              
18             This class represents one of two things:
19              
20             =head3 Arguments in a call to a service
21              
22             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
23             Each attribute should be used as a named argument in the calls that expect this type of object.
24              
25             As an example, if Att1 is expected to be a Paws::CodeCommit::RepositoryTrigger object:
26              
27             $service_obj->Method(Att1 => { Branches => $value, ..., Name => $value });
28              
29             =head3 Results returned from an API call
30              
31             Use accessors for each attribute. If Att1 is expected to be an Paws::CodeCommit::RepositoryTrigger object:
32              
33             $result = $service_obj->Method(...);
34             $result->Att1->Branches
35              
36             =head1 DESCRIPTION
37              
38             Information about a trigger for a repository.
39              
40             =head1 ATTRIBUTES
41              
42              
43             =head2 Branches => ArrayRef[Str|Undef]
44              
45             The branches that will be included in the trigger configuration. If no
46             branches are specified, the trigger will apply to all branches.
47              
48              
49             =head2 CustomData => Str
50              
51             Any custom data associated with the trigger that will be included in
52             the information sent to the target of the trigger.
53              
54              
55             =head2 B<REQUIRED> DestinationArn => Str
56              
57             The ARN of the resource that is the target for a trigger. For example,
58             the ARN of a topic in Amazon Simple Notification Service (SNS).
59              
60              
61             =head2 B<REQUIRED> Events => ArrayRef[Str|Undef]
62              
63             The repository events that will cause the trigger to run actions in
64             another service, such as sending a notification through Amazon Simple
65             Notification Service (SNS).
66              
67             The valid value "all" cannot be used with any other values.
68              
69              
70             =head2 B<REQUIRED> Name => Str
71              
72             The name of the trigger.
73              
74              
75              
76             =head1 SEE ALSO
77              
78             This class forms part of L<Paws>, describing an object used in L<Paws::CodeCommit>
79              
80             =head1 BUGS and CONTRIBUTIONS
81              
82             The source code is located here: https://github.com/pplu/aws-sdk-perl
83              
84             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
85              
86             =cut
87