Class SrvRecord
A DNS SRV record.
Inherited Members
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SrvRecord : RecordSet, IRecordSet, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class SrvRecord 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 srvRecord = new SrvRecord(this, "MySrvRecord", new SrvRecordProps {
Values = new [] { new SrvRecordValue {
HostName = "hostName",
Port = 123,
Priority = 123,
Weight = 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
| SrvRecord(Construct, string, ISrvRecordProps) | A DNS SRV record. |
Properties
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
Constructors
SrvRecord(Construct, string, ISrvRecordProps)
A DNS SRV record.
public SrvRecord(Construct scope, string id, ISrvRecordProps props)
Parameters
- scope Construct
- id string
- props ISrvRecordProps
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 srvRecord = new SrvRecord(this, "MySrvRecord", new SrvRecordProps {
Values = new [] { new SrvRecordValue {
HostName = "hostName",
Port = 123,
Priority = 123,
Weight = 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