Class: AWSCDK::AppMesh::CfnGatewayRoute::QueryParameterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnGatewayRoute::QueryParameterProperty
- Defined in:
- app_mesh/cfn_gateway_route.rb
Overview
An object that represents the query parameter in the request.
Instance Attribute Summary collapse
-
#match ⇒ AWSCDK::IResolvable, ...
readonly
The query parameter to match on.
-
#name ⇒ String
readonly
A name for the query parameter that will be matched on.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, match: nil) ⇒ QueryParameterProperty
constructor
A new instance of QueryParameterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, match: nil) ⇒ QueryParameterProperty
Returns a new instance of QueryParameterProperty.
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
#match ⇒ AWSCDK::IResolvable, ... (readonly)
The query parameter to match on.
1752 1753 1754 |
# File 'app_mesh/cfn_gateway_route.rb', line 1752 def match @match end |
#name ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |