Class ApplicationLoadBalancerRedirectConfig
Properties for a redirection config.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ApplicationLoadBalancerRedirectConfig : Object, IApplicationLoadBalancerRedirectConfig
Syntax (vb)
Public Class ApplicationLoadBalancerRedirectConfig
Inherits Object
Implements IApplicationLoadBalancerRedirectConfig
Remarks
ExampleMetadata: infused
Examples
ApplicationLoadBalancer lb;
lb.AddRedirect(new ApplicationLoadBalancerRedirectConfig {
SourceProtocol = ApplicationProtocol.HTTPS,
SourcePort = 8443,
TargetProtocol = ApplicationProtocol.HTTP,
TargetPort = 8080
});
Synopsis
Constructors
ApplicationLoadBalancerRedirectConfig() |
Properties
Open | Allow anyone to connect to this listener. |
SourcePort | The port number to listen to. |
SourceProtocol | The protocol of the listener being created. |
TargetPort | The port number to redirect to. |
TargetProtocol | The protocol of the redirection target. |
Constructors
ApplicationLoadBalancerRedirectConfig()
public ApplicationLoadBalancerRedirectConfig()
Properties
Open
Allow anyone to connect to this listener.
public Nullable<bool> Open { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
If this is specified, the listener will be opened up to anyone who can reach it. For internal load balancers this is anyone in the same VPC. For public load balancers, this is anyone on the internet.
If you want to be more selective about who can access this load
balancer, set this to false
and use the listener's connections
object to selectively grant access to the listener.
Default: true
SourcePort
The port number to listen to.
public Nullable<double> SourcePort { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Default: 80
SourceProtocol
The protocol of the listener being created.
public Nullable<ApplicationProtocol> SourceProtocol { get; set; }
Property Value
System.Nullable<ApplicationProtocol>
Remarks
Default: HTTP
TargetPort
The port number to redirect to.
public Nullable<double> TargetPort { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Default: 443
TargetProtocol
The protocol of the redirection target.
public Nullable<ApplicationProtocol> TargetProtocol { get; set; }
Property Value
System.Nullable<ApplicationProtocol>
Remarks
Default: HTTPS