Enum Class PassthroughBehavior
java.lang.Object
java.lang.Enum<PassthroughBehavior>
software.amazon.awscdk.services.apigatewayv2.PassthroughBehavior
- All Implemented Interfaces:
Serializable
,Comparable<PassthroughBehavior>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)",
date="2024-04-10T22:22:23.235Z")
@Stability(Stable)
public enum PassthroughBehavior
extends Enum<PassthroughBehavior>
Integration Passthrough Behavior.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRejects unmapped content types with an HTTP 415 'Unsupported Media Type' response.Passes the request body for unmapped content types through to the integration back end without transformation.Allows pass-through when the integration has NO content types mapped to templates. -
Method Summary
Modifier and TypeMethodDescriptionstatic PassthroughBehavior
Returns the enum constant of this class with the specified name.static PassthroughBehavior[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WHEN_NO_MATCH
Passes the request body for unmapped content types through to the integration back end without transformation. -
NEVER
Rejects unmapped content types with an HTTP 415 'Unsupported Media Type' response. -
WHEN_NO_TEMPLATES
Allows pass-through when the integration has NO content types mapped to templates.However if there is at least one content type defined, unmapped content types will be rejected with the same 415 response.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-