A base redirect construct that takes source and destination ports and protocols.
Common use cases can be built from this construct
import { Redirect } from '@renovosolutions/cdk-library-elbv2-redirect'
new Redirect(scope: Construct, id: string, props: RedirectProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
RedirectProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: RedirectProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { Redirect } from '@renovosolutions/cdk-library-elbv2-redirect'
Redirect.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
A construct that redirects HTTP to HTTPS for the given application load balancer.
import { RedirectHttpHttps } from '@renovosolutions/cdk-library-elbv2-redirect'
new RedirectHttpHttps(scope: Construct, id: string, props: RedirectHttpHttpsProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
RedirectHttpHttpsProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: RedirectHttpHttpsProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { RedirectHttpHttps } from '@renovosolutions/cdk-library-elbv2-redirect'
RedirectHttpHttps.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
Properties for the RedirectHttpHttps construct.
import { RedirectHttpHttpsProps } from '@renovosolutions/cdk-library-elbv2-redirect'
const redirectHttpHttpsProps: RedirectHttpHttpsProps = { ... }
Name | Type | Description |
---|---|---|
alb |
aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationLoadBalancer |
The application load balancer this redirect applies to. |
public readonly alb: ApplicationLoadBalancer;
- Type: aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationLoadBalancer
The application load balancer this redirect applies to.
The properties for the base redirect construct.
import { RedirectProps } from '@renovosolutions/cdk-library-elbv2-redirect'
const redirectProps: RedirectProps = { ... }
Name | Type | Description |
---|---|---|
alb |
aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationLoadBalancer |
The application load balancer this redirect applies to. |
sourcePort |
number |
The source port to redirect from. |
sourceProtocol |
aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationProtocol |
The source protocol to redirect from. |
targetPort |
number |
The target port to redirect to. |
targetProtocol |
aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationProtocol |
The target protocol to redirect to. |
public readonly alb: ApplicationLoadBalancer;
- Type: aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationLoadBalancer
The application load balancer this redirect applies to.
public readonly sourcePort: number;
- Type: number
The source port to redirect from.
public readonly sourceProtocol: ApplicationProtocol;
- Type: aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationProtocol
The source protocol to redirect from.
public readonly targetPort: number;
- Type: number
The target port to redirect to.
public readonly targetProtocol: ApplicationProtocol;
- Type: aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationProtocol
The target protocol to redirect to.