blib/lib/Paws/WAFV2/CreateRegexPatternSet.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::WAFV2::CreateRegexPatternSet;
3 use Moose;
4 has Description => (is => 'ro', isa => 'Str');
5 has Name => (is => 'ro', isa => 'Str', required => 1);
6 has RegularExpressionList => (is => 'ro', isa => 'ArrayRef[Paws::WAFV2::Regex]', required => 1);
7 has Scope => (is => 'ro', isa => 'Str', required => 1);
8 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::WAFV2::Tag]');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateRegexPatternSet');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::WAFV2::CreateRegexPatternSetResponse');
14 class_has _result_key => (isa => 'Str', is => 'ro');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::WAFV2::CreateRegexPatternSet - Arguments for method CreateRegexPatternSet on L<Paws::WAFV2>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method CreateRegexPatternSet on the
26 L<AWS WAFV2|Paws::WAFV2> service. Use the attributes of this class
27 as arguments to method CreateRegexPatternSet.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateRegexPatternSet.
30  
31 =head1 SYNOPSIS
32  
33 my $wafv2 = Paws->service('WAFV2');
34 my $CreateRegexPatternSetResponse = $wafv2->CreateRegexPatternSet(
35 Name => 'MyEntityName',
36 RegularExpressionList => [
37 {
38 RegexString => 'MyRegexPatternString', # min: 1, max: 512; OPTIONAL
39 },
40 ...
41 ],
42 Scope => 'CLOUDFRONT',
43 Description => 'MyEntityDescription', # OPTIONAL
44 Tags => [
45 {
46 Key => 'MyTagKey', # min: 1, max: 128
47 Value => 'MyTagValue', # max: 256
48  
49 },
50 ...
51 ], # OPTIONAL
52 );
53  
54 # Results:
55 my $Summary = $CreateRegexPatternSetResponse->Summary;
56  
57 # Returns a L<Paws::WAFV2::CreateRegexPatternSetResponse> object.
58  
59 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.
60 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/wafv2/CreateRegexPatternSet>
61  
62 =head1 ATTRIBUTES
63  
64  
65 =head2 Description => Str
66  
67 A description of the set that helps with identification.
68  
69  
70  
71 =head2 B<REQUIRED> Name => Str
72  
73 The name of the set. You cannot change the name after you create the
74 set.
75  
76  
77  
78 =head2 B<REQUIRED> RegularExpressionList => ArrayRef[L<Paws::WAFV2::Regex>]
79  
80 Array of regular expression strings.
81  
82  
83  
84 =head2 B<REQUIRED> Scope => Str
85  
86 Specifies whether this is for an Amazon CloudFront distribution or for
87 a regional application. A regional application can be an Application
88 Load Balancer (ALB), an Amazon API Gateway REST API, or an AppSync
89 GraphQL API.
90  
91 To work with CloudFront, you must also specify the Region US East (N.
92 Virginia) as follows:
93  
94 =over
95  
96 =item *
97  
98 CLI - Specify the Region when you use the CloudFront scope:
99 C<--scope=CLOUDFRONT --region=us-east-1>.
100  
101 =item *
102  
103 API and SDKs - For all calls, use the Region endpoint us-east-1.
104  
105 =back
106  
107  
108 Valid values are: C<"CLOUDFRONT">, C<"REGIONAL">
109  
110 =head2 Tags => ArrayRef[L<Paws::WAFV2::Tag>]
111  
112 An array of key:value pairs to associate with the resource.
113  
114  
115  
116  
117 =head1 SEE ALSO
118  
119 This class forms part of L<Paws>, documenting arguments for method CreateRegexPatternSet in L<Paws::WAFV2>
120  
121 =head1 BUGS and CONTRIBUTIONS
122  
123 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
124  
125 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
126  
127 =cut
128