Skip to content

enum objects not exported from some clients such as @aws-sdk/client-scheduler #7517

@menshawii

Description

@menshawii

Checkboxes for prior research

Describe the bug

I used to use the "FlexibleTimeWindowMode" enum to determine whether my schedules have flexible time window mode OFF or FLEXIBLE
Example:

const { FlexibleTimeWindowMode, CreateScheduleCommand } = require("@aws-sdk/client-scheduler");
        const params = {
            Name: "some_name",
            Description: "some_description",
            Target: "some_target",
            FlexibleTimeWindow: {
                Mode: FlexibleTimeWindowMode.OFF
            }
        };

        const command = new CreateScheduleCommand(params);

I can no longer access "FlexibleTimeWindowMode" in the "3.930.0" version of the aws sdk.

Regression Issue

  • Select this option if this issue appears to be a regression.

SDK version number

@aws-sdk/client-scheduler@v3.930.0

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

Node - 22.18.0

Reproduction Steps

  • Import "FlexibleTimeWindowMode" from @aws-sdk/client-scheduler
  • Try accessing the enum -> results in undefined

Observed Behavior

Got a type error when accessing the enum:
TypeError: Cannot read properties of undefined (reading 'OFF')

Expected Behavior

Its expected to be able to access the enum
FlexibleTimeWindowMode.OFF

Possible Solution

No response

Additional Information/Context

No response

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.p1This is a high priority issuepotential-regressionMarking this issue as a potential regression to be checked by team memberresponse-requestedWaiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions