Class: AWSCDK::ECS::EnvironmentFileConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::EnvironmentFileConfig
- Defined in:
- ecs/environment_file_config.rb
Overview
Configuration for the environment file.
Instance Attribute Summary collapse
-
#file_type ⇒ AWSCDK::ECS::EnvironmentFileType
readonly
The type of environment file.
-
#s3_location ⇒ AWSCDK::S3::Location
readonly
The location of the environment file in S3.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(file_type:, s3_location:) ⇒ EnvironmentFileConfig
constructor
A new instance of EnvironmentFileConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(file_type:, s3_location:) ⇒ EnvironmentFileConfig
Returns a new instance of EnvironmentFileConfig.
9 10 11 12 13 14 |
# File 'ecs/environment_file_config.rb', line 9 def initialize(file_type:, s3_location:) @file_type = file_type Jsii::Type.check_type(@file_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkVudmlyb25tZW50RmlsZVR5cGUifQ==")), "fileType") @s3_location = s3_location.is_a?(Hash) ? ::AWSCDK::S3::Location.new(**s3_location.transform_keys(&:to_sym)) : s3_location Jsii::Type.check_type(@s3_location, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuTG9jYXRpb24ifQ==")), "s3Location") end |
Instance Attribute Details
#file_type ⇒ AWSCDK::ECS::EnvironmentFileType (readonly)
The type of environment file.
19 20 21 |
# File 'ecs/environment_file_config.rb', line 19 def file_type @file_type end |
#s3_location ⇒ AWSCDK::S3::Location (readonly)
The location of the environment file in S3.
23 24 25 |
# File 'ecs/environment_file_config.rb', line 23 def s3_location @s3_location end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'ecs/environment_file_config.rb', line 25 def self.jsii_properties { :file_type => "fileType", :s3_location => "s3Location", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'ecs/environment_file_config.rb', line 32 def to_jsii result = {} result.merge!({ "fileType" => @file_type, "s3Location" => @s3_location, }) result.compact end |