Class: AWSCDK::ECR::CfnRepository::ImageScanningConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECR::CfnRepository::ImageScanningConfigurationProperty
- Defined in:
- ecr/cfn_repository.rb
Overview
The image scanning configuration for a repository.
Instance Attribute Summary collapse
-
#scan_on_push ⇒ Boolean, ...
readonly
The setting that determines whether images are scanned after being pushed to a repository.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(scan_on_push: nil) ⇒ ImageScanningConfigurationProperty
constructor
A new instance of ImageScanningConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(scan_on_push: nil) ⇒ ImageScanningConfigurationProperty
Returns a new instance of ImageScanningConfigurationProperty.
721 722 723 724 |
# File 'ecr/cfn_repository.rb', line 721 def initialize(scan_on_push: nil) @scan_on_push = scan_on_push Jsii::Type.check_type(@scan_on_push, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "scanOnPush") unless @scan_on_push.nil? end |
Instance Attribute Details
#scan_on_push ⇒ Boolean, ... (readonly)
The setting that determines whether images are scanned after being pushed to a repository.
If set to true , images will be scanned after being pushed. If this parameter is not specified, it will default to false and images will not be scanned unless a scan is manually started.
732 733 734 |
# File 'ecr/cfn_repository.rb', line 732 def scan_on_push @scan_on_push end |
Class Method Details
.jsii_properties ⇒ Object
734 735 736 737 738 |
# File 'ecr/cfn_repository.rb', line 734 def self.jsii_properties { :scan_on_push => "scanOnPush", } end |
Instance Method Details
#to_jsii ⇒ Object
740 741 742 743 744 745 746 |
# File 'ecr/cfn_repository.rb', line 740 def to_jsii result = {} result.merge!({ "scanOnPush" => @scan_on_push, }) result.compact end |