Interface IApplicationLoadBalancerRedirectConfig
Properties for a redirection config.
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public interface IApplicationLoadBalancerRedirectConfig
Syntax (vb)
Public Interface IApplicationLoadBalancerRedirectConfig
Remarks
ExampleMetadata: infused
Examples
ApplicationLoadBalancer lb;
lb.AddRedirect(new ApplicationLoadBalancerRedirectConfig {
SourceProtocol = ApplicationProtocol.HTTPS,
SourcePort = 8443,
TargetProtocol = ApplicationProtocol.HTTP,
TargetPort = 8080
});
Synopsis
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. |
Properties
Open
Allow anyone to connect to this listener.
virtual Nullable<bool> Open { get; }
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.
virtual Nullable<double> SourcePort { get; }
Property Value
System.Nullable<System.Double>
Remarks
Default: 80
SourceProtocol
The protocol of the listener being created.
virtual Nullable<ApplicationProtocol> SourceProtocol { get; }
Property Value
System.Nullable<ApplicationProtocol>
Remarks
Default: HTTP
TargetPort
The port number to redirect to.
virtual Nullable<double> TargetPort { get; }
Property Value
System.Nullable<System.Double>
Remarks
Default: 443
TargetProtocol
The protocol of the redirection target.
virtual Nullable<ApplicationProtocol> TargetProtocol { get; }
Property Value
System.Nullable<ApplicationProtocol>
Remarks
Default: HTTPS