@@ -39,6 +39,8 @@ import kotlin.collections.toTypedArray
3939 * @param dockerLabels Create/Override options inside dockerLabels. Each variable is key=value, you
4040 * can specify multiple variables with multi-line YAML.
4141 * @param command The command used by ECS to start the container image
42+ * @param envFiles S3 object arns to set env variables onto the container. You can specify multiple
43+ * files with multi-line YAML strings.
4244 * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
4345 * the binding
4446 * @param _customVersion Allows overriding action's version, for example to use a specific minor
@@ -81,6 +83,11 @@ public data class AmazonEcsRenderTaskDefinitionV1 private constructor(
8183 * The command used by ECS to start the container image
8284 */
8385 public val command : String? = null ,
86+ /* *
87+ * S3 object arns to set env variables onto the container. You can specify multiple files with
88+ * multi-line YAML strings.
89+ */
90+ public val envFiles : List <String >? = null ,
8491 /* *
8592 * Type-unsafe map where you can put any inputs that are not yet supported by the binding
8693 */
@@ -102,13 +109,15 @@ public data class AmazonEcsRenderTaskDefinitionV1 private constructor(
102109 logConfigurationOptions: List <String >? = null ,
103110 dockerLabels: List <String >? = null ,
104111 command: String? = null ,
112+ envFiles: List <String >? = null ,
105113 _customInputs : Map <String , String > = mapOf (),
106114 _customVersion : String? = null ,
107115 ) : this (taskDefinition= taskDefinition, containerName= containerName, image= image,
108116 environmentVariables= environmentVariables,
109117 logConfigurationLogDriver= logConfigurationLogDriver,
110118 logConfigurationOptions= logConfigurationOptions, dockerLabels= dockerLabels,
111- command= command, _customInputs = _customInputs , _customVersion = _customVersion )
119+ command= command, envFiles= envFiles, _customInputs = _customInputs ,
120+ _customVersion = _customVersion )
112121
113122 @Suppress(" SpreadOperator" )
114123 override fun toYamlArguments (): LinkedHashMap <String , String > = linkedMapOf(
@@ -121,6 +130,7 @@ public data class AmazonEcsRenderTaskDefinitionV1 private constructor(
121130 logConfigurationOptions?.let { " log-configuration-options" to it.joinToString(" \n " ) },
122131 dockerLabels?.let { " docker-labels" to it.joinToString(" \n " ) },
123132 command?.let { " command" to it },
133+ envFiles?.let { " env-files" to it.joinToString(" \n " ) },
124134 * _customInputs .toList().toTypedArray(),
125135 ).toTypedArray()
126136 )
0 commit comments