waiters.go 573 B

123456789101112131415161718192021222324252627282930
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. package kinesis
  3. import (
  4. "github.com/aws/aws-sdk-go/private/waiter"
  5. )
  6. func (c *Kinesis) WaitUntilStreamExists(input *DescribeStreamInput) error {
  7. waiterCfg := waiter.Config{
  8. Operation: "DescribeStream",
  9. Delay: 10,
  10. MaxAttempts: 18,
  11. Acceptors: []waiter.WaitAcceptor{
  12. {
  13. State: "success",
  14. Matcher: "path",
  15. Argument: "StreamDescription.StreamStatus",
  16. Expected: "ACTIVE",
  17. },
  18. },
  19. }
  20. w := waiter.Waiter{
  21. Client: c,
  22. Input: input,
  23. Config: waiterCfg,
  24. }
  25. return w.Wait()
  26. }