EcsEnvironmentVariableProperty Struct
The environment variables to send to the container.
You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition. You must also specify a container name.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pipes as pipes } from 'aws-cdk-lib';
const ecsEnvironmentVariableProperty: pipes.CfnPipe.EcsEnvironmentVariableProperty = {
name: 'name',
value: 'value',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_pipes as pipes
ecs_environment_variable_property = pipes.CfnPipe.EcsEnvironmentVariableProperty(
name="name",
value="value"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pipes.*;
EcsEnvironmentVariableProperty ecsEnvironmentVariableProperty = EcsEnvironmentVariableProperty.builder()
.name("name")
.value("value")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Pipes;
var ecsEnvironmentVariableProperty = new EcsEnvironmentVariableProperty {
Name = "name",
Value = "value"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
ecsEnvironmentVariableProperty := &EcsEnvironmentVariableProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
}
Properties
The name of the key-value pair.
For environment variables, this is the name of the environment variable.
The value of the key-value pair.
For environment variables, this is the value of the environment variable.