@pulumiverse/vercel 4.6.1 → 5.0.0-alpha.1782928871
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 +3 -2
- package/accessGroup.js +3 -2
- package/accessGroup.js.map +1 -1
- package/accessGroupProject.d.ts +4 -3
- package/accessGroupProject.js +4 -3
- package/accessGroupProject.js.map +1 -1
- package/attackChallengeMode.d.ts +4 -4
- package/attackChallengeMode.js +4 -4
- package/blobObject.d.ts +177 -0
- package/blobObject.js +89 -0
- package/blobObject.js.map +1 -0
- package/blobProjectConnection.d.ts +144 -0
- package/blobProjectConnection.js +105 -0
- package/blobProjectConnection.js.map +1 -0
- package/blobStore.d.ts +159 -0
- package/blobStore.js +100 -0
- package/blobStore.js.map +1 -0
- package/bulkRedirects.d.ts +135 -0
- package/bulkRedirects.js +114 -0
- package/bulkRedirects.js.map +1 -0
- package/customEnvironment.d.ts +7 -9
- package/customEnvironment.js +7 -9
- package/customEnvironment.js.map +1 -1
- package/deployment.d.ts +36 -0
- package/deployment.js +27 -0
- package/deployment.js.map +1 -1
- package/dnsRecord.d.ts +8 -12
- package/dnsRecord.js +8 -12
- package/dnsRecord.js.map +1 -1
- package/edgeConfig.d.ts +7 -9
- package/edgeConfig.js +7 -9
- package/edgeConfig.js.map +1 -1
- package/edgeConfigItem.d.ts +6 -10
- package/edgeConfigItem.js +6 -10
- package/edgeConfigItem.js.map +1 -1
- package/edgeConfigSchema.d.ts +6 -8
- package/edgeConfigSchema.js +6 -8
- package/edgeConfigSchema.js.map +1 -1
- package/edgeConfigToken.d.ts +7 -11
- package/edgeConfigToken.js +7 -11
- package/edgeConfigToken.js.map +1 -1
- package/featureFlagConfig.d.ts +167 -0
- package/featureFlagConfig.js +131 -0
- package/featureFlagConfig.js.map +1 -0
- package/featureFlagDefinition.d.ts +160 -0
- package/featureFlagDefinition.js +111 -0
- package/featureFlagDefinition.js.map +1 -0
- package/featureFlagSdkKey.d.ts +160 -0
- package/featureFlagSdkKey.js +120 -0
- package/featureFlagSdkKey.js.map +1 -0
- package/featureFlagSegment.d.ts +191 -0
- package/featureFlagSegment.js +126 -0
- package/featureFlagSegment.js.map +1 -0
- package/firewallBypass.d.ts +3 -2
- package/firewallBypass.js +3 -2
- package/firewallBypass.js.map +1 -1
- package/firewallConfig.d.ts +2 -0
- package/firewallConfig.js +2 -0
- package/firewallConfig.js.map +1 -1
- package/getBlobObject.d.ts +100 -0
- package/getBlobObject.js +32 -0
- package/getBlobObject.js.map +1 -0
- package/getBlobProjectConnections.d.ts +91 -0
- package/getBlobProjectConnections.js +64 -0
- package/getBlobProjectConnections.js.map +1 -0
- package/getBlobStore.d.ts +104 -0
- package/getBlobStore.js +54 -0
- package/getBlobStore.js.map +1 -0
- package/getBlobStoreSecrets.d.ts +80 -0
- package/getBlobStoreSecrets.js +54 -0
- package/getBlobStoreSecrets.js.map +1 -0
- package/getBlobStores.d.ts +63 -0
- package/getBlobStores.js +48 -0
- package/getBlobStores.js.map +1 -0
- package/getBulkRedirects.d.ts +97 -0
- package/getBulkRedirects.js +60 -0
- package/getBulkRedirects.js.map +1 -0
- package/getFeatureFlag.d.ts +121 -0
- package/getFeatureFlag.js +60 -0
- package/getFeatureFlag.js.map +1 -0
- package/getFeatureFlagSdkKey.d.ts +100 -0
- package/getFeatureFlagSdkKey.js +60 -0
- package/getFeatureFlagSdkKey.js.map +1 -0
- package/getFeatureFlagSegment.d.ts +113 -0
- package/getFeatureFlagSegment.js +60 -0
- package/getFeatureFlagSegment.js.map +1 -0
- package/getFile.d.ts +9 -0
- package/getFile.js.map +1 -1
- package/getPrebuiltProject.d.ts +51 -0
- package/getPrebuiltProject.js +42 -0
- package/getPrebuiltProject.js.map +1 -1
- package/getProject.d.ts +14 -4
- package/getProject.js.map +1 -1
- package/getProjectDirectory.d.ts +47 -0
- package/getProjectDirectory.js +38 -0
- package/getProjectDirectory.js.map +1 -1
- package/getProjectRoutes.d.ts +89 -0
- package/getProjectRoutes.js +62 -0
- package/getProjectRoutes.js.map +1 -0
- package/index.d.ts +63 -0
- package/index.js +88 -2
- package/index.js.map +1 -1
- package/logDrain.d.ts +6 -8
- package/logDrain.js +6 -8
- package/logDrain.js.map +1 -1
- package/microfrontendGroup.d.ts +4 -5
- package/microfrontendGroup.js +4 -5
- package/microfrontendGroup.js.map +1 -1
- package/microfrontendGroupMembership.d.ts +4 -7
- package/microfrontendGroupMembership.js +4 -7
- package/microfrontendGroupMembership.js.map +1 -1
- package/package.json +2 -2
- package/project.d.ts +75 -38
- package/project.js +53 -14
- package/project.js.map +1 -1
- package/projectCrons.d.ts +6 -7
- package/projectCrons.js +6 -7
- package/projectCrons.js.map +1 -1
- package/projectDeploymentRetention.d.ts +12 -4
- package/projectDeploymentRetention.js +12 -4
- package/projectDeploymentRetention.js.map +1 -1
- package/projectDomain.d.ts +6 -8
- package/projectDomain.js +6 -8
- package/projectDomain.js.map +1 -1
- package/projectEnvironmentVariable.d.ts +24 -20
- package/projectEnvironmentVariable.js +23 -16
- package/projectEnvironmentVariable.js.map +1 -1
- package/projectEnvironmentVariables.d.ts +18 -5
- package/projectEnvironmentVariables.js +18 -5
- package/projectEnvironmentVariables.js.map +1 -1
- package/projectMembers.d.ts +6 -0
- package/projectMembers.js +6 -0
- package/projectMembers.js.map +1 -1
- package/projectProtectionBypass.d.ts +171 -0
- package/projectProtectionBypass.js +119 -0
- package/projectProtectionBypass.js.map +1 -0
- package/projectRoute.d.ts +219 -0
- package/projectRoute.js +148 -0
- package/projectRoute.js.map +1 -0
- package/sharedEnvironmentVariable.d.ts +28 -9
- package/sharedEnvironmentVariable.js +27 -5
- package/sharedEnvironmentVariable.js.map +1 -1
- package/teamConfig.d.ts +3 -2
- package/teamConfig.js +3 -2
- package/teamConfig.js.map +1 -1
- package/teamMember.d.ts +3 -1
- package/teamMember.js +3 -1
- package/teamMember.js.map +1 -1
- package/types/input.d.ts +324 -4
- package/types/output.d.ts +705 -2
- package/userToken.d.ts +186 -0
- package/userToken.js +115 -0
- package/userToken.js.map +1 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Provides a Project Route resource.
|
|
6
|
+
*
|
|
7
|
+
* This resource manages one live project-level routing rule for a Vercel project. Each mutation stages a new routing-rules version and promotes it immediately so Terraform state reflects production traffic behavior.
|
|
8
|
+
*
|
|
9
|
+
* Reads and imports intentionally target the live version and ignore unpublished staged drafts created outside Terraform.
|
|
10
|
+
*
|
|
11
|
+
* Position is applied when the rule is created or replaced. Use before and after with referenceRouteId when you need deterministic ordering across multiple Terraform-managed rules.
|
|
12
|
+
*
|
|
13
|
+
* The Vercel API does not return placement metadata for an individual rule. Terraform preserves the configured position on normal reads, but imported routes start with no position in state.
|
|
14
|
+
*
|
|
15
|
+
* > This resource refuses to mutate a project while it has an unpublished staged routing-rules version. Publish, restore, or discard the draft first.
|
|
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"});
|
|
24
|
+
* const exampleProjectRoute = new vercel.ProjectRoute("example", {
|
|
25
|
+
* projectId: example.id,
|
|
26
|
+
* name: "redirect-legacy-docs",
|
|
27
|
+
* position: {
|
|
28
|
+
* placement: "start",
|
|
29
|
+
* },
|
|
30
|
+
* route: {
|
|
31
|
+
* src: "/docs/:path*",
|
|
32
|
+
* dest: "/guides/:path*",
|
|
33
|
+
* status: 308,
|
|
34
|
+
* },
|
|
35
|
+
* });
|
|
36
|
+
* const rewriteEuCampaign = new vercel.ProjectRoute("rewrite_eu_campaign", {
|
|
37
|
+
* projectId: example.id,
|
|
38
|
+
* name: "rewrite-eu-campaign",
|
|
39
|
+
* position: {
|
|
40
|
+
* placement: "after",
|
|
41
|
+
* referenceRouteId: exampleProjectRoute.id,
|
|
42
|
+
* },
|
|
43
|
+
* route: {
|
|
44
|
+
* src: "/promo",
|
|
45
|
+
* dest: "/campaigns/eu",
|
|
46
|
+
* has: [{
|
|
47
|
+
* type: "header",
|
|
48
|
+
* key: "x-region",
|
|
49
|
+
* value: "eu",
|
|
50
|
+
* }],
|
|
51
|
+
* missings: [{
|
|
52
|
+
* type: "cookie",
|
|
53
|
+
* key: "preview",
|
|
54
|
+
* value: "1",
|
|
55
|
+
* }],
|
|
56
|
+
* },
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* ## Import
|
|
61
|
+
*
|
|
62
|
+
* The `pulumi import` command can be used, for example:
|
|
63
|
+
*
|
|
64
|
+
* If importing with a team configured on the provider, use the project ID and route ID.
|
|
65
|
+
* - projectId can be found in the project `settings` tab in the Vercel UI.
|
|
66
|
+
* - routeId can be read from `data.vercel_project_routes` or the Vercel routing-rules API.
|
|
67
|
+
*
|
|
68
|
+
* ```sh
|
|
69
|
+
* $ pulumi import vercel:index/projectRoute:ProjectRoute example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/rt_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* Alternatively, you can import via the team_id, project_id, and route_id.
|
|
73
|
+
* - teamId can be found in the team `settings` tab in the Vercel UI.
|
|
74
|
+
* - projectId can be found in the project `settings` tab in the Vercel UI.
|
|
75
|
+
* - routeId can be read from `data.vercel_project_routes` or the Vercel routing-rules API.
|
|
76
|
+
*
|
|
77
|
+
* ```sh
|
|
78
|
+
* $ pulumi import vercel:index/projectRoute:ProjectRoute example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/rt_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
export declare class ProjectRoute extends pulumi.CustomResource {
|
|
82
|
+
/**
|
|
83
|
+
* Get an existing ProjectRoute resource's state with the given name, ID, and optional extra
|
|
84
|
+
* properties used to qualify the lookup.
|
|
85
|
+
*
|
|
86
|
+
* @param name The _unique_ name of the resulting resource.
|
|
87
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
88
|
+
* @param state Any extra arguments used during the lookup.
|
|
89
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
90
|
+
*/
|
|
91
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectRouteState, opts?: pulumi.CustomResourceOptions): ProjectRoute;
|
|
92
|
+
/**
|
|
93
|
+
* Returns true if the given object is an instance of ProjectRoute. This is designed to work even
|
|
94
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
95
|
+
*/
|
|
96
|
+
static isInstance(obj: any): obj is ProjectRoute;
|
|
97
|
+
/**
|
|
98
|
+
* An optional description of the rule.
|
|
99
|
+
*/
|
|
100
|
+
readonly description: pulumi.Output<string>;
|
|
101
|
+
/**
|
|
102
|
+
* Whether the rule is enabled.
|
|
103
|
+
*/
|
|
104
|
+
readonly enabled: pulumi.Output<boolean>;
|
|
105
|
+
/**
|
|
106
|
+
* A human-readable name for the rule.
|
|
107
|
+
*/
|
|
108
|
+
readonly name: pulumi.Output<string>;
|
|
109
|
+
/**
|
|
110
|
+
* Where to insert the rule when it is created or replaced. This metadata is not returned by the API, so imported routes do not infer it.
|
|
111
|
+
*/
|
|
112
|
+
readonly position: pulumi.Output<outputs.ProjectRoutePosition | undefined>;
|
|
113
|
+
/**
|
|
114
|
+
* The ID of the project to manage a routing rule for.
|
|
115
|
+
*/
|
|
116
|
+
readonly projectId: pulumi.Output<string>;
|
|
117
|
+
/**
|
|
118
|
+
* The routing rule definition.
|
|
119
|
+
*/
|
|
120
|
+
readonly route: pulumi.Output<outputs.ProjectRouteRoute>;
|
|
121
|
+
/**
|
|
122
|
+
* The computed route type returned by Vercel. One of `rewrite`, `redirect`, `setStatus`, or `transform`.
|
|
123
|
+
*/
|
|
124
|
+
readonly routeType: pulumi.Output<string>;
|
|
125
|
+
/**
|
|
126
|
+
* The source pattern syntax. You can usually omit this and let Vercel infer it from `route.src`.
|
|
127
|
+
*/
|
|
128
|
+
readonly srcSyntax: pulumi.Output<string>;
|
|
129
|
+
/**
|
|
130
|
+
* 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.
|
|
131
|
+
*/
|
|
132
|
+
readonly teamId: pulumi.Output<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Create a ProjectRoute resource with the given unique name, arguments, and options.
|
|
135
|
+
*
|
|
136
|
+
* @param name The _unique_ name of the resource.
|
|
137
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
138
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
139
|
+
*/
|
|
140
|
+
constructor(name: string, args: ProjectRouteArgs, opts?: pulumi.CustomResourceOptions);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Input properties used for looking up and filtering ProjectRoute resources.
|
|
144
|
+
*/
|
|
145
|
+
export interface ProjectRouteState {
|
|
146
|
+
/**
|
|
147
|
+
* An optional description of the rule.
|
|
148
|
+
*/
|
|
149
|
+
description?: pulumi.Input<string>;
|
|
150
|
+
/**
|
|
151
|
+
* Whether the rule is enabled.
|
|
152
|
+
*/
|
|
153
|
+
enabled?: pulumi.Input<boolean>;
|
|
154
|
+
/**
|
|
155
|
+
* A human-readable name for the rule.
|
|
156
|
+
*/
|
|
157
|
+
name?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* Where to insert the rule when it is created or replaced. This metadata is not returned by the API, so imported routes do not infer it.
|
|
160
|
+
*/
|
|
161
|
+
position?: pulumi.Input<inputs.ProjectRoutePosition>;
|
|
162
|
+
/**
|
|
163
|
+
* The ID of the project to manage a routing rule for.
|
|
164
|
+
*/
|
|
165
|
+
projectId?: pulumi.Input<string>;
|
|
166
|
+
/**
|
|
167
|
+
* The routing rule definition.
|
|
168
|
+
*/
|
|
169
|
+
route?: pulumi.Input<inputs.ProjectRouteRoute>;
|
|
170
|
+
/**
|
|
171
|
+
* The computed route type returned by Vercel. One of `rewrite`, `redirect`, `setStatus`, or `transform`.
|
|
172
|
+
*/
|
|
173
|
+
routeType?: pulumi.Input<string>;
|
|
174
|
+
/**
|
|
175
|
+
* The source pattern syntax. You can usually omit this and let Vercel infer it from `route.src`.
|
|
176
|
+
*/
|
|
177
|
+
srcSyntax?: pulumi.Input<string>;
|
|
178
|
+
/**
|
|
179
|
+
* 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.
|
|
180
|
+
*/
|
|
181
|
+
teamId?: pulumi.Input<string>;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* The set of arguments for constructing a ProjectRoute resource.
|
|
185
|
+
*/
|
|
186
|
+
export interface ProjectRouteArgs {
|
|
187
|
+
/**
|
|
188
|
+
* An optional description of the rule.
|
|
189
|
+
*/
|
|
190
|
+
description?: pulumi.Input<string>;
|
|
191
|
+
/**
|
|
192
|
+
* Whether the rule is enabled.
|
|
193
|
+
*/
|
|
194
|
+
enabled?: pulumi.Input<boolean>;
|
|
195
|
+
/**
|
|
196
|
+
* A human-readable name for the rule.
|
|
197
|
+
*/
|
|
198
|
+
name?: pulumi.Input<string>;
|
|
199
|
+
/**
|
|
200
|
+
* Where to insert the rule when it is created or replaced. This metadata is not returned by the API, so imported routes do not infer it.
|
|
201
|
+
*/
|
|
202
|
+
position?: pulumi.Input<inputs.ProjectRoutePosition>;
|
|
203
|
+
/**
|
|
204
|
+
* The ID of the project to manage a routing rule for.
|
|
205
|
+
*/
|
|
206
|
+
projectId: pulumi.Input<string>;
|
|
207
|
+
/**
|
|
208
|
+
* The routing rule definition.
|
|
209
|
+
*/
|
|
210
|
+
route: pulumi.Input<inputs.ProjectRouteRoute>;
|
|
211
|
+
/**
|
|
212
|
+
* The source pattern syntax. You can usually omit this and let Vercel infer it from `route.src`.
|
|
213
|
+
*/
|
|
214
|
+
srcSyntax?: pulumi.Input<string>;
|
|
215
|
+
/**
|
|
216
|
+
* 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.
|
|
217
|
+
*/
|
|
218
|
+
teamId?: pulumi.Input<string>;
|
|
219
|
+
}
|
package/projectRoute.js
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.ProjectRoute = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a Project Route resource.
|
|
10
|
+
*
|
|
11
|
+
* This resource manages one live project-level routing rule for a Vercel project. Each mutation stages a new routing-rules version and promotes it immediately so Terraform state reflects production traffic behavior.
|
|
12
|
+
*
|
|
13
|
+
* Reads and imports intentionally target the live version and ignore unpublished staged drafts created outside Terraform.
|
|
14
|
+
*
|
|
15
|
+
* Position is applied when the rule is created or replaced. Use before and after with referenceRouteId when you need deterministic ordering across multiple Terraform-managed rules.
|
|
16
|
+
*
|
|
17
|
+
* The Vercel API does not return placement metadata for an individual rule. Terraform preserves the configured position on normal reads, but imported routes start with no position in state.
|
|
18
|
+
*
|
|
19
|
+
* > This resource refuses to mutate a project while it has an unpublished staged routing-rules version. Publish, restore, or discard the draft first.
|
|
20
|
+
*
|
|
21
|
+
* ## Example Usage
|
|
22
|
+
*
|
|
23
|
+
* ```typescript
|
|
24
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
25
|
+
* import * as vercel from "@pulumiverse/vercel";
|
|
26
|
+
*
|
|
27
|
+
* const example = new vercel.Project("example", {name: "example-project"});
|
|
28
|
+
* const exampleProjectRoute = new vercel.ProjectRoute("example", {
|
|
29
|
+
* projectId: example.id,
|
|
30
|
+
* name: "redirect-legacy-docs",
|
|
31
|
+
* position: {
|
|
32
|
+
* placement: "start",
|
|
33
|
+
* },
|
|
34
|
+
* route: {
|
|
35
|
+
* src: "/docs/:path*",
|
|
36
|
+
* dest: "/guides/:path*",
|
|
37
|
+
* status: 308,
|
|
38
|
+
* },
|
|
39
|
+
* });
|
|
40
|
+
* const rewriteEuCampaign = new vercel.ProjectRoute("rewrite_eu_campaign", {
|
|
41
|
+
* projectId: example.id,
|
|
42
|
+
* name: "rewrite-eu-campaign",
|
|
43
|
+
* position: {
|
|
44
|
+
* placement: "after",
|
|
45
|
+
* referenceRouteId: exampleProjectRoute.id,
|
|
46
|
+
* },
|
|
47
|
+
* route: {
|
|
48
|
+
* src: "/promo",
|
|
49
|
+
* dest: "/campaigns/eu",
|
|
50
|
+
* has: [{
|
|
51
|
+
* type: "header",
|
|
52
|
+
* key: "x-region",
|
|
53
|
+
* value: "eu",
|
|
54
|
+
* }],
|
|
55
|
+
* missings: [{
|
|
56
|
+
* type: "cookie",
|
|
57
|
+
* key: "preview",
|
|
58
|
+
* value: "1",
|
|
59
|
+
* }],
|
|
60
|
+
* },
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* ## Import
|
|
65
|
+
*
|
|
66
|
+
* The `pulumi import` command can be used, for example:
|
|
67
|
+
*
|
|
68
|
+
* If importing with a team configured on the provider, use the project ID and route ID.
|
|
69
|
+
* - projectId can be found in the project `settings` tab in the Vercel UI.
|
|
70
|
+
* - routeId can be read from `data.vercel_project_routes` or the Vercel routing-rules API.
|
|
71
|
+
*
|
|
72
|
+
* ```sh
|
|
73
|
+
* $ pulumi import vercel:index/projectRoute:ProjectRoute example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/rt_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* Alternatively, you can import via the team_id, project_id, and route_id.
|
|
77
|
+
* - teamId can be found in the team `settings` tab in the Vercel UI.
|
|
78
|
+
* - projectId can be found in the project `settings` tab in the Vercel UI.
|
|
79
|
+
* - routeId can be read from `data.vercel_project_routes` or the Vercel routing-rules API.
|
|
80
|
+
*
|
|
81
|
+
* ```sh
|
|
82
|
+
* $ pulumi import vercel:index/projectRoute:ProjectRoute example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/rt_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
class ProjectRoute extends pulumi.CustomResource {
|
|
86
|
+
/**
|
|
87
|
+
* Get an existing ProjectRoute resource's state with the given name, ID, and optional extra
|
|
88
|
+
* properties used to qualify the lookup.
|
|
89
|
+
*
|
|
90
|
+
* @param name The _unique_ name of the resulting resource.
|
|
91
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
92
|
+
* @param state Any extra arguments used during the lookup.
|
|
93
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
94
|
+
*/
|
|
95
|
+
static get(name, id, state, opts) {
|
|
96
|
+
return new ProjectRoute(name, state, { ...opts, id: id });
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Returns true if the given object is an instance of ProjectRoute. This is designed to work even
|
|
100
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
101
|
+
*/
|
|
102
|
+
static isInstance(obj) {
|
|
103
|
+
if (obj === undefined || obj === null) {
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
return obj['__pulumiType'] === ProjectRoute.__pulumiType;
|
|
107
|
+
}
|
|
108
|
+
constructor(name, argsOrState, opts) {
|
|
109
|
+
let resourceInputs = {};
|
|
110
|
+
opts = opts || {};
|
|
111
|
+
if (opts.id) {
|
|
112
|
+
const state = argsOrState;
|
|
113
|
+
resourceInputs["description"] = state?.description;
|
|
114
|
+
resourceInputs["enabled"] = state?.enabled;
|
|
115
|
+
resourceInputs["name"] = state?.name;
|
|
116
|
+
resourceInputs["position"] = state?.position;
|
|
117
|
+
resourceInputs["projectId"] = state?.projectId;
|
|
118
|
+
resourceInputs["route"] = state?.route;
|
|
119
|
+
resourceInputs["routeType"] = state?.routeType;
|
|
120
|
+
resourceInputs["srcSyntax"] = state?.srcSyntax;
|
|
121
|
+
resourceInputs["teamId"] = state?.teamId;
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
const args = argsOrState;
|
|
125
|
+
if (args?.projectId === undefined && !opts.urn) {
|
|
126
|
+
throw new Error("Missing required property 'projectId'");
|
|
127
|
+
}
|
|
128
|
+
if (args?.route === undefined && !opts.urn) {
|
|
129
|
+
throw new Error("Missing required property 'route'");
|
|
130
|
+
}
|
|
131
|
+
resourceInputs["description"] = args?.description;
|
|
132
|
+
resourceInputs["enabled"] = args?.enabled;
|
|
133
|
+
resourceInputs["name"] = args?.name;
|
|
134
|
+
resourceInputs["position"] = args?.position;
|
|
135
|
+
resourceInputs["projectId"] = args?.projectId;
|
|
136
|
+
resourceInputs["route"] = args?.route;
|
|
137
|
+
resourceInputs["srcSyntax"] = args?.srcSyntax;
|
|
138
|
+
resourceInputs["teamId"] = args?.teamId;
|
|
139
|
+
resourceInputs["routeType"] = undefined /*out*/;
|
|
140
|
+
}
|
|
141
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
142
|
+
super(ProjectRoute.__pulumiType, name, resourceInputs, opts);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
exports.ProjectRoute = ProjectRoute;
|
|
146
|
+
/** @internal */
|
|
147
|
+
ProjectRoute.__pulumiType = 'vercel:index/projectRoute:ProjectRoute';
|
|
148
|
+
//# sourceMappingURL=projectRoute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projectRoute.js","sourceRoot":"","sources":["../projectRoute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,CAAC;IACjE,CAAC;;AA3GL,oCA4GC;AA9FG,gBAAgB;AACO,yBAAY,GAAG,wCAAwC,CAAC"}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
+
* Provides a Shared Environment Variable resource.
|
|
4
|
+
*
|
|
5
|
+
* A Shared Environment Variable resource defines an Environment Variable that can be shared between multiple Vercel Projects.
|
|
6
|
+
*
|
|
7
|
+
* For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/concepts/projects/environment-variables/shared-environment-variables).
|
|
8
|
+
*
|
|
9
|
+
* > **Note:** Starting in provider version `4.8.0`, Shared Environment Variables require an explicit `sensitive` value. Variables targeting only `development` must set `sensitive = false`. If your team enforces sensitive environment variables, variables targeting `preview`, `production`, or custom environments must set `sensitive = true`. When that team policy is enabled, a variable cannot target `development` together with `preview`, `production`, or custom environments.
|
|
10
|
+
*
|
|
11
|
+
* > **Note:** Write-Only argument `valueWo` is available to use in place of `value`. Write-Only arguments are supported in HashiCorp Terraform 1.11.0 and later. Learn more.
|
|
12
|
+
*
|
|
3
13
|
* ## Example Usage
|
|
4
14
|
*
|
|
5
15
|
* ```typescript
|
|
@@ -13,23 +23,32 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
13
23
|
* repo: "vercel/some-repo",
|
|
14
24
|
* },
|
|
15
25
|
* });
|
|
16
|
-
* //
|
|
17
|
-
* // and associated with the "example" project.
|
|
26
|
+
* // Shared environment variables must explicitly set `sensitive`.
|
|
18
27
|
* const exampleSharedEnvironmentVariable = new vercel.SharedEnvironmentVariable("example", {
|
|
19
28
|
* key: "EXAMPLE",
|
|
20
29
|
* value: "some_value",
|
|
21
30
|
* targets: ["production"],
|
|
31
|
+
* sensitive: true,
|
|
22
32
|
* comment: "an example shared variable",
|
|
23
33
|
* projectIds: [example.id],
|
|
24
34
|
* });
|
|
35
|
+
* // Shared environment variables targeting `development` must explicitly set `sensitive = false`.
|
|
36
|
+
* const exampleDevelopment = new vercel.SharedEnvironmentVariable("example_development", {
|
|
37
|
+
* key: "EXAMPLE_DEVELOPMENT",
|
|
38
|
+
* value: "some_development_value",
|
|
39
|
+
* targets: ["development"],
|
|
40
|
+
* sensitive: false,
|
|
41
|
+
* comment: "available during local development",
|
|
42
|
+
* projectIds: [example.id],
|
|
43
|
+
* });
|
|
25
44
|
* ```
|
|
26
45
|
*
|
|
27
46
|
* ## Import
|
|
28
47
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* - team_id can be found in the team `settings` tab in the Vercel UI.
|
|
48
|
+
* The `pulumi import` command can be used, for example:
|
|
32
49
|
*
|
|
50
|
+
* You can import via the teamId and environment variable id.
|
|
51
|
+
* - teamId can be found in the team `settings` tab in the Vercel UI.
|
|
33
52
|
* - environment variable id can be taken from the network tab inside developer tools, while you are on the project page.
|
|
34
53
|
*
|
|
35
54
|
* Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
@@ -71,7 +90,7 @@ export declare class SharedEnvironmentVariable extends pulumi.CustomResource {
|
|
|
71
90
|
*/
|
|
72
91
|
readonly projectIds: pulumi.Output<string[]>;
|
|
73
92
|
/**
|
|
74
|
-
* Whether the Environment Variable is sensitive or
|
|
93
|
+
* Whether the Environment Variable is sensitive (meaning it cannot be read via the API or Vercel Dashboard once set). This must be explicitly set. If a [team-wide environment variable policy](https://vercel.com/docs/projects/environment-variables/sensitive-environment-variables#environment-variables-policy) is active, environment variables may have to be sensitive. Variables targeting only `development` must set this to `false`. Variables targeting `preview`, `production`, or custom environments may have to set this to `true`. A variable cannot target `development` together with `preview`, `production`, or custom environments while that team policy is enabled.
|
|
75
94
|
*/
|
|
76
95
|
readonly sensitive: pulumi.Output<boolean>;
|
|
77
96
|
/**
|
|
@@ -121,7 +140,7 @@ export interface SharedEnvironmentVariableState {
|
|
|
121
140
|
*/
|
|
122
141
|
projectIds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
123
142
|
/**
|
|
124
|
-
* Whether the Environment Variable is sensitive or
|
|
143
|
+
* Whether the Environment Variable is sensitive (meaning it cannot be read via the API or Vercel Dashboard once set). This must be explicitly set. If a [team-wide environment variable policy](https://vercel.com/docs/projects/environment-variables/sensitive-environment-variables#environment-variables-policy) is active, environment variables may have to be sensitive. Variables targeting only `development` must set this to `false`. Variables targeting `preview`, `production`, or custom environments may have to set this to `true`. A variable cannot target `development` together with `preview`, `production`, or custom environments while that team policy is enabled.
|
|
125
144
|
*/
|
|
126
145
|
sensitive?: pulumi.Input<boolean>;
|
|
127
146
|
/**
|
|
@@ -163,9 +182,9 @@ export interface SharedEnvironmentVariableArgs {
|
|
|
163
182
|
*/
|
|
164
183
|
projectIds: pulumi.Input<pulumi.Input<string>[]>;
|
|
165
184
|
/**
|
|
166
|
-
* Whether the Environment Variable is sensitive or
|
|
185
|
+
* Whether the Environment Variable is sensitive (meaning it cannot be read via the API or Vercel Dashboard once set). This must be explicitly set. If a [team-wide environment variable policy](https://vercel.com/docs/projects/environment-variables/sensitive-environment-variables#environment-variables-policy) is active, environment variables may have to be sensitive. Variables targeting only `development` must set this to `false`. Variables targeting `preview`, `production`, or custom environments may have to set this to `true`. A variable cannot target `development` together with `preview`, `production`, or custom environments while that team policy is enabled.
|
|
167
186
|
*/
|
|
168
|
-
sensitive
|
|
187
|
+
sensitive: pulumi.Input<boolean>;
|
|
169
188
|
/**
|
|
170
189
|
* The environments that the Environment Variable should be present on. Valid targets are either `production`, `preview`, or `development`.
|
|
171
190
|
*/
|
|
@@ -6,6 +6,16 @@ exports.SharedEnvironmentVariable = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* Provides a Shared Environment Variable resource.
|
|
10
|
+
*
|
|
11
|
+
* A Shared Environment Variable resource defines an Environment Variable that can be shared between multiple Vercel Projects.
|
|
12
|
+
*
|
|
13
|
+
* For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/concepts/projects/environment-variables/shared-environment-variables).
|
|
14
|
+
*
|
|
15
|
+
* > **Note:** Starting in provider version `4.8.0`, Shared Environment Variables require an explicit `sensitive` value. Variables targeting only `development` must set `sensitive = false`. If your team enforces sensitive environment variables, variables targeting `preview`, `production`, or custom environments must set `sensitive = true`. When that team policy is enabled, a variable cannot target `development` together with `preview`, `production`, or custom environments.
|
|
16
|
+
*
|
|
17
|
+
* > **Note:** Write-Only argument `valueWo` is available to use in place of `value`. Write-Only arguments are supported in HashiCorp Terraform 1.11.0 and later. Learn more.
|
|
18
|
+
*
|
|
9
19
|
* ## Example Usage
|
|
10
20
|
*
|
|
11
21
|
* ```typescript
|
|
@@ -19,23 +29,32 @@ const utilities = require("./utilities");
|
|
|
19
29
|
* repo: "vercel/some-repo",
|
|
20
30
|
* },
|
|
21
31
|
* });
|
|
22
|
-
* //
|
|
23
|
-
* // and associated with the "example" project.
|
|
32
|
+
* // Shared environment variables must explicitly set `sensitive`.
|
|
24
33
|
* const exampleSharedEnvironmentVariable = new vercel.SharedEnvironmentVariable("example", {
|
|
25
34
|
* key: "EXAMPLE",
|
|
26
35
|
* value: "some_value",
|
|
27
36
|
* targets: ["production"],
|
|
37
|
+
* sensitive: true,
|
|
28
38
|
* comment: "an example shared variable",
|
|
29
39
|
* projectIds: [example.id],
|
|
30
40
|
* });
|
|
41
|
+
* // Shared environment variables targeting `development` must explicitly set `sensitive = false`.
|
|
42
|
+
* const exampleDevelopment = new vercel.SharedEnvironmentVariable("example_development", {
|
|
43
|
+
* key: "EXAMPLE_DEVELOPMENT",
|
|
44
|
+
* value: "some_development_value",
|
|
45
|
+
* targets: ["development"],
|
|
46
|
+
* sensitive: false,
|
|
47
|
+
* comment: "available during local development",
|
|
48
|
+
* projectIds: [example.id],
|
|
49
|
+
* });
|
|
31
50
|
* ```
|
|
32
51
|
*
|
|
33
52
|
* ## Import
|
|
34
53
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* - team_id can be found in the team `settings` tab in the Vercel UI.
|
|
54
|
+
* The `pulumi import` command can be used, for example:
|
|
38
55
|
*
|
|
56
|
+
* You can import via the teamId and environment variable id.
|
|
57
|
+
* - teamId can be found in the team `settings` tab in the Vercel UI.
|
|
39
58
|
* - environment variable id can be taken from the network tab inside developer tools, while you are on the project page.
|
|
40
59
|
*
|
|
41
60
|
* Note also, that the value field for sensitive environment variables will be imported as `null`.
|
|
@@ -90,6 +109,9 @@ class SharedEnvironmentVariable extends pulumi.CustomResource {
|
|
|
90
109
|
if (args?.projectIds === undefined && !opts.urn) {
|
|
91
110
|
throw new Error("Missing required property 'projectIds'");
|
|
92
111
|
}
|
|
112
|
+
if (args?.sensitive === undefined && !opts.urn) {
|
|
113
|
+
throw new Error("Missing required property 'sensitive'");
|
|
114
|
+
}
|
|
93
115
|
resourceInputs["applyToAllCustomEnvironments"] = args?.applyToAllCustomEnvironments;
|
|
94
116
|
resourceInputs["comment"] = args?.comment;
|
|
95
117
|
resourceInputs["key"] = args?.key;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedEnvironmentVariable.js","sourceRoot":"","sources":["../sharedEnvironmentVariable.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"sharedEnvironmentVariable.js","sourceRoot":"","sources":["../sharedEnvironmentVariable.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;IAChE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsC,EAAE,IAAmC;QACpI,OAAO,IAAI,yBAAyB,CAAC,IAAI,EAAO,KAAK,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C,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,yBAAyB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;;AAjHL,8DAkHC;AApGG,gBAAgB;AACO,sCAAY,GAAG,kEAAkE,CAAC"}
|
package/teamConfig.d.ts
CHANGED
|
@@ -32,9 +32,10 @@ import * as outputs from "./types/output";
|
|
|
32
32
|
*
|
|
33
33
|
* ## Import
|
|
34
34
|
*
|
|
35
|
-
*
|
|
35
|
+
* The `pulumi import` command can be used, for example:
|
|
36
36
|
*
|
|
37
|
-
*
|
|
37
|
+
* Team config can be imported via the team ID.
|
|
38
|
+
* - teamId can be found in the team `settings` tab in the Vercel UI.
|
|
38
39
|
*
|
|
39
40
|
* ```sh
|
|
40
41
|
* $ pulumi import vercel:index/teamConfig:TeamConfig example team_xxxxxxxxxxxxxxxxxxxxxxxx
|
package/teamConfig.js
CHANGED
|
@@ -36,9 +36,10 @@ const utilities = require("./utilities");
|
|
|
36
36
|
*
|
|
37
37
|
* ## Import
|
|
38
38
|
*
|
|
39
|
-
*
|
|
39
|
+
* The `pulumi import` command can be used, for example:
|
|
40
40
|
*
|
|
41
|
-
*
|
|
41
|
+
* Team config can be imported via the team ID.
|
|
42
|
+
* - teamId can be found in the team `settings` tab in the Vercel UI.
|
|
42
43
|
*
|
|
43
44
|
* ```sh
|
|
44
45
|
* $ pulumi import vercel:index/teamConfig:TeamConfig example team_xxxxxxxxxxxxxxxxxxxxxxxx
|
package/teamConfig.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamConfig.js","sourceRoot":"","sources":["../teamConfig.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"teamConfig.js","sourceRoot":"","sources":["../teamConfig.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE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cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAnIL,gCAoIC;AAtHG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
|
package/teamMember.d.ts
CHANGED
|
@@ -22,7 +22,9 @@ import * as outputs from "./types/output";
|
|
|
22
22
|
*
|
|
23
23
|
* ## Import
|
|
24
24
|
*
|
|
25
|
-
*
|
|
25
|
+
* The `pulumi import` command can be used, for example:
|
|
26
|
+
*
|
|
27
|
+
* To import, use the teamId and user_id.
|
|
26
28
|
*
|
|
27
29
|
* ```sh
|
|
28
30
|
* $ pulumi import vercel:index/teamMember:TeamMember example team_xxxxxxxxxxxxxxxxxxxxxxxx/uuuuuuuuuuuuuuuuuuuuuuuuuu
|
package/teamMember.js
CHANGED
|
@@ -26,7 +26,9 @@ const utilities = require("./utilities");
|
|
|
26
26
|
*
|
|
27
27
|
* ## Import
|
|
28
28
|
*
|
|
29
|
-
*
|
|
29
|
+
* The `pulumi import` command can be used, for example:
|
|
30
|
+
*
|
|
31
|
+
* To import, use the teamId and user_id.
|
|
30
32
|
*
|
|
31
33
|
* ```sh
|
|
32
34
|
* $ pulumi import vercel:index/teamMember:TeamMember example team_xxxxxxxxxxxxxxxxxxxxxxxx/uuuuuuuuuuuuuuuuuuuuuuuuuu
|
package/teamMember.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamMember.js","sourceRoot":"","sources":["../teamMember.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGz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