# CfnTrafficPolicyInstanceProps

Properties for defining a `CfnTrafficPolicyInstance`.

- Source: Generated code
- Type last changed: v2.272.0 · 30 Sep 2026

## 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 cfnTrafficPolicyInstanceProps: route53.CfnTrafficPolicyInstanceProps = {
  hostedZoneId: 'hostedZoneId',
  name: 'name',
  trafficPolicyId: 'trafficPolicyId',
  trafficPolicyVersion: 123,
  ttl: 123,
};
```

## Properties

- `hostedZoneId`: string (required) — The ID of the hosted zone that Amazon Route 53 creates the resource record sets in.

  The bare ID as Route 53 returns it, without a /hostedzone/ prefix.

- `name`: string (required) — The domain name, or subdomain name, for which Amazon Route 53 answers DNS queries by using the resource record sets it creates for this traffic policy instance.

  Must be lower-case and end with a trailing dot, which is the form Route 53 returns: Route 53 normalizes DNS names, so admitting another form would neither round-trip through Read nor guarantee that a change to this property changes the resource's identity.

- `trafficPolicyId`: string (required) — The ID of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone.

  Lower-case, as Route 53 returns it.

- `trafficPolicyVersion`: number (required) — The version of the traffic policy that Amazon Route 53 uses to create resource record sets in the specified hosted zone.

- `ttl`: number (required) — The TTL that Amazon Route 53 assigns to all of the resource record sets that it creates in the specified hosted zone.

## Used as props by

- [`CfnTrafficPolicyInstance`](/v2/docs/aws-cdk-lib.aws_route53.CfnTrafficPolicyInstance)
