Amazon web services AWS系统管理器:枚举状态管理器文档中的StringList参数

Amazon web services AWS系统管理器:枚举状态管理器文档中的StringList参数,amazon-web-services,amazon-ec2,amazon-systems-manager,Amazon Web Services,Amazon Ec2,Amazon Systems Manager,状态管理器文档允许我们定义StringList类型的输入参数。如何在文档定义中枚举StringList中的每个值 例如,想象一个定义了要运行的命令列表的StringListinput参数。如何为列表中的每个命令创建新的aws:runShellScript操作 下面的伪文档显示了我试图实现的目标—为StringList中的每个值创建一个新操作 schemaVersion: "2.2" description: "Updates services configured for the current

状态管理器文档允许我们定义
StringList
类型的输入参数。如何在文档定义中枚举
StringList
中的每个值

例如,想象一个定义了要运行的命令列表的
StringList
input参数。如何为列表中的每个命令创建新的
aws:runShellScript
操作

下面的伪文档显示了我试图实现的目标—为
StringList
中的每个值创建一个新操作

schemaVersion: "2.2"
description: "Updates services configured for the current role"
parameters:
  ListOfCommands:
    type: "StringList"
    description: "A list of commands to execute"
mainSteps:

 /* For $C in ListOfCommands: */

  - action: "aws:runShellScript"
    name: "InstallConsul"
    inputs:
      runCommand:
      - "{{$C}}"

根据AWS的支持,这目前是不可能的。无法在文档本身中枚举StringList中的任何值