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   491 use Moose;
  1         4  
  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   6882 use MooseX::ClassAttribute;
  1         3  
  1         11  
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             A condition. Each condition specifies a field name and a single value.
49              
50             If the field name is C<host-header>, you can specify a single host name
51             (for example, my.example.com). A host name is case insensitive, can be
52             up to 128 characters in length, and can contain any of the following
53             characters. Note that you can include up to three wildcard characters.
54              
55             =over
56              
57             =item *
58              
59             A-Z, a-z, 0-9
60              
61             =item *
62              
63             - .
64              
65             =item *
66              
67             * (matches 0 or more characters)
68              
69             =item *
70              
71             ? (matches exactly 1 character)
72              
73             =back
74              
75             If the field name is C<path-pattern>, you can specify a single path
76             pattern. A path pattern is case sensitive, can be up to 128 characters
77             in length, and can contain any of the following characters. Note that
78             you can include up to three wildcard characters.
79              
80             =over
81              
82             =item *
83              
84             A-Z, a-z, 0-9
85              
86             =item *
87              
88             _ - . $ / ~ " ' @ : +
89              
90             =item *
91              
92             & (using &)
93              
94             =item *
95              
96             * (matches 0 or more characters)
97              
98             =item *
99              
100             ? (matches exactly 1 character)
101              
102             =back
103              
104              
105              
106              
107             =head2 B<REQUIRED> ListenerArn => Str
108              
109             The Amazon Resource Name (ARN) of the listener.
110              
111              
112              
113             =head2 B<REQUIRED> Priority => Int
114              
115             The priority for the rule. A listener can't have multiple rules with
116             the same priority.
117              
118              
119              
120              
121             =head1 SEE ALSO
122              
123             This class forms part of L<Paws>, documenting arguments for method CreateRule in L<Paws::ELBv2>
124              
125             =head1 BUGS and CONTRIBUTIONS
126              
127             The source code is located here: https://github.com/pplu/aws-sdk-perl
128              
129             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
130              
131             =cut
132