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

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