Serverless format/language?

Hi,
how do I convert below code in serverless format ?
I am trying to create dynomoDB table
I also noticed that we have “-” in front for http event what does that mean ?

"mySecondDDBTable" : {
  "Type" : "AWS::DynamoDB::Table",
  "DependsOn" : "myFirstDDBTable" ,
  "Properties" : {
    "AttributeDefinitions" : [
      {
        "AttributeName" : "ArtistId",
        "AttributeType" : "S"        
      },
      {
        "AttributeName" : "Concert",
        "AttributeType" : "S"        
      },
      {
        "AttributeName" : "TicketSales",
        "AttributeType" : "S"        
      }
    ],
    "KeySchema" : [
      {
        "AttributeName" : "ArtistId",
        "KeyType" : "HASH"
      },
      {
        "AttributeName" : "Concert",
        "KeyType" : "RANGE"
      }
    ],
    "ProvisionedThroughput" : {
      "ReadCapacityUnits" : {"Ref" : "ReadCapacityUnits"},
      "WriteCapacityUnits" : {"Ref" : "WriteCapacityUnits"}
    },
    "GlobalSecondaryIndexes" : [{
      "IndexName" : "myGSI",
      "KeySchema" : [
        {
          "AttributeName" : "TicketSales",
          "KeyType" : "HASH"
        }
      ],                           
      "Projection" : {
        "ProjectionType" : "KEYS_ONLY"
      },    
      "ProvisionedThroughput" : {
        "ReadCapacityUnits" : {"Ref" : "ReadCapacityUnits"},
        "WriteCapacityUnits" : {"Ref" : "WriteCapacityUnits"}
      }
    }]
  }

never mind i figured it out, its yaml.

got another question.
how to I reference the table created in iamRole ?

iamRoleStatements:
  - Effect: Allow
    Action:
      - dynamodb:GetItem
        dynamodb:PutItem
        dynamodb:UpdateItem
        dynamodb:DeleteItem
        dynamodb:Query
        dynamodb:Scan
    Resource: 
        ?????????????????????????????????

anybody know how to the ref to table to iamRole Resource ?

Wouldn’t using Ref work like described here: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html

ya fallowed that guide
but I keep getting below error

An error occurred while provisioning your stack: IamPolicyLambdaExecution
- Actions/Condition can contain only one colon…

here what I am using

Resource:
  Fn::Join:
  - ''
  - - 'arn:aws:dynamodb:'
    - Ref: AWS::Region
    - ":xxxxxxxxxxxxx:table/"
    - Ref: DynamoDBTable

Shameless self-promotion here; I wrote a blog post on adding DDB to my Serverless Service.