@pulumiverse/vercel 1.15.0 → 2.9.0-alpha.1747137905
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 +35 -6
- package/accessGroup.js +32 -0
- package/accessGroup.js.map +1 -1
- package/accessGroupProject.d.ts +41 -6
- package/accessGroupProject.js +38 -0
- package/accessGroupProject.js.map +1 -1
- package/alias.d.ts +8 -6
- package/alias.js +5 -0
- package/alias.js.map +1 -1
- package/attackChallengeMode.d.ts +33 -6
- package/attackChallengeMode.js +30 -0
- package/attackChallengeMode.js.map +1 -1
- package/customEnvironment.d.ts +56 -6
- package/customEnvironment.js +53 -0
- package/customEnvironment.js.map +1 -1
- package/deployment.d.ts +17 -34
- package/deployment.js.map +1 -1
- package/dnsRecord.d.ts +135 -30
- package/dnsRecord.js +105 -0
- package/dnsRecord.js.map +1 -1
- package/edgeConfig.d.ts +54 -6
- package/edgeConfig.js +51 -0
- package/edgeConfig.js.map +1 -1
- package/edgeConfigItem.d.ts +50 -6
- package/edgeConfigItem.js +47 -0
- package/edgeConfigItem.js.map +1 -1
- package/edgeConfigSchema.d.ts +28 -6
- package/edgeConfigSchema.js +25 -0
- package/edgeConfigSchema.js.map +1 -1
- package/edgeConfigToken.d.ts +62 -10
- package/edgeConfigToken.js +57 -0
- package/edgeConfigToken.js.map +1 -1
- package/firewallConfig.d.ts +9 -0
- package/firewallConfig.js +9 -0
- package/firewallConfig.js.map +1 -1
- package/getAccessGroup.d.ts +53 -0
- package/getAccessGroup.js +32 -0
- package/getAccessGroup.js.map +1 -1
- package/getAccessGroupProject.d.ts +70 -0
- package/getAccessGroupProject.js +40 -0
- package/getAccessGroupProject.js.map +1 -1
- package/getAlias.d.ts +34 -0
- package/getAlias.js +10 -0
- package/getAlias.js.map +1 -1
- package/getAttackChallengeMode.d.ts +56 -0
- package/getAttackChallengeMode.js +32 -0
- package/getAttackChallengeMode.js.map +1 -1
- package/getCustomEnvironment.d.ts +76 -0
- package/getCustomEnvironment.js +40 -0
- package/getCustomEnvironment.js.map +1 -1
- package/getDeployment.d.ts +65 -0
- package/getDeployment.js +32 -0
- package/getDeployment.js.map +1 -1
- package/getEdgeConfig.d.ts +53 -0
- package/getEdgeConfig.js +32 -0
- package/getEdgeConfig.js.map +1 -1
- package/getEdgeConfigItem.d.ts +74 -0
- package/getEdgeConfigItem.js +44 -0
- package/getEdgeConfigItem.js.map +1 -1
- package/getEdgeConfigSchema.d.ts +49 -0
- package/getEdgeConfigSchema.js +28 -0
- package/getEdgeConfigSchema.js.map +1 -1
- package/getEdgeConfigToken.d.ts +74 -0
- package/getEdgeConfigToken.js +38 -0
- package/getEdgeConfigToken.js.map +1 -1
- package/getEndpointVerification.d.ts +39 -0
- package/getEndpointVerification.js +24 -0
- package/getEndpointVerification.js.map +1 -1
- package/getFile.d.ts +58 -0
- package/getFile.js +52 -0
- package/getFile.js.map +1 -1
- package/getLogDrain.d.ts +81 -0
- package/getLogDrain.js +36 -0
- package/getLogDrain.js.map +1 -1
- package/getPrebuiltProject.d.ts +6 -0
- package/getPrebuiltProject.js.map +1 -1
- package/getProject.d.ts +147 -0
- package/getProject.js +36 -0
- package/getProject.js.map +1 -1
- package/getProjectDeploymentRetention.d.ts +47 -0
- package/getProjectDeploymentRetention.js +14 -0
- package/getProjectDeploymentRetention.js.map +1 -1
- package/getProjectDirectory.d.ts +6 -0
- package/getProjectDirectory.js.map +1 -1
- package/getProjectMembers.d.ts +55 -0
- package/getProjectMembers.js +34 -0
- package/getProjectMembers.js.map +1 -1
- package/getSharedEnvironmentVariable.d.ts +106 -0
- package/getSharedEnvironmentVariable.js +58 -0
- package/getSharedEnvironmentVariable.js.map +1 -1
- package/getTeamConfig.d.ts +76 -0
- package/getTeamConfig.js +28 -0
- package/getTeamConfig.js.map +1 -1
- package/getTeamMember.d.ts +60 -0
- package/getTeamMember.js +30 -0
- package/getTeamMember.js.map +1 -1
- package/logDrain.d.ts +76 -42
- package/logDrain.js +58 -0
- package/logDrain.js.map +1 -1
- package/package.json +3 -2
- package/project.d.ts +94 -108
- package/project.js +49 -0
- package/project.js.map +1 -1
- package/projectDeploymentRetention.d.ts +54 -0
- package/projectDeploymentRetention.js +54 -0
- package/projectDeploymentRetention.js.map +1 -1
- package/projectDomain.d.ts +58 -12
- package/projectDomain.js +52 -0
- package/projectDomain.js.map +1 -1
- package/projectEnvironmentVariable.d.ts +94 -18
- package/projectEnvironmentVariable.js +85 -0
- package/projectEnvironmentVariable.js.map +1 -1
- package/projectEnvironmentVariables.d.ts +3 -0
- package/projectEnvironmentVariables.js +3 -0
- package/projectEnvironmentVariables.js.map +1 -1
- package/projectMembers.d.ts +26 -6
- package/projectMembers.js +23 -0
- package/projectMembers.js.map +1 -1
- package/sharedEnvironmentVariable.d.ts +53 -12
- package/sharedEnvironmentVariable.js +47 -0
- package/sharedEnvironmentVariable.js.map +1 -1
- package/teamConfig.d.ts +6 -6
- package/teamConfig.js +3 -0
- package/teamConfig.js.map +1 -1
- package/teamMember.d.ts +33 -18
- package/teamMember.js +24 -0
- package/teamMember.js.map +1 -1
- package/types/input.d.ts +2 -2
- package/types/output.d.ts +3 -3
- package/webhook.d.ts +43 -18
- package/webhook.js +35 -0
- package/webhook.js.map +1 -1
- package/package.json.bak +0 -27
package/projectDomain.d.ts
CHANGED
|
@@ -1,4 +1,56 @@
|
|
|
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 example = new vercel.Project("example", {name: "example-project"});
|
|
16
|
+
* // A simple domain that will be automatically
|
|
17
|
+
* // applied to each production deployment
|
|
18
|
+
* const exampleProjectDomain = new vercel.ProjectDomain("example", {
|
|
19
|
+
* projectId: example.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("example_redirect", {
|
|
25
|
+
* projectId: example.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
|
+
*/
|
|
2
54
|
export declare class ProjectDomain extends pulumi.CustomResource {
|
|
3
55
|
/**
|
|
4
56
|
* Get an existing ProjectDomain resource's state with the given name, ID, and optional extra
|
|
@@ -16,8 +68,7 @@ export declare class ProjectDomain extends pulumi.CustomResource {
|
|
|
16
68
|
*/
|
|
17
69
|
static isInstance(obj: any): obj is ProjectDomain;
|
|
18
70
|
/**
|
|
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.
|
|
71
|
+
* The name of the Custom Environment to link to the Project Domain. Deployments from this custom environment will be assigned the domain name.
|
|
21
72
|
*/
|
|
22
73
|
readonly customEnvironmentId: pulumi.Output<string | undefined>;
|
|
23
74
|
/**
|
|
@@ -41,8 +92,7 @@ export declare class ProjectDomain extends pulumi.CustomResource {
|
|
|
41
92
|
*/
|
|
42
93
|
readonly redirectStatusCode: pulumi.Output<number | undefined>;
|
|
43
94
|
/**
|
|
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.
|
|
95
|
+
* The ID of the team the project exists under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
46
96
|
*/
|
|
47
97
|
readonly teamId: pulumi.Output<string>;
|
|
48
98
|
/**
|
|
@@ -59,8 +109,7 @@ export declare class ProjectDomain extends pulumi.CustomResource {
|
|
|
59
109
|
*/
|
|
60
110
|
export interface ProjectDomainState {
|
|
61
111
|
/**
|
|
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.
|
|
112
|
+
* The name of the Custom Environment to link to the Project Domain. Deployments from this custom environment will be assigned the domain name.
|
|
64
113
|
*/
|
|
65
114
|
customEnvironmentId?: pulumi.Input<string>;
|
|
66
115
|
/**
|
|
@@ -84,8 +133,7 @@ export interface ProjectDomainState {
|
|
|
84
133
|
*/
|
|
85
134
|
redirectStatusCode?: pulumi.Input<number>;
|
|
86
135
|
/**
|
|
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.
|
|
136
|
+
* The ID of the team the project exists under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
89
137
|
*/
|
|
90
138
|
teamId?: pulumi.Input<string>;
|
|
91
139
|
}
|
|
@@ -94,8 +142,7 @@ export interface ProjectDomainState {
|
|
|
94
142
|
*/
|
|
95
143
|
export interface ProjectDomainArgs {
|
|
96
144
|
/**
|
|
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.
|
|
145
|
+
* The name of the Custom Environment to link to the Project Domain. Deployments from this custom environment will be assigned the domain name.
|
|
99
146
|
*/
|
|
100
147
|
customEnvironmentId?: pulumi.Input<string>;
|
|
101
148
|
/**
|
|
@@ -119,8 +166,7 @@ export interface ProjectDomainArgs {
|
|
|
119
166
|
*/
|
|
120
167
|
redirectStatusCode?: pulumi.Input<number>;
|
|
121
168
|
/**
|
|
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.
|
|
169
|
+
* The ID of the team the project exists under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
124
170
|
*/
|
|
125
171
|
teamId?: pulumi.Input<string>;
|
|
126
172
|
}
|
package/projectDomain.js
CHANGED
|
@@ -5,6 +5,58 @@ 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 example = new vercel.Project("example", {name: "example-project"});
|
|
22
|
+
* // A simple domain that will be automatically
|
|
23
|
+
* // applied to each production deployment
|
|
24
|
+
* const exampleProjectDomain = new vercel.ProjectDomain("example", {
|
|
25
|
+
* projectId: example.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("example_redirect", {
|
|
31
|
+
* projectId: example.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
|
+
*/
|
|
8
60
|
class ProjectDomain extends pulumi.CustomResource {
|
|
9
61
|
/**
|
|
10
62
|
* Get an existing ProjectDomain resource's state with the given name, ID, and optional extra
|
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,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;
|
|
1
|
+
{"version":3,"file":"projectDomain.js","sourceRoot":"","sources":["../projectDomain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,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,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AgB;AACO,0BAAY,GAAG,0CAA0C,CAAC"}
|
|
@@ -1,4 +1,89 @@
|
|
|
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 example = new vercel.Project("example", {
|
|
10
|
+
* name: "example-project",
|
|
11
|
+
* gitRepository: {
|
|
12
|
+
* type: "github",
|
|
13
|
+
* repo: "vercel/some-repo",
|
|
14
|
+
* },
|
|
15
|
+
* });
|
|
16
|
+
* // An environment variable that will be created
|
|
17
|
+
* // for this project for the "production" environment.
|
|
18
|
+
* const exampleProjectEnvironmentVariable = new vercel.ProjectEnvironmentVariable("example", {
|
|
19
|
+
* projectId: example.id,
|
|
20
|
+
* key: "foo",
|
|
21
|
+
* value: "bar",
|
|
22
|
+
* targets: ["production"],
|
|
23
|
+
* comment: "a production secret",
|
|
24
|
+
* });
|
|
25
|
+
* // An environment variable that will be created
|
|
26
|
+
* // for this project for the "preview" environment when the branch is "staging".
|
|
27
|
+
* const exampleGitBranch = new vercel.ProjectEnvironmentVariable("example_git_branch", {
|
|
28
|
+
* projectId: example.id,
|
|
29
|
+
* key: "foo",
|
|
30
|
+
* value: "bar-staging",
|
|
31
|
+
* targets: ["preview"],
|
|
32
|
+
* gitBranch: "staging",
|
|
33
|
+
* comment: "a staging secret",
|
|
34
|
+
* });
|
|
35
|
+
* // A sensitive environment variable that will be created
|
|
36
|
+
* // for this project for the "production" environment.
|
|
37
|
+
* const exampleSensitive = new vercel.ProjectEnvironmentVariable("example_sensitive", {
|
|
38
|
+
* projectId: example.id,
|
|
39
|
+
* key: "foo",
|
|
40
|
+
* value: "bar-production",
|
|
41
|
+
* targets: ["production"],
|
|
42
|
+
* sensitive: true,
|
|
43
|
+
* comment: "a sensitive production secret",
|
|
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
|
+
*/
|
|
2
87
|
export declare class ProjectEnvironmentVariable extends pulumi.CustomResource {
|
|
3
88
|
/**
|
|
4
89
|
* Get an existing ProjectEnvironmentVariable resource's state with the given name, ID, and optional extra
|
|
@@ -20,8 +105,7 @@ export declare class ProjectEnvironmentVariable extends pulumi.CustomResource {
|
|
|
20
105
|
*/
|
|
21
106
|
readonly comment: pulumi.Output<string>;
|
|
22
107
|
/**
|
|
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.
|
|
108
|
+
* The IDs of Custom Environments that the Environment Variable should be present on. At least one of `target` or `customEnvironmentIds` must be set.
|
|
25
109
|
*/
|
|
26
110
|
readonly customEnvironmentIds: pulumi.Output<string[]>;
|
|
27
111
|
/**
|
|
@@ -37,13 +121,11 @@ export declare class ProjectEnvironmentVariable extends pulumi.CustomResource {
|
|
|
37
121
|
*/
|
|
38
122
|
readonly projectId: pulumi.Output<string>;
|
|
39
123
|
/**
|
|
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))
|
|
124
|
+
* Whether the Environment Variable is sensitive or not. (May be affected by a [team-wide environment variable policy](https://vercel.com/docs/projects/environment-variables/sensitive-environment-variables#environment-variables-policy))
|
|
42
125
|
*/
|
|
43
126
|
readonly sensitive: pulumi.Output<boolean>;
|
|
44
127
|
/**
|
|
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.
|
|
128
|
+
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`. At least one of `target` or `customEnvironmentIds` must be set.
|
|
47
129
|
*/
|
|
48
130
|
readonly targets: pulumi.Output<string[]>;
|
|
49
131
|
/**
|
|
@@ -72,8 +154,7 @@ export interface ProjectEnvironmentVariableState {
|
|
|
72
154
|
*/
|
|
73
155
|
comment?: pulumi.Input<string>;
|
|
74
156
|
/**
|
|
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.
|
|
157
|
+
* The IDs of Custom Environments that the Environment Variable should be present on. At least one of `target` or `customEnvironmentIds` must be set.
|
|
77
158
|
*/
|
|
78
159
|
customEnvironmentIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
79
160
|
/**
|
|
@@ -89,13 +170,11 @@ export interface ProjectEnvironmentVariableState {
|
|
|
89
170
|
*/
|
|
90
171
|
projectId?: pulumi.Input<string>;
|
|
91
172
|
/**
|
|
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))
|
|
173
|
+
* Whether the Environment Variable is sensitive or not. (May be affected by a [team-wide environment variable policy](https://vercel.com/docs/projects/environment-variables/sensitive-environment-variables#environment-variables-policy))
|
|
94
174
|
*/
|
|
95
175
|
sensitive?: pulumi.Input<boolean>;
|
|
96
176
|
/**
|
|
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.
|
|
177
|
+
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`. At least one of `target` or `customEnvironmentIds` must be set.
|
|
99
178
|
*/
|
|
100
179
|
targets?: pulumi.Input<pulumi.Input<string>[]>;
|
|
101
180
|
/**
|
|
@@ -116,8 +195,7 @@ export interface ProjectEnvironmentVariableArgs {
|
|
|
116
195
|
*/
|
|
117
196
|
comment?: pulumi.Input<string>;
|
|
118
197
|
/**
|
|
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.
|
|
198
|
+
* The IDs of Custom Environments that the Environment Variable should be present on. At least one of `target` or `customEnvironmentIds` must be set.
|
|
121
199
|
*/
|
|
122
200
|
customEnvironmentIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
123
201
|
/**
|
|
@@ -133,13 +211,11 @@ export interface ProjectEnvironmentVariableArgs {
|
|
|
133
211
|
*/
|
|
134
212
|
projectId: pulumi.Input<string>;
|
|
135
213
|
/**
|
|
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))
|
|
214
|
+
* Whether the Environment Variable is sensitive or not. (May be affected by a [team-wide environment variable policy](https://vercel.com/docs/projects/environment-variables/sensitive-environment-variables#environment-variables-policy))
|
|
138
215
|
*/
|
|
139
216
|
sensitive?: pulumi.Input<boolean>;
|
|
140
217
|
/**
|
|
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.
|
|
218
|
+
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`. At least one of `target` or `customEnvironmentIds` must be set.
|
|
143
219
|
*/
|
|
144
220
|
targets?: pulumi.Input<pulumi.Input<string>[]>;
|
|
145
221
|
/**
|
|
@@ -5,6 +5,91 @@ 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 example = new vercel.Project("example", {
|
|
16
|
+
* name: "example-project",
|
|
17
|
+
* gitRepository: {
|
|
18
|
+
* type: "github",
|
|
19
|
+
* repo: "vercel/some-repo",
|
|
20
|
+
* },
|
|
21
|
+
* });
|
|
22
|
+
* // An environment variable that will be created
|
|
23
|
+
* // for this project for the "production" environment.
|
|
24
|
+
* const exampleProjectEnvironmentVariable = new vercel.ProjectEnvironmentVariable("example", {
|
|
25
|
+
* projectId: example.id,
|
|
26
|
+
* key: "foo",
|
|
27
|
+
* value: "bar",
|
|
28
|
+
* targets: ["production"],
|
|
29
|
+
* comment: "a production secret",
|
|
30
|
+
* });
|
|
31
|
+
* // An environment variable that will be created
|
|
32
|
+
* // for this project for the "preview" environment when the branch is "staging".
|
|
33
|
+
* const exampleGitBranch = new vercel.ProjectEnvironmentVariable("example_git_branch", {
|
|
34
|
+
* projectId: example.id,
|
|
35
|
+
* key: "foo",
|
|
36
|
+
* value: "bar-staging",
|
|
37
|
+
* targets: ["preview"],
|
|
38
|
+
* gitBranch: "staging",
|
|
39
|
+
* comment: "a staging secret",
|
|
40
|
+
* });
|
|
41
|
+
* // A sensitive environment variable that will be created
|
|
42
|
+
* // for this project for the "production" environment.
|
|
43
|
+
* const exampleSensitive = new vercel.ProjectEnvironmentVariable("example_sensitive", {
|
|
44
|
+
* projectId: example.id,
|
|
45
|
+
* key: "foo",
|
|
46
|
+
* value: "bar-production",
|
|
47
|
+
* targets: ["production"],
|
|
48
|
+
* sensitive: true,
|
|
49
|
+
* comment: "a sensitive production secret",
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* ## Import
|
|
54
|
+
*
|
|
55
|
+
* If importing into a personal account, or with a team configured on
|
|
56
|
+
*
|
|
57
|
+
* the provider, simply use the project_id and environment variable id.
|
|
58
|
+
*
|
|
59
|
+
* - project_id can be found in the project `settings` tab in the Vercel UI.
|
|
60
|
+
*
|
|
61
|
+
* - environment variable id can be taken from the network tab inside developer tools, while you are on the project page,
|
|
62
|
+
*
|
|
63
|
+
* 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)
|
|
64
|
+
*
|
|
65
|
+
* #
|
|
66
|
+
*
|
|
67
|
+
* Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
68
|
+
*
|
|
69
|
+
* ```sh
|
|
70
|
+
* $ pulumi import vercel:index/projectEnvironmentVariable:ProjectEnvironmentVariable example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/FdT2e1E5Of6Cihmt
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* Alternatively, you can import via the team_id, project_id and
|
|
74
|
+
*
|
|
75
|
+
* environment variable id.
|
|
76
|
+
*
|
|
77
|
+
* - team_id can be found in the team `settings` tab in the Vercel UI.
|
|
78
|
+
*
|
|
79
|
+
* - project_id can be found in the project `settings` tab in the Vercel UI.
|
|
80
|
+
*
|
|
81
|
+
* - environment variable id can be taken from the network tab inside developer tools, while you are on the project page,
|
|
82
|
+
*
|
|
83
|
+
* 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)
|
|
84
|
+
*
|
|
85
|
+
* #
|
|
86
|
+
*
|
|
87
|
+
* Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
88
|
+
*
|
|
89
|
+
* ```sh
|
|
90
|
+
* $ pulumi import vercel:index/projectEnvironmentVariable:ProjectEnvironmentVariable example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/FdT2e1E5Of6Cihmt
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
8
93
|
class ProjectEnvironmentVariable extends pulumi.CustomResource {
|
|
9
94
|
/**
|
|
10
95
|
* Get an existing ProjectEnvironmentVariable resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
{"version":3,"file":"projectEnvironmentVariable.js","sourceRoot":"","sources":["../projectEnvironmentVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AACH,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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,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,0BAA0B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/E,CAAC;;AAhHL,gEAiHC;AAnGG,gBAAgB;AACO,uCAAY,GAAG,oEAAoE,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*/
|
|
4
7
|
export declare class ProjectEnvironmentVariables extends pulumi.CustomResource {
|
|
5
8
|
/**
|
|
6
9
|
* Get an existing ProjectEnvironmentVariables resource's state with the given name, ID, and optional extra
|
|
@@ -5,6 +5,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ProjectEnvironmentVariables = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*/
|
|
8
11
|
class ProjectEnvironmentVariables extends pulumi.CustomResource {
|
|
9
12
|
/**
|
|
10
13
|
* Get an existing ProjectEnvironmentVariables resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectEnvironmentVariables.js","sourceRoot":"","sources":["../projectEnvironmentVariables.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,2BAA4B,SAAQ,MAAM,CAAC,cAAc;IAClE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwC,EAAE,IAAmC;QACtI,OAAO,IAAI,2BAA2B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClF,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,2BAA2B,CAAC,YAAY,CAAC;IAC5E,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAgF,EAAE,IAAmC;QAC3I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2D,CAAC;YAC1E,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAA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AAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,2BAA2B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChF,CAAC;;AAvEL,kEAwEC;AA1DG,gBAAgB;AACO,wCAAY,GAAG,sEAAsE,CAAC"}
|
package/projectMembers.d.ts
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as vercel from "@pulumiverse/vercel";
|
|
10
|
+
*
|
|
11
|
+
* const example = new vercel.Project("example", {name: "example-with-members"});
|
|
12
|
+
* const exampleProjectMembers = new vercel.ProjectMembers("example", {
|
|
13
|
+
* projectId: example.id,
|
|
14
|
+
* members: [
|
|
15
|
+
* {
|
|
16
|
+
* email: "user@example.com",
|
|
17
|
+
* role: "PROJECT_VIEWER",
|
|
18
|
+
* },
|
|
19
|
+
* {
|
|
20
|
+
* username: "some-example-user",
|
|
21
|
+
* role: "PROJECT_DEVELOPER",
|
|
22
|
+
* },
|
|
23
|
+
* ],
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
4
27
|
export declare class ProjectMembers extends pulumi.CustomResource {
|
|
5
28
|
/**
|
|
6
29
|
* Get an existing ProjectMembers resource's state with the given name, ID, and optional extra
|
|
@@ -26,8 +49,7 @@ export declare class ProjectMembers extends pulumi.CustomResource {
|
|
|
26
49
|
*/
|
|
27
50
|
readonly projectId: pulumi.Output<string>;
|
|
28
51
|
/**
|
|
29
|
-
* The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the
|
|
30
|
-
* provider.
|
|
52
|
+
* 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.
|
|
31
53
|
*/
|
|
32
54
|
readonly teamId: pulumi.Output<string>;
|
|
33
55
|
/**
|
|
@@ -52,8 +74,7 @@ export interface ProjectMembersState {
|
|
|
52
74
|
*/
|
|
53
75
|
projectId?: pulumi.Input<string>;
|
|
54
76
|
/**
|
|
55
|
-
* The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the
|
|
56
|
-
* provider.
|
|
77
|
+
* 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.
|
|
57
78
|
*/
|
|
58
79
|
teamId?: pulumi.Input<string>;
|
|
59
80
|
}
|
|
@@ -70,8 +91,7 @@ export interface ProjectMembersArgs {
|
|
|
70
91
|
*/
|
|
71
92
|
projectId: pulumi.Input<string>;
|
|
72
93
|
/**
|
|
73
|
-
* The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the
|
|
74
|
-
* provider.
|
|
94
|
+
* 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.
|
|
75
95
|
*/
|
|
76
96
|
teamId?: pulumi.Input<string>;
|
|
77
97
|
}
|
package/projectMembers.js
CHANGED
|
@@ -5,6 +5,29 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ProjectMembers = 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 example = new vercel.Project("example", {name: "example-with-members"});
|
|
16
|
+
* const exampleProjectMembers = new vercel.ProjectMembers("example", {
|
|
17
|
+
* projectId: example.id,
|
|
18
|
+
* members: [
|
|
19
|
+
* {
|
|
20
|
+
* email: "user@example.com",
|
|
21
|
+
* role: "PROJECT_VIEWER",
|
|
22
|
+
* },
|
|
23
|
+
* {
|
|
24
|
+
* username: "some-example-user",
|
|
25
|
+
* role: "PROJECT_DEVELOPER",
|
|
26
|
+
* },
|
|
27
|
+
* ],
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
8
31
|
class ProjectMembers extends pulumi.CustomResource {
|
|
9
32
|
/**
|
|
10
33
|
* Get an existing ProjectMembers resource's state with the given name, ID, and optional extra
|
package/projectMembers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectMembers.js","sourceRoot":"","sources":["../projectMembers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EA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