Class: AWSCDK::APIGatewayv2Integrations::WebSocketLambdaIntegrationProps

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content_handling: nil, timeout: nil) ⇒ WebSocketLambdaIntegrationProps

Returns a new instance of WebSocketLambdaIntegrationProps.

Parameters:

  • content_handling (AWSCDK::APIGatewayv2::ContentHandling, nil) (defaults to: nil)

    Specifies how to handle response payload content type conversions.

  • timeout (AWSCDK::Duration, nil) (defaults to: nil)

    The maximum amount of time an integration will run before it returns without a response.



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_handlingAWSCDK::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

#timeoutAWSCDK::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.

Returns:



27
28
29
# File 'api_gatewayv2_integrations/web_socket_lambda_integration_props.rb', line 27

def timeout
  @timeout
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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