@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.
Files changed (153) hide show
  1. package/accessGroup.d.ts +3 -2
  2. package/accessGroup.js +3 -2
  3. package/accessGroup.js.map +1 -1
  4. package/accessGroupProject.d.ts +4 -3
  5. package/accessGroupProject.js +4 -3
  6. package/accessGroupProject.js.map +1 -1
  7. package/attackChallengeMode.d.ts +4 -4
  8. package/attackChallengeMode.js +4 -4
  9. package/blobObject.d.ts +177 -0
  10. package/blobObject.js +89 -0
  11. package/blobObject.js.map +1 -0
  12. package/blobProjectConnection.d.ts +144 -0
  13. package/blobProjectConnection.js +105 -0
  14. package/blobProjectConnection.js.map +1 -0
  15. package/blobStore.d.ts +159 -0
  16. package/blobStore.js +100 -0
  17. package/blobStore.js.map +1 -0
  18. package/bulkRedirects.d.ts +135 -0
  19. package/bulkRedirects.js +114 -0
  20. package/bulkRedirects.js.map +1 -0
  21. package/customEnvironment.d.ts +7 -9
  22. package/customEnvironment.js +7 -9
  23. package/customEnvironment.js.map +1 -1
  24. package/deployment.d.ts +36 -0
  25. package/deployment.js +27 -0
  26. package/deployment.js.map +1 -1
  27. package/dnsRecord.d.ts +8 -12
  28. package/dnsRecord.js +8 -12
  29. package/dnsRecord.js.map +1 -1
  30. package/edgeConfig.d.ts +7 -9
  31. package/edgeConfig.js +7 -9
  32. package/edgeConfig.js.map +1 -1
  33. package/edgeConfigItem.d.ts +6 -10
  34. package/edgeConfigItem.js +6 -10
  35. package/edgeConfigItem.js.map +1 -1
  36. package/edgeConfigSchema.d.ts +6 -8
  37. package/edgeConfigSchema.js +6 -8
  38. package/edgeConfigSchema.js.map +1 -1
  39. package/edgeConfigToken.d.ts +7 -11
  40. package/edgeConfigToken.js +7 -11
  41. package/edgeConfigToken.js.map +1 -1
  42. package/featureFlagConfig.d.ts +167 -0
  43. package/featureFlagConfig.js +131 -0
  44. package/featureFlagConfig.js.map +1 -0
  45. package/featureFlagDefinition.d.ts +160 -0
  46. package/featureFlagDefinition.js +111 -0
  47. package/featureFlagDefinition.js.map +1 -0
  48. package/featureFlagSdkKey.d.ts +160 -0
  49. package/featureFlagSdkKey.js +120 -0
  50. package/featureFlagSdkKey.js.map +1 -0
  51. package/featureFlagSegment.d.ts +191 -0
  52. package/featureFlagSegment.js +126 -0
  53. package/featureFlagSegment.js.map +1 -0
  54. package/firewallBypass.d.ts +3 -2
  55. package/firewallBypass.js +3 -2
  56. package/firewallBypass.js.map +1 -1
  57. package/firewallConfig.d.ts +2 -0
  58. package/firewallConfig.js +2 -0
  59. package/firewallConfig.js.map +1 -1
  60. package/getBlobObject.d.ts +100 -0
  61. package/getBlobObject.js +32 -0
  62. package/getBlobObject.js.map +1 -0
  63. package/getBlobProjectConnections.d.ts +91 -0
  64. package/getBlobProjectConnections.js +64 -0
  65. package/getBlobProjectConnections.js.map +1 -0
  66. package/getBlobStore.d.ts +104 -0
  67. package/getBlobStore.js +54 -0
  68. package/getBlobStore.js.map +1 -0
  69. package/getBlobStoreSecrets.d.ts +80 -0
  70. package/getBlobStoreSecrets.js +54 -0
  71. package/getBlobStoreSecrets.js.map +1 -0
  72. package/getBlobStores.d.ts +63 -0
  73. package/getBlobStores.js +48 -0
  74. package/getBlobStores.js.map +1 -0
  75. package/getBulkRedirects.d.ts +97 -0
  76. package/getBulkRedirects.js +60 -0
  77. package/getBulkRedirects.js.map +1 -0
  78. package/getFeatureFlag.d.ts +121 -0
  79. package/getFeatureFlag.js +60 -0
  80. package/getFeatureFlag.js.map +1 -0
  81. package/getFeatureFlagSdkKey.d.ts +100 -0
  82. package/getFeatureFlagSdkKey.js +60 -0
  83. package/getFeatureFlagSdkKey.js.map +1 -0
  84. package/getFeatureFlagSegment.d.ts +113 -0
  85. package/getFeatureFlagSegment.js +60 -0
  86. package/getFeatureFlagSegment.js.map +1 -0
  87. package/getFile.d.ts +9 -0
  88. package/getFile.js.map +1 -1
  89. package/getPrebuiltProject.d.ts +51 -0
  90. package/getPrebuiltProject.js +42 -0
  91. package/getPrebuiltProject.js.map +1 -1
  92. package/getProject.d.ts +14 -4
  93. package/getProject.js.map +1 -1
  94. package/getProjectDirectory.d.ts +47 -0
  95. package/getProjectDirectory.js +38 -0
  96. package/getProjectDirectory.js.map +1 -1
  97. package/getProjectRoutes.d.ts +89 -0
  98. package/getProjectRoutes.js +62 -0
  99. package/getProjectRoutes.js.map +1 -0
  100. package/index.d.ts +63 -0
  101. package/index.js +88 -2
  102. package/index.js.map +1 -1
  103. package/logDrain.d.ts +6 -8
  104. package/logDrain.js +6 -8
  105. package/logDrain.js.map +1 -1
  106. package/microfrontendGroup.d.ts +4 -5
  107. package/microfrontendGroup.js +4 -5
  108. package/microfrontendGroup.js.map +1 -1
  109. package/microfrontendGroupMembership.d.ts +4 -7
  110. package/microfrontendGroupMembership.js +4 -7
  111. package/microfrontendGroupMembership.js.map +1 -1
  112. package/package.json +2 -2
  113. package/project.d.ts +75 -38
  114. package/project.js +53 -14
  115. package/project.js.map +1 -1
  116. package/projectCrons.d.ts +6 -7
  117. package/projectCrons.js +6 -7
  118. package/projectCrons.js.map +1 -1
  119. package/projectDeploymentRetention.d.ts +12 -4
  120. package/projectDeploymentRetention.js +12 -4
  121. package/projectDeploymentRetention.js.map +1 -1
  122. package/projectDomain.d.ts +6 -8
  123. package/projectDomain.js +6 -8
  124. package/projectDomain.js.map +1 -1
  125. package/projectEnvironmentVariable.d.ts +24 -20
  126. package/projectEnvironmentVariable.js +23 -16
  127. package/projectEnvironmentVariable.js.map +1 -1
  128. package/projectEnvironmentVariables.d.ts +18 -5
  129. package/projectEnvironmentVariables.js +18 -5
  130. package/projectEnvironmentVariables.js.map +1 -1
  131. package/projectMembers.d.ts +6 -0
  132. package/projectMembers.js +6 -0
  133. package/projectMembers.js.map +1 -1
  134. package/projectProtectionBypass.d.ts +171 -0
  135. package/projectProtectionBypass.js +119 -0
  136. package/projectProtectionBypass.js.map +1 -0
  137. package/projectRoute.d.ts +219 -0
  138. package/projectRoute.js +148 -0
  139. package/projectRoute.js.map +1 -0
  140. package/sharedEnvironmentVariable.d.ts +28 -9
  141. package/sharedEnvironmentVariable.js +27 -5
  142. package/sharedEnvironmentVariable.js.map +1 -1
  143. package/teamConfig.d.ts +3 -2
  144. package/teamConfig.js +3 -2
  145. package/teamConfig.js.map +1 -1
  146. package/teamMember.d.ts +3 -1
  147. package/teamMember.js +3 -1
  148. package/teamMember.js.map +1 -1
  149. package/types/input.d.ts +324 -4
  150. package/types/output.d.ts +705 -2
  151. package/userToken.d.ts +186 -0
  152. package/userToken.js +115 -0
  153. package/userToken.js.map +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blobProjectConnection.js","sourceRoot":"","sources":["../blobProjectConnection.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5E,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,qBAAqB,CAAC,YAAY,CAAC;IACtE,CAAC;IAmCD,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,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E,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AAzFL,sDA0FC;AA5EG,gBAAgB;AACO,kCAAY,GAAG,0DAA0D,CAAC"}
package/blobStore.d.ts ADDED
@@ -0,0 +1,159 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a Vercel Blob store.
4
+ *
5
+ * Blob stores are team-scoped storage resources that back Vercel Blob uploads and can be connected to one or more projects.
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.BlobStore("example", {
14
+ * name: "example-blob-store",
15
+ * access: "private",
16
+ * region: "iad1",
17
+ * });
18
+ * ```
19
+ *
20
+ * ## Import
21
+ *
22
+ * The `pulumi import` command can be used, for example:
23
+ *
24
+ * If importing into a personal account, or with a team configured on
25
+ * the provider, simply use the Blob store id.
26
+ *
27
+ * ```sh
28
+ * $ pulumi import vercel:index/blobStore:BlobStore example store_xxxxxxxxxxxxxxxxxx
29
+ * ```
30
+ *
31
+ * Alternatively, you can import via the teamId and Blob store id.
32
+ *
33
+ * ```sh
34
+ * $ pulumi import vercel:index/blobStore:BlobStore example team_xxxxxxxxxxxxxxxxxxxxxxxx/store_xxxxxxxxxxxxxxxxxx
35
+ * ```
36
+ */
37
+ export declare class BlobStore extends pulumi.CustomResource {
38
+ /**
39
+ * Get an existing BlobStore resource's state with the given name, ID, and optional extra
40
+ * properties used to qualify the lookup.
41
+ *
42
+ * @param name The _unique_ name of the resulting resource.
43
+ * @param id The _unique_ provider ID of the resource to lookup.
44
+ * @param state Any extra arguments used during the lookup.
45
+ * @param opts Optional settings to control the behavior of the CustomResource.
46
+ */
47
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BlobStoreState, opts?: pulumi.CustomResourceOptions): BlobStore;
48
+ /**
49
+ * Returns true if the given object is an instance of BlobStore. This is designed to work even
50
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
+ */
52
+ static isInstance(obj: any): obj is BlobStore;
53
+ /**
54
+ * Whether blobs should be created with `public` or `private` access.
55
+ */
56
+ readonly access: pulumi.Output<string>;
57
+ /**
58
+ * The Unix timestamp, in milliseconds, when the Blob store was created.
59
+ */
60
+ readonly createdAt: pulumi.Output<number>;
61
+ /**
62
+ * The number of files currently stored in the Blob store.
63
+ */
64
+ readonly fileCount: pulumi.Output<number>;
65
+ /**
66
+ * The name of the Blob store.
67
+ */
68
+ readonly name: pulumi.Output<string>;
69
+ /**
70
+ * The region in which the Blob store should be created.
71
+ */
72
+ readonly region: pulumi.Output<string>;
73
+ /**
74
+ * The size of the Blob store in bytes.
75
+ */
76
+ readonly size: pulumi.Output<number>;
77
+ /**
78
+ * The current status of the Blob store.
79
+ */
80
+ readonly status: pulumi.Output<string>;
81
+ /**
82
+ * The ID of the team the Blob store should exist under. Required when configuring a team resource if a default team has not been set in the provider.
83
+ */
84
+ readonly teamId: pulumi.Output<string>;
85
+ /**
86
+ * The Unix timestamp, in milliseconds, when the Blob store was last updated.
87
+ */
88
+ readonly updatedAt: pulumi.Output<number>;
89
+ /**
90
+ * Create a BlobStore resource with the given unique name, arguments, and options.
91
+ *
92
+ * @param name The _unique_ name of the resource.
93
+ * @param args The arguments to use to populate this resource's properties.
94
+ * @param opts A bag of options that control this resource's behavior.
95
+ */
96
+ constructor(name: string, args?: BlobStoreArgs, opts?: pulumi.CustomResourceOptions);
97
+ }
98
+ /**
99
+ * Input properties used for looking up and filtering BlobStore resources.
100
+ */
101
+ export interface BlobStoreState {
102
+ /**
103
+ * Whether blobs should be created with `public` or `private` access.
104
+ */
105
+ access?: pulumi.Input<string>;
106
+ /**
107
+ * The Unix timestamp, in milliseconds, when the Blob store was created.
108
+ */
109
+ createdAt?: pulumi.Input<number>;
110
+ /**
111
+ * The number of files currently stored in the Blob store.
112
+ */
113
+ fileCount?: pulumi.Input<number>;
114
+ /**
115
+ * The name of the Blob store.
116
+ */
117
+ name?: pulumi.Input<string>;
118
+ /**
119
+ * The region in which the Blob store should be created.
120
+ */
121
+ region?: pulumi.Input<string>;
122
+ /**
123
+ * The size of the Blob store in bytes.
124
+ */
125
+ size?: pulumi.Input<number>;
126
+ /**
127
+ * The current status of the Blob store.
128
+ */
129
+ status?: pulumi.Input<string>;
130
+ /**
131
+ * The ID of the team the Blob store should exist under. Required when configuring a team resource if a default team has not been set in the provider.
132
+ */
133
+ teamId?: pulumi.Input<string>;
134
+ /**
135
+ * The Unix timestamp, in milliseconds, when the Blob store was last updated.
136
+ */
137
+ updatedAt?: pulumi.Input<number>;
138
+ }
139
+ /**
140
+ * The set of arguments for constructing a BlobStore resource.
141
+ */
142
+ export interface BlobStoreArgs {
143
+ /**
144
+ * Whether blobs should be created with `public` or `private` access.
145
+ */
146
+ access?: pulumi.Input<string>;
147
+ /**
148
+ * The name of the Blob store.
149
+ */
150
+ name?: pulumi.Input<string>;
151
+ /**
152
+ * The region in which the Blob store should be created.
153
+ */
154
+ region?: pulumi.Input<string>;
155
+ /**
156
+ * The ID of the team the Blob store should exist under. Required when configuring a team resource if a default team has not been set in the provider.
157
+ */
158
+ teamId?: pulumi.Input<string>;
159
+ }
package/blobStore.js ADDED
@@ -0,0 +1,100 @@
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.BlobStore = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides a Vercel Blob store.
10
+ *
11
+ * Blob stores are team-scoped storage resources that back Vercel Blob uploads and can be connected to one or more projects.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as vercel from "@pulumiverse/vercel";
18
+ *
19
+ * const example = new vercel.BlobStore("example", {
20
+ * name: "example-blob-store",
21
+ * access: "private",
22
+ * region: "iad1",
23
+ * });
24
+ * ```
25
+ *
26
+ * ## Import
27
+ *
28
+ * The `pulumi import` command can be used, for example:
29
+ *
30
+ * If importing into a personal account, or with a team configured on
31
+ * the provider, simply use the Blob store id.
32
+ *
33
+ * ```sh
34
+ * $ pulumi import vercel:index/blobStore:BlobStore example store_xxxxxxxxxxxxxxxxxx
35
+ * ```
36
+ *
37
+ * Alternatively, you can import via the teamId and Blob store id.
38
+ *
39
+ * ```sh
40
+ * $ pulumi import vercel:index/blobStore:BlobStore example team_xxxxxxxxxxxxxxxxxxxxxxxx/store_xxxxxxxxxxxxxxxxxx
41
+ * ```
42
+ */
43
+ class BlobStore extends pulumi.CustomResource {
44
+ /**
45
+ * Get an existing BlobStore resource's state with the given name, ID, and optional extra
46
+ * properties used to qualify the lookup.
47
+ *
48
+ * @param name The _unique_ name of the resulting resource.
49
+ * @param id The _unique_ provider ID of the resource to lookup.
50
+ * @param state Any extra arguments used during the lookup.
51
+ * @param opts Optional settings to control the behavior of the CustomResource.
52
+ */
53
+ static get(name, id, state, opts) {
54
+ return new BlobStore(name, state, { ...opts, id: id });
55
+ }
56
+ /**
57
+ * Returns true if the given object is an instance of BlobStore. This is designed to work even
58
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
59
+ */
60
+ static isInstance(obj) {
61
+ if (obj === undefined || obj === null) {
62
+ return false;
63
+ }
64
+ return obj['__pulumiType'] === BlobStore.__pulumiType;
65
+ }
66
+ constructor(name, argsOrState, opts) {
67
+ let resourceInputs = {};
68
+ opts = opts || {};
69
+ if (opts.id) {
70
+ const state = argsOrState;
71
+ resourceInputs["access"] = state?.access;
72
+ resourceInputs["createdAt"] = state?.createdAt;
73
+ resourceInputs["fileCount"] = state?.fileCount;
74
+ resourceInputs["name"] = state?.name;
75
+ resourceInputs["region"] = state?.region;
76
+ resourceInputs["size"] = state?.size;
77
+ resourceInputs["status"] = state?.status;
78
+ resourceInputs["teamId"] = state?.teamId;
79
+ resourceInputs["updatedAt"] = state?.updatedAt;
80
+ }
81
+ else {
82
+ const args = argsOrState;
83
+ resourceInputs["access"] = args?.access;
84
+ resourceInputs["name"] = args?.name;
85
+ resourceInputs["region"] = args?.region;
86
+ resourceInputs["teamId"] = args?.teamId;
87
+ resourceInputs["createdAt"] = undefined /*out*/;
88
+ resourceInputs["fileCount"] = undefined /*out*/;
89
+ resourceInputs["size"] = undefined /*out*/;
90
+ resourceInputs["status"] = undefined /*out*/;
91
+ resourceInputs["updatedAt"] = undefined /*out*/;
92
+ }
93
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
94
+ super(BlobStore.__pulumiType, name, resourceInputs, opts);
95
+ }
96
+ }
97
+ exports.BlobStore = BlobStore;
98
+ /** @internal */
99
+ BlobStore.__pulumiType = 'vercel:index/blobStore:BlobStore';
100
+ //# sourceMappingURL=blobStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blobStore.js","sourceRoot":"","sources":["../blobStore.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChE,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,OAA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D,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;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;;AArGL,8BAsGC;AAxFG,gBAAgB;AACO,sBAAY,GAAG,kCAAkC,CAAC"}
@@ -0,0 +1,135 @@
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 Bulk Redirects resource.
6
+ *
7
+ * This resource manages the live project-level bulk redirects for a Vercel project.
8
+ * Each apply stages the configured redirect set and promotes that version to production.
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as vercel from "@pulumiverse/vercel";
15
+ *
16
+ * const example = new vercel.Project("example", {name: "example-project"});
17
+ * const exampleBulkRedirects = new vercel.BulkRedirects("example", {
18
+ * projectId: example.id,
19
+ * redirects: [
20
+ * {
21
+ * source: "/old-path",
22
+ * destination: "/new-path",
23
+ * statusCode: 307,
24
+ * caseSensitive: false,
25
+ * query: false,
26
+ * },
27
+ * {
28
+ * source: "/blog",
29
+ * destination: "https://example.com/blog",
30
+ * statusCode: 308,
31
+ * caseSensitive: true,
32
+ * query: true,
33
+ * },
34
+ * ],
35
+ * });
36
+ * ```
37
+ *
38
+ * ## Import
39
+ *
40
+ * The `pulumi import` command can be used, for example:
41
+ *
42
+ * If importing with a team configured on the provider, simply use the project ID.
43
+ * - projectId can be found in the project `settings` tab in the Vercel UI.
44
+ *
45
+ * ```sh
46
+ * $ pulumi import vercel:index/bulkRedirects:BulkRedirects example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
47
+ * ```
48
+ *
49
+ * Alternatively, you can import via the teamId and project_id.
50
+ * - teamId can be found in the team `settings` tab in the Vercel UI.
51
+ * - projectId can be found in the project `settings` tab in the Vercel UI.
52
+ *
53
+ * ```sh
54
+ * $ pulumi import vercel:index/bulkRedirects:BulkRedirects example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
55
+ * ```
56
+ */
57
+ export declare class BulkRedirects extends pulumi.CustomResource {
58
+ /**
59
+ * Get an existing BulkRedirects resource's state with the given name, ID, and optional extra
60
+ * properties used to qualify the lookup.
61
+ *
62
+ * @param name The _unique_ name of the resulting resource.
63
+ * @param id The _unique_ provider ID of the resource to lookup.
64
+ * @param state Any extra arguments used during the lookup.
65
+ * @param opts Optional settings to control the behavior of the CustomResource.
66
+ */
67
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BulkRedirectsState, opts?: pulumi.CustomResourceOptions): BulkRedirects;
68
+ /**
69
+ * Returns true if the given object is an instance of BulkRedirects. This is designed to work even
70
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
71
+ */
72
+ static isInstance(obj: any): obj is BulkRedirects;
73
+ /**
74
+ * The ID of the Vercel project to manage redirects for.
75
+ */
76
+ readonly projectId: pulumi.Output<string>;
77
+ /**
78
+ * The full set of live bulk redirects for the project.
79
+ */
80
+ readonly redirects: pulumi.Output<outputs.BulkRedirectsRedirect[]>;
81
+ /**
82
+ * The ID of the Vercel team.
83
+ */
84
+ readonly teamId: pulumi.Output<string>;
85
+ /**
86
+ * The ID of the live bulk redirects version managed by this resource.
87
+ */
88
+ readonly versionId: pulumi.Output<string>;
89
+ /**
90
+ * Create a BulkRedirects resource with the given unique name, arguments, and options.
91
+ *
92
+ * @param name The _unique_ name of the resource.
93
+ * @param args The arguments to use to populate this resource's properties.
94
+ * @param opts A bag of options that control this resource's behavior.
95
+ */
96
+ constructor(name: string, args: BulkRedirectsArgs, opts?: pulumi.CustomResourceOptions);
97
+ }
98
+ /**
99
+ * Input properties used for looking up and filtering BulkRedirects resources.
100
+ */
101
+ export interface BulkRedirectsState {
102
+ /**
103
+ * The ID of the Vercel project to manage redirects for.
104
+ */
105
+ projectId?: pulumi.Input<string>;
106
+ /**
107
+ * The full set of live bulk redirects for the project.
108
+ */
109
+ redirects?: pulumi.Input<pulumi.Input<inputs.BulkRedirectsRedirect>[]>;
110
+ /**
111
+ * The ID of the Vercel team.
112
+ */
113
+ teamId?: pulumi.Input<string>;
114
+ /**
115
+ * The ID of the live bulk redirects version managed by this resource.
116
+ */
117
+ versionId?: pulumi.Input<string>;
118
+ }
119
+ /**
120
+ * The set of arguments for constructing a BulkRedirects resource.
121
+ */
122
+ export interface BulkRedirectsArgs {
123
+ /**
124
+ * The ID of the Vercel project to manage redirects for.
125
+ */
126
+ projectId: pulumi.Input<string>;
127
+ /**
128
+ * The full set of live bulk redirects for the project.
129
+ */
130
+ redirects: pulumi.Input<pulumi.Input<inputs.BulkRedirectsRedirect>[]>;
131
+ /**
132
+ * The ID of the Vercel team.
133
+ */
134
+ teamId?: pulumi.Input<string>;
135
+ }
@@ -0,0 +1,114 @@
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.BulkRedirects = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides a Bulk Redirects resource.
10
+ *
11
+ * This resource manages the live project-level bulk redirects for a Vercel project.
12
+ * Each apply stages the configured redirect set and promotes that version to production.
13
+ *
14
+ * ## Example Usage
15
+ *
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as vercel from "@pulumiverse/vercel";
19
+ *
20
+ * const example = new vercel.Project("example", {name: "example-project"});
21
+ * const exampleBulkRedirects = new vercel.BulkRedirects("example", {
22
+ * projectId: example.id,
23
+ * redirects: [
24
+ * {
25
+ * source: "/old-path",
26
+ * destination: "/new-path",
27
+ * statusCode: 307,
28
+ * caseSensitive: false,
29
+ * query: false,
30
+ * },
31
+ * {
32
+ * source: "/blog",
33
+ * destination: "https://example.com/blog",
34
+ * statusCode: 308,
35
+ * caseSensitive: true,
36
+ * query: true,
37
+ * },
38
+ * ],
39
+ * });
40
+ * ```
41
+ *
42
+ * ## Import
43
+ *
44
+ * The `pulumi import` command can be used, for example:
45
+ *
46
+ * If importing with a team configured on the provider, simply use the project ID.
47
+ * - projectId can be found in the project `settings` tab in the Vercel UI.
48
+ *
49
+ * ```sh
50
+ * $ pulumi import vercel:index/bulkRedirects:BulkRedirects example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
51
+ * ```
52
+ *
53
+ * Alternatively, you can import via the teamId and project_id.
54
+ * - teamId can be found in the team `settings` tab in the Vercel UI.
55
+ * - projectId can be found in the project `settings` tab in the Vercel UI.
56
+ *
57
+ * ```sh
58
+ * $ pulumi import vercel:index/bulkRedirects:BulkRedirects example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
59
+ * ```
60
+ */
61
+ class BulkRedirects extends pulumi.CustomResource {
62
+ /**
63
+ * Get an existing BulkRedirects resource's state with the given name, ID, and optional extra
64
+ * properties used to qualify the lookup.
65
+ *
66
+ * @param name The _unique_ name of the resulting resource.
67
+ * @param id The _unique_ provider ID of the resource to lookup.
68
+ * @param state Any extra arguments used during the lookup.
69
+ * @param opts Optional settings to control the behavior of the CustomResource.
70
+ */
71
+ static get(name, id, state, opts) {
72
+ return new BulkRedirects(name, state, { ...opts, id: id });
73
+ }
74
+ /**
75
+ * Returns true if the given object is an instance of BulkRedirects. This is designed to work even
76
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
77
+ */
78
+ static isInstance(obj) {
79
+ if (obj === undefined || obj === null) {
80
+ return false;
81
+ }
82
+ return obj['__pulumiType'] === BulkRedirects.__pulumiType;
83
+ }
84
+ constructor(name, argsOrState, opts) {
85
+ let resourceInputs = {};
86
+ opts = opts || {};
87
+ if (opts.id) {
88
+ const state = argsOrState;
89
+ resourceInputs["projectId"] = state?.projectId;
90
+ resourceInputs["redirects"] = state?.redirects;
91
+ resourceInputs["teamId"] = state?.teamId;
92
+ resourceInputs["versionId"] = state?.versionId;
93
+ }
94
+ else {
95
+ const args = argsOrState;
96
+ if (args?.projectId === undefined && !opts.urn) {
97
+ throw new Error("Missing required property 'projectId'");
98
+ }
99
+ if (args?.redirects === undefined && !opts.urn) {
100
+ throw new Error("Missing required property 'redirects'");
101
+ }
102
+ resourceInputs["projectId"] = args?.projectId;
103
+ resourceInputs["redirects"] = args?.redirects;
104
+ resourceInputs["teamId"] = args?.teamId;
105
+ resourceInputs["versionId"] = undefined /*out*/;
106
+ }
107
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
108
+ super(BulkRedirects.__pulumiType, name, resourceInputs, opts);
109
+ }
110
+ }
111
+ exports.BulkRedirects = BulkRedirects;
112
+ /** @internal */
113
+ BulkRedirects.__pulumiType = 'vercel:index/bulkRedirects:BulkRedirects';
114
+ //# sourceMappingURL=bulkRedirects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulkRedirects.js","sourceRoot":"","sources":["../bulkRedirects.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI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,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AA7EL,sCA8EC;AAhEG,gBAAgB;AACO,0BAAY,GAAG,0CAA0C,CAAC"}
@@ -30,21 +30,19 @@ import * as outputs from "./types/output";
30
30
  *
31
31
  * ## Import
32
32
  *
33
- * If importing into a personal account, or with a team configured on
34
- *
35
- * the provider, simply use the project_id and custom environment name.
33
+ * The `pulumi import` command can be used, for example:
36
34
  *
37
- * - project_id can be found in the project `settings` tab in the Vercel UI.
35
+ * If importing into a personal account, or with a team configured on
36
+ * the provider, simply use the projectId and custom environment name.
37
+ * - projectId can be found in the project `settings` tab in the Vercel UI.
38
38
  *
39
39
  * ```sh
40
40
  * $ pulumi import vercel:index/customEnvironment:CustomEnvironment example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/example-custom-env
41
41
  * ```
42
42
  *
43
- * Alternatively, you can import via the team_id, project_id and environment variable id.
44
- *
45
- * - team_id can be found in the team `settings` tab in the Vercel UI.
46
- *
47
- * - project_id can be found in the project `settings` tab in the Vercel UI.
43
+ * Alternatively, you can import via the team_id, projectId and environment variable id.
44
+ * - teamId can be found in the team `settings` tab in the Vercel UI.
45
+ * - projectId can be found in the project `settings` tab in the Vercel UI.
48
46
  *
49
47
  * Note also, that the value field for sensitive environment variables will be imported as `null`.
50
48
  *
@@ -34,21 +34,19 @@ const utilities = require("./utilities");
34
34
  *
35
35
  * ## Import
36
36
  *
37
- * If importing into a personal account, or with a team configured on
38
- *
39
- * the provider, simply use the project_id and custom environment name.
37
+ * The `pulumi import` command can be used, for example:
40
38
  *
41
- * - project_id can be found in the project `settings` tab in the Vercel UI.
39
+ * If importing into a personal account, or with a team configured on
40
+ * the provider, simply use the projectId and custom environment name.
41
+ * - projectId can be found in the project `settings` tab in the Vercel UI.
42
42
  *
43
43
  * ```sh
44
44
  * $ pulumi import vercel:index/customEnvironment:CustomEnvironment example prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/example-custom-env
45
45
  * ```
46
46
  *
47
- * Alternatively, you can import via the team_id, project_id and environment variable id.
48
- *
49
- * - team_id can be found in the team `settings` tab in the Vercel UI.
50
- *
51
- * - project_id can be found in the project `settings` tab in the Vercel UI.
47
+ * Alternatively, you can import via the team_id, projectId and environment variable id.
48
+ * - teamId can be found in the team `settings` tab in the Vercel UI.
49
+ * - projectId can be found in the project `settings` tab in the Vercel UI.
52
50
  *
53
51
  * Note also, that the value field for sensitive environment variables will be imported as `null`.
54
52
  *
@@ -1 +1 @@
1
- {"version":3,"file":"customEnvironment.js","sourceRoot":"","sources":["../customEnvironment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;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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M,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAAG,WAAgD,CAAC;YAC9D,IAAI,IAAI,EAAE,SAAS,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC5C,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,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;;AAhFL,8CAiFC;AAnEG,gBAAgB;AACO,8BAAY,GAAG,kDAAkD,CAAC"}
package/deployment.d.ts CHANGED
@@ -1,6 +1,33 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
+ /**
5
+ * Provides a Deployment resource.
6
+ *
7
+ * A Deployment is the result of building your Project and making it available through a live URL.
8
+ *
9
+ * When making deployments, the Project will be uploaded and transformed into a production-ready output through the use of a Build Step.
10
+ *
11
+ * Once the build step has completed successfully, a new, immutable deployment will be made available at the preview URL. Deployments are retained indefinitely unless deleted manually.
12
+ *
13
+ * > In order to provide files to a deployment, you'll need to use the `vercel.getFile` or `vercel.getProjectDirectory` data sources.
14
+ *
15
+ * > If you are creating Deployments through terraform and intend to use both preview and production
16
+ * deployments, you may wish to 'layer' your terraform, creating the Project with a different set of
17
+ * terraform to your Deployment.
18
+ *
19
+ * ## Example Usage
20
+ *
21
+ * ```typescript
22
+ * import * as pulumi from "@pulumi/pulumi";
23
+ * import * as vercel from "@pulumiverse/vercel";
24
+ *
25
+ * // In this example, we are assuming that a nextjs UI
26
+ * // exists in a `ui` directory and any terraform exists in a `terraform` directory.
27
+ * // E.g.
28
+ * // ```
29
+ * ```
30
+ */
4
31
  export declare class Deployment extends pulumi.CustomResource {
5
32
  /**
6
33
  * Get an existing Deployment resource's state with the given name, ID, and optional extra
@@ -21,6 +48,9 @@ export declare class Deployment extends pulumi.CustomResource {
21
48
  * The ID of the Custom Environment to deploy to. If not specified, the deployment will use the standard environments (production/preview).
22
49
  */
23
50
  readonly customEnvironmentId: pulumi.Output<string | undefined>;
51
+ /**
52
+ * Set to true to hard delete the Vercel deployment when destroying the Terraform resource. If unspecified, deployments are retained indefinitely. Note that deleted deployments are not recoverable.
53
+ */
24
54
  readonly deleteOnDestroy: pulumi.Output<boolean | undefined>;
25
55
  /**
26
56
  * A list of all the domains (default domains, staging domains and production domains) that were assigned upon deployment creation.
@@ -89,6 +119,9 @@ export interface DeploymentState {
89
119
  * The ID of the Custom Environment to deploy to. If not specified, the deployment will use the standard environments (production/preview).
90
120
  */
91
121
  customEnvironmentId?: pulumi.Input<string>;
122
+ /**
123
+ * Set to true to hard delete the Vercel deployment when destroying the Terraform resource. If unspecified, deployments are retained indefinitely. Note that deleted deployments are not recoverable.
124
+ */
92
125
  deleteOnDestroy?: pulumi.Input<boolean>;
93
126
  /**
94
127
  * A list of all the domains (default domains, staging domains and production domains) that were assigned upon deployment creation.
@@ -149,6 +182,9 @@ export interface DeploymentArgs {
149
182
  * The ID of the Custom Environment to deploy to. If not specified, the deployment will use the standard environments (production/preview).
150
183
  */
151
184
  customEnvironmentId?: pulumi.Input<string>;
185
+ /**
186
+ * Set to true to hard delete the Vercel deployment when destroying the Terraform resource. If unspecified, deployments are retained indefinitely. Note that deleted deployments are not recoverable.
187
+ */
152
188
  deleteOnDestroy?: pulumi.Input<boolean>;
153
189
  /**
154
190
  * A map of environment variable names to values. These are specific to a Deployment, and can also be configured on the `vercel.Project` resource.