dns_srv_record_set (Resource)

Creates an SRV type DNS record set.

Example Usage

// DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
import { Construct } from "constructs";
import { TerraformStack } from "cdktf";
/*
 * Provider bindings are generated by running `cdktf get`.
 * See https://cdk.tf/provider-generation for more details.
 */
import { SrvRecordSet } from "./.gen/providers/dns/srv-record-set";
class MyConvertedCode extends TerraformStack {
  constructor(scope: Construct, name: string) {
    super(scope, name);
    new SrvRecordSet(this, "sip", {
      name: "_sip._tcp",
      srv: [
        {
          port: 5060,
          priority: 10,
          target: "bigbox.example.com.",
          weight: 60,
        },
        {
          port: 5060,
          priority: 10,
          target: "smallbox1.example.com.",
          weight: 20,
        },
        {
          port: 5060,
          priority: 10,
          target: "smallbox2.example.com.",
          weight: 20,
        },
      ],
      ttl: 300,
      zone: "example.com.",
    });
  }
}

Schema

Required

Optional

Read-Only

Nested Schema for srv

Required:

Import

Import is supported using the following syntax:

# Import using the FQDN.
terraform import dns_srv_record_set.sip _sip._tcp.example.com.