UNPKG

serverless-vpc-discovery

Version:
64 lines (63 loc) 1.64 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.customProperties = exports.functionProperties = void 0; const baseProperties = { type: "object", properties: { vpcName: { type: "string" }, subnets: { type: "array", items: { type: "object", properties: { names: { type: "array", items: { type: "string" } }, tagKey: { type: "string" }, tagValues: { type: "array", items: { type: "string" } } } } }, securityGroups: { type: "array", items: { type: "object", properties: { tagKey: { type: "string" }, tagValues: { type: "array", items: { type: "string" } } } } }, // DEPRECATED subnetNames: { type: "array", items: { type: "string" } }, securityGroupNames: { type: "array", items: { type: "string" } } } }; exports.functionProperties = { properties: { vpcDiscovery: { anyOf: [ { type: "boolean" }, baseProperties ] } } }; exports.customProperties = { properties: { vpcDiscovery: baseProperties } };