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

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EC2::CreateNetworkInsightsPath;
3 use Moose;
4 has ClientToken => (is => 'ro', isa => 'Str', required => 1);
5 has Destination => (is => 'ro', isa => 'Str', required => 1);
6 has DestinationIp => (is => 'ro', isa => 'Str');
7 has DestinationPort => (is => 'ro', isa => 'Int');
8 has DryRun => (is => 'ro', isa => 'Bool');
9 has Protocol => (is => 'ro', isa => 'Str', required => 1);
10 has Source => (is => 'ro', isa => 'Str', required => 1);
11 has SourceIp => (is => 'ro', isa => 'Str');
12 has TagSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EC2::TagSpecification]', traits => ['NameInRequest'], request_name => 'TagSpecification' );
13  
14 use MooseX::ClassAttribute;
15  
16 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateNetworkInsightsPath');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateNetworkInsightsPathResult');
18 class_has _result_key => (isa => 'Str', is => 'ro');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::EC2::CreateNetworkInsightsPath - Arguments for method CreateNetworkInsightsPath on L<Paws::EC2>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method CreateNetworkInsightsPath on the
30 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
31 as arguments to method CreateNetworkInsightsPath.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateNetworkInsightsPath.
34  
35 =head1 SYNOPSIS
36  
37 my $ec2 = Paws->service('EC2');
38 my $CreateNetworkInsightsPathResult = $ec2->CreateNetworkInsightsPath(
39 ClientToken => 'MyString',
40 Destination => 'MyString',
41 Protocol => 'tcp',
42 Source => 'MyString',
43 DestinationIp => 'MyIpAddress', # OPTIONAL
44 DestinationPort => 1, # OPTIONAL
45 DryRun => 1, # OPTIONAL
46 SourceIp => 'MyIpAddress', # OPTIONAL
47 TagSpecifications => [
48 {
49 ResourceType => 'client-vpn-endpoint'
50 , # values: client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, internet-gateway, key-pair, launch-template, local-gateway-route-table-vpc-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log; OPTIONAL
51 Tags => [
52 {
53 Key => 'MyString',
54 Value => 'MyString',
55 },
56 ...
57 ], # OPTIONAL
58 },
59 ...
60 ], # OPTIONAL
61 );
62  
63 # Results:
64 my $NetworkInsightsPath =
65 $CreateNetworkInsightsPathResult->NetworkInsightsPath;
66  
67 # Returns a L<Paws::EC2::CreateNetworkInsightsPathResult> object.
68  
69 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.
70 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/CreateNetworkInsightsPath>
71  
72 =head1 ATTRIBUTES
73  
74  
75 =head2 B<REQUIRED> ClientToken => Str
76  
77 Unique, case-sensitive identifier that you provide to ensure the
78 idempotency of the request. For more information, see How to Ensure
79 Idempotency
80 (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
81  
82  
83  
84 =head2 B<REQUIRED> Destination => Str
85  
86 The AWS resource that is the destination of the path.
87  
88  
89  
90 =head2 DestinationIp => Str
91  
92 The IP address of the AWS resource that is the destination of the path.
93  
94  
95  
96 =head2 DestinationPort => Int
97  
98 The destination port.
99  
100  
101  
102 =head2 DryRun => Bool
103  
104 Checks whether you have the required permissions for the action,
105 without actually making the request, and provides an error response. If
106 you have the required permissions, the error response is
107 C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
108  
109  
110  
111 =head2 B<REQUIRED> Protocol => Str
112  
113 The protocol.
114  
115 Valid values are: C<"tcp">, C<"udp">
116  
117 =head2 B<REQUIRED> Source => Str
118  
119 The AWS resource that is the source of the path.
120  
121  
122  
123 =head2 SourceIp => Str
124  
125 The IP address of the AWS resource that is the source of the path.
126  
127  
128  
129 =head2 TagSpecifications => ArrayRef[L<Paws::EC2::TagSpecification>]
130  
131 The tags to add to the path.
132  
133  
134  
135  
136 =head1 SEE ALSO
137  
138 This class forms part of L<Paws>, documenting arguments for method CreateNetworkInsightsPath in L<Paws::EC2>
139  
140 =head1 BUGS and CONTRIBUTIONS
141  
142 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
143  
144 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
145  
146 =cut
147