Class MxRecord
A DNS MX record.
Inherited Members
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.AWS.Route53.dll
Syntax (csharp)
public class MxRecord : RecordSet, IRecordSet, IResource, IConstruct, IDependable
Syntax (vb)
Public Class MxRecord
Inherits RecordSet
Implements IRecordSet, IResource, IConstruct, IDependable
Remarks
Resource: AWS::Route53::RecordSet
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 mxRecord = new MxRecord(this, "MyMxRecord", 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
MxRecord(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
MxRecord(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
MxRecord(Construct, String, IMxRecordProps) |
Constructors
MxRecord(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected MxRecord(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
MxRecord(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected MxRecord(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
MxRecord(Construct, String, IMxRecordProps)
public MxRecord(Construct scope, string id, IMxRecordProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IMxRecordProps
Implements
Constructs.IConstruct