class Aws::AppMesh::Types::HttpGatewayRoute

An object that represents an HTTP gateway route.

@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
          },
        ],
      },
    }

@!attribute [rw] action

An object that represents the action to take if a match is
determined.
@return [Types::HttpGatewayRouteAction]

@!attribute [rw] match

An object that represents the criteria for determining a request
match.
@return [Types::HttpGatewayRouteMatch]

@see docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/HttpGatewayRoute AWS API Documentation

Constants

SENSITIVE