Class: AWSCDK::APIGatewayv2Integrations::HttpURLIntegration
- Inherits:
-
AWSCDK::APIGatewayv2::HttpRouteIntegration
- Object
- AWSCDK::APIGatewayv2::HttpRouteIntegration
- AWSCDK::APIGatewayv2Integrations::HttpURLIntegration
- Defined in:
- api_gatewayv2_integrations/http_url_integration.rb
Overview
The HTTP 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, url, props = nil) ⇒ HttpURLIntegration
constructor
A new instance of HttpURLIntegration.
Constructor Details
#initialize(id, url, props = nil) ⇒ HttpURLIntegration
Returns a new instance of HttpURLIntegration.
11 12 13 14 15 16 17 |
# File 'api_gatewayv2_integrations/http_url_integration.rb', line 11 def initialize(id, url, props = nil) props = props.is_a?(Hash) ? ::AWSCDK::APIGatewayv2Integrations::HttpURLIntegrationProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "url") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyX2ludGVncmF0aW9ucy5IdHRwVXJsSW50ZWdyYXRpb25Qcm9wcyJ9")), "props") unless props.nil? Jsii::Object.instance_method(:initialize).bind(self).call(id, url, props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
19 20 21 22 23 24 |
# File 'api_gatewayv2_integrations/http_url_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_url_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_url_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 |