Class: AWSCDK::ECR::CfnRegistryScanningConfigurationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ecr/cfn_registry_scanning_configuration_props.rb

Overview

Properties for defining a CfnRegistryScanningConfiguration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rules:, scan_type:) ⇒ CfnRegistryScanningConfigurationProps

Returns a new instance of CfnRegistryScanningConfigurationProps.

Parameters:



11
12
13
14
15
16
# File 'ecr/cfn_registry_scanning_configuration_props.rb', line 11

def initialize(rules:, scan_type:)
  @rules = rules
  Jsii::Type.check_type(@rules, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNyLkNmblJlZ2lzdHJ5U2Nhbm5pbmdDb25maWd1cmF0aW9uLlNjYW5uaW5nUnVsZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "rules")
  @scan_type = scan_type
  Jsii::Type.check_type(@scan_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scanType")
end

Instance Attribute Details

#scan_typeString (readonly)

The type of scanning configured for the registry.



27
28
29
# File 'ecr/cfn_registry_scanning_configuration_props.rb', line 27

def scan_type
  @scan_type
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'ecr/cfn_registry_scanning_configuration_props.rb', line 29

def self.jsii_properties
  {
    :rules => "rules",
    :scan_type => "scanType",
  }
end

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'ecr/cfn_registry_scanning_configuration_props.rb', line 36

def to_jsii
  result = {}
  result.merge!({
    "rules" => @rules,
    "scanType" => @scan_type,
  })
  result.compact
end