Skip to content

BatchUpdateExclusionWindows

Source: src/AWS/ApplicationSignals/BatchUpdateExclusionWindows.ts

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

Adds or removes exclusion (maintenance) windows on the bound SLO — for example, automation that excludes a deployment window from SLO attainment. Provide the implementation with Effect.provide(AWS.ApplicationSignals.BatchUpdateExclusionWindowsHttp).

// init — bind the operation to the SLO
const updateExclusionWindows =
yield* AWS.ApplicationSignals.BatchUpdateExclusionWindows(slo);
// runtime — the SLO's ARN is injected as SloIds
yield* updateExclusionWindows({
AddExclusionWindows: [
{
StartTime: new Date(),
Window: { DurationUnit: "HOUR", Duration: 2 },
Reason: "scheduled maintenance",
},
],
});