Class: AWSCDK::NetworkFirewall::CfnFirewall::AvailabilityZoneMappingProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(availability_zone:) ⇒ AvailabilityZoneMappingProperty

Returns a new instance of AvailabilityZoneMappingProperty.

Parameters:

  • availability_zone (String)

    The ID of the Availability Zone where the firewall endpoint is located.



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_zoneString (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_propertiesObject



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_jsiiObject



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