Class: Ansible::Ruby::Modules::Ec2_eni
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Ec2_eni
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/amazon/ec2_eni.rb
Overview
Create and optionally attach an Elastic Network Interface (ENI) to an instance. If an ENI ID or private_ip is provided, the existing ENI (if any) will be modified. The ‘attached’ parameter controls the attachment status of the network interface.
Instance Method Summary collapse
-
#allow_reassignment ⇒ :yes, ...
Indicates whether to allow an IP address that is already assigned to another network interface or instance to be reassigned to the specified network interface.
-
#attached ⇒ Symbol?
Specifies if network interface should be attached or detached from instance.
-
#delete_on_termination ⇒ Symbol?
Delete the interface when the instance it is attached to is terminated.
-
#description ⇒ String?
Optional description of the ENI.
-
#device_index ⇒ Integer?
The index of the device for the network interface attachment on the instance.
-
#eni_id ⇒ String?
The ID of the ENI (to modify); if null and state is present, a new eni will be created.
-
#force_detach ⇒ :yes, ...
Force detachment of the interface.
-
#instance_id ⇒ String?
Instance ID that you wish to attach ENI to.
-
#private_ip_address ⇒ String?
Private IP address.
-
#purge_secondary_private_ip_addresses ⇒ Symbol?
To be used with I(secondary_private_ip_addresses) to determine whether or not to remove any secondary IP addresses other than those specified.
-
#secondary_private_ip_address_count ⇒ Integer?
The number of secondary IP addresses to assign to the network interface.
-
#secondary_private_ip_addresses ⇒ Array<String>, ...
A list of IP addresses to assign as secondary IP addresses to the network interface.
-
#security_groups ⇒ Object?
List of security groups associated with the interface.
-
#source_dest_check ⇒ Symbol?
By default, interfaces perform source/destination checks.
-
#state ⇒ :present, ...
Create or delete ENI.
-
#subnet_id ⇒ String?
ID of subnet in which to create the ENI.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#allow_reassignment ⇒ :yes, ...
71 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_eni.rb', line 71 attribute :allow_reassignment |
#attached ⇒ Symbol?
43 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_eni.rb', line 43 attribute :attached |
#delete_on_termination ⇒ Symbol?
51 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_eni.rb', line 51 attribute :delete_on_termination |
#description ⇒ String?
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_eni.rb', line 28 attribute :description |
#device_index ⇒ Integer?
39 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_eni.rb', line 39 attribute :device_index |
#eni_id ⇒ String?
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_eni.rb', line 12 attribute :eni_id |
#force_detach ⇒ :yes, ...
47 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_eni.rb', line 47 attribute :force_detach |
#instance_id ⇒ String?
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_eni.rb', line 16 attribute :instance_id |
#private_ip_address ⇒ String?
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_eni.rb', line 20 attribute :private_ip_address |
#purge_secondary_private_ip_addresses ⇒ Symbol?
63 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_eni.rb', line 63 attribute :purge_secondary_private_ip_addresses |
#secondary_private_ip_address_count ⇒ Integer?
67 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_eni.rb', line 67 attribute :secondary_private_ip_address_count |
#secondary_private_ip_addresses ⇒ Array<String>, ...
59 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_eni.rb', line 59 attribute :secondary_private_ip_addresses |
#security_groups ⇒ Object?
32 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_eni.rb', line 32 attribute :security_groups |
#source_dest_check ⇒ Symbol?
55 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_eni.rb', line 55 attribute :source_dest_check |
#state ⇒ :present, ...
35 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_eni.rb', line 35 attribute :state |
#subnet_id ⇒ String?
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/amazon/ec2_eni.rb', line 24 attribute :subnet_id |