@pulumiverse/vercel 1.3.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/attackChallengeMode.d.ts +102 -0
  2. package/attackChallengeMode.js +89 -0
  3. package/attackChallengeMode.js.map +1 -0
  4. package/config/vars.d.ts +2 -2
  5. package/dnsRecord.d.ts +6 -4
  6. package/dnsRecord.js +6 -4
  7. package/dnsRecord.js.map +1 -1
  8. package/edgeConfig.d.ts +111 -0
  9. package/edgeConfig.js +102 -0
  10. package/edgeConfig.js.map +1 -0
  11. package/edgeConfigSchema.d.ts +85 -0
  12. package/edgeConfigSchema.js +79 -0
  13. package/edgeConfigSchema.js.map +1 -0
  14. package/edgeConfigToken.d.ts +145 -0
  15. package/edgeConfigToken.js +120 -0
  16. package/edgeConfigToken.js.map +1 -0
  17. package/getAttackChallengeMode.d.ts +82 -0
  18. package/getAttackChallengeMode.js +52 -0
  19. package/getAttackChallengeMode.js.map +1 -0
  20. package/getDeployment.d.ts +94 -0
  21. package/getDeployment.js +52 -0
  22. package/getDeployment.js.map +1 -0
  23. package/getEdgeConfig.d.ts +78 -0
  24. package/getEdgeConfig.js +52 -0
  25. package/getEdgeConfig.js.map +1 -0
  26. package/getEdgeConfigSchema.d.ts +74 -0
  27. package/getEdgeConfigSchema.js +48 -0
  28. package/getEdgeConfigSchema.js.map +1 -0
  29. package/getEdgeConfigToken.d.ts +104 -0
  30. package/getEdgeConfigToken.js +59 -0
  31. package/getEdgeConfigToken.js.map +1 -0
  32. package/getEndpointVerification.d.ts +62 -0
  33. package/getEndpointVerification.js +44 -0
  34. package/getEndpointVerification.js.map +1 -0
  35. package/getFile.d.ts +0 -4
  36. package/getFile.js +0 -4
  37. package/getFile.js.map +1 -1
  38. package/getLogDrain.d.ts +116 -0
  39. package/getLogDrain.js +57 -0
  40. package/getLogDrain.js.map +1 -0
  41. package/getProject.d.ts +48 -4
  42. package/getProject.js +0 -4
  43. package/getProject.js.map +1 -1
  44. package/getProjectFunctionCpu.d.ts +88 -0
  45. package/getProjectFunctionCpu.js +58 -0
  46. package/getProjectFunctionCpu.js.map +1 -0
  47. package/getSharedEnvironmentVariable.d.ts +0 -4
  48. package/getSharedEnvironmentVariable.js +0 -4
  49. package/getSharedEnvironmentVariable.js.map +1 -1
  50. package/index.d.ts +45 -0
  51. package/index.js +60 -1
  52. package/index.js.map +1 -1
  53. package/logDrain.d.ts +206 -0
  54. package/logDrain.js +135 -0
  55. package/logDrain.js.map +1 -0
  56. package/package.json +1 -1
  57. package/project.d.ts +132 -2
  58. package/project.js +22 -2
  59. package/project.js.map +1 -1
  60. package/projectDomain.d.ts +0 -2
  61. package/projectDomain.js +0 -2
  62. package/projectDomain.js.map +1 -1
  63. package/projectEnvironmentVariable.d.ts +6 -4
  64. package/projectEnvironmentVariable.js +6 -4
  65. package/projectEnvironmentVariable.js.map +1 -1
  66. package/projectFunctionCpu.d.ts +104 -0
  67. package/projectFunctionCpu.js +91 -0
  68. package/projectFunctionCpu.js.map +1 -0
  69. package/provider.d.ts +4 -4
  70. package/sharedEnvironmentVariable.d.ts +1 -3
  71. package/sharedEnvironmentVariable.js +1 -3
  72. package/sharedEnvironmentVariable.js.map +1 -1
  73. package/types/input.d.ts +33 -1
  74. package/types/output.d.ts +65 -4
  75. package/webhook.d.ts +127 -0
  76. package/webhook.js +100 -0
  77. package/webhook.js.map +1 -0
@@ -0,0 +1,102 @@
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 exampleProject = new vercel.Project("exampleProject", {});
14
+ * const exampleAttackChallengeMode = new vercel.AttackChallengeMode("exampleAttackChallengeMode", {
15
+ * projectId: exampleProject.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
+ */
32
+ export declare class AttackChallengeMode extends pulumi.CustomResource {
33
+ /**
34
+ * Get an existing AttackChallengeMode resource's state with the given name, ID, and optional extra
35
+ * properties used to qualify the lookup.
36
+ *
37
+ * @param name The _unique_ name of the resulting resource.
38
+ * @param id The _unique_ provider ID of the resource to lookup.
39
+ * @param state Any extra arguments used during the lookup.
40
+ * @param opts Optional settings to control the behavior of the CustomResource.
41
+ */
42
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AttackChallengeModeState, opts?: pulumi.CustomResourceOptions): AttackChallengeMode;
43
+ /**
44
+ * Returns true if the given object is an instance of AttackChallengeMode. This is designed to work even
45
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
46
+ */
47
+ static isInstance(obj: any): obj is AttackChallengeMode;
48
+ /**
49
+ * Whether Attack Challenge Mode is enabled or not.
50
+ */
51
+ readonly enabled: pulumi.Output<boolean>;
52
+ /**
53
+ * The ID of the Project to adjust the CPU for.
54
+ */
55
+ readonly projectId: pulumi.Output<string>;
56
+ /**
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.
58
+ */
59
+ readonly teamId: pulumi.Output<string>;
60
+ /**
61
+ * Create a AttackChallengeMode resource with the given unique name, arguments, and options.
62
+ *
63
+ * @param name The _unique_ name of the resource.
64
+ * @param args The arguments to use to populate this resource's properties.
65
+ * @param opts A bag of options that control this resource's behavior.
66
+ */
67
+ constructor(name: string, args: AttackChallengeModeArgs, opts?: pulumi.CustomResourceOptions);
68
+ }
69
+ /**
70
+ * Input properties used for looking up and filtering AttackChallengeMode resources.
71
+ */
72
+ export interface AttackChallengeModeState {
73
+ /**
74
+ * Whether Attack Challenge Mode is enabled or not.
75
+ */
76
+ enabled?: pulumi.Input<boolean>;
77
+ /**
78
+ * The ID of the Project to adjust the CPU for.
79
+ */
80
+ projectId?: pulumi.Input<string>;
81
+ /**
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.
83
+ */
84
+ teamId?: pulumi.Input<string>;
85
+ }
86
+ /**
87
+ * The set of arguments for constructing a AttackChallengeMode resource.
88
+ */
89
+ export interface AttackChallengeModeArgs {
90
+ /**
91
+ * Whether Attack Challenge Mode is enabled or not.
92
+ */
93
+ enabled: pulumi.Input<boolean>;
94
+ /**
95
+ * The ID of the Project to adjust the CPU for.
96
+ */
97
+ projectId: pulumi.Input<string>;
98
+ /**
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.
100
+ */
101
+ teamId?: pulumi.Input<string>;
102
+ }
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.AttackChallengeMode = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
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 exampleProject = new vercel.Project("exampleProject", {});
20
+ * const exampleAttackChallengeMode = new vercel.AttackChallengeMode("exampleAttackChallengeMode", {
21
+ * projectId: exampleProject.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
+ */
38
+ class AttackChallengeMode extends pulumi.CustomResource {
39
+ /**
40
+ * Get an existing AttackChallengeMode resource's state with the given name, ID, and optional extra
41
+ * properties used to qualify the lookup.
42
+ *
43
+ * @param name The _unique_ name of the resulting resource.
44
+ * @param id The _unique_ provider ID of the resource to lookup.
45
+ * @param state Any extra arguments used during the lookup.
46
+ * @param opts Optional settings to control the behavior of the CustomResource.
47
+ */
48
+ static get(name, id, state, opts) {
49
+ return new AttackChallengeMode(name, state, Object.assign(Object.assign({}, opts), { id: id }));
50
+ }
51
+ /**
52
+ * Returns true if the given object is an instance of AttackChallengeMode. This is designed to work even
53
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
54
+ */
55
+ static isInstance(obj) {
56
+ if (obj === undefined || obj === null) {
57
+ return false;
58
+ }
59
+ return obj['__pulumiType'] === AttackChallengeMode.__pulumiType;
60
+ }
61
+ constructor(name, argsOrState, opts) {
62
+ let resourceInputs = {};
63
+ opts = opts || {};
64
+ if (opts.id) {
65
+ const state = argsOrState;
66
+ resourceInputs["enabled"] = state ? state.enabled : undefined;
67
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
68
+ resourceInputs["teamId"] = state ? state.teamId : undefined;
69
+ }
70
+ else {
71
+ const args = argsOrState;
72
+ if ((!args || args.enabled === undefined) && !opts.urn) {
73
+ throw new Error("Missing required property 'enabled'");
74
+ }
75
+ if ((!args || args.projectId === undefined) && !opts.urn) {
76
+ throw new Error("Missing required property 'projectId'");
77
+ }
78
+ resourceInputs["enabled"] = args ? args.enabled : undefined;
79
+ resourceInputs["projectId"] = args ? args.projectId : undefined;
80
+ resourceInputs["teamId"] = args ? args.teamId : undefined;
81
+ }
82
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
83
+ super(AttackChallengeMode.__pulumiType, name, resourceInputs, opts);
84
+ }
85
+ }
86
+ exports.AttackChallengeMode = AttackChallengeMode;
87
+ /** @internal */
88
+ AttackChallengeMode.__pulumiType = 'vercel:index/attackChallengeMode:AttackChallengeMode';
89
+ //# sourceMappingURL=attackChallengeMode.js.map
@@ -0,0 +1 @@
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,CAAC;IACpE,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,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C;IACxE,CAAC;;AAvEL,kDAwEC;AA1DG,gBAAgB;AACO,gCAAY,GAAG,sDAAsD,CAAC"}
package/config/vars.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  */
5
5
  export declare const apiToken: string | undefined;
6
6
  /**
7
- * The default Vercel Team to use when creating resources. This can be provided as either a team slug, or team ID. The slug
8
- * and ID are both available from the Team Settings page in the Vercel dashboard.
7
+ * The default Vercel Team to use when creating resources or reading data sources. This can be provided as either a team
8
+ * slug, or team ID. The slug and ID are both available from the Team Settings page in the Vercel dashboard.
9
9
  */
10
10
  export declare const team: string | undefined;
package/dnsRecord.d.ts CHANGED
@@ -12,7 +12,6 @@ import * as outputs from "./types/output";
12
12
  *
13
13
  * ## Example Usage
14
14
  *
15
- * <!--Start PulumiCodeChooser -->
16
15
  * ```typescript
17
16
  * import * as pulumi from "@pulumi/pulumi";
18
17
  * import * as vercel from "@pulumiverse/vercel";
@@ -72,7 +71,6 @@ import * as outputs from "./types/output";
72
71
  * value: "some text value",
73
72
  * });
74
73
  * ```
75
- * <!--End PulumiCodeChooser -->
76
74
  *
77
75
  * ## Import
78
76
  *
@@ -80,7 +78,9 @@ import * as outputs from "./types/output";
80
78
  *
81
79
  * the provider, simply use the record id.
82
80
  *
83
- * - record_id is hard to find, but can be taken from the network tab, inside developer tools, on the domains page.
81
+ * - record_id can be taken from the network tab inside developer tools, while you are on the domains page,
82
+ *
83
+ * or can be queried from the Vercel API directly (https://vercel.com/docs/rest-api/endpoints/dns#list-existing-dns-records).
84
84
  *
85
85
  * ```sh
86
86
  * $ pulumi import vercel:index/dnsRecord:DnsRecord example rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
@@ -90,7 +90,9 @@ import * as outputs from "./types/output";
90
90
  *
91
91
  * - team_id can be found in the team `settings` tab in the Vercel UI.
92
92
  *
93
- * - record_id is hard to find, but can be taken from the network tab, inside developer tools, on the domains page.
93
+ * - record_id can be taken from the network tab inside developer tools, while you are on the domains page,
94
+ *
95
+ * or can be queried from the Vercel API directly (https://vercel.com/docs/rest-api/endpoints/dns#list-existing-dns-records).
94
96
  *
95
97
  * ```sh
96
98
  * $ pulumi import vercel:index/dnsRecord:DnsRecord example team_xxxxxxxxxxxxxxxxxxxxxxxx/rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
package/dnsRecord.js CHANGED
@@ -16,7 +16,6 @@ const utilities = require("./utilities");
16
16
  *
17
17
  * ## Example Usage
18
18
  *
19
- * <!--Start PulumiCodeChooser -->
20
19
  * ```typescript
21
20
  * import * as pulumi from "@pulumi/pulumi";
22
21
  * import * as vercel from "@pulumiverse/vercel";
@@ -76,7 +75,6 @@ const utilities = require("./utilities");
76
75
  * value: "some text value",
77
76
  * });
78
77
  * ```
79
- * <!--End PulumiCodeChooser -->
80
78
  *
81
79
  * ## Import
82
80
  *
@@ -84,7 +82,9 @@ const utilities = require("./utilities");
84
82
  *
85
83
  * the provider, simply use the record id.
86
84
  *
87
- * - record_id is hard to find, but can be taken from the network tab, inside developer tools, on the domains page.
85
+ * - record_id can be taken from the network tab inside developer tools, while you are on the domains page,
86
+ *
87
+ * or can be queried from the Vercel API directly (https://vercel.com/docs/rest-api/endpoints/dns#list-existing-dns-records).
88
88
  *
89
89
  * ```sh
90
90
  * $ pulumi import vercel:index/dnsRecord:DnsRecord example rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
@@ -94,7 +94,9 @@ const utilities = require("./utilities");
94
94
  *
95
95
  * - team_id can be found in the team `settings` tab in the Vercel UI.
96
96
  *
97
- * - record_id is hard to find, but can be taken from the network tab, inside developer tools, on the domains page.
97
+ * - record_id can be taken from the network tab inside developer tools, while you are on the domains page,
98
+ *
99
+ * or can be queried from the Vercel API directly (https://vercel.com/docs/rest-api/endpoints/dns#list-existing-dns-records).
98
100
  *
99
101
  * ```sh
100
102
  * $ pulumi import vercel:index/dnsRecord:DnsRecord example team_xxxxxxxxxxxxxxxxxxxxxxxx/rec_xxxxxxxxxxxxxxxxxxxxxxxxxx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,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AAlHL,8BAmHC;AArGG,gBAAgB;AACO,sBAAY,GAAG,kCAAkC,CAAC"}
@@ -0,0 +1,111 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides an Edge Config resource.
4
+ *
5
+ * An Edge Config is a global data store that enables experimentation with feature flags, A/B testing, critical redirects, and more.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as vercel from "@pulumiverse/vercel";
12
+ *
13
+ * const exampleEdgeConfig = new vercel.EdgeConfig("exampleEdgeConfig", {});
14
+ * const exampleProject = new vercel.Project("exampleProject", {});
15
+ * const exampleEdgeConfigToken = new vercel.EdgeConfigToken("exampleEdgeConfigToken", {
16
+ * edgeConfigId: exampleEdgeConfig.id,
17
+ * label: "example token",
18
+ * });
19
+ * const exampleProjectEnvironmentVariable = new vercel.ProjectEnvironmentVariable("exampleProjectEnvironmentVariable", {
20
+ * projectId: exampleProject.id,
21
+ * targets: [
22
+ * "production",
23
+ * "preview",
24
+ * "development",
25
+ * ],
26
+ * key: "EDGE_CONFIG",
27
+ * value: exampleEdgeConfigToken.connectionString,
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 edge config id.
36
+ *
37
+ * - edge_config_id can be found by navigating to the Edge Config in the Vercel UI. It should begin with `ecfg_`.
38
+ *
39
+ * ```sh
40
+ * $ pulumi import vercel:index/edgeConfig:EdgeConfig example ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
41
+ * ```
42
+ *
43
+ * Alternatively, you can import via the team_id and edge_config_id.
44
+ *
45
+ * - team_id can be found in the team `settings` tab in the Vercel UI.
46
+ *
47
+ * - edge_config_id can be found by navigating to the Edge Config in the Vercel UI. It should begin with `ecfg_`.
48
+ *
49
+ * ```sh
50
+ * $ pulumi import vercel:index/edgeConfig:EdgeConfig example team_xxxxxxxxxxxxxxxxxxxxxxxx/ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
51
+ * ```
52
+ */
53
+ export declare class EdgeConfig extends pulumi.CustomResource {
54
+ /**
55
+ * Get an existing EdgeConfig resource's state with the given name, ID, and optional extra
56
+ * properties used to qualify the lookup.
57
+ *
58
+ * @param name The _unique_ name of the resulting resource.
59
+ * @param id The _unique_ provider ID of the resource to lookup.
60
+ * @param state Any extra arguments used during the lookup.
61
+ * @param opts Optional settings to control the behavior of the CustomResource.
62
+ */
63
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EdgeConfigState, opts?: pulumi.CustomResourceOptions): EdgeConfig;
64
+ /**
65
+ * Returns true if the given object is an instance of EdgeConfig. This is designed to work even
66
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
67
+ */
68
+ static isInstance(obj: any): obj is EdgeConfig;
69
+ /**
70
+ * The name/slug of the Edge Config.
71
+ */
72
+ readonly name: pulumi.Output<string>;
73
+ /**
74
+ * The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
75
+ */
76
+ readonly teamId: pulumi.Output<string>;
77
+ /**
78
+ * Create a EdgeConfig resource with the given unique name, arguments, and options.
79
+ *
80
+ * @param name The _unique_ name of the resource.
81
+ * @param args The arguments to use to populate this resource's properties.
82
+ * @param opts A bag of options that control this resource's behavior.
83
+ */
84
+ constructor(name: string, args?: EdgeConfigArgs, opts?: pulumi.CustomResourceOptions);
85
+ }
86
+ /**
87
+ * Input properties used for looking up and filtering EdgeConfig resources.
88
+ */
89
+ export interface EdgeConfigState {
90
+ /**
91
+ * The name/slug of the Edge Config.
92
+ */
93
+ name?: pulumi.Input<string>;
94
+ /**
95
+ * The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
96
+ */
97
+ teamId?: pulumi.Input<string>;
98
+ }
99
+ /**
100
+ * The set of arguments for constructing a EdgeConfig resource.
101
+ */
102
+ export interface EdgeConfigArgs {
103
+ /**
104
+ * The name/slug of the Edge Config.
105
+ */
106
+ name?: pulumi.Input<string>;
107
+ /**
108
+ * The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
109
+ */
110
+ teamId?: pulumi.Input<string>;
111
+ }
package/edgeConfig.js ADDED
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.EdgeConfig = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides an Edge Config resource.
10
+ *
11
+ * An Edge Config is a global data store that enables experimentation with feature flags, A/B testing, critical redirects, and more.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as vercel from "@pulumiverse/vercel";
18
+ *
19
+ * const exampleEdgeConfig = new vercel.EdgeConfig("exampleEdgeConfig", {});
20
+ * const exampleProject = new vercel.Project("exampleProject", {});
21
+ * const exampleEdgeConfigToken = new vercel.EdgeConfigToken("exampleEdgeConfigToken", {
22
+ * edgeConfigId: exampleEdgeConfig.id,
23
+ * label: "example token",
24
+ * });
25
+ * const exampleProjectEnvironmentVariable = new vercel.ProjectEnvironmentVariable("exampleProjectEnvironmentVariable", {
26
+ * projectId: exampleProject.id,
27
+ * targets: [
28
+ * "production",
29
+ * "preview",
30
+ * "development",
31
+ * ],
32
+ * key: "EDGE_CONFIG",
33
+ * value: exampleEdgeConfigToken.connectionString,
34
+ * });
35
+ * ```
36
+ *
37
+ * ## Import
38
+ *
39
+ * If importing into a personal account, or with a team configured on
40
+ *
41
+ * the provider, simply use the edge config id.
42
+ *
43
+ * - edge_config_id can be found by navigating to the Edge Config in the Vercel UI. It should begin with `ecfg_`.
44
+ *
45
+ * ```sh
46
+ * $ pulumi import vercel:index/edgeConfig:EdgeConfig example ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
47
+ * ```
48
+ *
49
+ * Alternatively, you can import via the team_id and edge_config_id.
50
+ *
51
+ * - team_id can be found in the team `settings` tab in the Vercel UI.
52
+ *
53
+ * - edge_config_id can be found by navigating to the Edge Config in the Vercel UI. It should begin with `ecfg_`.
54
+ *
55
+ * ```sh
56
+ * $ pulumi import vercel:index/edgeConfig:EdgeConfig example team_xxxxxxxxxxxxxxxxxxxxxxxx/ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
57
+ * ```
58
+ */
59
+ class EdgeConfig extends pulumi.CustomResource {
60
+ /**
61
+ * Get an existing EdgeConfig resource's state with the given name, ID, and optional extra
62
+ * properties used to qualify the lookup.
63
+ *
64
+ * @param name The _unique_ name of the resulting resource.
65
+ * @param id The _unique_ provider ID of the resource to lookup.
66
+ * @param state Any extra arguments used during the lookup.
67
+ * @param opts Optional settings to control the behavior of the CustomResource.
68
+ */
69
+ static get(name, id, state, opts) {
70
+ return new EdgeConfig(name, state, Object.assign(Object.assign({}, opts), { id: id }));
71
+ }
72
+ /**
73
+ * Returns true if the given object is an instance of EdgeConfig. This is designed to work even
74
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
75
+ */
76
+ static isInstance(obj) {
77
+ if (obj === undefined || obj === null) {
78
+ return false;
79
+ }
80
+ return obj['__pulumiType'] === EdgeConfig.__pulumiType;
81
+ }
82
+ constructor(name, argsOrState, opts) {
83
+ let resourceInputs = {};
84
+ opts = opts || {};
85
+ if (opts.id) {
86
+ const state = argsOrState;
87
+ resourceInputs["name"] = state ? state.name : undefined;
88
+ resourceInputs["teamId"] = state ? state.teamId : undefined;
89
+ }
90
+ else {
91
+ const args = argsOrState;
92
+ resourceInputs["name"] = args ? args.name : undefined;
93
+ resourceInputs["teamId"] = args ? args.teamId : undefined;
94
+ }
95
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
96
+ super(EdgeConfig.__pulumiType, name, resourceInputs, opts);
97
+ }
98
+ }
99
+ exports.EdgeConfig = EdgeConfig;
100
+ /** @internal */
101
+ EdgeConfig.__pulumiType = 'vercel:index/edgeConfig:EdgeConfig';
102
+ //# sourceMappingURL=edgeConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edgeConfig.js","sourceRoot":"","sources":["../edgeConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MA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C,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AA3DL,gCA4DC;AA9CG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
@@ -0,0 +1,85 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * An Edge Config Schema provides an existing Edge Config with a JSON schema. Use schema protection to prevent unexpected updates that may cause bugs or downtime.
4
+ *
5
+ * ## Import
6
+ *
7
+ * If importing into a personal account, or with a team configured on
8
+ *
9
+ * the provider, simply use the edge config id.
10
+ *
11
+ * - edge_config_id can be found by navigating to the Edge Config in the Vercel UI. It should begin with `ecfg_`.
12
+ *
13
+ * ```sh
14
+ * $ pulumi import vercel:index/edgeConfigSchema:EdgeConfigSchema example ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
15
+ * ```
16
+ *
17
+ * Alternatively, you can import via the team_id and edge_config_id.
18
+ *
19
+ * - team_id can be found in the team `settings` tab in the Vercel UI.
20
+ *
21
+ * - edge_config_id can be found by navigating to the Edge Config in the Vercel UI. It should begin with `ecfg_`.
22
+ *
23
+ * ```sh
24
+ * $ pulumi import vercel:index/edgeConfigSchema:EdgeConfigSchema example team_xxxxxxxxxxxxxxxxxxxxxxxx/ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
25
+ * ```
26
+ */
27
+ export declare class EdgeConfigSchema extends pulumi.CustomResource {
28
+ /**
29
+ * Get an existing EdgeConfigSchema resource's state with the given name, ID, and optional extra
30
+ * properties used to qualify the lookup.
31
+ *
32
+ * @param name The _unique_ name of the resulting resource.
33
+ * @param id The _unique_ provider ID of the resource to lookup.
34
+ * @param state Any extra arguments used during the lookup.
35
+ * @param opts Optional settings to control the behavior of the CustomResource.
36
+ */
37
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EdgeConfigSchemaState, opts?: pulumi.CustomResourceOptions): EdgeConfigSchema;
38
+ /**
39
+ * Returns true if the given object is an instance of EdgeConfigSchema. This is designed to work even
40
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
41
+ */
42
+ static isInstance(obj: any): obj is EdgeConfigSchema;
43
+ /**
44
+ * A JSON schema that will be used to validate data in the Edge Config.
45
+ */
46
+ readonly definition: pulumi.Output<string>;
47
+ /**
48
+ * The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
49
+ */
50
+ readonly teamId: pulumi.Output<string>;
51
+ /**
52
+ * Create a EdgeConfigSchema resource with the given unique name, arguments, and options.
53
+ *
54
+ * @param name The _unique_ name of the resource.
55
+ * @param args The arguments to use to populate this resource's properties.
56
+ * @param opts A bag of options that control this resource's behavior.
57
+ */
58
+ constructor(name: string, args: EdgeConfigSchemaArgs, opts?: pulumi.CustomResourceOptions);
59
+ }
60
+ /**
61
+ * Input properties used for looking up and filtering EdgeConfigSchema resources.
62
+ */
63
+ export interface EdgeConfigSchemaState {
64
+ /**
65
+ * A JSON schema that will be used to validate data in the Edge Config.
66
+ */
67
+ definition?: pulumi.Input<string>;
68
+ /**
69
+ * The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
70
+ */
71
+ teamId?: pulumi.Input<string>;
72
+ }
73
+ /**
74
+ * The set of arguments for constructing a EdgeConfigSchema resource.
75
+ */
76
+ export interface EdgeConfigSchemaArgs {
77
+ /**
78
+ * A JSON schema that will be used to validate data in the Edge Config.
79
+ */
80
+ definition: pulumi.Input<string>;
81
+ /**
82
+ * The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
83
+ */
84
+ teamId?: pulumi.Input<string>;
85
+ }