class AWS::EC2::VPC
@attr_reader [Symbol] instance_tenancy
@attr_reader [String] dhcp_options_id
@attr_reader [String] cidr_block
@attr_reader [Symbol] state
def delete
-
(nil)
-
def delete client.delete_vpc(:vpc_id => vpc_id) nil end
def dhcp_options
-
(DHCPOptions)
- Returns the dhcp options associated with
def dhcp_options DHCPOptions.new(dhcp_options_id, :config => config) end
def dhcp_options= dhcp_options
-
dhcp_options
(DHCPOptions, String
) -- A {DHCPOptions} object
def dhcp_options= dhcp_options unless dhcp_options.is_a?(DHCPOptions) dhcp_options = DHCPOptions.new(dhcp_options, :config => config) end dhcp_options.associate(self) end
def initialize vpc_id, options = {}
def initialize vpc_id, options = {} @vpc_id = vpc_id super end
def instances
-
(InstanceCollection)
- Returns a filtered collection of
def instances InstanceCollection.new(:config => config).filter('vpc-id', vpc_id) end
def internet_gateway
-
(InternetGateway, nil)
- Returns the internet gateway attached to
def internet_gateway gateways = InternetGatewayCollection.new(:config => config) gateways.filter('attachment.vpc-id', vpc_id).first end
def internet_gateway= internet_gateway
-
internet_gateway
(InternetGateway, String
) -- An {InternetGateway}
def internet_gateway= internet_gateway # remove currently attached internet gateway gateway = self.internet_gateway gateway.detach(self) if gateway if internet_gateway unless internet_gateway.is_a?(InternetGateway) internet_gateway = InternetGateway.new(internet_gateway, :config => config) end internet_gateway.attach(self) end end
def network_acls
-
(NetworkACLCollection)
- Returns a filtered collection of
def network_acls NetworkACLCollection.new(:config => config).filter('vpc-id', vpc_id) end
def network_interfaces
-
(NetworkInterfaceCollection)
- Returns a filtered collection of
def network_interfaces NetworkInterfaceCollection.new(:config => config).filter('vpc-id', id) end
def route_tables
-
(RouteTableCollection)
- Returns a filtered collection of
def route_tables RouteTableCollection.new(:config => config).filter('vpc-id', vpc_id) end
def security_groups
-
(SecurityGroupCollection)
- Returns a filtered collection of
def security_groups SecurityGroupCollection.new(:config => config).filter('vpc-id', vpc_id) end
def subnets
-
(SubnetCollection)
- Returns a filtered collection of
def subnets SubnetCollection.new(:config => config).filter('vpc-id', vpc_id) end
def vpn_gateway
-
(VPNGateway, nil)
- Returns the vpn gateway attached to
def vpn_gateway gateways = VPNGatewayCollection.new(:config => config) gateways.filter('attachment.vpc-id', vpc_id).first end