Class: AWSCDK::NetworkFirewall::CfnFirewallPolicy::StatelessRuleGroupReferenceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
network_firewall/cfn_firewall_policy.rb

Overview

Identifier for a single stateless rule group, used in a firewall policy to refer to the rule group.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(priority:, resource_arn:) ⇒ StatelessRuleGroupReferenceProperty

Returns a new instance of StatelessRuleGroupReferenceProperty.

Parameters:

  • priority (Numeric)

    An integer setting that indicates the order in which to run the stateless rule groups in a single firewall policy.

  • resource_arn (String)

    The Amazon Resource Name (ARN) of the stateless rule group.



1165
1166
1167
1168
1169
1170
# File 'network_firewall/cfn_firewall_policy.rb', line 1165

def initialize(priority:, resource_arn:)
  @priority = priority
  Jsii::Type.check_type(@priority, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "priority")
  @resource_arn = resource_arn
  Jsii::Type.check_type(@resource_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceArn")
end

Instance Attribute Details

#priorityNumeric (readonly)

An integer setting that indicates the order in which to run the stateless rule groups in a single firewall policy.

Network Firewall applies each stateless rule group to a packet starting with the group that has the lowest priority setting. You must ensure that the priority settings are unique within each policy.



1178
1179
1180
# File 'network_firewall/cfn_firewall_policy.rb', line 1178

def priority
  @priority
end

#resource_arnString (readonly)

The Amazon Resource Name (ARN) of the stateless rule group.



1183
1184
1185
# File 'network_firewall/cfn_firewall_policy.rb', line 1183

def resource_arn
  @resource_arn
end

Class Method Details

.jsii_propertiesObject



1185
1186
1187
1188
1189
1190
# File 'network_firewall/cfn_firewall_policy.rb', line 1185

def self.jsii_properties
  {
    :priority => "priority",
    :resource_arn => "resourceArn",
  }
end

Instance Method Details

#to_jsiiObject



1192
1193
1194
1195
1196
1197
1198
1199
# File 'network_firewall/cfn_firewall_policy.rb', line 1192

def to_jsii
  result = {}
  result.merge!({
    "priority" => @priority,
    "resourceArn" => @resource_arn,
  })
  result.compact
end