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 ofname
andnamePath
must be specified.value (
str
) – Value of the environment variable. Exactly one ofvalue
andvaluePath
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. from aws_cdk import 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
andnamePath
must be specified.
- value
Value of the environment variable.
Exactly one of
value
andvaluePath
must be specified.