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

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::EC2::CreateTransitGatewayVpcAttachment;
3 use Moose;
4 has DryRun => (is => 'ro', isa => 'Bool');
5 has Options => (is => 'ro', isa => 'Paws::EC2::CreateTransitGatewayVpcAttachmentRequestOptions');
6 has SubnetIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1);
7 has TagSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EC2::TagSpecification]');
8 has TransitGatewayId => (is => 'ro', isa => 'Str', required => 1);
9 has VpcId => (is => 'ro', isa => 'Str', required => 1);
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateTransitGatewayVpcAttachment');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateTransitGatewayVpcAttachmentResult');
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::CreateTransitGatewayVpcAttachment - Arguments for method CreateTransitGatewayVpcAttachment on L<Paws::EC2>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateTransitGatewayVpcAttachment on the
27 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
28 as arguments to method CreateTransitGatewayVpcAttachment.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateTransitGatewayVpcAttachment.
31  
32 =head1 SYNOPSIS
33  
34 my $ec2 = Paws->service('EC2');
35 my $CreateTransitGatewayVpcAttachmentResult =
36 $ec2->CreateTransitGatewayVpcAttachment(
37 SubnetIds => [ 'MySubnetId', ... ],
38 TransitGatewayId => 'MyTransitGatewayId',
39 VpcId => 'MyVpcId',
40 DryRun => 1, # OPTIONAL
41 Options => {
42 ApplianceModeSupport => 'enable', # values: enable, disable; OPTIONAL
43 DnsSupport => 'enable', # values: enable, disable; OPTIONAL
44 Ipv6Support => 'enable', # values: enable, disable; OPTIONAL
45 }, # OPTIONAL
46 TagSpecifications => [
47 {
48 ResourceType => 'client-vpn-endpoint'
49 , # 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
50 Tags => [
51 {
52 Key => 'MyString', # OPTIONAL
53 Value => 'MyString', # OPTIONAL
54 },
55 ...
56 ], # OPTIONAL
57 },
58 ...
59 ], # OPTIONAL
60 );
61  
62 # Results:
63 my $TransitGatewayVpcAttachment =
64 $CreateTransitGatewayVpcAttachmentResult->TransitGatewayVpcAttachment;
65  
66 # Returns a L<Paws::EC2::CreateTransitGatewayVpcAttachmentResult> 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/CreateTransitGatewayVpcAttachment>
70  
71 =head1 ATTRIBUTES
72  
73  
74 =head2 DryRun => Bool
75  
76 Checks whether you have the required permissions for the action,
77 without actually making the request, and provides an error response. If
78 you have the required permissions, the error response is
79 C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
80  
81  
82  
83 =head2 Options => L<Paws::EC2::CreateTransitGatewayVpcAttachmentRequestOptions>
84  
85 The VPC attachment options.
86  
87  
88  
89 =head2 B<REQUIRED> SubnetIds => ArrayRef[Str|Undef]
90  
91 The IDs of one or more subnets. You can specify only one subnet per
92 Availability Zone. You must specify at least one subnet, but we
93 recommend that you specify two subnets for better availability. The
94 transit gateway uses one IP address from each specified subnet.
95  
96  
97  
98 =head2 TagSpecifications => ArrayRef[L<Paws::EC2::TagSpecification>]
99  
100 The tags to apply to the VPC attachment.
101  
102  
103  
104 =head2 B<REQUIRED> TransitGatewayId => Str
105  
106 The ID of the transit gateway.
107  
108  
109  
110 =head2 B<REQUIRED> VpcId => Str
111  
112 The ID of the VPC.
113  
114  
115  
116  
117 =head1 SEE ALSO
118  
119 This class forms part of L<Paws>, documenting arguments for method CreateTransitGatewayVpcAttachment in L<Paws::EC2>
120  
121 =head1 BUGS and CONTRIBUTIONS
122  
123 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
124  
125 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
126  
127 =cut
128