blib/lib/Paws/EC2/CreateSubnet.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/CreateSpotDatafeedSubscriptionResult.pm ↑ Summary blib/lib/Paws/EC2/CreateSubnetResult.pm »
1  
2 package Paws::EC2::CreateSubnet;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has AvailabilityZone => (is => 'ro', isa => 'Str');
5 1 has AvailabilityZoneId => (is => 'ro', isa => 'Str');
6 1 has CidrBlock => (is => 'ro', isa => 'Str', required => 1);
7 1 has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
8 1 has Ipv6CidrBlock => (is => 'ro', isa => 'Str');
9 1 has OutpostArn => (is => 'ro', isa => 'Str');
10 1 has TagSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EC2::TagSpecification]', traits => ['NameInRequest'], request_name => 'TagSpecification' );
11 1 has VpcId => (is => 'ro', isa => 'Str', required => 1);
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 => 'CreateSubnet');
16 1 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateSubnetResult');
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::CreateSubnet - Arguments for method CreateSubnet on L<Paws::EC2>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method CreateSubnet on the
29 L<Amazon Elastic Compute Cloud|Paws::EC2> service. Use the attributes of this class
30 as arguments to method CreateSubnet.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateSubnet.
33  
34 =head1 SYNOPSIS
35  
36 my $ec2 = Paws->service('EC2');
37 # To create a subnet
38 # This example creates a subnet in the specified VPC with the specified CIDR
39 # block. We recommend that you let us select an Availability Zone for you.
40 my $CreateSubnetResult = $ec2->CreateSubnet(
41 'CidrBlock' => '10.0.1.0/24',
42 'VpcId' => 'vpc-a01106c2'
43 );
44  
45 # Results:
46 my $Subnet = $CreateSubnetResult->Subnet;
47  
48 # Returns a L<Paws::EC2::CreateSubnetResult> object.
49  
50 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.
51 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ec2/CreateSubnet>
52  
53 =head1 ATTRIBUTES
54  
55  
56 =head2 AvailabilityZone => Str
57  
58 The Availability Zone or Local Zone for the subnet.
59  
60 Default: AWS selects one for you. If you create more than one subnet in
61 your VPC, we do not necessarily select a different zone for each
62 subnet.
63  
64 To create a subnet in a Local Zone, set this value to the Local Zone
65 ID, for example C<us-west-2-lax-1a>. For information about the Regions
66 that support Local Zones, see Available Regions
67 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions)
68 in the I<Amazon Elastic Compute Cloud User Guide>.
69  
70 To create a subnet in an Outpost, set this value to the Availability
71 Zone for the Outpost and specify the Outpost ARN.
72  
73  
74  
75 =head2 AvailabilityZoneId => Str
76  
77 The AZ ID or the Local Zone ID of the subnet.
78  
79  
80  
81 =head2 B<REQUIRED> CidrBlock => Str
82  
83 The IPv4 network range for the subnet, in CIDR notation. For example,
84 C<10.0.0.0/24>. We modify the specified CIDR block to its canonical
85 form; for example, if you specify C<100.68.0.18/18>, we modify it to
86 C<100.68.0.0/18>.
87  
88  
89  
90 =head2 DryRun => Bool
91  
92 Checks whether you have the required permissions for the action,
93 without actually making the request, and provides an error response. If
94 you have the required permissions, the error response is
95 C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
96  
97  
98  
99 =head2 Ipv6CidrBlock => Str
100  
101 The IPv6 network range for the subnet, in CIDR notation. The subnet
102 size must use a /64 prefix length.
103  
104  
105  
106 =head2 OutpostArn => Str
107  
108 The Amazon Resource Name (ARN) of the Outpost. If you specify an
109 Outpost ARN, you must also specify the Availability Zone of the Outpost
110 subnet.
111  
112  
113  
114 =head2 TagSpecifications => ArrayRef[L<Paws::EC2::TagSpecification>]
115  
116 The tags to assign to the subnet.
117  
118  
119  
120 =head2 B<REQUIRED> VpcId => Str
121  
122 The ID of the VPC.
123  
124  
125  
126  
127 =head1 SEE ALSO
128  
129 This class forms part of L<Paws>, documenting arguments for method CreateSubnet 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/CreateSpotDatafeedSubscriptionResult.pm ↑ Summary blib/lib/Paws/EC2/CreateSubnetResult.pm »