File Coverage

blib/lib/Paws/EC2/CreateVpc.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::EC2::CreateVpc;
3 1     1   583 use Moose;
  1     1   6  
  1         11  
  1         518  
  1         3  
  1         12  
4             has AmazonProvidedIpv6CidrBlock => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'amazonProvidedIpv6CidrBlock' );
5             has CidrBlock => (is => 'ro', isa => 'Str', required => 1);
6             has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
7             has InstanceTenancy => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'instanceTenancy' );
8              
9 1     1   8829 use MooseX::ClassAttribute;
  1     1   4  
  1         10  
  1         7128  
  1         3  
  1         8  
10              
11             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateVpc');
12             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateVpcResult');
13             class_has _result_key => (isa => 'Str', is => 'ro');
14             1;
15              
16             ### main pod documentation begin ###
17              
18             =head1 NAME
19              
20             Paws::EC2::CreateVpc - Arguments for method CreateVpc on Paws::EC2
21              
22             =head1 DESCRIPTION
23              
24             This class represents the parameters used for calling the method CreateVpc on the
25             Amazon Elastic Compute Cloud service. Use the attributes of this class
26             as arguments to method CreateVpc.
27              
28             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateVpc.
29              
30             As an example:
31              
32             $service_obj->CreateVpc(Att1 => $value1, Att2 => $value2, ...);
33              
34             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.
35              
36             =head1 ATTRIBUTES
37              
38              
39             =head2 AmazonProvidedIpv6CidrBlock => Bool
40              
41             Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length
42             for the VPC. You cannot specify the range of IP addresses, or the size
43             of the CIDR block.
44              
45              
46              
47             =head2 B<REQUIRED> CidrBlock => Str
48              
49             The IPv4 network range for the VPC, in CIDR notation. For example,
50             C<10.0.0.0/16>.
51              
52              
53              
54             =head2 DryRun => Bool
55              
56             Checks whether you have the required permissions for the action,
57             without actually making the request, and provides an error response. If
58             you have the required permissions, the error response is
59             C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
60              
61              
62              
63             =head2 InstanceTenancy => Str
64              
65             The tenancy options for instances launched into the VPC. For
66             C<default>, instances are launched with shared tenancy by default. You
67             can launch instances with any tenancy into a shared tenancy VPC. For
68             C<dedicated>, instances are launched as dedicated tenancy instances by
69             default. You can only launch instances with a tenancy of C<dedicated>
70             or C<host> into a dedicated tenancy VPC.
71              
72             B<Important:> The C<host> value cannot be used with this parameter. Use
73             the C<default> or C<dedicated> values only.
74              
75             Default: C<default>
76              
77             Valid values are: C<"default">, C<"dedicated">, C<"host">
78              
79              
80             =head1 SEE ALSO
81              
82             This class forms part of L<Paws>, documenting arguments for method CreateVpc in L<Paws::EC2>
83              
84             =head1 BUGS and CONTRIBUTIONS
85              
86             The source code is located here: https://github.com/pplu/aws-sdk-perl
87              
88             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
89              
90             =cut
91