Interface WebSocketIntegrationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
WebSocketIntegrationProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.94.0 (build b380f01)",
date="2024-03-01T20:58:18.530Z")
@Stability(Stable)
public interface WebSocketIntegrationProps
extends software.amazon.jsii.JsiiSerializable
The integration properties.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.apigatewayv2.*; import software.amazon.awscdk.services.iam.*; Role role; WebSocketApi webSocketApi; WebSocketIntegrationProps webSocketIntegrationProps = WebSocketIntegrationProps.builder() .integrationType(WebSocketIntegrationType.AWS_PROXY) .integrationUri("integrationUri") .webSocketApi(webSocketApi) // the properties below are optional .credentialsRole(role) .integrationMethod("integrationMethod") .passthroughBehavior(PassthroughBehavior.WHEN_NO_MATCH) .requestParameters(Map.of( "requestParametersKey", "requestParameters")) .requestTemplates(Map.of( "requestTemplatesKey", "requestTemplates")) .templateSelectionExpression("templateSelectionExpression") .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forWebSocketIntegrationProps
static final class
An implementation forWebSocketIntegrationProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default IRole
Specifies the IAM role required for the integration.default String
Specifies the integration's HTTP method type.Integration type.Integration URI.default PassthroughBehavior
Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the requestTemplates property on the Integration resource.The request parameters that API Gateway sends with the backend request.A map of Apache Velocity templates that are applied on the request payload.default String
The template selection expression for the integration.The WebSocket API to which this integration should be bound.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getIntegrationType
Integration type. -
getIntegrationUri
Integration URI. -
getWebSocketApi
The WebSocket API to which this integration should be bound. -
getCredentialsRole
Specifies the IAM role required for the integration.Default: - No IAM role required.
-
getIntegrationMethod
Specifies the integration's HTTP method type.Default: - No HTTP method required.
-
getPassthroughBehavior
Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the requestTemplates property on the Integration resource.There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER.
Default: - No passthrough behavior required.
-
getRequestParameters
The request parameters that API Gateway sends with the backend request.Specify request parameters as key-value pairs (string-to-string mappings), with a destination as the key and a source as the value.
Default: - No request parameters required.
-
getRequestTemplates
A map of Apache Velocity templates that are applied on the request payload.{ "application/json": "{ \"statusCode\": 200 }" }
Default: - No request templates required.
-
getTemplateSelectionExpression
The template selection expression for the integration.Default: - No template selection expression required.
-
builder
- Returns:
- a
WebSocketIntegrationProps.Builder
ofWebSocketIntegrationProps
-