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
from constructs import Construct
from cdktf import TerraformStack
#
# Provider bindings are generated by running `cdktf get`.
# See https://cdk.tf/provider-generation for more details.
#
from imports.dns.srv_record_set import SrvRecordSet
class MyConvertedCode(TerraformStack):
    def __init__(self, scope, name):
        super().__init__(scope, name)
        SrvRecordSet(self, "sip",
            name="_sip._tcp",
            srv=[SrvRecordSetSrv(
                port=5060,
                priority=10,
                target="bigbox.example.com.",
                weight=60
            ), SrvRecordSetSrv(
                port=5060,
                priority=10,
                target="smallbox1.example.com.",
                weight=20
            ), SrvRecordSetSrv(
                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.