【发布时间】:2021-06-06 23:03:36
【问题描述】:
我想使用 if 条件根据参数类型为 dynamodb GSI Non keyattributes 提供两个值。以下是我尝试过但没有奏效的方法。我想根据if条件添加两个属性(att1,att2)
Parameters:
Apptype:
string
Conditions:
CIsFinanacial:
!Equals [ !Ref Apptype, 'financial' ]
Projection:
NonKeyAttributes:
!If CIsFinanacial [!Join [","["att1", "att2"], !Ref AWS::Novalue]
上述 if 条件结果为字符串 (att1,att2) 但我希望它们作为字符串列表提供。现在作为一种解决方法,我写了两个条件和两个 if 条件。但是有没有办法在一个 if 条件下提供它们。
对不起,写得不好。
【问题讨论】:
标签: amazon-web-services amazon-dynamodb amazon-cloudformation