package awsappmesh // Enum of DNS service discovery response type. // // Example: // // A Virtual Node with a gRPC listener with a connection pool set // var mesh mesh // // node := appmesh.NewVirtualNode(this, jsii.String("node"), &VirtualNodeProps{ // Mesh: Mesh, // // DNS service discovery can optionally specify the DNS response type as either LOAD_BALANCER or ENDPOINTS. // // LOAD_BALANCER means that the DNS resolver returns a loadbalanced set of endpoints, // // whereas ENDPOINTS means that the DNS resolver is returning all the endpoints. // // By default, the response type is assumed to be LOAD_BALANCER // ServiceDiscovery: appmesh.ServiceDiscovery_Dns(jsii.String("node"), appmesh.DnsResponseType_ENDPOINTS), // Listeners: []virtualNodeListener{ // appmesh.*virtualNodeListener_Http(&HttpVirtualNodeListenerOptions{ // Port: jsii.Number(80), // ConnectionPool: &HttpConnectionPool{ // MaxConnections: jsii.Number(100), // MaxPendingRequests: jsii.Number(10), // }, // }), // }, // }) // // // A Virtual Gateway with a gRPC listener with a connection pool set // gateway := appmesh.NewVirtualGateway(this, jsii.String("gateway"), &VirtualGatewayProps{ // Mesh: Mesh, // Listeners: []virtualGatewayListener{ // appmesh.*virtualGatewayListener_Grpc(&GrpcGatewayListenerOptions{ // Port: jsii.Number(8080), // ConnectionPool: &GrpcConnectionPool{ // MaxRequests: jsii.Number(10), // }, // }), // }, // VirtualGatewayName: jsii.String("gateway"), // }) // type DnsResponseType string const ( // DNS resolver returns a loadbalanced set of endpoints and the traffic would be sent to the given endpoints. // // It would not drain existing connections to other endpoints that are not part of this list. DnsResponseType_LOAD_BALANCER DnsResponseType = "LOAD_BALANCER" // DNS resolver is returning all the endpoints. // // This also means that if an endpoint is missing, it would drain the current connections to the missing endpoint. DnsResponseType_ENDPOINTS DnsResponseType = "ENDPOINTS" )