Class: AWSCDK::Inspectorv2::CfnCisScanConfigurationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
inspectorv2/cfn_cis_scan_configuration_props.rb

Overview

Properties for defining a CfnCisScanConfiguration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scan_name:, schedule:, security_level:, targets:, tags: nil) ⇒ CfnCisScanConfigurationProps

Returns a new instance of CfnCisScanConfigurationProps.

Parameters:



14
15
16
17
18
19
20
21
22
23
24
25
# File 'inspectorv2/cfn_cis_scan_configuration_props.rb', line 14

def initialize(scan_name:, schedule:, security_level:, targets:, tags: nil)
  @scan_name = scan_name
  Jsii::Type.check_type(@scan_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scanName")
  @schedule = schedule.is_a?(Hash) ? ::AWSCDK::Inspectorv2::CfnCisScanConfiguration::ScheduleProperty.new(**schedule.transform_keys(&:to_sym)) : schedule
  Jsii::Type.check_type(@schedule, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pbnNwZWN0b3J2Mi5DZm5DaXNTY2FuQ29uZmlndXJhdGlvbi5TY2hlZHVsZVByb3BlcnR5In1dfX0=")), "schedule")
  @security_level = security_level
  Jsii::Type.check_type(@security_level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "securityLevel")
  @targets = targets.is_a?(Hash) ? ::AWSCDK::Inspectorv2::CfnCisScanConfiguration::CisTargetsProperty.new(**targets.transform_keys(&:to_sym)) : targets
  Jsii::Type.check_type(@targets, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pbnNwZWN0b3J2Mi5DZm5DaXNTY2FuQ29uZmlndXJhdGlvbi5DaXNUYXJnZXRzUHJvcGVydHkifV19fQ==")), "targets")
  @tags = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#scan_nameString (readonly)

The name of the CIS scan configuration.



31
32
33
# File 'inspectorv2/cfn_cis_scan_configuration_props.rb', line 31

def scan_name
  @scan_name
end

#security_levelString (readonly)

The CIS scan configuration's CIS Benchmark level.



41
42
43
# File 'inspectorv2/cfn_cis_scan_configuration_props.rb', line 41

def security_level
  @security_level
end

#tagsHash{String => String}? (readonly)

The CIS scan configuration's tags.



51
52
53
# File 'inspectorv2/cfn_cis_scan_configuration_props.rb', line 51

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



53
54
55
56
57
58
59
60
61
# File 'inspectorv2/cfn_cis_scan_configuration_props.rb', line 53

def self.jsii_properties
  {
    :scan_name => "scanName",
    :schedule => "schedule",
    :security_level => "securityLevel",
    :targets => "targets",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



63
64
65
66
67
68
69
70
71
72
73
# File 'inspectorv2/cfn_cis_scan_configuration_props.rb', line 63

def to_jsii
  result = {}
  result.merge!({
    "scanName" => @scan_name,
    "schedule" => @schedule,
    "securityLevel" => @security_level,
    "targets" => @targets,
    "tags" => @tags,
  })
  result.compact
end