Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

linkParameter missing in CognitoEventUserPoolsCustomMessageRequest

Đang mở
#592 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

@nghiack7 đang làm issue này rồi.

Từ ngày 9/5/2026.

  • #627 của @nghiack7 — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
aws, go
Lĩnh vực
backend, cloud

Hướng nghiên cứu

Xác định định nghĩa của CognitoEventUserPoolsCustomMessageRequest và so sánh các trường của nó với ví dụ về sự kiện custom-message trigger của AWS được liên kết trong issue. Xác nhận rằng linkParameter được giải mã từ request payload, bổ sung coverage cho trường này nếu repository có các test liên quan, và xác minh rằng test suite hiện có chạy thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

In the AWS documentation of custom message lambda trigger for Cognito, there is an example json for an incoming event that contains a linkParameter attribute in request node.

It seams like this linkParameter is actually contained in the events payload, as we are able to use it in a lambda written in typescript with event typed as "any". But with this lib, v1.49.0, there is no such field linkParameter inside CognitoEventUserPoolsCustomMessageRequest.

Is this a bug, is there a newer version of the lib somewhere or am I missing something? I do see two ways to work around this limitation:

  1. Receiving the event as a json.RawMessage and marshal it myself into an own struct.
  2. Try to build the link on my own from codeParameter and some addtional values, I would have to pass as env variables to the lambda.

Both not optimal.

Thanks in advance for an answer

Ngôn ngữ chính
Go
Star
3.8k
Fork
581
Merge trung bình
2 ngày 2 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aws/aws-lambda-go

Tất cả issue của aws/aws-lambda-go

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.