@pulumiverse/vercel 1.14.3 → 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 (76) hide show
  1. package/accessGroup.d.ts +92 -0
  2. package/accessGroup.js +83 -0
  3. package/accessGroup.js.map +1 -0
  4. package/accessGroupProject.d.ts +122 -0
  5. package/accessGroupProject.js +102 -0
  6. package/accessGroupProject.js.map +1 -0
  7. package/customEnvironment.d.ts +150 -0
  8. package/customEnvironment.js +112 -0
  9. package/customEnvironment.js.map +1 -0
  10. package/edgeConfigItem.d.ts +131 -0
  11. package/edgeConfigItem.js +111 -0
  12. package/edgeConfigItem.js.map +1 -0
  13. package/getAccessGroup.d.ts +78 -0
  14. package/getAccessGroup.js +56 -0
  15. package/getAccessGroup.js.map +1 -0
  16. package/getAccessGroupProject.d.ts +102 -0
  17. package/getAccessGroupProject.js +66 -0
  18. package/getAccessGroupProject.js.map +1 -0
  19. package/getCustomEnvironment.d.ts +107 -0
  20. package/getCustomEnvironment.js +66 -0
  21. package/getCustomEnvironment.js.map +1 -0
  22. package/getEdgeConfigItem.d.ts +102 -0
  23. package/getEdgeConfigItem.js +70 -0
  24. package/getEdgeConfigItem.js.map +1 -0
  25. package/getProject.d.ts +7 -5
  26. package/getProject.js +2 -4
  27. package/getProject.js.map +1 -1
  28. package/getProjectMembers.d.ts +85 -0
  29. package/getProjectMembers.js +58 -0
  30. package/getProjectMembers.js.map +1 -0
  31. package/getSharedEnvironmentVariable.d.ts +4 -0
  32. package/getSharedEnvironmentVariable.js.map +1 -1
  33. package/getTeamConfig.d.ts +111 -0
  34. package/getTeamConfig.js +50 -0
  35. package/getTeamConfig.js.map +1 -0
  36. package/getTeamMember.d.ts +89 -0
  37. package/getTeamMember.js +54 -0
  38. package/getTeamMember.js.map +1 -0
  39. package/index.d.ts +45 -6
  40. package/index.js +63 -9
  41. package/index.js.map +1 -1
  42. package/logDrain.d.ts +2 -2
  43. package/logDrain.js +2 -2
  44. package/package.json +3 -2
  45. package/project.d.ts +9 -5
  46. package/project.js +3 -1
  47. package/project.js.map +1 -1
  48. package/projectDomain.d.ts +12 -0
  49. package/projectDomain.js +2 -0
  50. package/projectDomain.js.map +1 -1
  51. package/projectEnvironmentVariable.d.ts +31 -4
  52. package/projectEnvironmentVariable.js +7 -3
  53. package/projectEnvironmentVariable.js.map +1 -1
  54. package/projectEnvironmentVariables.d.ts +77 -0
  55. package/projectEnvironmentVariables.js +62 -0
  56. package/projectEnvironmentVariables.js.map +1 -0
  57. package/projectMembers.d.ts +97 -0
  58. package/{projectFunctionCpu.js → projectMembers.js} +25 -36
  59. package/projectMembers.js.map +1 -0
  60. package/sharedEnvironmentVariable.d.ts +13 -0
  61. package/sharedEnvironmentVariable.js +3 -0
  62. package/sharedEnvironmentVariable.js.map +1 -1
  63. package/teamConfig.d.ts +211 -0
  64. package/teamConfig.js +78 -0
  65. package/teamConfig.js.map +1 -0
  66. package/teamMember.d.ts +122 -0
  67. package/teamMember.js +90 -0
  68. package/teamMember.js.map +1 -0
  69. package/types/input.d.ts +108 -8
  70. package/types/output.d.ts +179 -7
  71. package/getProjectFunctionCpu.d.ts +0 -92
  72. package/getProjectFunctionCpu.js +0 -66
  73. package/getProjectFunctionCpu.js.map +0 -1
  74. package/package.json.bak +0 -27
  75. package/projectFunctionCpu.d.ts +0 -106
  76. package/projectFunctionCpu.js.map +0 -1
package/types/input.d.ts CHANGED
@@ -1,5 +1,15 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "../types/input";
3
+ export interface CustomEnvironmentBranchTracking {
4
+ /**
5
+ * The pattern of the branch name to track.
6
+ */
7
+ pattern: pulumi.Input<string>;
8
+ /**
9
+ * How a branch name should be matched against the pattern. Must be one of 'startsWith', 'endsWith' or 'equals'.
10
+ */
11
+ type: pulumi.Input<string>;
12
+ }
3
13
  export interface DeploymentProjectSettings {
4
14
  /**
5
15
  * The build command for this deployment. If omitted, this value will be taken from the project or automatically detected.
@@ -49,9 +59,6 @@ export interface FirewallConfigIpRulesRule {
49
59
  * Hosts to apply these rules to
50
60
  */
51
61
  hostname: pulumi.Input<string>;
52
- /**
53
- * The ID of this resource.
54
- */
55
62
  id?: pulumi.Input<string>;
56
63
  /**
57
64
  * IP or CIDR to block
@@ -164,9 +171,6 @@ export interface FirewallConfigRulesRule {
164
171
  */
165
172
  conditionGroups: pulumi.Input<pulumi.Input<inputs.FirewallConfigRulesRuleConditionGroup>[]>;
166
173
  description?: pulumi.Input<string>;
167
- /**
168
- * The ID of this resource.
169
- */
170
174
  id?: pulumi.Input<string>;
171
175
  /**
172
176
  * Name to identify the rule
@@ -240,6 +244,14 @@ export interface FirewallConfigRulesRuleConditionGroupCondition {
240
244
  value?: pulumi.Input<string>;
241
245
  }
242
246
  export interface ProjectEnvironment {
247
+ /**
248
+ * A comment explaining what the environment variable is for.
249
+ */
250
+ comment?: pulumi.Input<string>;
251
+ /**
252
+ * The IDs of Custom Environments that the Environment Variable should be present on. At least one of `target` or `customEnvironmentIds` must be set.
253
+ */
254
+ customEnvironmentIds?: pulumi.Input<pulumi.Input<string>[]>;
243
255
  /**
244
256
  * The git branch of the Environment Variable.
245
257
  */
@@ -257,9 +269,43 @@ export interface ProjectEnvironment {
257
269
  */
258
270
  sensitive?: pulumi.Input<boolean>;
259
271
  /**
260
- * The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`.
272
+ * 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.
273
+ */
274
+ targets?: pulumi.Input<pulumi.Input<string>[]>;
275
+ /**
276
+ * The value of the Environment Variable.
277
+ */
278
+ value: pulumi.Input<string>;
279
+ }
280
+ export interface ProjectEnvironmentVariablesVariable {
281
+ /**
282
+ * A comment explaining what the environment variable is for.
283
+ */
284
+ comment?: pulumi.Input<string>;
285
+ /**
286
+ * The IDs of Custom Environments that the Environment Variable should be present on. At least one of `target` or `customEnvironmentIds` must be set.
287
+ */
288
+ customEnvironmentIds?: pulumi.Input<pulumi.Input<string>[]>;
289
+ /**
290
+ * The git branch of the Environment Variable.
291
+ */
292
+ gitBranch?: pulumi.Input<string>;
293
+ /**
294
+ * The ID of the Environment Variable.
295
+ */
296
+ id?: pulumi.Input<string>;
297
+ /**
298
+ * The name of the Environment Variable.
299
+ */
300
+ key: pulumi.Input<string>;
301
+ /**
302
+ * Whether the Environment Variable is sensitive or not.
303
+ */
304
+ sensitive?: pulumi.Input<boolean>;
305
+ /**
306
+ * 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.
261
307
  */
262
- targets: pulumi.Input<pulumi.Input<string>[]>;
308
+ targets?: pulumi.Input<pulumi.Input<string>[]>;
263
309
  /**
264
310
  * The value of the Environment Variable.
265
311
  */
@@ -311,11 +357,33 @@ export interface ProjectGitRepositoryDeployHook {
311
357
  */
312
358
  url?: pulumi.Input<string>;
313
359
  }
360
+ export interface ProjectMembersMember {
361
+ /**
362
+ * The email of the user to add to the project. Exactly one of `userId`, `email`, or `username` must be specified.
363
+ */
364
+ email?: pulumi.Input<string>;
365
+ /**
366
+ * The role that the user should have in the project. One of 'MEMBER', 'PROJECT*DEVELOPER', or 'PROJECT*VIEWER'.
367
+ */
368
+ role: pulumi.Input<string>;
369
+ /**
370
+ * The ID of the user to add to the project. Exactly one of `userId`, `email`, or `username` must be specified.
371
+ */
372
+ userId?: pulumi.Input<string>;
373
+ /**
374
+ * The username of the user to add to the project. Exactly one of `userId`, `email`, or `username` must be specified.
375
+ */
376
+ username?: pulumi.Input<string>;
377
+ }
314
378
  export interface ProjectOidcTokenConfig {
315
379
  /**
316
380
  * 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.
317
381
  */
318
382
  enabled: pulumi.Input<boolean>;
383
+ /**
384
+ * Configures the URL of the `iss` claim. `team` = `https://oidc.vercel.com/[teamSlug]` `global` = `https://oidc.vercel.com`
385
+ */
386
+ issuerMode?: pulumi.Input<string>;
319
387
  }
320
388
  export interface ProjectOptionsAllowlist {
321
389
  /**
@@ -379,3 +447,35 @@ export interface ProjectVercelAuthentication {
379
447
  */
380
448
  deploymentType: pulumi.Input<string>;
381
449
  }
450
+ export interface TeamConfigRemoteCaching {
451
+ /**
452
+ * Indicates if Remote Caching is enabled.
453
+ */
454
+ enabled?: pulumi.Input<boolean>;
455
+ }
456
+ export interface TeamConfigSaml {
457
+ /**
458
+ * The ID of the access group to use for the team.
459
+ */
460
+ accessGroupId?: pulumi.Input<string>;
461
+ /**
462
+ * Indicates if SAML is enforced for the team.
463
+ */
464
+ enforced: pulumi.Input<boolean>;
465
+ /**
466
+ * Directory groups to role or access group mappings.
467
+ */
468
+ roles?: pulumi.Input<{
469
+ [key: string]: pulumi.Input<string>;
470
+ }>;
471
+ }
472
+ export interface TeamMemberProject {
473
+ /**
474
+ * The ID of the project that the user should be granted access to.
475
+ */
476
+ projectId: pulumi.Input<string>;
477
+ /**
478
+ * The role that the user should have in the project.
479
+ */
480
+ role: pulumi.Input<string>;
481
+ }
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.
@@ -48,9 +58,6 @@ export interface FirewallConfigIpRulesRule {
48
58
  * Hosts to apply these rules to
49
59
  */
50
60
  hostname: string;
51
- /**
52
- * The ID of this resource.
53
- */
54
61
  id: string;
55
62
  /**
56
63
  * IP or CIDR to block
@@ -163,9 +170,6 @@ export interface FirewallConfigRulesRule {
163
170
  */
164
171
  conditionGroups: outputs.FirewallConfigRulesRuleConditionGroup[];
165
172
  description?: string;
166
- /**
167
- * The ID of this resource.
168
- */
169
173
  id: string;
170
174
  /**
171
175
  * Name to identify the rule
@@ -238,7 +242,25 @@ export interface FirewallConfigRulesRuleConditionGroupCondition {
238
242
  type: string;
239
243
  value?: string;
240
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
+ }
241
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[];
242
264
  /**
243
265
  * The git branch of the environment variable.
244
266
  */
@@ -310,11 +332,33 @@ export interface GetProjectGitRepositoryDeployHook {
310
332
  */
311
333
  url: string;
312
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
+ }
313
353
  export interface GetProjectOidcTokenConfig {
314
354
  /**
315
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.
316
356
  */
317
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;
318
362
  }
319
363
  export interface GetProjectOptionsAllowlist {
320
364
  /**
@@ -365,7 +409,47 @@ export interface GetProjectVercelAuthentication {
365
409
  */
366
410
  deploymentType: string;
367
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
+ }
368
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[];
369
453
  /**
370
454
  * The git branch of the Environment Variable.
371
455
  */
@@ -383,7 +467,41 @@ export interface ProjectEnvironment {
383
467
  */
384
468
  sensitive: boolean;
385
469
  /**
386
- * 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.
387
505
  */
388
506
  targets: string[];
389
507
  /**
@@ -437,11 +555,33 @@ export interface ProjectGitRepositoryDeployHook {
437
555
  */
438
556
  url: string;
439
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
+ }
440
576
  export interface ProjectOidcTokenConfig {
441
577
  /**
442
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.
443
579
  */
444
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;
445
585
  }
446
586
  export interface ProjectOptionsAllowlist {
447
587
  /**
@@ -505,3 +645,35 @@ export interface ProjectVercelAuthentication {
505
645
  */
506
646
  deploymentType: string;
507
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
+ }
@@ -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
- }
@@ -1,66 +0,0 @@
1
- "use strict";
2
- // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
- // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.getProjectFunctionCpuOutput = exports.getProjectFunctionCpu = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
8
- /**
9
- * > This data source has been deprecated and no longer works. Please use the `vercel.Project` data source and its `resourceConfig` attribute instead.
10
- *
11
- * Provides information about a Project's Function CPU setting.
12
- *
13
- * 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.
14
- *
15
- * ## Example Usage
16
- *
17
- * ```typescript
18
- * import * as pulumi from "@pulumi/pulumi";
19
- * import * as vercel from "@pulumi/vercel";
20
- *
21
- * const exampleProject = vercel.getProject({
22
- * name: "example",
23
- * });
24
- * const exampleProjectFunctionCpu = exampleProject.then(exampleProject => vercel.getProjectFunctionCpu({
25
- * projectId: exampleProject.id,
26
- * }));
27
- * ```
28
- */
29
- function getProjectFunctionCpu(args, opts) {
30
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
31
- return pulumi.runtime.invoke("vercel:index/getProjectFunctionCpu:getProjectFunctionCpu", {
32
- "projectId": args.projectId,
33
- "teamId": args.teamId,
34
- }, opts);
35
- }
36
- exports.getProjectFunctionCpu = getProjectFunctionCpu;
37
- /**
38
- * > This data source has been deprecated and no longer works. Please use the `vercel.Project` data source and its `resourceConfig` attribute instead.
39
- *
40
- * Provides information about a Project's Function CPU setting.
41
- *
42
- * 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.
43
- *
44
- * ## Example Usage
45
- *
46
- * ```typescript
47
- * import * as pulumi from "@pulumi/pulumi";
48
- * import * as vercel from "@pulumi/vercel";
49
- *
50
- * const exampleProject = vercel.getProject({
51
- * name: "example",
52
- * });
53
- * const exampleProjectFunctionCpu = exampleProject.then(exampleProject => vercel.getProjectFunctionCpu({
54
- * projectId: exampleProject.id,
55
- * }));
56
- * ```
57
- */
58
- function getProjectFunctionCpuOutput(args, opts) {
59
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
60
- return pulumi.runtime.invokeOutput("vercel:index/getProjectFunctionCpu:getProjectFunctionCpu", {
61
- "projectId": args.projectId,
62
- "teamId": args.teamId,
63
- }, opts);
64
- }
65
- exports.getProjectFunctionCpuOutput = getProjectFunctionCpuOutput;
66
- //# sourceMappingURL=getProjectFunctionCpu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getProjectFunctionCpu.js","sourceRoot":"","sources":["../getProjectFunctionCpu.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAA2B;IAC9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0DAA0D,EAAE;QACrF,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sDAMC;AAqCD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,2BAA2B,CAAC,IAAqC,EAAE,IAA2B;IAC1G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,0DAA0D,EAAE;QAC3F,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kEAMC"}
package/package.json.bak DELETED
@@ -1,27 +0,0 @@
1
- {
2
- "name": "@pulumiverse/vercel",
3
- "version": "${VERSION}",
4
- "keywords": [
5
- "pulumi",
6
- "vercel",
7
- "category/cloud"
8
- ],
9
- "repository": "https://github.com/pulumiverse/pulumi-vercel",
10
- "license": "Apache-2.0",
11
- "scripts": {
12
- "build": "tsc"
13
- },
14
- "dependencies": {
15
- "@pulumi/pulumi": "^3.0.0"
16
- },
17
- "devDependencies": {
18
- "@types/mime": "^2.0.0",
19
- "@types/node": "^10.0.0",
20
- "typescript": "^4.3.5"
21
- },
22
- "pulumi": {
23
- "resource": true,
24
- "name": "vercel",
25
- "server": "github://api.github.com/pulumiverse"
26
- }
27
- }