Skip to content

GetService

Source: src/AWS/ApplicationSignals/GetService.ts

Runtime binding for application-signals:GetService.

Returns information about one service discovered by Application Signals, identified by its KeyAttributes (Type/Name/Environment). Provide the implementation with Effect.provide(AWS.ApplicationSignals.GetServiceHttp).

// init — account-level, no resource argument
const getService = yield* AWS.ApplicationSignals.GetService();
// runtime
const result = yield* getService({
StartTime: new Date(Date.now() - 3600_000),
EndTime: new Date(),
KeyAttributes: {
Type: "Service",
Name: "checkout-service",
Environment: "eks:prod",
},
});