Class: AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRouteHeaderProperty

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

Overview

An object that represents the HTTP header in the gateway route.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, invert: nil, match: nil) ⇒ HttpGatewayRouteHeaderProperty

Returns a new instance of HttpGatewayRouteHeaderProperty.

Parameters:



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

#invertBoolean, ... (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

#matchAWSCDK::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

#nameString (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_propertiesObject



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_jsiiObject



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