Class: AWSCDK::AppMesh::VirtualGatewayListener

Inherits:
Jsii::Object
  • Object
show all
Defined in:
app_mesh/virtual_gateway_listener.rb

Overview

Represents the properties needed to define listeners for a VirtualGateway.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeVirtualGatewayListener

Returns a new instance of VirtualGatewayListener.



8
9
10
# File 'app_mesh/virtual_gateway_listener.rb', line 8

def initialize
  Jsii::Object.instance_method(:initialize).bind(self).call
end

Class Method Details

.grpc(options = nil) ⇒ AWSCDK::AppMesh::VirtualGatewayListener

Returns a GRPC Listener for a VirtualGateway.

Parameters:

Returns:

  • (AWSCDK::AppMesh::VirtualGatewayListener)


22
23
24
25
26
# File 'app_mesh/virtual_gateway_listener.rb', line 22

def self.grpc(options = nil)
  options = options.is_a?(Hash) ? ::AWSCDK::AppMesh::GrpcGatewayListenerOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5HcnBjR2F0ZXdheUxpc3RlbmVyT3B0aW9ucyJ9")), "options") unless options.nil?
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.VirtualGatewayListener", "grpc", [options])
end

.http(options = nil) ⇒ AWSCDK::AppMesh::VirtualGatewayListener

Returns an HTTP Listener for a VirtualGateway.

Parameters:

Returns:

  • (AWSCDK::AppMesh::VirtualGatewayListener)


32
33
34
35
36
# File 'app_mesh/virtual_gateway_listener.rb', line 32

def self.http(options = nil)
  options = options.is_a?(Hash) ? ::AWSCDK::AppMesh::HttpGatewayListenerOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5IdHRwR2F0ZXdheUxpc3RlbmVyT3B0aW9ucyJ9")), "options") unless options.nil?
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.VirtualGatewayListener", "http", [options])
end

.http2(options = nil) ⇒ AWSCDK::AppMesh::VirtualGatewayListener

Returns an HTTP2 Listener for a VirtualGateway.

Parameters:

Returns:

  • (AWSCDK::AppMesh::VirtualGatewayListener)


42
43
44
45
46
# File 'app_mesh/virtual_gateway_listener.rb', line 42

def self.http2(options = nil)
  options = options.is_a?(Hash) ? ::AWSCDK::AppMesh::Http2GatewayListenerOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5IdHRwMkdhdGV3YXlMaXN0ZW5lck9wdGlvbnMifQ==")), "options") unless options.nil?
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.VirtualGatewayListener", "http2", [options])
end

.jsii_overridable_methodsObject



12
13
14
15
16
# File 'app_mesh/virtual_gateway_listener.rb', line 12

def self.jsii_overridable_methods
  {
    :bind => { kind: :method, name: "bind", is_optional: false },
  }
end

Instance Method Details

#bind(scope) ⇒ AWSCDK::AppMesh::VirtualGatewayListenerConfig

Called when the GatewayListener type is initialized.

Can be used to enforce mutual exclusivity

Parameters:

  • scope (Constructs::Construct)

Returns:



55
56
57
58
# File 'app_mesh/virtual_gateway_listener.rb', line 55

def bind(scope)
  Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope")
  jsii_call_method("bind", [scope])
end