Parameter
The Config.Parameter
construct is a higher level CDK construct that makes it easy to create environment variables in the app.
Examples
import { Config, Topic } from "sst/constructs";
const topic = new Topic(stack, "USER_UPDATED");
new Config.Parameter(stack, "USER_UPDATED_TOPIC_NAME", {
value: topic.topicName,
});
Constructor
new Config.Parameter(scope, id, props)
Parameters
- scope Construct
- id string
- props ParameterProps
ParameterProps
value
Type : string
Value of the parameter
Properties
An instance of Parameter
has the following properties.
id
Type : string
name
Type : string
value
Type : string
Methods
An instance of Parameter
has the following methods.
create
static create(scope, parameters)
Parameters
- scope Construct
- parameters T