blib/lib/Paws/ELBv2/RuleCondition.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 12 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::ELBv2::RuleCondition;
3 use Moose;
4 has Field => (is => 'ro', isa => 'Str');
5 has HostHeaderConfig => (is => 'ro', isa => 'Paws::ELBv2::HostHeaderConditionConfig');
6 has HttpHeaderConfig => (is => 'ro', isa => 'Paws::ELBv2::HttpHeaderConditionConfig');
7 has HttpRequestMethodConfig => (is => 'ro', isa => 'Paws::ELBv2::HttpRequestMethodConditionConfig');
8 has PathPatternConfig => (is => 'ro', isa => 'Paws::ELBv2::PathPatternConditionConfig');
9 has QueryStringConfig => (is => 'ro', isa => 'Paws::ELBv2::QueryStringConditionConfig');
10 has SourceIpConfig => (is => 'ro', isa => 'Paws::ELBv2::SourceIpConditionConfig');
11 has Values => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
12  
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::ELBv2::RuleCondition
20  
21 =head1 USAGE
22  
23 This class represents one of two things:
24  
25 =head3 Arguments in a call to a service
26  
27 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
28 Each attribute should be used as a named argument in the calls that expect this type of object.
29  
30 As an example, if Att1 is expected to be a Paws::ELBv2::RuleCondition object:
31  
32 $service_obj->Method(Att1 => { Field => $value, ..., Values => $value });
33  
34 =head3 Results returned from an API call
35  
36 Use accessors for each attribute. If Att1 is expected to be an Paws::ELBv2::RuleCondition object:
37  
38 $result = $service_obj->Method(...);
39 $result->Att1->Field
40  
41 =head1 DESCRIPTION
42  
43 Information about a condition for a rule.
44  
45 Each rule can optionally include up to one of each of the following
46 conditions: C<http-request-method>, C<host-header>, C<path-pattern>,
47 and C<source-ip>. Each rule can also optionally include one or more of
48 each of the following conditions: C<http-header> and C<query-string>.
49  
50 =head1 ATTRIBUTES
51  
52  
53 =head2 Field => Str
54  
55 The field in the HTTP request. The following are the possible values:
56  
57 =over
58  
59 =item *
60  
61 C<http-header>
62  
63 =item *
64  
65 C<http-request-method>
66  
67 =item *
68  
69 C<host-header>
70  
71 =item *
72  
73 C<path-pattern>
74  
75 =item *
76  
77 C<query-string>
78  
79 =item *
80  
81 C<source-ip>
82  
83 =back
84  
85  
86  
87 =head2 HostHeaderConfig => L<Paws::ELBv2::HostHeaderConditionConfig>
88  
89 Information for a host header condition. Specify only when C<Field> is
90 C<host-header>.
91  
92  
93 =head2 HttpHeaderConfig => L<Paws::ELBv2::HttpHeaderConditionConfig>
94  
95 Information for an HTTP header condition. Specify only when C<Field> is
96 C<http-header>.
97  
98  
99 =head2 HttpRequestMethodConfig => L<Paws::ELBv2::HttpRequestMethodConditionConfig>
100  
101 Information for an HTTP method condition. Specify only when C<Field> is
102 C<http-request-method>.
103  
104  
105 =head2 PathPatternConfig => L<Paws::ELBv2::PathPatternConditionConfig>
106  
107 Information for a path pattern condition. Specify only when C<Field> is
108 C<path-pattern>.
109  
110  
111 =head2 QueryStringConfig => L<Paws::ELBv2::QueryStringConditionConfig>
112  
113 Information for a query string condition. Specify only when C<Field> is
114 C<query-string>.
115  
116  
117 =head2 SourceIpConfig => L<Paws::ELBv2::SourceIpConditionConfig>
118  
119 Information for a source IP condition. Specify only when C<Field> is
120 C<source-ip>.
121  
122  
123 =head2 Values => ArrayRef[Str|Undef]
124  
125 The condition value. Specify only when C<Field> is C<host-header> or
126 C<path-pattern>. Alternatively, to specify multiple host names or
127 multiple path patterns, use C<HostHeaderConfig> or
128 C<PathPatternConfig>.
129  
130 If C<Field> is C<host-header> and you are not using
131 C<HostHeaderConfig>, you can specify a single host name (for example,
132 my.example.com) in C<Values>. A host name is case insensitive, can be
133 up to 128 characters in length, and can contain any of the following
134 characters.
135  
136 =over
137  
138 =item *
139  
140 A-Z, a-z, 0-9
141  
142 =item *
143  
144 - .
145  
146 =item *
147  
148 * (matches 0 or more characters)
149  
150 =item *
151  
152 ? (matches exactly 1 character)
153  
154 =back
155  
156 If C<Field> is C<path-pattern> and you are not using
157 C<PathPatternConfig>, you can specify a single path pattern (for
158 example, /img/*) in C<Values>. A path pattern is case-sensitive, can be
159 up to 128 characters in length, and can contain any of the following
160 characters.
161  
162 =over
163  
164 =item *
165  
166 A-Z, a-z, 0-9
167  
168 =item *
169  
170 _ - . $ / ~ " ' @ : +
171  
172 =item *
173  
174 & (using &)
175  
176 =item *
177  
178 * (matches 0 or more characters)
179  
180 =item *
181  
182 ? (matches exactly 1 character)
183  
184 =back
185  
186  
187  
188  
189 =head1 SEE ALSO
190  
191 This class forms part of L<Paws>, describing an object used in L<Paws::ELBv2>
192  
193 =head1 BUGS and CONTRIBUTIONS
194  
195 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
196  
197 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
198  
199 =cut
200