Amazon web services 使用云形成为DynamoDB启用TTL

Amazon web services 使用云形成为DynamoDB启用TTL,amazon-web-services,amazon-dynamodb,amazon-cloudformation,Amazon Web Services,Amazon Dynamodb,Amazon Cloudformation,我正在尝试在现有的dynmoDB表上设置TTL 出错 发生错误:属性TimeToLiveSpecification的传入-值必须是对象 这是我的模板 Incoming: Type: AWS::DynamoDB::Table Properties: TableName: table-test KeySchema: - AttributeName: number KeyType: HASH - AttributeName: nu

我正在尝试在现有的dynmoDB表上设置TTL

出错

发生错误:属性TimeToLiveSpecification的传入-值必须是对象

这是我的模板

    Incoming:
  Type: AWS::DynamoDB::Table
  Properties:
    TableName: table-test
    KeySchema:
      - AttributeName: number
        KeyType: HASH
      - AttributeName: number2
        KeyType: RANGE
    AttributeDefinitions:
      - AttributeName: number
        AttributeType: S
      - AttributeName: number2
        AttributeType: S
    TimeToLiveSpecification: 
      - AttributeName: TimeToLive
        Enabled: true
    ProvisionedThroughput:
      ReadCapacityUnits: 2
      WriteCapacityUnits: 2

我很可能遗漏了一些简单的东西,但无法找到它

找到了它,
TimeToLiveSpecification
部分下
AttributeName
附近的一个错误的
-

Incoming:
  Type: AWS::DynamoDB::Table
  Properties:
    TableName: table-test
    KeySchema:
      - AttributeName: number
        KeyType: HASH
      - AttributeName: number2
        KeyType: RANGE
    AttributeDefinitions:
      - AttributeName: number
        AttributeType: S
      - AttributeName: number2
        AttributeType: S
    TimeToLiveSpecification: 
        AttributeName: TimeToLive   # <-- stray dash was here
        Enabled: true
    ProvisionedThroughput:
      ReadCapacityUnits: 2
      WriteCapacityUnits: 2
传入:
类型:AWS::DynamoDB::Table
特性:
表名称:表测试
KeySchema:
-属性名称:数字
关键字类型:哈希
-属性名称:数字2
键类型:范围
属性定义:
-属性名称:数字
属性类型:S
-属性名称:数字2
属性类型:S
TimeToLiveSpecification:
属性名称:TimeToLive#