@awsless/awsless 0.0.367 → 0.0.369
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.json +1 -1
- package/dist/bin.js +768 -626
- package/dist/build-json-schema.js +21 -2
- package/dist/prebuild/rpc/HASH +1 -1
- package/dist/prebuild/rpc/bundle.zip +0 -0
- package/dist/stack.json +1 -1
- package/package.json +11 -11
|
@@ -149,10 +149,22 @@ var LogRetentionSchema = DurationSchema.refine(
|
|
|
149
149
|
},
|
|
150
150
|
`Invalid log retention. Valid days are: ${validLogRetentionDays.map((days3) => `${days3}`).join(", ")}`
|
|
151
151
|
).describe("The log retention duration.");
|
|
152
|
+
var LogSubscriptionSchema = z5.union([
|
|
153
|
+
LocalFileSchema.transform((file) => ({
|
|
154
|
+
file
|
|
155
|
+
})),
|
|
156
|
+
z5.object({
|
|
157
|
+
subscriber: LocalFileSchema,
|
|
158
|
+
filter: z5.string().optional()
|
|
159
|
+
})
|
|
160
|
+
]).describe(
|
|
161
|
+
"Log Subscription allow you to subscribe to a real-time stream of log events and have them delivered to a specific destination"
|
|
162
|
+
);
|
|
152
163
|
var LogSchema = z5.union([
|
|
153
164
|
z5.boolean().transform((enabled) => ({ retention: enabled ? days(7) : days(0) })),
|
|
154
165
|
LogRetentionSchema.transform((retention) => ({ retention })),
|
|
155
166
|
z5.object({
|
|
167
|
+
subscription: LogSubscriptionSchema.optional(),
|
|
156
168
|
retention: LogRetentionSchema.optional(),
|
|
157
169
|
format: z5.enum(["text", "json"]).describe(
|
|
158
170
|
`The format in which Lambda sends your function's application and system logs to CloudWatch. Select between plain text and structured JSON.`
|
|
@@ -581,9 +593,9 @@ var PubSubSchema = z17.record(
|
|
|
581
593
|
).optional().describe("Define the pubsub subscriber in your stack.");
|
|
582
594
|
|
|
583
595
|
// src/feature/queue/schema.ts
|
|
584
|
-
import { z as z18 } from "zod";
|
|
585
596
|
import { days as days2, hours, minutes as minutes2, seconds as seconds2 } from "@awsless/duration";
|
|
586
597
|
import { kibibytes } from "@awsless/size";
|
|
598
|
+
import { z as z18 } from "zod";
|
|
587
599
|
var RetentionPeriodSchema = DurationSchema.refine(
|
|
588
600
|
durationMin(minutes2(1)),
|
|
589
601
|
"Minimum retention period is 1 minute"
|
|
@@ -642,7 +654,7 @@ var QueuesSchema = z18.record(
|
|
|
642
654
|
}
|
|
643
655
|
})),
|
|
644
656
|
z18.object({
|
|
645
|
-
consumer: FunctionSchema.describe("
|
|
657
|
+
consumer: FunctionSchema.describe("The consuming lambda function properties."),
|
|
646
658
|
retentionPeriod: RetentionPeriodSchema.optional(),
|
|
647
659
|
visibilityTimeout: VisibilityTimeoutSchema.optional(),
|
|
648
660
|
deliveryDelay: DeliveryDelaySchema.optional(),
|
|
@@ -1111,6 +1123,11 @@ var DomainsDefaultSchema = z31.record(
|
|
|
1111
1123
|
})
|
|
1112
1124
|
).optional().describe("Define the domains for your application.");
|
|
1113
1125
|
|
|
1126
|
+
// src/feature/log-subscription/schema.ts
|
|
1127
|
+
var LogSubscriptionSchema2 = FunctionSchema.optional().describe(
|
|
1128
|
+
"Log Subscription allow you to subscribe to a real-time stream of log events and have them delivered to a specific destination."
|
|
1129
|
+
);
|
|
1130
|
+
|
|
1114
1131
|
// src/config/schema/region.ts
|
|
1115
1132
|
import { z as z32 } from "zod";
|
|
1116
1133
|
var US = ["us-east-2", "us-east-1", "us-west-1", "us-west-2"];
|
|
@@ -1154,6 +1171,8 @@ var AppSchema = z33.object({
|
|
|
1154
1171
|
// .regex(/^[a-z]+$/)
|
|
1155
1172
|
// .default('prod')
|
|
1156
1173
|
// .describe('The deployment stage.'),
|
|
1174
|
+
// onFailure: OnFailureSchema,
|
|
1175
|
+
logSubscription: LogSubscriptionSchema2,
|
|
1157
1176
|
defaults: z33.object({
|
|
1158
1177
|
auth: AuthDefaultSchema,
|
|
1159
1178
|
domains: DomainsDefaultSchema,
|
package/dist/prebuild/rpc/HASH
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
34eafe8e5556b34a6841941b5c52a41a598492dc
|
|
Binary file
|