blib/lib/Paws/EC2/CreateVpc.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/EC2/CreateVolume.pm ↑ Summary blib/lib/Paws/EC2/CreateVpcResult.pm »
1  
2 package Paws::EC2::CreateVpc;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has AmazonProvidedIpv6CidrBlock => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'amazonProvidedIpv6CidrBlock' );
5 1 has CidrBlock => (is => 'ro', isa => 'Str', required => 1);
6 1 has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
7 1 has InstanceTenancy => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'instanceTenancy' );
8 1 has Ipv6CidrBlock => (is => 'ro', isa => 'Str');
9 1 has Ipv6CidrBlockNetworkBorderGroup => (is => 'ro', isa => 'Str');
10 1 has Ipv6Pool => (is => 'ro', isa => 'Str');
11 1 has TagSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EC2::TagSpecification]', traits => ['NameInRequest'], request_name => 'TagSpecification' );
12  
13 1 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateVpc');
16 1 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateVpcResult');
17 1 class_has _result_key => (isa => 'Str', is => 'ro');
18 1 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::EC2::CreateVpc - Arguments for method CreateVpc on L<Paws::EC2>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method CreateVpc on the
29 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
30 as arguments to method CreateVpc.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateVpc.
33  
34 =head1 SYNOPSIS
35  
36 my $ec2 = Paws->service('EC2');
37 # To create a VPC
38 # This example creates a VPC with the specified CIDR block.
39 my $CreateVpcResult = $ec2->CreateVpc( 'CidrBlock' => '10.0.0.0/16' );
40  
41 # Results:
42 my $Vpc = $CreateVpcResult->Vpc;
43  
44 # Returns a L<Paws::EC2::CreateVpcResult> object.
45  
46 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.
47 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/CreateVpc>
48  
49 =head1 ATTRIBUTES
50  
51  
52 =head2 AmazonProvidedIpv6CidrBlock => Bool
53  
54 Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length
55 for the VPC. You cannot specify the range of IP addresses, or the size
56 of the CIDR block.
57  
58  
59  
60 =head2 B<REQUIRED> CidrBlock => Str
61  
62 The IPv4 network range for the VPC, in CIDR notation. For example,
63 C<10.0.0.0/16>. We modify the specified CIDR block to its canonical
64 form; for example, if you specify C<100.68.0.18/18>, we modify it to
65 C<100.68.0.0/18>.
66  
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 InstanceTenancy => Str
79  
80 The tenancy options for instances launched into the VPC. For
81 C<default>, instances are launched with shared tenancy by default. You
82 can launch instances with any tenancy into a shared tenancy VPC. For
83 C<dedicated>, instances are launched as dedicated tenancy instances by
84 default. You can only launch instances with a tenancy of C<dedicated>
85 or C<host> into a dedicated tenancy VPC.
86  
87 B<Important:> The C<host> value cannot be used with this parameter. Use
88 the C<default> or C<dedicated> values only.
89  
90 Default: C<default>
91  
92 Valid values are: C<"default">, C<"dedicated">, C<"host">
93  
94 =head2 Ipv6CidrBlock => Str
95  
96 The IPv6 CIDR block from the IPv6 address pool. You must also specify
97 C<Ipv6Pool> in the request.
98  
99 To let Amazon choose the IPv6 CIDR block for you, omit this parameter.
100  
101  
102  
103 =head2 Ipv6CidrBlockNetworkBorderGroup => Str
104  
105 The name of the location from which we advertise the IPV6 CIDR block.
106 Use this parameter to limit the address to this location.
107  
108 You must set C<AmazonProvidedIpv6CidrBlock> to C<true> to use this
109 parameter.
110  
111  
112  
113 =head2 Ipv6Pool => Str
114  
115 The ID of an IPv6 address pool from which to allocate the IPv6 CIDR
116 block.
117  
118  
119  
120 =head2 TagSpecifications => ArrayRef[L<Paws::EC2::TagSpecification>]
121  
122 The tags to assign to the VPC.
123  
124  
125  
126  
127 =head1 SEE ALSO
128  
129 This class forms part of L<Paws>, documenting arguments for method CreateVpc in L<Paws::EC2>
130  
131 =head1 BUGS and CONTRIBUTIONS
132  
133 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
134  
135 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
136  
137 =cut
138  
« blib/lib/Paws/EC2/CreateVolume.pm ↑ Summary blib/lib/Paws/EC2/CreateVpcResult.pm »