MyDyanmoDBTable:
  Type: AWS::DynamoDB::Table
  DeletionPolicy: Retain
  MyDyanmoDBTable:
    Type: AWS::DynamoDB::Table
    UpdateReplacePolicy: Retain
    DeletionPolicy: Retain
    Properties:
      KeySchema:
        - AttributeName: key
          KeyType: HASH
      AttributeDefinitions:
        - AttributeName: key
          AttributeType: S
      BillingMode: PAY_PER_REQUEST
      PointInTimeRecoverySpecification:
        PointInTimeRecoveryEnabled: true
      TableName: MyTable
  MyDyanmoDBTable:
    Type: AWS::DynamoDB::GlobalTable
    UpdateReplacePolicy: Retain
    DeletionPolicy: Retain
    Properties:
      AttributeDefinitions:
        - AttributeName: key
          AttributeType: S
      KeySchema:
        - AttributeName: key
          KeyType: HASH
      Replicas:
        - PointInTimeRecoverySpecification:
            PointInTimeRecoveryEnabled: true
          Region: us-east-1
        - PointInTimeRecoverySpecification:
            PointInTimeRecoveryEnabled: true
          Region: us-east-2
        - PointInTimeRecoverySpecification:
            PointInTimeRecoveryEnabled: true
          Region: eu-central-1
      BillingMode: PAY_PER_REQUEST
      TableName: MyTable