Skip to content
v2.277.0

EnvironmentVariableProperty Struct ​

Environment variables are key-value pairs that are available at build time.

Set environment variables for all branches in your app.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_amplify as amplify } from 'aws-cdk-lib';
const environmentVariableProperty: amplify.CfnApp.EnvironmentVariableProperty = {
  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_amplify as amplify

environment_variable_property = amplify.CfnApp.EnvironmentVariableProperty(
    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.amplify.*;

EnvironmentVariableProperty environmentVariableProperty = EnvironmentVariableProperty.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.Amplify;

var environmentVariableProperty = new EnvironmentVariableProperty {
    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"

environmentVariableProperty := &EnvironmentVariableProperty{
	Name: jsii.String("name"),
	Value: jsii.String("value"),
}

Properties ​

namestringnamestrnameStringNamestringName*stringrequired#
The environment variable name.
valuestringvaluestrvalueStringValuestringValue*stringrequired#
The environment variable value.