Class: AWSCDK::APIGatewayv2Integrations::WebSocketLambdaIntegrationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGatewayv2Integrations::WebSocketLambdaIntegrationProps
- Defined in:
- api_gatewayv2_integrations/web_socket_lambda_integration_props.rb
Overview
Props for Lambda type integration for a WebSocket Api.
Instance Attribute Summary collapse
-
#content_handling ⇒ AWSCDK::APIGatewayv2::ContentHandling?
readonly
Specifies how to handle response payload content type conversions.
-
#timeout ⇒ AWSCDK::Duration?
readonly
The maximum amount of time an integration will run before it returns without a response.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(content_handling: nil, timeout: nil) ⇒ WebSocketLambdaIntegrationProps
constructor
A new instance of WebSocketLambdaIntegrationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(content_handling: nil, timeout: nil) ⇒ WebSocketLambdaIntegrationProps
Returns a new instance of WebSocketLambdaIntegrationProps.
9 10 11 12 13 14 |
# File 'api_gatewayv2_integrations/web_socket_lambda_integration_props.rb', line 9 def initialize(content_handling: nil, timeout: nil) @content_handling = content_handling Jsii::Type.check_type(@content_handling, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyLkNvbnRlbnRIYW5kbGluZyJ9")), "contentHandling") unless @content_handling.nil? @timeout = timeout Jsii::Type.check_type(@timeout, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "timeout") unless @timeout.nil? end |
Instance Attribute Details
#content_handling ⇒ AWSCDK::APIGatewayv2::ContentHandling? (readonly)
Note:
Default: - The response payload will be passed through from the integration response to the route response or method response without modification.
Specifies how to handle response payload content type conversions.
20 21 22 |
# File 'api_gatewayv2_integrations/web_socket_lambda_integration_props.rb', line 20 def content_handling @content_handling end |
#timeout ⇒ AWSCDK::Duration? (readonly)
Note:
Default: Duration.seconds(29)
The maximum amount of time an integration will run before it returns without a response.
Must be between 50 milliseconds and 29 seconds.
27 28 29 |
# File 'api_gatewayv2_integrations/web_socket_lambda_integration_props.rb', line 27 def timeout @timeout end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'api_gatewayv2_integrations/web_socket_lambda_integration_props.rb', line 29 def self.jsii_properties { :content_handling => "contentHandling", :timeout => "timeout", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'api_gatewayv2_integrations/web_socket_lambda_integration_props.rb', line 36 def to_jsii result = {} result.merge!({ "contentHandling" => @content_handling, "timeout" => @timeout, }) result.compact end |