Skip to content

Instantly share code, notes, and snippets.

@OksanaH
Last active December 4, 2020 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OksanaH/273691a8990331717b59ae82462f3d19 to your computer and use it in GitHub Desktop.
Save OksanaH/273691a8990331717b59ae82462f3d19 to your computer and use it in GitHub Desktop.
await CreateTable(sourceTableName);
await CreateTable(destinationTableNameSlow);
await CreateTable(destinationTableNameFast);
//wait until source table is created
var describeTableRequest = new DescribeTableRequest
{
TableName = sourceTableName
};
DescribeTableResponse describeTableResponse;
do
{
System.Threading.Thread.Sleep(1000);
describeTableResponse = await client.DescribeTableAsync(describeTableRequest);
}
while (describeTableResponse.Table.TableStatus != TableStatus.ACTIVE);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment