Class: AWSCDK::AppMesh::CfnGatewayRoute::GatewayRouteHostnameMatchProperty

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

Overview

An object representing the gateway route host name to match.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exact: nil, suffix: nil) ⇒ GatewayRouteHostnameMatchProperty

Returns a new instance of GatewayRouteHostnameMatchProperty.

Parameters:

  • exact (String, nil) (defaults to: nil)

    The exact host name to match on.

  • suffix (String, nil) (defaults to: nil)

    The specified ending characters of the host name to match on.



646
647
648
649
650
651
# File 'app_mesh/cfn_gateway_route.rb', line 646

def initialize(exact: nil, suffix: nil)
  @exact = exact
  Jsii::Type.check_type(@exact, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "exact") unless @exact.nil?
  @suffix = suffix
  Jsii::Type.check_type(@suffix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "suffix") unless @suffix.nil?
end

Instance Attribute Details

#exactString? (readonly)

The exact host name to match on.



657
658
659
# File 'app_mesh/cfn_gateway_route.rb', line 657

def exact
  @exact
end

#suffixString? (readonly)

The specified ending characters of the host name to match on.



662
663
664
# File 'app_mesh/cfn_gateway_route.rb', line 662

def suffix
  @suffix
end

Class Method Details

.jsii_propertiesObject



664
665
666
667
668
669
# File 'app_mesh/cfn_gateway_route.rb', line 664

def self.jsii_properties
  {
    :exact => "exact",
    :suffix => "suffix",
  }
end

Instance Method Details

#to_jsiiObject



671
672
673
674
675
676
677
678
# File 'app_mesh/cfn_gateway_route.rb', line 671

def to_jsii
  result = {}
  result.merge!({
    "exact" => @exact,
    "suffix" => @suffix,
  })
  result.compact
end