@pulumiverse/vercel 4.6.1 → 5.3.1

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
package/accessGroup.d.ts CHANGED
@@ -17,15 +17,16 @@ import * as pulumi from "@pulumi/pulumi";
17
17
  *
18
18
  * ## Import
19
19
  *
20
- * If importing into a personal account, or with a team configured on
20
+ * The `pulumi import` command can be used, for example:
21
21
  *
22
+ * If importing into a personal account, or with a team configured on
22
23
  * the provider, simply use the access_group_id.
23
24
  *
24
25
  * ```sh
25
26
  * $ pulumi import vercel:index/accessGroup:AccessGroup example ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
26
27
  * ```
27
28
  *
28
- * If importing to a team, use the team_id and access_group_id.
29
+ * If importing to a team, use the teamId and access_group_id.
29
30
  *
30
31
  * ```sh
31
32
  * $ pulumi import vercel:index/accessGroup:AccessGroup example team_xxxxxxxxxxxxxxxxxxxxxxxx/ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
package/accessGroup.js CHANGED
@@ -23,15 +23,16 @@ const utilities = require("./utilities");
23
23
  *
24
24
  * ## Import
25
25
  *
26
- * If importing into a personal account, or with a team configured on
26
+ * The `pulumi import` command can be used, for example:
27
27
  *
28
+ * If importing into a personal account, or with a team configured on
28
29
  * the provider, simply use the access_group_id.
29
30
  *
30
31
  * ```sh
31
32
  * $ pulumi import vercel:index/accessGroup:AccessGroup example ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
32
33
  * ```
33
34
  *
34
- * If importing to a team, use the team_id and access_group_id.
35
+ * If importing to a team, use the teamId and access_group_id.
35
36
  *
36
37
  * ```sh
37
38
  * $ pulumi import vercel:index/accessGroup:AccessGroup example team_xxxxxxxxxxxxxxxxxxxxxxxx/ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
@@ -1 +1 @@
1
- {"version":3,"file":"accessGroup.js","sourceRoot":"","sources":["../accessGroup.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAA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MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAAG,WAA0C,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,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,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA3DL,kCA4DC;AA9CG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
@@ -23,15 +23,16 @@ import * as pulumi from "@pulumi/pulumi";
23
23
  *
24
24
  * ## Import
25
25
  *
26
- * If importing into a personal account, or with a team configured on
26
+ * The `pulumi import` command can be used, for example:
27
27
  *
28
- * the provider, use the access_group_id and project_id.
28
+ * If importing into a personal account, or with a team configured on
29
+ * the provider, use the accessGroupId and project_id.
29
30
  *
30
31
  * ```sh
31
32
  * $ pulumi import vercel:index/accessGroupProject:AccessGroupProject example ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
32
33
  * ```
33
34
  *
34
- * If importing to a team, use the team_id, access_group_id and project_id.
35
+ * If importing to a team, use the team_id, accessGroupId and project_id.
35
36
  *
36
37
  * ```sh
37
38
  * $ pulumi import vercel:index/accessGroupProject:AccessGroupProject example team_xxxxxxxxxxxxxxxxxxxxxxxx/ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
@@ -29,15 +29,16 @@ const utilities = require("./utilities");
29
29
  *
30
30
  * ## Import
31
31
  *
32
- * If importing into a personal account, or with a team configured on
32
+ * The `pulumi import` command can be used, for example:
33
33
  *
34
- * the provider, use the access_group_id and project_id.
34
+ * If importing into a personal account, or with a team configured on
35
+ * the provider, use the accessGroupId and project_id.
35
36
  *
36
37
  * ```sh
37
38
  * $ pulumi import vercel:index/accessGroupProject:AccessGroupProject example ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
38
39
  * ```
39
40
  *
40
- * If importing to a team, use the team_id, access_group_id and project_id.
41
+ * If importing to a team, use the team_id, accessGroupId and project_id.
41
42
  *
42
43
  * ```sh
43
44
  * $ pulumi import vercel:index/accessGroupProject:AccessGroupProject example team_xxxxxxxxxxxxxxxxxxxxxxxx/ag_xxxxxxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
@@ -1 +1 @@
1
- {"version":3,"file":"accessGroupProject.js","sourceRoot":"","sources":["../accessGroupProject.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,C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cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAAG,WAAiD,CAAC;YAC/D,IAAI,IAAI,EAAE,aAAa,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAChD,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;aAChE;YACD,IAAI,IAAI,EAAE,SAAS,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC5C,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,IAAI,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,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,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAhFL,gDAiFC;AAnEG,gBAAgB;AACO,+BAAY,GAAG,oDAAoD,CAAC"}
@@ -22,11 +22,11 @@ import * as pulumi from "@pulumi/pulumi";
22
22
  *
23
23
  * ## Import
24
24
  *
25
- * You can import via the team_id and project_id.
25
+ * The `pulumi import` command can be used, for example:
26
26
  *
27
- * - team_id can be found in the team `settings` tab in the Vercel UI.
28
- *
29
- * - project_id can be found in the project `settings` tab in the Vercel UI.
27
+ * You can import via the teamId and project_id.
28
+ * - teamId can be found in the team `settings` tab in the Vercel UI.
29
+ * - projectId can be found in the project `settings` tab in the Vercel UI.
30
30
  *
31
31
  * ```sh
32
32
  * $ pulumi import vercel:index/attackChallengeMode:AttackChallengeMode example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
@@ -28,11 +28,11 @@ const utilities = require("./utilities");
28
28
  *
29
29
  * ## Import
30
30
  *
31
- * You can import via the team_id and project_id.
31
+ * The `pulumi import` command can be used, for example:
32
32
  *
33
- * - team_id can be found in the team `settings` tab in the Vercel UI.
34
- *
35
- * - project_id can be found in the project `settings` tab in the Vercel UI.
33
+ * You can import via the teamId and project_id.
34
+ * - teamId can be found in the team `settings` tab in the Vercel UI.
35
+ * - projectId can be found in the project `settings` tab in the Vercel UI.
36
36
  *
37
37
  * ```sh
38
38
  * $ pulumi import vercel:index/attackChallengeMode:AttackChallengeMode example team_xxxxxxxxxxxxxxxxxxxxxxxx/prj_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
@@ -0,0 +1,177 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a Vercel Blob object.
4
+ *
5
+ * This resource uploads a local file into a Blob store using a deterministic pathname so the object can be managed in place by Terraform.
6
+ */
7
+ export declare class BlobObject extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing BlobObject resource's state with the given name, ID, and optional extra
10
+ * properties used to qualify the lookup.
11
+ *
12
+ * @param name The _unique_ name of the resulting resource.
13
+ * @param id The _unique_ provider ID of the resource to lookup.
14
+ * @param state Any extra arguments used during the lookup.
15
+ * @param opts Optional settings to control the behavior of the CustomResource.
16
+ */
17
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BlobObjectState, opts?: pulumi.CustomResourceOptions): BlobObject;
18
+ /**
19
+ * Returns true if the given object is an instance of BlobObject. This is designed to work even
20
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
21
+ */
22
+ static isInstance(obj: any): obj is BlobObject;
23
+ /**
24
+ * The full Cache-Control header stored on the Blob object.
25
+ */
26
+ readonly cacheControl: pulumi.Output<string>;
27
+ /**
28
+ * The cache max-age, in seconds, to apply to the uploaded object.
29
+ */
30
+ readonly cacheControlMaxAge: pulumi.Output<number>;
31
+ /**
32
+ * The content disposition returned for the Blob object.
33
+ */
34
+ readonly contentDisposition: pulumi.Output<string>;
35
+ /**
36
+ * The content type to store on the object. When omitted, Vercel infers it from the pathname.
37
+ */
38
+ readonly contentType: pulumi.Output<string>;
39
+ /**
40
+ * The Blob object URL with download semantics enabled.
41
+ */
42
+ readonly downloadUrl: pulumi.Output<string>;
43
+ /**
44
+ * The current ETag for the Blob object.
45
+ */
46
+ readonly etag: pulumi.Output<string>;
47
+ /**
48
+ * The pathname to upload within the Blob store.
49
+ */
50
+ readonly pathname: pulumi.Output<string>;
51
+ /**
52
+ * The size of the Blob object in bytes.
53
+ */
54
+ readonly size: pulumi.Output<number>;
55
+ /**
56
+ * The local filesystem path to the file that should be uploaded.
57
+ */
58
+ readonly source: pulumi.Output<string>;
59
+ /**
60
+ * The SHA-256 of the local source file content used for drift detection.
61
+ */
62
+ readonly sourceSha256: pulumi.Output<string>;
63
+ /**
64
+ * The ID of the Blob store that should contain the object.
65
+ */
66
+ readonly storeId: pulumi.Output<string>;
67
+ /**
68
+ * The ID of the team that owns the Blob store. Required when configuring a team resource if a default team has not been set in the provider.
69
+ */
70
+ readonly teamId: pulumi.Output<string>;
71
+ /**
72
+ * The timestamp at which the Blob object was last uploaded.
73
+ */
74
+ readonly uploadedAt: pulumi.Output<string>;
75
+ /**
76
+ * The canonical URL for the Blob object.
77
+ */
78
+ readonly url: pulumi.Output<string>;
79
+ /**
80
+ * Create a BlobObject resource with the given unique name, arguments, and options.
81
+ *
82
+ * @param name The _unique_ name of the resource.
83
+ * @param args The arguments to use to populate this resource's properties.
84
+ * @param opts A bag of options that control this resource's behavior.
85
+ */
86
+ constructor(name: string, args: BlobObjectArgs, opts?: pulumi.CustomResourceOptions);
87
+ }
88
+ /**
89
+ * Input properties used for looking up and filtering BlobObject resources.
90
+ */
91
+ export interface BlobObjectState {
92
+ /**
93
+ * The full Cache-Control header stored on the Blob object.
94
+ */
95
+ cacheControl?: pulumi.Input<string>;
96
+ /**
97
+ * The cache max-age, in seconds, to apply to the uploaded object.
98
+ */
99
+ cacheControlMaxAge?: pulumi.Input<number>;
100
+ /**
101
+ * The content disposition returned for the Blob object.
102
+ */
103
+ contentDisposition?: pulumi.Input<string>;
104
+ /**
105
+ * The content type to store on the object. When omitted, Vercel infers it from the pathname.
106
+ */
107
+ contentType?: pulumi.Input<string>;
108
+ /**
109
+ * The Blob object URL with download semantics enabled.
110
+ */
111
+ downloadUrl?: pulumi.Input<string>;
112
+ /**
113
+ * The current ETag for the Blob object.
114
+ */
115
+ etag?: pulumi.Input<string>;
116
+ /**
117
+ * The pathname to upload within the Blob store.
118
+ */
119
+ pathname?: pulumi.Input<string>;
120
+ /**
121
+ * The size of the Blob object in bytes.
122
+ */
123
+ size?: pulumi.Input<number>;
124
+ /**
125
+ * The local filesystem path to the file that should be uploaded.
126
+ */
127
+ source?: pulumi.Input<string>;
128
+ /**
129
+ * The SHA-256 of the local source file content used for drift detection.
130
+ */
131
+ sourceSha256?: pulumi.Input<string>;
132
+ /**
133
+ * The ID of the Blob store that should contain the object.
134
+ */
135
+ storeId?: pulumi.Input<string>;
136
+ /**
137
+ * The ID of the team that owns the Blob store. Required when configuring a team resource if a default team has not been set in the provider.
138
+ */
139
+ teamId?: pulumi.Input<string>;
140
+ /**
141
+ * The timestamp at which the Blob object was last uploaded.
142
+ */
143
+ uploadedAt?: pulumi.Input<string>;
144
+ /**
145
+ * The canonical URL for the Blob object.
146
+ */
147
+ url?: pulumi.Input<string>;
148
+ }
149
+ /**
150
+ * The set of arguments for constructing a BlobObject resource.
151
+ */
152
+ export interface BlobObjectArgs {
153
+ /**
154
+ * The cache max-age, in seconds, to apply to the uploaded object.
155
+ */
156
+ cacheControlMaxAge?: pulumi.Input<number>;
157
+ /**
158
+ * The content type to store on the object. When omitted, Vercel infers it from the pathname.
159
+ */
160
+ contentType?: pulumi.Input<string>;
161
+ /**
162
+ * The pathname to upload within the Blob store.
163
+ */
164
+ pathname: pulumi.Input<string>;
165
+ /**
166
+ * The local filesystem path to the file that should be uploaded.
167
+ */
168
+ source: pulumi.Input<string>;
169
+ /**
170
+ * The ID of the Blob store that should contain the object.
171
+ */
172
+ storeId: pulumi.Input<string>;
173
+ /**
174
+ * The ID of the team that owns the Blob store. Required when configuring a team resource if a default team has not been set in the provider.
175
+ */
176
+ teamId?: pulumi.Input<string>;
177
+ }
package/blobObject.js ADDED
@@ -0,0 +1,89 @@
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.BlobObject = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides a Vercel Blob object.
10
+ *
11
+ * This resource uploads a local file into a Blob store using a deterministic pathname so the object can be managed in place by Terraform.
12
+ */
13
+ class BlobObject extends pulumi.CustomResource {
14
+ /**
15
+ * Get an existing BlobObject resource's state with the given name, ID, and optional extra
16
+ * properties used to qualify the lookup.
17
+ *
18
+ * @param name The _unique_ name of the resulting resource.
19
+ * @param id The _unique_ provider ID of the resource to lookup.
20
+ * @param state Any extra arguments used during the lookup.
21
+ * @param opts Optional settings to control the behavior of the CustomResource.
22
+ */
23
+ static get(name, id, state, opts) {
24
+ return new BlobObject(name, state, { ...opts, id: id });
25
+ }
26
+ /**
27
+ * Returns true if the given object is an instance of BlobObject. This is designed to work even
28
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
29
+ */
30
+ static isInstance(obj) {
31
+ if (obj === undefined || obj === null) {
32
+ return false;
33
+ }
34
+ return obj['__pulumiType'] === BlobObject.__pulumiType;
35
+ }
36
+ constructor(name, argsOrState, opts) {
37
+ let resourceInputs = {};
38
+ opts = opts || {};
39
+ if (opts.id) {
40
+ const state = argsOrState;
41
+ resourceInputs["cacheControl"] = state?.cacheControl;
42
+ resourceInputs["cacheControlMaxAge"] = state?.cacheControlMaxAge;
43
+ resourceInputs["contentDisposition"] = state?.contentDisposition;
44
+ resourceInputs["contentType"] = state?.contentType;
45
+ resourceInputs["downloadUrl"] = state?.downloadUrl;
46
+ resourceInputs["etag"] = state?.etag;
47
+ resourceInputs["pathname"] = state?.pathname;
48
+ resourceInputs["size"] = state?.size;
49
+ resourceInputs["source"] = state?.source;
50
+ resourceInputs["sourceSha256"] = state?.sourceSha256;
51
+ resourceInputs["storeId"] = state?.storeId;
52
+ resourceInputs["teamId"] = state?.teamId;
53
+ resourceInputs["uploadedAt"] = state?.uploadedAt;
54
+ resourceInputs["url"] = state?.url;
55
+ }
56
+ else {
57
+ const args = argsOrState;
58
+ if (args?.pathname === undefined && !opts.urn) {
59
+ throw new Error("Missing required property 'pathname'");
60
+ }
61
+ if (args?.source === undefined && !opts.urn) {
62
+ throw new Error("Missing required property 'source'");
63
+ }
64
+ if (args?.storeId === undefined && !opts.urn) {
65
+ throw new Error("Missing required property 'storeId'");
66
+ }
67
+ resourceInputs["cacheControlMaxAge"] = args?.cacheControlMaxAge;
68
+ resourceInputs["contentType"] = args?.contentType;
69
+ resourceInputs["pathname"] = args?.pathname;
70
+ resourceInputs["source"] = args?.source;
71
+ resourceInputs["storeId"] = args?.storeId;
72
+ resourceInputs["teamId"] = args?.teamId;
73
+ resourceInputs["cacheControl"] = undefined /*out*/;
74
+ resourceInputs["contentDisposition"] = undefined /*out*/;
75
+ resourceInputs["downloadUrl"] = undefined /*out*/;
76
+ resourceInputs["etag"] = undefined /*out*/;
77
+ resourceInputs["size"] = undefined /*out*/;
78
+ resourceInputs["sourceSha256"] = undefined /*out*/;
79
+ resourceInputs["uploadedAt"] = undefined /*out*/;
80
+ resourceInputs["url"] = undefined /*out*/;
81
+ }
82
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
83
+ super(BlobObject.__pulumiType, name, resourceInputs, opts);
84
+ }
85
+ }
86
+ exports.BlobObject = BlobObject;
87
+ /** @internal */
88
+ BlobObject.__pulumiType = 'vercel:index/blobObject:BlobObject';
89
+ //# sourceMappingURL=blobObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blobObject.js","sourceRoot":"","sources":["../blobObject.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;GAIG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAmED,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;YACrD,cAAc,CAAC,oBAAoB,CAAC,GAAG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AAC,oBAAoB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC;YAChE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACzD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AA5IL,gCA6IC;AA/HG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
@@ -0,0 +1,144 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a project connection for a Vercel Blob store.
4
+ *
5
+ * This resource links an existing Blob store to a project and manages the generated `BLOB_READ_WRITE_TOKEN` environment variable prefix and target environments.
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", {name: "example-blob-store"});
14
+ * const exampleProject = new vercel.Project("example", {name: "example-blob-project"});
15
+ * const exampleBlobProjectConnection = new vercel.BlobProjectConnection("example", {
16
+ * blobStoreId: example.id,
17
+ * projectId: exampleProject.id,
18
+ * environments: [
19
+ * "preview",
20
+ * "production",
21
+ * ],
22
+ * });
23
+ * ```
24
+ *
25
+ * ## Import
26
+ *
27
+ * The `pulumi import` command can be used, for example:
28
+ *
29
+ * If importing into a personal account, or with a team configured on
30
+ * the provider, use the Blob store id and connection id.
31
+ *
32
+ * ```sh
33
+ * $ pulumi import vercel:index/blobProjectConnection:BlobProjectConnection example store_xxxxxxxxxxxxxxxxxx/spc_xxxxxxxxxxxxxxxxxx
34
+ * ```
35
+ *
36
+ * Alternatively, you can import via the team_id, Blob store id, and connection id.
37
+ *
38
+ * ```sh
39
+ * $ pulumi import vercel:index/blobProjectConnection:BlobProjectConnection example team_xxxxxxxxxxxxxxxxxxxxxxxx/store_xxxxxxxxxxxxxxxxxx/spc_xxxxxxxxxxxxxxxxxx
40
+ * ```
41
+ */
42
+ export declare class BlobProjectConnection extends pulumi.CustomResource {
43
+ /**
44
+ * Get an existing BlobProjectConnection 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?: BlobProjectConnectionState, opts?: pulumi.CustomResourceOptions): BlobProjectConnection;
53
+ /**
54
+ * Returns true if the given object is an instance of BlobProjectConnection. 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 BlobProjectConnection;
58
+ /**
59
+ * The ID of the Blob store to connect.
60
+ */
61
+ readonly blobStoreId: pulumi.Output<string>;
62
+ /**
63
+ * The prefix used for the generated Blob environment variable names.
64
+ */
65
+ readonly envVarPrefix: pulumi.Output<string>;
66
+ /**
67
+ * The environments in which the generated Blob environment variables should be created.
68
+ */
69
+ readonly environments: pulumi.Output<string[]>;
70
+ /**
71
+ * The ID of the Vercel project to connect to the Blob store.
72
+ */
73
+ readonly projectId: pulumi.Output<string>;
74
+ /**
75
+ * The generated environment variable name that contains the Blob read/write token.
76
+ */
77
+ readonly readWriteTokenEnvVarName: pulumi.Output<string>;
78
+ /**
79
+ * The ID of the team that owns the Blob store and project. 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
+ * Create a BlobProjectConnection resource with the given unique name, arguments, and options.
84
+ *
85
+ * @param name The _unique_ name of the resource.
86
+ * @param args The arguments to use to populate this resource's properties.
87
+ * @param opts A bag of options that control this resource's behavior.
88
+ */
89
+ constructor(name: string, args: BlobProjectConnectionArgs, opts?: pulumi.CustomResourceOptions);
90
+ }
91
+ /**
92
+ * Input properties used for looking up and filtering BlobProjectConnection resources.
93
+ */
94
+ export interface BlobProjectConnectionState {
95
+ /**
96
+ * The ID of the Blob store to connect.
97
+ */
98
+ blobStoreId?: pulumi.Input<string>;
99
+ /**
100
+ * The prefix used for the generated Blob environment variable names.
101
+ */
102
+ envVarPrefix?: pulumi.Input<string>;
103
+ /**
104
+ * The environments in which the generated Blob environment variables should be created.
105
+ */
106
+ environments?: pulumi.Input<pulumi.Input<string>[]>;
107
+ /**
108
+ * The ID of the Vercel project to connect to the Blob store.
109
+ */
110
+ projectId?: pulumi.Input<string>;
111
+ /**
112
+ * The generated environment variable name that contains the Blob read/write token.
113
+ */
114
+ readWriteTokenEnvVarName?: pulumi.Input<string>;
115
+ /**
116
+ * The ID of the team that owns the Blob store and project. Required when configuring a team resource if a default team has not been set in the provider.
117
+ */
118
+ teamId?: pulumi.Input<string>;
119
+ }
120
+ /**
121
+ * The set of arguments for constructing a BlobProjectConnection resource.
122
+ */
123
+ export interface BlobProjectConnectionArgs {
124
+ /**
125
+ * The ID of the Blob store to connect.
126
+ */
127
+ blobStoreId: pulumi.Input<string>;
128
+ /**
129
+ * The prefix used for the generated Blob environment variable names.
130
+ */
131
+ envVarPrefix?: pulumi.Input<string>;
132
+ /**
133
+ * The environments in which the generated Blob environment variables should be created.
134
+ */
135
+ environments?: pulumi.Input<pulumi.Input<string>[]>;
136
+ /**
137
+ * The ID of the Vercel project to connect to the Blob store.
138
+ */
139
+ projectId: pulumi.Input<string>;
140
+ /**
141
+ * The ID of the team that owns the Blob store and project. Required when configuring a team resource if a default team has not been set in the provider.
142
+ */
143
+ teamId?: pulumi.Input<string>;
144
+ }
@@ -0,0 +1,105 @@
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.BlobProjectConnection = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides a project connection for a Vercel Blob store.
10
+ *
11
+ * This resource links an existing Blob store to a project and manages the generated `BLOB_READ_WRITE_TOKEN` environment variable prefix and target environments.
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", {name: "example-blob-store"});
20
+ * const exampleProject = new vercel.Project("example", {name: "example-blob-project"});
21
+ * const exampleBlobProjectConnection = new vercel.BlobProjectConnection("example", {
22
+ * blobStoreId: example.id,
23
+ * projectId: exampleProject.id,
24
+ * environments: [
25
+ * "preview",
26
+ * "production",
27
+ * ],
28
+ * });
29
+ * ```
30
+ *
31
+ * ## Import
32
+ *
33
+ * The `pulumi import` command can be used, for example:
34
+ *
35
+ * If importing into a personal account, or with a team configured on
36
+ * the provider, use the Blob store id and connection id.
37
+ *
38
+ * ```sh
39
+ * $ pulumi import vercel:index/blobProjectConnection:BlobProjectConnection example store_xxxxxxxxxxxxxxxxxx/spc_xxxxxxxxxxxxxxxxxx
40
+ * ```
41
+ *
42
+ * Alternatively, you can import via the team_id, Blob store id, and connection id.
43
+ *
44
+ * ```sh
45
+ * $ pulumi import vercel:index/blobProjectConnection:BlobProjectConnection example team_xxxxxxxxxxxxxxxxxxxxxxxx/store_xxxxxxxxxxxxxxxxxx/spc_xxxxxxxxxxxxxxxxxx
46
+ * ```
47
+ */
48
+ class BlobProjectConnection extends pulumi.CustomResource {
49
+ /**
50
+ * Get an existing BlobProjectConnection resource's state with the given name, ID, and optional extra
51
+ * properties used to qualify the lookup.
52
+ *
53
+ * @param name The _unique_ name of the resulting resource.
54
+ * @param id The _unique_ provider ID of the resource to lookup.
55
+ * @param state Any extra arguments used during the lookup.
56
+ * @param opts Optional settings to control the behavior of the CustomResource.
57
+ */
58
+ static get(name, id, state, opts) {
59
+ return new BlobProjectConnection(name, state, { ...opts, id: id });
60
+ }
61
+ /**
62
+ * Returns true if the given object is an instance of BlobProjectConnection. 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) {
66
+ if (obj === undefined || obj === null) {
67
+ return false;
68
+ }
69
+ return obj['__pulumiType'] === BlobProjectConnection.__pulumiType;
70
+ }
71
+ constructor(name, argsOrState, opts) {
72
+ let resourceInputs = {};
73
+ opts = opts || {};
74
+ if (opts.id) {
75
+ const state = argsOrState;
76
+ resourceInputs["blobStoreId"] = state?.blobStoreId;
77
+ resourceInputs["envVarPrefix"] = state?.envVarPrefix;
78
+ resourceInputs["environments"] = state?.environments;
79
+ resourceInputs["projectId"] = state?.projectId;
80
+ resourceInputs["readWriteTokenEnvVarName"] = state?.readWriteTokenEnvVarName;
81
+ resourceInputs["teamId"] = state?.teamId;
82
+ }
83
+ else {
84
+ const args = argsOrState;
85
+ if (args?.blobStoreId === undefined && !opts.urn) {
86
+ throw new Error("Missing required property 'blobStoreId'");
87
+ }
88
+ if (args?.projectId === undefined && !opts.urn) {
89
+ throw new Error("Missing required property 'projectId'");
90
+ }
91
+ resourceInputs["blobStoreId"] = args?.blobStoreId;
92
+ resourceInputs["envVarPrefix"] = args?.envVarPrefix;
93
+ resourceInputs["environments"] = args?.environments;
94
+ resourceInputs["projectId"] = args?.projectId;
95
+ resourceInputs["teamId"] = args?.teamId;
96
+ resourceInputs["readWriteTokenEnvVarName"] = undefined /*out*/;
97
+ }
98
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
99
+ super(BlobProjectConnection.__pulumiType, name, resourceInputs, opts);
100
+ }
101
+ }
102
+ exports.BlobProjectConnection = BlobProjectConnection;
103
+ /** @internal */
104
+ BlobProjectConnection.__pulumiType = 'vercel:index/blobProjectConnection:BlobProjectConnection';
105
+ //# sourceMappingURL=blobProjectConnection.js.map