Class: AWSCDK::AppMesh::CfnRoute::GrpcRouteMetadataProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnRoute::GrpcRouteMetadataProperty
- Defined in:
- app_mesh/cfn_route.rb
Overview
An object that represents the match metadata for the route.
Instance Attribute Summary collapse
-
#invert ⇒ Boolean, ...
readonly
Specify
Trueto match anything except the match criteria. -
#match ⇒ AWSCDK::IResolvable, ...
readonly
An object that represents the data to match from the request.
-
#name ⇒ String
readonly
The name of the route.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, invert: nil, match: nil) ⇒ GrpcRouteMetadataProperty
constructor
A new instance of GrpcRouteMetadataProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, invert: nil, match: nil) ⇒ GrpcRouteMetadataProperty
Returns a new instance of GrpcRouteMetadataProperty.
945 946 947 948 949 950 951 952 |
# File 'app_mesh/cfn_route.rb', line 945 def initialize(name:, invert: nil, match: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @invert = invert Jsii::Type.check_type(@invert, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "invert") unless @invert.nil? @match = match.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnRoute::GrpcRouteMetadataMatchMethodProperty.new(**match.transform_keys(&:to_sym)) : match Jsii::Type.check_type(@match, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblJvdXRlLkdycGNSb3V0ZU1ldGFkYXRhTWF0Y2hNZXRob2RQcm9wZXJ0eSJ9XX19")), "match") unless @match.nil? end |
Instance Attribute Details
#invert ⇒ Boolean, ... (readonly)
Specify True to match anything except the match criteria.
The default value is False .
965 966 967 |
# File 'app_mesh/cfn_route.rb', line 965 def invert @invert end |
#match ⇒ AWSCDK::IResolvable, ... (readonly)
An object that represents the data to match from the request.
970 971 972 |
# File 'app_mesh/cfn_route.rb', line 970 def match @match end |
#name ⇒ String (readonly)
The name of the route.
958 959 960 |
# File 'app_mesh/cfn_route.rb', line 958 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
972 973 974 975 976 977 978 |
# File 'app_mesh/cfn_route.rb', line 972 def self.jsii_properties { :name => "name", :invert => "invert", :match => "match", } end |
Instance Method Details
#to_jsii ⇒ Object
980 981 982 983 984 985 986 987 988 |
# File 'app_mesh/cfn_route.rb', line 980 def to_jsii result = {} result.merge!({ "name" => @name, "invert" => @invert, "match" => @match, }) result.compact end |