Class: AWSCDK::ImageBuilder::CfnImage::ECRConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ImageBuilder::CfnImage::ECRConfigurationProperty
- Defined in:
- image_builder/cfn_image.rb
Overview
Settings that Image Builder uses to configure the ECR repository and the output container images that Amazon Inspector scans.
Instance Attribute Summary collapse
-
#container_tags ⇒ Array<String>?
readonly
Tags for Image Builder to apply to the output container image that Amazon Inspector scans.
-
#repository_name ⇒ String?
readonly
The name of the container repository that Amazon Inspector scans to identify findings for your container images.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(container_tags: nil, repository_name: nil) ⇒ ECRConfigurationProperty
constructor
A new instance of ECRConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(container_tags: nil, repository_name: nil) ⇒ ECRConfigurationProperty
Returns a new instance of ECRConfigurationProperty.
785 786 787 788 789 790 |
# File 'image_builder/cfn_image.rb', line 785 def initialize(container_tags: nil, repository_name: nil) @container_tags = Jsii::Type.check_type(@container_tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "containerTags") unless @container_tags.nil? @repository_name = repository_name Jsii::Type.check_type(@repository_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "repositoryName") unless @repository_name.nil? end |
Instance Attribute Details
#container_tags ⇒ Array<String>? (readonly)
Tags for Image Builder to apply to the output container image that Amazon Inspector scans.
Tags can help you identify and manage your scanned images.
798 799 800 |
# File 'image_builder/cfn_image.rb', line 798 def @container_tags end |
#repository_name ⇒ String? (readonly)
The name of the container repository that Amazon Inspector scans to identify findings for your container images.
The name includes the path for the repository location. If you don’t provide this information, Image Builder creates a repository in your account named image-builder-image-scanning-repository for vulnerability scans of your output container images.
805 806 807 |
# File 'image_builder/cfn_image.rb', line 805 def repository_name @repository_name end |
Class Method Details
.jsii_properties ⇒ Object
807 808 809 810 811 812 |
# File 'image_builder/cfn_image.rb', line 807 def self.jsii_properties { :container_tags => "containerTags", :repository_name => "repositoryName", } end |
Instance Method Details
#to_jsii ⇒ Object
814 815 816 817 818 819 820 821 |
# File 'image_builder/cfn_image.rb', line 814 def to_jsii result = {} result.merge!({ "containerTags" => @container_tags, "repositoryName" => @repository_name, }) result.compact end |