Class: AWSCDK::AppMesh::CfnGatewayRoute::GrpcGatewayRouteProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnGatewayRoute::GrpcGatewayRouteProperty
- Defined in:
- app_mesh/cfn_gateway_route.rb
Overview
An object that represents a gRPC gateway route.
Instance Attribute Summary collapse
-
#action ⇒ AWSCDK::IResolvable, AWSCDK::AppMesh::CfnGatewayRoute::GrpcGatewayRouteActionProperty
readonly
An object that represents the action to take if a match is determined.
-
#match ⇒ AWSCDK::IResolvable, AWSCDK::AppMesh::CfnGatewayRoute::GrpcGatewayRouteMatchProperty
readonly
An object that represents the criteria for determining a request match.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action:, match:) ⇒ GrpcGatewayRouteProperty
constructor
A new instance of GrpcGatewayRouteProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(action:, match:) ⇒ GrpcGatewayRouteProperty
Returns a new instance of GrpcGatewayRouteProperty.
1142 1143 1144 1145 1146 1147 |
# File 'app_mesh/cfn_gateway_route.rb', line 1142 def initialize(action:, match:) @action = action.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnGatewayRoute::GrpcGatewayRouteActionProperty.new(**action.transform_keys(&:to_sym)) : action Jsii::Type.check_type(@action, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmbkdhdGV3YXlSb3V0ZS5HcnBjR2F0ZXdheVJvdXRlQWN0aW9uUHJvcGVydHkifV19fQ==")), "action") @match = match.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnGatewayRoute::GrpcGatewayRouteMatchProperty.new(**match.transform_keys(&:to_sym)) : match Jsii::Type.check_type(@match, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmbkdhdGV3YXlSb3V0ZS5HcnBjR2F0ZXdheVJvdXRlTWF0Y2hQcm9wZXJ0eSJ9XX19")), "match") end |
Instance Attribute Details
#action ⇒ AWSCDK::IResolvable, AWSCDK::AppMesh::CfnGatewayRoute::GrpcGatewayRouteActionProperty (readonly)
An object that represents the action to take if a match is determined.
1153 1154 1155 |
# File 'app_mesh/cfn_gateway_route.rb', line 1153 def action @action end |
#match ⇒ AWSCDK::IResolvable, AWSCDK::AppMesh::CfnGatewayRoute::GrpcGatewayRouteMatchProperty (readonly)
An object that represents the criteria for determining a request match.
1158 1159 1160 |
# File 'app_mesh/cfn_gateway_route.rb', line 1158 def match @match end |
Class Method Details
.jsii_properties ⇒ Object
1160 1161 1162 1163 1164 1165 |
# File 'app_mesh/cfn_gateway_route.rb', line 1160 def self.jsii_properties { :action => "action", :match => "match", } end |
Instance Method Details
#to_jsii ⇒ Object
1167 1168 1169 1170 1171 1172 1173 1174 |
# File 'app_mesh/cfn_gateway_route.rb', line 1167 def to_jsii result = {} result.merge!({ "action" => @action, "match" => @match, }) result.compact end |