Class: AWSCDK::AppMesh::CfnGatewayRoute::GrpcGatewayRouteMatchProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnGatewayRoute::GrpcGatewayRouteMatchProperty
- Defined in:
- app_mesh/cfn_gateway_route.rb
Overview
An object that represents the criteria for determining a request match.
Instance Attribute Summary collapse
-
#hostname ⇒ AWSCDK::IResolvable, ...
readonly
The gateway route host name to be matched on.
-
#metadata ⇒ AWSCDK::IResolvable, ...
readonly
The gateway route metadata to be matched on.
-
#port ⇒ Numeric?
readonly
The gateway route port to be matched 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(hostname: nil, metadata: nil, port: nil, service_name: nil) ⇒ GrpcGatewayRouteMatchProperty
constructor
A new instance of GrpcGatewayRouteMatchProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(hostname: nil, metadata: nil, port: nil, service_name: nil) ⇒ GrpcGatewayRouteMatchProperty
Returns a new instance of GrpcGatewayRouteMatchProperty.
1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 |
# File 'app_mesh/cfn_gateway_route.rb', line 1026 def initialize(hostname: nil, metadata: nil, port: nil, service_name: nil) @hostname = hostname.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnGatewayRoute::GatewayRouteHostnameMatchProperty.new(**hostname.transform_keys(&:to_sym)) : hostname Jsii::Type.check_type(@hostname, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmbkdhdGV3YXlSb3V0ZS5HYXRld2F5Um91dGVIb3N0bmFtZU1hdGNoUHJvcGVydHkifV19fQ==")), "hostname") unless @hostname.nil? @metadata = Jsii::Type.check_type(@metadata, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5DZm5HYXRld2F5Um91dGUuR3JwY0dhdGV3YXlSb3V0ZU1ldGFkYXRhUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "metadata") unless @metadata.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
#hostname ⇒ AWSCDK::IResolvable, ... (readonly)
The gateway route host name to be matched on.
1041 1042 1043 |
# File 'app_mesh/cfn_gateway_route.rb', line 1041 def hostname @hostname end |
#metadata ⇒ AWSCDK::IResolvable, ... (readonly)
The gateway route metadata to be matched on.
1046 1047 1048 |
# File 'app_mesh/cfn_gateway_route.rb', line 1046 def @metadata end |
#port ⇒ Numeric? (readonly)
The gateway route port to be matched on.
1051 1052 1053 |
# File 'app_mesh/cfn_gateway_route.rb', line 1051 def port @port end |
#service_name ⇒ String? (readonly)
The fully qualified domain name for the service to match from the request.
1056 1057 1058 |
# File 'app_mesh/cfn_gateway_route.rb', line 1056 def service_name @service_name end |
Class Method Details
.jsii_properties ⇒ Object
1058 1059 1060 1061 1062 1063 1064 1065 |
# File 'app_mesh/cfn_gateway_route.rb', line 1058 def self.jsii_properties { :hostname => "hostname", :metadata => "metadata", :port => "port", :service_name => "serviceName", } end |
Instance Method Details
#to_jsii ⇒ Object
1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 |
# File 'app_mesh/cfn_gateway_route.rb', line 1067 def to_jsii result = {} result.merge!({ "hostname" => @hostname, "metadata" => @metadata, "port" => @port, "serviceName" => @service_name, }) result.compact end |