wirejs-resources 0.1.184 → 0.1.185

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/config.d.ts +49 -0
  2. package/package.json +1 -1
package/dist/config.d.ts CHANGED
@@ -3,6 +3,41 @@ export type RedirectRule = {
3
3
  to: string;
4
4
  mode?: 'temporary' | 'permanent';
5
5
  };
6
+ export type DeploymentDnsRecordType = 'A' | 'AAAA' | 'CAA' | 'CNAME' | 'MX' | 'NS' | 'PTR' | 'SPF' | 'SRV' | 'TXT';
7
+ export type DeploymentDnsRecord = {
8
+ /**
9
+ * Record name.
10
+ *
11
+ * Accepts either:
12
+ * - FQDN (for example `www.example.com`)
13
+ * - Relative host label (for example `www`, `_dmarc`, `@`) when `zoneDomain` is provided
14
+ */
15
+ name: string;
16
+ /**
17
+ * Route53 record type.
18
+ */
19
+ type: DeploymentDnsRecordType;
20
+ /**
21
+ * Raw Route53 resource record values.
22
+ *
23
+ * Examples:
24
+ * - TXT: ['"v=spf1 include:_spf.google.com ~all"']
25
+ * - MX: ['10 mail.example.com.']
26
+ * - CNAME: ['ghs.googlehosted.com.']
27
+ */
28
+ values: string[];
29
+ /**
30
+ * Optional TTL for the record set.
31
+ * Defaults to 300 seconds.
32
+ */
33
+ ttlSeconds?: number;
34
+ /**
35
+ * Optional hosted-zone domain to create this record in.
36
+ *
37
+ * Required when `name` is not an FQDN.
38
+ */
39
+ zoneDomain?: string;
40
+ };
6
41
  export type DeploymentConfig = {
7
42
  runtimeDesiredMemoryMB?: number;
8
43
  runtimeTimeoutSeconds?: number;
@@ -69,4 +104,18 @@ export type DeploymentConfig = {
69
104
  * - All `from` hosts are automatically included in domain aliases and certificates.
70
105
  */
71
106
  redirects?: RedirectRule[];
107
+ /**
108
+ * Optional arbitrary Route53 DNS records.
109
+ *
110
+ * Use this when migrating existing DNS into CDK-managed infrastructure,
111
+ * including TXT/MX/CAA/CNAME and additional A/AAAA records.
112
+ *
113
+ * Notes:
114
+ * - Record values are passed directly to Route53 resource records.
115
+ * - Hosted zones are looked up automatically for FQDN names.
116
+ * - For relative names (for example `@`, `www`, `_acme-challenge`),
117
+ * provide `zoneDomain`.
118
+ * - Supports `{branch}` token substitution in `name`, `zoneDomain`, and `values`.
119
+ */
120
+ dnsRecords?: DeploymentDnsRecord[];
72
121
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-resources",
3
- "version": "0.1.184",
3
+ "version": "0.1.185",
4
4
  "description": "Basic services and server-side resources for wirejs apps",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",