Class: AWSCDK::Route53Resolver::CfnResolverRule::TargetAddressProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53Resolver::CfnResolverRule::TargetAddressProperty
- 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
-
#ip ⇒ String?
readonly
One IPv4 address that you want to forward DNS queries to.
-
#ipv6 ⇒ String?
readonly
One IPv6 address that you want to forward DNS queries to.
-
#port ⇒ String?
readonly
The port at
Ipthat you want to forward DNS queries to. -
#protocol ⇒ String?
readonly
The protocols for the target address.
-
#server_name_indication ⇒ String?
readonly
The Server Name Indication of the DoH server that you want to forward queries to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ip: nil, ipv6: nil, port: nil, protocol: nil, server_name_indication: nil) ⇒ TargetAddressProperty
constructor
A new instance of TargetAddressProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ip: nil, ipv6: nil, port: nil, protocol: nil, server_name_indication: nil) ⇒ TargetAddressProperty
Returns a new instance of TargetAddressProperty.
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
#ip ⇒ String? (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 |
#ipv6 ⇒ String? (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 |
#port ⇒ String? (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 |
#protocol ⇒ String? (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_indication ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |