Class: AWSCDK::APIGatewayv2Integrations::HttpServiceDiscoveryIntegration

Inherits:
AWSCDK::APIGatewayv2::HttpRouteIntegration
  • Object
show all
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

Constructor Details

#initialize(id, service, props = nil) ⇒ HttpServiceDiscoveryIntegration

Returns a new instance of HttpServiceDiscoveryIntegration.

Parameters:



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_methodsObject



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(options)
  options = options.is_a?(Hash) ? ::AWSCDK::APIGatewayv2::HttpRouteIntegrationBindOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyLkh0dHBSb3V0ZUludGVncmF0aW9uQmluZE9wdGlvbnMifQ==")), "options")
  jsii_call_method("bind", [options])
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(_options)
  _options = _options.is_a?(Hash) ? ::AWSCDK::APIGatewayv2::HttpRouteIntegrationBindOptions.new(**_options.transform_keys(&:to_sym)) : _options
  Jsii::Type.check_type(_options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheXYyLkh0dHBSb3V0ZUludGVncmF0aW9uQmluZE9wdGlvbnMifQ==")), "_options")
  jsii_call_method("completeBind", [_options])
end

#connection_typeAWSCDK::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_methodAWSCDK::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_typeAWSCDK::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_versionAWSCDK::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