# AliasRecordTargetConfig

Represents the properties of an alias target destination.

Returned by: [IAliasRecordTarget.bind](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53.IAliasRecordTarget.html#bind)

- Source: [`aws-route53/lib/alias-record-target.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-route53/lib/alias-record-target.ts#L18)
- Type last changed: v2.173.0 · 12 Dec 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `dnsName`: string (required) — DNS name of the target.

- `evaluateTargetHealth`: boolean — Evaluate the target health.

  **Default:** no health check configuration

- `hostedZoneId`: string (required) — Hosted zone ID of the target.
