Class: AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRouteProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRouteProperty
- Defined in:
- app_mesh/cfn_gateway_route.rb
Overview
An object that represents an HTTP gateway route.
Instance Attribute Summary collapse
-
#action ⇒ AWSCDK::IResolvable, AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRouteActionProperty
readonly
An object that represents the action to take if a match is determined.
-
#match ⇒ AWSCDK::IResolvable, AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRouteMatchProperty
readonly
An object that represents the criteria for determining a request match.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action:, match:) ⇒ HttpGatewayRouteProperty
constructor
A new instance of HttpGatewayRouteProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(action:, match:) ⇒ HttpGatewayRouteProperty
Returns a new instance of HttpGatewayRouteProperty.
1564 1565 1566 1567 1568 1569 |
# File 'app_mesh/cfn_gateway_route.rb', line 1564 def initialize(action:, match:) @action = action.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRouteActionProperty.new(**action.transform_keys(&:to_sym)) : action Jsii::Type.check_type(@action, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmbkdhdGV3YXlSb3V0ZS5IdHRwR2F0ZXdheVJvdXRlQWN0aW9uUHJvcGVydHkifV19fQ==")), "action") @match = match.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRouteMatchProperty.new(**match.transform_keys(&:to_sym)) : match Jsii::Type.check_type(@match, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmbkdhdGV3YXlSb3V0ZS5IdHRwR2F0ZXdheVJvdXRlTWF0Y2hQcm9wZXJ0eSJ9XX19")), "match") end |
Instance Attribute Details
#action ⇒ AWSCDK::IResolvable, AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRouteActionProperty (readonly)
An object that represents the action to take if a match is determined.
1575 1576 1577 |
# File 'app_mesh/cfn_gateway_route.rb', line 1575 def action @action end |
#match ⇒ AWSCDK::IResolvable, AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRouteMatchProperty (readonly)
An object that represents the criteria for determining a request match.
1580 1581 1582 |
# File 'app_mesh/cfn_gateway_route.rb', line 1580 def match @match end |
Class Method Details
.jsii_properties ⇒ Object
1582 1583 1584 1585 1586 1587 |
# File 'app_mesh/cfn_gateway_route.rb', line 1582 def self.jsii_properties { :action => "action", :match => "match", } end |
Instance Method Details
#to_jsii ⇒ Object
1589 1590 1591 1592 1593 1594 1595 1596 |
# File 'app_mesh/cfn_gateway_route.rb', line 1589 def to_jsii result = {} result.merge!({ "action" => @action, "match" => @match, }) result.compact end |