Class: AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRouteHeaderProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRouteHeaderProperty
- Defined in:
- app_mesh/cfn_gateway_route.rb
Overview
An object that represents the HTTP header in the gateway 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 method and value to match with the header value sent in a request.
-
#name ⇒ String
readonly
A name for the HTTP header in the gateway route that will be matched on.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, invert: nil, match: nil) ⇒ HttpGatewayRouteHeaderProperty
constructor
A new instance of HttpGatewayRouteHeaderProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, invert: nil, match: nil) ⇒ HttpGatewayRouteHeaderProperty
Returns a new instance of HttpGatewayRouteHeaderProperty.
1337 1338 1339 1340 1341 1342 1343 1344 |
# File 'app_mesh/cfn_gateway_route.rb', line 1337 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::HttpGatewayRouteHeaderMatchProperty.new(**match.transform_keys(&:to_sym)) : match Jsii::Type.check_type(@match, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmbkdhdGV3YXlSb3V0ZS5IdHRwR2F0ZXdheVJvdXRlSGVhZGVyTWF0Y2hQcm9wZXJ0eSJ9XX19")), "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 .
1357 1358 1359 |
# File 'app_mesh/cfn_gateway_route.rb', line 1357 def invert @invert end |
#match ⇒ AWSCDK::IResolvable, ... (readonly)
An object that represents the method and value to match with the header value sent in a request.
Specify one match method.
1364 1365 1366 |
# File 'app_mesh/cfn_gateway_route.rb', line 1364 def match @match end |
#name ⇒ String (readonly)
A name for the HTTP header in the gateway route that will be matched on.
1350 1351 1352 |
# File 'app_mesh/cfn_gateway_route.rb', line 1350 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
1366 1367 1368 1369 1370 1371 1372 |
# File 'app_mesh/cfn_gateway_route.rb', line 1366 def self.jsii_properties { :name => "name", :invert => "invert", :match => "match", } end |
Instance Method Details
#to_jsii ⇒ Object
1374 1375 1376 1377 1378 1379 1380 1381 1382 |
# File 'app_mesh/cfn_gateway_route.rb', line 1374 def to_jsii result = {} result.merge!({ "name" => @name, "invert" => @invert, "match" => @match, }) result.compact end |