For AI agents: the complete documentation index is available at /en/llms.txt, the full documentation bundle is available at /en/llms-full.txt, and this page is available as Markdown at /en/reference/sdk/sapi/runtime/type-aliases/CommandEnumParameter.md.
  • English
  • Type Alias: CommandEnumParameter

    type CommandEnumParameter = {
      name: string;
      values: string[];
      optional?: boolean;
    };

    Defined in: sapi/runtime/command.ts:44

    原生命令的单个枚举参数声明。新代码优先使用 parameters。

    Properties

    PropertyTypeDescriptionDefined in
    namestring参数在命令补全中的名称。sapi/runtime/command.ts:46
    valuesstring[]可选值;由 Bedrock 原生命令补全展示。sapi/runtime/command.ts:48
    optional?boolean是否允许省略该参数。sapi/runtime/command.ts:50