Class: AWSCDK::SecurityHub::CfnAutomationRule::AutomationRulesActionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
security_hub/cfn_automation_rule.rb

Overview

One or more actions that AWS Security Hub CSPM takes when a finding matches the defined criteria of a rule.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(finding_fields_update:, type:) ⇒ AutomationRulesActionProperty

Returns a new instance of AutomationRulesActionProperty.

Parameters:



636
637
638
639
640
641
# File 'security_hub/cfn_automation_rule.rb', line 636

def initialize(finding_fields_update:, type:)
  @finding_fields_update = finding_fields_update.is_a?(Hash) ? ::AWSCDK::SecurityHub::CfnAutomationRule::AutomationRulesFindingFieldsUpdateProperty.new(**finding_fields_update.transform_keys(&:to_sym)) : finding_fields_update
  Jsii::Type.check_type(@finding_fields_update, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZWN1cml0eWh1Yi5DZm5BdXRvbWF0aW9uUnVsZS5BdXRvbWF0aW9uUnVsZXNGaW5kaW5nRmllbGRzVXBkYXRlUHJvcGVydHkifV19fQ==")), "findingFieldsUpdate")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
end

Instance Attribute Details

#typeString (readonly)

Specifies the type of action that Security Hub CSPM takes when a finding matches the defined criteria of a rule.



652
653
654
# File 'security_hub/cfn_automation_rule.rb', line 652

def type
  @type
end

Class Method Details

.jsii_propertiesObject



654
655
656
657
658
659
# File 'security_hub/cfn_automation_rule.rb', line 654

def self.jsii_properties
  {
    :finding_fields_update => "findingFieldsUpdate",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



661
662
663
664
665
666
667
668
# File 'security_hub/cfn_automation_rule.rb', line 661

def to_jsii
  result = {}
  result.merge!({
    "findingFieldsUpdate" => @finding_fields_update,
    "type" => @type,
  })
  result.compact
end