Class: AWSCDK::ImageBuilder::CfnContainerRecipe::TargetContainerRepositoryProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
image_builder/cfn_container_recipe.rb

Overview

The container repository where the output container image is stored.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repository_name: nil, service: nil) ⇒ TargetContainerRepositoryProperty

Returns a new instance of TargetContainerRepositoryProperty.

Parameters:

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

    The name of the container repository where the output container image is stored.

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

    Specifies the service in which this image was registered.



1119
1120
1121
1122
1123
1124
# File 'image_builder/cfn_container_recipe.rb', line 1119

def initialize(repository_name: nil, service: nil)
  @repository_name = repository_name
  Jsii::Type.check_type(@repository_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "repositoryName") unless @repository_name.nil?
  @service = service
  Jsii::Type.check_type(@service, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "service") unless @service.nil?
end

Instance Attribute Details

#repository_nameString? (readonly)

The name of the container repository where the output container image is stored.

This name is prefixed by the repository location. For example, <repository location url>/repository_name .



1132
1133
1134
# File 'image_builder/cfn_container_recipe.rb', line 1132

def repository_name
  @repository_name
end

#serviceString? (readonly)

Specifies the service in which this image was registered.



1137
1138
1139
# File 'image_builder/cfn_container_recipe.rb', line 1137

def service
  @service
end

Class Method Details

.jsii_propertiesObject



1139
1140
1141
1142
1143
1144
# File 'image_builder/cfn_container_recipe.rb', line 1139

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

Instance Method Details

#to_jsiiObject



1146
1147
1148
1149
1150
1151
1152
1153
# File 'image_builder/cfn_container_recipe.rb', line 1146

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