Class: AwsCli::CLI::EC2::VPC::NetworkInterfaces

Inherits:
Thor
  • Object
show all
Defined in:
lib/awscli/cli/ec2/vpc/net_interfaces.rb

Instance Method Summary collapse

Instance Method Details

#attachObject



35
36
37
38
# File 'lib/awscli/cli/ec2/vpc/net_interfaces.rb', line 35

def attach
  create_ec2_object
  @ec2.attach options[:network_interface_id], options[:instance_id], options[:device_index]
end

#createObject



19
20
21
22
# File 'lib/awscli/cli/ec2/vpc/net_interfaces.rb', line 19

def create
  create_ec2_object
  @ec2.create options
end

#deattachObject



43
44
45
46
# File 'lib/awscli/cli/ec2/vpc/net_interfaces.rb', line 43

def deattach
  create_ec2_object
  @ec2.deattach options[:attachment_id], options[:force]
end

#deleteObject



26
27
28
29
# File 'lib/awscli/cli/ec2/vpc/net_interfaces.rb', line 26

def delete
  create_ec2_object
  @ec2.delete options[:network_interface_id]
end

#listObject



9
10
11
12
# File 'lib/awscli/cli/ec2/vpc/net_interfaces.rb', line 9

def list
  create_ec2_object
  @ec2.list
end

#modify_attributeObject



55
56
57
58
# File 'lib/awscli/cli/ec2/vpc/net_interfaces.rb', line 55

def modify_attribute
  create_ec2_object
  @ec2.modify_attribute options
end