Class: AWSCDK::AppMesh::CfnRoute::QueryParameterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnRoute::QueryParameterProperty
- Defined in:
- app_mesh/cfn_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.
1674 1675 1676 1677 1678 1679 |
# File 'app_mesh/cfn_route.rb', line 1674 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::CfnRoute::HttpQueryParameterMatchProperty.new(**match.transform_keys(&:to_sym)) : match Jsii::Type.check_type(@match, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblJvdXRlLkh0dHBRdWVyeVBhcmFtZXRlck1hdGNoUHJvcGVydHkifV19fQ==")), "match") unless @match.nil? end |
Instance Attribute Details
#match ⇒ AWSCDK::IResolvable, ... (readonly)
The query parameter to match on.
1690 1691 1692 |
# File 'app_mesh/cfn_route.rb', line 1690 def match @match end |
#name ⇒ String (readonly)
A name for the query parameter that will be matched on.
1685 1686 1687 |
# File 'app_mesh/cfn_route.rb', line 1685 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
1692 1693 1694 1695 1696 1697 |
# File 'app_mesh/cfn_route.rb', line 1692 def self.jsii_properties { :name => "name", :match => "match", } end |
Instance Method Details
#to_jsii ⇒ Object
1699 1700 1701 1702 1703 1704 1705 1706 |
# File 'app_mesh/cfn_route.rb', line 1699 def to_jsii result = {} result.merge!({ "name" => @name, "match" => @match, }) result.compact end |