waiters.go 621 B

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