blib/lib/Paws/EC2/CreateVpnConnection.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::CreateVpnConnection;
3 use Moose;
4 has CustomerGatewayId => (is => 'ro', isa => 'Str', required => 1);
5 has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
6 has Options => (is => 'ro', isa => 'Paws::EC2::VpnConnectionOptionsSpecification', traits => ['NameInRequest'], request_name => 'options' );
7 has TagSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EC2::TagSpecification]', traits => ['NameInRequest'], request_name => 'TagSpecification' );
8 has TransitGatewayId => (is => 'ro', isa => 'Str');
9 has Type => (is => 'ro', isa => 'Str', required => 1);
10 has VpnGatewayId => (is => 'ro', isa => 'Str');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateVpnConnection');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateVpnConnectionResult');
16 class_has _result_key => (isa => 'Str', is => 'ro');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::EC2::CreateVpnConnection - Arguments for method CreateVpnConnection on L<Paws::EC2>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateVpnConnection on the
28 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
29 as arguments to method CreateVpnConnection.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateVpnConnection.
32  
33 =head1 SYNOPSIS
34  
35 my $ec2 = Paws->service('EC2');
36 my $CreateVpnConnectionResult = $ec2->CreateVpnConnection(
37 CustomerGatewayId => 'MyCustomerGatewayId',
38 Type => 'MyString',
39 DryRun => 1, # OPTIONAL
40 Options => {
41 EnableAcceleration => 1,
42 LocalIpv4NetworkCidr => 'MyString',
43 LocalIpv6NetworkCidr => 'MyString',
44 RemoteIpv4NetworkCidr => 'MyString',
45 RemoteIpv6NetworkCidr => 'MyString',
46 StaticRoutesOnly => 1,
47 TunnelInsideIpVersion => 'ipv4', # values: ipv4, ipv6; OPTIONAL
48 TunnelOptions => [
49 {
50 DPDTimeoutAction => 'MyString',
51 DPDTimeoutSeconds => 1, # OPTIONAL
52 IKEVersions => [ { Value => 'MyString', }, ... ], # OPTIONAL
53 Phase1DHGroupNumbers => [
54 {
55 Value => 1, # OPTIONAL
56 },
57 ...
58 ], # OPTIONAL
59 Phase1EncryptionAlgorithms => [ { Value => 'MyString', }, ... ]
60 , # OPTIONAL
61 Phase1IntegrityAlgorithms => [ { Value => 'MyString', }, ... ]
62 , # OPTIONAL
63 Phase1LifetimeSeconds => 1, # OPTIONAL
64 Phase2DHGroupNumbers => [
65 {
66 Value => 1, # OPTIONAL
67 },
68 ...
69 ], # OPTIONAL
70 Phase2EncryptionAlgorithms => [ { Value => 'MyString', }, ... ]
71 , # OPTIONAL
72 Phase2IntegrityAlgorithms => [ { Value => 'MyString', }, ... ]
73 , # OPTIONAL
74 Phase2LifetimeSeconds => 1, # OPTIONAL
75 PreSharedKey => 'MyString',
76 RekeyFuzzPercentage => 1, # OPTIONAL
77 RekeyMarginTimeSeconds => 1, # OPTIONAL
78 ReplayWindowSize => 1, # OPTIONAL
79 StartupAction => 'MyString',
80 TunnelInsideCidr => 'MyString',
81 TunnelInsideIpv6Cidr => 'MyString',
82 },
83 ...
84 ], # OPTIONAL
85 }, # OPTIONAL
86 TagSpecifications => [
87 {
88 ResourceType => 'client-vpn-endpoint'
89 , # 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
90 Tags => [
91 {
92 Key => 'MyString',
93 Value => 'MyString',
94 },
95 ...
96 ], # OPTIONAL
97 },
98 ...
99 ], # OPTIONAL
100 TransitGatewayId => 'MyTransitGatewayId', # OPTIONAL
101 VpnGatewayId => 'MyVpnGatewayId', # OPTIONAL
102 );
103  
104 # Results:
105 my $VpnConnection = $CreateVpnConnectionResult->VpnConnection;
106  
107 # Returns a L<Paws::EC2::CreateVpnConnectionResult> object.
108  
109 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.
110 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/CreateVpnConnection>
111  
112 =head1 ATTRIBUTES
113  
114  
115 =head2 B<REQUIRED> CustomerGatewayId => Str
116  
117 The ID of the customer gateway.
118  
119  
120  
121 =head2 DryRun => Bool
122  
123 Checks whether you have the required permissions for the action,
124 without actually making the request, and provides an error response. If
125 you have the required permissions, the error response is
126 C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
127  
128  
129  
130 =head2 Options => L<Paws::EC2::VpnConnectionOptionsSpecification>
131  
132 The options for the VPN connection.
133  
134  
135  
136 =head2 TagSpecifications => ArrayRef[L<Paws::EC2::TagSpecification>]
137  
138 The tags to apply to the VPN connection.
139  
140  
141  
142 =head2 TransitGatewayId => Str
143  
144 The ID of the transit gateway. If you specify a transit gateway, you
145 cannot specify a virtual private gateway.
146  
147  
148  
149 =head2 B<REQUIRED> Type => Str
150  
151 The type of VPN connection (C<ipsec.1>).
152  
153  
154  
155 =head2 VpnGatewayId => Str
156  
157 The ID of the virtual private gateway. If you specify a virtual private
158 gateway, you cannot specify a transit gateway.
159  
160  
161  
162  
163 =head1 SEE ALSO
164  
165 This class forms part of L<Paws>, documenting arguments for method CreateVpnConnection in L<Paws::EC2>
166  
167 =head1 BUGS and CONTRIBUTIONS
168  
169 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
170  
171 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
172  
173 =cut
174