Skip to content

Instantly share code, notes, and snippets.

@rosscanning
rosscanning / main.rs
Created December 6, 2021 20:51
Use local dynamodb with AWS Rust SDK
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
use aws_config::meta::region::RegionProviderChain;
use aws_sdk_dynamodb::model::{
AttributeDefinition, KeySchemaElement, KeyType, ProvisionedThroughput, ScalarAttributeType,
};
use aws_sdk_dynamodb::Config;