Class MxRecordProps
Construction properties for a MxRecord.
Inheritance
System.Object
MxRecordProps
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.AWS.Route53.dll
Syntax (csharp)
public class MxRecordProps : Object, IMxRecordProps, IRecordSetOptions
Syntax (vb)
Public Class MxRecordProps
Inherits Object
Implements IMxRecordProps, 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 mxRecordProps = new MxRecordProps {
Values = new [] { new MxRecordValue {
HostName = "hostName",
Priority = 123
} },
Zone = hostedZone,
// the properties below are optional
Comment = "comment",
RecordName = "recordName",
Ttl = Duration.Minutes(30)
};
Synopsis
Constructors
MxRecordProps() |
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
MxRecordProps()
public MxRecordProps()
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