Class: AWSCDK::SecurityHub::CfnAutomationRule::AutomationRulesActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityHub::CfnAutomationRule::AutomationRulesActionProperty
- 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
-
#finding_fields_update ⇒ AWSCDK::IResolvable, AWSCDK::SecurityHub::CfnAutomationRule::AutomationRulesFindingFieldsUpdateProperty
readonly
Specifies that the automation rule action is an update to a finding field.
-
#type ⇒ String
readonly
Specifies the type of action that Security Hub CSPM takes when a finding matches the defined criteria of a rule.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(finding_fields_update:, type:) ⇒ AutomationRulesActionProperty
constructor
A new instance of AutomationRulesActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(finding_fields_update:, type:) ⇒ AutomationRulesActionProperty
Returns a new instance of AutomationRulesActionProperty.
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
#finding_fields_update ⇒ AWSCDK::IResolvable, AWSCDK::SecurityHub::CfnAutomationRule::AutomationRulesFindingFieldsUpdateProperty (readonly)
Specifies that the automation rule action is an update to a finding field.
647 648 649 |
# File 'security_hub/cfn_automation_rule.rb', line 647 def finding_fields_update @finding_fields_update end |
#type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |