Class: Aws::AppMesh::Types::HttpGatewayRouteMatch
- Inherits:
-
Struct
- Object
- Struct
- Aws::AppMesh::Types::HttpGatewayRouteMatch
- Defined in:
- gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb
Overview
When making an API call, you may pass HttpGatewayRouteMatch data as a hash:
{
headers: [
{
invert: false,
match: {
exact: "HeaderMatch",
prefix: "HeaderMatch",
range: {
end: 1, # required
start: 1, # required
},
regex: "HeaderMatch",
suffix: "HeaderMatch",
},
name: "HeaderName", # required
},
],
hostname: {
exact: "ExactHostName",
suffix: "SuffixHostname",
},
method: "GET", # accepts GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH
path: {
exact: "HttpPathExact",
regex: "HttpPathRegex",
},
prefix: "String",
query_parameters: [
{
match: {
exact: "String",
},
name: "QueryParameterName", # required
},
],
}
An object that represents the criteria for determining a request match.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#headers ⇒ Array<Types::HttpGatewayRouteHeader>
The client request headers to match on.
-
#hostname ⇒ Types::GatewayRouteHostnameMatch
The host name to match on.
-
#method ⇒ String
The method to match on.
-
#path ⇒ Types::HttpPathMatch
The path to match on.
-
#prefix ⇒ String
Specifies the path to match requests with.
-
#query_parameters ⇒ Array<Types::HttpQueryParameter>
The query parameter to match on.
Instance Attribute Details
#headers ⇒ Array<Types::HttpGatewayRouteHeader>
The client request headers to match on.
4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 |
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 4003 class HttpGatewayRouteMatch < Struct.new( :headers, :hostname, :method, :path, :prefix, :query_parameters) SENSITIVE = [] include Aws::Structure end |
#hostname ⇒ Types::GatewayRouteHostnameMatch
The host name to match on.
4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 |
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 4003 class HttpGatewayRouteMatch < Struct.new( :headers, :hostname, :method, :path, :prefix, :query_parameters) SENSITIVE = [] include Aws::Structure end |
#method ⇒ String
The method to match on.
4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 |
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 4003 class HttpGatewayRouteMatch < Struct.new( :headers, :hostname, :method, :path, :prefix, :query_parameters) SENSITIVE = [] include Aws::Structure end |
#path ⇒ Types::HttpPathMatch
The path to match on.
4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 |
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 4003 class HttpGatewayRouteMatch < Struct.new( :headers, :hostname, :method, :path, :prefix, :query_parameters) SENSITIVE = [] include Aws::Structure end |
#prefix ⇒ String
Specifies the path to match requests with. This parameter must
always start with /
, which by itself matches all requests to the
virtual service name. You can also match for path-based routing of
requests. For example, if your virtual service name is
my-service.local
and you want the route to match requests to
my-service.local/metrics
, your prefix should be /metrics
.
4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 |
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 4003 class HttpGatewayRouteMatch < Struct.new( :headers, :hostname, :method, :path, :prefix, :query_parameters) SENSITIVE = [] include Aws::Structure end |
#query_parameters ⇒ Array<Types::HttpQueryParameter>
The query parameter to match on.
4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 |
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 4003 class HttpGatewayRouteMatch < Struct.new( :headers, :hostname, :method, :path, :prefix, :query_parameters) SENSITIVE = [] include Aws::Structure end |