Class: AWSCDK::AppMesh::GatewayRouteHostnameMatch

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

Overview

Used to generate host name matching methods.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGatewayRouteHostnameMatch

Returns a new instance of GatewayRouteHostnameMatch.



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

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

Class Method Details

.ends_with(suffix) ⇒ AWSCDK::AppMesh::GatewayRouteHostnameMatch

The value of the host name with the given name must end with the specified characters.

Parameters:

  • suffix (String)

    The specified ending characters of the host name to match on.

Returns:

  • (AWSCDK::AppMesh::GatewayRouteHostnameMatch)


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

def self.ends_with(suffix)
  Jsii::Type.check_type(suffix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "suffix")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.GatewayRouteHostnameMatch", "endsWith", [suffix])
end

.exactly(name) ⇒ AWSCDK::AppMesh::GatewayRouteHostnameMatch

The value of the host name must match the specified value exactly.

Parameters:

  • name (String)

    The exact host name to match on.

Returns:

  • (AWSCDK::AppMesh::GatewayRouteHostnameMatch)


31
32
33
34
# File 'app_mesh/gateway_route_hostname_match.rb', line 31

def self.exactly(name)
  Jsii::Type.check_type(name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.GatewayRouteHostnameMatch", "exactly", [name])
end

.jsii_overridable_methodsObject



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

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

Instance Method Details

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

Returns the gateway route host name match configuration.

Parameters:

  • scope (Constructs::Construct)

Returns:



40
41
42
43
# File 'app_mesh/gateway_route_hostname_match.rb', line 40

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