waiters.go 863 B

12345678910111213141516171819202122232425262728293031323334
  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. // WaitUntilIdentityExists uses the Amazon SES API operation
  7. // GetIdentityVerificationAttributes to wait for a condition to be met before returning.
  8. // If the condition is not meet within the max attempt window an error will
  9. // be returned.
  10. func (c *SES) WaitUntilIdentityExists(input *GetIdentityVerificationAttributesInput) error {
  11. waiterCfg := waiter.Config{
  12. Operation: "GetIdentityVerificationAttributes",
  13. Delay: 3,
  14. MaxAttempts: 20,
  15. Acceptors: []waiter.WaitAcceptor{
  16. {
  17. State: "success",
  18. Matcher: "pathAll",
  19. Argument: "VerificationAttributes.*.VerificationStatus",
  20. Expected: "Success",
  21. },
  22. },
  23. }
  24. w := waiter.Waiter{
  25. Client: c,
  26. Input: input,
  27. Config: waiterCfg,
  28. }
  29. return w.Wait()
  30. }