Class | AWS::EC2::VPC |
In: |
lib/aws/ec2/vpc.rb
|
Parent: | Resource |
@attr_reader [Symbol] state @attr_reader [String] cidr_block @attr_reader [String] dhcp_options_id @attr_reader [Symbol] instance_tenancy
vpc_id | -> | id |
vpc_id | [R] | @return [String] |
Associates the given dhcp options with this VPC.
vpc.dhcp_optinos = ec2.dhcp_options['dopt-a1234abc']
You can also specify the string ‘default’ to use Amazon‘s default dhcp options.
vpc.dhcp_optinos = 'defualt'
@param [DHCPOptions,String] dhcp_options A {DHCPOptions} object
or a dhcp options id string.
@return [InstanceCollection] Returns a filtered collection of
instances that are in this VPC.
@return [InternetGateway,nil] Returns the internet gateway attached to
this VPC. If no internet gateway has been attached, then nil is returned.
Attaches the given internet gateway to this VPC. If there is already an internet gateway attached, it will be detached from this VPC first. If you pass nil, this will leave the current VPC without an attached internet gateway.
vpc.internet_gateway = gateway_1 vpc.internet_gateway = gateway_2 # detaches gateway_1 first vpc.internet_gateway = nil # detaches gateway_2
@param [InternetGateway,String] internet_gateway An {InternetGateway}
object or internet gateway id string.
@return [NetworkACLCollection] Returns a filtered collection of
network ACLs that are in this VPC.
@return [NetworkInterfaceCollection] Returns a filtered collection of
network interfaces that are in this VPC.
@return [RouteTableCollection] Returns a filtered collection of
route tables that are in this VPC.
@return [SecurityGroupCollection] Returns a filtered collection of
security groups that are in this VPC.
@return [VPNGateway,nil] Returns the vpn gateway attached to
this VPC. If no vpn gateway has been attached, then nil is returned.