Amazon-DynamoDB
view release on metacpan or search on metacpan
lib/Amazon/DynamoDB/20120810.pm view on Meta::CPAN
WriteCapacityUnits => int($i->{ProvisionedThroughput}->{WriteCapacityUnits} // 1),
}) : ()),
KeySchema => _create_key_schema($i->{KeySchema}, $AttributeDefinitions),
};
my $type = $i->{Projection}->{ProjectionType};
$r->{Projection}->{ProjectionType} = $type;
if (defined($i->{Projection}->{NonKeyAttributes})) {
my $attrs = $i->{Projection}->{NonKeyAttributes};
# Can't validate these attribute names since they aren't part of the key.
$r->{Projection}->{NonKeyAttributes} = $attrs;
}
push @{$payload{$index_type}}, $r;
}
}
}
my $req = $self->make_request(
target => 'CreateTable',
payload => \%payload,
( run in 1.543 second using v1.01-cache-2.11-cpan-a5abf4f5562 )