File Coverage

blib/lib/Paws/WAFRegional/UpdateRateBasedRule.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::WAFRegional::UpdateRateBasedRule;
3 1     1   346 use Moose;
  1         4  
  1         8  
4             has ChangeToken => (is => 'ro', isa => 'Str', required => 1);
5             has RateLimit => (is => 'ro', isa => 'Int', required => 1);
6             has RuleId => (is => 'ro', isa => 'Str', required => 1);
7             has Updates => (is => 'ro', isa => 'ArrayRef[Paws::WAFRegional::RuleUpdate]', required => 1);
8              
9 1     1   5832 use MooseX::ClassAttribute;
  1         3  
  1         11  
10              
11             class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateRateBasedRule');
12             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::WAFRegional::UpdateRateBasedRuleResponse');
13             class_has _result_key => (isa => 'Str', is => 'ro');
14             1;
15              
16             ### main pod documentation begin ###
17              
18             =head1 NAME
19              
20             Paws::WAFRegional::UpdateRateBasedRule - Arguments for method UpdateRateBasedRule on Paws::WAFRegional
21              
22             =head1 DESCRIPTION
23              
24             This class represents the parameters used for calling the method UpdateRateBasedRule on the
25             AWS WAF Regional service. Use the attributes of this class
26             as arguments to method UpdateRateBasedRule.
27              
28             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateRateBasedRule.
29              
30             As an example:
31              
32             $service_obj->UpdateRateBasedRule(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> ChangeToken => Str
40              
41             The value returned by the most recent call to GetChangeToken.
42              
43              
44              
45             =head2 B<REQUIRED> RateLimit => Int
46              
47             The maximum number of requests, which have an identical value in the
48             field specified by the C<RateKey>, allowed in a five-minute period. If
49             the number of requests exceeds the C<RateLimit> and the other
50             predicates specified in the rule are also met, AWS WAF triggers the
51             action that is specified for this rule.
52              
53              
54              
55             =head2 B<REQUIRED> RuleId => Str
56              
57             The C<RuleId> of the C<RateBasedRule> that you want to update.
58             C<RuleId> is returned by C<CreateRateBasedRule> and by
59             ListRateBasedRules.
60              
61              
62              
63             =head2 B<REQUIRED> Updates => ArrayRef[L<Paws::WAFRegional::RuleUpdate>]
64              
65             An array of C<RuleUpdate> objects that you want to insert into or
66             delete from a RateBasedRule.
67              
68              
69              
70              
71             =head1 SEE ALSO
72              
73             This class forms part of L<Paws>, documenting arguments for method UpdateRateBasedRule in L<Paws::WAFRegional>
74              
75             =head1 BUGS and CONTRIBUTIONS
76              
77             The source code is located here: https://github.com/pplu/aws-sdk-perl
78              
79             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
80              
81             =cut
82