| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- // 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()
- }
|