@pulumiverse/vercel 1.15.0 → 2.9.0-alpha.1747137905
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accessGroup.d.ts +35 -6
- package/accessGroup.js +32 -0
- package/accessGroup.js.map +1 -1
- package/accessGroupProject.d.ts +41 -6
- package/accessGroupProject.js +38 -0
- package/accessGroupProject.js.map +1 -1
- package/alias.d.ts +8 -6
- package/alias.js +5 -0
- package/alias.js.map +1 -1
- package/attackChallengeMode.d.ts +33 -6
- package/attackChallengeMode.js +30 -0
- package/attackChallengeMode.js.map +1 -1
- package/customEnvironment.d.ts +56 -6
- package/customEnvironment.js +53 -0
- package/customEnvironment.js.map +1 -1
- package/deployment.d.ts +17 -34
- package/deployment.js.map +1 -1
- package/dnsRecord.d.ts +135 -30
- package/dnsRecord.js +105 -0
- package/dnsRecord.js.map +1 -1
- package/edgeConfig.d.ts +54 -6
- package/edgeConfig.js +51 -0
- package/edgeConfig.js.map +1 -1
- package/edgeConfigItem.d.ts +50 -6
- package/edgeConfigItem.js +47 -0
- package/edgeConfigItem.js.map +1 -1
- package/edgeConfigSchema.d.ts +28 -6
- package/edgeConfigSchema.js +25 -0
- package/edgeConfigSchema.js.map +1 -1
- package/edgeConfigToken.d.ts +62 -10
- package/edgeConfigToken.js +57 -0
- package/edgeConfigToken.js.map +1 -1
- package/firewallConfig.d.ts +9 -0
- package/firewallConfig.js +9 -0
- package/firewallConfig.js.map +1 -1
- package/getAccessGroup.d.ts +53 -0
- package/getAccessGroup.js +32 -0
- package/getAccessGroup.js.map +1 -1
- package/getAccessGroupProject.d.ts +70 -0
- package/getAccessGroupProject.js +40 -0
- package/getAccessGroupProject.js.map +1 -1
- package/getAlias.d.ts +34 -0
- package/getAlias.js +10 -0
- package/getAlias.js.map +1 -1
- package/getAttackChallengeMode.d.ts +56 -0
- package/getAttackChallengeMode.js +32 -0
- package/getAttackChallengeMode.js.map +1 -1
- package/getCustomEnvironment.d.ts +76 -0
- package/getCustomEnvironment.js +40 -0
- package/getCustomEnvironment.js.map +1 -1
- package/getDeployment.d.ts +65 -0
- package/getDeployment.js +32 -0
- package/getDeployment.js.map +1 -1
- package/getEdgeConfig.d.ts +53 -0
- package/getEdgeConfig.js +32 -0
- package/getEdgeConfig.js.map +1 -1
- package/getEdgeConfigItem.d.ts +74 -0
- package/getEdgeConfigItem.js +44 -0
- package/getEdgeConfigItem.js.map +1 -1
- package/getEdgeConfigSchema.d.ts +49 -0
- package/getEdgeConfigSchema.js +28 -0
- package/getEdgeConfigSchema.js.map +1 -1
- package/getEdgeConfigToken.d.ts +74 -0
- package/getEdgeConfigToken.js +38 -0
- package/getEdgeConfigToken.js.map +1 -1
- package/getEndpointVerification.d.ts +39 -0
- package/getEndpointVerification.js +24 -0
- package/getEndpointVerification.js.map +1 -1
- package/getFile.d.ts +58 -0
- package/getFile.js +52 -0
- package/getFile.js.map +1 -1
- package/getLogDrain.d.ts +81 -0
- package/getLogDrain.js +36 -0
- package/getLogDrain.js.map +1 -1
- package/getPrebuiltProject.d.ts +6 -0
- package/getPrebuiltProject.js.map +1 -1
- package/getProject.d.ts +147 -0
- package/getProject.js +36 -0
- package/getProject.js.map +1 -1
- package/getProjectDeploymentRetention.d.ts +47 -0
- package/getProjectDeploymentRetention.js +14 -0
- package/getProjectDeploymentRetention.js.map +1 -1
- package/getProjectDirectory.d.ts +6 -0
- package/getProjectDirectory.js.map +1 -1
- package/getProjectMembers.d.ts +55 -0
- package/getProjectMembers.js +34 -0
- package/getProjectMembers.js.map +1 -1
- package/getSharedEnvironmentVariable.d.ts +106 -0
- package/getSharedEnvironmentVariable.js +58 -0
- package/getSharedEnvironmentVariable.js.map +1 -1
- package/getTeamConfig.d.ts +76 -0
- package/getTeamConfig.js +28 -0
- package/getTeamConfig.js.map +1 -1
- package/getTeamMember.d.ts +60 -0
- package/getTeamMember.js +30 -0
- package/getTeamMember.js.map +1 -1
- package/logDrain.d.ts +76 -42
- package/logDrain.js +58 -0
- package/logDrain.js.map +1 -1
- package/package.json +3 -2
- package/project.d.ts +94 -108
- package/project.js +49 -0
- package/project.js.map +1 -1
- package/projectDeploymentRetention.d.ts +54 -0
- package/projectDeploymentRetention.js +54 -0
- package/projectDeploymentRetention.js.map +1 -1
- package/projectDomain.d.ts +58 -12
- package/projectDomain.js +52 -0
- package/projectDomain.js.map +1 -1
- package/projectEnvironmentVariable.d.ts +94 -18
- package/projectEnvironmentVariable.js +85 -0
- package/projectEnvironmentVariable.js.map +1 -1
- package/projectEnvironmentVariables.d.ts +3 -0
- package/projectEnvironmentVariables.js +3 -0
- package/projectEnvironmentVariables.js.map +1 -1
- package/projectMembers.d.ts +26 -6
- package/projectMembers.js +23 -0
- package/projectMembers.js.map +1 -1
- package/sharedEnvironmentVariable.d.ts +53 -12
- package/sharedEnvironmentVariable.js +47 -0
- package/sharedEnvironmentVariable.js.map +1 -1
- package/teamConfig.d.ts +6 -6
- package/teamConfig.js +3 -0
- package/teamConfig.js.map +1 -1
- package/teamMember.d.ts +33 -18
- package/teamMember.js +24 -0
- package/teamMember.js.map +1 -1
- package/types/input.d.ts +2 -2
- package/types/output.d.ts +3 -3
- package/webhook.d.ts +43 -18
- package/webhook.js +35 -0
- package/webhook.js.map +1 -1
- 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,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GG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
|
package/dnsRecord.d.ts
CHANGED
|
@@ -1,6 +1,111 @@
|
|
|
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 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 a = new vercel.DnsRecord("a", {
|
|
20
|
+
* domain: "example.com",
|
|
21
|
+
* name: "subdomain",
|
|
22
|
+
* type: "A",
|
|
23
|
+
* ttl: 60,
|
|
24
|
+
* value: "192.168.0.1",
|
|
25
|
+
* });
|
|
26
|
+
* const aaaa = new vercel.DnsRecord("aaaa", {
|
|
27
|
+
* domain: "example.com",
|
|
28
|
+
* name: "subdomain",
|
|
29
|
+
* type: "AAAA",
|
|
30
|
+
* ttl: 60,
|
|
31
|
+
* value: "::0",
|
|
32
|
+
* });
|
|
33
|
+
* const alias = new vercel.DnsRecord("alias", {
|
|
34
|
+
* domain: "example.com",
|
|
35
|
+
* name: "subdomain",
|
|
36
|
+
* type: "ALIAS",
|
|
37
|
+
* ttl: 60,
|
|
38
|
+
* value: "example2.com.",
|
|
39
|
+
* });
|
|
40
|
+
* const caa = new vercel.DnsRecord("caa", {
|
|
41
|
+
* domain: "example.com",
|
|
42
|
+
* name: "subdomain",
|
|
43
|
+
* type: "CAA",
|
|
44
|
+
* ttl: 60,
|
|
45
|
+
* value: "1 issue \"letsencrypt.org\"",
|
|
46
|
+
* });
|
|
47
|
+
* const cname = new vercel.DnsRecord("cname", {
|
|
48
|
+
* domain: "example.com",
|
|
49
|
+
* name: "subdomain",
|
|
50
|
+
* type: "CNAME",
|
|
51
|
+
* ttl: 60,
|
|
52
|
+
* value: "example2.com.",
|
|
53
|
+
* });
|
|
54
|
+
* const mx = new vercel.DnsRecord("mx", {
|
|
55
|
+
* domain: "example.com",
|
|
56
|
+
* name: "subdomain",
|
|
57
|
+
* type: "MX",
|
|
58
|
+
* ttl: 60,
|
|
59
|
+
* mxPriority: 333,
|
|
60
|
+
* value: "example2.com.",
|
|
61
|
+
* });
|
|
62
|
+
* const srv = new vercel.DnsRecord("srv", {
|
|
63
|
+
* domain: "example.com",
|
|
64
|
+
* name: "subdomain",
|
|
65
|
+
* type: "SRV",
|
|
66
|
+
* ttl: 60,
|
|
67
|
+
* srv: {
|
|
68
|
+
* port: 6000,
|
|
69
|
+
* weight: 60,
|
|
70
|
+
* priority: 127,
|
|
71
|
+
* target: "example2.com.",
|
|
72
|
+
* },
|
|
73
|
+
* });
|
|
74
|
+
* const txt = new vercel.DnsRecord("txt", {
|
|
75
|
+
* domain: "example.com",
|
|
76
|
+
* name: "subdomain",
|
|
77
|
+
* type: "TXT",
|
|
78
|
+
* ttl: 60,
|
|
79
|
+
* value: "some text value",
|
|
80
|
+
* });
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* ## Import
|
|
84
|
+
*
|
|
85
|
+
* If importing into a personal account, or with a team configured on
|
|
86
|
+
*
|
|
87
|
+
* the provider, simply use the record id.
|
|
88
|
+
*
|
|
89
|
+
* - record_id can be taken from the network tab inside developer tools, while you are on the domains page,
|
|
90
|
+
*
|
|
91
|
+
* or can be queried from the Vercel API directly (https://vercel.com/docs/rest-api/endpoints/dns#list-existing-dns-records).
|
|
92
|
+
*
|
|
93
|
+
* ```sh
|
|
94
|
+
* $ pulumi import vercel:index/dnsRecord:DnsRecord example rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* Alternatively, you can import via the team_id and record_id.
|
|
98
|
+
*
|
|
99
|
+
* - team_id can be found in the team `settings` tab in the Vercel UI.
|
|
100
|
+
*
|
|
101
|
+
* - record_id can be taken from the network tab inside developer tools, while you are on the domains page,
|
|
102
|
+
*
|
|
103
|
+
* or can be queried from the Vercel API directly (https://vercel.com/docs/rest-api/endpoints/dns#list-existing-dns-records).
|
|
104
|
+
*
|
|
105
|
+
* ```sh
|
|
106
|
+
* $ pulumi import vercel:index/dnsRecord:DnsRecord example team_xxxxxxxxxxxxxxxxxxxxxxxx/rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
4
109
|
export declare class DnsRecord extends pulumi.CustomResource {
|
|
5
110
|
/**
|
|
6
111
|
* Get an existing DnsRecord resource's state with the given name, ID, and optional extra
|
|
@@ -26,8 +131,7 @@ export declare class DnsRecord extends pulumi.CustomResource {
|
|
|
26
131
|
*/
|
|
27
132
|
readonly domain: pulumi.Output<string>;
|
|
28
133
|
/**
|
|
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.
|
|
134
|
+
* 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
135
|
*/
|
|
32
136
|
readonly mxPriority: pulumi.Output<number | undefined>;
|
|
33
137
|
/**
|
|
@@ -39,8 +143,7 @@ export declare class DnsRecord extends pulumi.CustomResource {
|
|
|
39
143
|
*/
|
|
40
144
|
readonly srv: pulumi.Output<outputs.DnsRecordSrv | undefined>;
|
|
41
145
|
/**
|
|
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.
|
|
146
|
+
* 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
147
|
*/
|
|
45
148
|
readonly teamId: pulumi.Output<string>;
|
|
46
149
|
/**
|
|
@@ -52,12 +155,14 @@ export declare class DnsRecord extends pulumi.CustomResource {
|
|
|
52
155
|
*/
|
|
53
156
|
readonly type: pulumi.Output<string>;
|
|
54
157
|
/**
|
|
55
|
-
* The value of the DNS record. The format depends on the 'type' property.
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
158
|
+
* The value of the DNS record. The format depends on the 'type' property.
|
|
159
|
+
* For an 'A' record, this should be a valid IPv4 address.
|
|
160
|
+
* For an 'AAAA' record, this should be an IPv6 address.
|
|
161
|
+
* For 'ALIAS' records, this should be a hostname.
|
|
162
|
+
* For 'CAA' records, this should specify specify which Certificate Authorities (CAs) are allowed to issue certificates for the domain.
|
|
163
|
+
* For 'CNAME' records, this should be a different domain name.
|
|
164
|
+
* For 'MX' records, this should specify the mail server responsible for accepting messages on behalf of the domain name.
|
|
165
|
+
* For 'TXT' records, this can contain arbitrary text.
|
|
61
166
|
*/
|
|
62
167
|
readonly value: pulumi.Output<string | undefined>;
|
|
63
168
|
/**
|
|
@@ -82,8 +187,7 @@ export interface DnsRecordState {
|
|
|
82
187
|
*/
|
|
83
188
|
domain?: pulumi.Input<string>;
|
|
84
189
|
/**
|
|
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.
|
|
190
|
+
* 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
191
|
*/
|
|
88
192
|
mxPriority?: pulumi.Input<number>;
|
|
89
193
|
/**
|
|
@@ -95,8 +199,7 @@ export interface DnsRecordState {
|
|
|
95
199
|
*/
|
|
96
200
|
srv?: pulumi.Input<inputs.DnsRecordSrv>;
|
|
97
201
|
/**
|
|
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.
|
|
202
|
+
* 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
203
|
*/
|
|
101
204
|
teamId?: pulumi.Input<string>;
|
|
102
205
|
/**
|
|
@@ -108,12 +211,14 @@ export interface DnsRecordState {
|
|
|
108
211
|
*/
|
|
109
212
|
type?: pulumi.Input<string>;
|
|
110
213
|
/**
|
|
111
|
-
* The value of the DNS record. The format depends on the 'type' property.
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
214
|
+
* The value of the DNS record. The format depends on the 'type' property.
|
|
215
|
+
* For an 'A' record, this should be a valid IPv4 address.
|
|
216
|
+
* For an 'AAAA' record, this should be an IPv6 address.
|
|
217
|
+
* For 'ALIAS' records, this should be a hostname.
|
|
218
|
+
* For 'CAA' records, this should specify specify which Certificate Authorities (CAs) are allowed to issue certificates for the domain.
|
|
219
|
+
* For 'CNAME' records, this should be a different domain name.
|
|
220
|
+
* For 'MX' records, this should specify the mail server responsible for accepting messages on behalf of the domain name.
|
|
221
|
+
* For 'TXT' records, this can contain arbitrary text.
|
|
117
222
|
*/
|
|
118
223
|
value?: pulumi.Input<string>;
|
|
119
224
|
}
|
|
@@ -130,8 +235,7 @@ export interface DnsRecordArgs {
|
|
|
130
235
|
*/
|
|
131
236
|
domain: pulumi.Input<string>;
|
|
132
237
|
/**
|
|
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.
|
|
238
|
+
* 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
239
|
*/
|
|
136
240
|
mxPriority?: pulumi.Input<number>;
|
|
137
241
|
/**
|
|
@@ -143,8 +247,7 @@ export interface DnsRecordArgs {
|
|
|
143
247
|
*/
|
|
144
248
|
srv?: pulumi.Input<inputs.DnsRecordSrv>;
|
|
145
249
|
/**
|
|
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.
|
|
250
|
+
* 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
251
|
*/
|
|
149
252
|
teamId?: pulumi.Input<string>;
|
|
150
253
|
/**
|
|
@@ -156,12 +259,14 @@ export interface DnsRecordArgs {
|
|
|
156
259
|
*/
|
|
157
260
|
type: pulumi.Input<string>;
|
|
158
261
|
/**
|
|
159
|
-
* The value of the DNS record. The format depends on the 'type' property.
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
262
|
+
* The value of the DNS record. The format depends on the 'type' property.
|
|
263
|
+
* For an 'A' record, this should be a valid IPv4 address.
|
|
264
|
+
* For an 'AAAA' record, this should be an IPv6 address.
|
|
265
|
+
* For 'ALIAS' records, this should be a hostname.
|
|
266
|
+
* For 'CAA' records, this should specify specify which Certificate Authorities (CAs) are allowed to issue certificates for the domain.
|
|
267
|
+
* For 'CNAME' records, this should be a different domain name.
|
|
268
|
+
* For 'MX' records, this should specify the mail server responsible for accepting messages on behalf of the domain name.
|
|
269
|
+
* For 'TXT' records, this can contain arbitrary text.
|
|
165
270
|
*/
|
|
166
271
|
value?: pulumi.Input<string>;
|
|
167
272
|
}
|
package/dnsRecord.js
CHANGED
|
@@ -5,6 +5,111 @@ 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 a = new vercel.DnsRecord("a", {
|
|
24
|
+
* domain: "example.com",
|
|
25
|
+
* name: "subdomain",
|
|
26
|
+
* type: "A",
|
|
27
|
+
* ttl: 60,
|
|
28
|
+
* value: "192.168.0.1",
|
|
29
|
+
* });
|
|
30
|
+
* const aaaa = new vercel.DnsRecord("aaaa", {
|
|
31
|
+
* domain: "example.com",
|
|
32
|
+
* name: "subdomain",
|
|
33
|
+
* type: "AAAA",
|
|
34
|
+
* ttl: 60,
|
|
35
|
+
* value: "::0",
|
|
36
|
+
* });
|
|
37
|
+
* const alias = new vercel.DnsRecord("alias", {
|
|
38
|
+
* domain: "example.com",
|
|
39
|
+
* name: "subdomain",
|
|
40
|
+
* type: "ALIAS",
|
|
41
|
+
* ttl: 60,
|
|
42
|
+
* value: "example2.com.",
|
|
43
|
+
* });
|
|
44
|
+
* const caa = new vercel.DnsRecord("caa", {
|
|
45
|
+
* domain: "example.com",
|
|
46
|
+
* name: "subdomain",
|
|
47
|
+
* type: "CAA",
|
|
48
|
+
* ttl: 60,
|
|
49
|
+
* value: "1 issue \"letsencrypt.org\"",
|
|
50
|
+
* });
|
|
51
|
+
* const cname = new vercel.DnsRecord("cname", {
|
|
52
|
+
* domain: "example.com",
|
|
53
|
+
* name: "subdomain",
|
|
54
|
+
* type: "CNAME",
|
|
55
|
+
* ttl: 60,
|
|
56
|
+
* value: "example2.com.",
|
|
57
|
+
* });
|
|
58
|
+
* const mx = new vercel.DnsRecord("mx", {
|
|
59
|
+
* domain: "example.com",
|
|
60
|
+
* name: "subdomain",
|
|
61
|
+
* type: "MX",
|
|
62
|
+
* ttl: 60,
|
|
63
|
+
* mxPriority: 333,
|
|
64
|
+
* value: "example2.com.",
|
|
65
|
+
* });
|
|
66
|
+
* const srv = new vercel.DnsRecord("srv", {
|
|
67
|
+
* domain: "example.com",
|
|
68
|
+
* name: "subdomain",
|
|
69
|
+
* type: "SRV",
|
|
70
|
+
* ttl: 60,
|
|
71
|
+
* srv: {
|
|
72
|
+
* port: 6000,
|
|
73
|
+
* weight: 60,
|
|
74
|
+
* priority: 127,
|
|
75
|
+
* target: "example2.com.",
|
|
76
|
+
* },
|
|
77
|
+
* });
|
|
78
|
+
* const txt = new vercel.DnsRecord("txt", {
|
|
79
|
+
* domain: "example.com",
|
|
80
|
+
* name: "subdomain",
|
|
81
|
+
* type: "TXT",
|
|
82
|
+
* ttl: 60,
|
|
83
|
+
* value: "some text value",
|
|
84
|
+
* });
|
|
85
|
+
* ```
|
|
86
|
+
*
|
|
87
|
+
* ## Import
|
|
88
|
+
*
|
|
89
|
+
* If importing into a personal account, or with a team configured on
|
|
90
|
+
*
|
|
91
|
+
* the provider, simply use the record id.
|
|
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 rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* Alternatively, you can import via the team_id and record_id.
|
|
102
|
+
*
|
|
103
|
+
* - team_id can be found in the team `settings` tab in the Vercel UI.
|
|
104
|
+
*
|
|
105
|
+
* - record_id can be taken from the network tab inside developer tools, while you are on the domains page,
|
|
106
|
+
*
|
|
107
|
+
* or can be queried from the Vercel API directly (https://vercel.com/docs/rest-api/endpoints/dns#list-existing-dns-records).
|
|
108
|
+
*
|
|
109
|
+
* ```sh
|
|
110
|
+
* $ pulumi import vercel:index/dnsRecord:DnsRecord example team_xxxxxxxxxxxxxxxxxxxxxxxx/rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
8
113
|
class DnsRecord extends pulumi.CustomResource {
|
|
9
114
|
/**
|
|
10
115
|
* 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,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;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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 example = new vercel.EdgeConfig("example", {name: "example"});
|
|
14
|
+
* const exampleProject = new vercel.Project("example", {name: "edge-config-example"});
|
|
15
|
+
* const exampleEdgeConfigToken = new vercel.EdgeConfigToken("example", {
|
|
16
|
+
* edgeConfigId: example.id,
|
|
17
|
+
* label: "example token",
|
|
18
|
+
* });
|
|
19
|
+
* const exampleProjectEnvironmentVariable = new vercel.ProjectEnvironmentVariable("example", {
|
|
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 example = new vercel.EdgeConfig("example", {name: "example"});
|
|
20
|
+
* const exampleProject = new vercel.Project("example", {name: "edge-config-example"});
|
|
21
|
+
* const exampleEdgeConfigToken = new vercel.EdgeConfigToken("example", {
|
|
22
|
+
* edgeConfigId: example.id,
|
|
23
|
+
* label: "example token",
|
|
24
|
+
* });
|
|
25
|
+
* const exampleProjectEnvironmentVariable = new vercel.ProjectEnvironmentVariable("example", {
|
|
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
|