Skip to content
v2.275.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_events_targets as events_targets } from 'aws-cdk-lib';
const taskEnvironmentVariable: events_targets.TaskEnvironmentVariable = {
  name: 'name',
  value: 'value',
};

Properties ​

namestringnamestrnameStringNamestringName*stringrequired#
Name for the environment variable.

Exactly one of name and namePath must be specified.

valuestringvaluestrvalueStringValuestringValue*stringrequired#
Value of the environment variable.

Exactly one of value and valuePath must be specified.