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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
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 '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 'lib/aws-sdk-route53resolver/types.rb', line 1597

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