Class: AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRouteProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_mesh/cfn_gateway_route.rb

Overview

An object that represents an HTTP gateway route.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action:, match:) ⇒ HttpGatewayRouteProperty

Returns a new instance of HttpGatewayRouteProperty.

Parameters:



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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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