Class: AWSCDK::APIGatewayv2Integrations::HttpEventBridgeIntegration
- Inherits:
-
AWSCDK::APIGatewayv2::HttpRouteIntegration
- Object
- AWSCDK::APIGatewayv2::HttpRouteIntegration
- AWSCDK::APIGatewayv2Integrations::HttpEventBridgeIntegration
- Defined in:
- api_gatewayv2_integrations/http_event_bridge_integration.rb
Overview
The EventBridge PutEvents 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, props) ⇒ HttpEventBridgeIntegration
constructor
A new instance of HttpEventBridgeIntegration.
Constructor Details
#initialize(id, props) ⇒ HttpEventBridgeIntegration
Returns a new instance of HttpEventBridgeIntegration.
10 11 12 13 14 15 |
# File 'api_gatewayv2_integrations/http_event_bridge_integration.rb', line 10 def initialize(id, props) props = props.is_a?(Hash) ? ::AWSCDK::APIGatewayv2Integrations::HttpEventBridgeIntegrationProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyX2ludGVncmF0aW9ucy5IdHRwRXZlbnRCcmlkZ2VJbnRlZ3JhdGlvblByb3BzIn0=")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(id, props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
17 18 19 20 21 22 |
# File 'api_gatewayv2_integrations/http_event_bridge_integration.rb', line 17 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.
28 29 30 31 32 |
# File 'api_gatewayv2_integrations/http_event_bridge_integration.rb', line 28 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.
45 46 47 48 49 |
# File 'api_gatewayv2_integrations/http_event_bridge_integration.rb', line 45 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 |