Class AWS::EC2::Subnet
In: lib/aws/ec2/subnet.rb
Parent: Resource

@attr_reader [String] vpc_id

@attr_reader [Symbol] state

@attr_reader [String] cidr_block

@attr_reader [Integer] available_ip_address_count

@attr_reader [String] availability_zone_name

Methods

Included Modules

TaggedItem

External Aliases

subnet_id -> id

Attributes

subnet_id  [R]  @return [String]

Public Class methods

Public Instance methods

See also {availability_zone_name}. @return [AvailabilityZone]

Deletes the current subnet. The subnet must be empty before it can be deleted. @return [nil]

@return [InstanceCollection] Returns a filtered collection of

  instances launched in this subnet.

@return [NetworkACL] Returns the network ACL currently assigned

  to this subnet.

Replaces the currently assigned network ACL with the passed one. @param [NetworkACL,String] network_acl A {NetworkACL} or network

  ACL id to assign to this subnet.

@return [NetworkACL::Association] Returns the association between

  this subnet and its network ACL.

@return [NetworkInterfaceCollection] Returns a collection that

  represents all of the network interfaces for this subnet.

@return [RouteTable] Returns the route table currently associated

  with this subnet.
route_table=(route_table)

Alias for set_route_table

@return [RouteTable::Association] Returns the association between

  this subnet and its route table.

Sets the route table for this subnet. If there is already a route table associated with this subnet, that association is replaced.

@param [RouteTable,String] route_table A {RouteTable} object or

  a route table id string.

@return [RouteTable::Association]

@return [VPC] Returns the VPC this subnet belongs to.

[Validate]