Class: Ansible::Ruby::Modules::Ec2_vpc_dhcp_options

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

Overview

This module removes, or creates DHCP option sets, and can associate them to a VPC. Optionally, a new DHCP Options set can be created that converges a VPC’s existing DHCP option set with values provided. When dhcp_options_id is provided, the module will 1. remove (with state=‘absent’) 2. ensure tags are applied (if state=‘present’ and tags are provided 3. attach it to a VPC (if state=‘present’ and a vpc_id is provided. If any of the optional values are missing, they will either be treated as a no-op (i.e., inherit what already exists for the VPC) To remove existing options while inheriting, supply an empty value (e.g. set ntp_servers to [] if you want to remove them from the VPC’s options) Most of the options should be self-explanatory.

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

#delete_oldBoolean?



35
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_vpc_dhcp_options.rb', line 35

attribute :delete_old

#dhcp_options_idString?



47
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_vpc_dhcp_options.rb', line 47

attribute :dhcp_options_id

#dns_serversArray<String>, ...



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

attribute :dns_servers

#domain_nameString?



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

attribute :domain_name

#inherit_existingBoolean?



39
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_vpc_dhcp_options.rb', line 39

attribute :inherit_existing

#netbios_name_serversArray<String>, ...



23
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_vpc_dhcp_options.rb', line 23

attribute :netbios_name_servers

#netbios_node_typeInteger?



27
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_vpc_dhcp_options.rb', line 27

attribute :netbios_node_type

#ntp_serversArray<String>, ...



19
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_vpc_dhcp_options.rb', line 19

attribute :ntp_servers

#state:absent, ...



51
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_vpc_dhcp_options.rb', line 51

attribute :state

#tagsHash?



43
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_vpc_dhcp_options.rb', line 43

attribute :tags

#vpc_idString?



31
# File 'lib/ansible/ruby/modules/generated/extras/cloud/amazon/ec2_vpc_dhcp_options.rb', line 31

attribute :vpc_id