7a4eda156c
This also removes `godep` calls from make scripts. Of note is that currently `./...` checking in acceptance tests is disabled.
60 lines
1.1 KiB
Go
60 lines
1.1 KiB
Go
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
|
|
|
package dynamodb
|
|
|
|
import (
|
|
"github.com/aws/aws-sdk-go/private/waiter"
|
|
)
|
|
|
|
func (c *DynamoDB) WaitUntilTableExists(input *DescribeTableInput) error {
|
|
waiterCfg := waiter.Config{
|
|
Operation: "DescribeTable",
|
|
Delay: 20,
|
|
MaxAttempts: 25,
|
|
Acceptors: []waiter.WaitAcceptor{
|
|
{
|
|
State: "success",
|
|
Matcher: "path",
|
|
Argument: "Table.TableStatus",
|
|
Expected: "ACTIVE",
|
|
},
|
|
{
|
|
State: "retry",
|
|
Matcher: "error",
|
|
Argument: "",
|
|
Expected: "ResourceNotFoundException",
|
|
},
|
|
},
|
|
}
|
|
|
|
w := waiter.Waiter{
|
|
Client: c,
|
|
Input: input,
|
|
Config: waiterCfg,
|
|
}
|
|
return w.Wait()
|
|
}
|
|
|
|
func (c *DynamoDB) WaitUntilTableNotExists(input *DescribeTableInput) error {
|
|
waiterCfg := waiter.Config{
|
|
Operation: "DescribeTable",
|
|
Delay: 20,
|
|
MaxAttempts: 25,
|
|
Acceptors: []waiter.WaitAcceptor{
|
|
{
|
|
State: "success",
|
|
Matcher: "error",
|
|
Argument: "",
|
|
Expected: "ResourceNotFoundException",
|
|
},
|
|
},
|
|
}
|
|
|
|
w := waiter.Waiter{
|
|
Client: c,
|
|
Input: input,
|
|
Config: waiterCfg,
|
|
}
|
|
return w.Wait()
|
|
}
|