Class: AWSCDK::AppMesh::CfnRoute::GrpcRouteMetadataMatchMethodProperty

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

Overview

An object that represents the match method.

Specify one of the match values.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exact: nil, prefix: nil, range: nil, regex: nil, suffix: nil) ⇒ GrpcRouteMetadataMatchMethodProperty

Returns a new instance of GrpcRouteMetadataMatchMethodProperty.

Parameters:

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

    The value sent by the client must match the specified value exactly.

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

    The value sent by the client must begin with the specified characters.

  • range (AWSCDK::IResolvable, AWSCDK::AppMesh::CfnRoute::MatchRangeProperty, nil) (defaults to: nil)

    An object that represents the range of values to match on.

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

    The value sent by the client must include the specified characters.

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

    The value sent by the client must end with the specified characters.



874
875
876
877
878
879
880
881
882
883
884
885
# File 'app_mesh/cfn_route.rb', line 874

def initialize(exact: nil, prefix: nil, range: nil, regex: nil, suffix: nil)
  @exact = exact
  Jsii::Type.check_type(@exact, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "exact") unless @exact.nil?
  @prefix = prefix
  Jsii::Type.check_type(@prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") unless @prefix.nil?
  @range = range.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnRoute::MatchRangeProperty.new(**range.transform_keys(&:to_sym)) : range
  Jsii::Type.check_type(@range, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblJvdXRlLk1hdGNoUmFuZ2VQcm9wZXJ0eSJ9XX19")), "range") unless @range.nil?
  @regex = regex
  Jsii::Type.check_type(@regex, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "regex") unless @regex.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 value sent by the client must match the specified value exactly.



891
892
893
# File 'app_mesh/cfn_route.rb', line 891

def exact
  @exact
end

#prefixString? (readonly)

The value sent by the client must begin with the specified characters.



896
897
898
# File 'app_mesh/cfn_route.rb', line 896

def prefix
  @prefix
end

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

An object that represents the range of values to match on.



901
902
903
# File 'app_mesh/cfn_route.rb', line 901

def range
  @range
end

#regexString? (readonly)

The value sent by the client must include the specified characters.



906
907
908
# File 'app_mesh/cfn_route.rb', line 906

def regex
  @regex
end

#suffixString? (readonly)

The value sent by the client must end with the specified characters.



911
912
913
# File 'app_mesh/cfn_route.rb', line 911

def suffix
  @suffix
end

Class Method Details

.jsii_propertiesObject



913
914
915
916
917
918
919
920
921
# File 'app_mesh/cfn_route.rb', line 913

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

Instance Method Details

#to_jsiiObject



923
924
925
926
927
928
929
930
931
932
933
# File 'app_mesh/cfn_route.rb', line 923

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