@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.
Files changed (77) hide show
  1. package/attackChallengeMode.d.ts +102 -0
  2. package/attackChallengeMode.js +89 -0
  3. package/attackChallengeMode.js.map +1 -0
  4. package/config/vars.d.ts +2 -2
  5. package/dnsRecord.d.ts +6 -4
  6. package/dnsRecord.js +6 -4
  7. package/dnsRecord.js.map +1 -1
  8. package/edgeConfig.d.ts +111 -0
  9. package/edgeConfig.js +102 -0
  10. package/edgeConfig.js.map +1 -0
  11. package/edgeConfigSchema.d.ts +85 -0
  12. package/edgeConfigSchema.js +79 -0
  13. package/edgeConfigSchema.js.map +1 -0
  14. package/edgeConfigToken.d.ts +145 -0
  15. package/edgeConfigToken.js +120 -0
  16. package/edgeConfigToken.js.map +1 -0
  17. package/getAttackChallengeMode.d.ts +82 -0
  18. package/getAttackChallengeMode.js +52 -0
  19. package/getAttackChallengeMode.js.map +1 -0
  20. package/getDeployment.d.ts +94 -0
  21. package/getDeployment.js +52 -0
  22. package/getDeployment.js.map +1 -0
  23. package/getEdgeConfig.d.ts +78 -0
  24. package/getEdgeConfig.js +52 -0
  25. package/getEdgeConfig.js.map +1 -0
  26. package/getEdgeConfigSchema.d.ts +74 -0
  27. package/getEdgeConfigSchema.js +48 -0
  28. package/getEdgeConfigSchema.js.map +1 -0
  29. package/getEdgeConfigToken.d.ts +104 -0
  30. package/getEdgeConfigToken.js +59 -0
  31. package/getEdgeConfigToken.js.map +1 -0
  32. package/getEndpointVerification.d.ts +62 -0
  33. package/getEndpointVerification.js +44 -0
  34. package/getEndpointVerification.js.map +1 -0
  35. package/getFile.d.ts +0 -4
  36. package/getFile.js +0 -4
  37. package/getFile.js.map +1 -1
  38. package/getLogDrain.d.ts +116 -0
  39. package/getLogDrain.js +57 -0
  40. package/getLogDrain.js.map +1 -0
  41. package/getProject.d.ts +48 -4
  42. package/getProject.js +0 -4
  43. package/getProject.js.map +1 -1
  44. package/getProjectFunctionCpu.d.ts +88 -0
  45. package/getProjectFunctionCpu.js +58 -0
  46. package/getProjectFunctionCpu.js.map +1 -0
  47. package/getSharedEnvironmentVariable.d.ts +0 -4
  48. package/getSharedEnvironmentVariable.js +0 -4
  49. package/getSharedEnvironmentVariable.js.map +1 -1
  50. package/index.d.ts +45 -0
  51. package/index.js +60 -1
  52. package/index.js.map +1 -1
  53. package/logDrain.d.ts +206 -0
  54. package/logDrain.js +135 -0
  55. package/logDrain.js.map +1 -0
  56. package/package.json +1 -1
  57. package/project.d.ts +132 -2
  58. package/project.js +22 -2
  59. package/project.js.map +1 -1
  60. package/projectDomain.d.ts +0 -2
  61. package/projectDomain.js +0 -2
  62. package/projectDomain.js.map +1 -1
  63. package/projectEnvironmentVariable.d.ts +6 -4
  64. package/projectEnvironmentVariable.js +6 -4
  65. package/projectEnvironmentVariable.js.map +1 -1
  66. package/projectFunctionCpu.d.ts +104 -0
  67. package/projectFunctionCpu.js +91 -0
  68. package/projectFunctionCpu.js.map +1 -0
  69. package/provider.d.ts +4 -4
  70. package/sharedEnvironmentVariable.d.ts +1 -3
  71. package/sharedEnvironmentVariable.js +1 -3
  72. package/sharedEnvironmentVariable.js.map +1 -1
  73. package/types/input.d.ts +33 -1
  74. package/types/output.d.ts +65 -4
  75. package/webhook.d.ts +127 -0
  76. package/webhook.js +100 -0
  77. package/webhook.js.map +1 -0
@@ -0,0 +1,116 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides information about an existing Log Drain.
4
+ *
5
+ * Log Drains collect all of your logs using a service specializing in storing app logs.
6
+ *
7
+ * 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.
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as vercel from "@pulumi/vercel";
14
+ *
15
+ * const example = vercel.getLogDrain({
16
+ * id: "lg_xxxxxxx_xxxxxx_xxxxx",
17
+ * });
18
+ * ```
19
+ */
20
+ export declare function getLogDrain(args: GetLogDrainArgs, opts?: pulumi.InvokeOptions): Promise<GetLogDrainResult>;
21
+ /**
22
+ * A collection of arguments for invoking getLogDrain.
23
+ */
24
+ export interface GetLogDrainArgs {
25
+ /**
26
+ * 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.
27
+ */
28
+ endpoint: string;
29
+ /**
30
+ * The ID of the Log Drain.
31
+ */
32
+ id: string;
33
+ /**
34
+ * 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.
35
+ */
36
+ teamId?: string;
37
+ }
38
+ /**
39
+ * A collection of values returned by getLogDrain.
40
+ */
41
+ export interface GetLogDrainResult {
42
+ /**
43
+ * The format log data should be delivered in. Can be `json` or `ndjson`.
44
+ */
45
+ readonly deliveryFormat: string;
46
+ /**
47
+ * 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.
48
+ */
49
+ readonly endpoint: string;
50
+ /**
51
+ * Logs from the selected environments will be forwarded to your webhook. At least one must be present.
52
+ */
53
+ readonly environments: string[];
54
+ /**
55
+ * Custom headers to include in requests to the log drain endpoint.
56
+ */
57
+ readonly headers: {
58
+ [key: string]: string;
59
+ };
60
+ /**
61
+ * The ID of the Log Drain.
62
+ */
63
+ readonly id: string;
64
+ /**
65
+ * 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.
66
+ */
67
+ readonly projectIds: string[];
68
+ /**
69
+ * 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.
70
+ */
71
+ readonly samplingRate: number;
72
+ /**
73
+ * A set of sources that the log drain should send logs for. Valid values are `static`, `edge`, `external`, `build` and `function`.
74
+ */
75
+ readonly sources: string[];
76
+ /**
77
+ * 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.
78
+ */
79
+ readonly teamId: string;
80
+ }
81
+ /**
82
+ * Provides information about an existing Log Drain.
83
+ *
84
+ * Log Drains collect all of your logs using a service specializing in storing app logs.
85
+ *
86
+ * 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.
87
+ *
88
+ * ## Example Usage
89
+ *
90
+ * ```typescript
91
+ * import * as pulumi from "@pulumi/pulumi";
92
+ * import * as vercel from "@pulumi/vercel";
93
+ *
94
+ * const example = vercel.getLogDrain({
95
+ * id: "lg_xxxxxxx_xxxxxx_xxxxx",
96
+ * });
97
+ * ```
98
+ */
99
+ export declare function getLogDrainOutput(args: GetLogDrainOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetLogDrainResult>;
100
+ /**
101
+ * A collection of arguments for invoking getLogDrain.
102
+ */
103
+ export interface GetLogDrainOutputArgs {
104
+ /**
105
+ * 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.
106
+ */
107
+ endpoint: pulumi.Input<string>;
108
+ /**
109
+ * The ID of the Log Drain.
110
+ */
111
+ id: pulumi.Input<string>;
112
+ /**
113
+ * 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.
114
+ */
115
+ teamId?: pulumi.Input<string>;
116
+ }
package/getLogDrain.js ADDED
@@ -0,0 +1,57 @@
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.getLogDrainOutput = exports.getLogDrain = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides information about an existing Log Drain.
10
+ *
11
+ * Log Drains collect all of your logs using a service specializing in storing app logs.
12
+ *
13
+ * 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.
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as vercel from "@pulumi/vercel";
20
+ *
21
+ * const example = vercel.getLogDrain({
22
+ * id: "lg_xxxxxxx_xxxxxx_xxxxx",
23
+ * });
24
+ * ```
25
+ */
26
+ function getLogDrain(args, opts) {
27
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
28
+ return pulumi.runtime.invoke("vercel:index/getLogDrain:getLogDrain", {
29
+ "endpoint": args.endpoint,
30
+ "id": args.id,
31
+ "teamId": args.teamId,
32
+ }, opts);
33
+ }
34
+ exports.getLogDrain = getLogDrain;
35
+ /**
36
+ * Provides information about an existing Log Drain.
37
+ *
38
+ * Log Drains collect all of your logs using a service specializing in storing app logs.
39
+ *
40
+ * 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.
41
+ *
42
+ * ## Example Usage
43
+ *
44
+ * ```typescript
45
+ * import * as pulumi from "@pulumi/pulumi";
46
+ * import * as vercel from "@pulumi/vercel";
47
+ *
48
+ * const example = vercel.getLogDrain({
49
+ * id: "lg_xxxxxxx_xxxxxx_xxxxx",
50
+ * });
51
+ * ```
52
+ */
53
+ function getLogDrainOutput(args, opts) {
54
+ return pulumi.output(args).apply((a) => getLogDrain(a, opts));
55
+ }
56
+ exports.getLogDrainOutput = getLogDrainOutput;
57
+ //# sourceMappingURL=getLogDrain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLogDrain.js","sourceRoot":"","sources":["../getLogDrain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAE1E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sCAAsC,EAAE;QACjE,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,kCAQC;AA6DD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACtE,CAAC;AAFD,8CAEC"}
package/getProject.d.ts CHANGED
@@ -9,7 +9,6 @@ import * as outputs from "./types/output";
9
9
  *
10
10
  * ## Example Usage
11
11
  *
12
- * <!--Start PulumiCodeChooser -->
13
12
  * ```typescript
14
13
  * import * as pulumi from "@pulumi/pulumi";
15
14
  * import * as vercel from "@pulumi/vercel";
@@ -19,7 +18,6 @@ import * as outputs from "./types/output";
19
18
  * });
20
19
  * export const projectId = foo.then(foo => foo.id);
21
20
  * ```
22
- * <!--End PulumiCodeChooser -->
23
21
  */
24
22
  export declare function getProject(args: GetProjectArgs, opts?: pulumi.InvokeOptions): Promise<GetProjectResult>;
25
23
  /**
@@ -39,14 +37,30 @@ export interface GetProjectArgs {
39
37
  * A collection of values returned by getProject.
40
38
  */
41
39
  export interface GetProjectResult {
40
+ /**
41
+ * Automatically assign custom production domains after each Production deployment via merge to the production branch or Vercel CLI deploy with --prod. Defaults to `true`
42
+ */
43
+ readonly autoAssignCustomDomains: boolean;
44
+ /**
45
+ * Vercel provides a set of Environment Variables that are automatically populated by the System, such as the URL of the Deployment or the name of the Git branch deployed. To expose them to your Deployments, enable this field
46
+ */
47
+ readonly automaticallyExposeSystemEnvironmentVariables: boolean;
42
48
  /**
43
49
  * The build command for this project. If omitted, this value will be automatically detected.
44
50
  */
45
51
  readonly buildCommand: string;
52
+ /**
53
+ * Allows Vercel Customer Support to inspect all Deployments' source code in this project to assist with debugging.
54
+ */
55
+ readonly customerSuccessCodeVisibility: boolean;
46
56
  /**
47
57
  * The dev command for this project. If omitted, this value will be automatically detected.
48
58
  */
49
59
  readonly devCommand: string;
60
+ /**
61
+ * If no index file is present within a directory, the directory contents will be displayed.
62
+ */
63
+ readonly directoryListing: boolean;
50
64
  /**
51
65
  * A list of environment variables that should be configured for the project.
52
66
  */
@@ -55,6 +69,22 @@ export interface GetProjectResult {
55
69
  * The framework that is being used for this project. If omitted, no framework is selected.
56
70
  */
57
71
  readonly framework: string;
72
+ /**
73
+ * Automatically failover Serverless Functions to the nearest region. You can customize regions through vercel.json. A new Deployment is required for your changes to take effect.
74
+ */
75
+ readonly functionFailover: boolean;
76
+ /**
77
+ * Configuration for Git Comments.
78
+ */
79
+ readonly gitComments: outputs.GetProjectGitComments;
80
+ /**
81
+ * Ensures that pull requests targeting your Git repository must be authorized by a member of your Team before deploying if your Project has Environment Variables or if the pull request includes a change to vercel.json.
82
+ */
83
+ readonly gitForkProtection: boolean;
84
+ /**
85
+ * Enables Git LFS support. Git LFS replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.
86
+ */
87
+ readonly gitLfs: boolean;
58
88
  /**
59
89
  * The Git Repository that will be connected to the project. When this is defined, any pushes to the specified connected Git Repository will be automatically deployed. This requires the corresponding Vercel for [Github](https://vercel.com/docs/concepts/git/vercel-for-github), [Gitlab](https://vercel.com/docs/concepts/git/vercel-for-gitlab) or [Bitbucket](https://vercel.com/docs/concepts/git/vercel-for-bitbucket) plugins to be installed.
60
90
  */
@@ -83,6 +113,18 @@ export interface GetProjectResult {
83
113
  * Ensures visitors of your Preview Deployments must enter a password in order to gain access.
84
114
  */
85
115
  readonly passwordProtection: outputs.GetProjectPasswordProtection;
116
+ /**
117
+ * Whether comments are enabled on your Preview Deployments.
118
+ */
119
+ readonly previewComments: boolean;
120
+ /**
121
+ * If enabled, builds for the Production environment will be prioritized over Preview environments.
122
+ */
123
+ readonly prioritiseProductionBuilds: boolean;
124
+ /**
125
+ * Allows automation services to bypass Vercel Authentication and Password Protection for both Preview and Production Deployments on this project when using an HTTP header named `x-vercel-protection-bypass`.
126
+ */
127
+ readonly protectionBypassForAutomation: boolean;
86
128
  /**
87
129
  * Specifies whether the source code and logs of the deployments for this project should be public or not.
88
130
  */
@@ -95,6 +137,10 @@ export interface GetProjectResult {
95
137
  * The region on Vercel's network to which your Serverless Functions are deployed. It should be close to any data source your Serverless Function might depend on. A new Deployment is required for your changes to take effect. Please see [Vercel's documentation](https://vercel.com/docs/concepts/edge-network/regions) for a full list of regions.
96
138
  */
97
139
  readonly serverlessFunctionRegion: string;
140
+ /**
141
+ * Ensures that outdated clients always fetch the correct version for a given deployment. This value defines how long Vercel keeps Skew Protection active.
142
+ */
143
+ readonly skewProtection: string;
98
144
  /**
99
145
  * The team ID the project exists beneath. Required when configuring a team resource if a default team has not been set in the provider.
100
146
  */
@@ -117,7 +163,6 @@ export interface GetProjectResult {
117
163
  *
118
164
  * ## Example Usage
119
165
  *
120
- * <!--Start PulumiCodeChooser -->
121
166
  * ```typescript
122
167
  * import * as pulumi from "@pulumi/pulumi";
123
168
  * import * as vercel from "@pulumi/vercel";
@@ -127,7 +172,6 @@ export interface GetProjectResult {
127
172
  * });
128
173
  * export const projectId = foo.then(foo => foo.id);
129
174
  * ```
130
- * <!--End PulumiCodeChooser -->
131
175
  */
132
176
  export declare function getProjectOutput(args: GetProjectOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetProjectResult>;
133
177
  /**
package/getProject.js CHANGED
@@ -14,7 +14,6 @@ const utilities = require("./utilities");
14
14
  *
15
15
  * ## Example Usage
16
16
  *
17
- * <!--Start PulumiCodeChooser -->
18
17
  * ```typescript
19
18
  * import * as pulumi from "@pulumi/pulumi";
20
19
  * import * as vercel from "@pulumi/vercel";
@@ -24,7 +23,6 @@ const utilities = require("./utilities");
24
23
  * });
25
24
  * export const projectId = foo.then(foo => foo.id);
26
25
  * ```
27
- * <!--End PulumiCodeChooser -->
28
26
  */
29
27
  function getProject(args, opts) {
30
28
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -43,7 +41,6 @@ exports.getProject = getProject;
43
41
  *
44
42
  * ## Example Usage
45
43
  *
46
- * <!--Start PulumiCodeChooser -->
47
44
  * ```typescript
48
45
  * import * as pulumi from "@pulumi/pulumi";
49
46
  * import * as vercel from "@pulumi/vercel";
@@ -53,7 +50,6 @@ exports.getProject = getProject;
53
50
  * });
54
51
  * export const projectId = foo.then(foo => foo.id);
55
52
  * ```
56
- * <!--End PulumiCodeChooser -->
57
53
  */
58
54
  function getProjectOutput(args, opts) {
59
55
  return pulumi.output(args).apply((a) => getProject(a, opts));
package/getProject.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getProject.js","sourceRoot":"","sources":["../getProject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IAExE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,C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1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides information about a Project's Function CPU setting.
4
+ *
5
+ * This controls the maximum amount of CPU utilization your Serverless Functions can use while executing. Standard is optimal for most frontend workloads. You can override this per function using the vercel.json file.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as vercel from "@pulumi/vercel";
12
+ *
13
+ * const exampleProject = vercel.getProject({
14
+ * name: "example",
15
+ * });
16
+ * const exampleProjectFunctionCpu = exampleProject.then(exampleProject => vercel.getProjectFunctionCpu({
17
+ * projectId: exampleProject.id,
18
+ * }));
19
+ * ```
20
+ */
21
+ export declare function getProjectFunctionCpu(args: GetProjectFunctionCpuArgs, opts?: pulumi.InvokeOptions): Promise<GetProjectFunctionCpuResult>;
22
+ /**
23
+ * A collection of arguments for invoking getProjectFunctionCpu.
24
+ */
25
+ export interface GetProjectFunctionCpuArgs {
26
+ /**
27
+ * The ID of the Project to read the Function CPU setting for.
28
+ */
29
+ projectId: string;
30
+ /**
31
+ * The ID of the team the Project exists under. Required when configuring a team resource if a default team has not been set in the provider.
32
+ */
33
+ teamId?: string;
34
+ }
35
+ /**
36
+ * A collection of values returned by getProjectFunctionCpu.
37
+ */
38
+ export interface GetProjectFunctionCpuResult {
39
+ /**
40
+ * The amount of CPU available to your Serverless Functions. Should be one of 'basic' (0.6vCPU), 'standard' (1vCPU) or 'performance' (1.7vCPUs).
41
+ */
42
+ readonly cpu: string;
43
+ /**
44
+ * The ID of the resource.
45
+ */
46
+ readonly id: string;
47
+ /**
48
+ * The ID of the Project to read the Function CPU setting for.
49
+ */
50
+ readonly projectId: string;
51
+ /**
52
+ * The ID of the team the Project exists under. Required when configuring a team resource if a default team has not been set in the provider.
53
+ */
54
+ readonly teamId: string;
55
+ }
56
+ /**
57
+ * Provides information about a Project's Function CPU setting.
58
+ *
59
+ * This controls the maximum amount of CPU utilization your Serverless Functions can use while executing. Standard is optimal for most frontend workloads. You can override this per function using the vercel.json file.
60
+ *
61
+ * ## Example Usage
62
+ *
63
+ * ```typescript
64
+ * import * as pulumi from "@pulumi/pulumi";
65
+ * import * as vercel from "@pulumi/vercel";
66
+ *
67
+ * const exampleProject = vercel.getProject({
68
+ * name: "example",
69
+ * });
70
+ * const exampleProjectFunctionCpu = exampleProject.then(exampleProject => vercel.getProjectFunctionCpu({
71
+ * projectId: exampleProject.id,
72
+ * }));
73
+ * ```
74
+ */
75
+ export declare function getProjectFunctionCpuOutput(args: GetProjectFunctionCpuOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetProjectFunctionCpuResult>;
76
+ /**
77
+ * A collection of arguments for invoking getProjectFunctionCpu.
78
+ */
79
+ export interface GetProjectFunctionCpuOutputArgs {
80
+ /**
81
+ * The ID of the Project to read the Function CPU setting for.
82
+ */
83
+ projectId: pulumi.Input<string>;
84
+ /**
85
+ * The ID of the team the Project exists under. Required when configuring a team resource if a default team has not been set in the provider.
86
+ */
87
+ teamId?: pulumi.Input<string>;
88
+ }
@@ -0,0 +1,58 @@
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.getProjectFunctionCpuOutput = exports.getProjectFunctionCpu = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides information about a Project's Function CPU setting.
10
+ *
11
+ * This controls the maximum amount of CPU utilization your Serverless Functions can use while executing. Standard is optimal for most frontend workloads. You can override this per function using the vercel.json file.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as vercel from "@pulumi/vercel";
18
+ *
19
+ * const exampleProject = vercel.getProject({
20
+ * name: "example",
21
+ * });
22
+ * const exampleProjectFunctionCpu = exampleProject.then(exampleProject => vercel.getProjectFunctionCpu({
23
+ * projectId: exampleProject.id,
24
+ * }));
25
+ * ```
26
+ */
27
+ function getProjectFunctionCpu(args, opts) {
28
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
29
+ return pulumi.runtime.invoke("vercel:index/getProjectFunctionCpu:getProjectFunctionCpu", {
30
+ "projectId": args.projectId,
31
+ "teamId": args.teamId,
32
+ }, opts);
33
+ }
34
+ exports.getProjectFunctionCpu = getProjectFunctionCpu;
35
+ /**
36
+ * Provides information about a Project's Function CPU setting.
37
+ *
38
+ * This controls the maximum amount of CPU utilization your Serverless Functions can use while executing. Standard is optimal for most frontend workloads. You can override this per function using the vercel.json file.
39
+ *
40
+ * ## Example Usage
41
+ *
42
+ * ```typescript
43
+ * import * as pulumi from "@pulumi/pulumi";
44
+ * import * as vercel from "@pulumi/vercel";
45
+ *
46
+ * const exampleProject = vercel.getProject({
47
+ * name: "example",
48
+ * });
49
+ * const exampleProjectFunctionCpu = exampleProject.then(exampleProject => vercel.getProjectFunctionCpu({
50
+ * projectId: exampleProject.id,
51
+ * }));
52
+ * ```
53
+ */
54
+ function getProjectFunctionCpuOutput(args, opts) {
55
+ return pulumi.output(args).apply((a) => getProjectFunctionCpu(a, opts));
56
+ }
57
+ exports.getProjectFunctionCpuOutput = getProjectFunctionCpuOutput;
58
+ //# sourceMappingURL=getProjectFunctionCpu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProjectFunctionCpu.js","sourceRoot":"","sources":["../getProjectFunctionCpu.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAE9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0DAA0D,EAAE;QACrF,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,sDAOC;AAqCD;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,2BAA2B,CAAC,IAAqC,EAAE,IAA2B;IAC1G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAChF,CAAC;AAFD,kEAEC"}
@@ -8,7 +8,6 @@ import * as pulumi from "@pulumi/pulumi";
8
8
  *
9
9
  * ## Example Usage
10
10
  *
11
- * <!--Start PulumiCodeChooser -->
12
11
  * ```typescript
13
12
  * import * as pulumi from "@pulumi/pulumi";
14
13
  * import * as vercel from "@pulumi/vercel";
@@ -24,7 +23,6 @@ import * as pulumi from "@pulumi/pulumi";
24
23
  * ],
25
24
  * });
26
25
  * ```
27
- * <!--End PulumiCodeChooser -->
28
26
  */
29
27
  export declare function getSharedEnvironmentVariable(args?: GetSharedEnvironmentVariableArgs, opts?: pulumi.InvokeOptions): Promise<GetSharedEnvironmentVariableResult>;
30
28
  /**
@@ -90,7 +88,6 @@ export interface GetSharedEnvironmentVariableResult {
90
88
  *
91
89
  * ## Example Usage
92
90
  *
93
- * <!--Start PulumiCodeChooser -->
94
91
  * ```typescript
95
92
  * import * as pulumi from "@pulumi/pulumi";
96
93
  * import * as vercel from "@pulumi/vercel";
@@ -106,7 +103,6 @@ export interface GetSharedEnvironmentVariableResult {
106
103
  * ],
107
104
  * });
108
105
  * ```
109
- * <!--End PulumiCodeChooser -->
110
106
  */
111
107
  export declare function getSharedEnvironmentVariableOutput(args?: GetSharedEnvironmentVariableOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSharedEnvironmentVariableResult>;
112
108
  /**
@@ -14,7 +14,6 @@ const utilities = require("./utilities");
14
14
  *
15
15
  * ## Example Usage
16
16
  *
17
- * <!--Start PulumiCodeChooser -->
18
17
  * ```typescript
19
18
  * import * as pulumi from "@pulumi/pulumi";
20
19
  * import * as vercel from "@pulumi/vercel";
@@ -30,7 +29,6 @@ const utilities = require("./utilities");
30
29
  * ],
31
30
  * });
32
31
  * ```
33
- * <!--End PulumiCodeChooser -->
34
32
  */
35
33
  function getSharedEnvironmentVariable(args, opts) {
36
34
  args = args || {};
@@ -52,7 +50,6 @@ exports.getSharedEnvironmentVariable = getSharedEnvironmentVariable;
52
50
  *
53
51
  * ## Example Usage
54
52
  *
55
- * <!--Start PulumiCodeChooser -->
56
53
  * ```typescript
57
54
  * import * as pulumi from "@pulumi/pulumi";
58
55
  * import * as vercel from "@pulumi/vercel";
@@ -68,7 +65,6 @@ exports.getSharedEnvironmentVariable = getSharedEnvironmentVariable;
68
65
  * ],
69
66
  * });
70
67
  * ```
71
- * <!--End PulumiCodeChooser -->
72
68
  */
73
69
  function getSharedEnvironmentVariableOutput(args, opts) {
74
70
  return pulumi.output(args).apply((a) => getSharedEnvironmentVariable(a, opts));
@@ -1 +1 @@
1
- {"version":3,"file":"getSharedEnvironmentVariable.js","sourceRoot":"","sources":["../getSharedEnvironmentVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,SAAgB,4BAA4B,CAAC,IAAuC,EAAE,IAA2B;IAC7G,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wEAAwE,EAAE;QACnG,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,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AM,EAAE,EAAE,CAAC,4BAA4B,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvF,CAAC;AAFD,gFAEC"}
package/index.d.ts CHANGED
@@ -1,18 +1,51 @@
1
1
  export { AliasArgs, AliasState } from "./alias";
2
2
  export type Alias = import("./alias").Alias;
3
3
  export declare const Alias: typeof import("./alias").Alias;
4
+ export { AttackChallengeModeArgs, AttackChallengeModeState } from "./attackChallengeMode";
5
+ export type AttackChallengeMode = import("./attackChallengeMode").AttackChallengeMode;
6
+ export declare const AttackChallengeMode: typeof import("./attackChallengeMode").AttackChallengeMode;
4
7
  export { DeploymentArgs, DeploymentState } from "./deployment";
5
8
  export type Deployment = import("./deployment").Deployment;
6
9
  export declare const Deployment: typeof import("./deployment").Deployment;
7
10
  export { DnsRecordArgs, DnsRecordState } from "./dnsRecord";
8
11
  export type DnsRecord = import("./dnsRecord").DnsRecord;
9
12
  export declare const DnsRecord: typeof import("./dnsRecord").DnsRecord;
13
+ export { EdgeConfigArgs, EdgeConfigState } from "./edgeConfig";
14
+ export type EdgeConfig = import("./edgeConfig").EdgeConfig;
15
+ export declare const EdgeConfig: typeof import("./edgeConfig").EdgeConfig;
16
+ export { EdgeConfigSchemaArgs, EdgeConfigSchemaState } from "./edgeConfigSchema";
17
+ export type EdgeConfigSchema = import("./edgeConfigSchema").EdgeConfigSchema;
18
+ export declare const EdgeConfigSchema: typeof import("./edgeConfigSchema").EdgeConfigSchema;
19
+ export { EdgeConfigTokenArgs, EdgeConfigTokenState } from "./edgeConfigToken";
20
+ export type EdgeConfigToken = import("./edgeConfigToken").EdgeConfigToken;
21
+ export declare const EdgeConfigToken: typeof import("./edgeConfigToken").EdgeConfigToken;
10
22
  export { GetAliasArgs, GetAliasResult, GetAliasOutputArgs } from "./getAlias";
11
23
  export declare const getAlias: typeof import("./getAlias").getAlias;
12
24
  export declare const getAliasOutput: typeof import("./getAlias").getAliasOutput;
25
+ export { GetAttackChallengeModeArgs, GetAttackChallengeModeResult, GetAttackChallengeModeOutputArgs } from "./getAttackChallengeMode";
26
+ export declare const getAttackChallengeMode: typeof import("./getAttackChallengeMode").getAttackChallengeMode;
27
+ export declare const getAttackChallengeModeOutput: typeof import("./getAttackChallengeMode").getAttackChallengeModeOutput;
28
+ export { GetDeploymentArgs, GetDeploymentResult, GetDeploymentOutputArgs } from "./getDeployment";
29
+ export declare const getDeployment: typeof import("./getDeployment").getDeployment;
30
+ export declare const getDeploymentOutput: typeof import("./getDeployment").getDeploymentOutput;
31
+ export { GetEdgeConfigArgs, GetEdgeConfigResult, GetEdgeConfigOutputArgs } from "./getEdgeConfig";
32
+ export declare const getEdgeConfig: typeof import("./getEdgeConfig").getEdgeConfig;
33
+ export declare const getEdgeConfigOutput: typeof import("./getEdgeConfig").getEdgeConfigOutput;
34
+ export { GetEdgeConfigSchemaArgs, GetEdgeConfigSchemaResult, GetEdgeConfigSchemaOutputArgs } from "./getEdgeConfigSchema";
35
+ export declare const getEdgeConfigSchema: typeof import("./getEdgeConfigSchema").getEdgeConfigSchema;
36
+ export declare const getEdgeConfigSchemaOutput: typeof import("./getEdgeConfigSchema").getEdgeConfigSchemaOutput;
37
+ export { GetEdgeConfigTokenArgs, GetEdgeConfigTokenResult, GetEdgeConfigTokenOutputArgs } from "./getEdgeConfigToken";
38
+ export declare const getEdgeConfigToken: typeof import("./getEdgeConfigToken").getEdgeConfigToken;
39
+ export declare const getEdgeConfigTokenOutput: typeof import("./getEdgeConfigToken").getEdgeConfigTokenOutput;
40
+ export { GetEndpointVerificationArgs, GetEndpointVerificationResult, GetEndpointVerificationOutputArgs } from "./getEndpointVerification";
41
+ export declare const getEndpointVerification: typeof import("./getEndpointVerification").getEndpointVerification;
42
+ export declare const getEndpointVerificationOutput: typeof import("./getEndpointVerification").getEndpointVerificationOutput;
13
43
  export { GetFileArgs, GetFileResult, GetFileOutputArgs } from "./getFile";
14
44
  export declare const getFile: typeof import("./getFile").getFile;
15
45
  export declare const getFileOutput: typeof import("./getFile").getFileOutput;
46
+ export { GetLogDrainArgs, GetLogDrainResult, GetLogDrainOutputArgs } from "./getLogDrain";
47
+ export declare const getLogDrain: typeof import("./getLogDrain").getLogDrain;
48
+ export declare const getLogDrainOutput: typeof import("./getLogDrain").getLogDrainOutput;
16
49
  export { GetPrebuiltProjectArgs, GetPrebuiltProjectResult, GetPrebuiltProjectOutputArgs } from "./getPrebuiltProject";
17
50
  export declare const getPrebuiltProject: typeof import("./getPrebuiltProject").getPrebuiltProject;
18
51
  export declare const getPrebuiltProjectOutput: typeof import("./getPrebuiltProject").getPrebuiltProjectOutput;
@@ -22,9 +55,15 @@ export declare const getProjectOutput: typeof import("./getProject").getProjectO
22
55
  export { GetProjectDirectoryArgs, GetProjectDirectoryResult, GetProjectDirectoryOutputArgs } from "./getProjectDirectory";
23
56
  export declare const getProjectDirectory: typeof import("./getProjectDirectory").getProjectDirectory;
24
57
  export declare const getProjectDirectoryOutput: typeof import("./getProjectDirectory").getProjectDirectoryOutput;
58
+ export { GetProjectFunctionCpuArgs, GetProjectFunctionCpuResult, GetProjectFunctionCpuOutputArgs } from "./getProjectFunctionCpu";
59
+ export declare const getProjectFunctionCpu: typeof import("./getProjectFunctionCpu").getProjectFunctionCpu;
60
+ export declare const getProjectFunctionCpuOutput: typeof import("./getProjectFunctionCpu").getProjectFunctionCpuOutput;
25
61
  export { GetSharedEnvironmentVariableArgs, GetSharedEnvironmentVariableResult, GetSharedEnvironmentVariableOutputArgs } from "./getSharedEnvironmentVariable";
26
62
  export declare const getSharedEnvironmentVariable: typeof import("./getSharedEnvironmentVariable").getSharedEnvironmentVariable;
27
63
  export declare const getSharedEnvironmentVariableOutput: typeof import("./getSharedEnvironmentVariable").getSharedEnvironmentVariableOutput;
64
+ export { LogDrainArgs, LogDrainState } from "./logDrain";
65
+ export type LogDrain = import("./logDrain").LogDrain;
66
+ export declare const LogDrain: typeof import("./logDrain").LogDrain;
28
67
  export { ProjectArgs, ProjectState } from "./project";
29
68
  export type Project = import("./project").Project;
30
69
  export declare const Project: typeof import("./project").Project;
@@ -34,12 +73,18 @@ export declare const ProjectDomain: typeof import("./projectDomain").ProjectDoma
34
73
  export { ProjectEnvironmentVariableArgs, ProjectEnvironmentVariableState } from "./projectEnvironmentVariable";
35
74
  export type ProjectEnvironmentVariable = import("./projectEnvironmentVariable").ProjectEnvironmentVariable;
36
75
  export declare const ProjectEnvironmentVariable: typeof import("./projectEnvironmentVariable").ProjectEnvironmentVariable;
76
+ export { ProjectFunctionCpuArgs, ProjectFunctionCpuState } from "./projectFunctionCpu";
77
+ export type ProjectFunctionCpu = import("./projectFunctionCpu").ProjectFunctionCpu;
78
+ export declare const ProjectFunctionCpu: typeof import("./projectFunctionCpu").ProjectFunctionCpu;
37
79
  export { ProviderArgs } from "./provider";
38
80
  export type Provider = import("./provider").Provider;
39
81
  export declare const Provider: typeof import("./provider").Provider;
40
82
  export { SharedEnvironmentVariableArgs, SharedEnvironmentVariableState } from "./sharedEnvironmentVariable";
41
83
  export type SharedEnvironmentVariable = import("./sharedEnvironmentVariable").SharedEnvironmentVariable;
42
84
  export declare const SharedEnvironmentVariable: typeof import("./sharedEnvironmentVariable").SharedEnvironmentVariable;
85
+ export { WebhookArgs, WebhookState } from "./webhook";
86
+ export type Webhook = import("./webhook").Webhook;
87
+ export declare const Webhook: typeof import("./webhook").Webhook;
43
88
  import * as config from "./config";
44
89
  import * as types from "./types";
45
90
  export { config, types, };