Class: Aws::AppMesh::Types::UpdateRouteInput

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

{
  client_token: "String",
  mesh_name: "ResourceName", # required
  route_name: "ResourceName", # required
  spec: { # required
    http_route: {
      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
      },
    },
    priority: 1,
    tcp_route: {
      action: { # required
        weighted_targets: [ # required
          {
            virtual_node: "ResourceName", # required
            weight: 1, # required
          },
        ],
      },
    },
  },
  virtual_router_name: "ResourceName", # required
}

Instance Attribute Summary collapse

Instance Attribute Details

#client_tokenString

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.

**A suitable default value is auto-generated.** You should normally not need to pass this option.

Returns:

  • (String)


2742
2743
2744
2745
2746
2747
2748
2749
# File 'lib/aws-sdk-appmesh/types.rb', line 2742

class UpdateRouteInput < Struct.new(
  :client_token,
  :mesh_name,
  :route_name,
  :spec,
  :virtual_router_name)
  include Aws::Structure
end

#mesh_nameString

The name of the service mesh that the route resides in.

Returns:

  • (String)


2742
2743
2744
2745
2746
2747
2748
2749
# File 'lib/aws-sdk-appmesh/types.rb', line 2742

class UpdateRouteInput < Struct.new(
  :client_token,
  :mesh_name,
  :route_name,
  :spec,
  :virtual_router_name)
  include Aws::Structure
end

#route_nameString

The name of the route to update.

Returns:

  • (String)


2742
2743
2744
2745
2746
2747
2748
2749
# File 'lib/aws-sdk-appmesh/types.rb', line 2742

class UpdateRouteInput < Struct.new(
  :client_token,
  :mesh_name,
  :route_name,
  :spec,
  :virtual_router_name)
  include Aws::Structure
end

#specTypes::RouteSpec

The new route specification to apply. This overwrites the existing data.

Returns:



2742
2743
2744
2745
2746
2747
2748
2749
# File 'lib/aws-sdk-appmesh/types.rb', line 2742

class UpdateRouteInput < Struct.new(
  :client_token,
  :mesh_name,
  :route_name,
  :spec,
  :virtual_router_name)
  include Aws::Structure
end

#virtual_router_nameString

The name of the virtual router that the route is associated with.

Returns:

  • (String)


2742
2743
2744
2745
2746
2747
2748
2749
# File 'lib/aws-sdk-appmesh/types.rb', line 2742

class UpdateRouteInput < Struct.new(
  :client_token,
  :mesh_name,
  :route_name,
  :spec,
  :virtual_router_name)
  include Aws::Structure
end