TaskEnvironmentVariable

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

Bases: object

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.

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_events_targets as events_targets

task_environment_variable = events_targets.TaskEnvironmentVariable(
    name="name",
    value="value"
)

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