redriver_future.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //go:build futuresqs
  2. // The redriver_future.go file contains types and code related to the yet-unpublished
  3. // DLQ redrive APIs.
  4. //
  5. // See https://github.com/aws/aws-sdk-go-v2/issues/1991 for details.
  6. package redriver
  7. // Redriver defines the behavior of DLQ redriverV2 services.
  8. type RedriverV2 interface {
  9. // CreateMoveTask()
  10. // ListMoveTasks() []any
  11. ListDLQs() map[string]string
  12. }
  13. type redriverV2 struct {
  14. }
  15. func (r redriverV2) CreateMoveTask() {
  16. // TODO implement me
  17. // u := url.URL{
  18. // Scheme: "https",
  19. // User: nil,
  20. // Host: "",
  21. // Path: "",
  22. // RawPath: "",
  23. // OmitHost: false,
  24. // ForceQuery: false,
  25. // RawQuery: "",
  26. // Fragment: "",
  27. // RawFragment: "",
  28. // }
  29. /*
  30. Action=CreateMoveTask
  31. &SourceArn=arn%3Aaws%3Asqs%3Aeu-west-3%3A751146239996%3Atest-dlq
  32. &TaskName=079228fe-098b-436d-a2f4-cb4d29ebb55a
  33. &Version=2012-11-05
  34. */
  35. }
  36. func (r redriverV2) ListMoveTasks() []any {
  37. // TODO implement me
  38. panic("implement me")
  39. }
  40. type CreateMoveTaskOutput struct {
  41. Status *string // Running
  42. SourceARN *string
  43. ApproximateNumberOfMessagesMoved int
  44. }