TaskEnvironmentVariable
- class aws_cdk.aws_events_targets.TaskEnvironmentVariable(*, name, value)
Bases:
objectAn environment variable to be set in the container run as a task.
- Parameters:
name (
str) – Name for the environment variable. Exactly one ofnameandnamePathmust be specified.value (
str) – Value of the environment variable. Exactly one ofvalueandvaluePathmust 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
nameandnamePathmust be specified.
- value
Value of the environment variable.
Exactly one of
valueandvaluePathmust be specified.