Class: AWSCDK::Route53Resolver::CfnResolverRule::TargetAddressProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
route53_resolver/cfn_resolver_rule.rb

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ip: nil, ipv6: nil, port: nil, protocol: nil, server_name_indication: nil) ⇒ TargetAddressProperty

Returns a new instance of TargetAddressProperty.

Parameters:

  • ip (String, nil) (defaults to: nil)

    One IPv4 address that you want to forward DNS queries to.

  • ipv6 (String, nil) (defaults to: nil)

    One IPv6 address that you want to forward DNS queries to.

  • port (String, nil) (defaults to: nil)

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

  • protocol (String, nil) (defaults to: nil)

    The protocols for the target address.

  • server_name_indication (String, nil) (defaults to: nil)

    The Server Name Indication of the DoH server that you want to forward queries to.



647
648
649
650
651
652
653
654
655
656
657
658
# File 'route53_resolver/cfn_resolver_rule.rb', line 647

def initialize(ip: nil, ipv6: nil, port: nil, protocol: nil, server_name_indication: nil)
  @ip = ip
  Jsii::Type.check_type(@ip, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ip") unless @ip.nil?
  @ipv6 = ipv6
  Jsii::Type.check_type(@ipv6, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipv6") unless @ipv6.nil?
  @port = port
  Jsii::Type.check_type(@port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "port") unless @port.nil?
  @protocol = protocol
  Jsii::Type.check_type(@protocol, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "protocol") unless @protocol.nil?
  @server_name_indication = server_name_indication
  Jsii::Type.check_type(@server_name_indication, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serverNameIndication") unless @server_name_indication.nil?
end

Instance Attribute Details

#ipString? (readonly)

One IPv4 address that you want to forward DNS queries to.



664
665
666
# File 'route53_resolver/cfn_resolver_rule.rb', line 664

def ip
  @ip
end

#ipv6String? (readonly)

One IPv6 address that you want to forward DNS queries to.



669
670
671
# File 'route53_resolver/cfn_resolver_rule.rb', line 669

def ipv6
  @ipv6
end

#portString? (readonly)

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



674
675
676
# File 'route53_resolver/cfn_resolver_rule.rb', line 674

def port
  @port
end

#protocolString? (readonly)

The protocols for the target address.

The protocol you choose needs to be supported by the outbound endpoint of the Resolver rule.



681
682
683
# File 'route53_resolver/cfn_resolver_rule.rb', line 681

def protocol
  @protocol
end

#server_name_indicationString? (readonly)

The Server Name Indication of the DoH server that you want to forward queries to.

This is only used if the Protocol of the TargetAddress is DoH .



688
689
690
# File 'route53_resolver/cfn_resolver_rule.rb', line 688

def server_name_indication
  @server_name_indication
end

Class Method Details

.jsii_propertiesObject



690
691
692
693
694
695
696
697
698
# File 'route53_resolver/cfn_resolver_rule.rb', line 690

def self.jsii_properties
  {
    :ip => "ip",
    :ipv6 => "ipv6",
    :port => "port",
    :protocol => "protocol",
    :server_name_indication => "serverNameIndication",
  }
end

Instance Method Details

#to_jsiiObject



700
701
702
703
704
705
706
707
708
709
710
# File 'route53_resolver/cfn_resolver_rule.rb', line 700

def to_jsii
  result = {}
  result.merge!({
    "ip" => @ip,
    "ipv6" => @ipv6,
    "port" => @port,
    "protocol" => @protocol,
    "serverNameIndication" => @server_name_indication,
  })
  result.compact
end