Class: AWSCDK::AppMesh::CfnRoute::GrpcRouteMatchProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnRoute::GrpcRouteMatchProperty
- Defined in:
- app_mesh/cfn_route.rb
Overview
An object that represents the criteria for determining a request match.
Instance Attribute Summary collapse
-
#metadata ⇒ AWSCDK::IResolvable, ...
readonly
An object that represents the data to match from the request.
-
#method_name ⇒ String?
readonly
The method name to match from the request.
-
#port ⇒ Numeric?
readonly
The port number to match on.
-
#service_name ⇒ String?
readonly
The fully qualified domain name for the service to match from the request.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(metadata: nil, method_name: nil, port: nil, service_name: nil) ⇒ GrpcRouteMatchProperty
constructor
A new instance of GrpcRouteMatchProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(metadata: nil, method_name: nil, port: nil, service_name: nil) ⇒ GrpcRouteMatchProperty
Returns a new instance of GrpcRouteMatchProperty.
806 807 808 809 810 811 812 813 814 815 |
# File 'app_mesh/cfn_route.rb', line 806 def initialize(metadata: nil, method_name: nil, port: nil, service_name: nil) @metadata = Jsii::Type.check_type(@metadata, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5DZm5Sb3V0ZS5HcnBjUm91dGVNZXRhZGF0YVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "metadata") unless @metadata.nil? @method_name = method_name Jsii::Type.check_type(@method_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "methodName") unless @method_name.nil? @port = port Jsii::Type.check_type(@port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port") unless @port.nil? @service_name = service_name Jsii::Type.check_type(@service_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serviceName") unless @service_name.nil? end |
Instance Attribute Details
#metadata ⇒ AWSCDK::IResolvable, ... (readonly)
An object that represents the data to match from the request.
821 822 823 |
# File 'app_mesh/cfn_route.rb', line 821 def @metadata end |
#method_name ⇒ String? (readonly)
The method name to match from the request.
If you specify a name, you must also specify a service_name .
828 829 830 |
# File 'app_mesh/cfn_route.rb', line 828 def method_name @method_name end |
#port ⇒ Numeric? (readonly)
The port number to match on.
833 834 835 |
# File 'app_mesh/cfn_route.rb', line 833 def port @port end |
#service_name ⇒ String? (readonly)
The fully qualified domain name for the service to match from the request.
838 839 840 |
# File 'app_mesh/cfn_route.rb', line 838 def service_name @service_name end |
Class Method Details
.jsii_properties ⇒ Object
840 841 842 843 844 845 846 847 |
# File 'app_mesh/cfn_route.rb', line 840 def self.jsii_properties { :metadata => "metadata", :method_name => "methodName", :port => "port", :service_name => "serviceName", } end |
Instance Method Details
#to_jsii ⇒ Object
849 850 851 852 853 854 855 856 857 858 |
# File 'app_mesh/cfn_route.rb', line 849 def to_jsii result = {} result.merge!({ "metadata" => @metadata, "methodName" => @method_name, "port" => @port, "serviceName" => @service_name, }) result.compact end |