Class: AWSCDK::APIGatewayv2Integrations::HttpServiceDiscoveryIntegration
- Inherits:
-
AWSCDK::APIGatewayv2::HttpRouteIntegration
- Object
- AWSCDK::APIGatewayv2::HttpRouteIntegration
- AWSCDK::APIGatewayv2Integrations::HttpServiceDiscoveryIntegration
- Defined in:
- api_gatewayv2_integrations/http_service_discovery_integration.rb
Overview
The Service Discovery 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.
- #connection_type ⇒ AWSCDK::APIGatewayv2::HttpConnectionType
- #connection_type=(value) ⇒ Object
- #http_method ⇒ AWSCDK::APIGatewayv2::HttpMethod
- #http_method=(value) ⇒ Object
-
#initialize(id, service, props = nil) ⇒ HttpServiceDiscoveryIntegration
constructor
A new instance of HttpServiceDiscoveryIntegration.
- #integration_type ⇒ AWSCDK::APIGatewayv2::HttpIntegrationType
- #integration_type=(value) ⇒ Object
- #payload_format_version ⇒ AWSCDK::APIGatewayv2::PayloadFormatVersion
- #payload_format_version=(value) ⇒ Object
Constructor Details
#initialize(id, service, props = nil) ⇒ HttpServiceDiscoveryIntegration
Returns a new instance of HttpServiceDiscoveryIntegration.
11 12 13 14 15 16 17 |
# File 'api_gatewayv2_integrations/http_service_discovery_integration.rb', line 11 def initialize(id, service, props = nil) props = props.is_a?(Hash) ? ::AWSCDK::APIGatewayv2Integrations::HttpServiceDiscoveryIntegrationProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(service, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19zZXJ2aWNlZGlzY292ZXJ5LklTZXJ2aWNlUmVmIn0=")), "service") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyX2ludGVncmF0aW9ucy5IdHRwU2VydmljZURpc2NvdmVyeUludGVncmF0aW9uUHJvcHMifQ==")), "props") unless props.nil? Jsii::Object.instance_method(:initialize).bind(self).call(id, service, props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'api_gatewayv2_integrations/http_service_discovery_integration.rb', line 19 def self.jsii_overridable_methods { :connection_type => { kind: :property, name: "connectionType", is_optional: false }, :http_method => { kind: :property, name: "httpMethod", is_optional: false }, :integration_type => { kind: :property, name: "integrationType", is_optional: false }, :payload_format_version => { kind: :property, name: "payloadFormatVersion", is_optional: false }, :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.
74 75 76 77 78 |
# File 'api_gatewayv2_integrations/http_service_discovery_integration.rb', line 74 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.
91 92 93 94 95 |
# File 'api_gatewayv2_integrations/http_service_discovery_integration.rb', line 91 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 |
#connection_type ⇒ AWSCDK::APIGatewayv2::HttpConnectionType
31 32 33 |
# File 'api_gatewayv2_integrations/http_service_discovery_integration.rb', line 31 def connection_type() jsii_get_property("connectionType") end |
#connection_type=(value) ⇒ Object
35 36 37 38 |
# File 'api_gatewayv2_integrations/http_service_discovery_integration.rb', line 35 def connection_type=(value) Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyLkh0dHBDb25uZWN0aW9uVHlwZSJ9")), "connectionType") jsii_set_property("connectionType", value) end |
#http_method ⇒ AWSCDK::APIGatewayv2::HttpMethod
41 42 43 |
# File 'api_gatewayv2_integrations/http_service_discovery_integration.rb', line 41 def http_method() jsii_get_property("httpMethod") end |
#http_method=(value) ⇒ Object
45 46 47 48 |
# File 'api_gatewayv2_integrations/http_service_discovery_integration.rb', line 45 def http_method=(value) Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyLkh0dHBNZXRob2QifQ==")), "httpMethod") jsii_set_property("httpMethod", value) end |
#integration_type ⇒ AWSCDK::APIGatewayv2::HttpIntegrationType
51 52 53 |
# File 'api_gatewayv2_integrations/http_service_discovery_integration.rb', line 51 def integration_type() jsii_get_property("integrationType") end |
#integration_type=(value) ⇒ Object
55 56 57 58 |
# File 'api_gatewayv2_integrations/http_service_discovery_integration.rb', line 55 def integration_type=(value) Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyLkh0dHBJbnRlZ3JhdGlvblR5cGUifQ==")), "integrationType") jsii_set_property("integrationType", value) end |
#payload_format_version ⇒ AWSCDK::APIGatewayv2::PayloadFormatVersion
61 62 63 |
# File 'api_gatewayv2_integrations/http_service_discovery_integration.rb', line 61 def payload_format_version() jsii_get_property("payloadFormatVersion") end |
#payload_format_version=(value) ⇒ Object
65 66 67 68 |
# File 'api_gatewayv2_integrations/http_service_discovery_integration.rb', line 65 def payload_format_version=(value) Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyLlBheWxvYWRGb3JtYXRWZXJzaW9uIn0=")), "payloadFormatVersion") jsii_set_property("payloadFormatVersion", value) end |