### ----------------------------------------------------
### -- Amazon::DynamoDB
### -- Licenses: Artistic-2.0
### -- Authors: Sterling Hanenkamp <hanenkamp@cpan.org>
### -- File: t/corpus/Thread-create.p6
### ----------------------------------------------------
%(
    AttributeDefinitions => [
        {
            AttributeName => 'ForumName',
            AttributeType => 'S',
        },
        {
            AttributeName => 'Subject',
            AttributeType => 'S',
        },
        {
            AttributeName => 'LastPostDateTime',
            AttributeType => 'S',
        },
    ],
    TableName => tn('Thread'),
    KeySchema => [
        {
            AttributeName => 'ForumName',
            KeyType       => 'HASH',
        },
        {
            AttributeName => 'Subject',
            KeyType       => 'RANGE',
        },
    ],
    LocalSecondaryIndexes => [
        {
            IndexName => 'LastPostIndex',
            KeySchema => [
                {
                    AttributeName => 'ForumName',
                    KeyType       => 'HASH',
                },
                {
                    AttributeName => 'LastPostDateTime',
                    KeyType       => 'RANGE',
                }
            ],
            Projection => {
                ProjectionType => 'KEYS_ONLY'
            },
        },
    ],
    ProvisionedThroughput => {
        ReadCapacityUnits  => 5,
        WriteCapacityUnits => 5,
    },
)


