Class: AWSCDK::AssetManifestDockerImageDestination
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AssetManifestDockerImageDestination
- 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
-
#docker_tag_prefix ⇒ String?
readonly
Prefix to add to the asset hash to make the Docker image tag.
-
#repository_name ⇒ String
readonly
Repository name where the docker image asset should be written.
-
#role ⇒ AWSCDK::RoleOptions?
readonly
Role to use to perform the upload.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(repository_name:, docker_tag_prefix: nil, role: nil) ⇒ AssetManifestDockerImageDestination
constructor
A new instance of AssetManifestDockerImageDestination.
- #to_jsii ⇒ Object
Constructor Details
#initialize(repository_name:, docker_tag_prefix: nil, role: nil) ⇒ AssetManifestDockerImageDestination
Returns a new instance of AssetManifestDockerImageDestination.
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_prefix ⇒ String? (readonly)
Note:
Default: ''
Prefix to add to the asset hash to make the Docker image tag.
27 28 29 |
# File 'asset_manifest_docker_image_destination.rb', line 27 def docker_tag_prefix @docker_tag_prefix end |
#repository_name ⇒ String (readonly)
Repository name where the docker image asset should be written.
22 23 24 |
# File 'asset_manifest_docker_image_destination.rb', line 22 def repository_name @repository_name end |
#role ⇒ AWSCDK::RoleOptions? (readonly)
Note:
Default: - No role
Role to use to perform the upload.
32 33 34 |
# File 'asset_manifest_docker_image_destination.rb', line 32 def role @role end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |