File Coverage

blib/lib/Paws/ELBv2/CreateRule.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::ELBv2::CreateRule;
3 1     1   421 use Moose;
  1         2  
  1         8  
4             has Actions => (is => 'ro', isa => 'ArrayRef[Paws::ELBv2::Action]', required => 1);
5             has Conditions => (is => 'ro', isa => 'ArrayRef[Paws::ELBv2::RuleCondition]', required => 1);
6             has ListenerArn => (is => 'ro', isa => 'Str', required => 1);
7             has Priority => (is => 'ro', isa => 'Int', required => 1);
8              
9 1     1   6204 use MooseX::ClassAttribute;
  1         3  
  1         10  
10              
11             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateRule');
12             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ELBv2::CreateRuleOutput');
13             class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreateRuleResult');
14             1;
15              
16             ### main pod documentation begin ###
17              
18             =head1 NAME
19              
20             Paws::ELBv2::CreateRule - Arguments for method CreateRule on Paws::ELBv2
21              
22             =head1 DESCRIPTION
23              
24             This class represents the parameters used for calling the method CreateRule on the
25             Elastic Load Balancing service. Use the attributes of this class
26             as arguments to method CreateRule.
27              
28             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateRule.
29              
30             As an example:
31              
32             $service_obj->CreateRule(Att1 => $value1, Att2 => $value2, ...);
33              
34             Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
35              
36             =head1 ATTRIBUTES
37              
38              
39             =head2 B<REQUIRED> Actions => ArrayRef[L<Paws::ELBv2::Action>]
40              
41             An action. Each action has the type C<forward> and specifies a target
42             group.
43              
44              
45              
46             =head2 B<REQUIRED> Conditions => ArrayRef[L<Paws::ELBv2::RuleCondition>]
47              
48             The conditions. Each condition specifies a field name and a single
49             value.
50              
51             If the field name is C<host-header>, you can specify a single host name
52             (for example, my.example.com). A host name is case insensitive, can be
53             up to 128 characters in length, and can contain any of the following
54             characters. Note that you can include up to three wildcard characters.
55              
56             =over
57              
58             =item *
59              
60             A-Z, a-z, 0-9
61              
62             =item *
63              
64             - .
65              
66             =item *
67              
68             * (matches 0 or more characters)
69              
70             =item *
71              
72             ? (matches exactly 1 character)
73              
74             =back
75              
76             If the field name is C<path-pattern>, you can specify a single path
77             pattern. A path pattern is case sensitive, can be up to 128 characters
78             in length, and can contain any of the following characters. Note that
79             you can include up to three wildcard characters.
80              
81             =over
82              
83             =item *
84              
85             A-Z, a-z, 0-9
86              
87             =item *
88              
89             _ - . $ / ~ " ' @ : +
90              
91             =item *
92              
93             & (using &)
94              
95             =item *
96              
97             * (matches 0 or more characters)
98              
99             =item *
100              
101             ? (matches exactly 1 character)
102              
103             =back
104              
105              
106              
107              
108             =head2 B<REQUIRED> ListenerArn => Str
109              
110             The Amazon Resource Name (ARN) of the listener.
111              
112              
113              
114             =head2 B<REQUIRED> Priority => Int
115              
116             The priority for the rule. A listener can't have multiple rules with
117             the same priority.
118              
119              
120              
121              
122             =head1 SEE ALSO
123              
124             This class forms part of L<Paws>, documenting arguments for method CreateRule in L<Paws::ELBv2>
125              
126             =head1 BUGS and CONTRIBUTIONS
127              
128             The source code is located here: https://github.com/pplu/aws-sdk-perl
129              
130             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
131              
132             =cut
133