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).
Managing Exclusion Windows
Section titled “Managing Exclusion Windows”// init — bind the operation to the SLOconst updateExclusionWindows = yield* AWS.ApplicationSignals.BatchUpdateExclusionWindows(slo);
// runtime — the SLO's ARN is injected as SloIdsyield* updateExclusionWindows({ AddExclusionWindows: [ { StartTime: new Date(), Window: { DurationUnit: "HOUR", Duration: 2 }, Reason: "scheduled maintenance", }, ],});