Enum DesyncMitigationMode
java.lang.Object
java.lang.Enum<DesyncMitigationMode>
software.amazon.awscdk.services.elasticloadbalancingv2.DesyncMitigationMode
- All Implemented Interfaces:
Serializable
,Comparable<DesyncMitigationMode>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.92.0 (build db7f27d)",
date="2023-12-06T04:49:38.623Z")
@Stability(Stable)
public enum DesyncMitigationMode
extends Enum<DesyncMitigationMode>
How the load balancer handles requests that might pose a security risk to your application.
Example:
Vpc vpc; ApplicationLoadBalancer lb = ApplicationLoadBalancer.Builder.create(this, "LB") .vpc(vpc) .internetFacing(true) // Whether HTTP/2 is enabled .http2Enabled(false) // The idle timeout value, in seconds .idleTimeout(Duration.seconds(1000)) // Whether HTTP headers with header fields thatare not valid // are removed by the load balancer (true), or routed to targets .dropInvalidHeaderFields(true) // How the load balancer handles requests that might // pose a security risk to your application .desyncMitigationMode(DesyncMitigationMode.DEFENSIVE) .build();
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DesyncMitigationMode
Returns the enum constant of this type with the specified name.static DesyncMitigationMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MONITOR
Allows all traffic. -
DEFENSIVE
Provides durable mitigation against HTTP desync while maintaining the availability of your application. -
STRICTEST
Receives only requests that comply with RFC 7230.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-