Class: AWSCDK::ECS::S3EnvironmentFile
- Inherits:
-
EnvironmentFile
- Object
- EnvironmentFile
- AWSCDK::ECS::S3EnvironmentFile
- Defined in:
- ecs/s3_environment_file.rb
Overview
Environment file from S3.
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(bucket, key, object_version = nil) ⇒ S3EnvironmentFile
constructor
A new instance of S3EnvironmentFile.
Constructor Details
#initialize(bucket, key, object_version = nil) ⇒ S3EnvironmentFile
Returns a new instance of S3EnvironmentFile.
11 12 13 14 15 16 |
# File 'ecs/s3_environment_file.rb', line 11 def initialize(bucket, key, object_version = nil) Jsii::Type.check_type(bucket, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuSUJ1Y2tldCJ9")), "bucket") Jsii::Type.check_type(key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") Jsii::Type.check_type(object_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "objectVersion") unless object_version.nil? Jsii::Object.instance_method(:initialize).bind(self).call(bucket, key, object_version) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
18 19 20 21 22 |
# File 'ecs/s3_environment_file.rb', line 18 def self.jsii_overridable_methods { :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.
28 29 30 31 |
# File 'ecs/s3_environment_file.rb', line 28 def bind(_scope) Jsii::Type.check_type(_scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "_scope") jsii_call_method("bind", [_scope]) end |