Class: AWSCDK::SecurityHub::CfnAutomationRule::AutomationRulesFindingFieldsUpdateProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityHub::CfnAutomationRule::AutomationRulesFindingFieldsUpdateProperty
- Defined in:
- security_hub/cfn_automation_rule.rb
Overview
Identifies the finding fields that the automation rule action updates when a finding matches the defined criteria.
Instance Attribute Summary collapse
-
#confidence ⇒ Numeric?
readonly
The rule action updates the
Confidencefield of a finding. -
#criticality ⇒ Numeric?
readonly
The rule action updates the
Criticalityfield of a finding. -
#note ⇒ AWSCDK::IResolvable, ...
readonly
The rule action will update the
Notefield of a finding. -
#related_findings ⇒ AWSCDK::IResolvable, ...
readonly
The rule action will update the
RelatedFindingsfield of a finding. -
#severity ⇒ AWSCDK::IResolvable, ...
readonly
The rule action will update the
Severityfield of a finding. -
#types ⇒ Array<String>?
readonly
The rule action updates the
Typesfield of a finding. -
#user_defined_fields ⇒ AWSCDK::IResolvable, ...
readonly
The rule action updates the
UserDefinedFieldsfield of a finding. -
#verification_state ⇒ String?
readonly
The rule action updates the
VerificationStatefield of a finding. -
#workflow ⇒ AWSCDK::IResolvable, ...
readonly
The rule action will update the
Workflowfield of a finding.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(confidence: nil, criticality: nil, note: nil, related_findings: nil, severity: nil, types: nil, user_defined_fields: nil, verification_state: nil, workflow: nil) ⇒ AutomationRulesFindingFieldsUpdateProperty
constructor
A new instance of AutomationRulesFindingFieldsUpdateProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(confidence: nil, criticality: nil, note: nil, related_findings: nil, severity: nil, types: nil, user_defined_fields: nil, verification_state: nil, workflow: nil) ⇒ AutomationRulesFindingFieldsUpdateProperty
Returns a new instance of AutomationRulesFindingFieldsUpdateProperty.
686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 |
# File 'security_hub/cfn_automation_rule.rb', line 686 def initialize(confidence: nil, criticality: nil, note: nil, related_findings: nil, severity: nil, types: nil, user_defined_fields: nil, verification_state: nil, workflow: nil) @confidence = confidence Jsii::Type.check_type(@confidence, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "confidence") unless @confidence.nil? @criticality = criticality Jsii::Type.check_type(@criticality, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "criticality") unless @criticality.nil? @note = note.is_a?(Hash) ? ::AWSCDK::SecurityHub::CfnAutomationRule::NoteUpdateProperty.new(**note.transform_keys(&:to_sym)) : note Jsii::Type.check_type(@note, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZWN1cml0eWh1Yi5DZm5BdXRvbWF0aW9uUnVsZS5Ob3RlVXBkYXRlUHJvcGVydHkifV19fQ==")), "note") unless @note.nil? @related_findings = Jsii::Type.check_type(@related_findings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VjdXJpdHlodWIuQ2ZuQXV0b21hdGlvblJ1bGUuUmVsYXRlZEZpbmRpbmdQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "relatedFindings") unless @related_findings.nil? @severity = severity.is_a?(Hash) ? ::AWSCDK::SecurityHub::CfnAutomationRule::SeverityUpdateProperty.new(**severity.transform_keys(&:to_sym)) : severity Jsii::Type.check_type(@severity, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZWN1cml0eWh1Yi5DZm5BdXRvbWF0aW9uUnVsZS5TZXZlcml0eVVwZGF0ZVByb3BlcnR5In1dfX0=")), "severity") unless @severity.nil? @types = types Jsii::Type.check_type(@types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "types") unless @types.nil? @user_defined_fields = user_defined_fields Jsii::Type.check_type(@user_defined_fields, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "userDefinedFields") unless @user_defined_fields.nil? @verification_state = verification_state Jsii::Type.check_type(@verification_state, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "verificationState") unless @verification_state.nil? @workflow = workflow.is_a?(Hash) ? ::AWSCDK::SecurityHub::CfnAutomationRule::WorkflowUpdateProperty.new(**workflow.transform_keys(&:to_sym)) : workflow Jsii::Type.check_type(@workflow, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZWN1cml0eWh1Yi5DZm5BdXRvbWF0aW9uUnVsZS5Xb3JrZmxvd1VwZGF0ZVByb3BlcnR5In1dfX0=")), "workflow") unless @workflow.nil? end |
Instance Attribute Details
#confidence ⇒ Numeric? (readonly)
The rule action updates the Confidence field of a finding.
711 712 713 |
# File 'security_hub/cfn_automation_rule.rb', line 711 def confidence @confidence end |
#criticality ⇒ Numeric? (readonly)
The rule action updates the Criticality field of a finding.
716 717 718 |
# File 'security_hub/cfn_automation_rule.rb', line 716 def criticality @criticality end |
#note ⇒ AWSCDK::IResolvable, ... (readonly)
The rule action will update the Note field of a finding.
721 722 723 |
# File 'security_hub/cfn_automation_rule.rb', line 721 def note @note end |
#related_findings ⇒ AWSCDK::IResolvable, ... (readonly)
The rule action will update the RelatedFindings field of a finding.
726 727 728 |
# File 'security_hub/cfn_automation_rule.rb', line 726 def @related_findings end |
#severity ⇒ AWSCDK::IResolvable, ... (readonly)
The rule action will update the Severity field of a finding.
731 732 733 |
# File 'security_hub/cfn_automation_rule.rb', line 731 def severity @severity end |
#types ⇒ Array<String>? (readonly)
The rule action updates the Types field of a finding.
736 737 738 |
# File 'security_hub/cfn_automation_rule.rb', line 736 def types @types end |
#user_defined_fields ⇒ AWSCDK::IResolvable, ... (readonly)
The rule action updates the UserDefinedFields field of a finding.
741 742 743 |
# File 'security_hub/cfn_automation_rule.rb', line 741 def user_defined_fields @user_defined_fields end |
#verification_state ⇒ String? (readonly)
The rule action updates the VerificationState field of a finding.
746 747 748 |
# File 'security_hub/cfn_automation_rule.rb', line 746 def verification_state @verification_state end |
#workflow ⇒ AWSCDK::IResolvable, ... (readonly)
The rule action will update the Workflow field of a finding.
751 752 753 |
# File 'security_hub/cfn_automation_rule.rb', line 751 def workflow @workflow end |
Class Method Details
.jsii_properties ⇒ Object
753 754 755 756 757 758 759 760 761 762 763 764 765 |
# File 'security_hub/cfn_automation_rule.rb', line 753 def self.jsii_properties { :confidence => "confidence", :criticality => "criticality", :note => "note", :related_findings => "relatedFindings", :severity => "severity", :types => "types", :user_defined_fields => "userDefinedFields", :verification_state => "verificationState", :workflow => "workflow", } end |
Instance Method Details
#to_jsii ⇒ Object
767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 |
# File 'security_hub/cfn_automation_rule.rb', line 767 def to_jsii result = {} result.merge!({ "confidence" => @confidence, "criticality" => @criticality, "note" => @note, "relatedFindings" => @related_findings, "severity" => @severity, "types" => @types, "userDefinedFields" => @user_defined_fields, "verificationState" => @verification_state, "workflow" => @workflow, }) result.compact end |