Class: AWSCDK::ImageBuilder::CfnImagePipeline::ECRConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
image_builder/cfn_image_pipeline.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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(container_tags: nil, repository_name: nil) ⇒ ECRConfigurationProperty

Returns a new instance of ECRConfigurationProperty.

Parameters:

  • container_tags (Array<String>, nil) (defaults to: nil)

    Tags for Image Builder to apply to the output container image that Amazon Inspector scans.

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

    The name of the container repository that Amazon Inspector scans to identify findings for your container images.



756
757
758
759
760
761
# File 'image_builder/cfn_image_pipeline.rb', line 756

def initialize(container_tags: nil, repository_name: nil)
  @container_tags = 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_tagsArray<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.



769
770
771
# File 'image_builder/cfn_image_pipeline.rb', line 769

def container_tags
  @container_tags
end

#repository_nameString? (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.



776
777
778
# File 'image_builder/cfn_image_pipeline.rb', line 776

def repository_name
  @repository_name
end

Class Method Details

.jsii_propertiesObject



778
779
780
781
782
783
# File 'image_builder/cfn_image_pipeline.rb', line 778

def self.jsii_properties
  {
    :container_tags => "containerTags",
    :repository_name => "repositoryName",
  }
end

Instance Method Details

#to_jsiiObject



785
786
787
788
789
790
791
792
# File 'image_builder/cfn_image_pipeline.rb', line 785

def to_jsii
  result = {}
  result.merge!({
    "containerTags" => @container_tags,
    "repositoryName" => @repository_name,
  })
  result.compact
end