Class: AWSCDK::AppRunner::CfnService::ImageRepositoryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppRunner::CfnService::ImageRepositoryProperty
- Defined in:
- app_runner/cfn_service.rb
Overview
Describes a source image repository.
Instance Attribute Summary collapse
-
#image_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Configuration for running the identified image.
-
#image_identifier ⇒ String
readonly
The identifier of an image.
-
#image_repository_type ⇒ String
readonly
The type of the image repository.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(image_identifier:, image_repository_type:, image_configuration: nil) ⇒ ImageRepositoryProperty
constructor
A new instance of ImageRepositoryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(image_identifier:, image_repository_type:, image_configuration: nil) ⇒ ImageRepositoryProperty
Returns a new instance of ImageRepositoryProperty.
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_configuration ⇒ AWSCDK::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_identifier ⇒ String (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_type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |