Class: AWSCDK::Inspectorv2::CfnCodeSecurityScanConfiguration::ScopeSettingsProperty

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

Overview

The scope settings that define which repositories will be scanned.

If the ScopeSetting parameter is ALL the scan configuration applies to all existing and future projects imported into Amazon Inspector .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project_selection_scope: nil) ⇒ ScopeSettingsProperty

Returns a new instance of ScopeSettingsProperty.

Parameters:

  • project_selection_scope (String, nil) (defaults to: nil)

    The scope of projects to be selected for scanning within the integrated repositories.



703
704
705
706
# File 'inspectorv2/cfn_code_security_scan_configuration.rb', line 703

def initialize(project_selection_scope: nil)
  @project_selection_scope = project_selection_scope
  Jsii::Type.check_type(@project_selection_scope, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "projectSelectionScope") unless @project_selection_scope.nil?
end

Instance Attribute Details

#project_selection_scopeString? (readonly)

The scope of projects to be selected for scanning within the integrated repositories.



712
713
714
# File 'inspectorv2/cfn_code_security_scan_configuration.rb', line 712

def project_selection_scope
  @project_selection_scope
end

Class Method Details

.jsii_propertiesObject



714
715
716
717
718
# File 'inspectorv2/cfn_code_security_scan_configuration.rb', line 714

def self.jsii_properties
  {
    :project_selection_scope => "projectSelectionScope",
  }
end

Instance Method Details

#to_jsiiObject



720
721
722
723
724
725
726
# File 'inspectorv2/cfn_code_security_scan_configuration.rb', line 720

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