blib/lib/Paws/ApiGatewayV2/Cors.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::ApiGatewayV2::Cors;
3 use Moose;
4 has AllowCredentials => (is => 'ro', isa => 'Bool', request_name => 'allowCredentials', traits => ['NameInRequest']);
5 has AllowHeaders => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'allowHeaders', traits => ['NameInRequest']);
6 has AllowMethods => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'allowMethods', traits => ['NameInRequest']);
7 has AllowOrigins => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'allowOrigins', traits => ['NameInRequest']);
8 has ExposeHeaders => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'exposeHeaders', traits => ['NameInRequest']);
9 has MaxAge => (is => 'ro', isa => 'Int', request_name => 'maxAge', traits => ['NameInRequest']);
10  
11 1;
12  
13 ### main pod documentation begin ###
14  
15 =head1 NAME
16  
17 Paws::ApiGatewayV2::Cors
18  
19 =head1 USAGE
20  
21 This class represents one of two things:
22  
23 =head3 Arguments in a call to a service
24  
25 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
26 Each attribute should be used as a named argument in the calls that expect this type of object.
27  
28 As an example, if Att1 is expected to be a Paws::ApiGatewayV2::Cors object:
29  
30 $service_obj->Method(Att1 => { AllowCredentials => $value, ..., MaxAge => $value });
31  
32 =head3 Results returned from an API call
33  
34 Use accessors for each attribute. If Att1 is expected to be an Paws::ApiGatewayV2::Cors object:
35  
36 $result = $service_obj->Method(...);
37 $result->Att1->AllowCredentials
38  
39 =head1 DESCRIPTION
40  
41 Represents a CORS configuration. Supported only for HTTP APIs. See
42 Configuring CORS
43 (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-cors.html)
44 for more information.
45  
46 =head1 ATTRIBUTES
47  
48  
49 =head2 AllowCredentials => Bool
50  
51 Specifies whether credentials are included in the CORS request.
52 Supported only for HTTP APIs.
53  
54  
55 =head2 AllowHeaders => ArrayRef[Str|Undef]
56  
57 Represents a collection of allowed headers. Supported only for HTTP
58 APIs.
59  
60  
61 =head2 AllowMethods => ArrayRef[Str|Undef]
62  
63 Represents a collection of allowed HTTP methods. Supported only for
64 HTTP APIs.
65  
66  
67 =head2 AllowOrigins => ArrayRef[Str|Undef]
68  
69 Represents a collection of allowed origins. Supported only for HTTP
70 APIs.
71  
72  
73 =head2 ExposeHeaders => ArrayRef[Str|Undef]
74  
75 Represents a collection of exposed headers. Supported only for HTTP
76 APIs.
77  
78  
79 =head2 MaxAge => Int
80  
81 The number of seconds that the browser should cache preflight request
82 results. Supported only for HTTP APIs.
83  
84  
85  
86 =head1 SEE ALSO
87  
88 This class forms part of L<Paws>, describing an object used in L<Paws::ApiGatewayV2>
89  
90 =head1 BUGS and CONTRIBUTIONS
91  
92 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
93  
94 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
95  
96 =cut
97