@aws-sdk/client-auto-scaling 3.300.0 → 3.303.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/dist-cjs/models/models_0.js +167 -192
  2. package/dist-cjs/pagination/DescribeTrafficSourcesPaginator.js +29 -0
  3. package/dist-cjs/pagination/index.js +1 -0
  4. package/dist-cjs/protocols/Aws_query.js +12 -0
  5. package/dist-es/models/models_0.js +167 -192
  6. package/dist-es/pagination/DescribeTrafficSourcesPaginator.js +25 -0
  7. package/dist-es/pagination/index.js +1 -0
  8. package/dist-es/protocols/Aws_query.js +12 -0
  9. package/dist-types/AutoScaling.d.ts +93 -28
  10. package/dist-types/commands/AttachInstancesCommand.d.ts +2 -2
  11. package/dist-types/commands/AttachLoadBalancerTargetGroupsCommand.d.ts +12 -3
  12. package/dist-types/commands/AttachLoadBalancersCommand.d.ts +9 -3
  13. package/dist-types/commands/AttachTrafficSourcesCommand.d.ts +28 -12
  14. package/dist-types/commands/BatchDeleteScheduledActionCommand.d.ts +2 -2
  15. package/dist-types/commands/BatchPutScheduledUpdateGroupActionCommand.d.ts +3 -3
  16. package/dist-types/commands/CancelInstanceRefreshCommand.d.ts +1 -1
  17. package/dist-types/commands/CompleteLifecycleActionCommand.d.ts +1 -1
  18. package/dist-types/commands/CreateAutoScalingGroupCommand.d.ts +38 -41
  19. package/dist-types/commands/CreateLaunchConfigurationCommand.d.ts +8 -8
  20. package/dist-types/commands/CreateOrUpdateTagsCommand.d.ts +3 -3
  21. package/dist-types/commands/DeleteAutoScalingGroupCommand.d.ts +1 -1
  22. package/dist-types/commands/DeleteLaunchConfigurationCommand.d.ts +1 -1
  23. package/dist-types/commands/DeleteLifecycleHookCommand.d.ts +1 -1
  24. package/dist-types/commands/DeleteNotificationConfigurationCommand.d.ts +1 -1
  25. package/dist-types/commands/DeletePolicyCommand.d.ts +1 -1
  26. package/dist-types/commands/DeleteScheduledActionCommand.d.ts +1 -1
  27. package/dist-types/commands/DeleteTagsCommand.d.ts +3 -3
  28. package/dist-types/commands/DeleteWarmPoolCommand.d.ts +1 -1
  29. package/dist-types/commands/DescribeAutoScalingGroupsCommand.d.ts +5 -5
  30. package/dist-types/commands/DescribeAutoScalingInstancesCommand.d.ts +2 -2
  31. package/dist-types/commands/DescribeInstanceRefreshesCommand.d.ts +2 -2
  32. package/dist-types/commands/DescribeLaunchConfigurationsCommand.d.ts +2 -2
  33. package/dist-types/commands/DescribeLifecycleHooksCommand.d.ts +2 -2
  34. package/dist-types/commands/DescribeLoadBalancerTargetGroupsCommand.d.ts +11 -2
  35. package/dist-types/commands/DescribeLoadBalancersCommand.d.ts +12 -3
  36. package/dist-types/commands/DescribeNotificationConfigurationsCommand.d.ts +2 -2
  37. package/dist-types/commands/DescribePoliciesCommand.d.ts +3 -3
  38. package/dist-types/commands/DescribeScalingActivitiesCommand.d.ts +2 -2
  39. package/dist-types/commands/DescribeScheduledActionsCommand.d.ts +2 -2
  40. package/dist-types/commands/DescribeTagsCommand.d.ts +4 -4
  41. package/dist-types/commands/DescribeTrafficSourcesCommand.d.ts +7 -7
  42. package/dist-types/commands/DescribeWarmPoolCommand.d.ts +1 -1
  43. package/dist-types/commands/DetachInstancesCommand.d.ts +2 -2
  44. package/dist-types/commands/DetachLoadBalancerTargetGroupsCommand.d.ts +12 -3
  45. package/dist-types/commands/DetachLoadBalancersCommand.d.ts +13 -4
  46. package/dist-types/commands/DetachTrafficSourcesCommand.d.ts +9 -9
  47. package/dist-types/commands/DisableMetricsCollectionCommand.d.ts +2 -2
  48. package/dist-types/commands/EnableMetricsCollectionCommand.d.ts +2 -2
  49. package/dist-types/commands/EnterStandbyCommand.d.ts +2 -2
  50. package/dist-types/commands/ExecutePolicyCommand.d.ts +1 -1
  51. package/dist-types/commands/ExitStandbyCommand.d.ts +2 -2
  52. package/dist-types/commands/GetPredictiveScalingForecastCommand.d.ts +1 -1
  53. package/dist-types/commands/PutLifecycleHookCommand.d.ts +1 -1
  54. package/dist-types/commands/PutNotificationConfigurationCommand.d.ts +2 -2
  55. package/dist-types/commands/PutScalingPolicyCommand.d.ts +27 -33
  56. package/dist-types/commands/PutScheduledUpdateGroupActionCommand.d.ts +1 -1
  57. package/dist-types/commands/PutWarmPoolCommand.d.ts +2 -2
  58. package/dist-types/commands/RecordLifecycleActionHeartbeatCommand.d.ts +1 -1
  59. package/dist-types/commands/ResumeProcessesCommand.d.ts +2 -2
  60. package/dist-types/commands/RollbackInstanceRefreshCommand.d.ts +3 -3
  61. package/dist-types/commands/SetDesiredCapacityCommand.d.ts +1 -1
  62. package/dist-types/commands/SetInstanceHealthCommand.d.ts +1 -1
  63. package/dist-types/commands/SetInstanceProtectionCommand.d.ts +2 -2
  64. package/dist-types/commands/StartInstanceRefreshCommand.d.ts +29 -33
  65. package/dist-types/commands/SuspendProcessesCommand.d.ts +2 -2
  66. package/dist-types/commands/TerminateInstanceInAutoScalingGroupCommand.d.ts +1 -1
  67. package/dist-types/commands/UpdateAutoScalingGroupCommand.d.ts +28 -32
  68. package/dist-types/models/models_0.d.ts +432 -238
  69. package/dist-types/pagination/DescribeTrafficSourcesPaginator.d.ts +7 -0
  70. package/dist-types/pagination/index.d.ts +1 -0
  71. package/dist-types/ts3.4/models/models_0.d.ts +220 -168
  72. package/dist-types/ts3.4/pagination/DescribeTrafficSourcesPaginator.d.ts +11 -0
  73. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  74. package/package.json +35 -35
@@ -2,29 +2,26 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RefreshStrategy = exports.InstanceRefreshInProgressFault = exports.IrreversibleInstanceRefreshFault = exports.MetricType = exports.MetricStatistic = exports.PredictiveScalingMode = exports.PredefinedScalingMetricType = exports.PredefinedMetricPairType = exports.PredefinedLoadMetricType = exports.PredictiveScalingMaxCapacityBreachBehavior = exports.InstanceRefreshStatus = exports.StandbyInstances = exports.ScaleInProtectedInstances = exports.InvalidNextToken = exports.WarmPoolStatus = exports.WarmPoolState = exports.LifecycleState = exports.ScalingActivityInProgressFault = exports.ResourceInUseFault = exports.InstanceMetadataHttpTokensState = exports.InstanceMetadataEndpointState = exports.LocalStorageType = exports.LocalStorage = exports.InstanceGeneration = exports.CpuManufacturer = exports.BurstablePerformance = exports.BareMetal = exports.LimitExceededFault = exports.ServiceLinkedRoleFailure = exports.ResourceContentionFault = exports.AlreadyExistsFault = exports.ScalingActivityStatusCode = exports.ActiveInstanceRefreshNotFoundFault = exports.AcceleratorType = exports.AcceleratorName = exports.AcceleratorManufacturer = void 0;
4
4
  const AutoScalingServiceException_1 = require("./AutoScalingServiceException");
5
- var AcceleratorManufacturer;
6
- (function (AcceleratorManufacturer) {
7
- AcceleratorManufacturer["AMAZON_WEB_SERVICES"] = "amazon-web-services";
8
- AcceleratorManufacturer["AMD"] = "amd";
9
- AcceleratorManufacturer["NVIDIA"] = "nvidia";
10
- AcceleratorManufacturer["XILINX"] = "xilinx";
11
- })(AcceleratorManufacturer = exports.AcceleratorManufacturer || (exports.AcceleratorManufacturer = {}));
12
- var AcceleratorName;
13
- (function (AcceleratorName) {
14
- AcceleratorName["A100"] = "a100";
15
- AcceleratorName["K80"] = "k80";
16
- AcceleratorName["M60"] = "m60";
17
- AcceleratorName["RADEON_PRO_V520"] = "radeon-pro-v520";
18
- AcceleratorName["T4"] = "t4";
19
- AcceleratorName["V100"] = "v100";
20
- AcceleratorName["VU9P"] = "vu9p";
21
- })(AcceleratorName = exports.AcceleratorName || (exports.AcceleratorName = {}));
22
- var AcceleratorType;
23
- (function (AcceleratorType) {
24
- AcceleratorType["FPGA"] = "fpga";
25
- AcceleratorType["GPU"] = "gpu";
26
- AcceleratorType["INFERENCE"] = "inference";
27
- })(AcceleratorType = exports.AcceleratorType || (exports.AcceleratorType = {}));
5
+ exports.AcceleratorManufacturer = {
6
+ AMAZON_WEB_SERVICES: "amazon-web-services",
7
+ AMD: "amd",
8
+ NVIDIA: "nvidia",
9
+ XILINX: "xilinx",
10
+ };
11
+ exports.AcceleratorName = {
12
+ A100: "a100",
13
+ K80: "k80",
14
+ M60: "m60",
15
+ RADEON_PRO_V520: "radeon-pro-v520",
16
+ T4: "t4",
17
+ V100: "v100",
18
+ VU9P: "vu9p",
19
+ };
20
+ exports.AcceleratorType = {
21
+ FPGA: "fpga",
22
+ GPU: "gpu",
23
+ INFERENCE: "inference",
24
+ };
28
25
  class ActiveInstanceRefreshNotFoundFault extends AutoScalingServiceException_1.AutoScalingServiceException {
29
26
  constructor(opts) {
30
27
  super({
@@ -38,21 +35,21 @@ class ActiveInstanceRefreshNotFoundFault extends AutoScalingServiceException_1.A
38
35
  }
39
36
  }
40
37
  exports.ActiveInstanceRefreshNotFoundFault = ActiveInstanceRefreshNotFoundFault;
41
- var ScalingActivityStatusCode;
42
- (function (ScalingActivityStatusCode) {
43
- ScalingActivityStatusCode["Cancelled"] = "Cancelled";
44
- ScalingActivityStatusCode["Failed"] = "Failed";
45
- ScalingActivityStatusCode["InProgress"] = "InProgress";
46
- ScalingActivityStatusCode["MidLifecycleAction"] = "MidLifecycleAction";
47
- ScalingActivityStatusCode["PendingSpotBidPlacement"] = "PendingSpotBidPlacement";
48
- ScalingActivityStatusCode["PreInService"] = "PreInService";
49
- ScalingActivityStatusCode["Successful"] = "Successful";
50
- ScalingActivityStatusCode["WaitingForELBConnectionDraining"] = "WaitingForELBConnectionDraining";
51
- ScalingActivityStatusCode["WaitingForInstanceId"] = "WaitingForInstanceId";
52
- ScalingActivityStatusCode["WaitingForInstanceWarmup"] = "WaitingForInstanceWarmup";
53
- ScalingActivityStatusCode["WaitingForSpotInstanceId"] = "WaitingForSpotInstanceId";
54
- ScalingActivityStatusCode["WaitingForSpotInstanceRequestId"] = "WaitingForSpotInstanceRequestId";
55
- })(ScalingActivityStatusCode = exports.ScalingActivityStatusCode || (exports.ScalingActivityStatusCode = {}));
38
+ exports.ScalingActivityStatusCode = {
39
+ Cancelled: "Cancelled",
40
+ Failed: "Failed",
41
+ InProgress: "InProgress",
42
+ MidLifecycleAction: "MidLifecycleAction",
43
+ PendingSpotBidPlacement: "PendingSpotBidPlacement",
44
+ PreInService: "PreInService",
45
+ Successful: "Successful",
46
+ WaitingForConnectionDraining: "WaitingForConnectionDraining",
47
+ WaitingForELBConnectionDraining: "WaitingForELBConnectionDraining",
48
+ WaitingForInstanceId: "WaitingForInstanceId",
49
+ WaitingForInstanceWarmup: "WaitingForInstanceWarmup",
50
+ WaitingForSpotInstanceId: "WaitingForSpotInstanceId",
51
+ WaitingForSpotInstanceRequestId: "WaitingForSpotInstanceRequestId",
52
+ };
56
53
  class AlreadyExistsFault extends AutoScalingServiceException_1.AutoScalingServiceException {
57
54
  constructor(opts) {
58
55
  super({
@@ -105,50 +102,42 @@ class LimitExceededFault extends AutoScalingServiceException_1.AutoScalingServic
105
102
  }
106
103
  }
107
104
  exports.LimitExceededFault = LimitExceededFault;
108
- var BareMetal;
109
- (function (BareMetal) {
110
- BareMetal["EXCLUDED"] = "excluded";
111
- BareMetal["INCLUDED"] = "included";
112
- BareMetal["REQUIRED"] = "required";
113
- })(BareMetal = exports.BareMetal || (exports.BareMetal = {}));
114
- var BurstablePerformance;
115
- (function (BurstablePerformance) {
116
- BurstablePerformance["EXCLUDED"] = "excluded";
117
- BurstablePerformance["INCLUDED"] = "included";
118
- BurstablePerformance["REQUIRED"] = "required";
119
- })(BurstablePerformance = exports.BurstablePerformance || (exports.BurstablePerformance = {}));
120
- var CpuManufacturer;
121
- (function (CpuManufacturer) {
122
- CpuManufacturer["AMAZON_WEB_SERVICES"] = "amazon-web-services";
123
- CpuManufacturer["AMD"] = "amd";
124
- CpuManufacturer["INTEL"] = "intel";
125
- })(CpuManufacturer = exports.CpuManufacturer || (exports.CpuManufacturer = {}));
126
- var InstanceGeneration;
127
- (function (InstanceGeneration) {
128
- InstanceGeneration["CURRENT"] = "current";
129
- InstanceGeneration["PREVIOUS"] = "previous";
130
- })(InstanceGeneration = exports.InstanceGeneration || (exports.InstanceGeneration = {}));
131
- var LocalStorage;
132
- (function (LocalStorage) {
133
- LocalStorage["EXCLUDED"] = "excluded";
134
- LocalStorage["INCLUDED"] = "included";
135
- LocalStorage["REQUIRED"] = "required";
136
- })(LocalStorage = exports.LocalStorage || (exports.LocalStorage = {}));
137
- var LocalStorageType;
138
- (function (LocalStorageType) {
139
- LocalStorageType["HDD"] = "hdd";
140
- LocalStorageType["SSD"] = "ssd";
141
- })(LocalStorageType = exports.LocalStorageType || (exports.LocalStorageType = {}));
142
- var InstanceMetadataEndpointState;
143
- (function (InstanceMetadataEndpointState) {
144
- InstanceMetadataEndpointState["Disabled"] = "disabled";
145
- InstanceMetadataEndpointState["Enabled"] = "enabled";
146
- })(InstanceMetadataEndpointState = exports.InstanceMetadataEndpointState || (exports.InstanceMetadataEndpointState = {}));
147
- var InstanceMetadataHttpTokensState;
148
- (function (InstanceMetadataHttpTokensState) {
149
- InstanceMetadataHttpTokensState["Optional"] = "optional";
150
- InstanceMetadataHttpTokensState["Required"] = "required";
151
- })(InstanceMetadataHttpTokensState = exports.InstanceMetadataHttpTokensState || (exports.InstanceMetadataHttpTokensState = {}));
105
+ exports.BareMetal = {
106
+ EXCLUDED: "excluded",
107
+ INCLUDED: "included",
108
+ REQUIRED: "required",
109
+ };
110
+ exports.BurstablePerformance = {
111
+ EXCLUDED: "excluded",
112
+ INCLUDED: "included",
113
+ REQUIRED: "required",
114
+ };
115
+ exports.CpuManufacturer = {
116
+ AMAZON_WEB_SERVICES: "amazon-web-services",
117
+ AMD: "amd",
118
+ INTEL: "intel",
119
+ };
120
+ exports.InstanceGeneration = {
121
+ CURRENT: "current",
122
+ PREVIOUS: "previous",
123
+ };
124
+ exports.LocalStorage = {
125
+ EXCLUDED: "excluded",
126
+ INCLUDED: "included",
127
+ REQUIRED: "required",
128
+ };
129
+ exports.LocalStorageType = {
130
+ HDD: "hdd",
131
+ SSD: "ssd",
132
+ };
133
+ exports.InstanceMetadataEndpointState = {
134
+ Disabled: "disabled",
135
+ Enabled: "enabled",
136
+ };
137
+ exports.InstanceMetadataHttpTokensState = {
138
+ Optional: "optional",
139
+ Required: "required",
140
+ };
152
141
  class ResourceInUseFault extends AutoScalingServiceException_1.AutoScalingServiceException {
153
142
  constructor(opts) {
154
143
  super({
@@ -175,42 +164,39 @@ class ScalingActivityInProgressFault extends AutoScalingServiceException_1.AutoS
175
164
  }
176
165
  }
177
166
  exports.ScalingActivityInProgressFault = ScalingActivityInProgressFault;
178
- var LifecycleState;
179
- (function (LifecycleState) {
180
- LifecycleState["DETACHED"] = "Detached";
181
- LifecycleState["DETACHING"] = "Detaching";
182
- LifecycleState["ENTERING_STANDBY"] = "EnteringStandby";
183
- LifecycleState["IN_SERVICE"] = "InService";
184
- LifecycleState["PENDING"] = "Pending";
185
- LifecycleState["PENDING_PROCEED"] = "Pending:Proceed";
186
- LifecycleState["PENDING_WAIT"] = "Pending:Wait";
187
- LifecycleState["QUARANTINED"] = "Quarantined";
188
- LifecycleState["STANDBY"] = "Standby";
189
- LifecycleState["TERMINATED"] = "Terminated";
190
- LifecycleState["TERMINATING"] = "Terminating";
191
- LifecycleState["TERMINATING_PROCEED"] = "Terminating:Proceed";
192
- LifecycleState["TERMINATING_WAIT"] = "Terminating:Wait";
193
- LifecycleState["WARMED_HIBERNATED"] = "Warmed:Hibernated";
194
- LifecycleState["WARMED_PENDING"] = "Warmed:Pending";
195
- LifecycleState["WARMED_PENDING_PROCEED"] = "Warmed:Pending:Proceed";
196
- LifecycleState["WARMED_PENDING_WAIT"] = "Warmed:Pending:Wait";
197
- LifecycleState["WARMED_RUNNING"] = "Warmed:Running";
198
- LifecycleState["WARMED_STOPPED"] = "Warmed:Stopped";
199
- LifecycleState["WARMED_TERMINATED"] = "Warmed:Terminated";
200
- LifecycleState["WARMED_TERMINATING"] = "Warmed:Terminating";
201
- LifecycleState["WARMED_TERMINATING_PROCEED"] = "Warmed:Terminating:Proceed";
202
- LifecycleState["WARMED_TERMINATING_WAIT"] = "Warmed:Terminating:Wait";
203
- })(LifecycleState = exports.LifecycleState || (exports.LifecycleState = {}));
204
- var WarmPoolState;
205
- (function (WarmPoolState) {
206
- WarmPoolState["Hibernated"] = "Hibernated";
207
- WarmPoolState["Running"] = "Running";
208
- WarmPoolState["Stopped"] = "Stopped";
209
- })(WarmPoolState = exports.WarmPoolState || (exports.WarmPoolState = {}));
210
- var WarmPoolStatus;
211
- (function (WarmPoolStatus) {
212
- WarmPoolStatus["PendingDelete"] = "PendingDelete";
213
- })(WarmPoolStatus = exports.WarmPoolStatus || (exports.WarmPoolStatus = {}));
167
+ exports.LifecycleState = {
168
+ DETACHED: "Detached",
169
+ DETACHING: "Detaching",
170
+ ENTERING_STANDBY: "EnteringStandby",
171
+ IN_SERVICE: "InService",
172
+ PENDING: "Pending",
173
+ PENDING_PROCEED: "Pending:Proceed",
174
+ PENDING_WAIT: "Pending:Wait",
175
+ QUARANTINED: "Quarantined",
176
+ STANDBY: "Standby",
177
+ TERMINATED: "Terminated",
178
+ TERMINATING: "Terminating",
179
+ TERMINATING_PROCEED: "Terminating:Proceed",
180
+ TERMINATING_WAIT: "Terminating:Wait",
181
+ WARMED_HIBERNATED: "Warmed:Hibernated",
182
+ WARMED_PENDING: "Warmed:Pending",
183
+ WARMED_PENDING_PROCEED: "Warmed:Pending:Proceed",
184
+ WARMED_PENDING_WAIT: "Warmed:Pending:Wait",
185
+ WARMED_RUNNING: "Warmed:Running",
186
+ WARMED_STOPPED: "Warmed:Stopped",
187
+ WARMED_TERMINATED: "Warmed:Terminated",
188
+ WARMED_TERMINATING: "Warmed:Terminating",
189
+ WARMED_TERMINATING_PROCEED: "Warmed:Terminating:Proceed",
190
+ WARMED_TERMINATING_WAIT: "Warmed:Terminating:Wait",
191
+ };
192
+ exports.WarmPoolState = {
193
+ Hibernated: "Hibernated",
194
+ Running: "Running",
195
+ Stopped: "Stopped",
196
+ };
197
+ exports.WarmPoolStatus = {
198
+ PendingDelete: "PendingDelete",
199
+ };
214
200
  class InvalidNextToken extends AutoScalingServiceException_1.AutoScalingServiceException {
215
201
  constructor(opts) {
216
202
  super({
@@ -224,76 +210,66 @@ class InvalidNextToken extends AutoScalingServiceException_1.AutoScalingServiceE
224
210
  }
225
211
  }
226
212
  exports.InvalidNextToken = InvalidNextToken;
227
- var ScaleInProtectedInstances;
228
- (function (ScaleInProtectedInstances) {
229
- ScaleInProtectedInstances["Ignore"] = "Ignore";
230
- ScaleInProtectedInstances["Refresh"] = "Refresh";
231
- ScaleInProtectedInstances["Wait"] = "Wait";
232
- })(ScaleInProtectedInstances = exports.ScaleInProtectedInstances || (exports.ScaleInProtectedInstances = {}));
233
- var StandbyInstances;
234
- (function (StandbyInstances) {
235
- StandbyInstances["Ignore"] = "Ignore";
236
- StandbyInstances["Terminate"] = "Terminate";
237
- StandbyInstances["Wait"] = "Wait";
238
- })(StandbyInstances = exports.StandbyInstances || (exports.StandbyInstances = {}));
239
- var InstanceRefreshStatus;
240
- (function (InstanceRefreshStatus) {
241
- InstanceRefreshStatus["Cancelled"] = "Cancelled";
242
- InstanceRefreshStatus["Cancelling"] = "Cancelling";
243
- InstanceRefreshStatus["Failed"] = "Failed";
244
- InstanceRefreshStatus["InProgress"] = "InProgress";
245
- InstanceRefreshStatus["Pending"] = "Pending";
246
- InstanceRefreshStatus["RollbackFailed"] = "RollbackFailed";
247
- InstanceRefreshStatus["RollbackInProgress"] = "RollbackInProgress";
248
- InstanceRefreshStatus["RollbackSuccessful"] = "RollbackSuccessful";
249
- InstanceRefreshStatus["Successful"] = "Successful";
250
- })(InstanceRefreshStatus = exports.InstanceRefreshStatus || (exports.InstanceRefreshStatus = {}));
251
- var PredictiveScalingMaxCapacityBreachBehavior;
252
- (function (PredictiveScalingMaxCapacityBreachBehavior) {
253
- PredictiveScalingMaxCapacityBreachBehavior["HonorMaxCapacity"] = "HonorMaxCapacity";
254
- PredictiveScalingMaxCapacityBreachBehavior["IncreaseMaxCapacity"] = "IncreaseMaxCapacity";
255
- })(PredictiveScalingMaxCapacityBreachBehavior = exports.PredictiveScalingMaxCapacityBreachBehavior || (exports.PredictiveScalingMaxCapacityBreachBehavior = {}));
256
- var PredefinedLoadMetricType;
257
- (function (PredefinedLoadMetricType) {
258
- PredefinedLoadMetricType["ALBTargetGroupRequestCount"] = "ALBTargetGroupRequestCount";
259
- PredefinedLoadMetricType["ASGTotalCPUUtilization"] = "ASGTotalCPUUtilization";
260
- PredefinedLoadMetricType["ASGTotalNetworkIn"] = "ASGTotalNetworkIn";
261
- PredefinedLoadMetricType["ASGTotalNetworkOut"] = "ASGTotalNetworkOut";
262
- })(PredefinedLoadMetricType = exports.PredefinedLoadMetricType || (exports.PredefinedLoadMetricType = {}));
263
- var PredefinedMetricPairType;
264
- (function (PredefinedMetricPairType) {
265
- PredefinedMetricPairType["ALBRequestCount"] = "ALBRequestCount";
266
- PredefinedMetricPairType["ASGCPUUtilization"] = "ASGCPUUtilization";
267
- PredefinedMetricPairType["ASGNetworkIn"] = "ASGNetworkIn";
268
- PredefinedMetricPairType["ASGNetworkOut"] = "ASGNetworkOut";
269
- })(PredefinedMetricPairType = exports.PredefinedMetricPairType || (exports.PredefinedMetricPairType = {}));
270
- var PredefinedScalingMetricType;
271
- (function (PredefinedScalingMetricType) {
272
- PredefinedScalingMetricType["ALBRequestCountPerTarget"] = "ALBRequestCountPerTarget";
273
- PredefinedScalingMetricType["ASGAverageCPUUtilization"] = "ASGAverageCPUUtilization";
274
- PredefinedScalingMetricType["ASGAverageNetworkIn"] = "ASGAverageNetworkIn";
275
- PredefinedScalingMetricType["ASGAverageNetworkOut"] = "ASGAverageNetworkOut";
276
- })(PredefinedScalingMetricType = exports.PredefinedScalingMetricType || (exports.PredefinedScalingMetricType = {}));
277
- var PredictiveScalingMode;
278
- (function (PredictiveScalingMode) {
279
- PredictiveScalingMode["ForecastAndScale"] = "ForecastAndScale";
280
- PredictiveScalingMode["ForecastOnly"] = "ForecastOnly";
281
- })(PredictiveScalingMode = exports.PredictiveScalingMode || (exports.PredictiveScalingMode = {}));
282
- var MetricStatistic;
283
- (function (MetricStatistic) {
284
- MetricStatistic["Average"] = "Average";
285
- MetricStatistic["Maximum"] = "Maximum";
286
- MetricStatistic["Minimum"] = "Minimum";
287
- MetricStatistic["SampleCount"] = "SampleCount";
288
- MetricStatistic["Sum"] = "Sum";
289
- })(MetricStatistic = exports.MetricStatistic || (exports.MetricStatistic = {}));
290
- var MetricType;
291
- (function (MetricType) {
292
- MetricType["ALBRequestCountPerTarget"] = "ALBRequestCountPerTarget";
293
- MetricType["ASGAverageCPUUtilization"] = "ASGAverageCPUUtilization";
294
- MetricType["ASGAverageNetworkIn"] = "ASGAverageNetworkIn";
295
- MetricType["ASGAverageNetworkOut"] = "ASGAverageNetworkOut";
296
- })(MetricType = exports.MetricType || (exports.MetricType = {}));
213
+ exports.ScaleInProtectedInstances = {
214
+ Ignore: "Ignore",
215
+ Refresh: "Refresh",
216
+ Wait: "Wait",
217
+ };
218
+ exports.StandbyInstances = {
219
+ Ignore: "Ignore",
220
+ Terminate: "Terminate",
221
+ Wait: "Wait",
222
+ };
223
+ exports.InstanceRefreshStatus = {
224
+ Cancelled: "Cancelled",
225
+ Cancelling: "Cancelling",
226
+ Failed: "Failed",
227
+ InProgress: "InProgress",
228
+ Pending: "Pending",
229
+ RollbackFailed: "RollbackFailed",
230
+ RollbackInProgress: "RollbackInProgress",
231
+ RollbackSuccessful: "RollbackSuccessful",
232
+ Successful: "Successful",
233
+ };
234
+ exports.PredictiveScalingMaxCapacityBreachBehavior = {
235
+ HonorMaxCapacity: "HonorMaxCapacity",
236
+ IncreaseMaxCapacity: "IncreaseMaxCapacity",
237
+ };
238
+ exports.PredefinedLoadMetricType = {
239
+ ALBTargetGroupRequestCount: "ALBTargetGroupRequestCount",
240
+ ASGTotalCPUUtilization: "ASGTotalCPUUtilization",
241
+ ASGTotalNetworkIn: "ASGTotalNetworkIn",
242
+ ASGTotalNetworkOut: "ASGTotalNetworkOut",
243
+ };
244
+ exports.PredefinedMetricPairType = {
245
+ ALBRequestCount: "ALBRequestCount",
246
+ ASGCPUUtilization: "ASGCPUUtilization",
247
+ ASGNetworkIn: "ASGNetworkIn",
248
+ ASGNetworkOut: "ASGNetworkOut",
249
+ };
250
+ exports.PredefinedScalingMetricType = {
251
+ ALBRequestCountPerTarget: "ALBRequestCountPerTarget",
252
+ ASGAverageCPUUtilization: "ASGAverageCPUUtilization",
253
+ ASGAverageNetworkIn: "ASGAverageNetworkIn",
254
+ ASGAverageNetworkOut: "ASGAverageNetworkOut",
255
+ };
256
+ exports.PredictiveScalingMode = {
257
+ ForecastAndScale: "ForecastAndScale",
258
+ ForecastOnly: "ForecastOnly",
259
+ };
260
+ exports.MetricStatistic = {
261
+ Average: "Average",
262
+ Maximum: "Maximum",
263
+ Minimum: "Minimum",
264
+ SampleCount: "SampleCount",
265
+ Sum: "Sum",
266
+ };
267
+ exports.MetricType = {
268
+ ALBRequestCountPerTarget: "ALBRequestCountPerTarget",
269
+ ASGAverageCPUUtilization: "ASGAverageCPUUtilization",
270
+ ASGAverageNetworkIn: "ASGAverageNetworkIn",
271
+ ASGAverageNetworkOut: "ASGAverageNetworkOut",
272
+ };
297
273
  class IrreversibleInstanceRefreshFault extends AutoScalingServiceException_1.AutoScalingServiceException {
298
274
  constructor(opts) {
299
275
  super({
@@ -320,7 +296,6 @@ class InstanceRefreshInProgressFault extends AutoScalingServiceException_1.AutoS
320
296
  }
321
297
  }
322
298
  exports.InstanceRefreshInProgressFault = InstanceRefreshInProgressFault;
323
- var RefreshStrategy;
324
- (function (RefreshStrategy) {
325
- RefreshStrategy["Rolling"] = "Rolling";
326
- })(RefreshStrategy = exports.RefreshStrategy || (exports.RefreshStrategy = {}));
299
+ exports.RefreshStrategy = {
300
+ Rolling: "Rolling",
301
+ };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateDescribeTrafficSources = void 0;
4
+ const AutoScalingClient_1 = require("../AutoScalingClient");
5
+ const DescribeTrafficSourcesCommand_1 = require("../commands/DescribeTrafficSourcesCommand");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new DescribeTrafficSourcesCommand_1.DescribeTrafficSourcesCommand(input), ...args);
8
+ };
9
+ async function* paginateDescribeTrafficSources(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxRecords"] = config.pageSize;
16
+ if (config.client instanceof AutoScalingClient_1.AutoScalingClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateDescribeTrafficSources = paginateDescribeTrafficSources;
@@ -9,4 +9,5 @@ tslib_1.__exportStar(require("./DescribePoliciesPaginator"), exports);
9
9
  tslib_1.__exportStar(require("./DescribeScalingActivitiesPaginator"), exports);
10
10
  tslib_1.__exportStar(require("./DescribeScheduledActionsPaginator"), exports);
11
11
  tslib_1.__exportStar(require("./DescribeTagsPaginator"), exports);
12
+ tslib_1.__exportStar(require("./DescribeTrafficSourcesPaginator"), exports);
12
13
  tslib_1.__exportStar(require("./Interfaces"), exports);
@@ -5864,6 +5864,9 @@ const serializeAws_queryTrafficSourceIdentifier = (input, context) => {
5864
5864
  if (input.Identifier != null) {
5865
5865
  entries["Identifier"] = input.Identifier;
5866
5866
  }
5867
+ if (input.Type != null) {
5868
+ entries["Type"] = input.Type;
5869
+ }
5867
5870
  return entries;
5868
5871
  };
5869
5872
  const serializeAws_queryTrafficSources = (input, context) => {
@@ -8136,6 +8139,9 @@ const deserializeAws_queryTrafficSourceIdentifier = (output, context) => {
8136
8139
  if (output["Identifier"] !== undefined) {
8137
8140
  contents.Identifier = (0, smithy_client_1.expectString)(output["Identifier"]);
8138
8141
  }
8142
+ if (output["Type"] !== undefined) {
8143
+ contents.Type = (0, smithy_client_1.expectString)(output["Type"]);
8144
+ }
8139
8145
  return contents;
8140
8146
  };
8141
8147
  const deserializeAws_queryTrafficSources = (output, context) => {
@@ -8153,6 +8159,12 @@ const deserializeAws_queryTrafficSourceState = (output, context) => {
8153
8159
  if (output["State"] !== undefined) {
8154
8160
  contents.State = (0, smithy_client_1.expectString)(output["State"]);
8155
8161
  }
8162
+ if (output["Identifier"] !== undefined) {
8163
+ contents.Identifier = (0, smithy_client_1.expectString)(output["Identifier"]);
8164
+ }
8165
+ if (output["Type"] !== undefined) {
8166
+ contents.Type = (0, smithy_client_1.expectString)(output["Type"]);
8167
+ }
8156
8168
  return contents;
8157
8169
  };
8158
8170
  const deserializeAws_queryTrafficSourceStates = (output, context) => {