Class: AWSCDK::ECS::RepositoryImage
- Inherits:
-
ContainerImage
- Object
- ContainerImage
- AWSCDK::ECS::RepositoryImage
- Defined in:
- ecs/repository_image.rb
Overview
An image hosted in a public or private repository.
For images hosted in Amazon ECR, see EcrImage.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(scope, container_definition) ⇒ AWSCDK::ECS::ContainerImageConfig
Called when the image is used by a ContainerDefinition.
-
#initialize(image_name, props = nil) ⇒ RepositoryImage
constructor
Constructs a new instance of the RepositoryImage class.
Constructor Details
#initialize(image_name, props = nil) ⇒ RepositoryImage
Constructs a new instance of the RepositoryImage class.
15 16 17 18 19 20 |
# File 'ecs/repository_image.rb', line 15 def initialize(image_name, props = nil) props = props.is_a?(Hash) ? ::AWSCDK::ECS::RepositoryImageProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(image_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "imageName") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLlJlcG9zaXRvcnlJbWFnZVByb3BzIn0=")), "props") unless props.nil? Jsii::Object.instance_method(:initialize).bind(self).call(image_name, props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
22 23 24 25 26 |
# File 'ecs/repository_image.rb', line 22 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(scope, container_definition) ⇒ AWSCDK::ECS::ContainerImageConfig
Called when the image is used by a ContainerDefinition.
33 34 35 36 37 |
# File 'ecs/repository_image.rb', line 33 def bind(scope, container_definition) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(container_definition, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkNvbnRhaW5lckRlZmluaXRpb24ifQ==")), "containerDefinition") jsii_call_method("bind", [scope, container_definition]) end |