Class: AWSCDK::NetworkFirewall::CfnVPCEndpointAssociation::SubnetMappingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkFirewall::CfnVPCEndpointAssociation::SubnetMappingProperty
- Defined in:
- network_firewall/cfn_vpc_endpoint_association.rb
Overview
The ID for a subnet that's used in an association with a firewall.
This is used in CreateFirewall , AssociateSubnets , and CreateVpcEndpointAssociation . AWS Network Firewall creates an instance of the associated firewall in each subnet that you specify, to filter traffic in the subnet's Availability Zone.
Instance Attribute Summary collapse
-
#ip_address_type ⇒ String?
readonly
The subnet's IP address type.
-
#subnet_id ⇒ String
readonly
The unique identifier for the subnet.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(subnet_id:, ip_address_type: nil) ⇒ SubnetMappingProperty
constructor
A new instance of SubnetMappingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(subnet_id:, ip_address_type: nil) ⇒ SubnetMappingProperty
Returns a new instance of SubnetMappingProperty.
604 605 606 607 608 609 |
# File 'network_firewall/cfn_vpc_endpoint_association.rb', line 604 def initialize(subnet_id:, ip_address_type: nil) @subnet_id = subnet_id Jsii::Type.check_type(@subnet_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subnetId") @ip_address_type = ip_address_type Jsii::Type.check_type(@ip_address_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipAddressType") unless @ip_address_type.nil? end |
Instance Attribute Details
#ip_address_type ⇒ String? (readonly)
The subnet's IP address type.
You can't change the IP address type after you create the subnet.
622 623 624 |
# File 'network_firewall/cfn_vpc_endpoint_association.rb', line 622 def ip_address_type @ip_address_type end |
#subnet_id ⇒ String (readonly)
The unique identifier for the subnet.
615 616 617 |
# File 'network_firewall/cfn_vpc_endpoint_association.rb', line 615 def subnet_id @subnet_id end |
Class Method Details
.jsii_properties ⇒ Object
624 625 626 627 628 629 |
# File 'network_firewall/cfn_vpc_endpoint_association.rb', line 624 def self.jsii_properties { :subnet_id => "subnetId", :ip_address_type => "ipAddressType", } end |
Instance Method Details
#to_jsii ⇒ Object
631 632 633 634 635 636 637 638 |
# File 'network_firewall/cfn_vpc_endpoint_association.rb', line 631 def to_jsii result = {} result.merge!({ "subnetId" => @subnet_id, "ipAddressType" => @ip_address_type, }) result.compact end |