# HttpsRedirectProps

Properties to configure an HTTPS Redirect.

Extends: HttpsRedirectProps
Used as props by: HttpsRedirect

- Source: [`aws-route53-patterns/lib/website-redirect.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-route53-patterns/lib/website-redirect.ts#L21)
- Type last changed: v2.235.0 · 15 Jan 2026

## Example

```ts
new patterns.HttpsRedirect(this, 'Redirect', {
  recordNames: ['foo.example.com'],
  targetDomain: 'bar.example.com',
  zone: route53.HostedZone.fromHostedZoneAttributes(this, 'HostedZone', {
    hostedZoneId: 'ID',
    zoneName: 'example.com',
  }),
});
```

## Properties

- `certificate`: [ICertificateRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_certificatemanager.ICertificateRef.html) — The AWS Certificate Manager (ACM) certificate that will be associated with the CloudFront distribution that will be created.

  **Default:** A new certificate is created in us-east-1 (N. Virginia)

  If provided, the certificate must be
  stored in us-east-1 (N. Virginia)

- `recordNames`: string[] — The domain names that will redirect to `targetDomain`.

  **Default:** the domain name of the hosted zone

- `targetDomain`: string (required) — The redirect target fully qualified domain name (FQDN).

  An alias record
  will be created that points to your CloudFront distribution. Root domain
  or sub-domain can be supplied.

- `zone`: [IHostedZone](/cdk/api/v2/docs/aws-cdk-lib.aws_route53.IHostedZone.html) (required) — Hosted zone of the domain which will be used to create alias record(s) from domain names in the hosted zone to the target domain.

  The hosted zone must
  contain entries for the domain name(s) supplied through `recordNames` that
  will redirect to the target domain.

  Domain names in the hosted zone can include a specific domain (example.com)
  and its subdomains (acme.example.com, zenith.example.com).
