Class: AWSCDK::AssetManifestDockerImageDestination

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
asset_manifest_docker_image_destination.rb

Overview

The destination for a docker image asset, when it is given to the AssetManifestBuilder.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repository_name:, docker_tag_prefix: nil, role: nil) ⇒ AssetManifestDockerImageDestination

Returns a new instance of AssetManifestDockerImageDestination.

Parameters:

  • repository_name (String)

    Repository name where the docker image asset should be written.

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

    Prefix to add to the asset hash to make the Docker image tag.

  • role (AWSCDK::RoleOptions, nil) (defaults to: nil)

    Role to use to perform the upload.



10
11
12
13
14
15
16
17
# File 'asset_manifest_docker_image_destination.rb', line 10

def initialize(repository_name:, docker_tag_prefix: nil, role: nil)
  @repository_name = repository_name
  Jsii::Type.check_type(@repository_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "repositoryName")
  @docker_tag_prefix = docker_tag_prefix
  Jsii::Type.check_type(@docker_tag_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dockerTagPrefix") unless @docker_tag_prefix.nil?
  @role = role.is_a?(Hash) ? ::AWSCDK::RoleOptions.new(**role.transform_keys(&:to_sym)) : role
  Jsii::Type.check_type(@role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5Sb2xlT3B0aW9ucyJ9")), "role") unless @role.nil?
end

Instance Attribute Details

#docker_tag_prefixString? (readonly)

Note:

Default: ''

Prefix to add to the asset hash to make the Docker image tag.

Returns:

  • (String, nil)


27
28
29
# File 'asset_manifest_docker_image_destination.rb', line 27

def docker_tag_prefix
  @docker_tag_prefix
end

#repository_nameString (readonly)

Repository name where the docker image asset should be written.

Returns:

  • (String)


22
23
24
# File 'asset_manifest_docker_image_destination.rb', line 22

def repository_name
  @repository_name
end

#roleAWSCDK::RoleOptions? (readonly)

Note:

Default: - No role

Role to use to perform the upload.

Returns:



32
33
34
# File 'asset_manifest_docker_image_destination.rb', line 32

def role
  @role
end

Class Method Details

.jsii_propertiesObject



34
35
36
37
38
39
40
# File 'asset_manifest_docker_image_destination.rb', line 34

def self.jsii_properties
  {
    :repository_name => "repositoryName",
    :docker_tag_prefix => "dockerTagPrefix",
    :role => "role",
  }
end

Instance Method Details

#to_jsiiObject



42
43
44
45
46
47
48
49
50
# File 'asset_manifest_docker_image_destination.rb', line 42

def to_jsii
  result = {}
  result.merge!({
    "repositoryName" => @repository_name,
    "dockerTagPrefix" => @docker_tag_prefix,
    "role" => @role,
  })
  result.compact
end