Class: AWSCDK::AppMesh::CfnRoute::GrpcRouteMetadataMatchMethodProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnRoute::GrpcRouteMetadataMatchMethodProperty
- 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
-
#exact ⇒ String?
readonly
The value sent by the client must match the specified value exactly.
-
#prefix ⇒ String?
readonly
The value sent by the client must begin with the specified characters.
-
#range ⇒ AWSCDK::IResolvable, ...
readonly
An object that represents the range of values to match on.
-
#regex ⇒ String?
readonly
The value sent by the client must include the specified characters.
-
#suffix ⇒ String?
readonly
The value sent by the client must end with the specified characters.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(exact: nil, prefix: nil, range: nil, regex: nil, suffix: nil) ⇒ GrpcRouteMetadataMatchMethodProperty
constructor
A new instance of GrpcRouteMetadataMatchMethodProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(exact: nil, prefix: nil, range: nil, regex: nil, suffix: nil) ⇒ GrpcRouteMetadataMatchMethodProperty
Returns a new instance of GrpcRouteMetadataMatchMethodProperty.
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
#exact ⇒ String? (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 |
#prefix ⇒ String? (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 |
#range ⇒ AWSCDK::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 |
#regex ⇒ String? (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 |
#suffix ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |