Class: Aws::AppMesh::Types::HttpRoute

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-appmesh/types.rb

Overview

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: "CONNECT", # accepts CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE
    prefix: "String", # required
    scheme: "http", # accepts http, https
  },
  retry_policy: {
    http_retry_events: ["HttpRetryPolicyEvent"],
    max_retries: 1, # required
    per_retry_timeout: { # required
      unit: "ms", # accepts ms, s
      value: 1,
    },
    tcp_retry_events: ["connection-error"], # accepts connection-error
  },
}

An object that represents an HTTP or HTTP2 route type.

Instance Attribute Summary collapse

Instance Attribute Details

#actionTypes::HttpRouteAction

An object that represents the action to take if a match is determined.



3657
3658
3659
3660
3661
3662
# File 'lib/aws-sdk-appmesh/types.rb', line 3657

class HttpRoute < Struct.new(
  :action,
  :match,
  :retry_policy)
  include Aws::Structure
end

#matchTypes::HttpRouteMatch

An object that represents the criteria for determining a request match.



3657
3658
3659
3660
3661
3662
# File 'lib/aws-sdk-appmesh/types.rb', line 3657

class HttpRoute < Struct.new(
  :action,
  :match,
  :retry_policy)
  include Aws::Structure
end

#retry_policyTypes::HttpRetryPolicy

An object that represents a retry policy.



3657
3658
3659
3660
3661
3662
# File 'lib/aws-sdk-appmesh/types.rb', line 3657

class HttpRoute < Struct.new(
  :action,
  :match,
  :retry_policy)
  include Aws::Structure
end