Class: AWSCDK::AppMesh::CfnGatewayRoute::GrpcGatewayRouteMetadataProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnGatewayRoute::GrpcGatewayRouteMetadataProperty
- Defined in:
- app_mesh/cfn_gateway_route.rb
Overview
An object representing the metadata of the gateway route.
Instance Attribute Summary collapse
-
#invert ⇒ Boolean, ...
readonly
Specify
Trueto match anything except the match criteria. -
#match ⇒ AWSCDK::IResolvable, ...
readonly
The criteria for determining a metadata match.
-
#name ⇒ String
readonly
A name for the gateway route metadata.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, invert: nil, match: nil) ⇒ GrpcGatewayRouteMetadataProperty
constructor
A new instance of GrpcGatewayRouteMetadataProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, invert: nil, match: nil) ⇒ GrpcGatewayRouteMetadataProperty
Returns a new instance of GrpcGatewayRouteMetadataProperty.
1088 1089 1090 1091 1092 1093 1094 1095 |
# File 'app_mesh/cfn_gateway_route.rb', line 1088 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::CfnGatewayRoute::GatewayRouteMetadataMatchProperty.new(**match.transform_keys(&:to_sym)) : match Jsii::Type.check_type(@match, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmbkdhdGV3YXlSb3V0ZS5HYXRld2F5Um91dGVNZXRhZGF0YU1hdGNoUHJvcGVydHkifV19fQ==")), "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 .
1108 1109 1110 |
# File 'app_mesh/cfn_gateway_route.rb', line 1108 def invert @invert end |
#match ⇒ AWSCDK::IResolvable, ... (readonly)
The criteria for determining a metadata match.
1113 1114 1115 |
# File 'app_mesh/cfn_gateway_route.rb', line 1113 def match @match end |
#name ⇒ String (readonly)
A name for the gateway route metadata.
1101 1102 1103 |
# File 'app_mesh/cfn_gateway_route.rb', line 1101 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
1115 1116 1117 1118 1119 1120 1121 |
# File 'app_mesh/cfn_gateway_route.rb', line 1115 def self.jsii_properties { :name => "name", :invert => "invert", :match => "match", } end |
Instance Method Details
#to_jsii ⇒ Object
1123 1124 1125 1126 1127 1128 1129 1130 1131 |
# File 'app_mesh/cfn_gateway_route.rb', line 1123 def to_jsii result = {} result.merge!({ "name" => @name, "invert" => @invert, "match" => @match, }) result.compact end |