Class: AWSCDK::SecurityHub::CfnAutomationRuleV2::OcsfMapFilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityHub::CfnAutomationRuleV2::OcsfMapFilterProperty
- Defined in:
- security_hub/cfn_automation_rule_v2.rb
Overview
Enables filtering of security findings based on map field values in OCSF.
Instance Attribute Summary collapse
-
#field_name ⇒ String
readonly
The name of the field.
-
#filter ⇒ AWSCDK::IResolvable, AWSCDK::SecurityHub::CfnAutomationRuleV2::MapFilterProperty
readonly
Enables filtering of security findings based on map field values in OCSF.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(field_name:, filter:) ⇒ OcsfMapFilterProperty
constructor
A new instance of OcsfMapFilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(field_name:, filter:) ⇒ OcsfMapFilterProperty
Returns a new instance of OcsfMapFilterProperty.
1262 1263 1264 1265 1266 1267 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 1262 def initialize(field_name:, filter:) @field_name = field_name Jsii::Type.check_type(@field_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldName") @filter = filter.is_a?(Hash) ? ::AWSCDK::SecurityHub::CfnAutomationRuleV2::MapFilterProperty.new(**filter.transform_keys(&:to_sym)) : filter Jsii::Type.check_type(@filter, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZWN1cml0eWh1Yi5DZm5BdXRvbWF0aW9uUnVsZVYyLk1hcEZpbHRlclByb3BlcnR5In1dfX0=")), "filter") end |
Instance Attribute Details
#field_name ⇒ String (readonly)
The name of the field.
1273 1274 1275 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 1273 def field_name @field_name end |
#filter ⇒ AWSCDK::IResolvable, AWSCDK::SecurityHub::CfnAutomationRuleV2::MapFilterProperty (readonly)
Enables filtering of security findings based on map field values in OCSF.
1278 1279 1280 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 1278 def filter @filter end |
Class Method Details
.jsii_properties ⇒ Object
1280 1281 1282 1283 1284 1285 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 1280 def self.jsii_properties { :field_name => "fieldName", :filter => "filter", } end |
Instance Method Details
#to_jsii ⇒ Object
1287 1288 1289 1290 1291 1292 1293 1294 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 1287 def to_jsii result = {} result.merge!({ "fieldName" => @field_name, "filter" => @filter, }) result.compact end |