AliasRecordTargetConfig Struct
Represents the properties of an alias target destination.
| Source | aws-route53/lib/alias-record-target.ts |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_route53 as route53 } from 'aws-cdk-lib';
const aliasRecordTargetConfig: route53.AliasRecordTargetConfig = {
dnsName: 'dnsName',
hostedZoneId: 'hostedZoneId',
// the properties below are optional
evaluateTargetHealth: false,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_route53 as route53
alias_record_target_config = route53.AliasRecordTargetConfig(
dns_name="dnsName",
hosted_zone_id="hostedZoneId",
# the properties below are optional
evaluate_target_health=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.route53.*;
AliasRecordTargetConfig aliasRecordTargetConfig = AliasRecordTargetConfig.builder()
.dnsName("dnsName")
.hostedZoneId("hostedZoneId")
// the properties below are optional
.evaluateTargetHealth(false)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Route53;
var aliasRecordTargetConfig = new AliasRecordTargetConfig {
DnsName = "dnsName",
HostedZoneId = "hostedZoneId",
// the properties below are optional
EvaluateTargetHealth = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
aliasRecordTargetConfig := &AliasRecordTargetConfig{
DnsName: jsii.String("dnsName"),
HostedZoneId: jsii.String("hostedZoneId"),
// the properties below are optional
EvaluateTargetHealth: jsii.Boolean(false),
}
Properties
DNS name of the target.
evaluateTargetHealthoptionalbooleanevaluate_target_healthoptionalboolevaluateTargetHealthoptionalBooleanEvaluateTargetHealthoptionalboolEvaluateTargetHealthoptional*bool #Evaluate the target health.
Default: no health check configuration
hostedZoneIdstringhosted_zone_idstrhostedZoneIdStringHostedZoneIdstringHostedZoneId*string required #Hosted zone ID of the target.