You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::EC2::Types::DnsServersOptionsModifyStructure

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Note:

When making an API call, you may pass DnsServersOptionsModifyStructure data as a hash:

{
  custom_dns_servers: ["String"],
  enabled: false,
}

Information about the DNS server to be used.

Instance Attribute Summary collapse

Instance Attribute Details

#custom_dns_serversArray<String>

The IPv4 address range, in CIDR notation, of the DNS servers to be used. You can specify up to two DNS servers. Ensure that the DNS servers can be reached by the clients. The specified values overwrite the existing values.

Returns:

  • (Array<String>)


18559
18560
18561
18562
18563
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18559

class DnsServersOptionsModifyStructure < Struct.new(
  :custom_dns_servers,
  :enabled)
  include Aws::Structure
end

#enabledBoolean

Indicates whether DNS servers should be used. Specify False to delete the existing DNS servers.

Returns:

  • (Boolean)


18559
18560
18561
18562
18563
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18559

class DnsServersOptionsModifyStructure < Struct.new(
  :custom_dns_servers,
  :enabled)
  include Aws::Structure
end