Class: Convection::Model::Template::Resource::EC2DHCPOptions

Inherits:
Convection::Model::Template::Resource show all
Includes:
Mixin::Taggable
Defined in:
lib/convection/model/template/resource/aws_ec2_dhcp_options.rb

Overview

AWS::EC2::DHCPOptions

Examples:

ec2_dhcp_options 'TestOptions' do
  domain_name 'example.com'
  domain_name_servers  '10.0.0.1', '10.0.0.2'
  netbios_name_servers '10.0.0.1', '10.0.0.2'
  netbios_node_type 1
  ntp_servers '10.0.0.1', '10.0.0.2'
  tag 'Name', 'Test'
end

See Also:

Instance Attribute Summary

Attributes inherited from Convection::Model::Template::Resource

#exist, #name, #parent, #properties, #resource_attributes, #template

Instance Method Summary collapse

Methods included from Mixin::Taggable

#immutable_metadata, #render_tags, #tag, #tags

Methods inherited from Convection::Model::Template::Resource

#as_attribute, attach_method, #deletion_policy, #depends_on, #initialize, properties, #property, property, #reference, type, #type, #with_output

Methods included from Mixin::Conditional

#condition, #render_condition

Methods included from DSL::Template::Resource

attach_resource

Methods included from DSL::Helpers

#camel_case, included, method_name, #screaming_snake_case, #snake_case

Methods included from DSL::IntrinsicFunctions

#base64, #find_in_map, #fn_and, #fn_equals, #fn_if, #fn_not, #fn_or, #fn_ref, #get_att, #get_azs, #join, #select

Constructor Details

This class inherits a constructor from Convection::Model::Template::Resource

Instance Method Details

#domain_nameObject #domain_name(value) ⇒ Object

Overloads:

  • #domain_nameObject

    Returns the value of the 'DomainName' CloudFormation property.

  • #domain_name(value) ⇒ Object

    Sets the 'DomainName' CloudFormation property.

    Parameters:

    • value

      the value to set the 'DomainName' CloudFormation property to.



23
# File 'lib/convection/model/template/resource/aws_ec2_dhcp_options.rb', line 23

property :domain_name, 'DomainName'

#domain_name_serversObject #domain_name_servers(value) ⇒ Object

Overloads:

  • #domain_name_serversObject

    Returns the value of the 'DomainNameServers' CloudFormation property.

  • #domain_name_servers(value) ⇒ Object

    Sets the 'DomainNameServers' CloudFormation property.

    Parameters:

    • value

      the value to set the 'DomainNameServers' CloudFormation property to.



24
# File 'lib/convection/model/template/resource/aws_ec2_dhcp_options.rb', line 24

property :domain_name_servers, 'DomainNameServers', :type => :list

#netbios_name_serversObject #netbios_name_servers(value) ⇒ Object

Overloads:

  • #netbios_name_serversObject

    Returns the value of the 'NetbiosNameServers' CloudFormation property.

  • #netbios_name_servers(value) ⇒ Object

    Sets the 'NetbiosNameServers' CloudFormation property.

    Parameters:

    • value

      the value to set the 'NetbiosNameServers' CloudFormation property to.



25
# File 'lib/convection/model/template/resource/aws_ec2_dhcp_options.rb', line 25

property :netbios_name_servers, 'NetbiosNameServers', :type => :list

#netbios_node_typeObject #netbios_node_type(value) ⇒ Object

Overloads:

  • #netbios_node_typeObject

    Returns the value of the 'NetbiosNodeType' CloudFormation property.

  • #netbios_node_type(value) ⇒ Object

    Sets the 'NetbiosNodeType' CloudFormation property.

    Parameters:

    • value

      the value to set the 'NetbiosNodeType' CloudFormation property to.



26
# File 'lib/convection/model/template/resource/aws_ec2_dhcp_options.rb', line 26

property :netbios_node_type, 'NetbiosNodeType'

#ntp_serversObject #ntp_servers(value) ⇒ Object

Overloads:

  • #ntp_serversObject

    Returns the value of the 'NtpServers' CloudFormation property.

  • #ntp_servers(value) ⇒ Object

    Sets the 'NtpServers' CloudFormation property.

    Parameters:

    • value

      the value to set the 'NtpServers' CloudFormation property to.



27
# File 'lib/convection/model/template/resource/aws_ec2_dhcp_options.rb', line 27

property :ntp_servers, 'NtpServers', :type => :list

#render(*args) ⇒ Object



29
30
31
32
33
# File 'lib/convection/model/template/resource/aws_ec2_dhcp_options.rb', line 29

def render(*args)
  super.tap do |resource|
    render_tags(resource)
  end
end