Resources:
  PiplDataTable:
      Type: AWS::DynamoDB::Table
      Properties:
        TableName: ${self:custom.piplDataTable}
        AttributeDefinitions:
          - AttributeName: fileID
            AttributeType: S
          - AttributeName: dataID
            AttributeType: S
        KeySchema:
          - AttributeName: fileID
            KeyType: HASH
          - AttributeName: dataID
            KeyType: RANGE
        StreamSpecification:
          StreamViewType: NEW_AND_OLD_IMAGES
        PointInTimeRecoverySpecification:
          PointInTimeRecoveryEnabled: true
        # Set the capacity to auto-scale
        BillingMode: PAY_PER_REQUEST