Represents the properties required to configure URL rewriting for CloudFront.

Hierarchy

  • CloudFrontUrlRewriteProps

Properties

behaviorPath?: string

Optional path for the behavior.

Default

- '/*'
distribution: Distribution

CloudFront distribution to which the URL rewrite will be applied.

fromHostname: string

The hostname to rewrite from.

functionProps?: Partial<CloudFrontRewriteFunctionProps>

Optional props for the function.

origin?: IOrigin

Optional origin to use for the behavior.

Default

- {@link cloudfront.IOrigin} with {@link fromHostname}
redirectUriPattern: string

The redirect URI match pattern used for substitution.

targetUriPattern: string

Target URI pattern for substitution.

toHostname: string

The hostname to rewrite to.

Generated using TypeDoc