Class: AWSCDK::ECR::CfnRegistryScanningConfigurationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECR::CfnRegistryScanningConfigurationProps
- Defined in:
- ecr/cfn_registry_scanning_configuration_props.rb
Overview
Properties for defining a CfnRegistryScanningConfiguration.
Instance Attribute Summary collapse
-
#rules ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::ECR::CfnRegistryScanningConfiguration::ScanningRuleProperty>
readonly
The scanning rules associated with the registry.
-
#scan_type ⇒ String
readonly
The type of scanning configured for the registry.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(rules:, scan_type:) ⇒ CfnRegistryScanningConfigurationProps
constructor
A new instance of CfnRegistryScanningConfigurationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(rules:, scan_type:) ⇒ CfnRegistryScanningConfigurationProps
Returns a new instance of CfnRegistryScanningConfigurationProps.
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
#rules ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::ECR::CfnRegistryScanningConfiguration::ScanningRuleProperty> (readonly)
The scanning rules associated with the registry.
22 23 24 |
# File 'ecr/cfn_registry_scanning_configuration_props.rb', line 22 def rules @rules end |
#scan_type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |