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

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ELBv2::CreateRule;
3 use Moose;
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 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::ELBv2::Tag]');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateRule');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ELBv2::CreateRuleOutput');
14 class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreateRuleResult');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::ELBv2::CreateRule - Arguments for method CreateRule on L<Paws::ELBv2>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method CreateRule on the
26 L<Elastic Load Balancing|Paws::ELBv2> service. Use the attributes of this class
27 as arguments to method CreateRule.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateRule.
30  
31 =head1 SYNOPSIS
32  
33 my $elasticloadbalancing = Paws->service('ELBv2');
34 # To create a rule
35 # This example creates a rule that forwards requests to the specified target
36 # group if the URL contains the specified pattern (for example, /img/*).
37 my $CreateRuleOutput = $elasticloadbalancing->CreateRule(
38 'Actions' => [
39  
40 {
41 'TargetGroupArn' =>
42 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
43 'Type' => 'forward'
44 }
45 ],
46 'Conditions' => [
47  
48 {
49 'Field' => 'path-pattern',
50 'Values' => ['/img/*']
51 }
52 ],
53 'ListenerArn' =>
54 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2',
55 'Priority' => 10
56 );
57  
58 # Results:
59 my $Rules = $CreateRuleOutput->Rules;
60  
61 # Returns a L<Paws::ELBv2::CreateRuleOutput> object.
62  
63 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.
64 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing/CreateRule>
65  
66 =head1 ATTRIBUTES
67  
68  
69 =head2 B<REQUIRED> Actions => ArrayRef[L<Paws::ELBv2::Action>]
70  
71 The actions.
72  
73  
74  
75 =head2 B<REQUIRED> Conditions => ArrayRef[L<Paws::ELBv2::RuleCondition>]
76  
77 The conditions.
78  
79  
80  
81 =head2 B<REQUIRED> ListenerArn => Str
82  
83 The Amazon Resource Name (ARN) of the listener.
84  
85  
86  
87 =head2 B<REQUIRED> Priority => Int
88  
89 The rule priority. A listener can't have multiple rules with the same
90 priority.
91  
92  
93  
94 =head2 Tags => ArrayRef[L<Paws::ELBv2::Tag>]
95  
96 The tags to assign to the rule.
97  
98  
99  
100  
101 =head1 SEE ALSO
102  
103 This class forms part of L<Paws>, documenting arguments for method CreateRule in L<Paws::ELBv2>
104  
105 =head1 BUGS and CONTRIBUTIONS
106  
107 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
108  
109 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
110  
111 =cut
112