Skip to content
v2.274.0

TaskEnvironmentVariable Struct ​

An environment variable to be set in the container run as a task.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';
const taskEnvironmentVariable: stepfunctions_tasks.TaskEnvironmentVariable = {
  name: 'name',
  value: 'value',
};

Properties ​

namestringnamestrnameStringNamestringName*stringrequired#
Name for the environment variable.

Use JsonPath class's static methods to specify name from a JSON path.

valuestringvaluestrvalueStringValuestringValue*stringrequired#
Value of the environment variable.

Use JsonPath class's static methods to specify value from a JSON path.