Class: AWSCDK::Inspectorv2::CfnCodeSecurityScanConfigurationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Inspectorv2::CfnCodeSecurityScanConfigurationProps
- Defined in:
- inspectorv2/cfn_code_security_scan_configuration_props.rb
Overview
Properties for defining a CfnCodeSecurityScanConfiguration.
Instance Attribute Summary collapse
-
#configuration ⇒ AWSCDK::IResolvable, ...
readonly
The configuration settings for the code security scan.
-
#level ⇒ String?
readonly
The security level for the scan configuration.
-
#name ⇒ String?
readonly
The name of the scan configuration.
-
#scope_settings ⇒ AWSCDK::IResolvable, ...
readonly
The scope settings that define which repositories will be scanned.
-
#tags ⇒ Hash{String => String}?
readonly
The tags to apply to the scan configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(configuration: nil, level: nil, name: nil, scope_settings: nil, tags: nil) ⇒ CfnCodeSecurityScanConfigurationProps
constructor
A new instance of CfnCodeSecurityScanConfigurationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(configuration: nil, level: nil, name: nil, scope_settings: nil, tags: nil) ⇒ CfnCodeSecurityScanConfigurationProps
Returns a new instance of CfnCodeSecurityScanConfigurationProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'inspectorv2/cfn_code_security_scan_configuration_props.rb', line 14 def initialize(configuration: nil, level: nil, name: nil, scope_settings: nil, tags: nil) @configuration = configuration.is_a?(Hash) ? ::AWSCDK::Inspectorv2::CfnCodeSecurityScanConfiguration::CodeSecurityScanConfigurationProperty.new(**configuration.transform_keys(&:to_sym)) : configuration Jsii::Type.check_type(@configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pbnNwZWN0b3J2Mi5DZm5Db2RlU2VjdXJpdHlTY2FuQ29uZmlndXJhdGlvbi5Db2RlU2VjdXJpdHlTY2FuQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "configuration") unless @configuration.nil? @level = level Jsii::Type.check_type(@level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "level") unless @level.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @scope_settings = scope_settings.is_a?(Hash) ? ::AWSCDK::Inspectorv2::CfnCodeSecurityScanConfiguration::ScopeSettingsProperty.new(**scope_settings.transform_keys(&:to_sym)) : scope_settings Jsii::Type.check_type(@scope_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pbnNwZWN0b3J2Mi5DZm5Db2RlU2VjdXJpdHlTY2FuQ29uZmlndXJhdGlvbi5TY29wZVNldHRpbmdzUHJvcGVydHkifV19fQ==")), "scopeSettings") unless @scope_settings.nil? @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration settings for the code security scan.
31 32 33 |
# File 'inspectorv2/cfn_code_security_scan_configuration_props.rb', line 31 def configuration @configuration end |
#level ⇒ String? (readonly)
The security level for the scan configuration.
36 37 38 |
# File 'inspectorv2/cfn_code_security_scan_configuration_props.rb', line 36 def level @level end |
#name ⇒ String? (readonly)
The name of the scan configuration.
41 42 43 |
# File 'inspectorv2/cfn_code_security_scan_configuration_props.rb', line 41 def name @name end |
#scope_settings ⇒ AWSCDK::IResolvable, ... (readonly)
The scope settings that define which repositories will be scanned.
46 47 48 |
# File 'inspectorv2/cfn_code_security_scan_configuration_props.rb', line 46 def scope_settings @scope_settings end |
#tags ⇒ Hash{String => String}? (readonly)
The tags to apply to the scan configuration.
51 52 53 |
# File 'inspectorv2/cfn_code_security_scan_configuration_props.rb', line 51 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'inspectorv2/cfn_code_security_scan_configuration_props.rb', line 53 def self.jsii_properties { :configuration => "configuration", :level => "level", :name => "name", :scope_settings => "scopeSettings", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 |
# File 'inspectorv2/cfn_code_security_scan_configuration_props.rb', line 63 def to_jsii result = {} result.merge!({ "configuration" => @configuration, "level" => @level, "name" => @name, "scopeSettings" => @scope_settings, "tags" => @tags, }) result.compact end |