Class: AWSCDK::Inspectorv2::CfnCisScanConfigurationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Inspectorv2::CfnCisScanConfigurationProps
- Defined in:
- inspectorv2/cfn_cis_scan_configuration_props.rb
Overview
Properties for defining a CfnCisScanConfiguration.
Instance Attribute Summary collapse
-
#scan_name ⇒ String
readonly
The name of the CIS scan configuration.
-
#schedule ⇒ AWSCDK::IResolvable, AWSCDK::Inspectorv2::CfnCisScanConfiguration::ScheduleProperty
readonly
The CIS scan configuration's schedule.
-
#security_level ⇒ String
readonly
The CIS scan configuration's CIS Benchmark level.
-
#tags ⇒ Hash{String => String}?
readonly
The CIS scan configuration's tags.
-
#targets ⇒ AWSCDK::IResolvable, AWSCDK::Inspectorv2::CfnCisScanConfiguration::CisTargetsProperty
readonly
The CIS scan configuration's targets.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(scan_name:, schedule:, security_level:, targets:, tags: nil) ⇒ CfnCisScanConfigurationProps
constructor
A new instance of CfnCisScanConfigurationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(scan_name:, schedule:, security_level:, targets:, tags: nil) ⇒ CfnCisScanConfigurationProps
Returns a new instance of CfnCisScanConfigurationProps.
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 = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#scan_name ⇒ String (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 |
#schedule ⇒ AWSCDK::IResolvable, AWSCDK::Inspectorv2::CfnCisScanConfiguration::ScheduleProperty (readonly)
The CIS scan configuration's schedule.
36 37 38 |
# File 'inspectorv2/cfn_cis_scan_configuration_props.rb', line 36 def schedule @schedule end |
#security_level ⇒ String (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 |
#tags ⇒ Hash{String => String}? (readonly)
The CIS scan configuration's tags.
51 52 53 |
# File 'inspectorv2/cfn_cis_scan_configuration_props.rb', line 51 def @tags end |
#targets ⇒ AWSCDK::IResolvable, AWSCDK::Inspectorv2::CfnCisScanConfiguration::CisTargetsProperty (readonly)
The CIS scan configuration's targets.
46 47 48 |
# File 'inspectorv2/cfn_cis_scan_configuration_props.rb', line 46 def targets @targets end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |