Я хотел бы определить DynamoDB в AWS как:
{
"Type" : "AWS::DynamoDB::Table",
"Properties" : {
"AttributeDefinitions" : [ AttributeDefinition, ... ],
"GlobalSecondaryIndexes" : [ GlobalSecondaryIndexes, ... ],
"KeySchema" : [ KeySchema, ... ],
"LocalSecondaryIndexes" : [ LocalSecondaryIndexes, ... ],
"ProvisionedThroughput" : ProvisionedThroughput,
"SSESpecification" : { ##this is the keypart
"SSEEnabled": true ##this is the keypart
},
"StreamSpecification" : StreamSpecification,
"TableName" : String,
"Tags" : [ Resource Tag, ... ],
"TimeToLiveSpecification" : TimeToLiveSpecification
}
}
}
Я хочу использовать свойства для определенной спецификации SSES
DynamoDB_Table(:tableName) do
...
Property (["SSESpecification", {:SSEEnabled => true}])
...
End
Я всегда получаю ошибку.
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/cfndsl-0.16.9/lib/cfndsl/properties.rb:16:in `initialize': wrong number of arguments (given 0, expected 1) (ArgumentError)
ИЛИ Я изменяю на:
Property ("SSESpecification", {:SSEEnabled => true})
и получаю ошибки:
6: syntax error, unexpected ',', expecting ')' (SyntaxError)
Property ("SSESpecification", {:SSEEnabled => true})
^
C:/work/dfsi/infra/cfndsl/nesteddb.rb:85: syntax error, unexpected keyword_end, expecting end-of-input
end
^~~
Можете ли вы привести пример правильного определения "SSESpecification" в cfndsl?