|
| 1 | +// deno-lint-ignore-file camelcase |
| 2 | + |
| 3 | +/** |
| 4 | + * This interface represents a CNAME record. |
| 5 | + */ |
| 6 | +export interface CNAMERecord { |
| 7 | + /** When the record comment was last modified. Omitted if there is no comment. */ |
| 8 | + comment_modified_on : string, |
| 9 | + /** When the record was created. */ |
| 10 | + created_on : string, |
| 11 | + /** Identifier */ |
| 12 | + id : string, |
| 13 | + /** Extra Cloudflare-specific information about the record. */ |
| 14 | + meta : Record<string, unknown>, |
| 15 | + /** When the record was last modified. */ |
| 16 | + modified_on : string, |
| 17 | + /** Whether the record can be proxied by Cloudflare or not. */ |
| 18 | + proxiable : boolean, |
| 19 | + /** When the record tags were last modified. Omitted if there are no tags. */ |
| 20 | + tags_modified_on? : string, |
| 21 | + /** Comments or notes about the DNS record. This field has no effect on DNS responses. */ |
| 22 | + comment : string, |
| 23 | + /** DNS record name (or @ for the zone apex) in Punycode. */ |
| 24 | + name : string, |
| 25 | + /* Whether the record is receiving the performance and security benefits of Cloudflare. */ |
| 26 | + proxied : boolean, |
| 27 | + /** Settings for the DNS record. */ |
| 28 | + settings : |
| 29 | + | Record<string, unknown> |
| 30 | + | { |
| 31 | + /** If enabled, causes the CNAME record to be resolved externally and the resulting address records (e.g., A and AAAA) to be returned instead of the CNAME record itself. This setting has no effect on proxied records, which are always flattened. */ |
| 32 | + flatten_cname : boolean |
| 33 | + }, |
| 34 | + /** Custom tags for the DNS record. This field has no effect on DNS responses. */ |
| 35 | + tags : string[], |
| 36 | + /** Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. */ |
| 37 | + ttl : number, |
| 38 | + /** A valid IPv6 address. */ |
| 39 | + content : string, |
| 40 | + /** Record type. */ |
| 41 | + type : 'CNAME' |
| 42 | +} |
0 commit comments