File Coverage

blib/lib/Paws/EC2/Subnet.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Paws::EC2::Subnet;
2 1     1   308 use Moose;
  1     1   3  
  1         5  
  1         535  
  1         3  
  1         10  
3             has AssignIpv6AddressOnCreation => (is => 'ro', isa => 'Bool', request_name => 'assignIpv6AddressOnCreation', traits => ['NameInRequest']);
4             has AvailabilityZone => (is => 'ro', isa => 'Str', request_name => 'availabilityZone', traits => ['NameInRequest']);
5             has AvailableIpAddressCount => (is => 'ro', isa => 'Int', request_name => 'availableIpAddressCount', traits => ['NameInRequest']);
6             has CidrBlock => (is => 'ro', isa => 'Str', request_name => 'cidrBlock', traits => ['NameInRequest']);
7             has DefaultForAz => (is => 'ro', isa => 'Bool', request_name => 'defaultForAz', traits => ['NameInRequest']);
8             has Ipv6CidrBlockAssociationSet => (is => 'ro', isa => 'ArrayRef[Paws::EC2::SubnetIpv6CidrBlockAssociation]', request_name => 'ipv6CidrBlockAssociationSet', traits => ['NameInRequest']);
9             has MapPublicIpOnLaunch => (is => 'ro', isa => 'Bool', request_name => 'mapPublicIpOnLaunch', traits => ['NameInRequest']);
10             has State => (is => 'ro', isa => 'Str', request_name => 'state', traits => ['NameInRequest']);
11             has SubnetId => (is => 'ro', isa => 'Str', request_name => 'subnetId', traits => ['NameInRequest']);
12             has Tags => (is => 'ro', isa => 'ArrayRef[Paws::EC2::Tag]', request_name => 'tagSet', traits => ['NameInRequest']);
13             has VpcId => (is => 'ro', isa => 'Str', request_name => 'vpcId', traits => ['NameInRequest']);
14             1;
15              
16             ### main pod documentation begin ###
17              
18             =head1 NAME
19              
20             Paws::EC2::Subnet
21              
22             =head1 USAGE
23              
24             This class represents one of two things:
25              
26             =head3 Arguments in a call to a service
27              
28             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
29             Each attribute should be used as a named argument in the calls that expect this type of object.
30              
31             As an example, if Att1 is expected to be a Paws::EC2::Subnet object:
32              
33             $service_obj->Method(Att1 => { AssignIpv6AddressOnCreation => $value, ..., VpcId => $value });
34              
35             =head3 Results returned from an API call
36              
37             Use accessors for each attribute. If Att1 is expected to be an Paws::EC2::Subnet object:
38              
39             $result = $service_obj->Method(...);
40             $result->Att1->AssignIpv6AddressOnCreation
41              
42             =head1 DESCRIPTION
43              
44             This class has no description
45              
46             =head1 ATTRIBUTES
47              
48              
49             =head2 AssignIpv6AddressOnCreation => Bool
50              
51             Indicates whether a network interface created in this subnet (including
52             a network interface created by RunInstances) receives an IPv6 address.
53              
54              
55             =head2 AvailabilityZone => Str
56              
57             The Availability Zone of the subnet.
58              
59              
60             =head2 AvailableIpAddressCount => Int
61              
62             The number of unused private IPv4 addresses in the subnet. Note that
63             the IPv4 addresses for any stopped instances are considered
64             unavailable.
65              
66              
67             =head2 CidrBlock => Str
68              
69             The IPv4 CIDR block assigned to the subnet.
70              
71              
72             =head2 DefaultForAz => Bool
73              
74             Indicates whether this is the default subnet for the Availability Zone.
75              
76              
77             =head2 Ipv6CidrBlockAssociationSet => ArrayRef[L<Paws::EC2::SubnetIpv6CidrBlockAssociation>]
78              
79             Information about the IPv6 CIDR blocks associated with the subnet.
80              
81              
82             =head2 MapPublicIpOnLaunch => Bool
83              
84             Indicates whether instances launched in this subnet receive a public
85             IPv4 address.
86              
87              
88             =head2 State => Str
89              
90             The current state of the subnet.
91              
92              
93             =head2 SubnetId => Str
94              
95             The ID of the subnet.
96              
97              
98             =head2 Tags => ArrayRef[L<Paws::EC2::Tag>]
99              
100             Any tags assigned to the subnet.
101              
102              
103             =head2 VpcId => Str
104              
105             The ID of the VPC the subnet is in.
106              
107              
108              
109             =head1 SEE ALSO
110              
111             This class forms part of L<Paws>, describing an object used in L<Paws::EC2>
112              
113             =head1 BUGS and CONTRIBUTIONS
114              
115             The source code is located here: https://github.com/pplu/aws-sdk-perl
116              
117             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
118              
119             =cut