blib/lib/Paws/MediaStore/CorsRule.pm untested

filter: Statementstmt 0.0% 0 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 9 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::MediaStore::CorsRule;
3 use Moose;
4 has AllowedHeaders => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1);
5 has AllowedMethods => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
6 has AllowedOrigins => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1);
7 has ExposeHeaders => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
8 has MaxAgeSeconds => (is => 'ro', isa => 'Int');
9  
10 1;
11  
12 ### main pod documentation begin ###
13  
14 =head1 NAME
15  
16 Paws::MediaStore::CorsRule
17  
18 =head1 USAGE
19  
20 This class represents one of two things:
21  
22 =head3 Arguments in a call to a service
23  
24 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
25 Each attribute should be used as a named argument in the calls that expect this type of object.
26  
27 As an example, if Att1 is expected to be a Paws::MediaStore::CorsRule object:
28  
29 $service_obj->Method(Att1 => { AllowedHeaders => $value, ..., MaxAgeSeconds => $value });
30  
31 =head3 Results returned from an API call
32  
33 Use accessors for each attribute. If Att1 is expected to be an Paws::MediaStore::CorsRule object:
34  
35 $result = $service_obj->Method(...);
36 $result->Att1->AllowedHeaders
37  
38 =head1 DESCRIPTION
39  
40 A rule for a CORS policy. You can add up to 100 rules to a CORS policy.
41 If more than one rule applies, the service uses the first applicable
42 rule listed.
43  
44 =head1 ATTRIBUTES
45  
46  
47 =head2 B<REQUIRED> AllowedHeaders => ArrayRef[Str|Undef]
48  
49 Specifies which headers are allowed in a preflight C<OPTIONS> request
50 through the C<Access-Control-Request-Headers> header. Each header name
51 that is specified in C<Access-Control-Request-Headers> must have a
52 corresponding entry in the rule. Only the headers that were requested
53 are sent back.
54  
55 This element can contain only one wildcard character (*).
56  
57  
58 =head2 AllowedMethods => ArrayRef[Str|Undef]
59  
60 Identifies an HTTP method that the origin that is specified in the rule
61 is allowed to execute.
62  
63 Each CORS rule must contain at least one C<AllowedMethods> and one
64 C<AllowedOrigins> element.
65  
66  
67 =head2 B<REQUIRED> AllowedOrigins => ArrayRef[Str|Undef]
68  
69 One or more response headers that you want users to be able to access
70 from their applications (for example, from a JavaScript
71 C<XMLHttpRequest> object).
72  
73 Each CORS rule must have at least one C<AllowedOrigins> element. The
74 string value can include only one wildcard character (*), for example,
75 http://*.example.com. Additionally, you can specify only one wildcard
76 character to allow cross-origin access for all origins.
77  
78  
79 =head2 ExposeHeaders => ArrayRef[Str|Undef]
80  
81 One or more headers in the response that you want users to be able to
82 access from their applications (for example, from a JavaScript
83 C<XMLHttpRequest> object).
84  
85 This element is optional for each rule.
86  
87  
88 =head2 MaxAgeSeconds => Int
89  
90 The time in seconds that your browser caches the preflight response for
91 the specified resource.
92  
93 A CORS rule can have only one C<MaxAgeSeconds> element.
94  
95  
96  
97 =head1 SEE ALSO
98  
99 This class forms part of L<Paws>, describing an object used in L<Paws::MediaStore>
100  
101 =head1 BUGS and CONTRIBUTIONS
102  
103 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
104  
105 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
106  
107 =cut
108