blib/lib/Paws/CloudFront/LambdaFunctionAssociation.pm untested

filter: Statementstmt 0.0% 0 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 7 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::CloudFront::LambdaFunctionAssociation;
3 use Moose;
4 has EventType => (is => 'ro', isa => 'Str', required => 1);
5 has IncludeBody => (is => 'ro', isa => 'Bool');
6 has LambdaFunctionARN => (is => 'ro', isa => 'Str', required => 1);
7  
8 1;
9  
10 ### main pod documentation begin ###
11  
12 =head1 NAME
13  
14 Paws::CloudFront::LambdaFunctionAssociation
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::CloudFront::LambdaFunctionAssociation object:
26  
27 $service_obj->Method(Att1 => { EventType => $value, ..., LambdaFunctionARN => $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::CloudFront::LambdaFunctionAssociation object:
32  
33 $result = $service_obj->Method(...);
34 $result->Att1->EventType
35  
36 =head1 DESCRIPTION
37  
38 A complex type that contains a Lambda function association.
39  
40 =head1 ATTRIBUTES
41  
42  
43 =head2 B<REQUIRED> EventType => Str
44  
45 Specifies the event type that triggers a Lambda function invocation.
46 You can specify the following values:
47  
48 =over
49  
50 =item *
51  
52 C<viewer-request>: The function executes when CloudFront receives a
53 request from a viewer and before it checks to see whether the requested
54 object is in the edge cache.
55  
56 =item *
57  
58 C<origin-request>: The function executes only when CloudFront sends a
59 request to your origin. When the requested object is in the edge cache,
60 the function doesn't execute.
61  
62 =item *
63  
64 C<origin-response>: The function executes after CloudFront receives a
65 response from the origin and before it caches the object in the
66 response. When the requested object is in the edge cache, the function
67 doesn't execute.
68  
69 =item *
70  
71 C<viewer-response>: The function executes before CloudFront returns the
72 requested object to the viewer. The function executes regardless of
73 whether the object was already in the edge cache.
74  
75 If the origin returns an HTTP status code other than HTTP 200 (OK), the
76 function doesn't execute.
77  
78 =back
79  
80  
81  
82 =head2 IncludeBody => Bool
83  
84 A flag that allows a Lambda function to have read access to the body
85 content. For more information, see Accessing the Request Body by
86 Choosing the Include Body Option
87 (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html)
88 in the Amazon CloudFront Developer Guide.
89  
90  
91 =head2 B<REQUIRED> LambdaFunctionARN => Str
92  
93 The ARN of the Lambda function. You must specify the ARN of a function
94 version; you can't specify a Lambda alias or $LATEST.
95  
96  
97  
98 =head1 SEE ALSO
99  
100 This class forms part of L<Paws>, describing an object used in L<Paws::CloudFront>
101  
102 =head1 BUGS and CONTRIBUTIONS
103  
104 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
105  
106 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
107  
108 =cut
109