Class RecordSet
A record set.
Inheritance
RecordSet
Inherited Members
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RecordSet : Resource, IRecordSet, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class RecordSet Inherits Resource Implements IRecordSet, IResource, IConstruct, IDependable, IEnvironmentAware
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;
using Amazon.CDK.AWS.Route53;
CidrRoutingConfig cidrRoutingConfig;
GeoLocation geoLocation;
HealthCheck healthCheck;
HostedZone hostedZone;
RecordTarget recordTarget;
var recordSet = new RecordSet(this, "MyRecordSet", new RecordSetProps {
RecordType = RecordType.A,
Target = recordTarget,
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
| RecordSet(Construct, string, IRecordSetProps) | A record set. |
Properties
| DomainName | The domain name of the record. |
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
Constructors
RecordSet(Construct, string, IRecordSetProps)
A record set.
public RecordSet(Construct scope, string id, IRecordSetProps props)
Parameters
- scope Construct
- id string
- props IRecordSetProps
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;
using Amazon.CDK.AWS.Route53;
CidrRoutingConfig cidrRoutingConfig;
GeoLocation geoLocation;
HealthCheck healthCheck;
HostedZone hostedZone;
RecordTarget recordTarget;
var recordSet = new RecordSet(this, "MyRecordSet", new RecordSetProps {
RecordType = RecordType.A,
Target = recordTarget,
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
DomainName
The domain name of the record.
public virtual string DomainName { get; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
Implements
Constructs.IConstruct
Constructs.IDependable