Class: AWSCDK::AppRunner::CfnService::ImageRepositoryProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_runner/cfn_service.rb

Overview

Describes a source image repository.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(image_identifier:, image_repository_type:, image_configuration: nil) ⇒ ImageRepositoryProperty

Returns a new instance of ImageRepositoryProperty.

Parameters:



1177
1178
1179
1180
1181
1182
1183
1184
# File 'app_runner/cfn_service.rb', line 1177

def initialize(image_identifier:, image_repository_type:, image_configuration: nil)
  @image_identifier = image_identifier
  Jsii::Type.check_type(@image_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "imageIdentifier")
  @image_repository_type = image_repository_type
  Jsii::Type.check_type(@image_repository_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "imageRepositoryType")
  @image_configuration = image_configuration.is_a?(Hash) ? ::AWSCDK::AppRunner::CfnService::ImageConfigurationProperty.new(**image_configuration.transform_keys(&:to_sym)) : image_configuration
  Jsii::Type.check_type(@image_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBydW5uZXIuQ2ZuU2VydmljZS5JbWFnZUNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "imageConfiguration") unless @image_configuration.nil?
end

Instance Attribute Details

#image_configurationAWSCDK::IResolvable, ... (readonly)

Configuration for running the identified image.



1204
1205
1206
# File 'app_runner/cfn_service.rb', line 1204

def image_configuration
  @image_configuration
end

#image_identifierString (readonly)

The identifier of an image.

For an image in Amazon Elastic Container Registry (Amazon ECR), this is an image name. For the image name format, see Pulling an image in the Amazon ECR User Guide .



1192
1193
1194
# File 'app_runner/cfn_service.rb', line 1192

def image_identifier
  @image_identifier
end

#image_repository_typeString (readonly)

The type of the image repository.

This reflects the repository provider and whether the repository is private or public.



1199
1200
1201
# File 'app_runner/cfn_service.rb', line 1199

def image_repository_type
  @image_repository_type
end

Class Method Details

.jsii_propertiesObject



1206
1207
1208
1209
1210
1211
1212
# File 'app_runner/cfn_service.rb', line 1206

def self.jsii_properties
  {
    :image_identifier => "imageIdentifier",
    :image_repository_type => "imageRepositoryType",
    :image_configuration => "imageConfiguration",
  }
end

Instance Method Details

#to_jsiiObject



1214
1215
1216
1217
1218
1219
1220
1221
1222
# File 'app_runner/cfn_service.rb', line 1214

def to_jsii
  result = {}
  result.merge!({
    "imageIdentifier" => @image_identifier,
    "imageRepositoryType" => @image_repository_type,
    "imageConfiguration" => @image_configuration,
  })
  result.compact
end