Class: AWSCDK::Route53Resolver::CfnResolverEndpoint::IPAddressRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53Resolver::CfnResolverEndpoint::IPAddressRequestProperty
- Defined in:
- route53_resolver/cfn_resolver_endpoint.rb
Overview
In a CreateResolverEndpoint request, the IP address that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints). IpAddressRequest also includes the ID of the subnet that contains the IP address.
Instance Attribute Summary collapse
-
#ip ⇒ String?
readonly
The IPv4 address that you want to use for DNS queries.
-
#ipv6 ⇒ String?
readonly
The IPv6 address that you want to use for DNS queries.
-
#subnet_id ⇒ String
readonly
The ID of the subnet that contains the IP address.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(subnet_id:, ip: nil, ipv6: nil) ⇒ IPAddressRequestProperty
constructor
A new instance of IPAddressRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(subnet_id:, ip: nil, ipv6: nil) ⇒ IPAddressRequestProperty
Returns a new instance of IPAddressRequestProperty.
741 742 743 744 745 746 747 748 |
# File 'route53_resolver/cfn_resolver_endpoint.rb', line 741 def initialize(subnet_id:, ip: nil, ipv6: nil) @subnet_id = subnet_id Jsii::Type.check_type(@subnet_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subnetId") @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? end |
Instance Attribute Details
#ip ⇒ String? (readonly)
The IPv4 address that you want to use for DNS queries.
759 760 761 |
# File 'route53_resolver/cfn_resolver_endpoint.rb', line 759 def ip @ip end |
#ipv6 ⇒ String? (readonly)
The IPv6 address that you want to use for DNS queries.
764 765 766 |
# File 'route53_resolver/cfn_resolver_endpoint.rb', line 764 def ipv6 @ipv6 end |
#subnet_id ⇒ String (readonly)
The ID of the subnet that contains the IP address.
754 755 756 |
# File 'route53_resolver/cfn_resolver_endpoint.rb', line 754 def subnet_id @subnet_id end |
Class Method Details
.jsii_properties ⇒ Object
766 767 768 769 770 771 772 |
# File 'route53_resolver/cfn_resolver_endpoint.rb', line 766 def self.jsii_properties { :subnet_id => "subnetId", :ip => "ip", :ipv6 => "ipv6", } end |
Instance Method Details
#to_jsii ⇒ Object
774 775 776 777 778 779 780 781 782 |
# File 'route53_resolver/cfn_resolver_endpoint.rb', line 774 def to_jsii result = {} result.merge!({ "subnetId" => @subnet_id, "ip" => @ip, "ipv6" => @ipv6, }) result.compact end |