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

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EC2::CreateTransitGatewayConnectPeer;
3 use Moose;
4 has BgpOptions => (is => 'ro', isa => 'Paws::EC2::TransitGatewayConnectRequestBgpOptions');
5 has DryRun => (is => 'ro', isa => 'Bool');
6 has InsideCidrBlocks => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1);
7 has PeerAddress => (is => 'ro', isa => 'Str', required => 1);
8 has TagSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EC2::TagSpecification]', traits => ['NameInRequest'], request_name => 'TagSpecification' );
9 has TransitGatewayAddress => (is => 'ro', isa => 'Str');
10 has TransitGatewayAttachmentId => (is => 'ro', isa => 'Str', required => 1);
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateTransitGatewayConnectPeer');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateTransitGatewayConnectPeerResult');
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::CreateTransitGatewayConnectPeer - Arguments for method CreateTransitGatewayConnectPeer on L<Paws::EC2>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateTransitGatewayConnectPeer on the
28 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
29 as arguments to method CreateTransitGatewayConnectPeer.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateTransitGatewayConnectPeer.
32  
33 =head1 SYNOPSIS
34  
35 my $ec2 = Paws->service('EC2');
36 my $CreateTransitGatewayConnectPeerResult =
37 $ec2->CreateTransitGatewayConnectPeer(
38 InsideCidrBlocks => [ 'MyString', ... ],
39 PeerAddress => 'MyString',
40 TransitGatewayAttachmentId => 'MyTransitGatewayAttachmentId',
41 BgpOptions => {
42 PeerAsn => 1, # OPTIONAL
43 }, # OPTIONAL
44 DryRun => 1, # OPTIONAL
45 TagSpecifications => [
46 {
47 ResourceType => 'client-vpn-endpoint'
48 , # 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
49 Tags => [
50 {
51 Key => 'MyString',
52 Value => 'MyString',
53 },
54 ...
55 ], # OPTIONAL
56 },
57 ...
58 ], # OPTIONAL
59 TransitGatewayAddress => 'MyString', # OPTIONAL
60 );
61  
62 # Results:
63 my $TransitGatewayConnectPeer =
64 $CreateTransitGatewayConnectPeerResult->TransitGatewayConnectPeer;
65  
66 # Returns a L<Paws::EC2::CreateTransitGatewayConnectPeerResult> object.
67  
68 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.
69 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/CreateTransitGatewayConnectPeer>
70  
71 =head1 ATTRIBUTES
72  
73  
74 =head2 BgpOptions => L<Paws::EC2::TransitGatewayConnectRequestBgpOptions>
75  
76 The BGP options for the Connect peer.
77  
78  
79  
80 =head2 DryRun => Bool
81  
82 Checks whether you have the required permissions for the action,
83 without actually making the request, and provides an error response. If
84 you have the required permissions, the error response is
85 C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
86  
87  
88  
89 =head2 B<REQUIRED> InsideCidrBlocks => ArrayRef[Str|Undef]
90  
91 The range of inside IP addresses that are used for BGP peering. You
92 must specify a size /29 IPv4 CIDR block from the C<169.254.0.0/16>
93 range. The first address from the range must be configured on the
94 appliance as the BGP IP address. You can also optionally specify a size
95 /125 IPv6 CIDR block from the C<fd00::/8> range.
96  
97  
98  
99 =head2 B<REQUIRED> PeerAddress => Str
100  
101 The peer IP address (GRE outer IP address) on the appliance side of the
102 Connect peer.
103  
104  
105  
106 =head2 TagSpecifications => ArrayRef[L<Paws::EC2::TagSpecification>]
107  
108 The tags to apply to the Connect peer.
109  
110  
111  
112 =head2 TransitGatewayAddress => Str
113  
114 The peer IP address (GRE outer IP address) on the transit gateway side
115 of the Connect peer, which must be specified from a transit gateway
116 CIDR block. If not specified, Amazon automatically assigns the first
117 available IP address from the transit gateway CIDR block.
118  
119  
120  
121 =head2 B<REQUIRED> TransitGatewayAttachmentId => Str
122  
123 The ID of the Connect attachment.
124  
125  
126  
127  
128 =head1 SEE ALSO
129  
130 This class forms part of L<Paws>, documenting arguments for method CreateTransitGatewayConnectPeer in L<Paws::EC2>
131  
132 =head1 BUGS and CONTRIBUTIONS
133  
134 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
135  
136 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
137  
138 =cut
139