SCP::Dns::Record

SCP::Dns::Record

SCP::Dns::Record

Description

A DNS record that maps a domain name to data such as an IP address within a hosted zone. DNS queries for the domain are answered according to the record type and data.

Version

1.4.0

Syntax

To declare this entity in your Infrastructure Builder template, use the following syntax:

JSON

{
  "Type" : "SCP::Dns::Record",
  "Properties" : {
    "HostedZoneId" : "String",
    "Name" : "String",
    "Type" : "String",
    "Records" : [String],
    "Ttl" : "Integer",
    "Description" : "String"
  }
}

YAML

Type: SCP::Dns::Record
Properties:
  HostedZoneId: String
  Name: String
  Type: String
  Records: [String]
  Ttl: Integer
  Description: String

Properties

HostedZoneId

The identifier of the hosted zone that contains this DNS record. - example : 3432012nfdksdf03ktrld9234lgfg

AttributeValue
RequiredYes
TypeString
Update requiresReplacement

Name

The name for the DNS record to be created. - example : test.app

AttributeValue
RequiredYes
TypeString
Length constraints1–253
Update requiresReplacement

Type

The type of the DNS record to create (e.g., A, AAAA, CNAME, MX, TXT). - example : A

AttributeValue
RequiredYes
TypeString
Allowed valuesA | AAAA | CNAME | TXT | SPF | MX
Update requiresReplacement

Records

The list of data values for this record. The format depends on the record type, such as an IP address for an A record. - example : [“12.34.45.67”]

AttributeValue
RequiredYes
TypeArray of String
List constraints1–100
Update requiresNo interruption

Ttl

The Time-To-Live (TTL) value in seconds for the DNS record. - example : 3600

AttributeValue
RequiredNo
TypeInteger
Range5–86400
Update requiresNo interruption

Description

A brief explanation or note about this DNS record. This helps identify the purpose or usage of the record. - example : This is description

AttributeValue
RequiredNo
TypeString
Length constraintsMax: 50
Update requiresNo interruption

Return Values

Ref

When you pass the logical ID of this resource to the Ref function, Ref returns the value of the Id.

Fn::GetAtt

AttributeDescription
HostedZoneIdThe identifier of the hosted zone that contains this DNS record. - example : 3432012nfdksdf03ktrld9234lgfg
NameThe name for the DNS record to be created. - example : test.app
TypeThe type of the DNS record to create (e.g., A, AAAA, CNAME, MX, TXT). - example : A
RecordsThe list of data values for this record. The format depends on the record type, such as an IP address for an A record. - example : [“12.34.45.67”]
TtlThe Time-To-Live (TTL) value in seconds for the DNS record. - example : 3600
DescriptionA brief explanation or note about this DNS record. This helps identify the purpose or usage of the record. - example : This is description
ActionThe action performed on this DNS record. - example : NONE
ProjectIdThe project identifier associated with the DNS record. - example : 003dffc50eb123a1cbf4f2e5c71d4f15
StatusThe current status of the DNS record. - example : ACTIVE
UpdatedAtThe timestamp when the resource was last updated, in ISO 8601 format. - example : 2026-02-09T08:00:40Z
VersionThe version of the DNS record. - example : 1
ZoneIdThe identifier of the zone that contains this record. - example : 3432012nfdksdf03ktrld9234lgfg
ZoneNameThe name of the zone that contains this record. - example : my-zone.com