Parameter
The parameter
method maps to the CloudFormation Template Anatomy Parameters section.
Example Snippets
There are 3 forms for conditions. Here are example snippets:
# short form
parameter("AmiId") # no default, so this is a required parameter
parameter("ImageId", "ami-123") # default is ami-123
# medium form
parameter("Company", Default: "boltops", Description: "instance type")
# long form
parameter("InstanceType" => {
Default: "t2.micro" ,
Description: "instance type" ,
})
Example Outputs
Parameters:
AmiId:
Type: String
ImageId:
Default: ami-123
Type: String
Company:
Default: boltops
Description: instance type
Type: String
InstanceType:
Default: t2.micro
Description: instance type
Type: String
Back to DSL List Docs.
Pro tip: Use the <- and -> arrow keys to move back and forward.
Edit this page
See a typo or an error? You can improve this page. This website is available on GitHub and contributions are encouraged and welcomed. We love pull requests from you!
- Suggest an edit to this page (here's the contributing guide).
- Open an issue about this page to report a problem.