File Coverage

blib/lib/Net/Amazon/EC2/DescribeSubnetResponse.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 Net::Amazon::EC2::DescribeSubnetResponse;
2 1     1   7 use Moose;
  1         3  
  1         8  
3              
4             =head1 NAME
5              
6             Net::Amazon::EC2::DescribeSubnetResponse
7              
8             =head1 DESCRIPTION
9              
10             A class containing information about subnets
11              
12             =head1 ATTRIBUTES
13              
14             =over
15              
16             =item subnet_id (required)
17              
18             The ID of the subnet.
19              
20             =item state (required)
21              
22             The current state of the subnet.
23              
24             Values:
25              
26             pending | available
27              
28             =item vpc_id (required)
29              
30             The ID of the VPC the subnet is in.
31              
32             =item cidr_block
33              
34             The CIDR block assigned to the subnet.
35              
36             =available_ip_address_count
37              
38             The number of unused IP addresses in the subnet. Note that the IP addresses for any stopped instances are considered unavailable.
39              
40             =availability_zone
41              
42             The Availability Zone of the subnet.
43              
44             =default_for_az
45              
46             Indicates whether this is the default subnet for the Availability Zone.
47              
48             =map_public_ip_on_launch
49              
50             Indicates whether instances launched in this subnet receive a public IP address.
51              
52             =tag_set
53             Any tags assigned to the resource, each one wrapped in an item element.
54              
55             =back
56              
57             =cut
58              
59             has 'subnet_id' => ( is => 'ro', isa => 'Maybe[Str]', required => 1 );
60             has 'state' => ( is => 'ro', isa => 'Maybe[Str]', required => 1 );
61             has 'vpc_id' => ( is => 'ro', isa => 'Maybe[Str]', required => 1 );
62             has 'cidr_block' => ( is => 'ro', isa => 'Maybe[Str]', required => 1 );
63             has 'available_ip_address_count' => ( is => 'ro', isa => 'Maybe[Str]', required => 1 );
64             has 'availability_zone' => ( is => 'ro', isa => 'Maybe[Str]', required => 1 );
65             has 'default_for_az' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 );
66             has 'map_public_ip_on_launch' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 );
67             has 'tag_set' => ( is => 'ro', isa => 'Maybe[ArrayRef[Net::Amazon::EC2::TagSet]]', required => 0 );
68             __PACKAGE__->meta->make_immutable();
69              
70             =head1 AUTHOR
71              
72             Jonas Courteau <jonas.courteau@hootsuite.com>
73              
74             =head1 COPYRIGHT
75              
76             Copyright (c) 2014 Jonas Courteau. This program is free software; you can redistribute it and/or modify it
77             under the same terms as Perl itself.
78              
79             =cut
80              
81 1     1   5137 no Moose;
  1         2  
  1         6  
82             1;
83