blib/lib/Paws/WAFRegional/CreateWebACL.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::WAFRegional::CreateWebACL;
3 use Moose;
4 has ChangeToken => (is => 'ro', isa => 'Str', required => 1);
5 has DefaultAction => (is => 'ro', isa => 'Paws::WAFRegional::WafAction', required => 1);
6 has MetricName => (is => 'ro', isa => 'Str', required => 1);
7 has Name => (is => 'ro', isa => 'Str', required => 1);
8 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::WAFRegional::Tag]');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateWebACL');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::WAFRegional::CreateWebACLResponse');
14 class_has _result_key => (isa => 'Str', is => 'ro');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::WAFRegional::CreateWebACL - Arguments for method CreateWebACL on L<Paws::WAFRegional>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method CreateWebACL on the
26 L<AWS WAF Regional|Paws::WAFRegional> service. Use the attributes of this class
27 as arguments to method CreateWebACL.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateWebACL.
30  
31 =head1 SYNOPSIS
32  
33 my $waf-regional = Paws->service('WAFRegional');
34 # To create a web ACL
35 # The following example creates a web ACL named CreateExample.
36 my $CreateWebACLResponse = $waf -regional->CreateWebACL(
37 'ChangeToken' => 'abcd12f2-46da-4fdb-b8d5-fbd4c466928f',
38 'DefaultAction' => {
39 'Type' => 'ALLOW'
40 },
41 'MetricName' => 'CreateExample',
42 'Name' => 'CreateExample'
43 );
44  
45 # Results:
46 my $ChangeToken = $CreateWebACLResponse->ChangeToken;
47 my $WebACL = $CreateWebACLResponse->WebACL;
48  
49 # Returns a L<Paws::WAFRegional::CreateWebACLResponse> object.
50  
51 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.
52 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/waf-regional/CreateWebACL>
53  
54 =head1 ATTRIBUTES
55  
56  
57 =head2 B<REQUIRED> ChangeToken => Str
58  
59 The value returned by the most recent call to GetChangeToken.
60  
61  
62  
63 =head2 B<REQUIRED> DefaultAction => L<Paws::WAFRegional::WafAction>
64  
65 The action that you want AWS WAF to take when a request doesn't match
66 the criteria specified in any of the C<Rule> objects that are
67 associated with the C<WebACL>.
68  
69  
70  
71 =head2 B<REQUIRED> MetricName => Str
72  
73 A friendly name or description for the metrics for this C<WebACL>.The
74 name can contain only alphanumeric characters (A-Z, a-z, 0-9), with
75 maximum length 128 and minimum length one. It can't contain whitespace
76 or metric names reserved for AWS WAF, including "All" and
77 "Default_Action." You can't change C<MetricName> after you create the
78 C<WebACL>.
79  
80  
81  
82 =head2 B<REQUIRED> Name => Str
83  
84 A friendly name or description of the WebACL. You can't change C<Name>
85 after you create the C<WebACL>.
86  
87  
88  
89 =head2 Tags => ArrayRef[L<Paws::WAFRegional::Tag>]
90  
91  
92  
93  
94  
95  
96 =head1 SEE ALSO
97  
98 This class forms part of L<Paws>, documenting arguments for method CreateWebACL in L<Paws::WAFRegional>
99  
100 =head1 BUGS and CONTRIBUTIONS
101  
102 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
103  
104 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
105  
106 =cut
107