Class: AWSCDK::AppMesh::QueryParameterMatch

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

Overview

Used to generate query parameter matching methods.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeQueryParameterMatch

Returns a new instance of QueryParameterMatch.



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

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

Class Method Details

.jsii_overridable_methodsObject



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

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

.value_is(query_parameter_name, query_parameter_value) ⇒ AWSCDK::AppMesh::QueryParameterMatch

The value of the query parameter with the given name in the request must match the specified value exactly.

Parameters:

  • query_parameter_name (String)

    the name of the query parameter to match against.

  • query_parameter_value (String)

    The exact value to test against.

Returns:

  • (AWSCDK::AppMesh::QueryParameterMatch)


23
24
25
26
27
# File 'app_mesh/query_parameter_match.rb', line 23

def self.value_is(query_parameter_name, query_parameter_value)
  Jsii::Type.check_type(query_parameter_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "queryParameterName")
  Jsii::Type.check_type(query_parameter_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "queryParameterValue")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.QueryParameterMatch", "valueIs", [query_parameter_name, query_parameter_value])
end

Instance Method Details

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

Returns the query parameter match configuration.

Parameters:

  • scope (Constructs::Construct)

Returns:



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

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