class Aws::AppMesh::Types::HttpRoute
An object that represents an HTTP or HTTP/2 route type.
@note When making an API call, you may pass HttpRoute
data as a hash: { action: { # required weighted_targets: [ # required { virtual_node: "ResourceName", # required weight: 1, # required }, ], }, match: { # required headers: [ { invert: false, match: { exact: "HeaderMatch", prefix: "HeaderMatch", range: { end: 1, # required start: 1, # required }, regex: "HeaderMatch", suffix: "HeaderMatch", }, name: "HeaderName", # required }, ], 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 }, ], scheme: "http", # accepts http, https }, retry_policy: { http_retry_events: ["HttpRetryPolicyEvent"], max_retries: 1, # required per_retry_timeout: { # required unit: "s", # accepts s, ms value: 1, }, tcp_retry_events: ["connection-error"], # accepts connection-error }, timeout: { idle: { unit: "s", # accepts s, ms value: 1, }, per_request: { unit: "s", # accepts s, ms value: 1, }, }, }
@!attribute [rw] action
An object that represents the action to take if a match is determined. @return [Types::HttpRouteAction]
@!attribute [rw] match
An object that represents the criteria for determining a request match. @return [Types::HttpRouteMatch]
@!attribute [rw] retry_policy
An object that represents a retry policy. @return [Types::HttpRetryPolicy]
@!attribute [rw] timeout
An object that represents types of timeouts. @return [Types::HttpTimeout]
@see docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/HttpRoute AWS API Documentation
Constants
- SENSITIVE