@pulumiverse/vercel 4.6.0 → 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,131 @@
|
|
|
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.FeatureFlagConfig = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a Feature Flag Config resource.
|
|
10
|
+
*
|
|
11
|
+
* This resource manages the simplified static rollout shape for a flag across `production`, `preview`, and `development`.
|
|
12
|
+
*
|
|
13
|
+
* Use this resource together with `vercel.FeatureFlagDefinition` when Terraform should own the rollout. If you omit this resource, the flag definition can still exist while rollout is managed through the Vercel dashboard.
|
|
14
|
+
*
|
|
15
|
+
* It is intentionally strict: linked environments, rules, and target overrides must not already be configured on the flag when Terraform manages this resource.
|
|
16
|
+
*
|
|
17
|
+
* Deleting this resource only removes it from Terraform state. The flag and its current configuration stay in Vercel.
|
|
18
|
+
*
|
|
19
|
+
* ## Example Usage
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as vercel from "@pulumiverse/vercel";
|
|
24
|
+
*
|
|
25
|
+
* const example = new vercel.Project("example", {name: "feature-flag-example"});
|
|
26
|
+
* const exampleFeatureFlagDefinition = new vercel.FeatureFlagDefinition("example", {
|
|
27
|
+
* projectId: example.id,
|
|
28
|
+
* key: "checkout-redesign",
|
|
29
|
+
* description: "Controls the checkout experience",
|
|
30
|
+
* kind: "string",
|
|
31
|
+
* variants: [
|
|
32
|
+
* {
|
|
33
|
+
* id: "control",
|
|
34
|
+
* label: "Control",
|
|
35
|
+
* valueString: "control",
|
|
36
|
+
* },
|
|
37
|
+
* {
|
|
38
|
+
* id: "treatment",
|
|
39
|
+
* label: "Treatment",
|
|
40
|
+
* valueString: "treatment",
|
|
41
|
+
* },
|
|
42
|
+
* ],
|
|
43
|
+
* });
|
|
44
|
+
* const exampleFeatureFlagConfig = new vercel.FeatureFlagConfig("example", {
|
|
45
|
+
* projectId: example.id,
|
|
46
|
+
* flagId: exampleFeatureFlagDefinition.id,
|
|
47
|
+
* production: {
|
|
48
|
+
* enabled: true,
|
|
49
|
+
* defaultVariantId: "control",
|
|
50
|
+
* disabledVariantId: "control",
|
|
51
|
+
* },
|
|
52
|
+
* preview: {
|
|
53
|
+
* enabled: true,
|
|
54
|
+
* defaultVariantId: "treatment",
|
|
55
|
+
* disabledVariantId: "control",
|
|
56
|
+
* },
|
|
57
|
+
* development: {
|
|
58
|
+
* enabled: false,
|
|
59
|
+
* defaultVariantId: "treatment",
|
|
60
|
+
* disabledVariantId: "control",
|
|
61
|
+
* },
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
class FeatureFlagConfig extends pulumi.CustomResource {
|
|
66
|
+
/**
|
|
67
|
+
* Get an existing FeatureFlagConfig resource's state with the given name, ID, and optional extra
|
|
68
|
+
* properties used to qualify the lookup.
|
|
69
|
+
*
|
|
70
|
+
* @param name The _unique_ name of the resulting resource.
|
|
71
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
72
|
+
* @param state Any extra arguments used during the lookup.
|
|
73
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
74
|
+
*/
|
|
75
|
+
static get(name, id, state, opts) {
|
|
76
|
+
return new FeatureFlagConfig(name, state, { ...opts, id: id });
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Returns true if the given object is an instance of FeatureFlagConfig. This is designed to work even
|
|
80
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
81
|
+
*/
|
|
82
|
+
static isInstance(obj) {
|
|
83
|
+
if (obj === undefined || obj === null) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
return obj['__pulumiType'] === FeatureFlagConfig.__pulumiType;
|
|
87
|
+
}
|
|
88
|
+
constructor(name, argsOrState, opts) {
|
|
89
|
+
let resourceInputs = {};
|
|
90
|
+
opts = opts || {};
|
|
91
|
+
if (opts.id) {
|
|
92
|
+
const state = argsOrState;
|
|
93
|
+
resourceInputs["development"] = state?.development;
|
|
94
|
+
resourceInputs["flagId"] = state?.flagId;
|
|
95
|
+
resourceInputs["preview"] = state?.preview;
|
|
96
|
+
resourceInputs["production"] = state?.production;
|
|
97
|
+
resourceInputs["projectId"] = state?.projectId;
|
|
98
|
+
resourceInputs["teamId"] = state?.teamId;
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
const args = argsOrState;
|
|
102
|
+
if (args?.development === undefined && !opts.urn) {
|
|
103
|
+
throw new Error("Missing required property 'development'");
|
|
104
|
+
}
|
|
105
|
+
if (args?.flagId === undefined && !opts.urn) {
|
|
106
|
+
throw new Error("Missing required property 'flagId'");
|
|
107
|
+
}
|
|
108
|
+
if (args?.preview === undefined && !opts.urn) {
|
|
109
|
+
throw new Error("Missing required property 'preview'");
|
|
110
|
+
}
|
|
111
|
+
if (args?.production === undefined && !opts.urn) {
|
|
112
|
+
throw new Error("Missing required property 'production'");
|
|
113
|
+
}
|
|
114
|
+
if (args?.projectId === undefined && !opts.urn) {
|
|
115
|
+
throw new Error("Missing required property 'projectId'");
|
|
116
|
+
}
|
|
117
|
+
resourceInputs["development"] = args?.development;
|
|
118
|
+
resourceInputs["flagId"] = args?.flagId;
|
|
119
|
+
resourceInputs["preview"] = args?.preview;
|
|
120
|
+
resourceInputs["production"] = args?.production;
|
|
121
|
+
resourceInputs["projectId"] = args?.projectId;
|
|
122
|
+
resourceInputs["teamId"] = args?.teamId;
|
|
123
|
+
}
|
|
124
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
125
|
+
super(FeatureFlagConfig.__pulumiType, name, resourceInputs, opts);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.FeatureFlagConfig = FeatureFlagConfig;
|
|
129
|
+
/** @internal */
|
|
130
|
+
FeatureFlagConfig.__pulumiType = 'vercel:index/featureFlagConfig:FeatureFlagConfig';
|
|
131
|
+
//# sourceMappingURL=featureFlagConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featureFlagConfig.js","sourceRoot":"","sources":["../featureFlagConfig.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;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,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,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;IAmCD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAAG,WAAgD,CAAC;YAC9D,IAAI,IAAI,EAAE,WAAW,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC9C,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,IAAI,IAAI,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,IAAI,EAAE,SAAS,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC5C,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;SAC3C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AAlGL,8CAmGC;AArFG,gBAAgB;AACO,8BAAY,GAAG,kDAAkD,CAAC"}
|
|
@@ -0,0 +1,160 @@
|
|
|
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 Feature Flag Definition resource.
|
|
6
|
+
*
|
|
7
|
+
* This resource owns the stable flag contract: the flag key, kind, description, archival state, and variants.
|
|
8
|
+
*
|
|
9
|
+
* Use this resource by itself when you want Terraform to register the flag but leave ongoing rollout and targeting to the Vercel dashboard.
|
|
10
|
+
*
|
|
11
|
+
* Vercel requires environments when a flag is created, so this resource bootstraps all environments in a paused state using the neutral control/off variant until rollout is managed elsewhere.
|
|
12
|
+
*
|
|
13
|
+
* If Terraform should also manage the simplified per-environment rollout, pair this resource with `vercel.FeatureFlagConfig`.
|
|
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: "feature-flag-example"});
|
|
22
|
+
* const exampleFeatureFlagDefinition = new vercel.FeatureFlagDefinition("example", {
|
|
23
|
+
* projectId: example.id,
|
|
24
|
+
* key: "checkout-redesign",
|
|
25
|
+
* description: "Controls the checkout experience",
|
|
26
|
+
* kind: "string",
|
|
27
|
+
* variants: [
|
|
28
|
+
* {
|
|
29
|
+
* id: "control",
|
|
30
|
+
* label: "Control",
|
|
31
|
+
* valueString: "control",
|
|
32
|
+
* },
|
|
33
|
+
* {
|
|
34
|
+
* id: "treatment",
|
|
35
|
+
* label: "Treatment",
|
|
36
|
+
* valueString: "treatment",
|
|
37
|
+
* },
|
|
38
|
+
* ],
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare class FeatureFlagDefinition extends pulumi.CustomResource {
|
|
43
|
+
/**
|
|
44
|
+
* Get an existing FeatureFlagDefinition resource's state with the given name, ID, and optional extra
|
|
45
|
+
* properties used to qualify the lookup.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resulting resource.
|
|
48
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
49
|
+
* @param state Any extra arguments used during the lookup.
|
|
50
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
51
|
+
*/
|
|
52
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FeatureFlagDefinitionState, opts?: pulumi.CustomResourceOptions): FeatureFlagDefinition;
|
|
53
|
+
/**
|
|
54
|
+
* Returns true if the given object is an instance of FeatureFlagDefinition. This is designed to work even
|
|
55
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
56
|
+
*/
|
|
57
|
+
static isInstance(obj: any): obj is FeatureFlagDefinition;
|
|
58
|
+
/**
|
|
59
|
+
* Whether the flag should be archived instead of active.
|
|
60
|
+
*/
|
|
61
|
+
readonly archived: pulumi.Output<boolean>;
|
|
62
|
+
/**
|
|
63
|
+
* A human-readable description of the flag.
|
|
64
|
+
*/
|
|
65
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
66
|
+
/**
|
|
67
|
+
* The stable flag key used in your application code.
|
|
68
|
+
*/
|
|
69
|
+
readonly key: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* The type of value this flag returns. Must be one of `boolean`, `string`, or `number`.
|
|
72
|
+
*/
|
|
73
|
+
readonly kind: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The ID of the Vercel project that owns the flag.
|
|
76
|
+
*/
|
|
77
|
+
readonly projectId: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
|
|
80
|
+
*/
|
|
81
|
+
readonly teamId: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* The variants available for this flag.
|
|
84
|
+
*/
|
|
85
|
+
readonly variants: pulumi.Output<outputs.FeatureFlagDefinitionVariant[]>;
|
|
86
|
+
/**
|
|
87
|
+
* Create a FeatureFlagDefinition resource with the given unique name, arguments, and options.
|
|
88
|
+
*
|
|
89
|
+
* @param name The _unique_ name of the resource.
|
|
90
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
91
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
92
|
+
*/
|
|
93
|
+
constructor(name: string, args: FeatureFlagDefinitionArgs, opts?: pulumi.CustomResourceOptions);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Input properties used for looking up and filtering FeatureFlagDefinition resources.
|
|
97
|
+
*/
|
|
98
|
+
export interface FeatureFlagDefinitionState {
|
|
99
|
+
/**
|
|
100
|
+
* Whether the flag should be archived instead of active.
|
|
101
|
+
*/
|
|
102
|
+
archived?: pulumi.Input<boolean>;
|
|
103
|
+
/**
|
|
104
|
+
* A human-readable description of the flag.
|
|
105
|
+
*/
|
|
106
|
+
description?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* The stable flag key used in your application code.
|
|
109
|
+
*/
|
|
110
|
+
key?: pulumi.Input<string>;
|
|
111
|
+
/**
|
|
112
|
+
* The type of value this flag returns. Must be one of `boolean`, `string`, or `number`.
|
|
113
|
+
*/
|
|
114
|
+
kind?: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* The ID of the Vercel project that owns the flag.
|
|
117
|
+
*/
|
|
118
|
+
projectId?: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
|
|
121
|
+
*/
|
|
122
|
+
teamId?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* The variants available for this flag.
|
|
125
|
+
*/
|
|
126
|
+
variants?: pulumi.Input<pulumi.Input<inputs.FeatureFlagDefinitionVariant>[]>;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* The set of arguments for constructing a FeatureFlagDefinition resource.
|
|
130
|
+
*/
|
|
131
|
+
export interface FeatureFlagDefinitionArgs {
|
|
132
|
+
/**
|
|
133
|
+
* Whether the flag should be archived instead of active.
|
|
134
|
+
*/
|
|
135
|
+
archived?: pulumi.Input<boolean>;
|
|
136
|
+
/**
|
|
137
|
+
* A human-readable description of the flag.
|
|
138
|
+
*/
|
|
139
|
+
description?: pulumi.Input<string>;
|
|
140
|
+
/**
|
|
141
|
+
* The stable flag key used in your application code.
|
|
142
|
+
*/
|
|
143
|
+
key: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* The type of value this flag returns. Must be one of `boolean`, `string`, or `number`.
|
|
146
|
+
*/
|
|
147
|
+
kind: pulumi.Input<string>;
|
|
148
|
+
/**
|
|
149
|
+
* The ID of the Vercel project that owns the flag.
|
|
150
|
+
*/
|
|
151
|
+
projectId: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
|
|
154
|
+
*/
|
|
155
|
+
teamId?: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* The variants available for this flag.
|
|
158
|
+
*/
|
|
159
|
+
variants: pulumi.Input<pulumi.Input<inputs.FeatureFlagDefinitionVariant>[]>;
|
|
160
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
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.FeatureFlagDefinition = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a Feature Flag Definition resource.
|
|
10
|
+
*
|
|
11
|
+
* This resource owns the stable flag contract: the flag key, kind, description, archival state, and variants.
|
|
12
|
+
*
|
|
13
|
+
* Use this resource by itself when you want Terraform to register the flag but leave ongoing rollout and targeting to the Vercel dashboard.
|
|
14
|
+
*
|
|
15
|
+
* Vercel requires environments when a flag is created, so this resource bootstraps all environments in a paused state using the neutral control/off variant until rollout is managed elsewhere.
|
|
16
|
+
*
|
|
17
|
+
* If Terraform should also manage the simplified per-environment rollout, pair this resource with `vercel.FeatureFlagConfig`.
|
|
18
|
+
*
|
|
19
|
+
* ## Example Usage
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as vercel from "@pulumiverse/vercel";
|
|
24
|
+
*
|
|
25
|
+
* const example = new vercel.Project("example", {name: "feature-flag-example"});
|
|
26
|
+
* const exampleFeatureFlagDefinition = new vercel.FeatureFlagDefinition("example", {
|
|
27
|
+
* projectId: example.id,
|
|
28
|
+
* key: "checkout-redesign",
|
|
29
|
+
* description: "Controls the checkout experience",
|
|
30
|
+
* kind: "string",
|
|
31
|
+
* variants: [
|
|
32
|
+
* {
|
|
33
|
+
* id: "control",
|
|
34
|
+
* label: "Control",
|
|
35
|
+
* valueString: "control",
|
|
36
|
+
* },
|
|
37
|
+
* {
|
|
38
|
+
* id: "treatment",
|
|
39
|
+
* label: "Treatment",
|
|
40
|
+
* valueString: "treatment",
|
|
41
|
+
* },
|
|
42
|
+
* ],
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
class FeatureFlagDefinition extends pulumi.CustomResource {
|
|
47
|
+
/**
|
|
48
|
+
* Get an existing FeatureFlagDefinition resource's state with the given name, ID, and optional extra
|
|
49
|
+
* properties used to qualify the lookup.
|
|
50
|
+
*
|
|
51
|
+
* @param name The _unique_ name of the resulting resource.
|
|
52
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
53
|
+
* @param state Any extra arguments used during the lookup.
|
|
54
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
55
|
+
*/
|
|
56
|
+
static get(name, id, state, opts) {
|
|
57
|
+
return new FeatureFlagDefinition(name, state, { ...opts, id: id });
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Returns true if the given object is an instance of FeatureFlagDefinition. This is designed to work even
|
|
61
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
62
|
+
*/
|
|
63
|
+
static isInstance(obj) {
|
|
64
|
+
if (obj === undefined || obj === null) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
return obj['__pulumiType'] === FeatureFlagDefinition.__pulumiType;
|
|
68
|
+
}
|
|
69
|
+
constructor(name, argsOrState, opts) {
|
|
70
|
+
let resourceInputs = {};
|
|
71
|
+
opts = opts || {};
|
|
72
|
+
if (opts.id) {
|
|
73
|
+
const state = argsOrState;
|
|
74
|
+
resourceInputs["archived"] = state?.archived;
|
|
75
|
+
resourceInputs["description"] = state?.description;
|
|
76
|
+
resourceInputs["key"] = state?.key;
|
|
77
|
+
resourceInputs["kind"] = state?.kind;
|
|
78
|
+
resourceInputs["projectId"] = state?.projectId;
|
|
79
|
+
resourceInputs["teamId"] = state?.teamId;
|
|
80
|
+
resourceInputs["variants"] = state?.variants;
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
const args = argsOrState;
|
|
84
|
+
if (args?.key === undefined && !opts.urn) {
|
|
85
|
+
throw new Error("Missing required property 'key'");
|
|
86
|
+
}
|
|
87
|
+
if (args?.kind === undefined && !opts.urn) {
|
|
88
|
+
throw new Error("Missing required property 'kind'");
|
|
89
|
+
}
|
|
90
|
+
if (args?.projectId === undefined && !opts.urn) {
|
|
91
|
+
throw new Error("Missing required property 'projectId'");
|
|
92
|
+
}
|
|
93
|
+
if (args?.variants === undefined && !opts.urn) {
|
|
94
|
+
throw new Error("Missing required property 'variants'");
|
|
95
|
+
}
|
|
96
|
+
resourceInputs["archived"] = args?.archived;
|
|
97
|
+
resourceInputs["description"] = args?.description;
|
|
98
|
+
resourceInputs["key"] = args?.key;
|
|
99
|
+
resourceInputs["kind"] = args?.kind;
|
|
100
|
+
resourceInputs["projectId"] = args?.projectId;
|
|
101
|
+
resourceInputs["teamId"] = args?.teamId;
|
|
102
|
+
resourceInputs["variants"] = args?.variants;
|
|
103
|
+
}
|
|
104
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
105
|
+
super(FeatureFlagDefinition.__pulumiType, name, resourceInputs, opts);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.FeatureFlagDefinition = FeatureFlagDefinition;
|
|
109
|
+
/** @internal */
|
|
110
|
+
FeatureFlagDefinition.__pulumiType = 'vercel:index/featureFlagDefinition:FeatureFlagDefinition';
|
|
111
|
+
//# sourceMappingURL=featureFlagDefinition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featureFlagDefinition.js","sourceRoot":"","sources":["../featureFlagDefinition.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a Feature Flag SDK Key resource.
|
|
4
|
+
*
|
|
5
|
+
* SDK keys are project-scoped and environment-specific. Vercel only returns the cleartext SDK key and connection string at creation time, so this resource preserves the existing sensitive values in state when later reads omit them.
|
|
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: "feature-flag-sdk-key-example"});
|
|
14
|
+
* const exampleFeatureFlagSdkKey = new vercel.FeatureFlagSdkKey("example", {
|
|
15
|
+
* projectId: example.id,
|
|
16
|
+
* environment: "production",
|
|
17
|
+
* type: "server",
|
|
18
|
+
* label: "backend-sdk",
|
|
19
|
+
* });
|
|
20
|
+
* const exampleProjectEnvironmentVariable = new vercel.ProjectEnvironmentVariable("example", {
|
|
21
|
+
* projectId: example.id,
|
|
22
|
+
* targets: ["production"],
|
|
23
|
+
* sensitive: true,
|
|
24
|
+
* key: "FLAGS_CONNECTION_STRING",
|
|
25
|
+
* value: exampleFeatureFlagSdkKey.connectionString,
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* The `pulumi import` command can be used, for example:
|
|
32
|
+
*
|
|
33
|
+
* If importing into a personal account, or with a team configured on
|
|
34
|
+
* the provider, simply use the project ID and SDK key hash.
|
|
35
|
+
* - projectId can be found in the project `settings` tab in the Vercel UI.
|
|
36
|
+
* - hashKey can be found from the Flags SDK Keys UI or API.
|
|
37
|
+
*
|
|
38
|
+
* ```sh
|
|
39
|
+
* $ pulumi import vercel:index/featureFlagSdkKey:FeatureFlagSdkKey example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/sdk_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* Alternatively, you can import via the team_id, project_id, and SDK key hash.
|
|
43
|
+
* - teamId can be found in the team `settings` tab in the Vercel UI.
|
|
44
|
+
* - projectId can be found in the project `settings` tab in the Vercel UI.
|
|
45
|
+
*
|
|
46
|
+
* ```sh
|
|
47
|
+
* $ pulumi import vercel:index/featureFlagSdkKey:FeatureFlagSdkKey example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/sdk_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare class FeatureFlagSdkKey extends pulumi.CustomResource {
|
|
51
|
+
/**
|
|
52
|
+
* Get an existing FeatureFlagSdkKey resource's state with the given name, ID, and optional extra
|
|
53
|
+
* properties used to qualify the lookup.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resulting resource.
|
|
56
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
57
|
+
* @param state Any extra arguments used during the lookup.
|
|
58
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
59
|
+
*/
|
|
60
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FeatureFlagSdkKeyState, opts?: pulumi.CustomResourceOptions): FeatureFlagSdkKey;
|
|
61
|
+
/**
|
|
62
|
+
* Returns true if the given object is an instance of FeatureFlagSdkKey. This is designed to work even
|
|
63
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
64
|
+
*/
|
|
65
|
+
static isInstance(obj: any): obj is FeatureFlagSdkKey;
|
|
66
|
+
/**
|
|
67
|
+
* The connection string for this SDK key. Vercel only returns this at creation time.
|
|
68
|
+
*/
|
|
69
|
+
readonly connectionString: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* The environment this SDK key should authenticate against.
|
|
72
|
+
*/
|
|
73
|
+
readonly environment: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* An optional label to help identify this key in the Vercel dashboard.
|
|
76
|
+
*/
|
|
77
|
+
readonly label: pulumi.Output<string | undefined>;
|
|
78
|
+
/**
|
|
79
|
+
* The ID of the Vercel project that owns the SDK key.
|
|
80
|
+
*/
|
|
81
|
+
readonly projectId: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* The cleartext SDK key. Vercel only returns this at creation time.
|
|
84
|
+
*/
|
|
85
|
+
readonly sdkKey: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
|
|
88
|
+
*/
|
|
89
|
+
readonly teamId: pulumi.Output<string>;
|
|
90
|
+
/**
|
|
91
|
+
* The SDK key type. Must be one of `server`, `mobile`, or `client`.
|
|
92
|
+
*/
|
|
93
|
+
readonly type: pulumi.Output<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Create a FeatureFlagSdkKey resource with the given unique name, arguments, and options.
|
|
96
|
+
*
|
|
97
|
+
* @param name The _unique_ name of the resource.
|
|
98
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
99
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
100
|
+
*/
|
|
101
|
+
constructor(name: string, args: FeatureFlagSdkKeyArgs, opts?: pulumi.CustomResourceOptions);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Input properties used for looking up and filtering FeatureFlagSdkKey resources.
|
|
105
|
+
*/
|
|
106
|
+
export interface FeatureFlagSdkKeyState {
|
|
107
|
+
/**
|
|
108
|
+
* The connection string for this SDK key. Vercel only returns this at creation time.
|
|
109
|
+
*/
|
|
110
|
+
connectionString?: pulumi.Input<string>;
|
|
111
|
+
/**
|
|
112
|
+
* The environment this SDK key should authenticate against.
|
|
113
|
+
*/
|
|
114
|
+
environment?: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* An optional label to help identify this key in the Vercel dashboard.
|
|
117
|
+
*/
|
|
118
|
+
label?: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* The ID of the Vercel project that owns the SDK key.
|
|
121
|
+
*/
|
|
122
|
+
projectId?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* The cleartext SDK key. Vercel only returns this at creation time.
|
|
125
|
+
*/
|
|
126
|
+
sdkKey?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
|
|
129
|
+
*/
|
|
130
|
+
teamId?: pulumi.Input<string>;
|
|
131
|
+
/**
|
|
132
|
+
* The SDK key type. Must be one of `server`, `mobile`, or `client`.
|
|
133
|
+
*/
|
|
134
|
+
type?: pulumi.Input<string>;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* The set of arguments for constructing a FeatureFlagSdkKey resource.
|
|
138
|
+
*/
|
|
139
|
+
export interface FeatureFlagSdkKeyArgs {
|
|
140
|
+
/**
|
|
141
|
+
* The environment this SDK key should authenticate against.
|
|
142
|
+
*/
|
|
143
|
+
environment: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* An optional label to help identify this key in the Vercel dashboard.
|
|
146
|
+
*/
|
|
147
|
+
label?: pulumi.Input<string>;
|
|
148
|
+
/**
|
|
149
|
+
* The ID of the Vercel project that owns the SDK key.
|
|
150
|
+
*/
|
|
151
|
+
projectId: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* The ID of the Vercel team. Required when configuring a team resource if a default team has not been set in the provider.
|
|
154
|
+
*/
|
|
155
|
+
teamId?: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* The SDK key type. Must be one of `server`, `mobile`, or `client`.
|
|
158
|
+
*/
|
|
159
|
+
type: pulumi.Input<string>;
|
|
160
|
+
}
|