Class: AWSCDK::AppMesh::CfnGatewayRoute::QueryParameterProperty

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

Overview

An object that represents the query parameter in the request.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, match: nil) ⇒ QueryParameterProperty

Returns a new instance of QueryParameterProperty.

Parameters:



1736
1737
1738
1739
1740
1741
# File 'app_mesh/cfn_gateway_route.rb', line 1736

def initialize(name:, match: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @match = match.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnGatewayRoute::HttpQueryParameterMatchProperty.new(**match.transform_keys(&:to_sym)) : match
  Jsii::Type.check_type(@match, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmbkdhdGV3YXlSb3V0ZS5IdHRwUXVlcnlQYXJhbWV0ZXJNYXRjaFByb3BlcnR5In1dfX0=")), "match") unless @match.nil?
end

Instance Attribute Details

#matchAWSCDK::IResolvable, ... (readonly)

The query parameter to match on.



1752
1753
1754
# File 'app_mesh/cfn_gateway_route.rb', line 1752

def match
  @match
end

#nameString (readonly)

A name for the query parameter that will be matched on.



1747
1748
1749
# File 'app_mesh/cfn_gateway_route.rb', line 1747

def name
  @name
end

Class Method Details

.jsii_propertiesObject



1754
1755
1756
1757
1758
1759
# File 'app_mesh/cfn_gateway_route.rb', line 1754

def self.jsii_properties
  {
    :name => "name",
    :match => "match",
  }
end

Instance Method Details

#to_jsiiObject



1761
1762
1763
1764
1765
1766
1767
1768
# File 'app_mesh/cfn_gateway_route.rb', line 1761

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "match" => @match,
  })
  result.compact
end