@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
@@ -22,6 +22,7 @@ import * as pulumi from "@pulumi/pulumi";
22
22
  * key: "EXAMPLE",
23
23
  * value: "some_value",
24
24
  * targets: ["production"],
25
+ * comment: "an example shared variable",
25
26
  * projectIds: [exampleProject.id],
26
27
  * });
27
28
  * ```
@@ -58,6 +59,10 @@ export declare class SharedEnvironmentVariable extends pulumi.CustomResource {
58
59
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
59
60
  */
60
61
  static isInstance(obj: any): obj is SharedEnvironmentVariable;
62
+ /**
63
+ * A comment explaining what the environment variable is for.
64
+ */
65
+ readonly comment: pulumi.Output<string>;
61
66
  /**
62
67
  * The name of the Environment Variable.
63
68
  */
@@ -95,6 +100,10 @@ export declare class SharedEnvironmentVariable extends pulumi.CustomResource {
95
100
  * Input properties used for looking up and filtering SharedEnvironmentVariable resources.
96
101
  */
97
102
  export interface SharedEnvironmentVariableState {
103
+ /**
104
+ * A comment explaining what the environment variable is for.
105
+ */
106
+ comment?: pulumi.Input<string>;
98
107
  /**
99
108
  * The name of the Environment Variable.
100
109
  */
@@ -124,6 +133,10 @@ export interface SharedEnvironmentVariableState {
124
133
  * The set of arguments for constructing a SharedEnvironmentVariable resource.
125
134
  */
126
135
  export interface SharedEnvironmentVariableArgs {
136
+ /**
137
+ * A comment explaining what the environment variable is for.
138
+ */
139
+ comment?: pulumi.Input<string>;
127
140
  /**
128
141
  * The name of the Environment Variable.
129
142
  */
@@ -28,6 +28,7 @@ const utilities = require("./utilities");
28
28
  * key: "EXAMPLE",
29
29
  * value: "some_value",
30
30
  * targets: ["production"],
31
+ * comment: "an example shared variable",
31
32
  * projectIds: [exampleProject.id],
32
33
  * });
33
34
  * ```
@@ -76,6 +77,7 @@ class SharedEnvironmentVariable extends pulumi.CustomResource {
76
77
  opts = opts || {};
77
78
  if (opts.id) {
78
79
  const state = argsOrState;
80
+ resourceInputs["comment"] = state ? state.comment : undefined;
79
81
  resourceInputs["key"] = state ? state.key : undefined;
80
82
  resourceInputs["projectIds"] = state ? state.projectIds : undefined;
81
83
  resourceInputs["sensitive"] = state ? state.sensitive : undefined;
@@ -97,6 +99,7 @@ class SharedEnvironmentVariable extends pulumi.CustomResource {
97
99
  if ((!args || args.value === undefined) && !opts.urn) {
98
100
  throw new Error("Missing required property 'value'");
99
101
  }
102
+ resourceInputs["comment"] = args ? args.comment : undefined;
100
103
  resourceInputs["key"] = args ? args.key : undefined;
101
104
  resourceInputs["projectIds"] = args ? args.projectIds : undefined;
102
105
  resourceInputs["sensitive"] = args ? args.sensitive : undefined;
@@ -1 +1 @@
1
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AC,SAAS,CAAC;YAChE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,OAAO,CAAC,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;SACjF;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,yBAAyB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;;AAvGL,8DAwGC;AA1FG,gBAAgB;AACO,sCAAY,GAAG,kEAAkE,CAAC"}
@@ -0,0 +1,211 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Manages the configuration of an existing Vercel Team.
6
+ */
7
+ export declare class TeamConfig extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing TeamConfig resource's state with the given name, ID, and optional extra
10
+ * properties used to qualify the lookup.
11
+ *
12
+ * @param name The _unique_ name of the resulting resource.
13
+ * @param id The _unique_ provider ID of the resource to lookup.
14
+ * @param state Any extra arguments used during the lookup.
15
+ * @param opts Optional settings to control the behavior of the CustomResource.
16
+ */
17
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TeamConfigState, opts?: pulumi.CustomResourceOptions): TeamConfig;
18
+ /**
19
+ * Returns true if the given object is an instance of TeamConfig. This is designed to work even
20
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
21
+ */
22
+ static isInstance(obj: any): obj is TeamConfig;
23
+ /**
24
+ * The `avatar` should be a the 'file' attribute from a vercel.getFile data source.
25
+ */
26
+ readonly avatar: pulumi.Output<{
27
+ [key: string]: string;
28
+ } | undefined>;
29
+ /**
30
+ * A description of the team.
31
+ */
32
+ readonly description: pulumi.Output<string>;
33
+ /**
34
+ * Hostname that'll be matched with emails on sign-up to automatically join the Team.
35
+ */
36
+ readonly emailDomain: pulumi.Output<string>;
37
+ /**
38
+ * Enables the Vercel Toolbar on your preview deployments: one of on, off or default.
39
+ */
40
+ readonly enablePreviewFeedback: pulumi.Output<string>;
41
+ /**
42
+ * Enables the Vercel Toolbar on your production deployments: one of on, off or default.
43
+ */
44
+ readonly enableProductionFeedback: pulumi.Output<string>;
45
+ /**
46
+ * Indicates if ip addresses should be accessible in o11y tooling.
47
+ */
48
+ readonly hideIpAddresses: pulumi.Output<boolean>;
49
+ /**
50
+ * Indicates if ip addresses should be accessible in log drains.
51
+ */
52
+ readonly hideIpAddressesInLogDrains: pulumi.Output<boolean>;
53
+ /**
54
+ * A code that can be used to join this team. Only visible to Team owners.
55
+ */
56
+ readonly inviteCode: pulumi.Output<string>;
57
+ /**
58
+ * The name of the team.
59
+ */
60
+ readonly name: pulumi.Output<string>;
61
+ /**
62
+ * The hostname that is used as the preview deployment suffix.
63
+ */
64
+ readonly previewDeploymentSuffix: pulumi.Output<string>;
65
+ /**
66
+ * Configuration for Remote Caching.
67
+ */
68
+ readonly remoteCaching: pulumi.Output<outputs.TeamConfigRemoteCaching>;
69
+ /**
70
+ * Configuration for SAML authentication.
71
+ */
72
+ readonly saml: pulumi.Output<outputs.TeamConfigSaml>;
73
+ /**
74
+ * Ensures that all environment variables created by members of this team will be created as Sensitive Environment Variables which can only be decrypted by Vercel's deployment system.: one of on, off or default.
75
+ */
76
+ readonly sensitiveEnvironmentVariablePolicy: pulumi.Output<string>;
77
+ /**
78
+ * The slug of the team. Will be used in the URL of the team's dashboard.
79
+ */
80
+ readonly slug: pulumi.Output<string>;
81
+ /**
82
+ * Create a TeamConfig resource with the given unique name, arguments, and options.
83
+ *
84
+ * @param name The _unique_ name of the resource.
85
+ * @param args The arguments to use to populate this resource's properties.
86
+ * @param opts A bag of options that control this resource's behavior.
87
+ */
88
+ constructor(name: string, args?: TeamConfigArgs, opts?: pulumi.CustomResourceOptions);
89
+ }
90
+ /**
91
+ * Input properties used for looking up and filtering TeamConfig resources.
92
+ */
93
+ export interface TeamConfigState {
94
+ /**
95
+ * The `avatar` should be a the 'file' attribute from a vercel.getFile data source.
96
+ */
97
+ avatar?: pulumi.Input<{
98
+ [key: string]: pulumi.Input<string>;
99
+ }>;
100
+ /**
101
+ * A description of the team.
102
+ */
103
+ description?: pulumi.Input<string>;
104
+ /**
105
+ * Hostname that'll be matched with emails on sign-up to automatically join the Team.
106
+ */
107
+ emailDomain?: pulumi.Input<string>;
108
+ /**
109
+ * Enables the Vercel Toolbar on your preview deployments: one of on, off or default.
110
+ */
111
+ enablePreviewFeedback?: pulumi.Input<string>;
112
+ /**
113
+ * Enables the Vercel Toolbar on your production deployments: one of on, off or default.
114
+ */
115
+ enableProductionFeedback?: pulumi.Input<string>;
116
+ /**
117
+ * Indicates if ip addresses should be accessible in o11y tooling.
118
+ */
119
+ hideIpAddresses?: pulumi.Input<boolean>;
120
+ /**
121
+ * Indicates if ip addresses should be accessible in log drains.
122
+ */
123
+ hideIpAddressesInLogDrains?: pulumi.Input<boolean>;
124
+ /**
125
+ * A code that can be used to join this team. Only visible to Team owners.
126
+ */
127
+ inviteCode?: pulumi.Input<string>;
128
+ /**
129
+ * The name of the team.
130
+ */
131
+ name?: pulumi.Input<string>;
132
+ /**
133
+ * The hostname that is used as the preview deployment suffix.
134
+ */
135
+ previewDeploymentSuffix?: pulumi.Input<string>;
136
+ /**
137
+ * Configuration for Remote Caching.
138
+ */
139
+ remoteCaching?: pulumi.Input<inputs.TeamConfigRemoteCaching>;
140
+ /**
141
+ * Configuration for SAML authentication.
142
+ */
143
+ saml?: pulumi.Input<inputs.TeamConfigSaml>;
144
+ /**
145
+ * Ensures that all environment variables created by members of this team will be created as Sensitive Environment Variables which can only be decrypted by Vercel's deployment system.: one of on, off or default.
146
+ */
147
+ sensitiveEnvironmentVariablePolicy?: pulumi.Input<string>;
148
+ /**
149
+ * The slug of the team. Will be used in the URL of the team's dashboard.
150
+ */
151
+ slug?: pulumi.Input<string>;
152
+ }
153
+ /**
154
+ * The set of arguments for constructing a TeamConfig resource.
155
+ */
156
+ export interface TeamConfigArgs {
157
+ /**
158
+ * The `avatar` should be a the 'file' attribute from a vercel.getFile data source.
159
+ */
160
+ avatar?: pulumi.Input<{
161
+ [key: string]: pulumi.Input<string>;
162
+ }>;
163
+ /**
164
+ * A description of the team.
165
+ */
166
+ description?: pulumi.Input<string>;
167
+ /**
168
+ * Hostname that'll be matched with emails on sign-up to automatically join the Team.
169
+ */
170
+ emailDomain?: pulumi.Input<string>;
171
+ /**
172
+ * Enables the Vercel Toolbar on your preview deployments: one of on, off or default.
173
+ */
174
+ enablePreviewFeedback?: pulumi.Input<string>;
175
+ /**
176
+ * Enables the Vercel Toolbar on your production deployments: one of on, off or default.
177
+ */
178
+ enableProductionFeedback?: pulumi.Input<string>;
179
+ /**
180
+ * Indicates if ip addresses should be accessible in o11y tooling.
181
+ */
182
+ hideIpAddresses?: pulumi.Input<boolean>;
183
+ /**
184
+ * Indicates if ip addresses should be accessible in log drains.
185
+ */
186
+ hideIpAddressesInLogDrains?: pulumi.Input<boolean>;
187
+ /**
188
+ * The name of the team.
189
+ */
190
+ name?: pulumi.Input<string>;
191
+ /**
192
+ * The hostname that is used as the preview deployment suffix.
193
+ */
194
+ previewDeploymentSuffix?: pulumi.Input<string>;
195
+ /**
196
+ * Configuration for Remote Caching.
197
+ */
198
+ remoteCaching?: pulumi.Input<inputs.TeamConfigRemoteCaching>;
199
+ /**
200
+ * Configuration for SAML authentication.
201
+ */
202
+ saml?: pulumi.Input<inputs.TeamConfigSaml>;
203
+ /**
204
+ * Ensures that all environment variables created by members of this team will be created as Sensitive Environment Variables which can only be decrypted by Vercel's deployment system.: one of on, off or default.
205
+ */
206
+ sensitiveEnvironmentVariablePolicy?: pulumi.Input<string>;
207
+ /**
208
+ * The slug of the team. Will be used in the URL of the team's dashboard.
209
+ */
210
+ slug?: pulumi.Input<string>;
211
+ }
package/teamConfig.js ADDED
@@ -0,0 +1,78 @@
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.TeamConfig = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Manages the configuration of an existing Vercel Team.
10
+ */
11
+ class TeamConfig extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing TeamConfig resource's state with the given name, ID, and optional extra
14
+ * properties used to qualify the lookup.
15
+ *
16
+ * @param name The _unique_ name of the resulting resource.
17
+ * @param id The _unique_ provider ID of the resource to lookup.
18
+ * @param state Any extra arguments used during the lookup.
19
+ * @param opts Optional settings to control the behavior of the CustomResource.
20
+ */
21
+ static get(name, id, state, opts) {
22
+ return new TeamConfig(name, state, Object.assign(Object.assign({}, opts), { id: id }));
23
+ }
24
+ /**
25
+ * Returns true if the given object is an instance of TeamConfig. This is designed to work even
26
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
27
+ */
28
+ static isInstance(obj) {
29
+ if (obj === undefined || obj === null) {
30
+ return false;
31
+ }
32
+ return obj['__pulumiType'] === TeamConfig.__pulumiType;
33
+ }
34
+ constructor(name, argsOrState, opts) {
35
+ let resourceInputs = {};
36
+ opts = opts || {};
37
+ if (opts.id) {
38
+ const state = argsOrState;
39
+ resourceInputs["avatar"] = state ? state.avatar : undefined;
40
+ resourceInputs["description"] = state ? state.description : undefined;
41
+ resourceInputs["emailDomain"] = state ? state.emailDomain : undefined;
42
+ resourceInputs["enablePreviewFeedback"] = state ? state.enablePreviewFeedback : undefined;
43
+ resourceInputs["enableProductionFeedback"] = state ? state.enableProductionFeedback : undefined;
44
+ resourceInputs["hideIpAddresses"] = state ? state.hideIpAddresses : undefined;
45
+ resourceInputs["hideIpAddressesInLogDrains"] = state ? state.hideIpAddressesInLogDrains : undefined;
46
+ resourceInputs["inviteCode"] = state ? state.inviteCode : undefined;
47
+ resourceInputs["name"] = state ? state.name : undefined;
48
+ resourceInputs["previewDeploymentSuffix"] = state ? state.previewDeploymentSuffix : undefined;
49
+ resourceInputs["remoteCaching"] = state ? state.remoteCaching : undefined;
50
+ resourceInputs["saml"] = state ? state.saml : undefined;
51
+ resourceInputs["sensitiveEnvironmentVariablePolicy"] = state ? state.sensitiveEnvironmentVariablePolicy : undefined;
52
+ resourceInputs["slug"] = state ? state.slug : undefined;
53
+ }
54
+ else {
55
+ const args = argsOrState;
56
+ resourceInputs["avatar"] = args ? args.avatar : undefined;
57
+ resourceInputs["description"] = args ? args.description : undefined;
58
+ resourceInputs["emailDomain"] = args ? args.emailDomain : undefined;
59
+ resourceInputs["enablePreviewFeedback"] = args ? args.enablePreviewFeedback : undefined;
60
+ resourceInputs["enableProductionFeedback"] = args ? args.enableProductionFeedback : undefined;
61
+ resourceInputs["hideIpAddresses"] = args ? args.hideIpAddresses : undefined;
62
+ resourceInputs["hideIpAddressesInLogDrains"] = args ? args.hideIpAddressesInLogDrains : undefined;
63
+ resourceInputs["name"] = args ? args.name : undefined;
64
+ resourceInputs["previewDeploymentSuffix"] = args ? args.previewDeploymentSuffix : undefined;
65
+ resourceInputs["remoteCaching"] = args ? args.remoteCaching : undefined;
66
+ resourceInputs["saml"] = args ? args.saml : undefined;
67
+ resourceInputs["sensitiveEnvironmentVariablePolicy"] = args ? args.sensitiveEnvironmentVariablePolicy : undefined;
68
+ resourceInputs["slug"] = args ? args.slug : undefined;
69
+ resourceInputs["inviteCode"] = undefined /*out*/;
70
+ }
71
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
72
+ super(TeamConfig.__pulumiType, name, resourceInputs, opts);
73
+ }
74
+ }
75
+ exports.TeamConfig = TeamConfig;
76
+ /** @internal */
77
+ TeamConfig.__pulumiType = 'vercel:index/teamConfig:TeamConfig';
78
+ //# sourceMappingURL=teamConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teamConfig.js","sourceRoot":"","sources":["../teamConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAmED,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAA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C,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5F,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,oCAAoC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC,CAAC,SAAS,CAAC;YAClH,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAnIL,gCAoIC;AAtHG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
@@ -0,0 +1,122 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Provider a resource for managing a team member.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as vercel from "@pulumiverse/vercel";
12
+ *
13
+ * const example = new vercel.TeamMember("example", {
14
+ * role: "MEMBER",
15
+ * teamId: "team_xxxxxxxxxxxxxxxxxxxxxxxx",
16
+ * userId: "uuuuuuuuuuuuuuuuuuuuuuuuuu",
17
+ * });
18
+ * ```
19
+ *
20
+ * ## Import
21
+ *
22
+ * To import, use the team_id and user_id.
23
+ *
24
+ * ```sh
25
+ * $ pulumi import vercel:index/teamMember:TeamMember example team_xxxxxxxxxxxxxxxxxxxxxxxx/uuuuuuuuuuuuuuuuuuuuuuuuuu
26
+ * ```
27
+ */
28
+ export declare class TeamMember extends pulumi.CustomResource {
29
+ /**
30
+ * Get an existing TeamMember resource's state with the given name, ID, and optional extra
31
+ * properties used to qualify the lookup.
32
+ *
33
+ * @param name The _unique_ name of the resulting resource.
34
+ * @param id The _unique_ provider ID of the resource to lookup.
35
+ * @param state Any extra arguments used during the lookup.
36
+ * @param opts Optional settings to control the behavior of the CustomResource.
37
+ */
38
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TeamMemberState, opts?: pulumi.CustomResourceOptions): TeamMember;
39
+ /**
40
+ * Returns true if the given object is an instance of TeamMember. This is designed to work even
41
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
42
+ */
43
+ static isInstance(obj: any): obj is TeamMember;
44
+ /**
45
+ * If access groups are enabled on the team, and the user is a CONTRIBUTOR, `projects`, `accessGroups` or both must be specified. A set of access groups IDs that the user should be granted access to.
46
+ */
47
+ readonly accessGroups: pulumi.Output<string[]>;
48
+ /**
49
+ * If access groups are enabled on the team, and the user is a CONTRIBUTOR, `projects`, `accessGroups` or both must be specified. A set of projects that the user should be granted access to, along with their role in each project.
50
+ */
51
+ readonly projects: pulumi.Output<outputs.TeamMemberProject[]>;
52
+ /**
53
+ * The role that the user should have in the project. One of 'MEMBER', 'OWNER', 'VIEWER', 'DEVELOPER', 'BILLING' or 'CONTRIBUTOR'. Depending on your Team's plan, some of these roles may be unavailable.
54
+ */
55
+ readonly role: pulumi.Output<string>;
56
+ /**
57
+ * The ID of the existing Vercel Team.
58
+ */
59
+ readonly teamId: pulumi.Output<string>;
60
+ /**
61
+ * The ID of the user to add to the team.
62
+ */
63
+ readonly userId: pulumi.Output<string>;
64
+ /**
65
+ * Create a TeamMember resource with the given unique name, arguments, and options.
66
+ *
67
+ * @param name The _unique_ name of the resource.
68
+ * @param args The arguments to use to populate this resource's properties.
69
+ * @param opts A bag of options that control this resource's behavior.
70
+ */
71
+ constructor(name: string, args: TeamMemberArgs, opts?: pulumi.CustomResourceOptions);
72
+ }
73
+ /**
74
+ * Input properties used for looking up and filtering TeamMember resources.
75
+ */
76
+ export interface TeamMemberState {
77
+ /**
78
+ * If access groups are enabled on the team, and the user is a CONTRIBUTOR, `projects`, `accessGroups` or both must be specified. A set of access groups IDs that the user should be granted access to.
79
+ */
80
+ accessGroups?: pulumi.Input<pulumi.Input<string>[]>;
81
+ /**
82
+ * If access groups are enabled on the team, and the user is a CONTRIBUTOR, `projects`, `accessGroups` or both must be specified. A set of projects that the user should be granted access to, along with their role in each project.
83
+ */
84
+ projects?: pulumi.Input<pulumi.Input<inputs.TeamMemberProject>[]>;
85
+ /**
86
+ * The role that the user should have in the project. One of 'MEMBER', 'OWNER', 'VIEWER', 'DEVELOPER', 'BILLING' or 'CONTRIBUTOR'. Depending on your Team's plan, some of these roles may be unavailable.
87
+ */
88
+ role?: pulumi.Input<string>;
89
+ /**
90
+ * The ID of the existing Vercel Team.
91
+ */
92
+ teamId?: pulumi.Input<string>;
93
+ /**
94
+ * The ID of the user to add to the team.
95
+ */
96
+ userId?: pulumi.Input<string>;
97
+ }
98
+ /**
99
+ * The set of arguments for constructing a TeamMember resource.
100
+ */
101
+ export interface TeamMemberArgs {
102
+ /**
103
+ * If access groups are enabled on the team, and the user is a CONTRIBUTOR, `projects`, `accessGroups` or both must be specified. A set of access groups IDs that the user should be granted access to.
104
+ */
105
+ accessGroups?: pulumi.Input<pulumi.Input<string>[]>;
106
+ /**
107
+ * If access groups are enabled on the team, and the user is a CONTRIBUTOR, `projects`, `accessGroups` or both must be specified. A set of projects that the user should be granted access to, along with their role in each project.
108
+ */
109
+ projects?: pulumi.Input<pulumi.Input<inputs.TeamMemberProject>[]>;
110
+ /**
111
+ * The role that the user should have in the project. One of 'MEMBER', 'OWNER', 'VIEWER', 'DEVELOPER', 'BILLING' or 'CONTRIBUTOR'. Depending on your Team's plan, some of these roles may be unavailable.
112
+ */
113
+ role: pulumi.Input<string>;
114
+ /**
115
+ * The ID of the existing Vercel Team.
116
+ */
117
+ teamId: pulumi.Input<string>;
118
+ /**
119
+ * The ID of the user to add to the team.
120
+ */
121
+ userId: pulumi.Input<string>;
122
+ }
package/teamMember.js ADDED
@@ -0,0 +1,90 @@
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.TeamMember = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provider a resource for managing a team member.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as vercel from "@pulumiverse/vercel";
16
+ *
17
+ * const example = new vercel.TeamMember("example", {
18
+ * role: "MEMBER",
19
+ * teamId: "team_xxxxxxxxxxxxxxxxxxxxxxxx",
20
+ * userId: "uuuuuuuuuuuuuuuuuuuuuuuuuu",
21
+ * });
22
+ * ```
23
+ *
24
+ * ## Import
25
+ *
26
+ * To import, use the team_id and user_id.
27
+ *
28
+ * ```sh
29
+ * $ pulumi import vercel:index/teamMember:TeamMember example team_xxxxxxxxxxxxxxxxxxxxxxxx/uuuuuuuuuuuuuuuuuuuuuuuuuu
30
+ * ```
31
+ */
32
+ class TeamMember extends pulumi.CustomResource {
33
+ /**
34
+ * Get an existing TeamMember resource's state with the given name, ID, and optional extra
35
+ * properties used to qualify the lookup.
36
+ *
37
+ * @param name The _unique_ name of the resulting resource.
38
+ * @param id The _unique_ provider ID of the resource to lookup.
39
+ * @param state Any extra arguments used during the lookup.
40
+ * @param opts Optional settings to control the behavior of the CustomResource.
41
+ */
42
+ static get(name, id, state, opts) {
43
+ return new TeamMember(name, state, Object.assign(Object.assign({}, opts), { id: id }));
44
+ }
45
+ /**
46
+ * Returns true if the given object is an instance of TeamMember. 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) {
50
+ if (obj === undefined || obj === null) {
51
+ return false;
52
+ }
53
+ return obj['__pulumiType'] === TeamMember.__pulumiType;
54
+ }
55
+ constructor(name, argsOrState, opts) {
56
+ let resourceInputs = {};
57
+ opts = opts || {};
58
+ if (opts.id) {
59
+ const state = argsOrState;
60
+ resourceInputs["accessGroups"] = state ? state.accessGroups : undefined;
61
+ resourceInputs["projects"] = state ? state.projects : undefined;
62
+ resourceInputs["role"] = state ? state.role : undefined;
63
+ resourceInputs["teamId"] = state ? state.teamId : undefined;
64
+ resourceInputs["userId"] = state ? state.userId : undefined;
65
+ }
66
+ else {
67
+ const args = argsOrState;
68
+ if ((!args || args.role === undefined) && !opts.urn) {
69
+ throw new Error("Missing required property 'role'");
70
+ }
71
+ if ((!args || args.teamId === undefined) && !opts.urn) {
72
+ throw new Error("Missing required property 'teamId'");
73
+ }
74
+ if ((!args || args.userId === undefined) && !opts.urn) {
75
+ throw new Error("Missing required property 'userId'");
76
+ }
77
+ resourceInputs["accessGroups"] = args ? args.accessGroups : undefined;
78
+ resourceInputs["projects"] = args ? args.projects : undefined;
79
+ resourceInputs["role"] = args ? args.role : undefined;
80
+ resourceInputs["teamId"] = args ? args.teamId : undefined;
81
+ resourceInputs["userId"] = args ? args.userId : undefined;
82
+ }
83
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
84
+ super(TeamMember.__pulumiType, name, resourceInputs, opts);
85
+ }
86
+ }
87
+ exports.TeamMember = TeamMember;
88
+ /** @internal */
89
+ TeamMember.__pulumiType = 'vercel:index/teamMember:TeamMember';
90
+ //# sourceMappingURL=teamMember.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"teamMember.js","sourceRoot":"","sources":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