@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.
- package/dist-cjs/models/models_0.js +167 -192
- package/dist-cjs/pagination/DescribeTrafficSourcesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_query.js +12 -0
- package/dist-es/models/models_0.js +167 -192
- package/dist-es/pagination/DescribeTrafficSourcesPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_query.js +12 -0
- package/dist-types/AutoScaling.d.ts +93 -28
- package/dist-types/commands/AttachInstancesCommand.d.ts +2 -2
- package/dist-types/commands/AttachLoadBalancerTargetGroupsCommand.d.ts +12 -3
- package/dist-types/commands/AttachLoadBalancersCommand.d.ts +9 -3
- package/dist-types/commands/AttachTrafficSourcesCommand.d.ts +28 -12
- package/dist-types/commands/BatchDeleteScheduledActionCommand.d.ts +2 -2
- package/dist-types/commands/BatchPutScheduledUpdateGroupActionCommand.d.ts +3 -3
- package/dist-types/commands/CancelInstanceRefreshCommand.d.ts +1 -1
- package/dist-types/commands/CompleteLifecycleActionCommand.d.ts +1 -1
- package/dist-types/commands/CreateAutoScalingGroupCommand.d.ts +38 -41
- package/dist-types/commands/CreateLaunchConfigurationCommand.d.ts +8 -8
- package/dist-types/commands/CreateOrUpdateTagsCommand.d.ts +3 -3
- package/dist-types/commands/DeleteAutoScalingGroupCommand.d.ts +1 -1
- package/dist-types/commands/DeleteLaunchConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/DeleteLifecycleHookCommand.d.ts +1 -1
- package/dist-types/commands/DeleteNotificationConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/DeletePolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteScheduledActionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteTagsCommand.d.ts +3 -3
- package/dist-types/commands/DeleteWarmPoolCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAutoScalingGroupsCommand.d.ts +5 -5
- package/dist-types/commands/DescribeAutoScalingInstancesCommand.d.ts +2 -2
- package/dist-types/commands/DescribeInstanceRefreshesCommand.d.ts +2 -2
- package/dist-types/commands/DescribeLaunchConfigurationsCommand.d.ts +2 -2
- package/dist-types/commands/DescribeLifecycleHooksCommand.d.ts +2 -2
- package/dist-types/commands/DescribeLoadBalancerTargetGroupsCommand.d.ts +11 -2
- package/dist-types/commands/DescribeLoadBalancersCommand.d.ts +12 -3
- package/dist-types/commands/DescribeNotificationConfigurationsCommand.d.ts +2 -2
- package/dist-types/commands/DescribePoliciesCommand.d.ts +3 -3
- package/dist-types/commands/DescribeScalingActivitiesCommand.d.ts +2 -2
- package/dist-types/commands/DescribeScheduledActionsCommand.d.ts +2 -2
- package/dist-types/commands/DescribeTagsCommand.d.ts +4 -4
- package/dist-types/commands/DescribeTrafficSourcesCommand.d.ts +7 -7
- package/dist-types/commands/DescribeWarmPoolCommand.d.ts +1 -1
- package/dist-types/commands/DetachInstancesCommand.d.ts +2 -2
- package/dist-types/commands/DetachLoadBalancerTargetGroupsCommand.d.ts +12 -3
- package/dist-types/commands/DetachLoadBalancersCommand.d.ts +13 -4
- package/dist-types/commands/DetachTrafficSourcesCommand.d.ts +9 -9
- package/dist-types/commands/DisableMetricsCollectionCommand.d.ts +2 -2
- package/dist-types/commands/EnableMetricsCollectionCommand.d.ts +2 -2
- package/dist-types/commands/EnterStandbyCommand.d.ts +2 -2
- package/dist-types/commands/ExecutePolicyCommand.d.ts +1 -1
- package/dist-types/commands/ExitStandbyCommand.d.ts +2 -2
- package/dist-types/commands/GetPredictiveScalingForecastCommand.d.ts +1 -1
- package/dist-types/commands/PutLifecycleHookCommand.d.ts +1 -1
- package/dist-types/commands/PutNotificationConfigurationCommand.d.ts +2 -2
- package/dist-types/commands/PutScalingPolicyCommand.d.ts +27 -33
- package/dist-types/commands/PutScheduledUpdateGroupActionCommand.d.ts +1 -1
- package/dist-types/commands/PutWarmPoolCommand.d.ts +2 -2
- package/dist-types/commands/RecordLifecycleActionHeartbeatCommand.d.ts +1 -1
- package/dist-types/commands/ResumeProcessesCommand.d.ts +2 -2
- package/dist-types/commands/RollbackInstanceRefreshCommand.d.ts +3 -3
- package/dist-types/commands/SetDesiredCapacityCommand.d.ts +1 -1
- package/dist-types/commands/SetInstanceHealthCommand.d.ts +1 -1
- package/dist-types/commands/SetInstanceProtectionCommand.d.ts +2 -2
- package/dist-types/commands/StartInstanceRefreshCommand.d.ts +29 -33
- package/dist-types/commands/SuspendProcessesCommand.d.ts +2 -2
- package/dist-types/commands/TerminateInstanceInAutoScalingGroupCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAutoScalingGroupCommand.d.ts +28 -32
- package/dist-types/models/models_0.d.ts +432 -238
- package/dist-types/pagination/DescribeTrafficSourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +220 -168
- package/dist-types/ts3.4/pagination/DescribeTrafficSourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- 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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
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
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
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
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
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
|
-
|
|
324
|
-
|
|
325
|
-
|
|
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) => {
|