blib/lib/Paws/WAFV2/DeleteRuleGroup.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::WAFV2::DeleteRuleGroup;
3 use Moose;
4 has Id => (is => 'ro', isa => 'Str', required => 1);
5 has LockToken => (is => 'ro', isa => 'Str', required => 1);
6 has Name => (is => 'ro', isa => 'Str', required => 1);
7 has Scope => (is => 'ro', isa => 'Str', required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'DeleteRuleGroup');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::WAFV2::DeleteRuleGroupResponse');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::WAFV2::DeleteRuleGroup - Arguments for method DeleteRuleGroup on L<Paws::WAFV2>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method DeleteRuleGroup on the
25 L<AWS WAFV2|Paws::WAFV2> service. Use the attributes of this class
26 as arguments to method DeleteRuleGroup.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DeleteRuleGroup.
29  
30 =head1 SYNOPSIS
31  
32 my $wafv2 = Paws->service('WAFV2');
33 my $DeleteRuleGroupResponse = $wafv2->DeleteRuleGroup(
34 Id => 'MyEntityId',
35 LockToken => 'MyLockToken',
36 Name => 'MyEntityName',
37 Scope => 'CLOUDFRONT',
38  
39 );
40  
41 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.
42 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/wafv2/DeleteRuleGroup>
43  
44 =head1 ATTRIBUTES
45  
46  
47 =head2 B<REQUIRED> Id => Str
48  
49 A unique identifier for the rule group. This ID is returned in the
50 responses to create and list commands. You provide it to operations
51 like update and delete.
52  
53  
54  
55 =head2 B<REQUIRED> LockToken => Str
56  
57 A token used for optimistic locking. WAF returns a token to your get
58 and list requests, to mark the state of the entity at the time of the
59 request. To make changes to the entity associated with the token, you
60 provide the token to operations like update and delete. WAF uses the
61 token to ensure that no changes have been made to the entity since you
62 last retrieved it. If a change has been made, the update fails with a
63 C<WAFOptimisticLockException>. If this happens, perform another get,
64 and use the new token returned by that operation.
65  
66  
67  
68 =head2 B<REQUIRED> Name => Str
69  
70 The name of the rule group. You cannot change the name of a rule group
71 after you create it.
72  
73  
74  
75 =head2 B<REQUIRED> Scope => Str
76  
77 Specifies whether this is for an Amazon CloudFront distribution or for
78 a regional application. A regional application can be an Application
79 Load Balancer (ALB), an Amazon API Gateway REST API, or an AppSync
80 GraphQL API.
81  
82 To work with CloudFront, you must also specify the Region US East (N.
83 Virginia) as follows:
84  
85 =over
86  
87 =item *
88  
89 CLI - Specify the Region when you use the CloudFront scope:
90 C<--scope=CLOUDFRONT --region=us-east-1>.
91  
92 =item *
93  
94 API and SDKs - For all calls, use the Region endpoint us-east-1.
95  
96 =back
97  
98  
99 Valid values are: C<"CLOUDFRONT">, C<"REGIONAL">
100  
101  
102 =head1 SEE ALSO
103  
104 This class forms part of L<Paws>, documenting arguments for method DeleteRuleGroup in L<Paws::WAFV2>
105  
106 =head1 BUGS and CONTRIBUTIONS
107  
108 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
109  
110 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
111  
112 =cut
113