Skip to content

ListServiceLevelObjectiveExclusionWindows

Source: src/AWS/ApplicationSignals/ListServiceLevelObjectiveExclusionWindows.ts

Runtime binding for application-signals:ListServiceLevelObjectiveExclusionWindows, scoped to one ServiceLevelObjective.

Lists the exclusion (maintenance) windows configured on the bound SLO. Provide the implementation with Effect.provide(AWS.ApplicationSignals.ListServiceLevelObjectiveExclusionWindowsHttp).

// init — bind the operation to the SLO
const listExclusionWindows =
yield* AWS.ApplicationSignals.ListServiceLevelObjectiveExclusionWindows(slo);
// runtime — the SLO's ARN is injected as Id
const page = yield* listExclusionWindows();
yield* Effect.log(`${page.ExclusionWindows.length} windows`);