Class: Awscli::EC2::Dhcp
- Inherits:
-
Object
- Object
- Awscli::EC2::Dhcp
- Defined in:
- lib/awscli/ec2.rb
Overview
> InternetGateways
Instance Method Summary collapse
- #associate(dhcp_id, vpc_id) ⇒ Object
- #create(options) ⇒ Object
- #delete(dhcp_id) ⇒ Object
-
#initialize(connection) ⇒ Dhcp
constructor
A new instance of Dhcp.
- #list ⇒ Object
Constructor Details
#initialize(connection) ⇒ Dhcp
Returns a new instance of Dhcp.
855 856 857 |
# File 'lib/awscli/ec2.rb', line 855 def initialize(connection) @conn = connection end |
Instance Method Details
#associate(dhcp_id, vpc_id) ⇒ Object
872 873 874 |
# File 'lib/awscli/ec2.rb', line 872 def associate(dhcp_id, vpc_id) @conn..attach(dhcp_id, vpc_id) end |
#create(options) ⇒ Object
863 864 865 |
# File 'lib/awscli/ec2.rb', line 863 def create() @conn..create() end |
#delete(dhcp_id) ⇒ Object
867 868 869 870 |
# File 'lib/awscli/ec2.rb', line 867 def delete(dhcp_id) dhcp = @conn.(dhcp_id) dhcp.destroy end |
#list ⇒ Object
859 860 861 |
# File 'lib/awscli/ec2.rb', line 859 def list @conn..table end |