Class: AWSCDK::AppMesh::CfnRoute::HttpRouteHeaderProperty

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

Overview

An object that represents the HTTP header in the request.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of HttpRouteHeaderProperty.

Parameters:



1366
1367
1368
1369
1370
1371
1372
1373
# File 'app_mesh/cfn_route.rb', line 1366

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::CfnRoute::HeaderMatchMethodProperty.new(**match.transform_keys(&:to_sym)) : match
  Jsii::Type.check_type(@match, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblJvdXRlLkhlYWRlck1hdGNoTWV0aG9kUHJvcGVydHkifV19fQ==")), "match") unless @match.nil?
end

Instance Attribute Details

#invertBoolean, ... (readonly)

Specify True to match anything except the match criteria.

The default value is False .



1386
1387
1388
# File 'app_mesh/cfn_route.rb', line 1386

def invert
  @invert
end

#matchAWSCDK::IResolvable, ... (readonly)

The HeaderMatchMethod object.



1391
1392
1393
# File 'app_mesh/cfn_route.rb', line 1391

def match
  @match
end

#nameString (readonly)

A name for the HTTP header in the client request that will be matched on.



1379
1380
1381
# File 'app_mesh/cfn_route.rb', line 1379

def name
  @name
end

Class Method Details

.jsii_propertiesObject



1393
1394
1395
1396
1397
1398
1399
# File 'app_mesh/cfn_route.rb', line 1393

def self.jsii_properties
  {
    :name => "name",
    :invert => "invert",
    :match => "match",
  }
end

Instance Method Details

#to_jsiiObject



1401
1402
1403
1404
1405
1406
1407
1408
1409
# File 'app_mesh/cfn_route.rb', line 1401

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "invert" => @invert,
    "match" => @match,
  })
  result.compact
end