TaskEnvironmentVariable

class aws_cdk.aws_events_targets.TaskEnvironmentVariable(*, name, value)

Bases: object

__init__(*, name, value)

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

Parameters
  • name (str) – Name for the environment variable. Exactly one of name and namePath must be specified.

  • value (str) – Value of the environment variable. Exactly one of value and valuePath must be specified.

Attributes

name

Name for the environment variable.

Exactly one of name and namePath must be specified.

Return type

str

value

Value of the environment variable.

Exactly one of value and valuePath must be specified.

Return type

str