Class: AWSCDK::ImageBuilder::CfnImage::ECRConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

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.



785
786
787
788
789
790
# File 'image_builder/cfn_image.rb', line 785

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.



798
799
800
# File 'image_builder/cfn_image.rb', line 798

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.



805
806
807
# File 'image_builder/cfn_image.rb', line 805

def repository_name
  @repository_name
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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