Class: Ansible::Ruby::Modules::Ec2_eip

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_eip.rb

Overview

This module associates AWS EC2 elastic IP addresses with instances

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#device_idString?

Returns The id of the device for the EIP. Can be an EC2 Instance id or Elastic Network Interface (ENI) id.

Returns:

  • (String, nil)

    The id of the device for the EIP. Can be an EC2 Instance id or Elastic Network Interface (ENI) id.



11
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_eip.rb', line 11

attribute :device_id

#in_vpcBoolean?

Returns allocate an EIP inside a VPC or not.

Returns:

  • (Boolean, nil)

    allocate an EIP inside a VPC or not



22
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_eip.rb', line 22

attribute :in_vpc

#public_ipObject?

Returns The elastic IP address to associate with the instance.,If absent, allocate a new address.

Returns:

  • (Object, nil)

    The elastic IP address to associate with the instance.,If absent, allocate a new address



15
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_eip.rb', line 15

attribute :public_ip

#release_on_disassociationBoolean?

Returns whether or not to automatically release the EIP when it is disassociated.

Returns:

  • (Boolean, nil)

    whether or not to automatically release the EIP when it is disassociated



30
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_eip.rb', line 30

attribute :release_on_disassociation

#reuse_existing_ip_allowedBoolean?

Returns Reuse an EIP that is not associated to an instance (when available), instead of allocating a new one.

Returns:

  • (Boolean, nil)

    Reuse an EIP that is not associated to an instance (when available), instead of allocating a new one.



26
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_eip.rb', line 26

attribute :reuse_existing_ip_allowed

#state:present, ...

Returns If present, associate the IP with the instance.,If absent, disassociate the IP with the instance.

Returns:

  • (:present, :absent, nil)

    If present, associate the IP with the instance.,If absent, disassociate the IP with the instance.



18
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2_eip.rb', line 18

attribute :state