Class: AWSCDK::CodePipelineActions::InspectorScanVariables

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_pipeline_actions/inspector_scan_variables.rb

Overview

The CodePipeline variables emitted by the InspectorScan Action.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(highest_scanned_severity:) ⇒ InspectorScanVariables

Returns a new instance of InspectorScanVariables.

Parameters:

  • highest_scanned_severity (String)

    The highest severity output from the scan.



8
9
10
11
# File 'code_pipeline_actions/inspector_scan_variables.rb', line 8

def initialize(highest_scanned_severity:)
  @highest_scanned_severity = highest_scanned_severity
  Jsii::Type.check_type(@highest_scanned_severity, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "highestScannedSeverity")
end

Instance Attribute Details

#highest_scanned_severityString (readonly)

The highest severity output from the scan.

Valid values are medium | high | critical.

Returns:

  • (String)


18
19
20
# File 'code_pipeline_actions/inspector_scan_variables.rb', line 18

def highest_scanned_severity
  @highest_scanned_severity
end

Class Method Details

.jsii_propertiesObject



20
21
22
23
24
# File 'code_pipeline_actions/inspector_scan_variables.rb', line 20

def self.jsii_properties
  {
    :highest_scanned_severity => "highestScannedSeverity",
  }
end

Instance Method Details

#to_jsiiObject



26
27
28
29
30
31
32
# File 'code_pipeline_actions/inspector_scan_variables.rb', line 26

def to_jsii
  result = {}
  result.merge!({
    "highestScannedSeverity" => @highest_scanned_severity,
  })
  result.compact
end