Class MxRecord
A DNS MX record.
Inherited Members
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class MxRecord : RecordSet, IRecordSet, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class MxRecord Inherits RecordSet Implements IRecordSet, IResource, IConstruct, IDependable, IEnvironmentAware
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;
using Amazon.CDK.AWS.Route53;
CidrRoutingConfig cidrRoutingConfig;
GeoLocation geoLocation;
HealthCheck healthCheck;
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
CidrRoutingConfig = cidrRoutingConfig,
Comment = "comment",
DeleteExisting = false,
GeoLocation = geoLocation,
HealthCheck = healthCheck,
MultiValueAnswer = false,
RecordName = "recordName",
Region = "region",
SetIdentifier = "setIdentifier",
Ttl = Duration.Minutes(30),
Weight = 123
});
Synopsis
Constructors
| MxRecord(Construct, string, IMxRecordProps) | A DNS MX record. |
Properties
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
Constructors
MxRecord(Construct, string, IMxRecordProps)
A DNS MX record.
public MxRecord(Construct scope, string id, IMxRecordProps props)
Parameters
- scope Construct
- id string
- props IMxRecordProps
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;
using Amazon.CDK.AWS.Route53;
CidrRoutingConfig cidrRoutingConfig;
GeoLocation geoLocation;
HealthCheck healthCheck;
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
CidrRoutingConfig = cidrRoutingConfig,
Comment = "comment",
DeleteExisting = false,
GeoLocation = geoLocation,
HealthCheck = healthCheck,
MultiValueAnswer = false,
RecordName = "recordName",
Region = "region",
SetIdentifier = "setIdentifier",
Ttl = Duration.Minutes(30),
Weight = 123
});
Properties
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Resource: AWS::Route53::RecordSet
ExampleMetadata: fixture=_generated
Implements
Constructs.IConstruct
Constructs.IDependable