Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 使用静态列表作为Cloudformation参数_Amazon Web Services_Amazon Cloudformation - Fatal编程技术网

Amazon web services 使用静态列表作为Cloudformation参数

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", } 我收到无法识别类型的错误:列表 是否有一个很好的例子可以

我目前在这里引用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",
}
我收到无法识别类型的错误:列表


是否有一个很好的例子可以参考以获取静态列表作为输入参数

我相信您想要实现的是不可能的。甚至没有
“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."
      }
    }