@pulumiverse/vercel 1.15.0 → 2.9.0-alpha.1747136220

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 (133) hide show
  1. package/accessGroup.d.ts +35 -6
  2. package/accessGroup.js +32 -0
  3. package/accessGroup.js.map +1 -1
  4. package/accessGroupProject.d.ts +41 -6
  5. package/accessGroupProject.js +38 -0
  6. package/accessGroupProject.js.map +1 -1
  7. package/alias.d.ts +8 -6
  8. package/alias.js +5 -0
  9. package/alias.js.map +1 -1
  10. package/attackChallengeMode.d.ts +33 -6
  11. package/attackChallengeMode.js +30 -0
  12. package/attackChallengeMode.js.map +1 -1
  13. package/customEnvironment.d.ts +55 -6
  14. package/customEnvironment.js +52 -0
  15. package/customEnvironment.js.map +1 -1
  16. package/deployment.d.ts +17 -34
  17. package/deployment.js.map +1 -1
  18. package/dnsRecord.d.ts +127 -30
  19. package/dnsRecord.js +97 -0
  20. package/dnsRecord.js.map +1 -1
  21. package/edgeConfig.d.ts +54 -6
  22. package/edgeConfig.js +51 -0
  23. package/edgeConfig.js.map +1 -1
  24. package/edgeConfigItem.d.ts +50 -6
  25. package/edgeConfigItem.js +47 -0
  26. package/edgeConfigItem.js.map +1 -1
  27. package/edgeConfigSchema.d.ts +28 -6
  28. package/edgeConfigSchema.js +25 -0
  29. package/edgeConfigSchema.js.map +1 -1
  30. package/edgeConfigToken.d.ts +62 -10
  31. package/edgeConfigToken.js +57 -0
  32. package/edgeConfigToken.js.map +1 -1
  33. package/firewallConfig.d.ts +9 -0
  34. package/firewallConfig.js +9 -0
  35. package/firewallConfig.js.map +1 -1
  36. package/getAccessGroup.d.ts +53 -0
  37. package/getAccessGroup.js +32 -0
  38. package/getAccessGroup.js.map +1 -1
  39. package/getAccessGroupProject.d.ts +70 -0
  40. package/getAccessGroupProject.js +40 -0
  41. package/getAccessGroupProject.js.map +1 -1
  42. package/getAlias.d.ts +34 -0
  43. package/getAlias.js +10 -0
  44. package/getAlias.js.map +1 -1
  45. package/getAttackChallengeMode.d.ts +56 -0
  46. package/getAttackChallengeMode.js +32 -0
  47. package/getAttackChallengeMode.js.map +1 -1
  48. package/getCustomEnvironment.d.ts +76 -0
  49. package/getCustomEnvironment.js +40 -0
  50. package/getCustomEnvironment.js.map +1 -1
  51. package/getDeployment.d.ts +65 -0
  52. package/getDeployment.js +32 -0
  53. package/getDeployment.js.map +1 -1
  54. package/getEdgeConfig.d.ts +53 -0
  55. package/getEdgeConfig.js +32 -0
  56. package/getEdgeConfig.js.map +1 -1
  57. package/getEdgeConfigItem.d.ts +74 -0
  58. package/getEdgeConfigItem.js +44 -0
  59. package/getEdgeConfigItem.js.map +1 -1
  60. package/getEdgeConfigSchema.d.ts +49 -0
  61. package/getEdgeConfigSchema.js +28 -0
  62. package/getEdgeConfigSchema.js.map +1 -1
  63. package/getEdgeConfigToken.d.ts +74 -0
  64. package/getEdgeConfigToken.js +38 -0
  65. package/getEdgeConfigToken.js.map +1 -1
  66. package/getEndpointVerification.d.ts +39 -0
  67. package/getEndpointVerification.js +24 -0
  68. package/getEndpointVerification.js.map +1 -1
  69. package/getFile.d.ts +54 -0
  70. package/getFile.js +48 -0
  71. package/getFile.js.map +1 -1
  72. package/getLogDrain.d.ts +81 -0
  73. package/getLogDrain.js +36 -0
  74. package/getLogDrain.js.map +1 -1
  75. package/getPrebuiltProject.d.ts +6 -0
  76. package/getPrebuiltProject.js.map +1 -1
  77. package/getProject.d.ts +147 -0
  78. package/getProject.js +36 -0
  79. package/getProject.js.map +1 -1
  80. package/getProjectDeploymentRetention.d.ts +47 -0
  81. package/getProjectDeploymentRetention.js +14 -0
  82. package/getProjectDeploymentRetention.js.map +1 -1
  83. package/getProjectDirectory.d.ts +6 -0
  84. package/getProjectDirectory.js.map +1 -1
  85. package/getProjectMembers.d.ts +55 -0
  86. package/getProjectMembers.js +34 -0
  87. package/getProjectMembers.js.map +1 -1
  88. package/getSharedEnvironmentVariable.d.ts +98 -0
  89. package/getSharedEnvironmentVariable.js +50 -0
  90. package/getSharedEnvironmentVariable.js.map +1 -1
  91. package/getTeamConfig.d.ts +76 -0
  92. package/getTeamConfig.js +28 -0
  93. package/getTeamConfig.js.map +1 -1
  94. package/getTeamMember.d.ts +60 -0
  95. package/getTeamMember.js +30 -0
  96. package/getTeamMember.js.map +1 -1
  97. package/logDrain.d.ts +74 -42
  98. package/logDrain.js +56 -0
  99. package/logDrain.js.map +1 -1
  100. package/package.json +3 -2
  101. package/project.d.ts +90 -108
  102. package/project.js +45 -0
  103. package/project.js.map +1 -1
  104. package/projectDeploymentRetention.d.ts +51 -0
  105. package/projectDeploymentRetention.js +51 -0
  106. package/projectDeploymentRetention.js.map +1 -1
  107. package/projectDomain.d.ts +58 -12
  108. package/projectDomain.js +52 -0
  109. package/projectDomain.js.map +1 -1
  110. package/projectEnvironmentVariable.d.ts +91 -18
  111. package/projectEnvironmentVariable.js +82 -0
  112. package/projectEnvironmentVariable.js.map +1 -1
  113. package/projectEnvironmentVariables.d.ts +3 -0
  114. package/projectEnvironmentVariables.js +3 -0
  115. package/projectEnvironmentVariables.js.map +1 -1
  116. package/projectMembers.d.ts +26 -6
  117. package/projectMembers.js +23 -0
  118. package/projectMembers.js.map +1 -1
  119. package/sharedEnvironmentVariable.d.ts +50 -12
  120. package/sharedEnvironmentVariable.js +44 -0
  121. package/sharedEnvironmentVariable.js.map +1 -1
  122. package/teamConfig.d.ts +6 -6
  123. package/teamConfig.js +3 -0
  124. package/teamConfig.js.map +1 -1
  125. package/teamMember.d.ts +33 -18
  126. package/teamMember.js +24 -0
  127. package/teamMember.js.map +1 -1
  128. package/types/input.d.ts +2 -2
  129. package/types/output.d.ts +3 -3
  130. package/webhook.d.ts +43 -18
  131. package/webhook.js +35 -0
  132. package/webhook.js.map +1 -1
  133. package/package.json.bak +0 -27
package/deployment.d.ts CHANGED
@@ -19,27 +19,23 @@ export declare class Deployment extends pulumi.CustomResource {
19
19
  static isInstance(obj: any): obj is Deployment;
20
20
  readonly deleteOnDestroy: pulumi.Output<boolean | undefined>;
21
21
  /**
22
- * A list of all the domains (default domains, staging domains and production domains) that were assigned upon deployment
23
- * creation.
22
+ * A list of all the domains (default domains, staging domains and production domains) that were assigned upon deployment creation.
24
23
  */
25
24
  readonly domains: pulumi.Output<string[]>;
26
25
  /**
27
- * A map of environment variable names to values. These are specific to a Deployment, and can also be configured on the
28
- * `vercel.Project` resource.
26
+ * A map of environment variable names to values. These are specific to a Deployment, and can also be configured on the `vercel.Project` resource.
29
27
  */
30
28
  readonly environment: pulumi.Output<{
31
29
  [key: string]: string;
32
30
  } | undefined>;
33
31
  /**
34
- * A map of files to be uploaded for the deployment. This should be provided by a `vercel.getProjectDirectory` or
35
- * `vercel.getFile` data source. Required if `gitSource` is not set.
32
+ * A map of files to be uploaded for the deployment. This should be provided by a `vercel.getProjectDirectory` or `vercel.getFile` data source. Required if `gitSource` is not set.
36
33
  */
37
34
  readonly files: pulumi.Output<{
38
35
  [key: string]: string;
39
36
  } | undefined>;
40
37
  /**
41
- * If specified then the `pathPrefix` will be stripped from the start of file paths as they are uploaded to Vercel. If this
42
- * is omitted, then any leading `../`s will be stripped.
38
+ * If specified then the `pathPrefix` will be stripped from the start of file paths as they are uploaded to Vercel. If this is omitted, then any leading `../`s will be stripped.
43
39
  */
44
40
  readonly pathPrefix: pulumi.Output<string | undefined>;
45
41
  /**
@@ -55,13 +51,11 @@ export declare class Deployment extends pulumi.CustomResource {
55
51
  */
56
52
  readonly projectSettings: pulumi.Output<outputs.DeploymentProjectSettings | undefined>;
57
53
  /**
58
- * The branch or commit hash that should be deployed. Note this will only work if the project is configured to use a Git
59
- * repository. Required if `files` is not set.
54
+ * The branch or commit hash that should be deployed. Note this will only work if the project is configured to use a Git repository. Required if `files` is not set.
60
55
  */
61
56
  readonly ref: pulumi.Output<string | undefined>;
62
57
  /**
63
- * The team ID to add the deployment to. Required when configuring a team resource if a default team has not been set in
64
- * the provider.
58
+ * The team ID to add the deployment to. Required when configuring a team resource if a default team has not been set in the provider.
65
59
  */
66
60
  readonly teamId: pulumi.Output<string>;
67
61
  /**
@@ -83,27 +77,23 @@ export declare class Deployment extends pulumi.CustomResource {
83
77
  export interface DeploymentState {
84
78
  deleteOnDestroy?: pulumi.Input<boolean>;
85
79
  /**
86
- * A list of all the domains (default domains, staging domains and production domains) that were assigned upon deployment
87
- * creation.
80
+ * A list of all the domains (default domains, staging domains and production domains) that were assigned upon deployment creation.
88
81
  */
89
82
  domains?: pulumi.Input<pulumi.Input<string>[]>;
90
83
  /**
91
- * A map of environment variable names to values. These are specific to a Deployment, and can also be configured on the
92
- * `vercel.Project` resource.
84
+ * A map of environment variable names to values. These are specific to a Deployment, and can also be configured on the `vercel.Project` resource.
93
85
  */
94
86
  environment?: pulumi.Input<{
95
87
  [key: string]: pulumi.Input<string>;
96
88
  }>;
97
89
  /**
98
- * A map of files to be uploaded for the deployment. This should be provided by a `vercel.getProjectDirectory` or
99
- * `vercel.getFile` data source. Required if `gitSource` is not set.
90
+ * A map of files to be uploaded for the deployment. This should be provided by a `vercel.getProjectDirectory` or `vercel.getFile` data source. Required if `gitSource` is not set.
100
91
  */
101
92
  files?: pulumi.Input<{
102
93
  [key: string]: pulumi.Input<string>;
103
94
  }>;
104
95
  /**
105
- * If specified then the `pathPrefix` will be stripped from the start of file paths as they are uploaded to Vercel. If this
106
- * is omitted, then any leading `../`s will be stripped.
96
+ * If specified then the `pathPrefix` will be stripped from the start of file paths as they are uploaded to Vercel. If this is omitted, then any leading `../`s will be stripped.
107
97
  */
108
98
  pathPrefix?: pulumi.Input<string>;
109
99
  /**
@@ -119,13 +109,11 @@ export interface DeploymentState {
119
109
  */
120
110
  projectSettings?: pulumi.Input<inputs.DeploymentProjectSettings>;
121
111
  /**
122
- * The branch or commit hash that should be deployed. Note this will only work if the project is configured to use a Git
123
- * repository. Required if `files` is not set.
112
+ * The branch or commit hash that should be deployed. Note this will only work if the project is configured to use a Git repository. Required if `files` is not set.
124
113
  */
125
114
  ref?: pulumi.Input<string>;
126
115
  /**
127
- * The team ID to add the deployment to. Required when configuring a team resource if a default team has not been set in
128
- * the provider.
116
+ * The team ID to add the deployment to. Required when configuring a team resource if a default team has not been set in the provider.
129
117
  */
130
118
  teamId?: pulumi.Input<string>;
131
119
  /**
@@ -139,22 +127,19 @@ export interface DeploymentState {
139
127
  export interface DeploymentArgs {
140
128
  deleteOnDestroy?: pulumi.Input<boolean>;
141
129
  /**
142
- * A map of environment variable names to values. These are specific to a Deployment, and can also be configured on the
143
- * `vercel.Project` resource.
130
+ * A map of environment variable names to values. These are specific to a Deployment, and can also be configured on the `vercel.Project` resource.
144
131
  */
145
132
  environment?: pulumi.Input<{
146
133
  [key: string]: pulumi.Input<string>;
147
134
  }>;
148
135
  /**
149
- * A map of files to be uploaded for the deployment. This should be provided by a `vercel.getProjectDirectory` or
150
- * `vercel.getFile` data source. Required if `gitSource` is not set.
136
+ * A map of files to be uploaded for the deployment. This should be provided by a `vercel.getProjectDirectory` or `vercel.getFile` data source. Required if `gitSource` is not set.
151
137
  */
152
138
  files?: pulumi.Input<{
153
139
  [key: string]: pulumi.Input<string>;
154
140
  }>;
155
141
  /**
156
- * If specified then the `pathPrefix` will be stripped from the start of file paths as they are uploaded to Vercel. If this
157
- * is omitted, then any leading `../`s will be stripped.
142
+ * If specified then the `pathPrefix` will be stripped from the start of file paths as they are uploaded to Vercel. If this is omitted, then any leading `../`s will be stripped.
158
143
  */
159
144
  pathPrefix?: pulumi.Input<string>;
160
145
  /**
@@ -170,13 +155,11 @@ export interface DeploymentArgs {
170
155
  */
171
156
  projectSettings?: pulumi.Input<inputs.DeploymentProjectSettings>;
172
157
  /**
173
- * The branch or commit hash that should be deployed. Note this will only work if the project is configured to use a Git
174
- * repository. Required if `files` is not set.
158
+ * The branch or commit hash that should be deployed. Note this will only work if the project is configured to use a Git repository. Required if `files` is not set.
175
159
  */
176
160
  ref?: pulumi.Input<string>;
177
161
  /**
178
- * The team ID to add the deployment to. Required when configuring a team resource if a default team has not been set in
179
- * the provider.
162
+ * The team ID to add the deployment to. Required when configuring a team resource if a default team has not been set in the provider.
180
163
  */
181
164
  teamId?: pulumi.Input<string>;
182
165
  }
package/deployment.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"deployment.js","sourceRoot":"","sources":["../deployment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,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;IA0DD,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,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC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"./types/input";
3
3
  import * as outputs from "./types/output";
4
+ /**
5
+ * Provides a DNS Record resource.
6
+ *
7
+ * DNS records are instructions that live in authoritative DNS servers and provide information about a domain.
8
+ *
9
+ * > The `value` field must be specified on all DNS record types except `SRV`. When using `SRV` DNS records, the `srv` field must be specified.
10
+ *
11
+ * For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/concepts/projects/custom-domains#dns-records)
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as vercel from "@pulumiverse/vercel";
18
+ *
19
+ * const dnsRecord = new vercel.DnsRecord("dnsRecord", {
20
+ * domain: "example.com",
21
+ * ttl: 60,
22
+ * type: "A",
23
+ * value: "192.168.0.1",
24
+ * });
25
+ * const aaaa = new vercel.DnsRecord("aaaa", {
26
+ * domain: "example.com",
27
+ * ttl: 60,
28
+ * type: "AAAA",
29
+ * value: "::0",
30
+ * });
31
+ * const alias = new vercel.DnsRecord("alias", {
32
+ * domain: "example.com",
33
+ * ttl: 60,
34
+ * type: "ALIAS",
35
+ * value: "example2.com.",
36
+ * });
37
+ * const caa = new vercel.DnsRecord("caa", {
38
+ * domain: "example.com",
39
+ * ttl: 60,
40
+ * type: "CAA",
41
+ * value: "1 issue \"letsencrypt.org\"",
42
+ * });
43
+ * const cname = new vercel.DnsRecord("cname", {
44
+ * domain: "example.com",
45
+ * ttl: 60,
46
+ * type: "CNAME",
47
+ * value: "example2.com.",
48
+ * });
49
+ * const mx = new vercel.DnsRecord("mx", {
50
+ * domain: "example.com",
51
+ * mxPriority: 333,
52
+ * ttl: 60,
53
+ * type: "MX",
54
+ * value: "example2.com.",
55
+ * });
56
+ * const srv = new vercel.DnsRecord("srv", {
57
+ * domain: "example.com",
58
+ * srv: {
59
+ * port: 6000,
60
+ * priority: 127,
61
+ * target: "example2.com.",
62
+ * weight: 60,
63
+ * },
64
+ * ttl: 60,
65
+ * type: "SRV",
66
+ * });
67
+ * const txt = new vercel.DnsRecord("txt", {
68
+ * domain: "example.com",
69
+ * ttl: 60,
70
+ * type: "TXT",
71
+ * value: "some text value",
72
+ * });
73
+ * ```
74
+ *
75
+ * ## Import
76
+ *
77
+ * If importing into a personal account, or with a team configured on
78
+ *
79
+ * the provider, simply use the record id.
80
+ *
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
+ *
85
+ * ```sh
86
+ * $ pulumi import vercel:index/dnsRecord:DnsRecord example rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
87
+ * ```
88
+ *
89
+ * Alternatively, you can import via the team_id and record_id.
90
+ *
91
+ * - team_id can be found in the team `settings` tab in the Vercel UI.
92
+ *
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).
96
+ *
97
+ * ```sh
98
+ * $ pulumi import vercel:index/dnsRecord:DnsRecord example team_xxxxxxxxxxxxxxxxxxxxxxxx/rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
99
+ * ```
100
+ */
4
101
  export declare class DnsRecord extends pulumi.CustomResource {
5
102
  /**
6
103
  * Get an existing DnsRecord resource's state with the given name, ID, and optional extra
@@ -26,8 +123,7 @@ export declare class DnsRecord extends pulumi.CustomResource {
26
123
  */
27
124
  readonly domain: pulumi.Output<string>;
28
125
  /**
29
- * The priority of the MX record. The priority specifies the sequence that an email server receives emails. A smaller value
30
- * indicates a higher priority.
126
+ * The priority of the MX record. The priority specifies the sequence that an email server receives emails. A smaller value indicates a higher priority.
31
127
  */
32
128
  readonly mxPriority: pulumi.Output<number | undefined>;
33
129
  /**
@@ -39,8 +135,7 @@ export declare class DnsRecord extends pulumi.CustomResource {
39
135
  */
40
136
  readonly srv: pulumi.Output<outputs.DnsRecordSrv | undefined>;
41
137
  /**
42
- * The team ID that the domain and DNS records belong to. Required when configuring a team resource if a default team has
43
- * not been set in the provider.
138
+ * The team ID that the domain and DNS records belong to. Required when configuring a team resource if a default team has not been set in the provider.
44
139
  */
45
140
  readonly teamId: pulumi.Output<string>;
46
141
  /**
@@ -52,12 +147,14 @@ export declare class DnsRecord extends pulumi.CustomResource {
52
147
  */
53
148
  readonly type: pulumi.Output<string>;
54
149
  /**
55
- * The value of the DNS record. The format depends on the 'type' property. For an 'A' record, this should be a valid IPv4
56
- * address. For an 'AAAA' record, this should be an IPv6 address. For 'ALIAS' records, this should be a hostname. For 'CAA'
57
- * records, this should specify specify which Certificate Authorities (CAs) are allowed to issue certificates for the
58
- * domain. For 'CNAME' records, this should be a different domain name. For 'MX' records, this should specify the mail
59
- * server responsible for accepting messages on behalf of the domain name. For 'TXT' records, this can contain arbitrary
60
- * text.
150
+ * The value of the DNS record. The format depends on the 'type' property.
151
+ * For an 'A' record, this should be a valid IPv4 address.
152
+ * For an 'AAAA' record, this should be an IPv6 address.
153
+ * For 'ALIAS' records, this should be a hostname.
154
+ * For 'CAA' records, this should specify specify which Certificate Authorities (CAs) are allowed to issue certificates for the domain.
155
+ * For 'CNAME' records, this should be a different domain name.
156
+ * For 'MX' records, this should specify the mail server responsible for accepting messages on behalf of the domain name.
157
+ * For 'TXT' records, this can contain arbitrary text.
61
158
  */
62
159
  readonly value: pulumi.Output<string | undefined>;
63
160
  /**
@@ -82,8 +179,7 @@ export interface DnsRecordState {
82
179
  */
83
180
  domain?: pulumi.Input<string>;
84
181
  /**
85
- * The priority of the MX record. The priority specifies the sequence that an email server receives emails. A smaller value
86
- * indicates a higher priority.
182
+ * The priority of the MX record. The priority specifies the sequence that an email server receives emails. A smaller value indicates a higher priority.
87
183
  */
88
184
  mxPriority?: pulumi.Input<number>;
89
185
  /**
@@ -95,8 +191,7 @@ export interface DnsRecordState {
95
191
  */
96
192
  srv?: pulumi.Input<inputs.DnsRecordSrv>;
97
193
  /**
98
- * The team ID that the domain and DNS records belong to. Required when configuring a team resource if a default team has
99
- * not been set in the provider.
194
+ * The team ID that the domain and DNS records belong to. Required when configuring a team resource if a default team has not been set in the provider.
100
195
  */
101
196
  teamId?: pulumi.Input<string>;
102
197
  /**
@@ -108,12 +203,14 @@ export interface DnsRecordState {
108
203
  */
109
204
  type?: pulumi.Input<string>;
110
205
  /**
111
- * The value of the DNS record. The format depends on the 'type' property. For an 'A' record, this should be a valid IPv4
112
- * address. For an 'AAAA' record, this should be an IPv6 address. For 'ALIAS' records, this should be a hostname. For 'CAA'
113
- * records, this should specify specify which Certificate Authorities (CAs) are allowed to issue certificates for the
114
- * domain. For 'CNAME' records, this should be a different domain name. For 'MX' records, this should specify the mail
115
- * server responsible for accepting messages on behalf of the domain name. For 'TXT' records, this can contain arbitrary
116
- * text.
206
+ * The value of the DNS record. The format depends on the 'type' property.
207
+ * For an 'A' record, this should be a valid IPv4 address.
208
+ * For an 'AAAA' record, this should be an IPv6 address.
209
+ * For 'ALIAS' records, this should be a hostname.
210
+ * For 'CAA' records, this should specify specify which Certificate Authorities (CAs) are allowed to issue certificates for the domain.
211
+ * For 'CNAME' records, this should be a different domain name.
212
+ * For 'MX' records, this should specify the mail server responsible for accepting messages on behalf of the domain name.
213
+ * For 'TXT' records, this can contain arbitrary text.
117
214
  */
118
215
  value?: pulumi.Input<string>;
119
216
  }
@@ -130,8 +227,7 @@ export interface DnsRecordArgs {
130
227
  */
131
228
  domain: pulumi.Input<string>;
132
229
  /**
133
- * The priority of the MX record. The priority specifies the sequence that an email server receives emails. A smaller value
134
- * indicates a higher priority.
230
+ * The priority of the MX record. The priority specifies the sequence that an email server receives emails. A smaller value indicates a higher priority.
135
231
  */
136
232
  mxPriority?: pulumi.Input<number>;
137
233
  /**
@@ -143,8 +239,7 @@ export interface DnsRecordArgs {
143
239
  */
144
240
  srv?: pulumi.Input<inputs.DnsRecordSrv>;
145
241
  /**
146
- * The team ID that the domain and DNS records belong to. Required when configuring a team resource if a default team has
147
- * not been set in the provider.
242
+ * The team ID that the domain and DNS records belong to. Required when configuring a team resource if a default team has not been set in the provider.
148
243
  */
149
244
  teamId?: pulumi.Input<string>;
150
245
  /**
@@ -156,12 +251,14 @@ export interface DnsRecordArgs {
156
251
  */
157
252
  type: pulumi.Input<string>;
158
253
  /**
159
- * The value of the DNS record. The format depends on the 'type' property. For an 'A' record, this should be a valid IPv4
160
- * address. For an 'AAAA' record, this should be an IPv6 address. For 'ALIAS' records, this should be a hostname. For 'CAA'
161
- * records, this should specify specify which Certificate Authorities (CAs) are allowed to issue certificates for the
162
- * domain. For 'CNAME' records, this should be a different domain name. For 'MX' records, this should specify the mail
163
- * server responsible for accepting messages on behalf of the domain name. For 'TXT' records, this can contain arbitrary
164
- * text.
254
+ * The value of the DNS record. The format depends on the 'type' property.
255
+ * For an 'A' record, this should be a valid IPv4 address.
256
+ * For an 'AAAA' record, this should be an IPv6 address.
257
+ * For 'ALIAS' records, this should be a hostname.
258
+ * For 'CAA' records, this should specify specify which Certificate Authorities (CAs) are allowed to issue certificates for the domain.
259
+ * For 'CNAME' records, this should be a different domain name.
260
+ * For 'MX' records, this should specify the mail server responsible for accepting messages on behalf of the domain name.
261
+ * For 'TXT' records, this can contain arbitrary text.
165
262
  */
166
263
  value?: pulumi.Input<string>;
167
264
  }
package/dnsRecord.js CHANGED
@@ -5,6 +5,103 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.DnsRecord = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * Provides a DNS Record resource.
10
+ *
11
+ * DNS records are instructions that live in authoritative DNS servers and provide information about a domain.
12
+ *
13
+ * > The `value` field must be specified on all DNS record types except `SRV`. When using `SRV` DNS records, the `srv` field must be specified.
14
+ *
15
+ * For more detailed information, please see the [Vercel documentation](https://vercel.com/docs/concepts/projects/custom-domains#dns-records)
16
+ *
17
+ * ## Example Usage
18
+ *
19
+ * ```typescript
20
+ * import * as pulumi from "@pulumi/pulumi";
21
+ * import * as vercel from "@pulumiverse/vercel";
22
+ *
23
+ * const dnsRecord = new vercel.DnsRecord("dnsRecord", {
24
+ * domain: "example.com",
25
+ * ttl: 60,
26
+ * type: "A",
27
+ * value: "192.168.0.1",
28
+ * });
29
+ * const aaaa = new vercel.DnsRecord("aaaa", {
30
+ * domain: "example.com",
31
+ * ttl: 60,
32
+ * type: "AAAA",
33
+ * value: "::0",
34
+ * });
35
+ * const alias = new vercel.DnsRecord("alias", {
36
+ * domain: "example.com",
37
+ * ttl: 60,
38
+ * type: "ALIAS",
39
+ * value: "example2.com.",
40
+ * });
41
+ * const caa = new vercel.DnsRecord("caa", {
42
+ * domain: "example.com",
43
+ * ttl: 60,
44
+ * type: "CAA",
45
+ * value: "1 issue \"letsencrypt.org\"",
46
+ * });
47
+ * const cname = new vercel.DnsRecord("cname", {
48
+ * domain: "example.com",
49
+ * ttl: 60,
50
+ * type: "CNAME",
51
+ * value: "example2.com.",
52
+ * });
53
+ * const mx = new vercel.DnsRecord("mx", {
54
+ * domain: "example.com",
55
+ * mxPriority: 333,
56
+ * ttl: 60,
57
+ * type: "MX",
58
+ * value: "example2.com.",
59
+ * });
60
+ * const srv = new vercel.DnsRecord("srv", {
61
+ * domain: "example.com",
62
+ * srv: {
63
+ * port: 6000,
64
+ * priority: 127,
65
+ * target: "example2.com.",
66
+ * weight: 60,
67
+ * },
68
+ * ttl: 60,
69
+ * type: "SRV",
70
+ * });
71
+ * const txt = new vercel.DnsRecord("txt", {
72
+ * domain: "example.com",
73
+ * ttl: 60,
74
+ * type: "TXT",
75
+ * value: "some text value",
76
+ * });
77
+ * ```
78
+ *
79
+ * ## Import
80
+ *
81
+ * If importing into a personal account, or with a team configured on
82
+ *
83
+ * the provider, simply use the record id.
84
+ *
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
+ *
89
+ * ```sh
90
+ * $ pulumi import vercel:index/dnsRecord:DnsRecord example rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
91
+ * ```
92
+ *
93
+ * Alternatively, you can import via the team_id and record_id.
94
+ *
95
+ * - team_id can be found in the team `settings` tab in the Vercel UI.
96
+ *
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).
100
+ *
101
+ * ```sh
102
+ * $ pulumi import vercel:index/dnsRecord:DnsRecord example team_xxxxxxxxxxxxxxxxxxxxxxxx/rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
103
+ * ```
104
+ */
8
105
  class DnsRecord extends pulumi.CustomResource {
9
106
  /**
10
107
  * Get an existing DnsRecord resource's state with the given name, ID, and optional extra
package/dnsRecord.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"dnsRecord.js","sourceRoot":"","sources":["../dnsRecord.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,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,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IAsDD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAA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C,CAAC;IAC9D,CAAC;;AAlHL,8BAmHC;AArGG,gBAAgB;AACO,sBAAY,GAAG,kCAAkC,CAAC"}
package/edgeConfig.d.ts CHANGED
@@ -1,4 +1,55 @@
1
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
+ */
2
53
  export declare class EdgeConfig extends pulumi.CustomResource {
3
54
  /**
4
55
  * Get an existing EdgeConfig resource's state with the given name, ID, and optional extra
@@ -20,8 +71,7 @@ export declare class EdgeConfig extends pulumi.CustomResource {
20
71
  */
21
72
  readonly name: pulumi.Output<string>;
22
73
  /**
23
- * The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has
24
- * not been set in the provider.
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.
25
75
  */
26
76
  readonly teamId: pulumi.Output<string>;
27
77
  /**
@@ -42,8 +92,7 @@ export interface EdgeConfigState {
42
92
  */
43
93
  name?: pulumi.Input<string>;
44
94
  /**
45
- * The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has
46
- * not been set in the provider.
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.
47
96
  */
48
97
  teamId?: pulumi.Input<string>;
49
98
  }
@@ -56,8 +105,7 @@ export interface EdgeConfigArgs {
56
105
  */
57
106
  name?: pulumi.Input<string>;
58
107
  /**
59
- * The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has
60
- * not been set in the provider.
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.
61
109
  */
62
110
  teamId?: pulumi.Input<string>;
63
111
  }
package/edgeConfig.js CHANGED
@@ -5,6 +5,57 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.EdgeConfig = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
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
+ */
8
59
  class EdgeConfig extends pulumi.CustomResource {
9
60
  /**
10
61
  * Get an existing EdgeConfig resource's state with the given name, ID, and optional extra
package/edgeConfig.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"edgeConfig.js","sourceRoot":"","sources":["../edgeConfig.ts"],"names":[],"mappings":";AAAA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