@pulumiverse/vercel 1.15.0 → 2.9.0-alpha.1747136220

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 +55 -6
  14. package/customEnvironment.js +52 -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 +127 -30
  19. package/dnsRecord.js +97 -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 +54 -0
  70. package/getFile.js +48 -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 +98 -0
  89. package/getSharedEnvironmentVariable.js +50 -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 +74 -42
  98. package/logDrain.js +56 -0
  99. package/logDrain.js.map +1 -1
  100. package/package.json +3 -2
  101. package/project.d.ts +90 -108
  102. package/project.js +45 -0
  103. package/project.js.map +1 -1
  104. package/projectDeploymentRetention.d.ts +51 -0
  105. package/projectDeploymentRetention.js +51 -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 +91 -18
  111. package/projectEnvironmentVariable.js +82 -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 +50 -12
  120. package/sharedEnvironmentVariable.js +44 -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
package/project.d.ts CHANGED
@@ -1,6 +1,51 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
+ /**
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as vercel from "@pulumiverse/vercel";
10
+ *
11
+ * // A project that is connected to a git repository.
12
+ * // Deployments will be created automatically
13
+ * // on every branch push and merges onto the Production Branch.
14
+ * const withGit = new vercel.Project("withGit", {
15
+ * framework: "nextjs",
16
+ * gitRepository: {
17
+ * repo: "vercel/some-repo",
18
+ * type: "github",
19
+ * },
20
+ * });
21
+ * // A project that is not connected to a git repository.
22
+ * // Deployments will need to be created manually through
23
+ * // terraform, or via the vercel CLI.
24
+ * const example = new vercel.Project("example", {framework: "nextjs"});
25
+ * ```
26
+ *
27
+ * ## Import
28
+ *
29
+ * If importing into a personal account, or with a team configured on
30
+ *
31
+ * the provider, simply use the project ID.
32
+ *
33
+ * - project_id can be found in the project `settings` tab in the Vercel UI.
34
+ *
35
+ * ```sh
36
+ * $ pulumi import vercel:index/project:Project example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
37
+ * ```
38
+ *
39
+ * Alternatively, you can import via the team_id and project_id.
40
+ *
41
+ * - team_id can be found in the team `settings` tab in the Vercel UI.
42
+ *
43
+ * - project_id can be found in the project `settings` tab in the Vercel UI.
44
+ *
45
+ * ```sh
46
+ * $ pulumi import vercel:index/project:Project example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
47
+ * ```
48
+ */
4
49
  export declare class Project extends pulumi.CustomResource {
5
50
  /**
6
51
  * Get an existing Project resource's state with the given name, ID, and optional extra
@@ -18,13 +63,11 @@ export declare class Project extends pulumi.CustomResource {
18
63
  */
19
64
  static isInstance(obj: any): obj is Project;
20
65
  /**
21
- * Automatically assign custom production domains after each Production deployment via merge to the production branch or
22
- * Vercel CLI deploy with --prod. Defaults to `true`
66
+ * Automatically assign custom production domains after each Production deployment via merge to the production branch or Vercel CLI deploy with --prod. Defaults to `true`
23
67
  */
24
68
  readonly autoAssignCustomDomains: pulumi.Output<boolean>;
25
69
  /**
26
- * Vercel provides a set of Environment Variables that are automatically populated by the System, such as the URL of the
27
- * Deployment or the name of the Git branch deployed. To expose them to your Deployments, enable this field
70
+ * 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
28
71
  */
29
72
  readonly automaticallyExposeSystemEnvironmentVariables: pulumi.Output<boolean>;
30
73
  /**
@@ -52,8 +95,7 @@ export declare class Project extends pulumi.CustomResource {
52
95
  */
53
96
  readonly framework: pulumi.Output<string | undefined>;
54
97
  /**
55
- * Automatically failover Serverless Functions to the nearest region. You can customize regions through vercel.json. A new
56
- * Deployment is required for your changes to take effect.
98
+ * 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.
57
99
  */
58
100
  readonly functionFailover: pulumi.Output<boolean>;
59
101
  /**
@@ -61,27 +103,19 @@ export declare class Project extends pulumi.CustomResource {
61
103
  */
62
104
  readonly gitComments: pulumi.Output<outputs.ProjectGitComments | undefined>;
63
105
  /**
64
- * Ensures that pull requests targeting your Git repository must be authorized by a member of your Team before deploying if
65
- * your Project has Environment Variables or if the pull request includes a change to vercel.json. Defaults to `true`.
106
+ * 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. Defaults to `true`.
66
107
  */
67
108
  readonly gitForkProtection: pulumi.Output<boolean>;
68
109
  /**
69
- * Enables Git LFS support. Git LFS replaces large files such as audio samples, videos, datasets, and graphics with text
70
- * pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.
110
+ * 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.
71
111
  */
72
112
  readonly gitLfs: pulumi.Output<boolean>;
73
113
  /**
74
- * The Git Repository that will be connected to the project. When this is defined, any pushes to the specified connected
75
- * Git Repository will be automatically deployed. This requires the corresponding Vercel for
76
- * [Github](https://vercel.com/docs/concepts/git/vercel-for-github),
77
- * [Gitlab](https://vercel.com/docs/concepts/git/vercel-for-gitlab) or
78
- * [Bitbucket](https://vercel.com/docs/concepts/git/vercel-for-bitbucket) plugins to be installed.
114
+ * 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.
79
115
  */
80
116
  readonly gitRepository: pulumi.Output<outputs.ProjectGitRepository | undefined>;
81
117
  /**
82
- * When a commit is pushed to the Git repository that is connected with your Project, its SHA will determine if a new Build
83
- * has to be issued. If the SHA was deployed before, no new Build will be issued. You can customize this behavior with a
84
- * command that exits with code 1 (new Build needed) or code 0.
118
+ * 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.
85
119
  */
86
120
  readonly ignoreCommand: pulumi.Output<string | undefined>;
87
121
  /**
@@ -109,8 +143,7 @@ export declare class Project extends pulumi.CustomResource {
109
143
  */
110
144
  readonly passwordProtection: pulumi.Output<outputs.ProjectPasswordProtection | undefined>;
111
145
  /**
112
- * Whether to enable comments on your Preview Deployments. If omitted, comments are controlled at the team level (default
113
- * behaviour).
146
+ * Whether to enable comments on your Preview Deployments. If omitted, comments are controlled at the team level (default behaviour).
114
147
  */
115
148
  readonly previewComments: pulumi.Output<boolean | undefined>;
116
149
  /**
@@ -118,19 +151,15 @@ export declare class Project extends pulumi.CustomResource {
118
151
  */
119
152
  readonly prioritiseProductionBuilds: pulumi.Output<boolean>;
120
153
  /**
121
- * Allow automation services to bypass Deployment Protection on this project when using an HTTP header named
122
- * `x-vercel-protection-bypass` with a value of the `protectionBypassForAutomationSecret` field.
154
+ * Allow automation services to bypass Deployment Protection on this project when using an HTTP header named `x-vercel-protection-bypass` with a value of the `protectionBypassForAutomationSecret` field.
123
155
  */
124
156
  readonly protectionBypassForAutomation: pulumi.Output<boolean | undefined>;
125
157
  /**
126
- * If `protectionBypassForAutomation` is enabled, optionally set this value to specify a 32 character secret, otherwise a
127
- * secret will be generated.
158
+ * If `protectionBypassForAutomation` is enabled, optionally set this value to specify a 32 character secret, otherwise a secret will be generated.
128
159
  */
129
160
  readonly protectionBypassForAutomationSecret: pulumi.Output<string>;
130
161
  /**
131
- * By default, visitors to the `/_logs` and `/_src` paths of your Production and Preview Deployments must log in with
132
- * Vercel (requires being a member of your team) to see the Source, Logs and Deployment Status of your project. Setting
133
- * `publicSource` to `true` disables this behaviour, meaning the Source, Logs and Deployment Status can be publicly viewed.
162
+ * By default, visitors to the `/_logs` and `/_src` paths of your Production and Preview Deployments must log in with Vercel (requires being a member of your team) to see the Source, Logs and Deployment Status of your project. Setting `publicSource` to `true` disables this behaviour, meaning the Source, Logs and Deployment Status can be publicly viewed.
134
163
  */
135
164
  readonly publicSource: pulumi.Output<boolean | undefined>;
136
165
  /**
@@ -138,24 +167,19 @@ export declare class Project extends pulumi.CustomResource {
138
167
  */
139
168
  readonly resourceConfig: pulumi.Output<outputs.ProjectResourceConfig>;
140
169
  /**
141
- * The name of a directory or relative path to the source code of your project. If omitted, it will default to the project
142
- * root.
170
+ * The name of a directory or relative path to the source code of your project. If omitted, it will default to the project root.
143
171
  */
144
172
  readonly rootDirectory: pulumi.Output<string | undefined>;
145
173
  /**
146
- * The region on Vercel's network to which your Serverless Functions are deployed. It should be close to any data source
147
- * your Serverless Function might depend on. A new Deployment is required for your changes to take effect. Please see
148
- * [Vercel's documentation](https://vercel.com/docs/concepts/edge-network/regions) for a full list of regions.
174
+ * 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.
149
175
  */
150
176
  readonly serverlessFunctionRegion: pulumi.Output<string>;
151
177
  /**
152
- * Ensures that outdated clients always fetch the correct version for a given deployment. This value defines how long
153
- * Vercel keeps Skew Protection active.
178
+ * Ensures that outdated clients always fetch the correct version for a given deployment. This value defines how long Vercel keeps Skew Protection active.
154
179
  */
155
180
  readonly skewProtection: pulumi.Output<string | undefined>;
156
181
  /**
157
- * The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the
158
- * provider.
182
+ * The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.
159
183
  */
160
184
  readonly teamId: pulumi.Output<string>;
161
185
  /**
@@ -180,13 +204,11 @@ export declare class Project extends pulumi.CustomResource {
180
204
  */
181
205
  export interface ProjectState {
182
206
  /**
183
- * Automatically assign custom production domains after each Production deployment via merge to the production branch or
184
- * Vercel CLI deploy with --prod. Defaults to `true`
207
+ * Automatically assign custom production domains after each Production deployment via merge to the production branch or Vercel CLI deploy with --prod. Defaults to `true`
185
208
  */
186
209
  autoAssignCustomDomains?: pulumi.Input<boolean>;
187
210
  /**
188
- * Vercel provides a set of Environment Variables that are automatically populated by the System, such as the URL of the
189
- * Deployment or the name of the Git branch deployed. To expose them to your Deployments, enable this field
211
+ * 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
190
212
  */
191
213
  automaticallyExposeSystemEnvironmentVariables?: pulumi.Input<boolean>;
192
214
  /**
@@ -214,8 +236,7 @@ export interface ProjectState {
214
236
  */
215
237
  framework?: pulumi.Input<string>;
216
238
  /**
217
- * Automatically failover Serverless Functions to the nearest region. You can customize regions through vercel.json. A new
218
- * Deployment is required for your changes to take effect.
239
+ * 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.
219
240
  */
220
241
  functionFailover?: pulumi.Input<boolean>;
221
242
  /**
@@ -223,27 +244,19 @@ export interface ProjectState {
223
244
  */
224
245
  gitComments?: pulumi.Input<inputs.ProjectGitComments>;
225
246
  /**
226
- * Ensures that pull requests targeting your Git repository must be authorized by a member of your Team before deploying if
227
- * your Project has Environment Variables or if the pull request includes a change to vercel.json. Defaults to `true`.
247
+ * 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. Defaults to `true`.
228
248
  */
229
249
  gitForkProtection?: pulumi.Input<boolean>;
230
250
  /**
231
- * Enables Git LFS support. Git LFS replaces large files such as audio samples, videos, datasets, and graphics with text
232
- * pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.
251
+ * 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.
233
252
  */
234
253
  gitLfs?: pulumi.Input<boolean>;
235
254
  /**
236
- * The Git Repository that will be connected to the project. When this is defined, any pushes to the specified connected
237
- * Git Repository will be automatically deployed. This requires the corresponding Vercel for
238
- * [Github](https://vercel.com/docs/concepts/git/vercel-for-github),
239
- * [Gitlab](https://vercel.com/docs/concepts/git/vercel-for-gitlab) or
240
- * [Bitbucket](https://vercel.com/docs/concepts/git/vercel-for-bitbucket) plugins to be installed.
255
+ * 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.
241
256
  */
242
257
  gitRepository?: pulumi.Input<inputs.ProjectGitRepository>;
243
258
  /**
244
- * When a commit is pushed to the Git repository that is connected with your Project, its SHA will determine if a new Build
245
- * has to be issued. If the SHA was deployed before, no new Build will be issued. You can customize this behavior with a
246
- * command that exits with code 1 (new Build needed) or code 0.
259
+ * 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.
247
260
  */
248
261
  ignoreCommand?: pulumi.Input<string>;
249
262
  /**
@@ -271,8 +284,7 @@ export interface ProjectState {
271
284
  */
272
285
  passwordProtection?: pulumi.Input<inputs.ProjectPasswordProtection>;
273
286
  /**
274
- * Whether to enable comments on your Preview Deployments. If omitted, comments are controlled at the team level (default
275
- * behaviour).
287
+ * Whether to enable comments on your Preview Deployments. If omitted, comments are controlled at the team level (default behaviour).
276
288
  */
277
289
  previewComments?: pulumi.Input<boolean>;
278
290
  /**
@@ -280,19 +292,15 @@ export interface ProjectState {
280
292
  */
281
293
  prioritiseProductionBuilds?: pulumi.Input<boolean>;
282
294
  /**
283
- * Allow automation services to bypass Deployment Protection on this project when using an HTTP header named
284
- * `x-vercel-protection-bypass` with a value of the `protectionBypassForAutomationSecret` field.
295
+ * Allow automation services to bypass Deployment Protection on this project when using an HTTP header named `x-vercel-protection-bypass` with a value of the `protectionBypassForAutomationSecret` field.
285
296
  */
286
297
  protectionBypassForAutomation?: pulumi.Input<boolean>;
287
298
  /**
288
- * If `protectionBypassForAutomation` is enabled, optionally set this value to specify a 32 character secret, otherwise a
289
- * secret will be generated.
299
+ * If `protectionBypassForAutomation` is enabled, optionally set this value to specify a 32 character secret, otherwise a secret will be generated.
290
300
  */
291
301
  protectionBypassForAutomationSecret?: pulumi.Input<string>;
292
302
  /**
293
- * By default, visitors to the `/_logs` and `/_src` paths of your Production and Preview Deployments must log in with
294
- * Vercel (requires being a member of your team) to see the Source, Logs and Deployment Status of your project. Setting
295
- * `publicSource` to `true` disables this behaviour, meaning the Source, Logs and Deployment Status can be publicly viewed.
303
+ * By default, visitors to the `/_logs` and `/_src` paths of your Production and Preview Deployments must log in with Vercel (requires being a member of your team) to see the Source, Logs and Deployment Status of your project. Setting `publicSource` to `true` disables this behaviour, meaning the Source, Logs and Deployment Status can be publicly viewed.
296
304
  */
297
305
  publicSource?: pulumi.Input<boolean>;
298
306
  /**
@@ -300,24 +308,19 @@ export interface ProjectState {
300
308
  */
301
309
  resourceConfig?: pulumi.Input<inputs.ProjectResourceConfig>;
302
310
  /**
303
- * The name of a directory or relative path to the source code of your project. If omitted, it will default to the project
304
- * root.
311
+ * The name of a directory or relative path to the source code of your project. If omitted, it will default to the project root.
305
312
  */
306
313
  rootDirectory?: pulumi.Input<string>;
307
314
  /**
308
- * The region on Vercel's network to which your Serverless Functions are deployed. It should be close to any data source
309
- * your Serverless Function might depend on. A new Deployment is required for your changes to take effect. Please see
310
- * [Vercel's documentation](https://vercel.com/docs/concepts/edge-network/regions) for a full list of regions.
315
+ * 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.
311
316
  */
312
317
  serverlessFunctionRegion?: pulumi.Input<string>;
313
318
  /**
314
- * Ensures that outdated clients always fetch the correct version for a given deployment. This value defines how long
315
- * Vercel keeps Skew Protection active.
319
+ * Ensures that outdated clients always fetch the correct version for a given deployment. This value defines how long Vercel keeps Skew Protection active.
316
320
  */
317
321
  skewProtection?: pulumi.Input<string>;
318
322
  /**
319
- * The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the
320
- * provider.
323
+ * The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.
321
324
  */
322
325
  teamId?: pulumi.Input<string>;
323
326
  /**
@@ -334,13 +337,11 @@ export interface ProjectState {
334
337
  */
335
338
  export interface ProjectArgs {
336
339
  /**
337
- * Automatically assign custom production domains after each Production deployment via merge to the production branch or
338
- * Vercel CLI deploy with --prod. Defaults to `true`
340
+ * Automatically assign custom production domains after each Production deployment via merge to the production branch or Vercel CLI deploy with --prod. Defaults to `true`
339
341
  */
340
342
  autoAssignCustomDomains?: pulumi.Input<boolean>;
341
343
  /**
342
- * Vercel provides a set of Environment Variables that are automatically populated by the System, such as the URL of the
343
- * Deployment or the name of the Git branch deployed. To expose them to your Deployments, enable this field
344
+ * 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
344
345
  */
345
346
  automaticallyExposeSystemEnvironmentVariables?: pulumi.Input<boolean>;
346
347
  /**
@@ -368,8 +369,7 @@ export interface ProjectArgs {
368
369
  */
369
370
  framework?: pulumi.Input<string>;
370
371
  /**
371
- * Automatically failover Serverless Functions to the nearest region. You can customize regions through vercel.json. A new
372
- * Deployment is required for your changes to take effect.
372
+ * 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.
373
373
  */
374
374
  functionFailover?: pulumi.Input<boolean>;
375
375
  /**
@@ -377,27 +377,19 @@ export interface ProjectArgs {
377
377
  */
378
378
  gitComments?: pulumi.Input<inputs.ProjectGitComments>;
379
379
  /**
380
- * Ensures that pull requests targeting your Git repository must be authorized by a member of your Team before deploying if
381
- * your Project has Environment Variables or if the pull request includes a change to vercel.json. Defaults to `true`.
380
+ * 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. Defaults to `true`.
382
381
  */
383
382
  gitForkProtection?: pulumi.Input<boolean>;
384
383
  /**
385
- * Enables Git LFS support. Git LFS replaces large files such as audio samples, videos, datasets, and graphics with text
386
- * pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.
384
+ * 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.
387
385
  */
388
386
  gitLfs?: pulumi.Input<boolean>;
389
387
  /**
390
- * The Git Repository that will be connected to the project. When this is defined, any pushes to the specified connected
391
- * Git Repository will be automatically deployed. This requires the corresponding Vercel for
392
- * [Github](https://vercel.com/docs/concepts/git/vercel-for-github),
393
- * [Gitlab](https://vercel.com/docs/concepts/git/vercel-for-gitlab) or
394
- * [Bitbucket](https://vercel.com/docs/concepts/git/vercel-for-bitbucket) plugins to be installed.
388
+ * 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.
395
389
  */
396
390
  gitRepository?: pulumi.Input<inputs.ProjectGitRepository>;
397
391
  /**
398
- * When a commit is pushed to the Git repository that is connected with your Project, its SHA will determine if a new Build
399
- * has to be issued. If the SHA was deployed before, no new Build will be issued. You can customize this behavior with a
400
- * command that exits with code 1 (new Build needed) or code 0.
392
+ * 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.
401
393
  */
402
394
  ignoreCommand?: pulumi.Input<string>;
403
395
  /**
@@ -425,8 +417,7 @@ export interface ProjectArgs {
425
417
  */
426
418
  passwordProtection?: pulumi.Input<inputs.ProjectPasswordProtection>;
427
419
  /**
428
- * Whether to enable comments on your Preview Deployments. If omitted, comments are controlled at the team level (default
429
- * behaviour).
420
+ * Whether to enable comments on your Preview Deployments. If omitted, comments are controlled at the team level (default behaviour).
430
421
  */
431
422
  previewComments?: pulumi.Input<boolean>;
432
423
  /**
@@ -434,19 +425,15 @@ export interface ProjectArgs {
434
425
  */
435
426
  prioritiseProductionBuilds?: pulumi.Input<boolean>;
436
427
  /**
437
- * Allow automation services to bypass Deployment Protection on this project when using an HTTP header named
438
- * `x-vercel-protection-bypass` with a value of the `protectionBypassForAutomationSecret` field.
428
+ * Allow automation services to bypass Deployment Protection on this project when using an HTTP header named `x-vercel-protection-bypass` with a value of the `protectionBypassForAutomationSecret` field.
439
429
  */
440
430
  protectionBypassForAutomation?: pulumi.Input<boolean>;
441
431
  /**
442
- * If `protectionBypassForAutomation` is enabled, optionally set this value to specify a 32 character secret, otherwise a
443
- * secret will be generated.
432
+ * If `protectionBypassForAutomation` is enabled, optionally set this value to specify a 32 character secret, otherwise a secret will be generated.
444
433
  */
445
434
  protectionBypassForAutomationSecret?: pulumi.Input<string>;
446
435
  /**
447
- * By default, visitors to the `/_logs` and `/_src` paths of your Production and Preview Deployments must log in with
448
- * Vercel (requires being a member of your team) to see the Source, Logs and Deployment Status of your project. Setting
449
- * `publicSource` to `true` disables this behaviour, meaning the Source, Logs and Deployment Status can be publicly viewed.
436
+ * By default, visitors to the `/_logs` and `/_src` paths of your Production and Preview Deployments must log in with Vercel (requires being a member of your team) to see the Source, Logs and Deployment Status of your project. Setting `publicSource` to `true` disables this behaviour, meaning the Source, Logs and Deployment Status can be publicly viewed.
450
437
  */
451
438
  publicSource?: pulumi.Input<boolean>;
452
439
  /**
@@ -454,24 +441,19 @@ export interface ProjectArgs {
454
441
  */
455
442
  resourceConfig?: pulumi.Input<inputs.ProjectResourceConfig>;
456
443
  /**
457
- * The name of a directory or relative path to the source code of your project. If omitted, it will default to the project
458
- * root.
444
+ * The name of a directory or relative path to the source code of your project. If omitted, it will default to the project root.
459
445
  */
460
446
  rootDirectory?: pulumi.Input<string>;
461
447
  /**
462
- * The region on Vercel's network to which your Serverless Functions are deployed. It should be close to any data source
463
- * your Serverless Function might depend on. A new Deployment is required for your changes to take effect. Please see
464
- * [Vercel's documentation](https://vercel.com/docs/concepts/edge-network/regions) for a full list of regions.
448
+ * 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.
465
449
  */
466
450
  serverlessFunctionRegion?: pulumi.Input<string>;
467
451
  /**
468
- * Ensures that outdated clients always fetch the correct version for a given deployment. This value defines how long
469
- * Vercel keeps Skew Protection active.
452
+ * Ensures that outdated clients always fetch the correct version for a given deployment. This value defines how long Vercel keeps Skew Protection active.
470
453
  */
471
454
  skewProtection?: pulumi.Input<string>;
472
455
  /**
473
- * The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the
474
- * provider.
456
+ * The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the provider.
475
457
  */
476
458
  teamId?: pulumi.Input<string>;
477
459
  /**
package/project.js CHANGED
@@ -5,6 +5,51 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.Project = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as vercel from "@pulumiverse/vercel";
14
+ *
15
+ * // A project that is connected to a git repository.
16
+ * // Deployments will be created automatically
17
+ * // on every branch push and merges onto the Production Branch.
18
+ * const withGit = new vercel.Project("withGit", {
19
+ * framework: "nextjs",
20
+ * gitRepository: {
21
+ * repo: "vercel/some-repo",
22
+ * type: "github",
23
+ * },
24
+ * });
25
+ * // A project that is not connected to a git repository.
26
+ * // Deployments will need to be created manually through
27
+ * // terraform, or via the vercel CLI.
28
+ * const example = new vercel.Project("example", {framework: "nextjs"});
29
+ * ```
30
+ *
31
+ * ## Import
32
+ *
33
+ * If importing into a personal account, or with a team configured on
34
+ *
35
+ * the provider, simply use the project ID.
36
+ *
37
+ * - project_id can be found in the project `settings` tab in the Vercel UI.
38
+ *
39
+ * ```sh
40
+ * $ pulumi import vercel:index/project:Project example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
41
+ * ```
42
+ *
43
+ * Alternatively, you can import via the team_id and project_id.
44
+ *
45
+ * - team_id can be found in the team `settings` tab in the Vercel UI.
46
+ *
47
+ * - project_id can be found in the project `settings` tab in the Vercel UI.
48
+ *
49
+ * ```sh
50
+ * $ pulumi import vercel:index/project:Project example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
51
+ * ```
52
+ */
8
53
  class Project extends pulumi.CustomResource {
9
54
  /**
10
55
  * Get an existing Project resource's state with the given name, ID, and optional extra
package/project.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"project.js","sourceRoot":"","sources":["../project.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IAgKD,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuC,CAAC;YACtD,cAAc,CAAC,yBAAyB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9F,cAAc,CAAC,+CAA+C,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,6CAA6C,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1I,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,C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G,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,0BAA0B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9F,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;SACzF;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,qCAAqC,CAAC,EAAE,CAAC;QACxF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AAjPL,0BAkPC;AApOG,gBAAgB;AACO,oBAAY,GAAG,8BAA8B,CAAC"}
@@ -1,4 +1,55 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a Project Deployment Retention resource.
4
+ *
5
+ * A Project Deployment Retention resource defines an Deployment Retention on a Vercel Project.
6
+ *
7
+ * For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/security/deployment-retention).
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as vercel from "@pulumiverse/vercel";
14
+ *
15
+ * const example = new vercel.Project("example", {gitRepository: {
16
+ * type: "github",
17
+ * repo: "vercel/some-repo",
18
+ * }});
19
+ * // An unlimited deployment retention policy that will be created
20
+ * // for this project for all deployments.
21
+ * const exampleUnlimited = new vercel.ProjectDeploymentRetention("exampleUnlimited", {
22
+ * projectId: example.id,
23
+ * teamId: example.teamId,
24
+ * expirationPreview: "unlimited",
25
+ * expirationProduction: "unlimited",
26
+ * expirationCanceled: "unlimited",
27
+ * expirationErrored: "unlimited",
28
+ * });
29
+ * // A customized deployment retention policy that will be created
30
+ * // for this project for all deployments.
31
+ * const exampleCustomized = new vercel.ProjectDeploymentRetention("exampleCustomized", {
32
+ * projectId: example.id,
33
+ * teamId: example.teamId,
34
+ * expirationPreview: "3m",
35
+ * expirationProduction: "1y",
36
+ * expirationCanceled: "1m",
37
+ * expirationErrored: "2m",
38
+ * });
39
+ * ```
40
+ *
41
+ * ## Import
42
+ *
43
+ * You can import via the team_id and project_id.
44
+ *
45
+ * - team_id can be found in the team `settings` tab in the Vercel UI.
46
+ *
47
+ * - project_id can be found in the project `settings` tab in the Vercel UI.
48
+ *
49
+ * ```sh
50
+ * $ pulumi import vercel:index/projectDeploymentRetention:ProjectDeploymentRetention example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
51
+ * ```
52
+ */
2
53
  export declare class ProjectDeploymentRetention extends pulumi.CustomResource {
3
54
  /**
4
55
  * Get an existing ProjectDeploymentRetention resource's state with the given name, ID, and optional extra
@@ -5,6 +5,57 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.ProjectDeploymentRetention = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * Provides a Project Deployment Retention resource.
10
+ *
11
+ * A Project Deployment Retention resource defines an Deployment Retention on a Vercel Project.
12
+ *
13
+ * For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/security/deployment-retention).
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as vercel from "@pulumiverse/vercel";
20
+ *
21
+ * const example = new vercel.Project("example", {gitRepository: {
22
+ * type: "github",
23
+ * repo: "vercel/some-repo",
24
+ * }});
25
+ * // An unlimited deployment retention policy that will be created
26
+ * // for this project for all deployments.
27
+ * const exampleUnlimited = new vercel.ProjectDeploymentRetention("exampleUnlimited", {
28
+ * projectId: example.id,
29
+ * teamId: example.teamId,
30
+ * expirationPreview: "unlimited",
31
+ * expirationProduction: "unlimited",
32
+ * expirationCanceled: "unlimited",
33
+ * expirationErrored: "unlimited",
34
+ * });
35
+ * // A customized deployment retention policy that will be created
36
+ * // for this project for all deployments.
37
+ * const exampleCustomized = new vercel.ProjectDeploymentRetention("exampleCustomized", {
38
+ * projectId: example.id,
39
+ * teamId: example.teamId,
40
+ * expirationPreview: "3m",
41
+ * expirationProduction: "1y",
42
+ * expirationCanceled: "1m",
43
+ * expirationErrored: "2m",
44
+ * });
45
+ * ```
46
+ *
47
+ * ## Import
48
+ *
49
+ * You can import via the team_id and project_id.
50
+ *
51
+ * - team_id can be found in the team `settings` tab in the Vercel UI.
52
+ *
53
+ * - project_id can be found in the project `settings` tab in the Vercel UI.
54
+ *
55
+ * ```sh
56
+ * $ pulumi import vercel:index/projectDeploymentRetention:ProjectDeploymentRetention example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
57
+ * ```
58
+ */
8
59
  class ProjectDeploymentRetention extends pulumi.CustomResource {
9
60
  /**
10
61
  * Get an existing ProjectDeploymentRetention resource's state with the given name, ID, and optional extra
@@ -1 +1 @@
1
- {"version":3,"file":"projectDeploymentRetention.js","sourceRoot":"","sources":["../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