Class: AwsCli::CLI::EC2::VPC::NetworkInterfaces
- Inherits:
-
Thor
- Object
- Thor
- AwsCli::CLI::EC2::VPC::NetworkInterfaces
- Defined in:
- lib/awscli/cli/ec2/vpc/net_interfaces.rb
Instance Method Summary collapse
- #attach ⇒ Object
- #create ⇒ Object
- #deattach ⇒ Object
- #delete ⇒ Object
- #list ⇒ Object
- #modify_attribute ⇒ Object
Instance Method Details
#attach ⇒ Object
35 36 37 38 |
# File 'lib/awscli/cli/ec2/vpc/net_interfaces.rb', line 35 def attach create_ec2_object @ec2.attach [:network_interface_id], [:instance_id], [:device_index] end |
#create ⇒ Object
19 20 21 22 |
# File 'lib/awscli/cli/ec2/vpc/net_interfaces.rb', line 19 def create create_ec2_object @ec2.create end |
#deattach ⇒ Object
43 44 45 46 |
# File 'lib/awscli/cli/ec2/vpc/net_interfaces.rb', line 43 def deattach create_ec2_object @ec2.deattach [:attachment_id], [:force] end |
#delete ⇒ Object
26 27 28 29 |
# File 'lib/awscli/cli/ec2/vpc/net_interfaces.rb', line 26 def delete create_ec2_object @ec2.delete [:network_interface_id] end |
#list ⇒ Object
9 10 11 12 |
# File 'lib/awscli/cli/ec2/vpc/net_interfaces.rb', line 9 def list create_ec2_object @ec2.list end |
#modify_attribute ⇒ Object
55 56 57 58 |
# File 'lib/awscli/cli/ec2/vpc/net_interfaces.rb', line 55 def modify_attribute create_ec2_object @ec2.modify_attribute end |