@pulumiverse/vercel 1.14.2 → 1.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/accessGroup.d.ts +63 -0
- package/accessGroup.js +51 -0
- package/accessGroup.js.map +1 -0
- package/accessGroupProject.d.ts +87 -0
- package/accessGroupProject.js +64 -0
- package/accessGroupProject.js.map +1 -0
- package/alias.d.ts +6 -8
- package/alias.js +0 -5
- package/alias.js.map +1 -1
- package/attackChallengeMode.d.ts +9 -36
- package/attackChallengeMode.js +0 -30
- package/attackChallengeMode.js.map +1 -1
- package/customEnvironment.d.ts +101 -0
- package/customEnvironment.js +60 -0
- package/customEnvironment.js.map +1 -0
- package/deployment.d.ts +34 -17
- package/deployment.js.map +1 -1
- package/dnsRecord.d.ts +30 -127
- package/dnsRecord.js +0 -97
- package/dnsRecord.js.map +1 -1
- package/edgeConfig.d.ts +6 -54
- package/edgeConfig.js +0 -51
- package/edgeConfig.js.map +1 -1
- package/edgeConfigItem.d.ts +87 -0
- package/edgeConfigItem.js +64 -0
- package/edgeConfigItem.js.map +1 -0
- package/edgeConfigSchema.d.ts +6 -28
- package/edgeConfigSchema.js +0 -25
- package/edgeConfigSchema.js.map +1 -1
- package/edgeConfigToken.d.ts +10 -62
- package/edgeConfigToken.js +0 -57
- package/edgeConfigToken.js.map +1 -1
- package/firewallConfig.d.ts +110 -0
- package/firewallConfig.js +62 -0
- package/firewallConfig.js.map +1 -0
- package/getAccessGroup.d.ts +25 -0
- package/getAccessGroup.js +24 -0
- package/getAccessGroup.js.map +1 -0
- package/getAccessGroupProject.d.ts +32 -0
- package/getAccessGroupProject.js +26 -0
- package/getAccessGroupProject.js.map +1 -0
- package/getAlias.d.ts +0 -34
- package/getAlias.js +0 -10
- package/getAlias.js.map +1 -1
- package/getAttackChallengeMode.d.ts +0 -56
- package/getAttackChallengeMode.js +0 -32
- package/getAttackChallengeMode.js.map +1 -1
- package/getCustomEnvironment.d.ts +31 -0
- package/getCustomEnvironment.js +26 -0
- package/getCustomEnvironment.js.map +1 -0
- package/getDeployment.d.ts +0 -65
- package/getDeployment.js +0 -32
- package/getDeployment.js.map +1 -1
- package/getEdgeConfig.d.ts +0 -53
- package/getEdgeConfig.js +0 -32
- package/getEdgeConfig.js.map +1 -1
- package/getEdgeConfigItem.d.ts +28 -0
- package/getEdgeConfigItem.js +26 -0
- package/getEdgeConfigItem.js.map +1 -0
- package/getEdgeConfigSchema.d.ts +0 -49
- package/getEdgeConfigSchema.js +0 -28
- package/getEdgeConfigSchema.js.map +1 -1
- package/getEdgeConfigToken.d.ts +0 -74
- package/getEdgeConfigToken.js +0 -38
- package/getEdgeConfigToken.js.map +1 -1
- package/getEndpointVerification.d.ts +0 -39
- package/getEndpointVerification.js +0 -24
- package/getEndpointVerification.js.map +1 -1
- package/getFile.d.ts +0 -54
- package/getFile.js +0 -48
- package/getFile.js.map +1 -1
- package/getLogDrain.d.ts +0 -81
- package/getLogDrain.js +0 -36
- package/getLogDrain.js.map +1 -1
- package/getPrebuiltProject.d.ts +0 -6
- package/getPrebuiltProject.js.map +1 -1
- package/getProject.d.ts +1 -146
- package/getProject.js +0 -38
- package/getProject.js.map +1 -1
- package/getProjectDeploymentRetention.d.ts +0 -47
- package/getProjectDeploymentRetention.js +0 -14
- package/getProjectDeploymentRetention.js.map +1 -1
- package/getProjectDirectory.d.ts +0 -6
- package/getProjectDirectory.js.map +1 -1
- package/getProjectMembers.d.ts +30 -0
- package/getProjectMembers.js +24 -0
- package/getProjectMembers.js.map +1 -0
- package/getSharedEnvironmentVariable.d.ts +1 -95
- package/getSharedEnvironmentVariable.js +0 -50
- package/getSharedEnvironmentVariable.js.map +1 -1
- package/getTeamConfig.d.ts +35 -0
- package/getTeamConfig.js +22 -0
- package/getTeamConfig.js.map +1 -0
- package/getTeamMember.d.ts +29 -0
- package/getTeamMember.js +24 -0
- package/getTeamMember.js.map +1 -0
- package/index.d.ts +48 -6
- package/index.js +68 -9
- package/index.js.map +1 -1
- package/logDrain.d.ts +42 -74
- package/logDrain.js +0 -56
- package/logDrain.js.map +1 -1
- package/package.json +1 -1
- package/project.d.ts +111 -89
- package/project.js +3 -46
- package/project.js.map +1 -1
- package/projectDeploymentRetention.d.ts +0 -51
- package/projectDeploymentRetention.js +0 -51
- package/projectDeploymentRetention.js.map +1 -1
- package/projectDomain.d.ts +21 -55
- package/projectDomain.js +2 -52
- package/projectDomain.js.map +1 -1
- package/projectEnvironmentVariable.d.ts +40 -86
- package/projectEnvironmentVariable.js +4 -82
- package/projectEnvironmentVariable.js.map +1 -1
- package/projectEnvironmentVariables.d.ts +74 -0
- package/projectEnvironmentVariables.js +59 -0
- package/projectEnvironmentVariables.js.map +1 -0
- package/projectMembers.d.ts +77 -0
- package/projectMembers.js +59 -0
- package/projectMembers.js.map +1 -0
- package/sharedEnvironmentVariable.d.ts +24 -49
- package/sharedEnvironmentVariable.js +2 -43
- package/sharedEnvironmentVariable.js.map +1 -1
- package/teamConfig.d.ts +211 -0
- package/teamConfig.js +75 -0
- package/teamConfig.js.map +1 -0
- package/teamMember.d.ts +107 -0
- package/teamMember.js +66 -0
- package/teamMember.js.map +1 -0
- package/types/input.d.ts +301 -2
- package/types/output.d.ts +372 -1
- package/webhook.d.ts +18 -43
- package/webhook.js +0 -35
- package/webhook.js.map +1 -1
- package/getProjectFunctionCpu.d.ts +0 -92
- package/getProjectFunctionCpu.js +0 -66
- package/getProjectFunctionCpu.js.map +0 -1
- package/projectFunctionCpu.d.ts +0 -106
- package/projectFunctionCpu.js +0 -93
- package/projectFunctionCpu.js.map +0 -1
package/deployment.d.ts
CHANGED
|
@@ -19,23 +19,27 @@ 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
|
|
22
|
+
* A list of all the domains (default domains, staging domains and production domains) that were assigned upon deployment
|
|
23
|
+
* creation.
|
|
23
24
|
*/
|
|
24
25
|
readonly domains: pulumi.Output<string[]>;
|
|
25
26
|
/**
|
|
26
|
-
* A map of environment variable names to values. These are specific to a Deployment, and can also be configured on the
|
|
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.
|
|
27
29
|
*/
|
|
28
30
|
readonly environment: pulumi.Output<{
|
|
29
31
|
[key: string]: string;
|
|
30
32
|
} | undefined>;
|
|
31
33
|
/**
|
|
32
|
-
* A map of files to be uploaded for the deployment. This should be provided by a `vercel.getProjectDirectory` or
|
|
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.
|
|
33
36
|
*/
|
|
34
37
|
readonly files: pulumi.Output<{
|
|
35
38
|
[key: string]: string;
|
|
36
39
|
} | undefined>;
|
|
37
40
|
/**
|
|
38
|
-
* If specified then the `pathPrefix` will be stripped from the start of file paths as they are uploaded to Vercel. If this
|
|
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.
|
|
39
43
|
*/
|
|
40
44
|
readonly pathPrefix: pulumi.Output<string | undefined>;
|
|
41
45
|
/**
|
|
@@ -51,11 +55,13 @@ export declare class Deployment extends pulumi.CustomResource {
|
|
|
51
55
|
*/
|
|
52
56
|
readonly projectSettings: pulumi.Output<outputs.DeploymentProjectSettings | undefined>;
|
|
53
57
|
/**
|
|
54
|
-
* The branch or commit hash that should be deployed. Note this will only work if the project is configured to use a Git
|
|
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.
|
|
55
60
|
*/
|
|
56
61
|
readonly ref: pulumi.Output<string | undefined>;
|
|
57
62
|
/**
|
|
58
|
-
* The team ID to add the deployment to. Required when configuring a team resource if a default team has not been set in
|
|
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.
|
|
59
65
|
*/
|
|
60
66
|
readonly teamId: pulumi.Output<string>;
|
|
61
67
|
/**
|
|
@@ -77,23 +83,27 @@ export declare class Deployment extends pulumi.CustomResource {
|
|
|
77
83
|
export interface DeploymentState {
|
|
78
84
|
deleteOnDestroy?: pulumi.Input<boolean>;
|
|
79
85
|
/**
|
|
80
|
-
* A list of all the domains (default domains, staging domains and production domains) that were assigned upon deployment
|
|
86
|
+
* A list of all the domains (default domains, staging domains and production domains) that were assigned upon deployment
|
|
87
|
+
* creation.
|
|
81
88
|
*/
|
|
82
89
|
domains?: pulumi.Input<pulumi.Input<string>[]>;
|
|
83
90
|
/**
|
|
84
|
-
* A map of environment variable names to values. These are specific to a Deployment, and can also be configured on the
|
|
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.
|
|
85
93
|
*/
|
|
86
94
|
environment?: pulumi.Input<{
|
|
87
95
|
[key: string]: pulumi.Input<string>;
|
|
88
96
|
}>;
|
|
89
97
|
/**
|
|
90
|
-
* A map of files to be uploaded for the deployment. This should be provided by a `vercel.getProjectDirectory` or
|
|
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.
|
|
91
100
|
*/
|
|
92
101
|
files?: pulumi.Input<{
|
|
93
102
|
[key: string]: pulumi.Input<string>;
|
|
94
103
|
}>;
|
|
95
104
|
/**
|
|
96
|
-
* If specified then the `pathPrefix` will be stripped from the start of file paths as they are uploaded to Vercel. If this
|
|
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.
|
|
97
107
|
*/
|
|
98
108
|
pathPrefix?: pulumi.Input<string>;
|
|
99
109
|
/**
|
|
@@ -109,11 +119,13 @@ export interface DeploymentState {
|
|
|
109
119
|
*/
|
|
110
120
|
projectSettings?: pulumi.Input<inputs.DeploymentProjectSettings>;
|
|
111
121
|
/**
|
|
112
|
-
* The branch or commit hash that should be deployed. Note this will only work if the project is configured to use a Git
|
|
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.
|
|
113
124
|
*/
|
|
114
125
|
ref?: pulumi.Input<string>;
|
|
115
126
|
/**
|
|
116
|
-
* The team ID to add the deployment to. Required when configuring a team resource if a default team has not been set in
|
|
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.
|
|
117
129
|
*/
|
|
118
130
|
teamId?: pulumi.Input<string>;
|
|
119
131
|
/**
|
|
@@ -127,19 +139,22 @@ export interface DeploymentState {
|
|
|
127
139
|
export interface DeploymentArgs {
|
|
128
140
|
deleteOnDestroy?: pulumi.Input<boolean>;
|
|
129
141
|
/**
|
|
130
|
-
* A map of environment variable names to values. These are specific to a Deployment, and can also be configured on the
|
|
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.
|
|
131
144
|
*/
|
|
132
145
|
environment?: pulumi.Input<{
|
|
133
146
|
[key: string]: pulumi.Input<string>;
|
|
134
147
|
}>;
|
|
135
148
|
/**
|
|
136
|
-
* A map of files to be uploaded for the deployment. This should be provided by a `vercel.getProjectDirectory` or
|
|
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.
|
|
137
151
|
*/
|
|
138
152
|
files?: pulumi.Input<{
|
|
139
153
|
[key: string]: pulumi.Input<string>;
|
|
140
154
|
}>;
|
|
141
155
|
/**
|
|
142
|
-
* If specified then the `pathPrefix` will be stripped from the start of file paths as they are uploaded to Vercel. If this
|
|
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.
|
|
143
158
|
*/
|
|
144
159
|
pathPrefix?: pulumi.Input<string>;
|
|
145
160
|
/**
|
|
@@ -155,11 +170,13 @@ export interface DeploymentArgs {
|
|
|
155
170
|
*/
|
|
156
171
|
projectSettings?: pulumi.Input<inputs.DeploymentProjectSettings>;
|
|
157
172
|
/**
|
|
158
|
-
* The branch or commit hash that should be deployed. Note this will only work if the project is configured to use a Git
|
|
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.
|
|
159
175
|
*/
|
|
160
176
|
ref?: pulumi.Input<string>;
|
|
161
177
|
/**
|
|
162
|
-
* The team ID to add the deployment to. Required when configuring a team resource if a default team has not been set in
|
|
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.
|
|
163
180
|
*/
|
|
164
181
|
teamId?: pulumi.Input<string>;
|
|
165
182
|
}
|
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,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,103 +1,6 @@
|
|
|
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 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
|
-
*/
|
|
101
4
|
export declare class DnsRecord extends pulumi.CustomResource {
|
|
102
5
|
/**
|
|
103
6
|
* Get an existing DnsRecord resource's state with the given name, ID, and optional extra
|
|
@@ -123,7 +26,8 @@ export declare class DnsRecord extends pulumi.CustomResource {
|
|
|
123
26
|
*/
|
|
124
27
|
readonly domain: pulumi.Output<string>;
|
|
125
28
|
/**
|
|
126
|
-
* The priority of the MX record. The priority specifies the sequence that an email server receives emails. A smaller value
|
|
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.
|
|
127
31
|
*/
|
|
128
32
|
readonly mxPriority: pulumi.Output<number | undefined>;
|
|
129
33
|
/**
|
|
@@ -135,7 +39,8 @@ export declare class DnsRecord extends pulumi.CustomResource {
|
|
|
135
39
|
*/
|
|
136
40
|
readonly srv: pulumi.Output<outputs.DnsRecordSrv | undefined>;
|
|
137
41
|
/**
|
|
138
|
-
* The team ID that the domain and DNS records belong to. Required when configuring a team resource if a default team has
|
|
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.
|
|
139
44
|
*/
|
|
140
45
|
readonly teamId: pulumi.Output<string>;
|
|
141
46
|
/**
|
|
@@ -147,14 +52,12 @@ export declare class DnsRecord extends pulumi.CustomResource {
|
|
|
147
52
|
*/
|
|
148
53
|
readonly type: pulumi.Output<string>;
|
|
149
54
|
/**
|
|
150
|
-
* The value of the DNS record. The format depends on the 'type' property.
|
|
151
|
-
* For an '
|
|
152
|
-
*
|
|
153
|
-
* For '
|
|
154
|
-
*
|
|
155
|
-
*
|
|
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.
|
|
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.
|
|
158
61
|
*/
|
|
159
62
|
readonly value: pulumi.Output<string | undefined>;
|
|
160
63
|
/**
|
|
@@ -179,7 +82,8 @@ export interface DnsRecordState {
|
|
|
179
82
|
*/
|
|
180
83
|
domain?: pulumi.Input<string>;
|
|
181
84
|
/**
|
|
182
|
-
* The priority of the MX record. The priority specifies the sequence that an email server receives emails. A smaller value
|
|
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.
|
|
183
87
|
*/
|
|
184
88
|
mxPriority?: pulumi.Input<number>;
|
|
185
89
|
/**
|
|
@@ -191,7 +95,8 @@ export interface DnsRecordState {
|
|
|
191
95
|
*/
|
|
192
96
|
srv?: pulumi.Input<inputs.DnsRecordSrv>;
|
|
193
97
|
/**
|
|
194
|
-
* The team ID that the domain and DNS records belong to. Required when configuring a team resource if a default team has
|
|
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.
|
|
195
100
|
*/
|
|
196
101
|
teamId?: pulumi.Input<string>;
|
|
197
102
|
/**
|
|
@@ -203,14 +108,12 @@ export interface DnsRecordState {
|
|
|
203
108
|
*/
|
|
204
109
|
type?: pulumi.Input<string>;
|
|
205
110
|
/**
|
|
206
|
-
* The value of the DNS record. The format depends on the 'type' property.
|
|
207
|
-
* For an '
|
|
208
|
-
*
|
|
209
|
-
* For '
|
|
210
|
-
*
|
|
211
|
-
*
|
|
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.
|
|
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.
|
|
214
117
|
*/
|
|
215
118
|
value?: pulumi.Input<string>;
|
|
216
119
|
}
|
|
@@ -227,7 +130,8 @@ export interface DnsRecordArgs {
|
|
|
227
130
|
*/
|
|
228
131
|
domain: pulumi.Input<string>;
|
|
229
132
|
/**
|
|
230
|
-
* The priority of the MX record. The priority specifies the sequence that an email server receives emails. A smaller value
|
|
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.
|
|
231
135
|
*/
|
|
232
136
|
mxPriority?: pulumi.Input<number>;
|
|
233
137
|
/**
|
|
@@ -239,7 +143,8 @@ export interface DnsRecordArgs {
|
|
|
239
143
|
*/
|
|
240
144
|
srv?: pulumi.Input<inputs.DnsRecordSrv>;
|
|
241
145
|
/**
|
|
242
|
-
* The team ID that the domain and DNS records belong to. Required when configuring a team resource if a default team has
|
|
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.
|
|
243
148
|
*/
|
|
244
149
|
teamId?: pulumi.Input<string>;
|
|
245
150
|
/**
|
|
@@ -251,14 +156,12 @@ export interface DnsRecordArgs {
|
|
|
251
156
|
*/
|
|
252
157
|
type: pulumi.Input<string>;
|
|
253
158
|
/**
|
|
254
|
-
* The value of the DNS record. The format depends on the 'type' property.
|
|
255
|
-
* For an '
|
|
256
|
-
*
|
|
257
|
-
* For '
|
|
258
|
-
*
|
|
259
|
-
*
|
|
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.
|
|
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.
|
|
262
165
|
*/
|
|
263
166
|
value?: pulumi.Input<string>;
|
|
264
167
|
}
|
package/dnsRecord.js
CHANGED
|
@@ -5,103 +5,6 @@ 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
|
-
*/
|
|
105
8
|
class DnsRecord extends pulumi.CustomResource {
|
|
106
9
|
/**
|
|
107
10
|
* 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
|
|
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;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,G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-
* 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
|
-
*/
|
|
53
2
|
export declare class EdgeConfig extends pulumi.CustomResource {
|
|
54
3
|
/**
|
|
55
4
|
* Get an existing EdgeConfig resource's state with the given name, ID, and optional extra
|
|
@@ -71,7 +20,8 @@ export declare class EdgeConfig extends pulumi.CustomResource {
|
|
|
71
20
|
*/
|
|
72
21
|
readonly name: pulumi.Output<string>;
|
|
73
22
|
/**
|
|
74
|
-
* The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has
|
|
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.
|
|
75
25
|
*/
|
|
76
26
|
readonly teamId: pulumi.Output<string>;
|
|
77
27
|
/**
|
|
@@ -92,7 +42,8 @@ export interface EdgeConfigState {
|
|
|
92
42
|
*/
|
|
93
43
|
name?: pulumi.Input<string>;
|
|
94
44
|
/**
|
|
95
|
-
* The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has
|
|
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.
|
|
96
47
|
*/
|
|
97
48
|
teamId?: pulumi.Input<string>;
|
|
98
49
|
}
|
|
@@ -105,7 +56,8 @@ export interface EdgeConfigArgs {
|
|
|
105
56
|
*/
|
|
106
57
|
name?: pulumi.Input<string>;
|
|
107
58
|
/**
|
|
108
|
-
* The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has
|
|
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.
|
|
109
61
|
*/
|
|
110
62
|
teamId?: pulumi.Input<string>;
|
|
111
63
|
}
|
package/edgeConfig.js
CHANGED
|
@@ -5,57 +5,6 @@ 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
|
-
*/
|
|
59
8
|
class EdgeConfig extends pulumi.CustomResource {
|
|
60
9
|
/**
|
|
61
10
|
* 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,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"edgeConfig.js","sourceRoot":"","sources":["../edgeConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,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,EAA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