Class: Aws::AppMesh::Types::VirtualNodeSpec

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

{
  backends: [
    {
      virtual_service: {
        virtual_service_name: "ServiceName", # required
      },
    },
  ],
  listeners: [
    {
      health_check: {
        healthy_threshold: 1, # required
        interval_millis: 1, # required
        path: "String",
        port: 1,
        protocol: "grpc", # required, accepts grpc, http, http2, tcp
        timeout_millis: 1, # required
        unhealthy_threshold: 1, # required
      },
      port_mapping: { # required
        port: 1, # required
        protocol: "grpc", # required, accepts grpc, http, http2, tcp
      },
    },
  ],
  logging: {
    access_log: {
      file: {
        path: "FilePath", # required
      },
    },
  },
  service_discovery: {
    aws_cloud_map: {
      attributes: [
        {
          key: "AwsCloudMapInstanceAttributeKey", # required
          value: "AwsCloudMapInstanceAttributeValue", # required
        },
      ],
      namespace_name: "AwsCloudMapName", # required
      service_name: "AwsCloudMapName", # required
    },
    dns: {
      hostname: "Hostname", # required
    },
  },
}

An object that represents the specification of a virtual node.

Instance Attribute Summary collapse

Instance Attribute Details

#backendsArray<Types::Backend>

The backends that the virtual node is expected to send outbound traffic to.

Returns:



1937
1938
1939
1940
1941
1942
1943
# File 'lib/aws-sdk-appmesh/types.rb', line 1937

class VirtualNodeSpec < Struct.new(
  :backends,
  :listeners,
  :logging,
  :service_discovery)
  include Aws::Structure
end

#listenersArray<Types::Listener>

The listeners that the virtual node is expected to receive inbound traffic from. You can specify one listener.

Returns:



1937
1938
1939
1940
1941
1942
1943
# File 'lib/aws-sdk-appmesh/types.rb', line 1937

class VirtualNodeSpec < Struct.new(
  :backends,
  :listeners,
  :logging,
  :service_discovery)
  include Aws::Structure
end

#loggingTypes::Logging

The inbound and outbound access logging information for the virtual node.

Returns:



1937
1938
1939
1940
1941
1942
1943
# File 'lib/aws-sdk-appmesh/types.rb', line 1937

class VirtualNodeSpec < Struct.new(
  :backends,
  :listeners,
  :logging,
  :service_discovery)
  include Aws::Structure
end

#service_discoveryTypes::ServiceDiscovery

The service discovery information for the virtual node. If your virtual node does not expect ingress traffic, you can omit this parameter.



1937
1938
1939
1940
1941
1942
1943
# File 'lib/aws-sdk-appmesh/types.rb', line 1937

class VirtualNodeSpec < Struct.new(
  :backends,
  :listeners,
  :logging,
  :service_discovery)
  include Aws::Structure
end