You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-appmesh/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 representing the HTTP routing specification for a route.

Instance Attribute Summary collapse

Instance Attribute Details

#actionTypes::HttpRouteAction

The action to take if a match is determined.



3116
3117
3118
3119
3120
3121
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 3116

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

#matchTypes::HttpRouteMatch

The criteria for determining an HTTP request match.



3116
3117
3118
3119
3120
3121
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 3116

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

#retry_policyTypes::HttpRetryPolicy

An object that represents a retry policy.



3116
3117
3118
3119
3120
3121
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 3116

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