Amazon web services 使用静态列表作为Cloudformation参数
我目前在这里引用AWS示例: 同样,对于我的用例,我正在使用:Amazon web services 使用静态列表作为Cloudformation参数,amazon-web-services,amazon-cloudformation,Amazon Web Services,Amazon Cloudformation,我目前在这里引用AWS示例: 同样,对于我的用例,我正在使用: "Zone" : { "Type" : "List<'land','raw'>", // Can this be replaced by static List so user can select multiple options "Description" : "The list of landing zone for raw data", } 我收到无法识别类型的错误:列表 是否有一个很好的例子可以
"Zone" : {
"Type" : "List<'land','raw'>", // Can this be replaced by static List so user can select multiple options
"Description" : "The list of landing zone for raw data",
}
我收到无法识别类型的错误:列表
是否有一个很好的例子可以参考以获取静态列表作为输入参数我相信您想要实现的是不可能的。甚至没有
“List”
类型,只有CommaDelimitedList
,您无法从中选择包含多个条目的选择框。查看这是否有帮助
AllowedValues是静态列表我之前尝试过CommaDelimitedList,正如您所说,我没有得到包含多个条目的选择框
{ "Ref" : "Subnets" }
"Zone" : {
"Type" : "List<'land','raw'>", // Can this be replaced by static List so user can select multiple options
"Description" : "The list of landing zone for raw data",
}
{ "Ref" : "Zone" }
"Parameters" : {
"InstanceTypeParameter" : {
"Type" : "String",
"Default" : "t2.micro",
"AllowedValues" : ["t2.micro", "m1.small", "m1.large"],
"Description" : "Enter t2.micro, m1.small, or m1.large. Default is t2.micro."
}
}