blib/lib/Paws/WAFRegional/CreateRuleGroup.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::WAFRegional::CreateRuleGroup;
3 use Moose;
4 has ChangeToken => (is => 'ro', isa => 'Str', required => 1);
5 has MetricName => (is => 'ro', isa => 'Str', required => 1);
6 has Name => (is => 'ro', isa => 'Str', required => 1);
7 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::WAFRegional::Tag]');
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateRuleGroup');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::WAFRegional::CreateRuleGroupResponse');
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::CreateRuleGroup - Arguments for method CreateRuleGroup on L<Paws::WAFRegional>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method CreateRuleGroup on the
25 L<AWS WAF Regional|Paws::WAFRegional> service. Use the attributes of this class
26 as arguments to method CreateRuleGroup.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateRuleGroup.
29  
30 =head1 SYNOPSIS
31  
32 my $waf-regional = Paws->service('WAFRegional');
33 my $CreateRuleGroupResponse = $waf -regional->CreateRuleGroup(
34 ChangeToken => 'MyChangeToken',
35 MetricName => 'MyMetricName',
36 Name => 'MyResourceName',
37 Tags => [
38 {
39 Key => 'MyTagKey', # min: 1, max: 128
40 Value => 'MyTagValue', # max: 256
41  
42 },
43 ...
44 ], # OPTIONAL
45 );
46  
47 # Results:
48 my $ChangeToken = $CreateRuleGroupResponse->ChangeToken;
49 my $RuleGroup = $CreateRuleGroupResponse->RuleGroup;
50  
51 # Returns a L<Paws::WAFRegional::CreateRuleGroupResponse> object.
52  
53 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.
54 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/waf-regional/CreateRuleGroup>
55  
56 =head1 ATTRIBUTES
57  
58  
59 =head2 B<REQUIRED> ChangeToken => Str
60  
61 The value returned by the most recent call to GetChangeToken.
62  
63  
64  
65 =head2 B<REQUIRED> MetricName => Str
66  
67 A friendly name or description for the metrics for this C<RuleGroup>.
68 The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with
69 maximum length 128 and minimum length one. It can't contain whitespace
70 or metric names reserved for AWS WAF, including "All" and
71 "Default_Action." You can't change the name of the metric after you
72 create the C<RuleGroup>.
73  
74  
75  
76 =head2 B<REQUIRED> Name => Str
77  
78 A friendly name or description of the RuleGroup. You can't change
79 C<Name> after you create a C<RuleGroup>.
80  
81  
82  
83 =head2 Tags => ArrayRef[L<Paws::WAFRegional::Tag>]
84  
85  
86  
87  
88  
89  
90 =head1 SEE ALSO
91  
92 This class forms part of L<Paws>, documenting arguments for method CreateRuleGroup in L<Paws::WAFRegional>
93  
94 =head1 BUGS and CONTRIBUTIONS
95  
96 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
97  
98 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
99  
100 =cut
101