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

Class: Aws::Route53Resolver::Types::TargetAddress

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

Overview

Note:

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

{
  ip: "Ip", # required
  port: 1,
}

In a CreateResolverRule request, an array of the IPs that you want to forward DNS queries to.

Instance Attribute Summary collapse

Instance Attribute Details

#ipString

One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.

Returns:

  • (String)


1597
1598
1599
1600
1601
# File 'gems/aws-sdk-route53resolver/lib/aws-sdk-route53resolver/types.rb', line 1597

class TargetAddress < Struct.new(
  :ip,
  :port)
  include Aws::Structure
end

#portInteger

The port at Ip that you want to forward DNS queries to.

Returns:

  • (Integer)


1597
1598
1599
1600
1601
# File 'gems/aws-sdk-route53resolver/lib/aws-sdk-route53resolver/types.rb', line 1597

class TargetAddress < Struct.new(
  :ip,
  :port)
  include Aws::Structure
end