@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
@@ -0,0 +1,92 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides an Access Group Resource.
4
+ *
5
+ * Access Groups provide a way to manage groups of Vercel users across projects on your team. They are a set of project role assignations, a combination of Vercel users and the projects they work on.
6
+ *
7
+ * For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/accounts/team-members-and-roles/access-groups).
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.AccessGroup("example", {});
16
+ * ```
17
+ *
18
+ * ## Import
19
+ *
20
+ * If importing into a personal account, or with a team configured on
21
+ *
22
+ * the provider, simply use the access_group_id.
23
+ *
24
+ * ```sh
25
+ * $ pulumi import vercel:index/accessGroup:AccessGroup example ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
26
+ * ```
27
+ *
28
+ * If importing to a team, use the team_id and access_group_id.
29
+ *
30
+ * ```sh
31
+ * $ pulumi import vercel:index/accessGroup:AccessGroup example team_xxxxxxxxxxxxxxxxxxxxxxxx/ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
32
+ * ```
33
+ */
34
+ export declare class AccessGroup extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing AccessGroup resource's state with the given name, ID, and optional extra
37
+ * properties used to qualify the lookup.
38
+ *
39
+ * @param name The _unique_ name of the resulting resource.
40
+ * @param id The _unique_ provider ID of the resource to lookup.
41
+ * @param state Any extra arguments used during the lookup.
42
+ * @param opts Optional settings to control the behavior of the CustomResource.
43
+ */
44
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AccessGroupState, opts?: pulumi.CustomResourceOptions): AccessGroup;
45
+ /**
46
+ * Returns true if the given object is an instance of AccessGroup. This is designed to work even
47
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
48
+ */
49
+ static isInstance(obj: any): obj is AccessGroup;
50
+ /**
51
+ * The name of the Access Group
52
+ */
53
+ readonly name: pulumi.Output<string>;
54
+ /**
55
+ * The ID of the team the Access Group should exist under. Required when configuring a team resource if a default team has not been set in the provider.
56
+ */
57
+ readonly teamId: pulumi.Output<string>;
58
+ /**
59
+ * Create a AccessGroup resource with the given unique name, arguments, and options.
60
+ *
61
+ * @param name The _unique_ name of the resource.
62
+ * @param args The arguments to use to populate this resource's properties.
63
+ * @param opts A bag of options that control this resource's behavior.
64
+ */
65
+ constructor(name: string, args?: AccessGroupArgs, opts?: pulumi.CustomResourceOptions);
66
+ }
67
+ /**
68
+ * Input properties used for looking up and filtering AccessGroup resources.
69
+ */
70
+ export interface AccessGroupState {
71
+ /**
72
+ * The name of the Access Group
73
+ */
74
+ name?: pulumi.Input<string>;
75
+ /**
76
+ * The ID of the team the Access Group should exist under. Required when configuring a team resource if a default team has not been set in the provider.
77
+ */
78
+ teamId?: pulumi.Input<string>;
79
+ }
80
+ /**
81
+ * The set of arguments for constructing a AccessGroup resource.
82
+ */
83
+ export interface AccessGroupArgs {
84
+ /**
85
+ * The name of the Access Group
86
+ */
87
+ name?: pulumi.Input<string>;
88
+ /**
89
+ * The ID of the team the Access Group should exist 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
+ }
package/accessGroup.js ADDED
@@ -0,0 +1,83 @@
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.AccessGroup = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides an Access Group Resource.
10
+ *
11
+ * Access Groups provide a way to manage groups of Vercel users across projects on your team. They are a set of project role assignations, a combination of Vercel users and the projects they work on.
12
+ *
13
+ * For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/accounts/team-members-and-roles/access-groups).
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.AccessGroup("example", {});
22
+ * ```
23
+ *
24
+ * ## Import
25
+ *
26
+ * If importing into a personal account, or with a team configured on
27
+ *
28
+ * the provider, simply use the access_group_id.
29
+ *
30
+ * ```sh
31
+ * $ pulumi import vercel:index/accessGroup:AccessGroup example ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
32
+ * ```
33
+ *
34
+ * If importing to a team, use the team_id and access_group_id.
35
+ *
36
+ * ```sh
37
+ * $ pulumi import vercel:index/accessGroup:AccessGroup example team_xxxxxxxxxxxxxxxxxxxxxxxx/ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
38
+ * ```
39
+ */
40
+ class AccessGroup extends pulumi.CustomResource {
41
+ /**
42
+ * Get an existing AccessGroup resource's state with the given name, ID, and optional extra
43
+ * properties used to qualify the lookup.
44
+ *
45
+ * @param name The _unique_ name of the resulting resource.
46
+ * @param id The _unique_ provider ID of the resource to lookup.
47
+ * @param state Any extra arguments used during the lookup.
48
+ * @param opts Optional settings to control the behavior of the CustomResource.
49
+ */
50
+ static get(name, id, state, opts) {
51
+ return new AccessGroup(name, state, Object.assign(Object.assign({}, opts), { id: id }));
52
+ }
53
+ /**
54
+ * Returns true if the given object is an instance of AccessGroup. This is designed to work even
55
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
56
+ */
57
+ static isInstance(obj) {
58
+ if (obj === undefined || obj === null) {
59
+ return false;
60
+ }
61
+ return obj['__pulumiType'] === AccessGroup.__pulumiType;
62
+ }
63
+ constructor(name, argsOrState, opts) {
64
+ let resourceInputs = {};
65
+ opts = opts || {};
66
+ if (opts.id) {
67
+ const state = argsOrState;
68
+ resourceInputs["name"] = state ? state.name : undefined;
69
+ resourceInputs["teamId"] = state ? state.teamId : undefined;
70
+ }
71
+ else {
72
+ const args = argsOrState;
73
+ resourceInputs["name"] = args ? args.name : undefined;
74
+ resourceInputs["teamId"] = args ? args.teamId : undefined;
75
+ }
76
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
77
+ super(AccessGroup.__pulumiType, name, resourceInputs, opts);
78
+ }
79
+ }
80
+ exports.AccessGroup = AccessGroup;
81
+ /** @internal */
82
+ AccessGroup.__pulumiType = 'vercel:index/accessGroup:AccessGroup';
83
+ //# sourceMappingURL=accessGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accessGroup.js","sourceRoot":"","sources":["../access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CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA3DL,kCA4DC;AA9CG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
@@ -0,0 +1,122 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides an Access Group Project Resource.
4
+ *
5
+ * An Access Group Project resource defines the relationship between a `vercel.AccessGroup` and a `vercel.Project`.
6
+ *
7
+ * For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/accounts/team-members-and-roles/access-groups).
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as vercel from "@pulumiverse/vercel";
14
+ *
15
+ * const exampleProject = new vercel.Project("exampleProject", {});
16
+ * const exampleAccessGroup = new vercel.AccessGroup("exampleAccessGroup", {});
17
+ * const exampleAccessGroupProject = new vercel.AccessGroupProject("exampleAccessGroupProject", {
18
+ * projectId: exampleProject.id,
19
+ * accessGroupId: exampleAccessGroup.id,
20
+ * role: "ADMIN",
21
+ * });
22
+ * ```
23
+ *
24
+ * ## Import
25
+ *
26
+ * If importing into a personal account, or with a team configured on
27
+ *
28
+ * the provider, use the access_group_id and project_id.
29
+ *
30
+ * ```sh
31
+ * $ pulumi import vercel:index/accessGroupProject:AccessGroupProject example ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
32
+ * ```
33
+ *
34
+ * If importing to a team, use the team_id, access_group_id and project_id.
35
+ *
36
+ * ```sh
37
+ * $ pulumi import vercel:index/accessGroupProject:AccessGroupProject example team_xxxxxxxxxxxxxxxxxxxxxxxx/ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
38
+ * ```
39
+ */
40
+ export declare class AccessGroupProject extends pulumi.CustomResource {
41
+ /**
42
+ * Get an existing AccessGroupProject resource's state with the given name, ID, and optional extra
43
+ * properties used to qualify the lookup.
44
+ *
45
+ * @param name The _unique_ name of the resulting resource.
46
+ * @param id The _unique_ provider ID of the resource to lookup.
47
+ * @param state Any extra arguments used during the lookup.
48
+ * @param opts Optional settings to control the behavior of the CustomResource.
49
+ */
50
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AccessGroupProjectState, opts?: pulumi.CustomResourceOptions): AccessGroupProject;
51
+ /**
52
+ * Returns true if the given object is an instance of AccessGroupProject. This is designed to work even
53
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
54
+ */
55
+ static isInstance(obj: any): obj is AccessGroupProject;
56
+ /**
57
+ * The ID of the Access Group.
58
+ */
59
+ readonly accessGroupId: pulumi.Output<string>;
60
+ /**
61
+ * The Project ID to assign to the access group.
62
+ */
63
+ readonly projectId: pulumi.Output<string>;
64
+ /**
65
+ * The project role to assign to the access group. Must be either `ADMIN`, `PROJECT_DEVELOPER`, or `PROJECT_VIEWER`.
66
+ */
67
+ readonly role: pulumi.Output<string>;
68
+ /**
69
+ * The ID of the team the access group project should exist under. Required when configuring a team resource if a default team has not been set in the provider.
70
+ */
71
+ readonly teamId: pulumi.Output<string>;
72
+ /**
73
+ * Create a AccessGroupProject resource with the given unique name, arguments, and options.
74
+ *
75
+ * @param name The _unique_ name of the resource.
76
+ * @param args The arguments to use to populate this resource's properties.
77
+ * @param opts A bag of options that control this resource's behavior.
78
+ */
79
+ constructor(name: string, args: AccessGroupProjectArgs, opts?: pulumi.CustomResourceOptions);
80
+ }
81
+ /**
82
+ * Input properties used for looking up and filtering AccessGroupProject resources.
83
+ */
84
+ export interface AccessGroupProjectState {
85
+ /**
86
+ * The ID of the Access Group.
87
+ */
88
+ accessGroupId?: pulumi.Input<string>;
89
+ /**
90
+ * The Project ID to assign to the access group.
91
+ */
92
+ projectId?: pulumi.Input<string>;
93
+ /**
94
+ * The project role to assign to the access group. Must be either `ADMIN`, `PROJECT_DEVELOPER`, or `PROJECT_VIEWER`.
95
+ */
96
+ role?: pulumi.Input<string>;
97
+ /**
98
+ * The ID of the team the access group project should exist under. Required when configuring a team resource if a default team has not been set in the provider.
99
+ */
100
+ teamId?: pulumi.Input<string>;
101
+ }
102
+ /**
103
+ * The set of arguments for constructing a AccessGroupProject resource.
104
+ */
105
+ export interface AccessGroupProjectArgs {
106
+ /**
107
+ * The ID of the Access Group.
108
+ */
109
+ accessGroupId: pulumi.Input<string>;
110
+ /**
111
+ * The Project ID to assign to the access group.
112
+ */
113
+ projectId: pulumi.Input<string>;
114
+ /**
115
+ * The project role to assign to the access group. Must be either `ADMIN`, `PROJECT_DEVELOPER`, or `PROJECT_VIEWER`.
116
+ */
117
+ role: pulumi.Input<string>;
118
+ /**
119
+ * The ID of the team the access group project should exist under. Required when configuring a team resource if a default team has not been set in the provider.
120
+ */
121
+ teamId?: pulumi.Input<string>;
122
+ }
@@ -0,0 +1,102 @@
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.AccessGroupProject = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides an Access Group Project Resource.
10
+ *
11
+ * An Access Group Project resource defines the relationship between a `vercel.AccessGroup` and a `vercel.Project`.
12
+ *
13
+ * For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/accounts/team-members-and-roles/access-groups).
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as vercel from "@pulumiverse/vercel";
20
+ *
21
+ * const exampleProject = new vercel.Project("exampleProject", {});
22
+ * const exampleAccessGroup = new vercel.AccessGroup("exampleAccessGroup", {});
23
+ * const exampleAccessGroupProject = new vercel.AccessGroupProject("exampleAccessGroupProject", {
24
+ * projectId: exampleProject.id,
25
+ * accessGroupId: exampleAccessGroup.id,
26
+ * role: "ADMIN",
27
+ * });
28
+ * ```
29
+ *
30
+ * ## Import
31
+ *
32
+ * If importing into a personal account, or with a team configured on
33
+ *
34
+ * the provider, use the access_group_id and project_id.
35
+ *
36
+ * ```sh
37
+ * $ pulumi import vercel:index/accessGroupProject:AccessGroupProject example ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
38
+ * ```
39
+ *
40
+ * If importing to a team, use the team_id, access_group_id and project_id.
41
+ *
42
+ * ```sh
43
+ * $ pulumi import vercel:index/accessGroupProject:AccessGroupProject example team_xxxxxxxxxxxxxxxxxxxxxxxx/ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
44
+ * ```
45
+ */
46
+ class AccessGroupProject extends pulumi.CustomResource {
47
+ /**
48
+ * Get an existing AccessGroupProject resource's state with the given name, ID, and optional extra
49
+ * properties used to qualify the lookup.
50
+ *
51
+ * @param name The _unique_ name of the resulting resource.
52
+ * @param id The _unique_ provider ID of the resource to lookup.
53
+ * @param state Any extra arguments used during the lookup.
54
+ * @param opts Optional settings to control the behavior of the CustomResource.
55
+ */
56
+ static get(name, id, state, opts) {
57
+ return new AccessGroupProject(name, state, Object.assign(Object.assign({}, opts), { id: id }));
58
+ }
59
+ /**
60
+ * Returns true if the given object is an instance of AccessGroupProject. This is designed to work even
61
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
62
+ */
63
+ static isInstance(obj) {
64
+ if (obj === undefined || obj === null) {
65
+ return false;
66
+ }
67
+ return obj['__pulumiType'] === AccessGroupProject.__pulumiType;
68
+ }
69
+ constructor(name, argsOrState, opts) {
70
+ let resourceInputs = {};
71
+ opts = opts || {};
72
+ if (opts.id) {
73
+ const state = argsOrState;
74
+ resourceInputs["accessGroupId"] = state ? state.accessGroupId : undefined;
75
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
76
+ resourceInputs["role"] = state ? state.role : undefined;
77
+ resourceInputs["teamId"] = state ? state.teamId : undefined;
78
+ }
79
+ else {
80
+ const args = argsOrState;
81
+ if ((!args || args.accessGroupId === undefined) && !opts.urn) {
82
+ throw new Error("Missing required property 'accessGroupId'");
83
+ }
84
+ if ((!args || args.projectId === undefined) && !opts.urn) {
85
+ throw new Error("Missing required property 'projectId'");
86
+ }
87
+ if ((!args || args.role === undefined) && !opts.urn) {
88
+ throw new Error("Missing required property 'role'");
89
+ }
90
+ resourceInputs["accessGroupId"] = args ? args.accessGroupId : undefined;
91
+ resourceInputs["projectId"] = args ? args.projectId : undefined;
92
+ resourceInputs["role"] = args ? args.role : undefined;
93
+ resourceInputs["teamId"] = args ? args.teamId : undefined;
94
+ }
95
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
96
+ super(AccessGroupProject.__pulumiType, name, resourceInputs, opts);
97
+ }
98
+ }
99
+ exports.AccessGroupProject = AccessGroupProject;
100
+ /** @internal */
101
+ AccessGroupProject.__pulumiType = 'vercel:index/accessGroupProject:AccessGroupProject';
102
+ //# sourceMappingURL=accessGroupProject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accessGroupProject.js","sourceRoot":"","sources":["../accessGroupProject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OA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K,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAhFL,gDAiFC;AAnEG,gBAAgB;AACO,+BAAY,GAAG,oDAAoD,CAAC"}
@@ -0,0 +1,150 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Environments help manage the deployment lifecycle on the Vercel platform.
6
+ *
7
+ * By default, all teams use three environments when developing their project: Production, Preview, and Development. However, teams can also create custom environments to suit their needs. To learn more about the limits for each plan, see limits.
8
+ *
9
+ * Custom environments allow you to configure customized, pre-production environments for your project, such as staging or QA, with branch rules that will automatically deploy your branch when the branch name matches the rule. With custom environments you can also attach a domain to your environment, set environment variables, or import environment variables from another environment.
10
+ *
11
+ * Custom environments are designed as pre-production environments intended for long-running use. This contrasts with regular preview environments, which are designed for creating ephemeral, short-lived deployments.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as vercel from "@pulumiverse/vercel";
18
+ *
19
+ * const exampleProject = new vercel.Project("exampleProject", {});
20
+ * const exampleCustomEnvironment = new vercel.CustomEnvironment("exampleCustomEnvironment", {
21
+ * projectId: exampleProject.id,
22
+ * description: "A description of the custom environment",
23
+ * branchTracking: {
24
+ * pattern: "staging-",
25
+ * type: "startsWith",
26
+ * },
27
+ * });
28
+ * ```
29
+ *
30
+ * ## Import
31
+ *
32
+ * If importing into a personal account, or with a team configured on
33
+ *
34
+ * the provider, simply use the project_id and custom environment name.
35
+ *
36
+ * - project_id can be found in the project `settings` tab in the Vercel UI.
37
+ *
38
+ * ```sh
39
+ * $ pulumi import vercel:index/customEnvironment:CustomEnvironment example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/example-custom-env
40
+ * ```
41
+ *
42
+ * Alternatively, you can import via the team_id, project_id and environment variable id.
43
+ *
44
+ * - team_id can be found in the team `settings` tab in the Vercel UI.
45
+ *
46
+ * - project_id can be found in the project `settings` tab in the Vercel UI.
47
+ *
48
+ * #
49
+ *
50
+ * Note also, that the value field for sensitive environment variables will be imported as `null`.
51
+ *
52
+ * ```sh
53
+ * $ pulumi import vercel:index/customEnvironment:CustomEnvironment example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/example-custom-env
54
+ * ```
55
+ */
56
+ export declare class CustomEnvironment extends pulumi.CustomResource {
57
+ /**
58
+ * Get an existing CustomEnvironment resource's state with the given name, ID, and optional extra
59
+ * properties used to qualify the lookup.
60
+ *
61
+ * @param name The _unique_ name of the resulting resource.
62
+ * @param id The _unique_ provider ID of the resource to lookup.
63
+ * @param state Any extra arguments used during the lookup.
64
+ * @param opts Optional settings to control the behavior of the CustomResource.
65
+ */
66
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CustomEnvironmentState, opts?: pulumi.CustomResourceOptions): CustomEnvironment;
67
+ /**
68
+ * Returns true if the given object is an instance of CustomEnvironment. This is designed to work even
69
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
70
+ */
71
+ static isInstance(obj: any): obj is CustomEnvironment;
72
+ /**
73
+ * The branch tracking configuration for the environment. When enabled, each qualifying merge will generate a deployment.
74
+ */
75
+ readonly branchTracking: pulumi.Output<outputs.CustomEnvironmentBranchTracking>;
76
+ /**
77
+ * A description of what the environment is.
78
+ */
79
+ readonly description: pulumi.Output<string>;
80
+ /**
81
+ * The name of the environment.
82
+ */
83
+ readonly name: pulumi.Output<string>;
84
+ /**
85
+ * The ID of the existing Vercel Project.
86
+ */
87
+ readonly projectId: pulumi.Output<string>;
88
+ /**
89
+ * 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.
90
+ */
91
+ readonly teamId: pulumi.Output<string>;
92
+ /**
93
+ * Create a CustomEnvironment resource with the given unique name, arguments, and options.
94
+ *
95
+ * @param name The _unique_ name of the resource.
96
+ * @param args The arguments to use to populate this resource's properties.
97
+ * @param opts A bag of options that control this resource's behavior.
98
+ */
99
+ constructor(name: string, args: CustomEnvironmentArgs, opts?: pulumi.CustomResourceOptions);
100
+ }
101
+ /**
102
+ * Input properties used for looking up and filtering CustomEnvironment resources.
103
+ */
104
+ export interface CustomEnvironmentState {
105
+ /**
106
+ * The branch tracking configuration for the environment. When enabled, each qualifying merge will generate a deployment.
107
+ */
108
+ branchTracking?: pulumi.Input<inputs.CustomEnvironmentBranchTracking>;
109
+ /**
110
+ * A description of what the environment is.
111
+ */
112
+ description?: pulumi.Input<string>;
113
+ /**
114
+ * The name of the environment.
115
+ */
116
+ name?: pulumi.Input<string>;
117
+ /**
118
+ * The ID of the existing Vercel Project.
119
+ */
120
+ projectId?: pulumi.Input<string>;
121
+ /**
122
+ * 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.
123
+ */
124
+ teamId?: pulumi.Input<string>;
125
+ }
126
+ /**
127
+ * The set of arguments for constructing a CustomEnvironment resource.
128
+ */
129
+ export interface CustomEnvironmentArgs {
130
+ /**
131
+ * The branch tracking configuration for the environment. When enabled, each qualifying merge will generate a deployment.
132
+ */
133
+ branchTracking?: pulumi.Input<inputs.CustomEnvironmentBranchTracking>;
134
+ /**
135
+ * A description of what the environment is.
136
+ */
137
+ description?: pulumi.Input<string>;
138
+ /**
139
+ * The name of the environment.
140
+ */
141
+ name?: pulumi.Input<string>;
142
+ /**
143
+ * The ID of the existing Vercel Project.
144
+ */
145
+ projectId: pulumi.Input<string>;
146
+ /**
147
+ * 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.
148
+ */
149
+ teamId?: pulumi.Input<string>;
150
+ }
@@ -0,0 +1,112 @@
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.CustomEnvironment = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Environments help manage the deployment lifecycle on the Vercel platform.
10
+ *
11
+ * By default, all teams use three environments when developing their project: Production, Preview, and Development. However, teams can also create custom environments to suit their needs. To learn more about the limits for each plan, see limits.
12
+ *
13
+ * Custom environments allow you to configure customized, pre-production environments for your project, such as staging or QA, with branch rules that will automatically deploy your branch when the branch name matches the rule. With custom environments you can also attach a domain to your environment, set environment variables, or import environment variables from another environment.
14
+ *
15
+ * Custom environments are designed as pre-production environments intended for long-running use. This contrasts with regular preview environments, which are designed for creating ephemeral, short-lived deployments.
16
+ *
17
+ * ## Example Usage
18
+ *
19
+ * ```typescript
20
+ * import * as pulumi from "@pulumi/pulumi";
21
+ * import * as vercel from "@pulumiverse/vercel";
22
+ *
23
+ * const exampleProject = new vercel.Project("exampleProject", {});
24
+ * const exampleCustomEnvironment = new vercel.CustomEnvironment("exampleCustomEnvironment", {
25
+ * projectId: exampleProject.id,
26
+ * description: "A description of the custom environment",
27
+ * branchTracking: {
28
+ * pattern: "staging-",
29
+ * type: "startsWith",
30
+ * },
31
+ * });
32
+ * ```
33
+ *
34
+ * ## Import
35
+ *
36
+ * If importing into a personal account, or with a team configured on
37
+ *
38
+ * the provider, simply use the project_id and custom environment name.
39
+ *
40
+ * - project_id can be found in the project `settings` tab in the Vercel UI.
41
+ *
42
+ * ```sh
43
+ * $ pulumi import vercel:index/customEnvironment:CustomEnvironment example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/example-custom-env
44
+ * ```
45
+ *
46
+ * Alternatively, you can import via the team_id, project_id and environment variable id.
47
+ *
48
+ * - team_id can be found in the team `settings` tab in the Vercel UI.
49
+ *
50
+ * - project_id can be found in the project `settings` tab in the Vercel UI.
51
+ *
52
+ * #
53
+ *
54
+ * Note also, that the value field for sensitive environment variables will be imported as `null`.
55
+ *
56
+ * ```sh
57
+ * $ pulumi import vercel:index/customEnvironment:CustomEnvironment example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/example-custom-env
58
+ * ```
59
+ */
60
+ class CustomEnvironment extends pulumi.CustomResource {
61
+ /**
62
+ * Get an existing CustomEnvironment resource's state with the given name, ID, and optional extra
63
+ * properties used to qualify the lookup.
64
+ *
65
+ * @param name The _unique_ name of the resulting resource.
66
+ * @param id The _unique_ provider ID of the resource to lookup.
67
+ * @param state Any extra arguments used during the lookup.
68
+ * @param opts Optional settings to control the behavior of the CustomResource.
69
+ */
70
+ static get(name, id, state, opts) {
71
+ return new CustomEnvironment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
72
+ }
73
+ /**
74
+ * Returns true if the given object is an instance of CustomEnvironment. This is designed to work even
75
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
76
+ */
77
+ static isInstance(obj) {
78
+ if (obj === undefined || obj === null) {
79
+ return false;
80
+ }
81
+ return obj['__pulumiType'] === CustomEnvironment.__pulumiType;
82
+ }
83
+ constructor(name, argsOrState, opts) {
84
+ let resourceInputs = {};
85
+ opts = opts || {};
86
+ if (opts.id) {
87
+ const state = argsOrState;
88
+ resourceInputs["branchTracking"] = state ? state.branchTracking : undefined;
89
+ resourceInputs["description"] = state ? state.description : undefined;
90
+ resourceInputs["name"] = state ? state.name : undefined;
91
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
92
+ resourceInputs["teamId"] = state ? state.teamId : undefined;
93
+ }
94
+ else {
95
+ const args = argsOrState;
96
+ if ((!args || args.projectId === undefined) && !opts.urn) {
97
+ throw new Error("Missing required property 'projectId'");
98
+ }
99
+ resourceInputs["branchTracking"] = args ? args.branchTracking : undefined;
100
+ resourceInputs["description"] = args ? args.description : undefined;
101
+ resourceInputs["name"] = args ? args.name : undefined;
102
+ resourceInputs["projectId"] = args ? args.projectId : undefined;
103
+ resourceInputs["teamId"] = args ? args.teamId : undefined;
104
+ }
105
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
106
+ super(CustomEnvironment.__pulumiType, name, resourceInputs, opts);
107
+ }
108
+ }
109
+ exports.CustomEnvironment = CustomEnvironment;
110
+ /** @internal */
111
+ CustomEnvironment.__pulumiType = 'vercel:index/customEnvironment:CustomEnvironment';
112
+ //# sourceMappingURL=customEnvironment.js.map