@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/accessGroup.d.ts
CHANGED
|
@@ -1,4 +1,36 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides an Access Group Resource.
|
|
4
|
+
*
|
|
5
|
+
* Access Groups provide a way to manage groups of Vercel users across projects on your team. They are a set of project role assignations, a combination of Vercel users and the projects they work on.
|
|
6
|
+
*
|
|
7
|
+
* For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/accounts/team-members-and-roles/access-groups).
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as vercel from "@pulumiverse/vercel";
|
|
14
|
+
*
|
|
15
|
+
* const example = new vercel.AccessGroup("example", {name: "example-access-group"});
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ## Import
|
|
19
|
+
*
|
|
20
|
+
* If importing into a personal account, or with a team configured on
|
|
21
|
+
*
|
|
22
|
+
* the provider, simply use the access_group_id.
|
|
23
|
+
*
|
|
24
|
+
* ```sh
|
|
25
|
+
* $ pulumi import vercel:index/accessGroup:AccessGroup example ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* If importing to a team, use the team_id and access_group_id.
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import vercel:index/accessGroup:AccessGroup example team_xxxxxxxxxxxxxxxxxxxxxxxx/ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
2
34
|
export declare class AccessGroup extends pulumi.CustomResource {
|
|
3
35
|
/**
|
|
4
36
|
* Get an existing AccessGroup resource's state with the given name, ID, and optional extra
|
|
@@ -20,8 +52,7 @@ export declare class AccessGroup extends pulumi.CustomResource {
|
|
|
20
52
|
*/
|
|
21
53
|
readonly name: pulumi.Output<string>;
|
|
22
54
|
/**
|
|
23
|
-
* The ID of the team the Access Group should exist under. Required when configuring a team resource if a default team has
|
|
24
|
-
* not been set in the provider.
|
|
55
|
+
* The ID of the team the Access Group should exist under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
25
56
|
*/
|
|
26
57
|
readonly teamId: pulumi.Output<string>;
|
|
27
58
|
/**
|
|
@@ -42,8 +73,7 @@ export interface AccessGroupState {
|
|
|
42
73
|
*/
|
|
43
74
|
name?: pulumi.Input<string>;
|
|
44
75
|
/**
|
|
45
|
-
* The ID of the team the Access Group should exist under. Required when configuring a team resource if a default team has
|
|
46
|
-
* not been set in the provider.
|
|
76
|
+
* The ID of the team the Access Group should exist under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
47
77
|
*/
|
|
48
78
|
teamId?: pulumi.Input<string>;
|
|
49
79
|
}
|
|
@@ -56,8 +86,7 @@ export interface AccessGroupArgs {
|
|
|
56
86
|
*/
|
|
57
87
|
name?: pulumi.Input<string>;
|
|
58
88
|
/**
|
|
59
|
-
* The ID of the team the Access Group should exist under. Required when configuring a team resource if a default team has
|
|
60
|
-
* not been set in the provider.
|
|
89
|
+
* The ID of the team the Access Group should exist under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
61
90
|
*/
|
|
62
91
|
teamId?: pulumi.Input<string>;
|
|
63
92
|
}
|
package/accessGroup.js
CHANGED
|
@@ -5,6 +5,38 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.AccessGroup = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides an Access Group Resource.
|
|
10
|
+
*
|
|
11
|
+
* Access Groups provide a way to manage groups of Vercel users across projects on your team. They are a set of project role assignations, a combination of Vercel users and the projects they work on.
|
|
12
|
+
*
|
|
13
|
+
* For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/accounts/team-members-and-roles/access-groups).
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as vercel from "@pulumiverse/vercel";
|
|
20
|
+
*
|
|
21
|
+
* const example = new vercel.AccessGroup("example", {name: "example-access-group"});
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Import
|
|
25
|
+
*
|
|
26
|
+
* If importing into a personal account, or with a team configured on
|
|
27
|
+
*
|
|
28
|
+
* the provider, simply use the access_group_id.
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import vercel:index/accessGroup:AccessGroup example ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* If importing to a team, use the team_id and access_group_id.
|
|
35
|
+
*
|
|
36
|
+
* ```sh
|
|
37
|
+
* $ pulumi import vercel:index/accessGroup:AccessGroup example team_xxxxxxxxxxxxxxxxxxxxxxxx/ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
8
40
|
class AccessGroup extends pulumi.CustomResource {
|
|
9
41
|
/**
|
|
10
42
|
* Get an existing AccessGroup resource's state with the given name, ID, and optional extra
|
package/accessGroup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessGroup.js","sourceRoot":"","sources":["../accessGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;
|
|
1
|
+
{"version":3,"file":"accessGroup.js","sourceRoot":"","sources":["../accessGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAC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AI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA3DL,kCA4DC;AA9CG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
|
package/accessGroupProject.d.ts
CHANGED
|
@@ -1,4 +1,42 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides an Access Group Project Resource.
|
|
4
|
+
*
|
|
5
|
+
* An Access Group Project resource defines the relationship between a `vercel.AccessGroup` and a `vercel.Project`.
|
|
6
|
+
*
|
|
7
|
+
* For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/accounts/team-members-and-roles/access-groups).
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as vercel from "@pulumiverse/vercel";
|
|
14
|
+
*
|
|
15
|
+
* const example = new vercel.Project("example", {name: "example-project"});
|
|
16
|
+
* const exampleAccessGroup = new vercel.AccessGroup("example", {name: "example-access-group"});
|
|
17
|
+
* const exampleAccessGroupProject = new vercel.AccessGroupProject("example", {
|
|
18
|
+
* projectId: example.id,
|
|
19
|
+
* accessGroupId: exampleAccessGroup.id,
|
|
20
|
+
* role: "ADMIN",
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Import
|
|
25
|
+
*
|
|
26
|
+
* If importing into a personal account, or with a team configured on
|
|
27
|
+
*
|
|
28
|
+
* the provider, use the access_group_id and project_id.
|
|
29
|
+
*
|
|
30
|
+
* ```sh
|
|
31
|
+
* $ pulumi import vercel:index/accessGroupProject:AccessGroupProject example ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* If importing to a team, use the team_id, access_group_id and project_id.
|
|
35
|
+
*
|
|
36
|
+
* ```sh
|
|
37
|
+
* $ pulumi import vercel:index/accessGroupProject:AccessGroupProject example team_xxxxxxxxxxxxxxxxxxxxxxxx/ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
2
40
|
export declare class AccessGroupProject extends pulumi.CustomResource {
|
|
3
41
|
/**
|
|
4
42
|
* Get an existing AccessGroupProject resource's state with the given name, ID, and optional extra
|
|
@@ -28,8 +66,7 @@ export declare class AccessGroupProject extends pulumi.CustomResource {
|
|
|
28
66
|
*/
|
|
29
67
|
readonly role: pulumi.Output<string>;
|
|
30
68
|
/**
|
|
31
|
-
* The ID of the team the access group project should exist under. Required when configuring a team resource if a default
|
|
32
|
-
* team has not been set in the provider.
|
|
69
|
+
* The ID of the team the access group project should exist under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
33
70
|
*/
|
|
34
71
|
readonly teamId: pulumi.Output<string>;
|
|
35
72
|
/**
|
|
@@ -58,8 +95,7 @@ export interface AccessGroupProjectState {
|
|
|
58
95
|
*/
|
|
59
96
|
role?: pulumi.Input<string>;
|
|
60
97
|
/**
|
|
61
|
-
* The ID of the team the access group project should exist under. Required when configuring a team resource if a default
|
|
62
|
-
* team has not been set in the provider.
|
|
98
|
+
* The ID of the team the access group project should exist under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
63
99
|
*/
|
|
64
100
|
teamId?: pulumi.Input<string>;
|
|
65
101
|
}
|
|
@@ -80,8 +116,7 @@ export interface AccessGroupProjectArgs {
|
|
|
80
116
|
*/
|
|
81
117
|
role: pulumi.Input<string>;
|
|
82
118
|
/**
|
|
83
|
-
* The ID of the team the access group project should exist under. Required when configuring a team resource if a default
|
|
84
|
-
* team has not been set in the provider.
|
|
119
|
+
* The ID of the team the access group project should exist under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
85
120
|
*/
|
|
86
121
|
teamId?: pulumi.Input<string>;
|
|
87
122
|
}
|
package/accessGroupProject.js
CHANGED
|
@@ -5,6 +5,44 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.AccessGroupProject = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides an Access Group Project Resource.
|
|
10
|
+
*
|
|
11
|
+
* An Access Group Project resource defines the relationship between a `vercel.AccessGroup` and a `vercel.Project`.
|
|
12
|
+
*
|
|
13
|
+
* For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/accounts/team-members-and-roles/access-groups).
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as vercel from "@pulumiverse/vercel";
|
|
20
|
+
*
|
|
21
|
+
* const example = new vercel.Project("example", {name: "example-project"});
|
|
22
|
+
* const exampleAccessGroup = new vercel.AccessGroup("example", {name: "example-access-group"});
|
|
23
|
+
* const exampleAccessGroupProject = new vercel.AccessGroupProject("example", {
|
|
24
|
+
* projectId: example.id,
|
|
25
|
+
* accessGroupId: exampleAccessGroup.id,
|
|
26
|
+
* role: "ADMIN",
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* ## Import
|
|
31
|
+
*
|
|
32
|
+
* If importing into a personal account, or with a team configured on
|
|
33
|
+
*
|
|
34
|
+
* the provider, use the access_group_id and project_id.
|
|
35
|
+
*
|
|
36
|
+
* ```sh
|
|
37
|
+
* $ pulumi import vercel:index/accessGroupProject:AccessGroupProject example ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* If importing to a team, use the team_id, access_group_id and project_id.
|
|
41
|
+
*
|
|
42
|
+
* ```sh
|
|
43
|
+
* $ pulumi import vercel:index/accessGroupProject:AccessGroupProject example team_xxxxxxxxxxxxxxxxxxxxxxxx/ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
8
46
|
class AccessGroupProject extends pulumi.CustomResource {
|
|
9
47
|
/**
|
|
10
48
|
* Get an existing AccessGroupProject resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessGroupProject.js","sourceRoot":"","sources":["../accessGroupProject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;
|
|
1
|
+
{"version":3,"file":"accessGroupProject.js","sourceRoot":"","sources":["../accessGroupProject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,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+
* An Alias allows a `vercel.Deployment` to be accessed through a different URL.
|
|
6
|
+
*/
|
|
2
7
|
export declare class Alias extends pulumi.CustomResource {
|
|
3
8
|
/**
|
|
4
9
|
* Get an existing Alias resource's state with the given name, ID, and optional extra
|
|
@@ -24,8 +29,7 @@ export declare class Alias extends pulumi.CustomResource {
|
|
|
24
29
|
*/
|
|
25
30
|
readonly deploymentId: pulumi.Output<string>;
|
|
26
31
|
/**
|
|
27
|
-
* The ID of the team the Alias and Deployment exist under. Required when configuring a team resource if a default team has
|
|
28
|
-
* not been set in the provider.
|
|
32
|
+
* The ID of the team the Alias and Deployment exist under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
29
33
|
*/
|
|
30
34
|
readonly teamId: pulumi.Output<string>;
|
|
31
35
|
/**
|
|
@@ -50,8 +54,7 @@ export interface AliasState {
|
|
|
50
54
|
*/
|
|
51
55
|
deploymentId?: pulumi.Input<string>;
|
|
52
56
|
/**
|
|
53
|
-
* The ID of the team the Alias and Deployment exist under. Required when configuring a team resource if a default team has
|
|
54
|
-
* not been set in the provider.
|
|
57
|
+
* The ID of the team the Alias and Deployment exist under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
55
58
|
*/
|
|
56
59
|
teamId?: pulumi.Input<string>;
|
|
57
60
|
}
|
|
@@ -68,8 +71,7 @@ export interface AliasArgs {
|
|
|
68
71
|
*/
|
|
69
72
|
deploymentId: pulumi.Input<string>;
|
|
70
73
|
/**
|
|
71
|
-
* The ID of the team the Alias and Deployment exist under. Required when configuring a team resource if a default team has
|
|
72
|
-
* not been set in the provider.
|
|
74
|
+
* The ID of the team the Alias and Deployment exist under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
73
75
|
*/
|
|
74
76
|
teamId?: pulumi.Input<string>;
|
|
75
77
|
}
|
package/alias.js
CHANGED
|
@@ -5,6 +5,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.Alias = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides an Alias resource.
|
|
10
|
+
*
|
|
11
|
+
* An Alias allows a `vercel.Deployment` to be accessed through a different URL.
|
|
12
|
+
*/
|
|
8
13
|
class Alias extends pulumi.CustomResource {
|
|
9
14
|
/**
|
|
10
15
|
* Get an existing Alias resource's state with the given name, ID, and optional extra
|
package/alias.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias.js","sourceRoot":"","sources":["../alias.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5D,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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;
|
|
1
|
+
{"version":3,"file":"alias.js","sourceRoot":"","sources":["../alias.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;GAIG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IA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CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,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,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AAvEL,sBAwEC;AA1DG,gBAAgB;AACO,kBAAY,GAAG,0BAA0B,CAAC"}
|
package/attackChallengeMode.d.ts
CHANGED
|
@@ -1,4 +1,34 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides an Attack Challenge Mode resource.
|
|
4
|
+
*
|
|
5
|
+
* Attack Challenge Mode prevent malicious traffic by showing a verification challenge for every visitor.
|
|
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.Project("example", {name: "example-project"});
|
|
14
|
+
* const exampleAttackChallengeMode = new vercel.AttackChallengeMode("example", {
|
|
15
|
+
* projectId: example.id,
|
|
16
|
+
* enabled: true,
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Import
|
|
21
|
+
*
|
|
22
|
+
* You can import via the team_id and project_id.
|
|
23
|
+
*
|
|
24
|
+
* - team_id can be found in the team `settings` tab in the Vercel UI.
|
|
25
|
+
*
|
|
26
|
+
* - project_id can be found in the project `settings` tab in the Vercel UI.
|
|
27
|
+
*
|
|
28
|
+
* ```sh
|
|
29
|
+
* $ pulumi import vercel:index/attackChallengeMode:AttackChallengeMode example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
2
32
|
export declare class AttackChallengeMode extends pulumi.CustomResource {
|
|
3
33
|
/**
|
|
4
34
|
* Get an existing AttackChallengeMode resource's state with the given name, ID, and optional extra
|
|
@@ -24,8 +54,7 @@ export declare class AttackChallengeMode extends pulumi.CustomResource {
|
|
|
24
54
|
*/
|
|
25
55
|
readonly projectId: pulumi.Output<string>;
|
|
26
56
|
/**
|
|
27
|
-
* The ID of the team the Project exists under. Required when configuring a team resource if a default team has not been
|
|
28
|
-
* set in the provider.
|
|
57
|
+
* 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.
|
|
29
58
|
*/
|
|
30
59
|
readonly teamId: pulumi.Output<string>;
|
|
31
60
|
/**
|
|
@@ -50,8 +79,7 @@ export interface AttackChallengeModeState {
|
|
|
50
79
|
*/
|
|
51
80
|
projectId?: pulumi.Input<string>;
|
|
52
81
|
/**
|
|
53
|
-
* The ID of the team the Project exists under. Required when configuring a team resource if a default team has not been
|
|
54
|
-
* set in the provider.
|
|
82
|
+
* The ID of the team the Project exists under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
55
83
|
*/
|
|
56
84
|
teamId?: pulumi.Input<string>;
|
|
57
85
|
}
|
|
@@ -68,8 +96,7 @@ export interface AttackChallengeModeArgs {
|
|
|
68
96
|
*/
|
|
69
97
|
projectId: pulumi.Input<string>;
|
|
70
98
|
/**
|
|
71
|
-
* The ID of the team the Project exists under. Required when configuring a team resource if a default team has not been
|
|
72
|
-
* set in the provider.
|
|
99
|
+
* 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.
|
|
73
100
|
*/
|
|
74
101
|
teamId?: pulumi.Input<string>;
|
|
75
102
|
}
|
package/attackChallengeMode.js
CHANGED
|
@@ -5,6 +5,36 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.AttackChallengeMode = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides an Attack Challenge Mode resource.
|
|
10
|
+
*
|
|
11
|
+
* Attack Challenge Mode prevent malicious traffic by showing a verification challenge for every visitor.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as vercel from "@pulumiverse/vercel";
|
|
18
|
+
*
|
|
19
|
+
* const example = new vercel.Project("example", {name: "example-project"});
|
|
20
|
+
* const exampleAttackChallengeMode = new vercel.AttackChallengeMode("example", {
|
|
21
|
+
* projectId: example.id,
|
|
22
|
+
* enabled: true,
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ## Import
|
|
27
|
+
*
|
|
28
|
+
* You can import via the team_id and project_id.
|
|
29
|
+
*
|
|
30
|
+
* - team_id can be found in the team `settings` tab in the Vercel UI.
|
|
31
|
+
*
|
|
32
|
+
* - project_id can be found in the project `settings` tab in the Vercel UI.
|
|
33
|
+
*
|
|
34
|
+
* ```sh
|
|
35
|
+
* $ pulumi import vercel:index/attackChallengeMode:AttackChallengeMode example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
8
38
|
class AttackChallengeMode extends pulumi.CustomResource {
|
|
9
39
|
/**
|
|
10
40
|
* Get an existing AttackChallengeMode resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attackChallengeMode.js","sourceRoot":"","sources":["../attackChallengeMode.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;
|
|
1
|
+
{"version":3,"file":"attackChallengeMode.js","sourceRoot":"","sources":["../attackChallengeMode.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAA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AAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAvEL,kDAwEC;AA1DG,gBAAgB;AACO,gCAAY,GAAG,sDAAsD,CAAC"}
|
package/customEnvironment.d.ts
CHANGED
|
@@ -1,6 +1,59 @@
|
|
|
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
|
+
* Environments help manage the deployment lifecycle on the Vercel platform.
|
|
6
|
+
*
|
|
7
|
+
* By default, all teams use three environments when developing their project: Production, Preview, and Development. However, teams can also create custom environments to suit their needs. To learn more about the limits for each plan, see limits.
|
|
8
|
+
*
|
|
9
|
+
* Custom environments allow you to configure customized, pre-production environments for your project, such as staging or QA, with branch rules that will automatically deploy your branch when the branch name matches the rule. With custom environments you can also attach a domain to your environment, set environment variables, or import environment variables from another environment.
|
|
10
|
+
*
|
|
11
|
+
* Custom environments are designed as pre-production environments intended for long-running use. This contrasts with regular preview environments, which are designed for creating ephemeral, short-lived deployments.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as vercel from "@pulumiverse/vercel";
|
|
18
|
+
*
|
|
19
|
+
* const example = new vercel.Project("example", {name: "example-project-with-custom-env"});
|
|
20
|
+
* const exampleCustomEnvironment = new vercel.CustomEnvironment("example", {
|
|
21
|
+
* projectId: example.id,
|
|
22
|
+
* name: "example-custom-env",
|
|
23
|
+
* description: "A description of the custom environment",
|
|
24
|
+
* branchTracking: {
|
|
25
|
+
* pattern: "staging-",
|
|
26
|
+
* type: "startsWith",
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ## Import
|
|
32
|
+
*
|
|
33
|
+
* If importing into a personal account, or with a team configured on
|
|
34
|
+
*
|
|
35
|
+
* the provider, simply use the project_id and custom environment name.
|
|
36
|
+
*
|
|
37
|
+
* - project_id can be found in the project `settings` tab in the Vercel UI.
|
|
38
|
+
*
|
|
39
|
+
* ```sh
|
|
40
|
+
* $ pulumi import vercel:index/customEnvironment:CustomEnvironment example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/example-custom-env
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* Alternatively, you can import via the team_id, project_id and environment variable id.
|
|
44
|
+
*
|
|
45
|
+
* - team_id can be found in the team `settings` tab in the Vercel UI.
|
|
46
|
+
*
|
|
47
|
+
* - project_id can be found in the project `settings` tab in the Vercel UI.
|
|
48
|
+
*
|
|
49
|
+
* #
|
|
50
|
+
*
|
|
51
|
+
* Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
52
|
+
*
|
|
53
|
+
* ```sh
|
|
54
|
+
* $ pulumi import vercel:index/customEnvironment:CustomEnvironment example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/example-custom-env
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
4
57
|
export declare class CustomEnvironment extends pulumi.CustomResource {
|
|
5
58
|
/**
|
|
6
59
|
* Get an existing CustomEnvironment resource's state with the given name, ID, and optional extra
|
|
@@ -34,8 +87,7 @@ export declare class CustomEnvironment extends pulumi.CustomResource {
|
|
|
34
87
|
*/
|
|
35
88
|
readonly projectId: pulumi.Output<string>;
|
|
36
89
|
/**
|
|
37
|
-
* The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the
|
|
38
|
-
* provider.
|
|
90
|
+
* 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.
|
|
39
91
|
*/
|
|
40
92
|
readonly teamId: pulumi.Output<string>;
|
|
41
93
|
/**
|
|
@@ -68,8 +120,7 @@ export interface CustomEnvironmentState {
|
|
|
68
120
|
*/
|
|
69
121
|
projectId?: pulumi.Input<string>;
|
|
70
122
|
/**
|
|
71
|
-
* The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the
|
|
72
|
-
* provider.
|
|
123
|
+
* 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.
|
|
73
124
|
*/
|
|
74
125
|
teamId?: pulumi.Input<string>;
|
|
75
126
|
}
|
|
@@ -94,8 +145,7 @@ export interface CustomEnvironmentArgs {
|
|
|
94
145
|
*/
|
|
95
146
|
projectId: pulumi.Input<string>;
|
|
96
147
|
/**
|
|
97
|
-
* The team ID to add the project to. Required when configuring a team resource if a default team has not been set in the
|
|
98
|
-
* provider.
|
|
148
|
+
* 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.
|
|
99
149
|
*/
|
|
100
150
|
teamId?: pulumi.Input<string>;
|
|
101
151
|
}
|
package/customEnvironment.js
CHANGED
|
@@ -5,6 +5,59 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.CustomEnvironment = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Environments help manage the deployment lifecycle on the Vercel platform.
|
|
10
|
+
*
|
|
11
|
+
* By default, all teams use three environments when developing their project: Production, Preview, and Development. However, teams can also create custom environments to suit their needs. To learn more about the limits for each plan, see limits.
|
|
12
|
+
*
|
|
13
|
+
* Custom environments allow you to configure customized, pre-production environments for your project, such as staging or QA, with branch rules that will automatically deploy your branch when the branch name matches the rule. With custom environments you can also attach a domain to your environment, set environment variables, or import environment variables from another environment.
|
|
14
|
+
*
|
|
15
|
+
* Custom environments are designed as pre-production environments intended for long-running use. This contrasts with regular preview environments, which are designed for creating ephemeral, short-lived deployments.
|
|
16
|
+
*
|
|
17
|
+
* ## Example Usage
|
|
18
|
+
*
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
+
* import * as vercel from "@pulumiverse/vercel";
|
|
22
|
+
*
|
|
23
|
+
* const example = new vercel.Project("example", {name: "example-project-with-custom-env"});
|
|
24
|
+
* const exampleCustomEnvironment = new vercel.CustomEnvironment("example", {
|
|
25
|
+
* projectId: example.id,
|
|
26
|
+
* name: "example-custom-env",
|
|
27
|
+
* description: "A description of the custom environment",
|
|
28
|
+
* branchTracking: {
|
|
29
|
+
* pattern: "staging-",
|
|
30
|
+
* type: "startsWith",
|
|
31
|
+
* },
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ## Import
|
|
36
|
+
*
|
|
37
|
+
* If importing into a personal account, or with a team configured on
|
|
38
|
+
*
|
|
39
|
+
* the provider, simply use the project_id and custom environment name.
|
|
40
|
+
*
|
|
41
|
+
* - project_id can be found in the project `settings` tab in the Vercel UI.
|
|
42
|
+
*
|
|
43
|
+
* ```sh
|
|
44
|
+
* $ pulumi import vercel:index/customEnvironment:CustomEnvironment example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/example-custom-env
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* Alternatively, you can import via the team_id, project_id and environment variable id.
|
|
48
|
+
*
|
|
49
|
+
* - team_id can be found in the team `settings` tab in the Vercel UI.
|
|
50
|
+
*
|
|
51
|
+
* - project_id can be found in the project `settings` tab in the Vercel UI.
|
|
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/customEnvironment:CustomEnvironment example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/example-custom-env
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
8
61
|
class CustomEnvironment extends pulumi.CustomResource {
|
|
9
62
|
/**
|
|
10
63
|
* Get an existing CustomEnvironment resource's state with the given name, ID, and optional extra
|
package/customEnvironment.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customEnvironment.js","sourceRoot":"","sources":["../customEnvironment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;
|
|
1
|
+
{"version":3,"file":"customEnvironment.js","sourceRoot":"","sources":["../customEnvironment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC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