Class: AWSCDK::APIGatewayv2Integrations::HttpLambdaIntegration
- Inherits:
-
AWSCDK::APIGatewayv2::HttpRouteIntegration
- Object
- AWSCDK::APIGatewayv2::HttpRouteIntegration
- AWSCDK::APIGatewayv2Integrations::HttpLambdaIntegration
- Defined in:
- api_gatewayv2_integrations/http_lambda_integration.rb
Overview
The Lambda Proxy integration resource for HTTP API.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(_options) ⇒ AWSCDK::APIGatewayv2::HttpRouteIntegrationConfig
Bind this integration to the route.
-
#complete_bind(options) ⇒ void
Complete the binding of the integration to the route.
-
#initialize(id, handler, props = nil) ⇒ HttpLambdaIntegration
constructor
A new instance of HttpLambdaIntegration.
Constructor Details
#initialize(id, handler, props = nil) ⇒ HttpLambdaIntegration
Returns a new instance of HttpLambdaIntegration.
11 12 13 14 15 16 17 |
# File 'api_gatewayv2_integrations/http_lambda_integration.rb', line 11 def initialize(id, handler, props = nil) props = props.is_a?(Hash) ? ::AWSCDK::APIGatewayv2Integrations::HttpLambdaIntegrationProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(handler, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGFtYmRhLklGdW5jdGlvbiJ9")), "handler") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyX2ludGVncmF0aW9ucy5IdHRwTGFtYmRhSW50ZWdyYXRpb25Qcm9wcyJ9")), "props") unless props.nil? Jsii::Object.instance_method(:initialize).bind(self).call(id, handler, props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
19 20 21 22 23 24 |
# File 'api_gatewayv2_integrations/http_lambda_integration.rb', line 19 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, :complete_bind => { kind: :method, name: "completeBind", is_optional: false }, } end |
Instance Method Details
#bind(_options) ⇒ AWSCDK::APIGatewayv2::HttpRouteIntegrationConfig
Bind this integration to the route.
30 31 32 33 34 |
# File 'api_gatewayv2_integrations/http_lambda_integration.rb', line 30 def bind() = .is_a?(Hash) ? ::AWSCDK::APIGatewayv2::HttpRouteIntegrationBindOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyLkh0dHBSb3V0ZUludGVncmF0aW9uQmluZE9wdGlvbnMifQ==")), "_options") jsii_call_method("bind", []) end |
#complete_bind(options) ⇒ void
This method returns an undefined value.
Complete the binding of the integration to the route.
In some cases, there is some additional work to do, such as adding permissions for the API to access the target. This work is necessary whether the integration has just been created for this route or it is an existing one, previously created for other routes. In most cases, however, concrete implementations do not need to override this method.
47 48 49 50 51 |
# File 'api_gatewayv2_integrations/http_lambda_integration.rb', line 47 def complete_bind() = .is_a?(Hash) ? ::AWSCDK::APIGatewayv2::HttpRouteIntegrationBindOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyLkh0dHBSb3V0ZUludGVncmF0aW9uQmluZE9wdGlvbnMifQ==")), "options") jsii_call_method("completeBind", []) end |