Skip to content

Commit 58109fd

Browse files
authored
fix(serverless): make some fields optional to create/update triggers (#1625)
1 parent 598b1ac commit 58109fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/function/v1beta1/function_sdk.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,9 +1040,9 @@ type TriggerSqsClientConfig struct {
10401040
}
10411041

10421042
type UpdateTriggerRequestSqsClientConfig struct {
1043-
AccessKey string `json:"access_key"`
1043+
AccessKey *string `json:"access_key"`
10441044

1045-
SecretKey string `json:"secret_key"`
1045+
SecretKey *string `json:"secret_key"`
10461046
}
10471047

10481048
// UploadURL: upload url.
@@ -2452,7 +2452,7 @@ type CreateTriggerRequest struct {
24522452

24532453
Name string `json:"name"`
24542454

2455-
Description string `json:"description"`
2455+
Description *string `json:"description"`
24562456

24572457
FunctionID string `json:"function_id"`
24582458

0 commit comments

Comments
 (0)