@pulumiverse/vercel 1.3.0 → 1.10.0
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/attackChallengeMode.d.ts +102 -0
- package/attackChallengeMode.js +89 -0
- package/attackChallengeMode.js.map +1 -0
- package/config/vars.d.ts +2 -2
- package/dnsRecord.d.ts +6 -4
- package/dnsRecord.js +6 -4
- package/dnsRecord.js.map +1 -1
- package/edgeConfig.d.ts +111 -0
- package/edgeConfig.js +102 -0
- package/edgeConfig.js.map +1 -0
- package/edgeConfigSchema.d.ts +85 -0
- package/edgeConfigSchema.js +79 -0
- package/edgeConfigSchema.js.map +1 -0
- package/edgeConfigToken.d.ts +145 -0
- package/edgeConfigToken.js +120 -0
- package/edgeConfigToken.js.map +1 -0
- package/getAttackChallengeMode.d.ts +82 -0
- package/getAttackChallengeMode.js +52 -0
- package/getAttackChallengeMode.js.map +1 -0
- package/getDeployment.d.ts +94 -0
- package/getDeployment.js +52 -0
- package/getDeployment.js.map +1 -0
- package/getEdgeConfig.d.ts +78 -0
- package/getEdgeConfig.js +52 -0
- package/getEdgeConfig.js.map +1 -0
- package/getEdgeConfigSchema.d.ts +74 -0
- package/getEdgeConfigSchema.js +48 -0
- package/getEdgeConfigSchema.js.map +1 -0
- package/getEdgeConfigToken.d.ts +104 -0
- package/getEdgeConfigToken.js +59 -0
- package/getEdgeConfigToken.js.map +1 -0
- package/getEndpointVerification.d.ts +62 -0
- package/getEndpointVerification.js +44 -0
- package/getEndpointVerification.js.map +1 -0
- package/getFile.d.ts +0 -4
- package/getFile.js +0 -4
- package/getFile.js.map +1 -1
- package/getLogDrain.d.ts +116 -0
- package/getLogDrain.js +57 -0
- package/getLogDrain.js.map +1 -0
- package/getProject.d.ts +48 -4
- package/getProject.js +0 -4
- package/getProject.js.map +1 -1
- package/getProjectFunctionCpu.d.ts +88 -0
- package/getProjectFunctionCpu.js +58 -0
- package/getProjectFunctionCpu.js.map +1 -0
- package/getSharedEnvironmentVariable.d.ts +0 -4
- package/getSharedEnvironmentVariable.js +0 -4
- package/getSharedEnvironmentVariable.js.map +1 -1
- package/index.d.ts +45 -0
- package/index.js +60 -1
- package/index.js.map +1 -1
- package/logDrain.d.ts +206 -0
- package/logDrain.js +135 -0
- package/logDrain.js.map +1 -0
- package/package.json +1 -1
- package/project.d.ts +132 -2
- package/project.js +22 -2
- package/project.js.map +1 -1
- package/projectDomain.d.ts +0 -2
- package/projectDomain.js +0 -2
- package/projectDomain.js.map +1 -1
- package/projectEnvironmentVariable.d.ts +6 -4
- package/projectEnvironmentVariable.js +6 -4
- package/projectEnvironmentVariable.js.map +1 -1
- package/projectFunctionCpu.d.ts +104 -0
- package/projectFunctionCpu.js +91 -0
- package/projectFunctionCpu.js.map +1 -0
- package/provider.d.ts +4 -4
- package/sharedEnvironmentVariable.d.ts +1 -3
- package/sharedEnvironmentVariable.js +1 -3
- package/sharedEnvironmentVariable.js.map +1 -1
- package/types/input.d.ts +33 -1
- package/types/output.d.ts +65 -4
- package/webhook.d.ts +127 -0
- package/webhook.js +100 -0
- package/webhook.js.map +1 -0
package/index.js
CHANGED
|
@@ -2,21 +2,50 @@
|
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.types = exports.config = exports.SharedEnvironmentVariable = exports.Provider = exports.ProjectEnvironmentVariable = exports.ProjectDomain = exports.Project = exports.getSharedEnvironmentVariableOutput = exports.getSharedEnvironmentVariable = exports.getProjectDirectoryOutput = exports.getProjectDirectory = exports.getProjectOutput = exports.getProject = exports.getPrebuiltProjectOutput = exports.getPrebuiltProject = exports.getFileOutput = exports.getFile = exports.getAliasOutput = exports.getAlias = exports.DnsRecord = exports.Deployment = exports.Alias = void 0;
|
|
5
|
+
exports.types = exports.config = exports.Webhook = exports.SharedEnvironmentVariable = exports.Provider = exports.ProjectFunctionCpu = exports.ProjectEnvironmentVariable = exports.ProjectDomain = exports.Project = exports.LogDrain = exports.getSharedEnvironmentVariableOutput = exports.getSharedEnvironmentVariable = exports.getProjectFunctionCpuOutput = exports.getProjectFunctionCpu = exports.getProjectDirectoryOutput = exports.getProjectDirectory = exports.getProjectOutput = exports.getProject = exports.getPrebuiltProjectOutput = exports.getPrebuiltProject = exports.getLogDrainOutput = exports.getLogDrain = exports.getFileOutput = exports.getFile = exports.getEndpointVerificationOutput = exports.getEndpointVerification = exports.getEdgeConfigTokenOutput = exports.getEdgeConfigToken = exports.getEdgeConfigSchemaOutput = exports.getEdgeConfigSchema = exports.getEdgeConfigOutput = exports.getEdgeConfig = exports.getDeploymentOutput = exports.getDeployment = exports.getAttackChallengeModeOutput = exports.getAttackChallengeMode = exports.getAliasOutput = exports.getAlias = exports.EdgeConfigToken = exports.EdgeConfigSchema = exports.EdgeConfig = exports.DnsRecord = exports.Deployment = exports.AttackChallengeMode = exports.Alias = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
exports.Alias = null;
|
|
9
9
|
utilities.lazyLoad(exports, ["Alias"], () => require("./alias"));
|
|
10
|
+
exports.AttackChallengeMode = null;
|
|
11
|
+
utilities.lazyLoad(exports, ["AttackChallengeMode"], () => require("./attackChallengeMode"));
|
|
10
12
|
exports.Deployment = null;
|
|
11
13
|
utilities.lazyLoad(exports, ["Deployment"], () => require("./deployment"));
|
|
12
14
|
exports.DnsRecord = null;
|
|
13
15
|
utilities.lazyLoad(exports, ["DnsRecord"], () => require("./dnsRecord"));
|
|
16
|
+
exports.EdgeConfig = null;
|
|
17
|
+
utilities.lazyLoad(exports, ["EdgeConfig"], () => require("./edgeConfig"));
|
|
18
|
+
exports.EdgeConfigSchema = null;
|
|
19
|
+
utilities.lazyLoad(exports, ["EdgeConfigSchema"], () => require("./edgeConfigSchema"));
|
|
20
|
+
exports.EdgeConfigToken = null;
|
|
21
|
+
utilities.lazyLoad(exports, ["EdgeConfigToken"], () => require("./edgeConfigToken"));
|
|
14
22
|
exports.getAlias = null;
|
|
15
23
|
exports.getAliasOutput = null;
|
|
16
24
|
utilities.lazyLoad(exports, ["getAlias", "getAliasOutput"], () => require("./getAlias"));
|
|
25
|
+
exports.getAttackChallengeMode = null;
|
|
26
|
+
exports.getAttackChallengeModeOutput = null;
|
|
27
|
+
utilities.lazyLoad(exports, ["getAttackChallengeMode", "getAttackChallengeModeOutput"], () => require("./getAttackChallengeMode"));
|
|
28
|
+
exports.getDeployment = null;
|
|
29
|
+
exports.getDeploymentOutput = null;
|
|
30
|
+
utilities.lazyLoad(exports, ["getDeployment", "getDeploymentOutput"], () => require("./getDeployment"));
|
|
31
|
+
exports.getEdgeConfig = null;
|
|
32
|
+
exports.getEdgeConfigOutput = null;
|
|
33
|
+
utilities.lazyLoad(exports, ["getEdgeConfig", "getEdgeConfigOutput"], () => require("./getEdgeConfig"));
|
|
34
|
+
exports.getEdgeConfigSchema = null;
|
|
35
|
+
exports.getEdgeConfigSchemaOutput = null;
|
|
36
|
+
utilities.lazyLoad(exports, ["getEdgeConfigSchema", "getEdgeConfigSchemaOutput"], () => require("./getEdgeConfigSchema"));
|
|
37
|
+
exports.getEdgeConfigToken = null;
|
|
38
|
+
exports.getEdgeConfigTokenOutput = null;
|
|
39
|
+
utilities.lazyLoad(exports, ["getEdgeConfigToken", "getEdgeConfigTokenOutput"], () => require("./getEdgeConfigToken"));
|
|
40
|
+
exports.getEndpointVerification = null;
|
|
41
|
+
exports.getEndpointVerificationOutput = null;
|
|
42
|
+
utilities.lazyLoad(exports, ["getEndpointVerification", "getEndpointVerificationOutput"], () => require("./getEndpointVerification"));
|
|
17
43
|
exports.getFile = null;
|
|
18
44
|
exports.getFileOutput = null;
|
|
19
45
|
utilities.lazyLoad(exports, ["getFile", "getFileOutput"], () => require("./getFile"));
|
|
46
|
+
exports.getLogDrain = null;
|
|
47
|
+
exports.getLogDrainOutput = null;
|
|
48
|
+
utilities.lazyLoad(exports, ["getLogDrain", "getLogDrainOutput"], () => require("./getLogDrain"));
|
|
20
49
|
exports.getPrebuiltProject = null;
|
|
21
50
|
exports.getPrebuiltProjectOutput = null;
|
|
22
51
|
utilities.lazyLoad(exports, ["getPrebuiltProject", "getPrebuiltProjectOutput"], () => require("./getPrebuiltProject"));
|
|
@@ -26,19 +55,28 @@ utilities.lazyLoad(exports, ["getProject", "getProjectOutput"], () => require(".
|
|
|
26
55
|
exports.getProjectDirectory = null;
|
|
27
56
|
exports.getProjectDirectoryOutput = null;
|
|
28
57
|
utilities.lazyLoad(exports, ["getProjectDirectory", "getProjectDirectoryOutput"], () => require("./getProjectDirectory"));
|
|
58
|
+
exports.getProjectFunctionCpu = null;
|
|
59
|
+
exports.getProjectFunctionCpuOutput = null;
|
|
60
|
+
utilities.lazyLoad(exports, ["getProjectFunctionCpu", "getProjectFunctionCpuOutput"], () => require("./getProjectFunctionCpu"));
|
|
29
61
|
exports.getSharedEnvironmentVariable = null;
|
|
30
62
|
exports.getSharedEnvironmentVariableOutput = null;
|
|
31
63
|
utilities.lazyLoad(exports, ["getSharedEnvironmentVariable", "getSharedEnvironmentVariableOutput"], () => require("./getSharedEnvironmentVariable"));
|
|
64
|
+
exports.LogDrain = null;
|
|
65
|
+
utilities.lazyLoad(exports, ["LogDrain"], () => require("./logDrain"));
|
|
32
66
|
exports.Project = null;
|
|
33
67
|
utilities.lazyLoad(exports, ["Project"], () => require("./project"));
|
|
34
68
|
exports.ProjectDomain = null;
|
|
35
69
|
utilities.lazyLoad(exports, ["ProjectDomain"], () => require("./projectDomain"));
|
|
36
70
|
exports.ProjectEnvironmentVariable = null;
|
|
37
71
|
utilities.lazyLoad(exports, ["ProjectEnvironmentVariable"], () => require("./projectEnvironmentVariable"));
|
|
72
|
+
exports.ProjectFunctionCpu = null;
|
|
73
|
+
utilities.lazyLoad(exports, ["ProjectFunctionCpu"], () => require("./projectFunctionCpu"));
|
|
38
74
|
exports.Provider = null;
|
|
39
75
|
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
|
40
76
|
exports.SharedEnvironmentVariable = null;
|
|
41
77
|
utilities.lazyLoad(exports, ["SharedEnvironmentVariable"], () => require("./sharedEnvironmentVariable"));
|
|
78
|
+
exports.Webhook = null;
|
|
79
|
+
utilities.lazyLoad(exports, ["Webhook"], () => require("./webhook"));
|
|
42
80
|
// Export sub-modules:
|
|
43
81
|
const config = require("./config");
|
|
44
82
|
exports.config = config;
|
|
@@ -50,30 +88,51 @@ const _module = {
|
|
|
50
88
|
switch (type) {
|
|
51
89
|
case "vercel:index/alias:Alias":
|
|
52
90
|
return new exports.Alias(name, undefined, { urn });
|
|
91
|
+
case "vercel:index/attackChallengeMode:AttackChallengeMode":
|
|
92
|
+
return new exports.AttackChallengeMode(name, undefined, { urn });
|
|
53
93
|
case "vercel:index/deployment:Deployment":
|
|
54
94
|
return new exports.Deployment(name, undefined, { urn });
|
|
55
95
|
case "vercel:index/dnsRecord:DnsRecord":
|
|
56
96
|
return new exports.DnsRecord(name, undefined, { urn });
|
|
97
|
+
case "vercel:index/edgeConfig:EdgeConfig":
|
|
98
|
+
return new exports.EdgeConfig(name, undefined, { urn });
|
|
99
|
+
case "vercel:index/edgeConfigSchema:EdgeConfigSchema":
|
|
100
|
+
return new exports.EdgeConfigSchema(name, undefined, { urn });
|
|
101
|
+
case "vercel:index/edgeConfigToken:EdgeConfigToken":
|
|
102
|
+
return new exports.EdgeConfigToken(name, undefined, { urn });
|
|
103
|
+
case "vercel:index/logDrain:LogDrain":
|
|
104
|
+
return new exports.LogDrain(name, undefined, { urn });
|
|
57
105
|
case "vercel:index/project:Project":
|
|
58
106
|
return new exports.Project(name, undefined, { urn });
|
|
59
107
|
case "vercel:index/projectDomain:ProjectDomain":
|
|
60
108
|
return new exports.ProjectDomain(name, undefined, { urn });
|
|
61
109
|
case "vercel:index/projectEnvironmentVariable:ProjectEnvironmentVariable":
|
|
62
110
|
return new exports.ProjectEnvironmentVariable(name, undefined, { urn });
|
|
111
|
+
case "vercel:index/projectFunctionCpu:ProjectFunctionCpu":
|
|
112
|
+
return new exports.ProjectFunctionCpu(name, undefined, { urn });
|
|
63
113
|
case "vercel:index/sharedEnvironmentVariable:SharedEnvironmentVariable":
|
|
64
114
|
return new exports.SharedEnvironmentVariable(name, undefined, { urn });
|
|
115
|
+
case "vercel:index/webhook:Webhook":
|
|
116
|
+
return new exports.Webhook(name, undefined, { urn });
|
|
65
117
|
default:
|
|
66
118
|
throw new Error(`unknown resource type ${type}`);
|
|
67
119
|
}
|
|
68
120
|
},
|
|
69
121
|
};
|
|
70
122
|
pulumi.runtime.registerResourceModule("vercel", "index/alias", _module);
|
|
123
|
+
pulumi.runtime.registerResourceModule("vercel", "index/attackChallengeMode", _module);
|
|
71
124
|
pulumi.runtime.registerResourceModule("vercel", "index/deployment", _module);
|
|
72
125
|
pulumi.runtime.registerResourceModule("vercel", "index/dnsRecord", _module);
|
|
126
|
+
pulumi.runtime.registerResourceModule("vercel", "index/edgeConfig", _module);
|
|
127
|
+
pulumi.runtime.registerResourceModule("vercel", "index/edgeConfigSchema", _module);
|
|
128
|
+
pulumi.runtime.registerResourceModule("vercel", "index/edgeConfigToken", _module);
|
|
129
|
+
pulumi.runtime.registerResourceModule("vercel", "index/logDrain", _module);
|
|
73
130
|
pulumi.runtime.registerResourceModule("vercel", "index/project", _module);
|
|
74
131
|
pulumi.runtime.registerResourceModule("vercel", "index/projectDomain", _module);
|
|
75
132
|
pulumi.runtime.registerResourceModule("vercel", "index/projectEnvironmentVariable", _module);
|
|
133
|
+
pulumi.runtime.registerResourceModule("vercel", "index/projectFunctionCpu", _module);
|
|
76
134
|
pulumi.runtime.registerResourceModule("vercel", "index/sharedEnvironmentVariable", _module);
|
|
135
|
+
pulumi.runtime.registerResourceModule("vercel", "index/webhook", _module);
|
|
77
136
|
pulumi.runtime.registerResourcePackage("vercel", {
|
|
78
137
|
version: utilities.getVersion(),
|
|
79
138
|
constructProvider: (name, type, urn) => {
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAK5B,QAAA,KAAK,GAAmC,IAAW,CAAC;AACjE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;AAIpD,QAAA,UAAU,GAA6C,IAAW,CAAC;AAChF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;AAI9D,QAAA,SAAS,GAA2C,IAAW,CAAC;AAC7E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAK5B,QAAA,KAAK,GAAmC,IAAW,CAAC;AACjE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;AAIpD,QAAA,mBAAmB,GAA+D,IAAW,CAAC;AAC3G,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,qBAAqB,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC;AAIhF,QAAA,UAAU,GAA6C,IAAW,CAAC;AAChF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC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ts
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a Configurable Log Drain resource.
|
|
4
|
+
*
|
|
5
|
+
* > For Log Drain integrations, please see the [Integration Log Drain docs](https://vercel.com/docs/observability/log-drains#log-drains-integration).
|
|
6
|
+
*
|
|
7
|
+
* Log Drains collect all of your logs using a service specializing in storing app logs.
|
|
8
|
+
*
|
|
9
|
+
* Teams on Pro and Enterprise plans can subscribe to log drains that are generic and configurable from the Vercel dashboard without creating an integration. This allows you to use a HTTP service to receive logs through Vercel's log drains.
|
|
10
|
+
*
|
|
11
|
+
* > Only Pro and Enterprise teams can create Configurable Log Drains.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as vercel from "@pulumi/vercel";
|
|
18
|
+
* import * as vercel from "@pulumiverse/vercel";
|
|
19
|
+
*
|
|
20
|
+
* const exampleEndpointVerification = vercel.getEndpointVerification({});
|
|
21
|
+
* const exampleProject = new vercel.Project("exampleProject", {});
|
|
22
|
+
* const exampleLogDrain = new vercel.LogDrain("exampleLogDrain", {
|
|
23
|
+
* deliveryFormat: "json",
|
|
24
|
+
* environments: ["production"],
|
|
25
|
+
* headers: {
|
|
26
|
+
* "some-key": "some-value",
|
|
27
|
+
* },
|
|
28
|
+
* projectIds: [exampleProject.id],
|
|
29
|
+
* samplingRate: 0.8,
|
|
30
|
+
* secret: "a_very_long_and_very_well_specified_secret",
|
|
31
|
+
* sources: ["static"],
|
|
32
|
+
* endpoint: "https://example.com/my-log-drain-endpoint",
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* ## Import
|
|
37
|
+
*
|
|
38
|
+
* If importing into a personal account, or with a team configured on
|
|
39
|
+
*
|
|
40
|
+
* the provider, simply use the log_drain_id.
|
|
41
|
+
*
|
|
42
|
+
* - log_drain_id can be found by querying the Vercel REST API (https://vercel.com/docs/rest-api/endpoints/logDrains#retrieves-a-list-of-all-the-log-drains).
|
|
43
|
+
*
|
|
44
|
+
* ```sh
|
|
45
|
+
* $ pulumi import vercel:index/logDrain:LogDrain example ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* Alternatively, you can import via the team_id and edge_config_id.
|
|
49
|
+
*
|
|
50
|
+
* - team_id can be found in the team `settings` tab in the Vercel UI.
|
|
51
|
+
*
|
|
52
|
+
* - log_drain_id can be found by querying the Vercel REST API (https://vercel.com/docs/rest-api/endpoints/logDrains#retrieves-a-list-of-all-the-log-drains).
|
|
53
|
+
*
|
|
54
|
+
* ```sh
|
|
55
|
+
* $ pulumi import vercel:index/logDrain:LogDrain example team_xxxxxxxxxxxxxxxxxxxxxxxx/ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export declare class LogDrain extends pulumi.CustomResource {
|
|
59
|
+
/**
|
|
60
|
+
* Get an existing LogDrain resource's state with the given name, ID, and optional extra
|
|
61
|
+
* properties used to qualify the lookup.
|
|
62
|
+
*
|
|
63
|
+
* @param name The _unique_ name of the resulting resource.
|
|
64
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
65
|
+
* @param state Any extra arguments used during the lookup.
|
|
66
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
67
|
+
*/
|
|
68
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LogDrainState, opts?: pulumi.CustomResourceOptions): LogDrain;
|
|
69
|
+
/**
|
|
70
|
+
* Returns true if the given object is an instance of LogDrain. This is designed to work even
|
|
71
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
72
|
+
*/
|
|
73
|
+
static isInstance(obj: any): obj is LogDrain;
|
|
74
|
+
/**
|
|
75
|
+
* The format log data should be delivered in. Can be `json` or `ndjson`.
|
|
76
|
+
*/
|
|
77
|
+
readonly deliveryFormat: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Logs will be sent as POST requests to this URL. The endpoint will be verified, and must return a `200` status code and an `x-vercel-verify` header taken from the endpointVerification data source. The value the `x-vercel-verify` header should be can be read from the `vercelEndpointVerificationCode` data source.
|
|
80
|
+
*/
|
|
81
|
+
readonly endpoint: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* Logs from the selected environments will be forwarded to your webhook. At least one must be present.
|
|
84
|
+
*/
|
|
85
|
+
readonly environments: pulumi.Output<string[]>;
|
|
86
|
+
/**
|
|
87
|
+
* Custom headers to include in requests to the log drain endpoint.
|
|
88
|
+
*/
|
|
89
|
+
readonly headers: pulumi.Output<{
|
|
90
|
+
[key: string]: string;
|
|
91
|
+
} | undefined>;
|
|
92
|
+
/**
|
|
93
|
+
* A list of project IDs that the log drain should be associated with. Logs from these projects will be sent log events to the specified endpoint. If omitted, logs will be sent for all projects.
|
|
94
|
+
*/
|
|
95
|
+
readonly projectIds: pulumi.Output<string[] | undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* A ratio of logs matching the sampling rate will be sent to your log drain. Should be a value between 0 and 1. If unspecified, all logs are sent.
|
|
98
|
+
*/
|
|
99
|
+
readonly samplingRate: pulumi.Output<number | undefined>;
|
|
100
|
+
/**
|
|
101
|
+
* A custom secret to be used for signing log events. You can use this secret to verify that log events are coming from Vercel and are not tampered with. See https://vercel.com/docs/observability/log-drains/log-drains-reference#secure-log-drains for full info.
|
|
102
|
+
*/
|
|
103
|
+
readonly secret: pulumi.Output<string>;
|
|
104
|
+
/**
|
|
105
|
+
* A set of sources that the log drain should send logs for. Valid values are `static`, `edge`, `external`, `build` and `lambda`.
|
|
106
|
+
*/
|
|
107
|
+
readonly sources: pulumi.Output<string[]>;
|
|
108
|
+
/**
|
|
109
|
+
* The ID of the team the Log Drain should exist under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
110
|
+
*/
|
|
111
|
+
readonly teamId: pulumi.Output<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Create a LogDrain resource with the given unique name, arguments, and options.
|
|
114
|
+
*
|
|
115
|
+
* @param name The _unique_ name of the resource.
|
|
116
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
117
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
118
|
+
*/
|
|
119
|
+
constructor(name: string, args: LogDrainArgs, opts?: pulumi.CustomResourceOptions);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Input properties used for looking up and filtering LogDrain resources.
|
|
123
|
+
*/
|
|
124
|
+
export interface LogDrainState {
|
|
125
|
+
/**
|
|
126
|
+
* The format log data should be delivered in. Can be `json` or `ndjson`.
|
|
127
|
+
*/
|
|
128
|
+
deliveryFormat?: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Logs will be sent as POST requests to this URL. The endpoint will be verified, and must return a `200` status code and an `x-vercel-verify` header taken from the endpointVerification data source. The value the `x-vercel-verify` header should be can be read from the `vercelEndpointVerificationCode` data source.
|
|
131
|
+
*/
|
|
132
|
+
endpoint?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Logs from the selected environments will be forwarded to your webhook. At least one must be present.
|
|
135
|
+
*/
|
|
136
|
+
environments?: pulumi.Input<pulumi.Input<string>[]>;
|
|
137
|
+
/**
|
|
138
|
+
* Custom headers to include in requests to the log drain endpoint.
|
|
139
|
+
*/
|
|
140
|
+
headers?: pulumi.Input<{
|
|
141
|
+
[key: string]: pulumi.Input<string>;
|
|
142
|
+
}>;
|
|
143
|
+
/**
|
|
144
|
+
* A list of project IDs that the log drain should be associated with. Logs from these projects will be sent log events to the specified endpoint. If omitted, logs will be sent for all projects.
|
|
145
|
+
*/
|
|
146
|
+
projectIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
147
|
+
/**
|
|
148
|
+
* A ratio of logs matching the sampling rate will be sent to your log drain. Should be a value between 0 and 1. If unspecified, all logs are sent.
|
|
149
|
+
*/
|
|
150
|
+
samplingRate?: pulumi.Input<number>;
|
|
151
|
+
/**
|
|
152
|
+
* A custom secret to be used for signing log events. You can use this secret to verify that log events are coming from Vercel and are not tampered with. See https://vercel.com/docs/observability/log-drains/log-drains-reference#secure-log-drains for full info.
|
|
153
|
+
*/
|
|
154
|
+
secret?: pulumi.Input<string>;
|
|
155
|
+
/**
|
|
156
|
+
* A set of sources that the log drain should send logs for. Valid values are `static`, `edge`, `external`, `build` and `lambda`.
|
|
157
|
+
*/
|
|
158
|
+
sources?: pulumi.Input<pulumi.Input<string>[]>;
|
|
159
|
+
/**
|
|
160
|
+
* The ID of the team the Log Drain should exist under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
161
|
+
*/
|
|
162
|
+
teamId?: pulumi.Input<string>;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* The set of arguments for constructing a LogDrain resource.
|
|
166
|
+
*/
|
|
167
|
+
export interface LogDrainArgs {
|
|
168
|
+
/**
|
|
169
|
+
* The format log data should be delivered in. Can be `json` or `ndjson`.
|
|
170
|
+
*/
|
|
171
|
+
deliveryFormat: pulumi.Input<string>;
|
|
172
|
+
/**
|
|
173
|
+
* Logs will be sent as POST requests to this URL. The endpoint will be verified, and must return a `200` status code and an `x-vercel-verify` header taken from the endpointVerification data source. The value the `x-vercel-verify` header should be can be read from the `vercelEndpointVerificationCode` data source.
|
|
174
|
+
*/
|
|
175
|
+
endpoint: pulumi.Input<string>;
|
|
176
|
+
/**
|
|
177
|
+
* Logs from the selected environments will be forwarded to your webhook. At least one must be present.
|
|
178
|
+
*/
|
|
179
|
+
environments: pulumi.Input<pulumi.Input<string>[]>;
|
|
180
|
+
/**
|
|
181
|
+
* Custom headers to include in requests to the log drain endpoint.
|
|
182
|
+
*/
|
|
183
|
+
headers?: pulumi.Input<{
|
|
184
|
+
[key: string]: pulumi.Input<string>;
|
|
185
|
+
}>;
|
|
186
|
+
/**
|
|
187
|
+
* A list of project IDs that the log drain should be associated with. Logs from these projects will be sent log events to the specified endpoint. If omitted, logs will be sent for all projects.
|
|
188
|
+
*/
|
|
189
|
+
projectIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
190
|
+
/**
|
|
191
|
+
* A ratio of logs matching the sampling rate will be sent to your log drain. Should be a value between 0 and 1. If unspecified, all logs are sent.
|
|
192
|
+
*/
|
|
193
|
+
samplingRate?: pulumi.Input<number>;
|
|
194
|
+
/**
|
|
195
|
+
* A custom secret to be used for signing log events. You can use this secret to verify that log events are coming from Vercel and are not tampered with. See https://vercel.com/docs/observability/log-drains/log-drains-reference#secure-log-drains for full info.
|
|
196
|
+
*/
|
|
197
|
+
secret?: pulumi.Input<string>;
|
|
198
|
+
/**
|
|
199
|
+
* A set of sources that the log drain should send logs for. Valid values are `static`, `edge`, `external`, `build` and `lambda`.
|
|
200
|
+
*/
|
|
201
|
+
sources: pulumi.Input<pulumi.Input<string>[]>;
|
|
202
|
+
/**
|
|
203
|
+
* The ID of the team the Log Drain should exist under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
204
|
+
*/
|
|
205
|
+
teamId?: pulumi.Input<string>;
|
|
206
|
+
}
|
package/logDrain.js
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.LogDrain = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a Configurable Log Drain resource.
|
|
10
|
+
*
|
|
11
|
+
* > For Log Drain integrations, please see the [Integration Log Drain docs](https://vercel.com/docs/observability/log-drains#log-drains-integration).
|
|
12
|
+
*
|
|
13
|
+
* Log Drains collect all of your logs using a service specializing in storing app logs.
|
|
14
|
+
*
|
|
15
|
+
* Teams on Pro and Enterprise plans can subscribe to log drains that are generic and configurable from the Vercel dashboard without creating an integration. This allows you to use a HTTP service to receive logs through Vercel's log drains.
|
|
16
|
+
*
|
|
17
|
+
* > Only Pro and Enterprise teams can create Configurable Log Drains.
|
|
18
|
+
*
|
|
19
|
+
* ## Example Usage
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as vercel from "@pulumi/vercel";
|
|
24
|
+
* import * as vercel from "@pulumiverse/vercel";
|
|
25
|
+
*
|
|
26
|
+
* const exampleEndpointVerification = vercel.getEndpointVerification({});
|
|
27
|
+
* const exampleProject = new vercel.Project("exampleProject", {});
|
|
28
|
+
* const exampleLogDrain = new vercel.LogDrain("exampleLogDrain", {
|
|
29
|
+
* deliveryFormat: "json",
|
|
30
|
+
* environments: ["production"],
|
|
31
|
+
* headers: {
|
|
32
|
+
* "some-key": "some-value",
|
|
33
|
+
* },
|
|
34
|
+
* projectIds: [exampleProject.id],
|
|
35
|
+
* samplingRate: 0.8,
|
|
36
|
+
* secret: "a_very_long_and_very_well_specified_secret",
|
|
37
|
+
* sources: ["static"],
|
|
38
|
+
* endpoint: "https://example.com/my-log-drain-endpoint",
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* ## Import
|
|
43
|
+
*
|
|
44
|
+
* If importing into a personal account, or with a team configured on
|
|
45
|
+
*
|
|
46
|
+
* the provider, simply use the log_drain_id.
|
|
47
|
+
*
|
|
48
|
+
* - log_drain_id can be found by querying the Vercel REST API (https://vercel.com/docs/rest-api/endpoints/logDrains#retrieves-a-list-of-all-the-log-drains).
|
|
49
|
+
*
|
|
50
|
+
* ```sh
|
|
51
|
+
* $ pulumi import vercel:index/logDrain:LogDrain example ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* Alternatively, you can import via the team_id and edge_config_id.
|
|
55
|
+
*
|
|
56
|
+
* - team_id can be found in the team `settings` tab in the Vercel UI.
|
|
57
|
+
*
|
|
58
|
+
* - log_drain_id can be found by querying the Vercel REST API (https://vercel.com/docs/rest-api/endpoints/logDrains#retrieves-a-list-of-all-the-log-drains).
|
|
59
|
+
*
|
|
60
|
+
* ```sh
|
|
61
|
+
* $ pulumi import vercel:index/logDrain:LogDrain example team_xxxxxxxxxxxxxxxxxxxxxxxx/ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
class LogDrain extends pulumi.CustomResource {
|
|
65
|
+
/**
|
|
66
|
+
* Get an existing LogDrain resource's state with the given name, ID, and optional extra
|
|
67
|
+
* properties used to qualify the lookup.
|
|
68
|
+
*
|
|
69
|
+
* @param name The _unique_ name of the resulting resource.
|
|
70
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
71
|
+
* @param state Any extra arguments used during the lookup.
|
|
72
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
73
|
+
*/
|
|
74
|
+
static get(name, id, state, opts) {
|
|
75
|
+
return new LogDrain(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Returns true if the given object is an instance of LogDrain. This is designed to work even
|
|
79
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
80
|
+
*/
|
|
81
|
+
static isInstance(obj) {
|
|
82
|
+
if (obj === undefined || obj === null) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
return obj['__pulumiType'] === LogDrain.__pulumiType;
|
|
86
|
+
}
|
|
87
|
+
constructor(name, argsOrState, opts) {
|
|
88
|
+
let resourceInputs = {};
|
|
89
|
+
opts = opts || {};
|
|
90
|
+
if (opts.id) {
|
|
91
|
+
const state = argsOrState;
|
|
92
|
+
resourceInputs["deliveryFormat"] = state ? state.deliveryFormat : undefined;
|
|
93
|
+
resourceInputs["endpoint"] = state ? state.endpoint : undefined;
|
|
94
|
+
resourceInputs["environments"] = state ? state.environments : undefined;
|
|
95
|
+
resourceInputs["headers"] = state ? state.headers : undefined;
|
|
96
|
+
resourceInputs["projectIds"] = state ? state.projectIds : undefined;
|
|
97
|
+
resourceInputs["samplingRate"] = state ? state.samplingRate : undefined;
|
|
98
|
+
resourceInputs["secret"] = state ? state.secret : undefined;
|
|
99
|
+
resourceInputs["sources"] = state ? state.sources : undefined;
|
|
100
|
+
resourceInputs["teamId"] = state ? state.teamId : undefined;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
const args = argsOrState;
|
|
104
|
+
if ((!args || args.deliveryFormat === undefined) && !opts.urn) {
|
|
105
|
+
throw new Error("Missing required property 'deliveryFormat'");
|
|
106
|
+
}
|
|
107
|
+
if ((!args || args.endpoint === undefined) && !opts.urn) {
|
|
108
|
+
throw new Error("Missing required property 'endpoint'");
|
|
109
|
+
}
|
|
110
|
+
if ((!args || args.environments === undefined) && !opts.urn) {
|
|
111
|
+
throw new Error("Missing required property 'environments'");
|
|
112
|
+
}
|
|
113
|
+
if ((!args || args.sources === undefined) && !opts.urn) {
|
|
114
|
+
throw new Error("Missing required property 'sources'");
|
|
115
|
+
}
|
|
116
|
+
resourceInputs["deliveryFormat"] = args ? args.deliveryFormat : undefined;
|
|
117
|
+
resourceInputs["endpoint"] = args ? args.endpoint : undefined;
|
|
118
|
+
resourceInputs["environments"] = args ? args.environments : undefined;
|
|
119
|
+
resourceInputs["headers"] = args ? args.headers : undefined;
|
|
120
|
+
resourceInputs["projectIds"] = args ? args.projectIds : undefined;
|
|
121
|
+
resourceInputs["samplingRate"] = args ? args.samplingRate : undefined;
|
|
122
|
+
resourceInputs["secret"] = (args === null || args === void 0 ? void 0 : args.secret) ? pulumi.secret(args.secret) : undefined;
|
|
123
|
+
resourceInputs["sources"] = args ? args.sources : undefined;
|
|
124
|
+
resourceInputs["teamId"] = args ? args.teamId : undefined;
|
|
125
|
+
}
|
|
126
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
127
|
+
const secretOpts = { additionalSecretOutputs: ["secret"] };
|
|
128
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
129
|
+
super(LogDrain.__pulumiType, name, resourceInputs, opts);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.LogDrain = LogDrain;
|
|
133
|
+
/** @internal */
|
|
134
|
+
LogDrain.__pulumiType = 'vercel:index/logDrain:LogDrain';
|
|
135
|
+
//# sourceMappingURL=logDrain.js.map
|
package/logDrain.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logDrain.js","sourceRoot":"","sources":["../logDrain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAA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