Class: AWSCDK::ECS::AssetEnvironmentFile
- Inherits:
-
EnvironmentFile
- Object
- EnvironmentFile
- AWSCDK::ECS::AssetEnvironmentFile
- Defined in:
- ecs/asset_environment_file.rb
Overview
Environment file from a local directory.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(scope) ⇒ AWSCDK::ECS::EnvironmentFileConfig
Called when the container is initialized to allow this object to bind to the stack.
-
#initialize(path, options = nil) ⇒ AssetEnvironmentFile
constructor
A new instance of AssetEnvironmentFile.
-
#path ⇒ String
The path to the asset file or directory.
Constructor Details
#initialize(path, options = nil) ⇒ AssetEnvironmentFile
Returns a new instance of AssetEnvironmentFile.
10 11 12 13 14 15 |
# File 'ecs/asset_environment_file.rb', line 10 def initialize(path, = nil) = .is_a?(Hash) ? ::AWSCDK::S3Assets::AssetOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path") Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczNfYXNzZXRzLkFzc2V0T3B0aW9ucyJ9")), "options") unless .nil? Jsii::Object.instance_method(:initialize).bind(self).call(path, ) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
17 18 19 20 21 22 |
# File 'ecs/asset_environment_file.rb', line 17 def self.jsii_overridable_methods { :path => { kind: :property, name: "path", is_optional: false }, :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(scope) ⇒ AWSCDK::ECS::EnvironmentFileConfig
Called when the container is initialized to allow this object to bind to the stack.
35 36 37 38 |
# File 'ecs/asset_environment_file.rb', line 35 def bind(scope) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") jsii_call_method("bind", [scope]) end |
#path ⇒ String
The path to the asset file or directory.
27 28 29 |
# File 'ecs/asset_environment_file.rb', line 27 def path() jsii_get_property("path") end |