Class SrvRecordProps
Construction properties for a SrvRecord.
Inheritance
System.Object
SrvRecordProps
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.AWS.Route53.dll
Syntax (csharp)
public class SrvRecordProps : Object, ISrvRecordProps, IRecordSetOptions
Syntax (vb)
Public Class SrvRecordProps
Inherits Object
Implements ISrvRecordProps, IRecordSetOptions
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Route53;
using Amazon.CDK;
HostedZone hostedZone;
var srvRecordProps = new SrvRecordProps {
Values = new [] { new SrvRecordValue {
HostName = "hostName",
Port = 123,
Priority = 123,
Weight = 123
} },
Zone = hostedZone,
// the properties below are optional
Comment = "comment",
RecordName = "recordName",
Ttl = Duration.Minutes(30)
};
Synopsis
Constructors
SrvRecordProps() |
Properties
Comment | A comment to add on the record. |
RecordName | The domain name for this record. |
Ttl | The resource record cache time to live (TTL). |
Values | The values. |
Zone | The hosted zone in which to define the new record. |
Constructors
SrvRecordProps()
public SrvRecordProps()
Properties
Comment
A comment to add on the record.
public string Comment { get; set; }
Property Value
System.String
Remarks
Default: no comment
RecordName
The domain name for this record.
public string RecordName { get; set; }
Property Value
System.String
Remarks
Default: zone root
Ttl
The resource record cache time to live (TTL).
public Duration Ttl { get; set; }
Property Value
Remarks
Default: Duration.minutes(30)
Values
Zone
The hosted zone in which to define the new record.
public IHostedZone Zone { get; set; }
Property Value