@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.
- package/accessGroup.d.ts +63 -0
- package/accessGroup.js +51 -0
- package/accessGroup.js.map +1 -0
- package/accessGroupProject.d.ts +87 -0
- package/accessGroupProject.js +64 -0
- package/accessGroupProject.js.map +1 -0
- package/alias.d.ts +6 -8
- package/alias.js +0 -5
- package/alias.js.map +1 -1
- package/attackChallengeMode.d.ts +9 -36
- package/attackChallengeMode.js +0 -30
- package/attackChallengeMode.js.map +1 -1
- package/customEnvironment.d.ts +101 -0
- package/customEnvironment.js +60 -0
- package/customEnvironment.js.map +1 -0
- package/deployment.d.ts +34 -17
- package/deployment.js.map +1 -1
- package/dnsRecord.d.ts +30 -127
- package/dnsRecord.js +0 -97
- package/dnsRecord.js.map +1 -1
- package/edgeConfig.d.ts +6 -54
- package/edgeConfig.js +0 -51
- package/edgeConfig.js.map +1 -1
- package/edgeConfigItem.d.ts +87 -0
- package/edgeConfigItem.js +64 -0
- package/edgeConfigItem.js.map +1 -0
- package/edgeConfigSchema.d.ts +6 -28
- package/edgeConfigSchema.js +0 -25
- package/edgeConfigSchema.js.map +1 -1
- package/edgeConfigToken.d.ts +10 -62
- package/edgeConfigToken.js +0 -57
- package/edgeConfigToken.js.map +1 -1
- package/firewallConfig.d.ts +110 -0
- package/firewallConfig.js +62 -0
- package/firewallConfig.js.map +1 -0
- package/getAccessGroup.d.ts +25 -0
- package/getAccessGroup.js +24 -0
- package/getAccessGroup.js.map +1 -0
- package/getAccessGroupProject.d.ts +32 -0
- package/getAccessGroupProject.js +26 -0
- package/getAccessGroupProject.js.map +1 -0
- package/getAlias.d.ts +0 -34
- package/getAlias.js +0 -10
- package/getAlias.js.map +1 -1
- package/getAttackChallengeMode.d.ts +0 -56
- package/getAttackChallengeMode.js +0 -32
- package/getAttackChallengeMode.js.map +1 -1
- package/getCustomEnvironment.d.ts +31 -0
- package/getCustomEnvironment.js +26 -0
- package/getCustomEnvironment.js.map +1 -0
- package/getDeployment.d.ts +0 -65
- package/getDeployment.js +0 -32
- package/getDeployment.js.map +1 -1
- package/getEdgeConfig.d.ts +0 -53
- package/getEdgeConfig.js +0 -32
- package/getEdgeConfig.js.map +1 -1
- package/getEdgeConfigItem.d.ts +28 -0
- package/getEdgeConfigItem.js +26 -0
- package/getEdgeConfigItem.js.map +1 -0
- package/getEdgeConfigSchema.d.ts +0 -49
- package/getEdgeConfigSchema.js +0 -28
- package/getEdgeConfigSchema.js.map +1 -1
- package/getEdgeConfigToken.d.ts +0 -74
- package/getEdgeConfigToken.js +0 -38
- package/getEdgeConfigToken.js.map +1 -1
- package/getEndpointVerification.d.ts +0 -39
- package/getEndpointVerification.js +0 -24
- package/getEndpointVerification.js.map +1 -1
- package/getFile.d.ts +0 -54
- package/getFile.js +0 -48
- package/getFile.js.map +1 -1
- package/getLogDrain.d.ts +0 -81
- package/getLogDrain.js +0 -36
- package/getLogDrain.js.map +1 -1
- package/getPrebuiltProject.d.ts +0 -6
- package/getPrebuiltProject.js.map +1 -1
- package/getProject.d.ts +1 -146
- package/getProject.js +0 -38
- package/getProject.js.map +1 -1
- package/getProjectDeploymentRetention.d.ts +0 -47
- package/getProjectDeploymentRetention.js +0 -14
- package/getProjectDeploymentRetention.js.map +1 -1
- package/getProjectDirectory.d.ts +0 -6
- package/getProjectDirectory.js.map +1 -1
- package/getProjectMembers.d.ts +30 -0
- package/getProjectMembers.js +24 -0
- package/getProjectMembers.js.map +1 -0
- package/getSharedEnvironmentVariable.d.ts +1 -95
- package/getSharedEnvironmentVariable.js +0 -50
- package/getSharedEnvironmentVariable.js.map +1 -1
- package/getTeamConfig.d.ts +35 -0
- package/getTeamConfig.js +22 -0
- package/getTeamConfig.js.map +1 -0
- package/getTeamMember.d.ts +29 -0
- package/getTeamMember.js +24 -0
- package/getTeamMember.js.map +1 -0
- package/index.d.ts +48 -6
- package/index.js +68 -9
- package/index.js.map +1 -1
- package/logDrain.d.ts +42 -74
- package/logDrain.js +0 -56
- package/logDrain.js.map +1 -1
- package/package.json +1 -1
- package/project.d.ts +111 -89
- package/project.js +3 -46
- package/project.js.map +1 -1
- package/projectDeploymentRetention.d.ts +0 -51
- package/projectDeploymentRetention.js +0 -51
- package/projectDeploymentRetention.js.map +1 -1
- package/projectDomain.d.ts +21 -55
- package/projectDomain.js +2 -52
- package/projectDomain.js.map +1 -1
- package/projectEnvironmentVariable.d.ts +40 -86
- package/projectEnvironmentVariable.js +4 -82
- package/projectEnvironmentVariable.js.map +1 -1
- package/projectEnvironmentVariables.d.ts +74 -0
- package/projectEnvironmentVariables.js +59 -0
- package/projectEnvironmentVariables.js.map +1 -0
- package/projectMembers.d.ts +77 -0
- package/projectMembers.js +59 -0
- package/projectMembers.js.map +1 -0
- package/sharedEnvironmentVariable.d.ts +24 -49
- package/sharedEnvironmentVariable.js +2 -43
- package/sharedEnvironmentVariable.js.map +1 -1
- package/teamConfig.d.ts +211 -0
- package/teamConfig.js +75 -0
- package/teamConfig.js.map +1 -0
- package/teamMember.d.ts +107 -0
- package/teamMember.js +66 -0
- package/teamMember.js.map +1 -0
- package/types/input.d.ts +301 -2
- package/types/output.d.ts +372 -1
- package/webhook.d.ts +18 -43
- package/webhook.js +0 -35
- package/webhook.js.map +1 -1
- package/getProjectFunctionCpu.d.ts +0 -92
- package/getProjectFunctionCpu.js +0 -66
- package/getProjectFunctionCpu.js.map +0 -1
- package/projectFunctionCpu.d.ts +0 -106
- package/projectFunctionCpu.js +0 -93
- package/projectFunctionCpu.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectDeploymentRetention.js","sourceRoot":"","sources":["../projectDeploymentRetention.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"projectDeploymentRetention.js","sourceRoot":"","sources":["../projectDeploymentRetention.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AAc,EAAE,IAAI,CAAC,CAAC;IAC/E,CAAC;;AAtFL,gEAuFC;AAzEG,gBAAgB;AACO,uCAAY,GAAG,oEAAoE,CAAC"}
|
package/projectDomain.d.ts
CHANGED
|
@@ -1,56 +1,4 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* Provides a Project Domain resource.
|
|
4
|
-
*
|
|
5
|
-
* A Project Domain is used to associate a domain name with a `vercel.Project`.
|
|
6
|
-
*
|
|
7
|
-
* By default, Project Domains will be automatically applied to any `production` deployments.
|
|
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
|
-
* // A simple domain that will be automatically
|
|
17
|
-
* // applied to each production deployment
|
|
18
|
-
* const exampleProjectDomain = new vercel.ProjectDomain("exampleProjectDomain", {
|
|
19
|
-
* projectId: exampleProject.id,
|
|
20
|
-
* domain: "i-love.vercel.app",
|
|
21
|
-
* });
|
|
22
|
-
* // A redirect of a domain name to a second domain name.
|
|
23
|
-
* // The status_code can optionally be controlled.
|
|
24
|
-
* const exampleRedirect = new vercel.ProjectDomain("exampleRedirect", {
|
|
25
|
-
* projectId: exampleProject.id,
|
|
26
|
-
* domain: "i-also-love.vercel.app",
|
|
27
|
-
* redirect: exampleProjectDomain.domain,
|
|
28
|
-
* redirectStatusCode: 307,
|
|
29
|
-
* });
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* ## Import
|
|
33
|
-
*
|
|
34
|
-
* If importing into a personal account, or with a team configured on
|
|
35
|
-
*
|
|
36
|
-
* the provider, simply use the project ID and domain.
|
|
37
|
-
*
|
|
38
|
-
* - project_id can be found in the project `settings` tab in the Vercel UI.
|
|
39
|
-
*
|
|
40
|
-
* ```sh
|
|
41
|
-
* $ pulumi import vercel:index/projectDomain:ProjectDomain example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/example.com
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* Alternatively, you can import via the team_id, project_id and domain name.
|
|
45
|
-
*
|
|
46
|
-
* - team_id can be found in the team `settings` tab in the Vercel UI.
|
|
47
|
-
*
|
|
48
|
-
* - project_id can be found in the project `settings` tab in the Vercel UI.
|
|
49
|
-
*
|
|
50
|
-
* ```sh
|
|
51
|
-
* $ pulumi import vercel:index/projectDomain:ProjectDomain example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/example.com
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
2
|
export declare class ProjectDomain extends pulumi.CustomResource {
|
|
55
3
|
/**
|
|
56
4
|
* Get an existing ProjectDomain resource's state with the given name, ID, and optional extra
|
|
@@ -67,6 +15,11 @@ export declare class ProjectDomain extends pulumi.CustomResource {
|
|
|
67
15
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
68
16
|
*/
|
|
69
17
|
static isInstance(obj: any): obj is ProjectDomain;
|
|
18
|
+
/**
|
|
19
|
+
* The name of the Custom Environment to link to the Project Domain. Deployments from this custom environment will be
|
|
20
|
+
* assigned the domain name.
|
|
21
|
+
*/
|
|
22
|
+
readonly customEnvironmentId: pulumi.Output<string | undefined>;
|
|
70
23
|
/**
|
|
71
24
|
* The domain name to associate with the project.
|
|
72
25
|
*/
|
|
@@ -88,7 +41,8 @@ export declare class ProjectDomain extends pulumi.CustomResource {
|
|
|
88
41
|
*/
|
|
89
42
|
readonly redirectStatusCode: pulumi.Output<number | undefined>;
|
|
90
43
|
/**
|
|
91
|
-
* The ID of the team the project exists under. Required when configuring a team resource if a default team has not been
|
|
44
|
+
* The ID of the team the project exists under. Required when configuring a team resource if a default team has not been
|
|
45
|
+
* set in the provider.
|
|
92
46
|
*/
|
|
93
47
|
readonly teamId: pulumi.Output<string>;
|
|
94
48
|
/**
|
|
@@ -104,6 +58,11 @@ export declare class ProjectDomain extends pulumi.CustomResource {
|
|
|
104
58
|
* Input properties used for looking up and filtering ProjectDomain resources.
|
|
105
59
|
*/
|
|
106
60
|
export interface ProjectDomainState {
|
|
61
|
+
/**
|
|
62
|
+
* The name of the Custom Environment to link to the Project Domain. Deployments from this custom environment will be
|
|
63
|
+
* assigned the domain name.
|
|
64
|
+
*/
|
|
65
|
+
customEnvironmentId?: pulumi.Input<string>;
|
|
107
66
|
/**
|
|
108
67
|
* The domain name to associate with the project.
|
|
109
68
|
*/
|
|
@@ -125,7 +84,8 @@ export interface ProjectDomainState {
|
|
|
125
84
|
*/
|
|
126
85
|
redirectStatusCode?: pulumi.Input<number>;
|
|
127
86
|
/**
|
|
128
|
-
* The ID of the team the project exists under. Required when configuring a team resource if a default team has not been
|
|
87
|
+
* The ID of the team the project exists under. Required when configuring a team resource if a default team has not been
|
|
88
|
+
* set in the provider.
|
|
129
89
|
*/
|
|
130
90
|
teamId?: pulumi.Input<string>;
|
|
131
91
|
}
|
|
@@ -133,6 +93,11 @@ export interface ProjectDomainState {
|
|
|
133
93
|
* The set of arguments for constructing a ProjectDomain resource.
|
|
134
94
|
*/
|
|
135
95
|
export interface ProjectDomainArgs {
|
|
96
|
+
/**
|
|
97
|
+
* The name of the Custom Environment to link to the Project Domain. Deployments from this custom environment will be
|
|
98
|
+
* assigned the domain name.
|
|
99
|
+
*/
|
|
100
|
+
customEnvironmentId?: pulumi.Input<string>;
|
|
136
101
|
/**
|
|
137
102
|
* The domain name to associate with the project.
|
|
138
103
|
*/
|
|
@@ -154,7 +119,8 @@ export interface ProjectDomainArgs {
|
|
|
154
119
|
*/
|
|
155
120
|
redirectStatusCode?: pulumi.Input<number>;
|
|
156
121
|
/**
|
|
157
|
-
* The ID of the team the project exists under. Required when configuring a team resource if a default team has not been
|
|
122
|
+
* The ID of the team the project exists under. Required when configuring a team resource if a default team has not been
|
|
123
|
+
* set in the provider.
|
|
158
124
|
*/
|
|
159
125
|
teamId?: pulumi.Input<string>;
|
|
160
126
|
}
|
package/projectDomain.js
CHANGED
|
@@ -5,58 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ProjectDomain = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Provides a Project Domain resource.
|
|
10
|
-
*
|
|
11
|
-
* A Project Domain is used to associate a domain name with a `vercel.Project`.
|
|
12
|
-
*
|
|
13
|
-
* By default, Project Domains will be automatically applied to any `production` deployments.
|
|
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
|
-
* // A simple domain that will be automatically
|
|
23
|
-
* // applied to each production deployment
|
|
24
|
-
* const exampleProjectDomain = new vercel.ProjectDomain("exampleProjectDomain", {
|
|
25
|
-
* projectId: exampleProject.id,
|
|
26
|
-
* domain: "i-love.vercel.app",
|
|
27
|
-
* });
|
|
28
|
-
* // A redirect of a domain name to a second domain name.
|
|
29
|
-
* // The status_code can optionally be controlled.
|
|
30
|
-
* const exampleRedirect = new vercel.ProjectDomain("exampleRedirect", {
|
|
31
|
-
* projectId: exampleProject.id,
|
|
32
|
-
* domain: "i-also-love.vercel.app",
|
|
33
|
-
* redirect: exampleProjectDomain.domain,
|
|
34
|
-
* redirectStatusCode: 307,
|
|
35
|
-
* });
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* ## Import
|
|
39
|
-
*
|
|
40
|
-
* If importing into a personal account, or with a team configured on
|
|
41
|
-
*
|
|
42
|
-
* the provider, simply use the project ID and domain.
|
|
43
|
-
*
|
|
44
|
-
* - project_id can be found in the project `settings` tab in the Vercel UI.
|
|
45
|
-
*
|
|
46
|
-
* ```sh
|
|
47
|
-
* $ pulumi import vercel:index/projectDomain:ProjectDomain example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/example.com
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* Alternatively, you can import via the team_id, project_id and domain name.
|
|
51
|
-
*
|
|
52
|
-
* - team_id can be found in the team `settings` tab in the Vercel UI.
|
|
53
|
-
*
|
|
54
|
-
* - project_id can be found in the project `settings` tab in the Vercel UI.
|
|
55
|
-
*
|
|
56
|
-
* ```sh
|
|
57
|
-
* $ pulumi import vercel:index/projectDomain:ProjectDomain example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/example.com
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
8
|
class ProjectDomain extends pulumi.CustomResource {
|
|
61
9
|
/**
|
|
62
10
|
* Get an existing ProjectDomain resource's state with the given name, ID, and optional extra
|
|
@@ -85,6 +33,7 @@ class ProjectDomain extends pulumi.CustomResource {
|
|
|
85
33
|
opts = opts || {};
|
|
86
34
|
if (opts.id) {
|
|
87
35
|
const state = argsOrState;
|
|
36
|
+
resourceInputs["customEnvironmentId"] = state ? state.customEnvironmentId : undefined;
|
|
88
37
|
resourceInputs["domain"] = state ? state.domain : undefined;
|
|
89
38
|
resourceInputs["gitBranch"] = state ? state.gitBranch : undefined;
|
|
90
39
|
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
@@ -100,6 +49,7 @@ class ProjectDomain extends pulumi.CustomResource {
|
|
|
100
49
|
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
101
50
|
throw new Error("Missing required property 'projectId'");
|
|
102
51
|
}
|
|
52
|
+
resourceInputs["customEnvironmentId"] = args ? args.customEnvironmentId : undefined;
|
|
103
53
|
resourceInputs["domain"] = args ? args.domain : undefined;
|
|
104
54
|
resourceInputs["gitBranch"] = args ? args.gitBranch : undefined;
|
|
105
55
|
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
package/projectDomain.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectDomain.js","sourceRoot":"","sources":["../projectDomain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"projectDomain.js","sourceRoot":"","sources":["../projectDomain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,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,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IAyCD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,C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WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,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,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAjGL,sCAkGC;AApFG,gBAAgB;AACO,0BAAY,GAAG,0CAA0C,CAAC"}
|
|
@@ -1,83 +1,4 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* ## Example Usage
|
|
4
|
-
*
|
|
5
|
-
* ```typescript
|
|
6
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
-
* import * as vercel from "@pulumiverse/vercel";
|
|
8
|
-
*
|
|
9
|
-
* const exampleProject = new vercel.Project("exampleProject", {gitRepository: {
|
|
10
|
-
* type: "github",
|
|
11
|
-
* repo: "vercel/some-repo",
|
|
12
|
-
* }});
|
|
13
|
-
* // An environment variable that will be created
|
|
14
|
-
* // for this project for the "production" environment.
|
|
15
|
-
* const exampleProjectEnvironmentVariable = new vercel.ProjectEnvironmentVariable("exampleProjectEnvironmentVariable", {
|
|
16
|
-
* projectId: exampleProject.id,
|
|
17
|
-
* key: "foo",
|
|
18
|
-
* value: "bar",
|
|
19
|
-
* targets: ["production"],
|
|
20
|
-
* });
|
|
21
|
-
* // An environment variable that will be created
|
|
22
|
-
* // for this project for the "preview" environment when the branch is "staging".
|
|
23
|
-
* const exampleGitBranch = new vercel.ProjectEnvironmentVariable("exampleGitBranch", {
|
|
24
|
-
* projectId: exampleProject.id,
|
|
25
|
-
* key: "foo",
|
|
26
|
-
* value: "bar-staging",
|
|
27
|
-
* targets: ["preview"],
|
|
28
|
-
* gitBranch: "staging",
|
|
29
|
-
* });
|
|
30
|
-
* // A sensitive environment variable that will be created
|
|
31
|
-
* // for this project for the "production" environment.
|
|
32
|
-
* const exampleSensitive = new vercel.ProjectEnvironmentVariable("exampleSensitive", {
|
|
33
|
-
* projectId: exampleProject.id,
|
|
34
|
-
* key: "foo",
|
|
35
|
-
* value: "bar-production",
|
|
36
|
-
* targets: ["production"],
|
|
37
|
-
* sensitive: true,
|
|
38
|
-
* });
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* ## Import
|
|
42
|
-
*
|
|
43
|
-
* If importing into a personal account, or with a team configured on
|
|
44
|
-
*
|
|
45
|
-
* the provider, simply use the project_id and environment variable id.
|
|
46
|
-
*
|
|
47
|
-
* - project_id can be found in the project `settings` tab in the Vercel UI.
|
|
48
|
-
*
|
|
49
|
-
* - environment variable id can be taken from the network tab inside developer tools, while you are on the project page,
|
|
50
|
-
*
|
|
51
|
-
* or can be queried from Vercel API directly (https://vercel.com/docs/rest-api/endpoints/projects#retrieve-the-environment-variables-of-a-project-by-id-or-name)
|
|
52
|
-
*
|
|
53
|
-
* #
|
|
54
|
-
*
|
|
55
|
-
* Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
56
|
-
*
|
|
57
|
-
* ```sh
|
|
58
|
-
* $ pulumi import vercel:index/projectEnvironmentVariable:ProjectEnvironmentVariable example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/FdT2e1E5Of6Cihmt
|
|
59
|
-
* ```
|
|
60
|
-
*
|
|
61
|
-
* Alternatively, you can import via the team_id, project_id and
|
|
62
|
-
*
|
|
63
|
-
* environment variable id.
|
|
64
|
-
*
|
|
65
|
-
* - team_id can be found in the team `settings` tab in the Vercel UI.
|
|
66
|
-
*
|
|
67
|
-
* - project_id can be found in the project `settings` tab in the Vercel UI.
|
|
68
|
-
*
|
|
69
|
-
* - environment variable id can be taken from the network tab inside developer tools, while you are on the project page,
|
|
70
|
-
*
|
|
71
|
-
* or can be queried from Vercel API directly (https://vercel.com/docs/rest-api/endpoints/projects#retrieve-the-environment-variables-of-a-project-by-id-or-name)
|
|
72
|
-
*
|
|
73
|
-
* #
|
|
74
|
-
*
|
|
75
|
-
* Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
76
|
-
*
|
|
77
|
-
* ```sh
|
|
78
|
-
* $ pulumi import vercel:index/projectEnvironmentVariable:ProjectEnvironmentVariable example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/FdT2e1E5Of6Cihmt
|
|
79
|
-
* ```
|
|
80
|
-
*/
|
|
81
2
|
export declare class ProjectEnvironmentVariable extends pulumi.CustomResource {
|
|
82
3
|
/**
|
|
83
4
|
* Get an existing ProjectEnvironmentVariable resource's state with the given name, ID, and optional extra
|
|
@@ -94,6 +15,15 @@ export declare class ProjectEnvironmentVariable extends pulumi.CustomResource {
|
|
|
94
15
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
95
16
|
*/
|
|
96
17
|
static isInstance(obj: any): obj is ProjectEnvironmentVariable;
|
|
18
|
+
/**
|
|
19
|
+
* A comment explaining what the environment variable is for.
|
|
20
|
+
*/
|
|
21
|
+
readonly comment: pulumi.Output<string>;
|
|
22
|
+
/**
|
|
23
|
+
* The IDs of Custom Environments that the Environment Variable should be present on. At least one of `target` or
|
|
24
|
+
* `customEnvironmentIds` must be set.
|
|
25
|
+
*/
|
|
26
|
+
readonly customEnvironmentIds: pulumi.Output<string[]>;
|
|
97
27
|
/**
|
|
98
28
|
* The git branch of the Environment Variable.
|
|
99
29
|
*/
|
|
@@ -107,11 +37,13 @@ export declare class ProjectEnvironmentVariable extends pulumi.CustomResource {
|
|
|
107
37
|
*/
|
|
108
38
|
readonly projectId: pulumi.Output<string>;
|
|
109
39
|
/**
|
|
110
|
-
* Whether the Environment Variable is sensitive or not. (May be affected by a [team-wide environment variable
|
|
40
|
+
* Whether the Environment Variable is sensitive or not. (May be affected by a [team-wide environment variable
|
|
41
|
+
* policy](https://vercel.com/docs/projects/environment-variables/sensitive-environment-variables#environment-variables-policy))
|
|
111
42
|
*/
|
|
112
43
|
readonly sensitive: pulumi.Output<boolean>;
|
|
113
44
|
/**
|
|
114
|
-
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`,
|
|
45
|
+
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`,
|
|
46
|
+
* or `development`. At least one of `target` or `customEnvironmentIds` must be set.
|
|
115
47
|
*/
|
|
116
48
|
readonly targets: pulumi.Output<string[]>;
|
|
117
49
|
/**
|
|
@@ -135,6 +67,15 @@ export declare class ProjectEnvironmentVariable extends pulumi.CustomResource {
|
|
|
135
67
|
* Input properties used for looking up and filtering ProjectEnvironmentVariable resources.
|
|
136
68
|
*/
|
|
137
69
|
export interface ProjectEnvironmentVariableState {
|
|
70
|
+
/**
|
|
71
|
+
* A comment explaining what the environment variable is for.
|
|
72
|
+
*/
|
|
73
|
+
comment?: pulumi.Input<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The IDs of Custom Environments that the Environment Variable should be present on. At least one of `target` or
|
|
76
|
+
* `customEnvironmentIds` must be set.
|
|
77
|
+
*/
|
|
78
|
+
customEnvironmentIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
138
79
|
/**
|
|
139
80
|
* The git branch of the Environment Variable.
|
|
140
81
|
*/
|
|
@@ -148,11 +89,13 @@ export interface ProjectEnvironmentVariableState {
|
|
|
148
89
|
*/
|
|
149
90
|
projectId?: pulumi.Input<string>;
|
|
150
91
|
/**
|
|
151
|
-
* Whether the Environment Variable is sensitive or not. (May be affected by a [team-wide environment variable
|
|
92
|
+
* Whether the Environment Variable is sensitive or not. (May be affected by a [team-wide environment variable
|
|
93
|
+
* policy](https://vercel.com/docs/projects/environment-variables/sensitive-environment-variables#environment-variables-policy))
|
|
152
94
|
*/
|
|
153
95
|
sensitive?: pulumi.Input<boolean>;
|
|
154
96
|
/**
|
|
155
|
-
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`,
|
|
97
|
+
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`,
|
|
98
|
+
* or `development`. At least one of `target` or `customEnvironmentIds` must be set.
|
|
156
99
|
*/
|
|
157
100
|
targets?: pulumi.Input<pulumi.Input<string>[]>;
|
|
158
101
|
/**
|
|
@@ -168,6 +111,15 @@ export interface ProjectEnvironmentVariableState {
|
|
|
168
111
|
* The set of arguments for constructing a ProjectEnvironmentVariable resource.
|
|
169
112
|
*/
|
|
170
113
|
export interface ProjectEnvironmentVariableArgs {
|
|
114
|
+
/**
|
|
115
|
+
* A comment explaining what the environment variable is for.
|
|
116
|
+
*/
|
|
117
|
+
comment?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* The IDs of Custom Environments that the Environment Variable should be present on. At least one of `target` or
|
|
120
|
+
* `customEnvironmentIds` must be set.
|
|
121
|
+
*/
|
|
122
|
+
customEnvironmentIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
171
123
|
/**
|
|
172
124
|
* The git branch of the Environment Variable.
|
|
173
125
|
*/
|
|
@@ -181,13 +133,15 @@ export interface ProjectEnvironmentVariableArgs {
|
|
|
181
133
|
*/
|
|
182
134
|
projectId: pulumi.Input<string>;
|
|
183
135
|
/**
|
|
184
|
-
* Whether the Environment Variable is sensitive or not. (May be affected by a [team-wide environment variable
|
|
136
|
+
* Whether the Environment Variable is sensitive or not. (May be affected by a [team-wide environment variable
|
|
137
|
+
* policy](https://vercel.com/docs/projects/environment-variables/sensitive-environment-variables#environment-variables-policy))
|
|
185
138
|
*/
|
|
186
139
|
sensitive?: pulumi.Input<boolean>;
|
|
187
140
|
/**
|
|
188
|
-
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`,
|
|
141
|
+
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`,
|
|
142
|
+
* or `development`. At least one of `target` or `customEnvironmentIds` must be set.
|
|
189
143
|
*/
|
|
190
|
-
targets
|
|
144
|
+
targets?: pulumi.Input<pulumi.Input<string>[]>;
|
|
191
145
|
/**
|
|
192
146
|
* The ID of the Vercel team.Required when configuring a team resource if a default team has not been set in the provider.
|
|
193
147
|
*/
|
|
@@ -5,85 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ProjectEnvironmentVariable = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* ## Example Usage
|
|
10
|
-
*
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
-
* import * as vercel from "@pulumiverse/vercel";
|
|
14
|
-
*
|
|
15
|
-
* const exampleProject = new vercel.Project("exampleProject", {gitRepository: {
|
|
16
|
-
* type: "github",
|
|
17
|
-
* repo: "vercel/some-repo",
|
|
18
|
-
* }});
|
|
19
|
-
* // An environment variable that will be created
|
|
20
|
-
* // for this project for the "production" environment.
|
|
21
|
-
* const exampleProjectEnvironmentVariable = new vercel.ProjectEnvironmentVariable("exampleProjectEnvironmentVariable", {
|
|
22
|
-
* projectId: exampleProject.id,
|
|
23
|
-
* key: "foo",
|
|
24
|
-
* value: "bar",
|
|
25
|
-
* targets: ["production"],
|
|
26
|
-
* });
|
|
27
|
-
* // An environment variable that will be created
|
|
28
|
-
* // for this project for the "preview" environment when the branch is "staging".
|
|
29
|
-
* const exampleGitBranch = new vercel.ProjectEnvironmentVariable("exampleGitBranch", {
|
|
30
|
-
* projectId: exampleProject.id,
|
|
31
|
-
* key: "foo",
|
|
32
|
-
* value: "bar-staging",
|
|
33
|
-
* targets: ["preview"],
|
|
34
|
-
* gitBranch: "staging",
|
|
35
|
-
* });
|
|
36
|
-
* // A sensitive environment variable that will be created
|
|
37
|
-
* // for this project for the "production" environment.
|
|
38
|
-
* const exampleSensitive = new vercel.ProjectEnvironmentVariable("exampleSensitive", {
|
|
39
|
-
* projectId: exampleProject.id,
|
|
40
|
-
* key: "foo",
|
|
41
|
-
* value: "bar-production",
|
|
42
|
-
* targets: ["production"],
|
|
43
|
-
* sensitive: true,
|
|
44
|
-
* });
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* ## Import
|
|
48
|
-
*
|
|
49
|
-
* If importing into a personal account, or with a team configured on
|
|
50
|
-
*
|
|
51
|
-
* the provider, simply use the project_id and environment variable id.
|
|
52
|
-
*
|
|
53
|
-
* - project_id can be found in the project `settings` tab in the Vercel UI.
|
|
54
|
-
*
|
|
55
|
-
* - environment variable id can be taken from the network tab inside developer tools, while you are on the project page,
|
|
56
|
-
*
|
|
57
|
-
* or can be queried from Vercel API directly (https://vercel.com/docs/rest-api/endpoints/projects#retrieve-the-environment-variables-of-a-project-by-id-or-name)
|
|
58
|
-
*
|
|
59
|
-
* #
|
|
60
|
-
*
|
|
61
|
-
* Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
62
|
-
*
|
|
63
|
-
* ```sh
|
|
64
|
-
* $ pulumi import vercel:index/projectEnvironmentVariable:ProjectEnvironmentVariable example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/FdT2e1E5Of6Cihmt
|
|
65
|
-
* ```
|
|
66
|
-
*
|
|
67
|
-
* Alternatively, you can import via the team_id, project_id and
|
|
68
|
-
*
|
|
69
|
-
* environment variable id.
|
|
70
|
-
*
|
|
71
|
-
* - team_id can be found in the team `settings` tab in the Vercel UI.
|
|
72
|
-
*
|
|
73
|
-
* - project_id can be found in the project `settings` tab in the Vercel UI.
|
|
74
|
-
*
|
|
75
|
-
* - environment variable id can be taken from the network tab inside developer tools, while you are on the project page,
|
|
76
|
-
*
|
|
77
|
-
* or can be queried from Vercel API directly (https://vercel.com/docs/rest-api/endpoints/projects#retrieve-the-environment-variables-of-a-project-by-id-or-name)
|
|
78
|
-
*
|
|
79
|
-
* #
|
|
80
|
-
*
|
|
81
|
-
* Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
82
|
-
*
|
|
83
|
-
* ```sh
|
|
84
|
-
* $ pulumi import vercel:index/projectEnvironmentVariable:ProjectEnvironmentVariable example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/FdT2e1E5Of6Cihmt
|
|
85
|
-
* ```
|
|
86
|
-
*/
|
|
87
8
|
class ProjectEnvironmentVariable extends pulumi.CustomResource {
|
|
88
9
|
/**
|
|
89
10
|
* Get an existing ProjectEnvironmentVariable resource's state with the given name, ID, and optional extra
|
|
@@ -112,6 +33,8 @@ class ProjectEnvironmentVariable extends pulumi.CustomResource {
|
|
|
112
33
|
opts = opts || {};
|
|
113
34
|
if (opts.id) {
|
|
114
35
|
const state = argsOrState;
|
|
36
|
+
resourceInputs["comment"] = state ? state.comment : undefined;
|
|
37
|
+
resourceInputs["customEnvironmentIds"] = state ? state.customEnvironmentIds : undefined;
|
|
115
38
|
resourceInputs["gitBranch"] = state ? state.gitBranch : undefined;
|
|
116
39
|
resourceInputs["key"] = state ? state.key : undefined;
|
|
117
40
|
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
@@ -128,12 +51,11 @@ class ProjectEnvironmentVariable extends pulumi.CustomResource {
|
|
|
128
51
|
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
129
52
|
throw new Error("Missing required property 'projectId'");
|
|
130
53
|
}
|
|
131
|
-
if ((!args || args.targets === undefined) && !opts.urn) {
|
|
132
|
-
throw new Error("Missing required property 'targets'");
|
|
133
|
-
}
|
|
134
54
|
if ((!args || args.value === undefined) && !opts.urn) {
|
|
135
55
|
throw new Error("Missing required property 'value'");
|
|
136
56
|
}
|
|
57
|
+
resourceInputs["comment"] = args ? args.comment : undefined;
|
|
58
|
+
resourceInputs["customEnvironmentIds"] = args ? args.customEnvironmentIds : undefined;
|
|
137
59
|
resourceInputs["gitBranch"] = args ? args.gitBranch : undefined;
|
|
138
60
|
resourceInputs["key"] = args ? args.key : undefined;
|
|
139
61
|
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectEnvironmentVariable.js","sourceRoot":"","sources":["../projectEnvironmentVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"projectEnvironmentVariable.js","sourceRoot":"","sources":["../projectEnvironmentVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,0BAA2B,SAAQ,MAAM,CAAC,cAAc;IACjE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuC,EAAE,IAAmC;QACrI,OAAO,IAAI,0BAA0B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjF,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,0BAA0B,CAAC,YAAY,CAAC;IAC3E,CAAC;IAkDD,YAAY,IAAY,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,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,0BAA0B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/E,CAAC;;AAnHL,gEAoHC;AAtGG,gBAAgB;AACO,uCAAY,GAAG,oEAAoE,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
export declare class ProjectEnvironmentVariables extends pulumi.CustomResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get an existing ProjectEnvironmentVariables resource's state with the given name, ID, and optional extra
|
|
7
|
+
* properties used to qualify the lookup.
|
|
8
|
+
*
|
|
9
|
+
* @param name The _unique_ name of the resulting resource.
|
|
10
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
11
|
+
* @param state Any extra arguments used during the lookup.
|
|
12
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
13
|
+
*/
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectEnvironmentVariablesState, opts?: pulumi.CustomResourceOptions): ProjectEnvironmentVariables;
|
|
15
|
+
/**
|
|
16
|
+
* Returns true if the given object is an instance of ProjectEnvironmentVariables. This is designed to work even
|
|
17
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
18
|
+
*/
|
|
19
|
+
static isInstance(obj: any): obj is ProjectEnvironmentVariables;
|
|
20
|
+
/**
|
|
21
|
+
* The ID of the Vercel project.
|
|
22
|
+
*/
|
|
23
|
+
readonly projectId: pulumi.Output<string>;
|
|
24
|
+
/**
|
|
25
|
+
* The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
|
|
26
|
+
*/
|
|
27
|
+
readonly teamId: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* A set of Environment Variables that should be configured for the project.
|
|
30
|
+
*/
|
|
31
|
+
readonly variables: pulumi.Output<outputs.ProjectEnvironmentVariablesVariable[]>;
|
|
32
|
+
/**
|
|
33
|
+
* Create a ProjectEnvironmentVariables resource with the given unique name, arguments, and options.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resource.
|
|
36
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
37
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
38
|
+
*/
|
|
39
|
+
constructor(name: string, args: ProjectEnvironmentVariablesArgs, opts?: pulumi.CustomResourceOptions);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Input properties used for looking up and filtering ProjectEnvironmentVariables resources.
|
|
43
|
+
*/
|
|
44
|
+
export interface ProjectEnvironmentVariablesState {
|
|
45
|
+
/**
|
|
46
|
+
* The ID of the Vercel project.
|
|
47
|
+
*/
|
|
48
|
+
projectId?: pulumi.Input<string>;
|
|
49
|
+
/**
|
|
50
|
+
* The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
|
|
51
|
+
*/
|
|
52
|
+
teamId?: pulumi.Input<string>;
|
|
53
|
+
/**
|
|
54
|
+
* A set of Environment Variables that should be configured for the project.
|
|
55
|
+
*/
|
|
56
|
+
variables?: pulumi.Input<pulumi.Input<inputs.ProjectEnvironmentVariablesVariable>[]>;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* The set of arguments for constructing a ProjectEnvironmentVariables resource.
|
|
60
|
+
*/
|
|
61
|
+
export interface ProjectEnvironmentVariablesArgs {
|
|
62
|
+
/**
|
|
63
|
+
* The ID of the Vercel project.
|
|
64
|
+
*/
|
|
65
|
+
projectId: pulumi.Input<string>;
|
|
66
|
+
/**
|
|
67
|
+
* The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
|
|
68
|
+
*/
|
|
69
|
+
teamId?: pulumi.Input<string>;
|
|
70
|
+
/**
|
|
71
|
+
* A set of Environment Variables that should be configured for the project.
|
|
72
|
+
*/
|
|
73
|
+
variables: pulumi.Input<pulumi.Input<inputs.ProjectEnvironmentVariablesVariable>[]>;
|
|
74
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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.ProjectEnvironmentVariables = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class ProjectEnvironmentVariables extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing ProjectEnvironmentVariables resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new ProjectEnvironmentVariables(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of ProjectEnvironmentVariables. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === ProjectEnvironmentVariables.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
37
|
+
resourceInputs["teamId"] = state ? state.teamId : undefined;
|
|
38
|
+
resourceInputs["variables"] = state ? state.variables : undefined;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
const args = argsOrState;
|
|
42
|
+
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
43
|
+
throw new Error("Missing required property 'projectId'");
|
|
44
|
+
}
|
|
45
|
+
if ((!args || args.variables === undefined) && !opts.urn) {
|
|
46
|
+
throw new Error("Missing required property 'variables'");
|
|
47
|
+
}
|
|
48
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
49
|
+
resourceInputs["teamId"] = args ? args.teamId : undefined;
|
|
50
|
+
resourceInputs["variables"] = args ? args.variables : undefined;
|
|
51
|
+
}
|
|
52
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
53
|
+
super(ProjectEnvironmentVariables.__pulumiType, name, resourceInputs, opts);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.ProjectEnvironmentVariables = ProjectEnvironmentVariables;
|
|
57
|
+
/** @internal */
|
|
58
|
+
ProjectEnvironmentVariables.__pulumiType = 'vercel:index/projectEnvironmentVariables:ProjectEnvironmentVariables';
|
|
59
|
+
//# sourceMappingURL=projectEnvironmentVariables.js.map
|