@pulumiverse/vercel 1.15.0 → 2.9.0-alpha.1747137905

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 (133) hide show
  1. package/accessGroup.d.ts +35 -6
  2. package/accessGroup.js +32 -0
  3. package/accessGroup.js.map +1 -1
  4. package/accessGroupProject.d.ts +41 -6
  5. package/accessGroupProject.js +38 -0
  6. package/accessGroupProject.js.map +1 -1
  7. package/alias.d.ts +8 -6
  8. package/alias.js +5 -0
  9. package/alias.js.map +1 -1
  10. package/attackChallengeMode.d.ts +33 -6
  11. package/attackChallengeMode.js +30 -0
  12. package/attackChallengeMode.js.map +1 -1
  13. package/customEnvironment.d.ts +56 -6
  14. package/customEnvironment.js +53 -0
  15. package/customEnvironment.js.map +1 -1
  16. package/deployment.d.ts +17 -34
  17. package/deployment.js.map +1 -1
  18. package/dnsRecord.d.ts +135 -30
  19. package/dnsRecord.js +105 -0
  20. package/dnsRecord.js.map +1 -1
  21. package/edgeConfig.d.ts +54 -6
  22. package/edgeConfig.js +51 -0
  23. package/edgeConfig.js.map +1 -1
  24. package/edgeConfigItem.d.ts +50 -6
  25. package/edgeConfigItem.js +47 -0
  26. package/edgeConfigItem.js.map +1 -1
  27. package/edgeConfigSchema.d.ts +28 -6
  28. package/edgeConfigSchema.js +25 -0
  29. package/edgeConfigSchema.js.map +1 -1
  30. package/edgeConfigToken.d.ts +62 -10
  31. package/edgeConfigToken.js +57 -0
  32. package/edgeConfigToken.js.map +1 -1
  33. package/firewallConfig.d.ts +9 -0
  34. package/firewallConfig.js +9 -0
  35. package/firewallConfig.js.map +1 -1
  36. package/getAccessGroup.d.ts +53 -0
  37. package/getAccessGroup.js +32 -0
  38. package/getAccessGroup.js.map +1 -1
  39. package/getAccessGroupProject.d.ts +70 -0
  40. package/getAccessGroupProject.js +40 -0
  41. package/getAccessGroupProject.js.map +1 -1
  42. package/getAlias.d.ts +34 -0
  43. package/getAlias.js +10 -0
  44. package/getAlias.js.map +1 -1
  45. package/getAttackChallengeMode.d.ts +56 -0
  46. package/getAttackChallengeMode.js +32 -0
  47. package/getAttackChallengeMode.js.map +1 -1
  48. package/getCustomEnvironment.d.ts +76 -0
  49. package/getCustomEnvironment.js +40 -0
  50. package/getCustomEnvironment.js.map +1 -1
  51. package/getDeployment.d.ts +65 -0
  52. package/getDeployment.js +32 -0
  53. package/getDeployment.js.map +1 -1
  54. package/getEdgeConfig.d.ts +53 -0
  55. package/getEdgeConfig.js +32 -0
  56. package/getEdgeConfig.js.map +1 -1
  57. package/getEdgeConfigItem.d.ts +74 -0
  58. package/getEdgeConfigItem.js +44 -0
  59. package/getEdgeConfigItem.js.map +1 -1
  60. package/getEdgeConfigSchema.d.ts +49 -0
  61. package/getEdgeConfigSchema.js +28 -0
  62. package/getEdgeConfigSchema.js.map +1 -1
  63. package/getEdgeConfigToken.d.ts +74 -0
  64. package/getEdgeConfigToken.js +38 -0
  65. package/getEdgeConfigToken.js.map +1 -1
  66. package/getEndpointVerification.d.ts +39 -0
  67. package/getEndpointVerification.js +24 -0
  68. package/getEndpointVerification.js.map +1 -1
  69. package/getFile.d.ts +58 -0
  70. package/getFile.js +52 -0
  71. package/getFile.js.map +1 -1
  72. package/getLogDrain.d.ts +81 -0
  73. package/getLogDrain.js +36 -0
  74. package/getLogDrain.js.map +1 -1
  75. package/getPrebuiltProject.d.ts +6 -0
  76. package/getPrebuiltProject.js.map +1 -1
  77. package/getProject.d.ts +147 -0
  78. package/getProject.js +36 -0
  79. package/getProject.js.map +1 -1
  80. package/getProjectDeploymentRetention.d.ts +47 -0
  81. package/getProjectDeploymentRetention.js +14 -0
  82. package/getProjectDeploymentRetention.js.map +1 -1
  83. package/getProjectDirectory.d.ts +6 -0
  84. package/getProjectDirectory.js.map +1 -1
  85. package/getProjectMembers.d.ts +55 -0
  86. package/getProjectMembers.js +34 -0
  87. package/getProjectMembers.js.map +1 -1
  88. package/getSharedEnvironmentVariable.d.ts +106 -0
  89. package/getSharedEnvironmentVariable.js +58 -0
  90. package/getSharedEnvironmentVariable.js.map +1 -1
  91. package/getTeamConfig.d.ts +76 -0
  92. package/getTeamConfig.js +28 -0
  93. package/getTeamConfig.js.map +1 -1
  94. package/getTeamMember.d.ts +60 -0
  95. package/getTeamMember.js +30 -0
  96. package/getTeamMember.js.map +1 -1
  97. package/logDrain.d.ts +76 -42
  98. package/logDrain.js +58 -0
  99. package/logDrain.js.map +1 -1
  100. package/package.json +3 -2
  101. package/project.d.ts +94 -108
  102. package/project.js +49 -0
  103. package/project.js.map +1 -1
  104. package/projectDeploymentRetention.d.ts +54 -0
  105. package/projectDeploymentRetention.js +54 -0
  106. package/projectDeploymentRetention.js.map +1 -1
  107. package/projectDomain.d.ts +58 -12
  108. package/projectDomain.js +52 -0
  109. package/projectDomain.js.map +1 -1
  110. package/projectEnvironmentVariable.d.ts +94 -18
  111. package/projectEnvironmentVariable.js +85 -0
  112. package/projectEnvironmentVariable.js.map +1 -1
  113. package/projectEnvironmentVariables.d.ts +3 -0
  114. package/projectEnvironmentVariables.js +3 -0
  115. package/projectEnvironmentVariables.js.map +1 -1
  116. package/projectMembers.d.ts +26 -6
  117. package/projectMembers.js +23 -0
  118. package/projectMembers.js.map +1 -1
  119. package/sharedEnvironmentVariable.d.ts +53 -12
  120. package/sharedEnvironmentVariable.js +47 -0
  121. package/sharedEnvironmentVariable.js.map +1 -1
  122. package/teamConfig.d.ts +6 -6
  123. package/teamConfig.js +3 -0
  124. package/teamConfig.js.map +1 -1
  125. package/teamMember.d.ts +33 -18
  126. package/teamMember.js +24 -0
  127. package/teamMember.js.map +1 -1
  128. package/types/input.d.ts +2 -2
  129. package/types/output.d.ts +3 -3
  130. package/webhook.d.ts +43 -18
  131. package/webhook.js +35 -0
  132. package/webhook.js.map +1 -1
  133. package/package.json.bak +0 -27
@@ -1,23 +1,62 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a verification code that can be used to prove ownership over an API.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as vercel from "@pulumi/vercel";
10
+ *
11
+ * const example = vercel.getEndpointVerification({});
12
+ * ```
13
+ */
2
14
  export declare function getEndpointVerification(args?: GetEndpointVerificationArgs, opts?: pulumi.InvokeOptions): Promise<GetEndpointVerificationResult>;
3
15
  /**
4
16
  * A collection of arguments for invoking getEndpointVerification.
5
17
  */
6
18
  export interface GetEndpointVerificationArgs {
19
+ /**
20
+ * The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
21
+ */
7
22
  teamId?: string;
8
23
  }
9
24
  /**
10
25
  * A collection of values returned by getEndpointVerification.
11
26
  */
12
27
  export interface GetEndpointVerificationResult {
28
+ /**
29
+ * The ID of this resource.
30
+ */
13
31
  readonly id: string;
32
+ /**
33
+ * The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
34
+ */
14
35
  readonly teamId: string;
36
+ /**
37
+ * A verification code that should be set in the `x-vercel-verify` response header for your API. This is used to verify that the endpoint belongs to you.
38
+ */
15
39
  readonly verificationCode: string;
16
40
  }
41
+ /**
42
+ * Provides a verification code that can be used to prove ownership over an API.
43
+ *
44
+ * ## Example Usage
45
+ *
46
+ * ```typescript
47
+ * import * as pulumi from "@pulumi/pulumi";
48
+ * import * as vercel from "@pulumi/vercel";
49
+ *
50
+ * const example = vercel.getEndpointVerification({});
51
+ * ```
52
+ */
17
53
  export declare function getEndpointVerificationOutput(args?: GetEndpointVerificationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetEndpointVerificationResult>;
18
54
  /**
19
55
  * A collection of arguments for invoking getEndpointVerification.
20
56
  */
21
57
  export interface GetEndpointVerificationOutputArgs {
58
+ /**
59
+ * The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
60
+ */
22
61
  teamId?: pulumi.Input<string>;
23
62
  }
@@ -5,6 +5,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getEndpointVerificationOutput = exports.getEndpointVerification = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * Provides a verification code that can be used to prove ownership over an API.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as vercel from "@pulumi/vercel";
16
+ *
17
+ * const example = vercel.getEndpointVerification({});
18
+ * ```
19
+ */
8
20
  function getEndpointVerification(args, opts) {
9
21
  args = args || {};
10
22
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -13,6 +25,18 @@ function getEndpointVerification(args, opts) {
13
25
  }, opts);
14
26
  }
15
27
  exports.getEndpointVerification = getEndpointVerification;
28
+ /**
29
+ * Provides a verification code that can be used to prove ownership over an API.
30
+ *
31
+ * ## Example Usage
32
+ *
33
+ * ```typescript
34
+ * import * as pulumi from "@pulumi/pulumi";
35
+ * import * as vercel from "@pulumi/vercel";
36
+ *
37
+ * const example = vercel.getEndpointVerification({});
38
+ * ```
39
+ */
16
40
  function getEndpointVerificationOutput(args, opts) {
17
41
  args = args || {};
18
42
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -1 +1 @@
1
- {"version":3,"file":"getEndpointVerification.js","sourceRoot":"","sources":["../getEndpointVerification.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,uBAAuB,CAAC,IAAkC,EAAE,IAA2B;IACnG,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8DAA8D,EAAE;QACzF,QAAQ,EAAE,IAAI,CAAC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CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sEAMC"}
package/getFile.d.ts CHANGED
@@ -1,4 +1,30 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides information about a file on disk.
4
+ *
5
+ * This will read a single file, providing metadata for use with a `vercel.Deployment`.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as vercel from "@pulumi/vercel";
12
+ * import * as vercel from "@pulumiverse/vercel";
13
+ *
14
+ * // In this example, we are assuming that a single index.html file
15
+ * // is being deployed. This file lives directly next to the terraform file.
16
+ * const example = vercel.getFile({
17
+ * path: "index.html",
18
+ * });
19
+ * const exampleGetProject = vercel.getProject({
20
+ * name: "my-project",
21
+ * });
22
+ * const exampleDeployment = new vercel.Deployment("example", {
23
+ * projectId: exampleGetProject.then(exampleGetProject => exampleGetProject.id),
24
+ * files: example.then(example => example.file),
25
+ * });
26
+ * ```
27
+ */
2
28
  export declare function getFile(args: GetFileArgs, opts?: pulumi.InvokeOptions): Promise<GetFileResult>;
3
29
  /**
4
30
  * A collection of arguments for invoking getFile.
@@ -10,12 +36,44 @@ export interface GetFileArgs {
10
36
  * A collection of values returned by getFile.
11
37
  */
12
38
  export interface GetFileResult {
39
+ /**
40
+ * A map of filename to metadata about the file. The metadata contains the file size and hash, and allows a deployment to be created if the file changes.
41
+ */
13
42
  readonly file: {
14
43
  [key: string]: string;
15
44
  };
45
+ /**
46
+ * The ID of this resource.
47
+ */
16
48
  readonly id: string;
17
49
  readonly path: string;
18
50
  }
51
+ /**
52
+ * Provides information about a file on disk.
53
+ *
54
+ * This will read a single file, providing metadata for use with a `vercel.Deployment`.
55
+ *
56
+ * ## Example Usage
57
+ *
58
+ * ```typescript
59
+ * import * as pulumi from "@pulumi/pulumi";
60
+ * import * as vercel from "@pulumi/vercel";
61
+ * import * as vercel from "@pulumiverse/vercel";
62
+ *
63
+ * // In this example, we are assuming that a single index.html file
64
+ * // is being deployed. This file lives directly next to the terraform file.
65
+ * const example = vercel.getFile({
66
+ * path: "index.html",
67
+ * });
68
+ * const exampleGetProject = vercel.getProject({
69
+ * name: "my-project",
70
+ * });
71
+ * const exampleDeployment = new vercel.Deployment("example", {
72
+ * projectId: exampleGetProject.then(exampleGetProject => exampleGetProject.id),
73
+ * files: example.then(example => example.file),
74
+ * });
75
+ * ```
76
+ */
19
77
  export declare function getFileOutput(args: GetFileOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFileResult>;
20
78
  /**
21
79
  * A collection of arguments for invoking getFile.
package/getFile.js CHANGED
@@ -5,6 +5,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getFileOutput = exports.getFile = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * Provides information about a file on disk.
10
+ *
11
+ * This will read a single file, providing metadata for use with a `vercel.Deployment`.
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
+ * // In this example, we are assuming that a single index.html file
21
+ * // is being deployed. This file lives directly next to the terraform file.
22
+ * const example = vercel.getFile({
23
+ * path: "index.html",
24
+ * });
25
+ * const exampleGetProject = vercel.getProject({
26
+ * name: "my-project",
27
+ * });
28
+ * const exampleDeployment = new vercel.Deployment("example", {
29
+ * projectId: exampleGetProject.then(exampleGetProject => exampleGetProject.id),
30
+ * files: example.then(example => example.file),
31
+ * });
32
+ * ```
33
+ */
8
34
  function getFile(args, opts) {
9
35
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
10
36
  return pulumi.runtime.invoke("vercel:index/getFile:getFile", {
@@ -12,6 +38,32 @@ function getFile(args, opts) {
12
38
  }, opts);
13
39
  }
14
40
  exports.getFile = getFile;
41
+ /**
42
+ * Provides information about a file on disk.
43
+ *
44
+ * This will read a single file, providing metadata for use with a `vercel.Deployment`.
45
+ *
46
+ * ## Example Usage
47
+ *
48
+ * ```typescript
49
+ * import * as pulumi from "@pulumi/pulumi";
50
+ * import * as vercel from "@pulumi/vercel";
51
+ * import * as vercel from "@pulumiverse/vercel";
52
+ *
53
+ * // In this example, we are assuming that a single index.html file
54
+ * // is being deployed. This file lives directly next to the terraform file.
55
+ * const example = vercel.getFile({
56
+ * path: "index.html",
57
+ * });
58
+ * const exampleGetProject = vercel.getProject({
59
+ * name: "my-project",
60
+ * });
61
+ * const exampleDeployment = new vercel.Deployment("example", {
62
+ * projectId: exampleGetProject.then(exampleGetProject => exampleGetProject.id),
63
+ * files: example.then(example => example.file),
64
+ * });
65
+ * ```
66
+ */
15
67
  function getFileOutput(args, opts) {
16
68
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
17
69
  return pulumi.runtime.invokeOutput("vercel:index/getFile:getFile", {
package/getFile.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getFile.js","sourceRoot":"","sources":["../getFile.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,OAAO,CAAC,IAAiB,EAAE,IAA2B;IAClE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8BAA8B,EAAE;QACzD,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0BAKC;AAiBD,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAC9E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,8BAA8B,EAAE;QAC/D,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sCAKC"}
1
+ {"version":3,"file":"getFile.js","sourceRoot":"","sources":["../getFile.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,OAAO,CAAC,IAAiB,EAAE,IAA2B;IAClE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8BAA8B,EAAE;QACzD,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,0BAKC;AAuBD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAC9E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,8BAA8B,EAAE;QAC/D,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,sCAKC"}
package/getLogDrain.d.ts CHANGED
@@ -1,35 +1,116 @@
1
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
+ */
2
20
  export declare function getLogDrain(args: GetLogDrainArgs, opts?: pulumi.InvokeOptions): Promise<GetLogDrainResult>;
3
21
  /**
4
22
  * A collection of arguments for invoking getLogDrain.
5
23
  */
6
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
+ */
7
28
  endpoint: string;
29
+ /**
30
+ * The ID of the Log Drain.
31
+ */
8
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
+ */
9
36
  teamId?: string;
10
37
  }
11
38
  /**
12
39
  * A collection of values returned by getLogDrain.
13
40
  */
14
41
  export interface GetLogDrainResult {
42
+ /**
43
+ * The format log data should be delivered in. Can be `json` or `ndjson`.
44
+ */
15
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
+ */
16
49
  readonly endpoint: string;
50
+ /**
51
+ * Logs from the selected environments will be forwarded to your webhook. At least one must be present.
52
+ */
17
53
  readonly environments: string[];
54
+ /**
55
+ * Custom headers to include in requests to the log drain endpoint.
56
+ */
18
57
  readonly headers: {
19
58
  [key: string]: string;
20
59
  };
60
+ /**
61
+ * The ID of the Log Drain.
62
+ */
21
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
+ */
22
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
+ */
23
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
+ */
24
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
+ */
25
79
  readonly teamId: string;
26
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
+ */
27
99
  export declare function getLogDrainOutput(args: GetLogDrainOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetLogDrainResult>;
28
100
  /**
29
101
  * A collection of arguments for invoking getLogDrain.
30
102
  */
31
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
+ */
32
107
  endpoint: pulumi.Input<string>;
108
+ /**
109
+ * The ID of the Log Drain.
110
+ */
33
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
+ */
34
115
  teamId?: pulumi.Input<string>;
35
116
  }
package/getLogDrain.js CHANGED
@@ -5,6 +5,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getLogDrainOutput = exports.getLogDrain = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
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
+ */
8
26
  function getLogDrain(args, opts) {
9
27
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
10
28
  return pulumi.runtime.invoke("vercel:index/getLogDrain:getLogDrain", {
@@ -14,6 +32,24 @@ function getLogDrain(args, opts) {
14
32
  }, opts);
15
33
  }
16
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
+ */
17
53
  function getLogDrainOutput(args, opts) {
18
54
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
19
55
  return pulumi.runtime.invokeOutput("vercel:index/getLogDrain:getLogDrain", {
@@ -1 +1 @@
1
- {"version":3,"file":"getLogDrain.js","sourceRoot":"","sources":["../getLogDrain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,WAAW,CAAC,IAAqB,EAAE,IAA2B;IAC1E,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;AAPD,kCAOC;AAyBD,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,sCAAsC,EAAE;QACvE,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8CAOC"}
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;IAC1E,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;AAPD,kCAOC;AA6DD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,iBAAiB,CAAC,IAA2B,EAAE,IAA2B;IACtF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,sCAAsC,EAAE;QACvE,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8CAOC"}
@@ -10,7 +10,13 @@ export interface GetPrebuiltProjectArgs {
10
10
  * A collection of values returned by getPrebuiltProject.
11
11
  */
12
12
  export interface GetPrebuiltProjectResult {
13
+ /**
14
+ * The ID of this resource.
15
+ */
13
16
  readonly id: string;
17
+ /**
18
+ * A map of output file to metadata about the file. The metadata contains the file size and hash, and allows a deployment to be created if the file changes.
19
+ */
14
20
  readonly output: {
15
21
  [key: string]: string;
16
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"getPrebuiltProject.js","sourceRoot":"","sources":["../getPrebuiltProject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,O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1,56 +1,203 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import * as outputs from "./types/output";
3
+ /**
4
+ * Provides information about an existing project within Vercel.
5
+ *
6
+ * A Project groups deployments and custom domains. To deploy on Vercel, you need a Project.
7
+ *
8
+ * For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/concepts/projects/overview).
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as vercel from "@pulumi/vercel";
15
+ *
16
+ * const example = vercel.getProject({
17
+ * name: "my-existing-project",
18
+ * });
19
+ * ```
20
+ */
3
21
  export declare function getProject(args: GetProjectArgs, opts?: pulumi.InvokeOptions): Promise<GetProjectResult>;
4
22
  /**
5
23
  * A collection of arguments for invoking getProject.
6
24
  */
7
25
  export interface GetProjectArgs {
26
+ /**
27
+ * The name of the project.
28
+ */
8
29
  name: string;
30
+ /**
31
+ * The team ID the project exists beneath. Required when configuring a team resource if a default team has not been set in the provider.
32
+ */
9
33
  teamId?: string;
10
34
  }
11
35
  /**
12
36
  * A collection of values returned by getProject.
13
37
  */
14
38
  export interface GetProjectResult {
39
+ /**
40
+ * Automatically assign custom production domains after each Production deployment via merge to the production branch or Vercel CLI deploy with --prod. Defaults to `true`
41
+ */
15
42
  readonly autoAssignCustomDomains: boolean;
43
+ /**
44
+ * 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
45
+ */
16
46
  readonly automaticallyExposeSystemEnvironmentVariables: boolean;
47
+ /**
48
+ * The build command for this project. If omitted, this value will be automatically detected.
49
+ */
17
50
  readonly buildCommand: string;
51
+ /**
52
+ * Allows Vercel Customer Support to inspect all Deployments' source code in this project to assist with debugging.
53
+ */
18
54
  readonly customerSuccessCodeVisibility: boolean;
55
+ /**
56
+ * The dev command for this project. If omitted, this value will be automatically detected.
57
+ */
19
58
  readonly devCommand: string;
59
+ /**
60
+ * If no index file is present within a directory, the directory contents will be displayed.
61
+ */
20
62
  readonly directoryListing: boolean;
63
+ /**
64
+ * A list of environment variables that should be configured for the project.
65
+ */
21
66
  readonly environments: outputs.GetProjectEnvironment[];
67
+ /**
68
+ * The framework that is being used for this project. If omitted, no framework is selected.
69
+ */
22
70
  readonly framework: string;
71
+ /**
72
+ * 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.
73
+ */
23
74
  readonly functionFailover: boolean;
75
+ /**
76
+ * Configuration for Git Comments.
77
+ */
24
78
  readonly gitComments: outputs.GetProjectGitComments;
79
+ /**
80
+ * 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.
81
+ */
25
82
  readonly gitForkProtection: boolean;
83
+ /**
84
+ * 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.
85
+ */
26
86
  readonly gitLfs: boolean;
87
+ /**
88
+ * 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.
89
+ */
27
90
  readonly gitRepository: outputs.GetProjectGitRepository;
91
+ /**
92
+ * The ID of this resource.
93
+ */
28
94
  readonly id: string;
95
+ /**
96
+ * When a commit is pushed to the Git repository that is connected with your Project, its SHA will determine if a new Build has to be issued. If the SHA was deployed before, no new Build will be issued. You can customize this behavior with a command that exits with code 1 (new Build needed) or code 0.
97
+ */
29
98
  readonly ignoreCommand: string;
99
+ /**
100
+ * The install command for this project. If omitted, this value will be automatically detected.
101
+ */
30
102
  readonly installCommand: string;
103
+ /**
104
+ * The name of the project.
105
+ */
31
106
  readonly name: string;
107
+ /**
108
+ * Configuration for OpenID Connect (OIDC) tokens.
109
+ */
32
110
  readonly oidcTokenConfig: outputs.GetProjectOidcTokenConfig;
111
+ /**
112
+ * Disable Deployment Protection for CORS preflight `OPTIONS` requests for a list of paths.
113
+ */
33
114
  readonly optionsAllowlist: outputs.GetProjectOptionsAllowlist;
115
+ /**
116
+ * The output directory of the project. When null is used this value will be automatically detected.
117
+ */
34
118
  readonly outputDirectory: string;
119
+ /**
120
+ * Ensures visitors of your Preview Deployments must enter a password in order to gain access.
121
+ */
35
122
  readonly passwordProtection: outputs.GetProjectPasswordProtection;
123
+ /**
124
+ * Whether comments are enabled on your Preview Deployments.
125
+ */
36
126
  readonly previewComments: boolean;
127
+ /**
128
+ * If enabled, builds for the Production environment will be prioritized over Preview environments.
129
+ */
37
130
  readonly prioritiseProductionBuilds: boolean;
131
+ /**
132
+ * Allows automation services to bypass Deployment Protection on this project when using an HTTP header named `x-vercel-protection-bypass` with the value from `protectionBypassForAutomationSecret`.
133
+ */
38
134
  readonly protectionBypassForAutomation: boolean;
135
+ /**
136
+ * If `protectionBypassForAutomation` is enabled, optionally set this value to specify a 32 character secret, otherwise a secret will be generated.
137
+ */
39
138
  readonly protectionBypassForAutomationSecret: string;
139
+ /**
140
+ * Specifies whether the source code and logs of the deployments for this project should be public or not.
141
+ */
40
142
  readonly publicSource: boolean;
143
+ /**
144
+ * Resource Configuration for the project.
145
+ */
41
146
  readonly resourceConfig: outputs.GetProjectResourceConfig;
147
+ /**
148
+ * The name of a directory or relative path to the source code of your project. When null is used it will default to the project root.
149
+ */
42
150
  readonly rootDirectory: string;
151
+ /**
152
+ * 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.
153
+ */
43
154
  readonly serverlessFunctionRegion: string;
155
+ /**
156
+ * Ensures that outdated clients always fetch the correct version for a given deployment. This value defines how long Vercel keeps Skew Protection active.
157
+ */
44
158
  readonly skewProtection: string;
159
+ /**
160
+ * The team ID the project exists beneath. Required when configuring a team resource if a default team has not been set in the provider.
161
+ */
45
162
  readonly teamId: string;
163
+ /**
164
+ * Ensures only visitors from an allowed IP address can access your deployment.
165
+ */
46
166
  readonly trustedIps: outputs.GetProjectTrustedIps;
167
+ /**
168
+ * Ensures visitors to your Preview Deployments are logged into Vercel and have a minimum of Viewer access on your team.
169
+ */
47
170
  readonly vercelAuthentication: outputs.GetProjectVercelAuthentication;
48
171
  }
172
+ /**
173
+ * Provides information about an existing project within Vercel.
174
+ *
175
+ * A Project groups deployments and custom domains. To deploy on Vercel, you need a Project.
176
+ *
177
+ * For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/concepts/projects/overview).
178
+ *
179
+ * ## Example Usage
180
+ *
181
+ * ```typescript
182
+ * import * as pulumi from "@pulumi/pulumi";
183
+ * import * as vercel from "@pulumi/vercel";
184
+ *
185
+ * const example = vercel.getProject({
186
+ * name: "my-existing-project",
187
+ * });
188
+ * ```
189
+ */
49
190
  export declare function getProjectOutput(args: GetProjectOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetProjectResult>;
50
191
  /**
51
192
  * A collection of arguments for invoking getProject.
52
193
  */
53
194
  export interface GetProjectOutputArgs {
195
+ /**
196
+ * The name of the project.
197
+ */
54
198
  name: pulumi.Input<string>;
199
+ /**
200
+ * The team ID the project exists beneath. Required when configuring a team resource if a default team has not been set in the provider.
201
+ */
55
202
  teamId?: pulumi.Input<string>;
56
203
  }