Class: AWSCDK::CloudAssemblySchema::DockerImageAsset

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_assembly_schema/docker_image_asset.rb

Overview

A file asset.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destinations:, source:, display_name: nil) ⇒ DockerImageAsset

Returns a new instance of DockerImageAsset.

Parameters:



10
11
12
13
14
15
16
17
# File 'cloud_assembly_schema/docker_image_asset.rb', line 10

def initialize(destinations:, source:, display_name: nil)
  @destinations = destinations.is_a?(Hash) ? destinations.transform_values { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CloudAssemblySchema::DockerImageDestination.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : destinations
  Jsii::Type.check_type(@destinations, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmNsb3VkX2Fzc2VtYmx5X3NjaGVtYS5Eb2NrZXJJbWFnZURlc3RpbmF0aW9uIn0sImtpbmQiOiJtYXAifX0=")), "destinations")
  @source = source.is_a?(Hash) ? ::AWSCDK::CloudAssemblySchema::DockerImageSource.new(**source.transform_keys(&:to_sym)) : source
  Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5jbG91ZF9hc3NlbWJseV9zY2hlbWEuRG9ja2VySW1hZ2VTb3VyY2UifQ==")), "source")
  @display_name = display_name
  Jsii::Type.check_type(@display_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "displayName") unless @display_name.nil?
end

Instance Attribute Details

#destinationsHash{String => AWSCDK::CloudAssemblySchema::DockerImageDestination} (readonly)

Destinations for this container asset.



22
23
24
# File 'cloud_assembly_schema/docker_image_asset.rb', line 22

def destinations
  @destinations
end

#display_nameString? (readonly)

Note:

Default: - The identifier will be used as the display name

A display name for this asset.

Returns:

  • (String, nil)


31
32
33
# File 'cloud_assembly_schema/docker_image_asset.rb', line 31

def display_name
  @display_name
end

#sourceAWSCDK::CloudAssemblySchema::DockerImageSource (readonly)

Source description for container assets.



26
27
28
# File 'cloud_assembly_schema/docker_image_asset.rb', line 26

def source
  @source
end

Class Method Details

.jsii_propertiesObject



33
34
35
36
37
38
39
# File 'cloud_assembly_schema/docker_image_asset.rb', line 33

def self.jsii_properties
  {
    :destinations => "destinations",
    :source => "source",
    :display_name => "displayName",
  }
end

Instance Method Details

#to_jsiiObject



41
42
43
44
45
46
47
48
49
# File 'cloud_assembly_schema/docker_image_asset.rb', line 41

def to_jsii
  result = {}
  result.merge!({
    "destinations" => @destinations,
    "source" => @source,
    "displayName" => @display_name,
  })
  result.compact
end