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

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EC2::CreateVpcPeeringConnection;
3 use Moose;
4 has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
5 has PeerOwnerId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'peerOwnerId' );
6 has PeerRegion => (is => 'ro', isa => 'Str');
7 has PeerVpcId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'peerVpcId' );
8 has TagSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EC2::TagSpecification]', traits => ['NameInRequest'], request_name => 'TagSpecification' );
9 has VpcId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'vpcId' );
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateVpcPeeringConnection');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateVpcPeeringConnectionResult');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::EC2::CreateVpcPeeringConnection - Arguments for method CreateVpcPeeringConnection on L<Paws::EC2>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateVpcPeeringConnection on the
27 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
28 as arguments to method CreateVpcPeeringConnection.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateVpcPeeringConnection.
31  
32 =head1 SYNOPSIS
33  
34 my $ec2 = Paws->service('EC2');
35 my $CreateVpcPeeringConnectionResult = $ec2->CreateVpcPeeringConnection(
36 DryRun => 1, # OPTIONAL
37 PeerOwnerId => 'MyString', # OPTIONAL
38 PeerRegion => 'MyString', # OPTIONAL
39 PeerVpcId => 'MyString', # OPTIONAL
40 TagSpecifications => [
41 {
42 ResourceType => 'client-vpn-endpoint'
43 , # 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
44 Tags => [
45 {
46 Key => 'MyString',
47 Value => 'MyString',
48 },
49 ...
50 ], # OPTIONAL
51 },
52 ...
53 ], # OPTIONAL
54 VpcId => 'MyVpcId', # OPTIONAL
55 );
56  
57 # Results:
58 my $VpcPeeringConnection =
59 $CreateVpcPeeringConnectionResult->VpcPeeringConnection;
60  
61 # Returns a L<Paws::EC2::CreateVpcPeeringConnectionResult> object.
62  
63 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.
64 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/CreateVpcPeeringConnection>
65  
66 =head1 ATTRIBUTES
67  
68  
69 =head2 DryRun => Bool
70  
71 Checks whether you have the required permissions for the action,
72 without actually making the request, and provides an error response. If
73 you have the required permissions, the error response is
74 C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
75  
76  
77  
78 =head2 PeerOwnerId => Str
79  
80 The AWS account ID of the owner of the accepter VPC.
81  
82 Default: Your AWS account ID
83  
84  
85  
86 =head2 PeerRegion => Str
87  
88 The Region code for the accepter VPC, if the accepter VPC is located in
89 a Region other than the Region in which you make the request.
90  
91 Default: The Region in which you make the request.
92  
93  
94  
95 =head2 PeerVpcId => Str
96  
97 The ID of the VPC with which you are creating the VPC peering
98 connection. You must specify this parameter in the request.
99  
100  
101  
102 =head2 TagSpecifications => ArrayRef[L<Paws::EC2::TagSpecification>]
103  
104 The tags to assign to the peering connection.
105  
106  
107  
108 =head2 VpcId => Str
109  
110 The ID of the requester VPC. You must specify this parameter in the
111 request.
112  
113  
114  
115  
116 =head1 SEE ALSO
117  
118 This class forms part of L<Paws>, documenting arguments for method CreateVpcPeeringConnection in L<Paws::EC2>
119  
120 =head1 BUGS and CONTRIBUTIONS
121  
122 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
123  
124 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
125  
126 =cut
127