@pulumiverse/vercel 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +55 -0
- package/alias.d.ts +77 -0
- package/alias.js +64 -0
- package/alias.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +10 -0
- package/config/vars.js +19 -0
- package/config/vars.js.map +1 -0
- package/deployment.d.ts +177 -0
- package/deployment.js +72 -0
- package/deployment.js.map +1 -0
- package/dnsRecord.d.ts +240 -0
- package/dnsRecord.js +154 -0
- package/dnsRecord.js.map +1 -0
- package/getAlias.d.ts +60 -0
- package/getAlias.js +30 -0
- package/getAlias.js.map +1 -0
- package/getFile.d.ts +79 -0
- package/getFile.js +67 -0
- package/getFile.js.map +1 -0
- package/getPrebuiltProject.d.ts +31 -0
- package/getPrebuiltProject.js +19 -0
- package/getPrebuiltProject.js.map +1 -0
- package/getProject.d.ts +146 -0
- package/getProject.js +59 -0
- package/getProject.js.map +1 -0
- package/getProjectDirectory.d.ts +31 -0
- package/getProjectDirectory.js +19 -0
- package/getProjectDirectory.js.map +1 -0
- package/index.d.ts +42 -0
- package/index.js +83 -0
- package/index.js.map +1 -0
- package/package.json +28 -0
- package/package.json.bak +28 -0
- package/project.d.ts +275 -0
- package/project.js +118 -0
- package/project.js.map +1 -0
- package/projectDomain.d.ts +152 -0
- package/projectDomain.js +109 -0
- package/projectDomain.js.map +1 -0
- package/projectEnvironmentVariable.d.ts +152 -0
- package/projectEnvironmentVariable.js +117 -0
- package/projectEnvironmentVariable.js.map +1 -0
- package/provider.d.ts +47 -0
- package/provider.js +48 -0
- package/provider.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +26 -0
- package/sharedEnvironmentVariable.d.ts +131 -0
- package/sharedEnvironmentVariable.js +106 -0
- package/sharedEnvironmentVariable.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +105 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +140 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +69 -0
- package/utilities.js.map +1 -0
package/deployment.js
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Deployment = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class Deployment extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing Deployment resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new Deployment(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of Deployment. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === Deployment.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["deleteOnDestroy"] = state ? state.deleteOnDestroy : undefined;
|
|
37
|
+
resourceInputs["domains"] = state ? state.domains : undefined;
|
|
38
|
+
resourceInputs["environment"] = state ? state.environment : undefined;
|
|
39
|
+
resourceInputs["files"] = state ? state.files : undefined;
|
|
40
|
+
resourceInputs["pathPrefix"] = state ? state.pathPrefix : undefined;
|
|
41
|
+
resourceInputs["production"] = state ? state.production : undefined;
|
|
42
|
+
resourceInputs["projectId"] = state ? state.projectId : undefined;
|
|
43
|
+
resourceInputs["projectSettings"] = state ? state.projectSettings : undefined;
|
|
44
|
+
resourceInputs["ref"] = state ? state.ref : undefined;
|
|
45
|
+
resourceInputs["teamId"] = state ? state.teamId : undefined;
|
|
46
|
+
resourceInputs["url"] = state ? state.url : undefined;
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
const args = argsOrState;
|
|
50
|
+
if ((!args || args.projectId === undefined) && !opts.urn) {
|
|
51
|
+
throw new Error("Missing required property 'projectId'");
|
|
52
|
+
}
|
|
53
|
+
resourceInputs["deleteOnDestroy"] = args ? args.deleteOnDestroy : undefined;
|
|
54
|
+
resourceInputs["environment"] = args ? args.environment : undefined;
|
|
55
|
+
resourceInputs["files"] = args ? args.files : undefined;
|
|
56
|
+
resourceInputs["pathPrefix"] = args ? args.pathPrefix : undefined;
|
|
57
|
+
resourceInputs["production"] = args ? args.production : undefined;
|
|
58
|
+
resourceInputs["projectId"] = args ? args.projectId : undefined;
|
|
59
|
+
resourceInputs["projectSettings"] = args ? args.projectSettings : undefined;
|
|
60
|
+
resourceInputs["ref"] = args ? args.ref : undefined;
|
|
61
|
+
resourceInputs["teamId"] = args ? args.teamId : undefined;
|
|
62
|
+
resourceInputs["domains"] = undefined /*out*/;
|
|
63
|
+
resourceInputs["url"] = undefined /*out*/;
|
|
64
|
+
}
|
|
65
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
66
|
+
super(Deployment.__pulumiType, name, resourceInputs, opts);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.Deployment = Deployment;
|
|
70
|
+
/** @internal */
|
|
71
|
+
Deployment.__pulumiType = 'vercel:index/deployment:Deployment';
|
|
72
|
+
//# sourceMappingURL=deployment.js.map
|
|
@@ -0,0 +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;IAwDD,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,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AK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AArHL,gCAsHC;AAxGG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
|
package/dnsRecord.d.ts
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Provides a 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 the provider, simply use the record id. - record_id can be taken from the network tab on the domains page.
|
|
78
|
+
*
|
|
79
|
+
* ```sh
|
|
80
|
+
* $ pulumi import vercel:index/dnsRecord:DnsRecord example rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* Alternatively, you can import via the team_id and record_id. - team_id can be found in the team `settings` tab in the Vercel UI. - record_id can be taken from the network tab on the domains page.
|
|
84
|
+
*
|
|
85
|
+
* ```sh
|
|
86
|
+
* $ pulumi import vercel:index/dnsRecord:DnsRecord example team_xxxxxxxxxxxxxxxxxxxxxxxx/rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
export declare class DnsRecord extends pulumi.CustomResource {
|
|
90
|
+
/**
|
|
91
|
+
* Get an existing DnsRecord resource's state with the given name, ID, and optional extra
|
|
92
|
+
* properties used to qualify the lookup.
|
|
93
|
+
*
|
|
94
|
+
* @param name The _unique_ name of the resulting resource.
|
|
95
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
96
|
+
* @param state Any extra arguments used during the lookup.
|
|
97
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
98
|
+
*/
|
|
99
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DnsRecordState, opts?: pulumi.CustomResourceOptions): DnsRecord;
|
|
100
|
+
/**
|
|
101
|
+
* Returns true if the given object is an instance of DnsRecord. This is designed to work even
|
|
102
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
103
|
+
*/
|
|
104
|
+
static isInstance(obj: any): obj is DnsRecord;
|
|
105
|
+
/**
|
|
106
|
+
* The domain name, or zone, that the DNS record should be created beneath.
|
|
107
|
+
*/
|
|
108
|
+
readonly domain: pulumi.Output<string>;
|
|
109
|
+
/**
|
|
110
|
+
* The priority of the MX record. The priority specifies the sequence that an email server receives emails. A smaller value indicates a higher priority.
|
|
111
|
+
*/
|
|
112
|
+
readonly mxPriority: pulumi.Output<number | undefined>;
|
|
113
|
+
/**
|
|
114
|
+
* The subdomain name of the record. This should be an empty string if the rercord is for the root domain.
|
|
115
|
+
*/
|
|
116
|
+
readonly name: pulumi.Output<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Settings for an SRV record.
|
|
119
|
+
*/
|
|
120
|
+
readonly srv: pulumi.Output<outputs.DnsRecordSrv | undefined>;
|
|
121
|
+
/**
|
|
122
|
+
* 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.
|
|
123
|
+
*/
|
|
124
|
+
readonly teamId: pulumi.Output<string>;
|
|
125
|
+
/**
|
|
126
|
+
* The TTL value in seconds. Must be a number between 60 and 2147483647. If unspecified, it will default to 60 seconds.
|
|
127
|
+
*/
|
|
128
|
+
readonly ttl: pulumi.Output<number>;
|
|
129
|
+
/**
|
|
130
|
+
* The type of DNS record. Available types: `A`, `AAAA`, `ALIAS`, `CAA`, `CNAME`, `MX`, `NS`, `SRV`, `TXT`.
|
|
131
|
+
*/
|
|
132
|
+
readonly type: pulumi.Output<string>;
|
|
133
|
+
/**
|
|
134
|
+
* The value of the DNS record. The format depends on the 'type' property.
|
|
135
|
+
* For an 'A' record, this should be a valid IPv4 address.
|
|
136
|
+
* For an 'AAAA' record, this should be an IPv6 address.
|
|
137
|
+
* For 'ALIAS' records, this should be a hostname.
|
|
138
|
+
* For 'CAA' records, this should specify specify which Certificate Authorities (CAs) are allowed to issue certificates for the domain.
|
|
139
|
+
* For 'CNAME' records, this should be a different domain name.
|
|
140
|
+
* For 'MX' records, this should specify the mail server responsible for accepting messages on behalf of the domain name.
|
|
141
|
+
* For 'TXT' records, this can contain arbitrary text.
|
|
142
|
+
*/
|
|
143
|
+
readonly value: pulumi.Output<string | undefined>;
|
|
144
|
+
/**
|
|
145
|
+
* Create a DnsRecord resource with the given unique name, arguments, and options.
|
|
146
|
+
*
|
|
147
|
+
* @param name The _unique_ name of the resource.
|
|
148
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
149
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
150
|
+
*/
|
|
151
|
+
constructor(name: string, args: DnsRecordArgs, opts?: pulumi.CustomResourceOptions);
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Input properties used for looking up and filtering DnsRecord resources.
|
|
155
|
+
*/
|
|
156
|
+
export interface DnsRecordState {
|
|
157
|
+
/**
|
|
158
|
+
* The domain name, or zone, that the DNS record should be created beneath.
|
|
159
|
+
*/
|
|
160
|
+
domain?: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* The priority of the MX record. The priority specifies the sequence that an email server receives emails. A smaller value indicates a higher priority.
|
|
163
|
+
*/
|
|
164
|
+
mxPriority?: pulumi.Input<number>;
|
|
165
|
+
/**
|
|
166
|
+
* The subdomain name of the record. This should be an empty string if the rercord is for the root domain.
|
|
167
|
+
*/
|
|
168
|
+
name?: pulumi.Input<string>;
|
|
169
|
+
/**
|
|
170
|
+
* Settings for an SRV record.
|
|
171
|
+
*/
|
|
172
|
+
srv?: pulumi.Input<inputs.DnsRecordSrv>;
|
|
173
|
+
/**
|
|
174
|
+
* 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.
|
|
175
|
+
*/
|
|
176
|
+
teamId?: pulumi.Input<string>;
|
|
177
|
+
/**
|
|
178
|
+
* The TTL value in seconds. Must be a number between 60 and 2147483647. If unspecified, it will default to 60 seconds.
|
|
179
|
+
*/
|
|
180
|
+
ttl?: pulumi.Input<number>;
|
|
181
|
+
/**
|
|
182
|
+
* The type of DNS record. Available types: `A`, `AAAA`, `ALIAS`, `CAA`, `CNAME`, `MX`, `NS`, `SRV`, `TXT`.
|
|
183
|
+
*/
|
|
184
|
+
type?: pulumi.Input<string>;
|
|
185
|
+
/**
|
|
186
|
+
* The value of the DNS record. The format depends on the 'type' property.
|
|
187
|
+
* For an 'A' record, this should be a valid IPv4 address.
|
|
188
|
+
* For an 'AAAA' record, this should be an IPv6 address.
|
|
189
|
+
* For 'ALIAS' records, this should be a hostname.
|
|
190
|
+
* For 'CAA' records, this should specify specify which Certificate Authorities (CAs) are allowed to issue certificates for the domain.
|
|
191
|
+
* For 'CNAME' records, this should be a different domain name.
|
|
192
|
+
* For 'MX' records, this should specify the mail server responsible for accepting messages on behalf of the domain name.
|
|
193
|
+
* For 'TXT' records, this can contain arbitrary text.
|
|
194
|
+
*/
|
|
195
|
+
value?: pulumi.Input<string>;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* The set of arguments for constructing a DnsRecord resource.
|
|
199
|
+
*/
|
|
200
|
+
export interface DnsRecordArgs {
|
|
201
|
+
/**
|
|
202
|
+
* The domain name, or zone, that the DNS record should be created beneath.
|
|
203
|
+
*/
|
|
204
|
+
domain: pulumi.Input<string>;
|
|
205
|
+
/**
|
|
206
|
+
* The priority of the MX record. The priority specifies the sequence that an email server receives emails. A smaller value indicates a higher priority.
|
|
207
|
+
*/
|
|
208
|
+
mxPriority?: pulumi.Input<number>;
|
|
209
|
+
/**
|
|
210
|
+
* The subdomain name of the record. This should be an empty string if the rercord is for the root domain.
|
|
211
|
+
*/
|
|
212
|
+
name?: pulumi.Input<string>;
|
|
213
|
+
/**
|
|
214
|
+
* Settings for an SRV record.
|
|
215
|
+
*/
|
|
216
|
+
srv?: pulumi.Input<inputs.DnsRecordSrv>;
|
|
217
|
+
/**
|
|
218
|
+
* 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.
|
|
219
|
+
*/
|
|
220
|
+
teamId?: pulumi.Input<string>;
|
|
221
|
+
/**
|
|
222
|
+
* The TTL value in seconds. Must be a number between 60 and 2147483647. If unspecified, it will default to 60 seconds.
|
|
223
|
+
*/
|
|
224
|
+
ttl?: pulumi.Input<number>;
|
|
225
|
+
/**
|
|
226
|
+
* The type of DNS record. Available types: `A`, `AAAA`, `ALIAS`, `CAA`, `CNAME`, `MX`, `NS`, `SRV`, `TXT`.
|
|
227
|
+
*/
|
|
228
|
+
type: pulumi.Input<string>;
|
|
229
|
+
/**
|
|
230
|
+
* The value of the DNS record. The format depends on the 'type' property.
|
|
231
|
+
* For an 'A' record, this should be a valid IPv4 address.
|
|
232
|
+
* For an 'AAAA' record, this should be an IPv6 address.
|
|
233
|
+
* For 'ALIAS' records, this should be a hostname.
|
|
234
|
+
* For 'CAA' records, this should specify specify which Certificate Authorities (CAs) are allowed to issue certificates for the domain.
|
|
235
|
+
* For 'CNAME' records, this should be a different domain name.
|
|
236
|
+
* For 'MX' records, this should specify the mail server responsible for accepting messages on behalf of the domain name.
|
|
237
|
+
* For 'TXT' records, this can contain arbitrary text.
|
|
238
|
+
*/
|
|
239
|
+
value?: pulumi.Input<string>;
|
|
240
|
+
}
|
package/dnsRecord.js
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.DnsRecord = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
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 the provider, simply use the record id. - record_id can be taken from the network tab on the domains page.
|
|
82
|
+
*
|
|
83
|
+
* ```sh
|
|
84
|
+
* $ pulumi import vercel:index/dnsRecord:DnsRecord example rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
85
|
+
* ```
|
|
86
|
+
*
|
|
87
|
+
* Alternatively, you can import via the team_id and record_id. - team_id can be found in the team `settings` tab in the Vercel UI. - record_id can be taken from the network tab on the domains page.
|
|
88
|
+
*
|
|
89
|
+
* ```sh
|
|
90
|
+
* $ pulumi import vercel:index/dnsRecord:DnsRecord example team_xxxxxxxxxxxxxxxxxxxxxxxx/rec_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
class DnsRecord extends pulumi.CustomResource {
|
|
94
|
+
/**
|
|
95
|
+
* Get an existing DnsRecord resource's state with the given name, ID, and optional extra
|
|
96
|
+
* properties used to qualify the lookup.
|
|
97
|
+
*
|
|
98
|
+
* @param name The _unique_ name of the resulting resource.
|
|
99
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
100
|
+
* @param state Any extra arguments used during the lookup.
|
|
101
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
102
|
+
*/
|
|
103
|
+
static get(name, id, state, opts) {
|
|
104
|
+
return new DnsRecord(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Returns true if the given object is an instance of DnsRecord. This is designed to work even
|
|
108
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
109
|
+
*/
|
|
110
|
+
static isInstance(obj) {
|
|
111
|
+
if (obj === undefined || obj === null) {
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
return obj['__pulumiType'] === DnsRecord.__pulumiType;
|
|
115
|
+
}
|
|
116
|
+
constructor(name, argsOrState, opts) {
|
|
117
|
+
let resourceInputs = {};
|
|
118
|
+
opts = opts || {};
|
|
119
|
+
if (opts.id) {
|
|
120
|
+
const state = argsOrState;
|
|
121
|
+
resourceInputs["domain"] = state ? state.domain : undefined;
|
|
122
|
+
resourceInputs["mxPriority"] = state ? state.mxPriority : undefined;
|
|
123
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
124
|
+
resourceInputs["srv"] = state ? state.srv : undefined;
|
|
125
|
+
resourceInputs["teamId"] = state ? state.teamId : undefined;
|
|
126
|
+
resourceInputs["ttl"] = state ? state.ttl : undefined;
|
|
127
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
128
|
+
resourceInputs["value"] = state ? state.value : undefined;
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
const args = argsOrState;
|
|
132
|
+
if ((!args || args.domain === undefined) && !opts.urn) {
|
|
133
|
+
throw new Error("Missing required property 'domain'");
|
|
134
|
+
}
|
|
135
|
+
if ((!args || args.type === undefined) && !opts.urn) {
|
|
136
|
+
throw new Error("Missing required property 'type'");
|
|
137
|
+
}
|
|
138
|
+
resourceInputs["domain"] = args ? args.domain : undefined;
|
|
139
|
+
resourceInputs["mxPriority"] = args ? args.mxPriority : undefined;
|
|
140
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
141
|
+
resourceInputs["srv"] = args ? args.srv : undefined;
|
|
142
|
+
resourceInputs["teamId"] = args ? args.teamId : undefined;
|
|
143
|
+
resourceInputs["ttl"] = args ? args.ttl : undefined;
|
|
144
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
145
|
+
resourceInputs["value"] = args ? args.value : undefined;
|
|
146
|
+
}
|
|
147
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
148
|
+
super(DnsRecord.__pulumiType, name, resourceInputs, opts);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
exports.DnsRecord = DnsRecord;
|
|
152
|
+
/** @internal */
|
|
153
|
+
DnsRecord.__pulumiType = 'vercel:index/dnsRecord:DnsRecord';
|
|
154
|
+
//# sourceMappingURL=dnsRecord.js.map
|
package/dnsRecord.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"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SAAS,CAAC;YACtD,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AA5GL,8BA6GC;AA/FG,gBAAgB;AACO,sBAAY,GAAG,kCAAkC,CAAC"}
|
package/getAlias.d.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides information about an existing Alias resource.
|
|
4
|
+
*
|
|
5
|
+
* An Alias allows a `vercel.Deployment` to be accessed through a different URL.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getAlias(args: GetAliasArgs, opts?: pulumi.InvokeOptions): Promise<GetAliasResult>;
|
|
8
|
+
/**
|
|
9
|
+
* A collection of arguments for invoking getAlias.
|
|
10
|
+
*/
|
|
11
|
+
export interface GetAliasArgs {
|
|
12
|
+
/**
|
|
13
|
+
* The Alias or Alias ID to be retrieved.
|
|
14
|
+
*/
|
|
15
|
+
alias: string;
|
|
16
|
+
/**
|
|
17
|
+
* The ID of the team the Alias and Deployment exist under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
18
|
+
*/
|
|
19
|
+
teamId?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A collection of values returned by getAlias.
|
|
23
|
+
*/
|
|
24
|
+
export interface GetAliasResult {
|
|
25
|
+
/**
|
|
26
|
+
* The Alias or Alias ID to be retrieved.
|
|
27
|
+
*/
|
|
28
|
+
readonly alias: string;
|
|
29
|
+
/**
|
|
30
|
+
* The ID of the Deployment the Alias is associated with.
|
|
31
|
+
*/
|
|
32
|
+
readonly deploymentId: string;
|
|
33
|
+
/**
|
|
34
|
+
* The ID of this resource.
|
|
35
|
+
*/
|
|
36
|
+
readonly id: string;
|
|
37
|
+
/**
|
|
38
|
+
* The ID of the team the Alias and Deployment exist under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
39
|
+
*/
|
|
40
|
+
readonly teamId: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Provides information about an existing Alias resource.
|
|
44
|
+
*
|
|
45
|
+
* An Alias allows a `vercel.Deployment` to be accessed through a different URL.
|
|
46
|
+
*/
|
|
47
|
+
export declare function getAliasOutput(args: GetAliasOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAliasResult>;
|
|
48
|
+
/**
|
|
49
|
+
* A collection of arguments for invoking getAlias.
|
|
50
|
+
*/
|
|
51
|
+
export interface GetAliasOutputArgs {
|
|
52
|
+
/**
|
|
53
|
+
* The Alias or Alias ID to be retrieved.
|
|
54
|
+
*/
|
|
55
|
+
alias: pulumi.Input<string>;
|
|
56
|
+
/**
|
|
57
|
+
* The ID of the team the Alias and Deployment exist under. Required when configuring a team resource if a default team has not been set in the provider.
|
|
58
|
+
*/
|
|
59
|
+
teamId?: pulumi.Input<string>;
|
|
60
|
+
}
|
package/getAlias.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getAliasOutput = exports.getAlias = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides information about an existing Alias resource.
|
|
10
|
+
*
|
|
11
|
+
* An Alias allows a `vercel.Deployment` to be accessed through a different URL.
|
|
12
|
+
*/
|
|
13
|
+
function getAlias(args, opts) {
|
|
14
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
15
|
+
return pulumi.runtime.invoke("vercel:index/getAlias:getAlias", {
|
|
16
|
+
"alias": args.alias,
|
|
17
|
+
"teamId": args.teamId,
|
|
18
|
+
}, opts);
|
|
19
|
+
}
|
|
20
|
+
exports.getAlias = getAlias;
|
|
21
|
+
/**
|
|
22
|
+
* Provides information about an existing Alias resource.
|
|
23
|
+
*
|
|
24
|
+
* An Alias allows a `vercel.Deployment` to be accessed through a different URL.
|
|
25
|
+
*/
|
|
26
|
+
function getAliasOutput(args, opts) {
|
|
27
|
+
return pulumi.output(args).apply((a) => getAlias(a, opts));
|
|
28
|
+
}
|
|
29
|
+
exports.getAliasOutput = getAliasOutput;
|
|
30
|
+
//# sourceMappingURL=getAlias.js.map
|
package/getAlias.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAlias.js","sourceRoot":"","sources":["../getAlias.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,IAAkB,EAAE,IAA2B;IAEpE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gCAAgC,EAAE;QAC3D,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,4BAOC;AAqCD;;;;GAIG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,wCAEC"}
|
package/getFile.d.ts
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides information about a file on disk.
|
|
4
|
+
*
|
|
5
|
+
* This will read a single file, providing metadata for use with a `vercel.Deployment`.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as vercel from "@pulumi/vercel";
|
|
12
|
+
* import * as vercel from "@pulumiverse/vercel";
|
|
13
|
+
*
|
|
14
|
+
* const exampleFile = vercel.getFile({
|
|
15
|
+
* path: "index.html",
|
|
16
|
+
* });
|
|
17
|
+
* const exampleProject = vercel.getProject({
|
|
18
|
+
* name: "my-project",
|
|
19
|
+
* });
|
|
20
|
+
* const exampleDeployment = new vercel.Deployment("exampleDeployment", {
|
|
21
|
+
* projectId: exampleProject.then(exampleProject => exampleProject.id),
|
|
22
|
+
* files: exampleFile.then(exampleFile => exampleFile.file),
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare function getFile(args: GetFileArgs, opts?: pulumi.InvokeOptions): Promise<GetFileResult>;
|
|
27
|
+
/**
|
|
28
|
+
* A collection of arguments for invoking getFile.
|
|
29
|
+
*/
|
|
30
|
+
export interface GetFileArgs {
|
|
31
|
+
path: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* A collection of values returned by getFile.
|
|
35
|
+
*/
|
|
36
|
+
export interface GetFileResult {
|
|
37
|
+
/**
|
|
38
|
+
* A map of filename to metadata about the file. The metadata contains the file size and hash, and allows a deployment to be created if the file changes.
|
|
39
|
+
*/
|
|
40
|
+
readonly file: {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* The ID of this resource.
|
|
45
|
+
*/
|
|
46
|
+
readonly id: string;
|
|
47
|
+
readonly path: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Provides information about a file on disk.
|
|
51
|
+
*
|
|
52
|
+
* This will read a single file, providing metadata for use with a `vercel.Deployment`.
|
|
53
|
+
*
|
|
54
|
+
* ## Example Usage
|
|
55
|
+
*
|
|
56
|
+
* ```typescript
|
|
57
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
58
|
+
* import * as vercel from "@pulumi/vercel";
|
|
59
|
+
* import * as vercel from "@pulumiverse/vercel";
|
|
60
|
+
*
|
|
61
|
+
* const exampleFile = vercel.getFile({
|
|
62
|
+
* path: "index.html",
|
|
63
|
+
* });
|
|
64
|
+
* const exampleProject = vercel.getProject({
|
|
65
|
+
* name: "my-project",
|
|
66
|
+
* });
|
|
67
|
+
* const exampleDeployment = new vercel.Deployment("exampleDeployment", {
|
|
68
|
+
* projectId: exampleProject.then(exampleProject => exampleProject.id),
|
|
69
|
+
* files: exampleFile.then(exampleFile => exampleFile.file),
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export declare function getFileOutput(args: GetFileOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFileResult>;
|
|
74
|
+
/**
|
|
75
|
+
* A collection of arguments for invoking getFile.
|
|
76
|
+
*/
|
|
77
|
+
export interface GetFileOutputArgs {
|
|
78
|
+
path: pulumi.Input<string>;
|
|
79
|
+
}
|