@awsless/awsless 0.0.163 → 0.0.165
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/README.MD +2 -0
- package/dist/app.json +1 -1
- package/dist/bin.js +55 -49
- package/dist/features/cognito-client-secret/bundle.zip +0 -0
- package/dist/features/delete-bucket/bundle.zip +0 -0
- package/dist/features/delete-hosted-zone/bundle.zip +0 -0
- package/dist/features/global-exports/bundle.zip +0 -0
- package/dist/features/invalidate-cache/bundle.zip +0 -0
- package/dist/features/upload-bucket-asset/bundle.zip +0 -0
- package/dist/index.d.ts +287 -0
- package/dist/json.js +3 -4
- package/dist/stack.json +1 -1
- package/package.json +2 -2
package/dist/json.js
CHANGED
|
@@ -225,6 +225,7 @@ var VPCSchema = z5.boolean().describe("Put the function inside your global VPC."
|
|
|
225
225
|
var MinifySchema = z5.boolean().describe("Minify the function code.");
|
|
226
226
|
var HandlerSchema = z5.string().describe("The name of the exported method within your code that Lambda calls to run your function.");
|
|
227
227
|
var FileSchema = LocalFileSchema.describe("The file path of the function code.");
|
|
228
|
+
var DescriptionSchema = z5.string().describe("A description of the function.");
|
|
228
229
|
var LogRetentionSchema = DurationSchema.refine(durationMin(Duration.days(1)), "Minimum log retention is 1 day");
|
|
229
230
|
var LogSchema = z5.union([
|
|
230
231
|
z5.boolean(),
|
|
@@ -248,6 +249,7 @@ var FunctionSchema = z5.union([
|
|
|
248
249
|
LocalFileSchema,
|
|
249
250
|
z5.object({
|
|
250
251
|
file: FileSchema,
|
|
252
|
+
description: DescriptionSchema.optional(),
|
|
251
253
|
handler: HandlerSchema.optional(),
|
|
252
254
|
minify: MinifySchema.optional(),
|
|
253
255
|
warm: WarmSchema.optional(),
|
|
@@ -385,10 +387,7 @@ var TriggersSchema = z10.object({
|
|
|
385
387
|
var AuthSchema = z10.record(
|
|
386
388
|
ResourceIdSchema,
|
|
387
389
|
z10.object({
|
|
388
|
-
|
|
389
|
-
// .boolean()
|
|
390
|
-
// .default(false)
|
|
391
|
-
// .describe('Give access to every function in this stack to your cognito instance.'),
|
|
390
|
+
access: z10.boolean().default(false).describe("Give access to every function in this stack to your cognito instance."),
|
|
392
391
|
triggers: TriggersSchema.optional()
|
|
393
392
|
})
|
|
394
393
|
).optional().describe("Define the auth triggers in your stack.");
|