Class: Aws::AppMesh::Types::HttpGatewayRoute

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 HttpGatewayRoute data as a hash:

{
  action: { # required
    rewrite: {
      hostname: {
        default_target_hostname: "ENABLED", # accepts ENABLED, DISABLED
      },
      path: {
        exact: "HttpPathExact",
      },
      prefix: {
        default_prefix: "ENABLED", # accepts ENABLED, DISABLED
        value: "HttpGatewayRoutePrefix",
      },
    },
    target: { # required
      virtual_service: { # required
        virtual_service_name: "ResourceName", # 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
      },
    ],
    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 an HTTP gateway route.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#actionTypes::HttpGatewayRouteAction

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



3820
3821
3822
3823
3824
3825
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 3820

class HttpGatewayRoute < Struct.new(
  :action,
  :match)
  SENSITIVE = []
  include Aws::Structure
end

#matchTypes::HttpGatewayRouteMatch

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



3820
3821
3822
3823
3824
3825
# File 'gems/aws-sdk-appmesh/lib/aws-sdk-appmesh/types.rb', line 3820

class HttpGatewayRoute < Struct.new(
  :action,
  :match)
  SENSITIVE = []
  include Aws::Structure
end