blib/lib/Paws/EC2/ModifyTrafficMirrorFilterRule.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EC2::ModifyTrafficMirrorFilterRule;
3 use Moose;
4 has Description => (is => 'ro', isa => 'Str');
5 has DestinationCidrBlock => (is => 'ro', isa => 'Str');
6 has DestinationPortRange => (is => 'ro', isa => 'Paws::EC2::TrafficMirrorPortRangeRequest');
7 has DryRun => (is => 'ro', isa => 'Bool');
8 has Protocol => (is => 'ro', isa => 'Int');
9 has RemoveFields => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'RemoveField' );
10 has RuleAction => (is => 'ro', isa => 'Str');
11 has RuleNumber => (is => 'ro', isa => 'Int');
12 has SourceCidrBlock => (is => 'ro', isa => 'Str');
13 has SourcePortRange => (is => 'ro', isa => 'Paws::EC2::TrafficMirrorPortRangeRequest');
14 has TrafficDirection => (is => 'ro', isa => 'Str');
15 has TrafficMirrorFilterRuleId => (is => 'ro', isa => 'Str', required => 1);
16  
17 use MooseX::ClassAttribute;
18  
19 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ModifyTrafficMirrorFilterRule');
20 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::ModifyTrafficMirrorFilterRuleResult');
21 class_has _result_key => (isa => 'Str', is => 'ro');
22 1;
23  
24 ### main pod documentation begin ###
25  
26 =head1 NAME
27  
28 Paws::EC2::ModifyTrafficMirrorFilterRule - Arguments for method ModifyTrafficMirrorFilterRule on L<Paws::EC2>
29  
30 =head1 DESCRIPTION
31  
32 This class represents the parameters used for calling the method ModifyTrafficMirrorFilterRule on the
33 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
34 as arguments to method ModifyTrafficMirrorFilterRule.
35  
36 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ModifyTrafficMirrorFilterRule.
37  
38 =head1 SYNOPSIS
39  
40 my $ec2 = Paws->service('EC2');
41 my $ModifyTrafficMirrorFilterRuleResult =
42 $ec2->ModifyTrafficMirrorFilterRule(
43 TrafficMirrorFilterRuleId => 'MyTrafficMirrorFilterRuleId',
44 Description => 'MyString', # OPTIONAL
45 DestinationCidrBlock => 'MyString', # OPTIONAL
46 DestinationPortRange => {
47 FromPort => 1, # OPTIONAL
48 ToPort => 1, # OPTIONAL
49 }, # OPTIONAL
50 DryRun => 1, # OPTIONAL
51 Protocol => 1, # OPTIONAL
52 RemoveFields => [
53 'destination-port-range',
54 ... # values: destination-port-range, source-port-range, protocol, description
55 ], # OPTIONAL
56 RuleAction => 'accept', # OPTIONAL
57 RuleNumber => 1, # OPTIONAL
58 SourceCidrBlock => 'MyString', # OPTIONAL
59 SourcePortRange => {
60 FromPort => 1, # OPTIONAL
61 ToPort => 1, # OPTIONAL
62 }, # OPTIONAL
63 TrafficDirection => 'ingress', # OPTIONAL
64 );
65  
66 # Results:
67 my $TrafficMirrorFilterRule =
68 $ModifyTrafficMirrorFilterRuleResult->TrafficMirrorFilterRule;
69  
70 # Returns a L<Paws::EC2::ModifyTrafficMirrorFilterRuleResult> object.
71  
72 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.
73 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/ModifyTrafficMirrorFilterRule>
74  
75 =head1 ATTRIBUTES
76  
77  
78 =head2 Description => Str
79  
80 The description to assign to the Traffic Mirror rule.
81  
82  
83  
84 =head2 DestinationCidrBlock => Str
85  
86 The destination CIDR block to assign to the Traffic Mirror rule.
87  
88  
89  
90 =head2 DestinationPortRange => L<Paws::EC2::TrafficMirrorPortRangeRequest>
91  
92 The destination ports that are associated with the Traffic Mirror rule.
93  
94  
95  
96 =head2 DryRun => Bool
97  
98 Checks whether you have the required permissions for the action,
99 without actually making the request, and provides an error response. If
100 you have the required permissions, the error response is
101 C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
102  
103  
104  
105 =head2 Protocol => Int
106  
107 The protocol, for example TCP, to assign to the Traffic Mirror rule.
108  
109  
110  
111 =head2 RemoveFields => ArrayRef[Str|Undef]
112  
113 The properties that you want to remove from the Traffic Mirror filter
114 rule.
115  
116 When you remove a property from a Traffic Mirror filter rule, the
117 property is set to the default.
118  
119  
120  
121 =head2 RuleAction => Str
122  
123 The action to assign to the rule.
124  
125 Valid values are: C<"accept">, C<"reject">
126  
127 =head2 RuleNumber => Int
128  
129 The number of the Traffic Mirror rule. This number must be unique for
130 each Traffic Mirror rule in a given direction. The rules are processed
131 in ascending order by rule number.
132  
133  
134  
135 =head2 SourceCidrBlock => Str
136  
137 The source CIDR block to assign to the Traffic Mirror rule.
138  
139  
140  
141 =head2 SourcePortRange => L<Paws::EC2::TrafficMirrorPortRangeRequest>
142  
143 The port range to assign to the Traffic Mirror rule.
144  
145  
146  
147 =head2 TrafficDirection => Str
148  
149 The type of traffic (C<ingress> | C<egress>) to assign to the rule.
150  
151 Valid values are: C<"ingress">, C<"egress">
152  
153 =head2 B<REQUIRED> TrafficMirrorFilterRuleId => Str
154  
155 The ID of the Traffic Mirror rule.
156  
157  
158  
159  
160 =head1 SEE ALSO
161  
162 This class forms part of L<Paws>, documenting arguments for method ModifyTrafficMirrorFilterRule in L<Paws::EC2>
163  
164 =head1 BUGS and CONTRIBUTIONS
165  
166 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
167  
168 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
169  
170 =cut
171