Class: AWSCDK::NetworkFirewall::CfnFirewall::AvailabilityZoneMappingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NetworkFirewall::CfnFirewall::AvailabilityZoneMappingProperty
- Defined in:
- network_firewall/cfn_firewall.rb
Overview
Defines the mapping between an Availability Zone and a firewall endpoint for a transit gateway-attached firewall.
Each mapping represents where the firewall can process traffic. You use these mappings when calling CreateFirewall , AssociateAvailabilityZones , and DisassociateAvailabilityZones .
To retrieve the current Availability Zone mappings for a firewall, use DescribeFirewall .
Instance Attribute Summary collapse
-
#availability_zone ⇒ String
readonly
The ID of the Availability Zone where the firewall endpoint is located.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(availability_zone:) ⇒ AvailabilityZoneMappingProperty
constructor
A new instance of AvailabilityZoneMappingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(availability_zone:) ⇒ AvailabilityZoneMappingProperty
Returns a new instance of AvailabilityZoneMappingProperty.
707 708 709 710 |
# File 'network_firewall/cfn_firewall.rb', line 707 def initialize(availability_zone:) @availability_zone = availability_zone Jsii::Type.check_type(@availability_zone, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "availabilityZone") end |
Instance Attribute Details
#availability_zone ⇒ String (readonly)
The ID of the Availability Zone where the firewall endpoint is located.
For example, us-east-2a . The Availability Zone must be in the same Region as the transit gateway.
718 719 720 |
# File 'network_firewall/cfn_firewall.rb', line 718 def availability_zone @availability_zone end |
Class Method Details
.jsii_properties ⇒ Object
720 721 722 723 724 |
# File 'network_firewall/cfn_firewall.rb', line 720 def self.jsii_properties { :availability_zone => "availabilityZone", } end |
Instance Method Details
#to_jsii ⇒ Object
726 727 728 729 730 731 732 |
# File 'network_firewall/cfn_firewall.rb', line 726 def to_jsii result = {} result.merge!({ "availabilityZone" => @availability_zone, }) result.compact end |