@pulumiverse/vercel 1.14.2 → 1.15.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 (141) hide show
  1. package/accessGroup.d.ts +63 -0
  2. package/accessGroup.js +51 -0
  3. package/accessGroup.js.map +1 -0
  4. package/accessGroupProject.d.ts +87 -0
  5. package/accessGroupProject.js +64 -0
  6. package/accessGroupProject.js.map +1 -0
  7. package/alias.d.ts +6 -8
  8. package/alias.js +0 -5
  9. package/alias.js.map +1 -1
  10. package/attackChallengeMode.d.ts +9 -36
  11. package/attackChallengeMode.js +0 -30
  12. package/attackChallengeMode.js.map +1 -1
  13. package/customEnvironment.d.ts +101 -0
  14. package/customEnvironment.js +60 -0
  15. package/customEnvironment.js.map +1 -0
  16. package/deployment.d.ts +34 -17
  17. package/deployment.js.map +1 -1
  18. package/dnsRecord.d.ts +30 -127
  19. package/dnsRecord.js +0 -97
  20. package/dnsRecord.js.map +1 -1
  21. package/edgeConfig.d.ts +6 -54
  22. package/edgeConfig.js +0 -51
  23. package/edgeConfig.js.map +1 -1
  24. package/edgeConfigItem.d.ts +87 -0
  25. package/edgeConfigItem.js +64 -0
  26. package/edgeConfigItem.js.map +1 -0
  27. package/edgeConfigSchema.d.ts +6 -28
  28. package/edgeConfigSchema.js +0 -25
  29. package/edgeConfigSchema.js.map +1 -1
  30. package/edgeConfigToken.d.ts +10 -62
  31. package/edgeConfigToken.js +0 -57
  32. package/edgeConfigToken.js.map +1 -1
  33. package/firewallConfig.d.ts +110 -0
  34. package/firewallConfig.js +62 -0
  35. package/firewallConfig.js.map +1 -0
  36. package/getAccessGroup.d.ts +25 -0
  37. package/getAccessGroup.js +24 -0
  38. package/getAccessGroup.js.map +1 -0
  39. package/getAccessGroupProject.d.ts +32 -0
  40. package/getAccessGroupProject.js +26 -0
  41. package/getAccessGroupProject.js.map +1 -0
  42. package/getAlias.d.ts +0 -34
  43. package/getAlias.js +0 -10
  44. package/getAlias.js.map +1 -1
  45. package/getAttackChallengeMode.d.ts +0 -56
  46. package/getAttackChallengeMode.js +0 -32
  47. package/getAttackChallengeMode.js.map +1 -1
  48. package/getCustomEnvironment.d.ts +31 -0
  49. package/getCustomEnvironment.js +26 -0
  50. package/getCustomEnvironment.js.map +1 -0
  51. package/getDeployment.d.ts +0 -65
  52. package/getDeployment.js +0 -32
  53. package/getDeployment.js.map +1 -1
  54. package/getEdgeConfig.d.ts +0 -53
  55. package/getEdgeConfig.js +0 -32
  56. package/getEdgeConfig.js.map +1 -1
  57. package/getEdgeConfigItem.d.ts +28 -0
  58. package/getEdgeConfigItem.js +26 -0
  59. package/getEdgeConfigItem.js.map +1 -0
  60. package/getEdgeConfigSchema.d.ts +0 -49
  61. package/getEdgeConfigSchema.js +0 -28
  62. package/getEdgeConfigSchema.js.map +1 -1
  63. package/getEdgeConfigToken.d.ts +0 -74
  64. package/getEdgeConfigToken.js +0 -38
  65. package/getEdgeConfigToken.js.map +1 -1
  66. package/getEndpointVerification.d.ts +0 -39
  67. package/getEndpointVerification.js +0 -24
  68. package/getEndpointVerification.js.map +1 -1
  69. package/getFile.d.ts +0 -54
  70. package/getFile.js +0 -48
  71. package/getFile.js.map +1 -1
  72. package/getLogDrain.d.ts +0 -81
  73. package/getLogDrain.js +0 -36
  74. package/getLogDrain.js.map +1 -1
  75. package/getPrebuiltProject.d.ts +0 -6
  76. package/getPrebuiltProject.js.map +1 -1
  77. package/getProject.d.ts +1 -146
  78. package/getProject.js +0 -38
  79. package/getProject.js.map +1 -1
  80. package/getProjectDeploymentRetention.d.ts +0 -47
  81. package/getProjectDeploymentRetention.js +0 -14
  82. package/getProjectDeploymentRetention.js.map +1 -1
  83. package/getProjectDirectory.d.ts +0 -6
  84. package/getProjectDirectory.js.map +1 -1
  85. package/getProjectMembers.d.ts +30 -0
  86. package/getProjectMembers.js +24 -0
  87. package/getProjectMembers.js.map +1 -0
  88. package/getSharedEnvironmentVariable.d.ts +1 -95
  89. package/getSharedEnvironmentVariable.js +0 -50
  90. package/getSharedEnvironmentVariable.js.map +1 -1
  91. package/getTeamConfig.d.ts +35 -0
  92. package/getTeamConfig.js +22 -0
  93. package/getTeamConfig.js.map +1 -0
  94. package/getTeamMember.d.ts +29 -0
  95. package/getTeamMember.js +24 -0
  96. package/getTeamMember.js.map +1 -0
  97. package/index.d.ts +48 -6
  98. package/index.js +68 -9
  99. package/index.js.map +1 -1
  100. package/logDrain.d.ts +42 -74
  101. package/logDrain.js +0 -56
  102. package/logDrain.js.map +1 -1
  103. package/package.json +1 -1
  104. package/project.d.ts +111 -89
  105. package/project.js +3 -46
  106. package/project.js.map +1 -1
  107. package/projectDeploymentRetention.d.ts +0 -51
  108. package/projectDeploymentRetention.js +0 -51
  109. package/projectDeploymentRetention.js.map +1 -1
  110. package/projectDomain.d.ts +21 -55
  111. package/projectDomain.js +2 -52
  112. package/projectDomain.js.map +1 -1
  113. package/projectEnvironmentVariable.d.ts +40 -86
  114. package/projectEnvironmentVariable.js +4 -82
  115. package/projectEnvironmentVariable.js.map +1 -1
  116. package/projectEnvironmentVariables.d.ts +74 -0
  117. package/projectEnvironmentVariables.js +59 -0
  118. package/projectEnvironmentVariables.js.map +1 -0
  119. package/projectMembers.d.ts +77 -0
  120. package/projectMembers.js +59 -0
  121. package/projectMembers.js.map +1 -0
  122. package/sharedEnvironmentVariable.d.ts +24 -49
  123. package/sharedEnvironmentVariable.js +2 -43
  124. package/sharedEnvironmentVariable.js.map +1 -1
  125. package/teamConfig.d.ts +211 -0
  126. package/teamConfig.js +75 -0
  127. package/teamConfig.js.map +1 -0
  128. package/teamMember.d.ts +107 -0
  129. package/teamMember.js +66 -0
  130. package/teamMember.js.map +1 -0
  131. package/types/input.d.ts +301 -2
  132. package/types/output.d.ts +372 -1
  133. package/webhook.d.ts +18 -43
  134. package/webhook.js +0 -35
  135. package/webhook.js.map +1 -1
  136. package/getProjectFunctionCpu.d.ts +0 -92
  137. package/getProjectFunctionCpu.js +0 -66
  138. package/getProjectFunctionCpu.js.map +0 -1
  139. package/projectFunctionCpu.d.ts +0 -106
  140. package/projectFunctionCpu.js +0 -93
  141. package/projectFunctionCpu.js.map +0 -1
package/types/output.d.ts CHANGED
@@ -1,4 +1,14 @@
1
1
  import * as outputs from "../types/output";
2
+ export interface CustomEnvironmentBranchTracking {
3
+ /**
4
+ * The pattern of the branch name to track.
5
+ */
6
+ pattern: string;
7
+ /**
8
+ * How a branch name should be matched against the pattern. Must be one of 'startsWith', 'endsWith' or 'equals'.
9
+ */
10
+ type: string;
11
+ }
2
12
  export interface DeploymentProjectSettings {
3
13
  /**
4
14
  * The build command for this deployment. If omitted, this value will be taken from the project or automatically detected.
@@ -39,7 +49,218 @@ export interface DnsRecordSrv {
39
49
  */
40
50
  weight: number;
41
51
  }
52
+ export interface FirewallConfigIpRules {
53
+ rules?: outputs.FirewallConfigIpRulesRule[];
54
+ }
55
+ export interface FirewallConfigIpRulesRule {
56
+ action: string;
57
+ /**
58
+ * Hosts to apply these rules to
59
+ */
60
+ hostname: string;
61
+ id: string;
62
+ /**
63
+ * IP or CIDR to block
64
+ */
65
+ ip: string;
66
+ notes?: string;
67
+ }
68
+ export interface FirewallConfigManagedRulesets {
69
+ /**
70
+ * Enable the owasp managed rulesets and select ruleset behaviors
71
+ */
72
+ owasp?: outputs.FirewallConfigManagedRulesetsOwasp;
73
+ }
74
+ export interface FirewallConfigManagedRulesetsOwasp {
75
+ /**
76
+ * Generic Attack Detection
77
+ */
78
+ gen?: outputs.FirewallConfigManagedRulesetsOwaspGen;
79
+ /**
80
+ * Java Attack Detection
81
+ */
82
+ java?: outputs.FirewallConfigManagedRulesetsOwaspJava;
83
+ /**
84
+ * Local File Inclusion Rules
85
+ */
86
+ lfi?: outputs.FirewallConfigManagedRulesetsOwaspLfi;
87
+ /**
88
+ * Multipart Rules
89
+ */
90
+ ma?: outputs.FirewallConfigManagedRulesetsOwaspMa;
91
+ /**
92
+ * PHP Attack Detection
93
+ */
94
+ php?: outputs.FirewallConfigManagedRulesetsOwaspPhp;
95
+ /**
96
+ * Remote Code Execution Rules
97
+ */
98
+ rce?: outputs.FirewallConfigManagedRulesetsOwaspRce;
99
+ /**
100
+ * Remote File Inclusion Rules
101
+ */
102
+ rfi?: outputs.FirewallConfigManagedRulesetsOwaspRfi;
103
+ /**
104
+ * Scanner Detection Rules
105
+ */
106
+ sd?: outputs.FirewallConfigManagedRulesetsOwaspSd;
107
+ /**
108
+ * SQL Injection Rules
109
+ */
110
+ sqli?: outputs.FirewallConfigManagedRulesetsOwaspSqli;
111
+ /**
112
+ * Cross Site Scripting Rules
113
+ */
114
+ xss?: outputs.FirewallConfigManagedRulesetsOwaspXss;
115
+ }
116
+ export interface FirewallConfigManagedRulesetsOwaspGen {
117
+ action: string;
118
+ active?: boolean;
119
+ }
120
+ export interface FirewallConfigManagedRulesetsOwaspJava {
121
+ action: string;
122
+ active?: boolean;
123
+ }
124
+ export interface FirewallConfigManagedRulesetsOwaspLfi {
125
+ action: string;
126
+ active?: boolean;
127
+ }
128
+ export interface FirewallConfigManagedRulesetsOwaspMa {
129
+ action: string;
130
+ active?: boolean;
131
+ }
132
+ export interface FirewallConfigManagedRulesetsOwaspPhp {
133
+ action: string;
134
+ active?: boolean;
135
+ }
136
+ export interface FirewallConfigManagedRulesetsOwaspRce {
137
+ action: string;
138
+ active?: boolean;
139
+ }
140
+ export interface FirewallConfigManagedRulesetsOwaspRfi {
141
+ action: string;
142
+ active?: boolean;
143
+ }
144
+ export interface FirewallConfigManagedRulesetsOwaspSd {
145
+ action: string;
146
+ active?: boolean;
147
+ }
148
+ export interface FirewallConfigManagedRulesetsOwaspSqli {
149
+ action: string;
150
+ active?: boolean;
151
+ }
152
+ export interface FirewallConfigManagedRulesetsOwaspXss {
153
+ action: string;
154
+ active?: boolean;
155
+ }
156
+ export interface FirewallConfigRules {
157
+ rules?: outputs.FirewallConfigRulesRule[];
158
+ }
159
+ export interface FirewallConfigRulesRule {
160
+ /**
161
+ * Actions to take when the condition groups match a request
162
+ */
163
+ action: outputs.FirewallConfigRulesRuleAction;
164
+ /**
165
+ * Rule is active or disabled
166
+ */
167
+ active?: boolean;
168
+ /**
169
+ * Sets of conditions that may match a request
170
+ */
171
+ conditionGroups: outputs.FirewallConfigRulesRuleConditionGroup[];
172
+ description?: string;
173
+ id: string;
174
+ /**
175
+ * Name to identify the rule
176
+ */
177
+ name: string;
178
+ }
179
+ export interface FirewallConfigRulesRuleAction {
180
+ /**
181
+ * Base action
182
+ */
183
+ action: string;
184
+ /**
185
+ * Forward persistence of a rule aciton
186
+ */
187
+ actionDuration?: string;
188
+ /**
189
+ * Behavior or a rate limiting action. Required if action is rate_limit
190
+ */
191
+ rateLimit?: outputs.FirewallConfigRulesRuleActionRateLimit;
192
+ /**
193
+ * How to redirect a request. Required if action is redirect
194
+ */
195
+ redirect?: outputs.FirewallConfigRulesRuleActionRedirect;
196
+ }
197
+ export interface FirewallConfigRulesRuleActionRateLimit {
198
+ /**
199
+ * Action to take when rate limit is exceeded
200
+ */
201
+ action: string;
202
+ /**
203
+ * Rate limiting algorithm
204
+ */
205
+ algo: string;
206
+ /**
207
+ * Keys used to bucket an individual client
208
+ */
209
+ keys: string[];
210
+ /**
211
+ * number of requests allowed in the window
212
+ */
213
+ limit: number;
214
+ /**
215
+ * Time window in seconds
216
+ */
217
+ window: number;
218
+ }
219
+ export interface FirewallConfigRulesRuleActionRedirect {
220
+ location: string;
221
+ permanent: boolean;
222
+ }
223
+ export interface FirewallConfigRulesRuleConditionGroup {
224
+ /**
225
+ * Conditions that must all match within a group
226
+ */
227
+ conditions: outputs.FirewallConfigRulesRuleConditionGroupCondition[];
228
+ }
229
+ export interface FirewallConfigRulesRuleConditionGroupCondition {
230
+ /**
231
+ * Key within type to match against
232
+ */
233
+ key?: string;
234
+ neg?: boolean;
235
+ /**
236
+ * How to comparse type to value
237
+ */
238
+ op: string;
239
+ /**
240
+ * Request key type to match against
241
+ */
242
+ type: string;
243
+ value?: string;
244
+ }
245
+ export interface GetCustomEnvironmentBranchTracking {
246
+ /**
247
+ * The pattern of the branch name to track.
248
+ */
249
+ pattern: string;
250
+ /**
251
+ * How a branch name should be matched against the pattern. Must be one of 'startsWith', 'endsWith' or 'equals'.
252
+ */
253
+ type: string;
254
+ }
42
255
  export interface GetProjectEnvironment {
256
+ /**
257
+ * A comment explaining what the environment variable is for.
258
+ */
259
+ comment: string;
260
+ /**
261
+ * The IDs of Custom Environments that the Environment Variable should be present on.
262
+ */
263
+ customEnvironmentIds: string[];
43
264
  /**
44
265
  * The git branch of the environment variable.
45
266
  */
@@ -111,11 +332,33 @@ export interface GetProjectGitRepositoryDeployHook {
111
332
  */
112
333
  url: string;
113
334
  }
335
+ export interface GetProjectMembersMember {
336
+ /**
337
+ * The email of the user.
338
+ */
339
+ email: string;
340
+ /**
341
+ * The role of the user in the project. One of 'MEMBER', 'PROJECT_DEVELOPER', or 'PROJECT_VIEWER'.
342
+ */
343
+ role: string;
344
+ /**
345
+ * The ID of the user.
346
+ */
347
+ userId: string;
348
+ /**
349
+ * The username of the user.
350
+ */
351
+ username: string;
352
+ }
114
353
  export interface GetProjectOidcTokenConfig {
115
354
  /**
116
355
  * When true, Vercel issued OpenID Connect (OIDC) tokens will be available on the compute environments. See https://vercel.com/docs/security/secure-backend-access/oidc for more information.
117
356
  */
118
357
  enabled: boolean;
358
+ /**
359
+ * Configures the URL of the `iss` claim. `team` = `https://oidc.vercel.com/[teamSlug]` `global` = `https://oidc.vercel.com`
360
+ */
361
+ issuerMode: string;
119
362
  }
120
363
  export interface GetProjectOptionsAllowlist {
121
364
  /**
@@ -166,7 +409,47 @@ export interface GetProjectVercelAuthentication {
166
409
  */
167
410
  deploymentType: string;
168
411
  }
412
+ export interface GetTeamConfigRemoteCaching {
413
+ /**
414
+ * Indicates if Remote Caching is enabled.
415
+ */
416
+ enabled: boolean;
417
+ }
418
+ export interface GetTeamConfigSaml {
419
+ /**
420
+ * The ID of the access group to use for the team.
421
+ */
422
+ accessGroupId: string;
423
+ /**
424
+ * Indicates if SAML is enforced for the team.
425
+ */
426
+ enforced: boolean;
427
+ /**
428
+ * Directory groups to role or access group mappings.
429
+ */
430
+ roles: {
431
+ [key: string]: string;
432
+ };
433
+ }
434
+ export interface GetTeamMemberProject {
435
+ /**
436
+ * The ID of the project that the user should be granted access to.
437
+ */
438
+ projectId: string;
439
+ /**
440
+ * The role that the user should have in the project.
441
+ */
442
+ role: string;
443
+ }
169
444
  export interface ProjectEnvironment {
445
+ /**
446
+ * A comment explaining what the environment variable is for.
447
+ */
448
+ comment: string;
449
+ /**
450
+ * The IDs of Custom Environments that the Environment Variable should be present on. At least one of `target` or `customEnvironmentIds` must be set.
451
+ */
452
+ customEnvironmentIds: string[];
170
453
  /**
171
454
  * The git branch of the Environment Variable.
172
455
  */
@@ -184,7 +467,41 @@ export interface ProjectEnvironment {
184
467
  */
185
468
  sensitive: boolean;
186
469
  /**
187
- * The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`.
470
+ * The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`. At least one of `target` or `customEnvironmentIds` must be set.
471
+ */
472
+ targets: string[];
473
+ /**
474
+ * The value of the Environment Variable.
475
+ */
476
+ value: string;
477
+ }
478
+ export interface ProjectEnvironmentVariablesVariable {
479
+ /**
480
+ * A comment explaining what the environment variable is for.
481
+ */
482
+ comment: string;
483
+ /**
484
+ * The IDs of Custom Environments that the Environment Variable should be present on. At least one of `target` or `customEnvironmentIds` must be set.
485
+ */
486
+ customEnvironmentIds: string[];
487
+ /**
488
+ * The git branch of the Environment Variable.
489
+ */
490
+ gitBranch?: string;
491
+ /**
492
+ * The ID of the Environment Variable.
493
+ */
494
+ id: string;
495
+ /**
496
+ * The name of the Environment Variable.
497
+ */
498
+ key: string;
499
+ /**
500
+ * Whether the Environment Variable is sensitive or not.
501
+ */
502
+ sensitive: boolean;
503
+ /**
504
+ * The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`. At least one of `target` or `customEnvironmentIds` must be set.
188
505
  */
189
506
  targets: string[];
190
507
  /**
@@ -238,11 +555,33 @@ export interface ProjectGitRepositoryDeployHook {
238
555
  */
239
556
  url: string;
240
557
  }
558
+ export interface ProjectMembersMember {
559
+ /**
560
+ * The email of the user to add to the project. Exactly one of `userId`, `email`, or `username` must be specified.
561
+ */
562
+ email: string;
563
+ /**
564
+ * The role that the user should have in the project. One of 'MEMBER', 'PROJECT_DEVELOPER', or 'PROJECT_VIEWER'.
565
+ */
566
+ role: string;
567
+ /**
568
+ * The ID of the user to add to the project. Exactly one of `userId`, `email`, or `username` must be specified.
569
+ */
570
+ userId: string;
571
+ /**
572
+ * The username of the user to add to the project. Exactly one of `userId`, `email`, or `username` must be specified.
573
+ */
574
+ username: string;
575
+ }
241
576
  export interface ProjectOidcTokenConfig {
242
577
  /**
243
578
  * When true, Vercel issued OpenID Connect (OIDC) tokens will be available on the compute environments. See https://vercel.com/docs/security/secure-backend-access/oidc for more information.
244
579
  */
245
580
  enabled: boolean;
581
+ /**
582
+ * Configures the URL of the `iss` claim. `team` = `https://oidc.vercel.com/[teamSlug]` `global` = `https://oidc.vercel.com`
583
+ */
584
+ issuerMode: string;
246
585
  }
247
586
  export interface ProjectOptionsAllowlist {
248
587
  /**
@@ -306,3 +645,35 @@ export interface ProjectVercelAuthentication {
306
645
  */
307
646
  deploymentType: string;
308
647
  }
648
+ export interface TeamConfigRemoteCaching {
649
+ /**
650
+ * Indicates if Remote Caching is enabled.
651
+ */
652
+ enabled: boolean;
653
+ }
654
+ export interface TeamConfigSaml {
655
+ /**
656
+ * The ID of the access group to use for the team.
657
+ */
658
+ accessGroupId?: string;
659
+ /**
660
+ * Indicates if SAML is enforced for the team.
661
+ */
662
+ enforced: boolean;
663
+ /**
664
+ * Directory groups to role or access group mappings.
665
+ */
666
+ roles?: {
667
+ [key: string]: string;
668
+ };
669
+ }
670
+ export interface TeamMemberProject {
671
+ /**
672
+ * The ID of the project that the user should be granted access to.
673
+ */
674
+ projectId: string;
675
+ /**
676
+ * The role that the user should have in the project.
677
+ */
678
+ role: string;
679
+ }
package/webhook.d.ts CHANGED
@@ -1,39 +1,4 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * A webhook is a trigger-based HTTP endpoint configured to receive HTTP POST requests through events.
4
- *
5
- * When an event happens, a webhook is sent to a third-party app, which can then take appropriate action.
6
- *
7
- * > Only Pro and Enterprise teams are able to configure these webhooks at the account level.
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", {});
16
- * const example2 = new vercel.Project("example2", {});
17
- * const withProjectIds = new vercel.Webhook("withProjectIds", {
18
- * events: [
19
- * "deployment.created",
20
- * "deployment.succeeded",
21
- * ],
22
- * endpoint: "https://example.com/endpoint",
23
- * projectIds: [
24
- * example.id,
25
- * example2.id,
26
- * ],
27
- * });
28
- * const withoutProjectIds = new vercel.Webhook("withoutProjectIds", {
29
- * events: [
30
- * "deployment.created",
31
- * "deployment.succeeded",
32
- * ],
33
- * endpoint: "https://example.com/endpoint",
34
- * });
35
- * ```
36
- */
37
2
  export declare class Webhook extends pulumi.CustomResource {
38
3
  /**
39
4
  * Get an existing Webhook resource's state with the given name, ID, and optional extra
@@ -59,15 +24,19 @@ export declare class Webhook extends pulumi.CustomResource {
59
24
  */
60
25
  readonly events: pulumi.Output<string[]>;
61
26
  /**
62
- * A list of project IDs that the webhook should be associated with. These projects should send events to the specified endpoint.
27
+ * A list of project IDs that the webhook should be associated with. These projects should send events to the specified
28
+ * endpoint.
63
29
  */
64
30
  readonly projectIds: pulumi.Output<string[] | undefined>;
65
31
  /**
66
- * A secret value which will be provided in the `x-vercel-signature` header and can be used to verify the authenticity of the webhook. See https://vercel.com/docs/observability/webhooks-overview/webhooks-api#securing-webhooks for further details.
32
+ * A secret value which will be provided in the `x-vercel-signature` header and can be used to verify the authenticity of
33
+ * the webhook. See https://vercel.com/docs/observability/webhooks-overview/webhooks-api#securing-webhooks for further
34
+ * details.
67
35
  */
68
36
  readonly secret: pulumi.Output<string>;
69
37
  /**
70
- * The ID of the team the Webhook should exist under. Required when configuring a team resource if a default team has not been set in the provider.
38
+ * The ID of the team the Webhook should exist under. Required when configuring a team resource if a default team has not
39
+ * been set in the provider.
71
40
  */
72
41
  readonly teamId: pulumi.Output<string>;
73
42
  /**
@@ -92,15 +61,19 @@ export interface WebhookState {
92
61
  */
93
62
  events?: pulumi.Input<pulumi.Input<string>[]>;
94
63
  /**
95
- * A list of project IDs that the webhook should be associated with. These projects should send events to the specified endpoint.
64
+ * A list of project IDs that the webhook should be associated with. These projects should send events to the specified
65
+ * endpoint.
96
66
  */
97
67
  projectIds?: pulumi.Input<pulumi.Input<string>[]>;
98
68
  /**
99
- * A secret value which will be provided in the `x-vercel-signature` header and can be used to verify the authenticity of the webhook. See https://vercel.com/docs/observability/webhooks-overview/webhooks-api#securing-webhooks for further details.
69
+ * A secret value which will be provided in the `x-vercel-signature` header and can be used to verify the authenticity of
70
+ * the webhook. See https://vercel.com/docs/observability/webhooks-overview/webhooks-api#securing-webhooks for further
71
+ * details.
100
72
  */
101
73
  secret?: pulumi.Input<string>;
102
74
  /**
103
- * The ID of the team the Webhook should exist under. Required when configuring a team resource if a default team has not been set in the provider.
75
+ * The ID of the team the Webhook should exist under. Required when configuring a team resource if a default team has not
76
+ * been set in the provider.
104
77
  */
105
78
  teamId?: pulumi.Input<string>;
106
79
  }
@@ -117,11 +90,13 @@ export interface WebhookArgs {
117
90
  */
118
91
  events: pulumi.Input<pulumi.Input<string>[]>;
119
92
  /**
120
- * A list of project IDs that the webhook should be associated with. These projects should send events to the specified endpoint.
93
+ * A list of project IDs that the webhook should be associated with. These projects should send events to the specified
94
+ * endpoint.
121
95
  */
122
96
  projectIds?: pulumi.Input<pulumi.Input<string>[]>;
123
97
  /**
124
- * The ID of the team the Webhook should exist under. Required when configuring a team resource if a default team has not been set in the provider.
98
+ * The ID of the team the Webhook should exist under. Required when configuring a team resource if a default team has not
99
+ * been set in the provider.
125
100
  */
126
101
  teamId?: pulumi.Input<string>;
127
102
  }
package/webhook.js CHANGED
@@ -5,41 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.Webhook = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
- /**
9
- * A webhook is a trigger-based HTTP endpoint configured to receive HTTP POST requests through events.
10
- *
11
- * When an event happens, a webhook is sent to a third-party app, which can then take appropriate action.
12
- *
13
- * > Only Pro and Enterprise teams are able to configure these webhooks at the account level.
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", {});
22
- * const example2 = new vercel.Project("example2", {});
23
- * const withProjectIds = new vercel.Webhook("withProjectIds", {
24
- * events: [
25
- * "deployment.created",
26
- * "deployment.succeeded",
27
- * ],
28
- * endpoint: "https://example.com/endpoint",
29
- * projectIds: [
30
- * example.id,
31
- * example2.id,
32
- * ],
33
- * });
34
- * const withoutProjectIds = new vercel.Webhook("withoutProjectIds", {
35
- * events: [
36
- * "deployment.created",
37
- * "deployment.succeeded",
38
- * ],
39
- * endpoint: "https://example.com/endpoint",
40
- * });
41
- * ```
42
- */
43
8
  class Webhook extends pulumi.CustomResource {
44
9
  /**
45
10
  * Get an existing Webhook resource's state with the given name, ID, and optional extra
package/webhook.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"webhook.js","sourceRoot":"","sources":["../webhook.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAA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YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AAzFL,0BA0FC;AA5EG,gBAAgB;AACO,oBAAY,GAAG,8BAA8B,CAAC"}
@@ -1,92 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * > This data source has been deprecated and no longer works. Please use the `vercel.Project` data source and its `resourceConfig` attribute instead.
4
- *
5
- * Provides information about a Project's Function CPU setting.
6
- *
7
- * 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.
8
- *
9
- * ## Example Usage
10
- *
11
- * ```typescript
12
- * import * as pulumi from "@pulumi/pulumi";
13
- * import * as vercel from "@pulumi/vercel";
14
- *
15
- * const exampleProject = vercel.getProject({
16
- * name: "example",
17
- * });
18
- * const exampleProjectFunctionCpu = exampleProject.then(exampleProject => vercel.getProjectFunctionCpu({
19
- * projectId: exampleProject.id,
20
- * }));
21
- * ```
22
- */
23
- export declare function getProjectFunctionCpu(args: GetProjectFunctionCpuArgs, opts?: pulumi.InvokeOptions): Promise<GetProjectFunctionCpuResult>;
24
- /**
25
- * A collection of arguments for invoking getProjectFunctionCpu.
26
- */
27
- export interface GetProjectFunctionCpuArgs {
28
- /**
29
- * The ID of the Project to read the Function CPU setting for.
30
- */
31
- projectId: string;
32
- /**
33
- * 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.
34
- */
35
- teamId?: string;
36
- }
37
- /**
38
- * A collection of values returned by getProjectFunctionCpu.
39
- */
40
- export interface GetProjectFunctionCpuResult {
41
- /**
42
- * The amount of CPU available to your Serverless Functions. Should be one of 'basic' (0.6vCPU), 'standard' (1vCPU) or 'performance' (1.7vCPUs).
43
- */
44
- readonly cpu: string;
45
- /**
46
- * The ID of the resource.
47
- */
48
- readonly id: string;
49
- /**
50
- * The ID of the Project to read the Function CPU setting for.
51
- */
52
- readonly projectId: string;
53
- /**
54
- * 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.
55
- */
56
- readonly teamId: string;
57
- }
58
- /**
59
- * > This data source has been deprecated and no longer works. Please use the `vercel.Project` data source and its `resourceConfig` attribute instead.
60
- *
61
- * Provides information about a Project's Function CPU setting.
62
- *
63
- * 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.
64
- *
65
- * ## Example Usage
66
- *
67
- * ```typescript
68
- * import * as pulumi from "@pulumi/pulumi";
69
- * import * as vercel from "@pulumi/vercel";
70
- *
71
- * const exampleProject = vercel.getProject({
72
- * name: "example",
73
- * });
74
- * const exampleProjectFunctionCpu = exampleProject.then(exampleProject => vercel.getProjectFunctionCpu({
75
- * projectId: exampleProject.id,
76
- * }));
77
- * ```
78
- */
79
- export declare function getProjectFunctionCpuOutput(args: GetProjectFunctionCpuOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetProjectFunctionCpuResult>;
80
- /**
81
- * A collection of arguments for invoking getProjectFunctionCpu.
82
- */
83
- export interface GetProjectFunctionCpuOutputArgs {
84
- /**
85
- * The ID of the Project to read the Function CPU setting for.
86
- */
87
- projectId: pulumi.Input<string>;
88
- /**
89
- * 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.
90
- */
91
- teamId?: pulumi.Input<string>;
92
- }