Skip to content
v2.275.0

EnvironmentVariableProperty Struct ​

The EnvironmentVariable property type sets environment variables for a specific branch.

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

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.CfnBranch.EnvironmentVariableProperty = {
  name: 'name',
  value: 'value',
};

Properties ​

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