Class: AWSCDK::ECS::EnvironmentFileConfig

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ecs/environment_file_config.rb

Overview

Configuration for the environment file.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_type:, s3_location:) ⇒ EnvironmentFileConfig

Returns a new instance of EnvironmentFileConfig.

Parameters:



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_typeAWSCDK::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_locationAWSCDK::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_propertiesObject



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_jsiiObject



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