@aws-sdk/client-auto-scaling 3.774.0 → 3.777.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/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/index.js +17 -18
- package/dist-es/AutoScalingClient.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/runtimeExtensions.js +2 -14
- package/dist-types/commands/AttachInstancesCommand.d.ts +8 -5
- package/dist-types/commands/AttachLoadBalancerTargetGroupsCommand.d.ts +8 -5
- package/dist-types/commands/AttachLoadBalancersCommand.d.ts +8 -5
- package/dist-types/commands/AttachTrafficSourcesCommand.d.ts +9 -6
- package/dist-types/commands/BatchDeleteScheduledActionCommand.d.ts +1 -0
- package/dist-types/commands/BatchPutScheduledUpdateGroupActionCommand.d.ts +1 -0
- package/dist-types/commands/CancelInstanceRefreshCommand.d.ts +5 -5
- package/dist-types/commands/CompleteLifecycleActionCommand.d.ts +10 -7
- package/dist-types/commands/CreateAutoScalingGroupCommand.d.ts +88 -79
- package/dist-types/commands/CreateLaunchConfigurationCommand.d.ts +11 -8
- package/dist-types/commands/CreateOrUpdateTagsCommand.d.ts +17 -14
- package/dist-types/commands/DeleteAutoScalingGroupCommand.d.ts +13 -8
- package/dist-types/commands/DeleteLaunchConfigurationCommand.d.ts +7 -4
- package/dist-types/commands/DeleteLifecycleHookCommand.d.ts +8 -5
- package/dist-types/commands/DeleteNotificationConfigurationCommand.d.ts +8 -5
- package/dist-types/commands/DeletePolicyCommand.d.ts +8 -5
- package/dist-types/commands/DeleteScheduledActionCommand.d.ts +8 -5
- package/dist-types/commands/DeleteTagsCommand.d.ts +11 -8
- package/dist-types/commands/DeleteWarmPoolCommand.d.ts +1 -0
- package/dist-types/commands/DescribeAccountLimitsCommand.d.ts +8 -8
- package/dist-types/commands/DescribeAdjustmentTypesCommand.d.ts +8 -8
- package/dist-types/commands/DescribeAutoScalingGroupsCommand.d.ts +41 -41
- package/dist-types/commands/DescribeAutoScalingInstancesCommand.d.ts +13 -13
- package/dist-types/commands/DescribeAutoScalingNotificationTypesCommand.d.ts +5 -5
- package/dist-types/commands/DescribeInstanceRefreshesCommand.d.ts +1 -63
- package/dist-types/commands/DescribeLaunchConfigurationsCommand.d.ts +16 -16
- package/dist-types/commands/DescribeLifecycleHookTypesCommand.d.ts +5 -5
- package/dist-types/commands/DescribeLifecycleHooksCommand.d.ts +13 -13
- package/dist-types/commands/DescribeLoadBalancerTargetGroupsCommand.d.ts +7 -7
- package/dist-types/commands/DescribeLoadBalancersCommand.d.ts +7 -7
- package/dist-types/commands/DescribeMetricCollectionTypesCommand.d.ts +15 -15
- package/dist-types/commands/DescribeNotificationConfigurationsCommand.d.ts +11 -11
- package/dist-types/commands/DescribePoliciesCommand.d.ts +19 -19
- package/dist-types/commands/DescribeScalingActivitiesCommand.d.ts +15 -15
- package/dist-types/commands/DescribeScalingProcessTypesCommand.d.ts +13 -13
- package/dist-types/commands/DescribeScheduledActionsCommand.d.ts +14 -14
- package/dist-types/commands/DescribeTagsCommand.d.ts +17 -17
- package/dist-types/commands/DescribeTerminationPolicyTypesCommand.d.ts +5 -5
- package/dist-types/commands/DescribeTrafficSourcesCommand.d.ts +9 -9
- package/dist-types/commands/DescribeWarmPoolCommand.d.ts +1 -0
- package/dist-types/commands/DetachInstancesCommand.d.ts +15 -15
- package/dist-types/commands/DetachLoadBalancerTargetGroupsCommand.d.ts +8 -5
- package/dist-types/commands/DetachLoadBalancersCommand.d.ts +8 -5
- package/dist-types/commands/DetachTrafficSourcesCommand.d.ts +9 -6
- package/dist-types/commands/DisableMetricsCollectionCommand.d.ts +8 -5
- package/dist-types/commands/EnableMetricsCollectionCommand.d.ts +8 -5
- package/dist-types/commands/EnterStandbyCommand.d.ts +15 -15
- package/dist-types/commands/ExecutePolicyCommand.d.ts +10 -7
- package/dist-types/commands/ExitStandbyCommand.d.ts +14 -14
- package/dist-types/commands/GetPredictiveScalingForecastCommand.d.ts +1 -0
- package/dist-types/commands/PutLifecycleHookCommand.d.ts +11 -8
- package/dist-types/commands/PutNotificationConfigurationCommand.d.ts +9 -6
- package/dist-types/commands/PutScalingPolicyCommand.d.ts +17 -17
- package/dist-types/commands/PutScheduledUpdateGroupActionCommand.d.ts +13 -10
- package/dist-types/commands/PutWarmPoolCommand.d.ts +11 -8
- package/dist-types/commands/RecordLifecycleActionHeartbeatCommand.d.ts +9 -6
- package/dist-types/commands/ResumeProcessesCommand.d.ts +8 -5
- package/dist-types/commands/RollbackInstanceRefreshCommand.d.ts +1 -0
- package/dist-types/commands/SetDesiredCapacityCommand.d.ts +9 -6
- package/dist-types/commands/SetInstanceHealthCommand.d.ts +8 -5
- package/dist-types/commands/SetInstanceProtectionCommand.d.ts +16 -11
- package/dist-types/commands/StartInstanceRefreshCommand.d.ts +16 -16
- package/dist-types/commands/SuspendProcessesCommand.d.ts +8 -5
- package/dist-types/commands/TerminateInstanceInAutoScalingGroupCommand.d.ts +8 -5
- package/dist-types/commands/UpdateAutoScalingGroupCommand.d.ts +13 -10
- package/package.json +34 -34
|
@@ -40,8 +40,6 @@ const defaultAutoScalingHttpAuthSchemeProvider = (authParameters) => {
|
|
|
40
40
|
exports.defaultAutoScalingHttpAuthSchemeProvider = defaultAutoScalingHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
42
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
-
return {
|
|
44
|
-
...config_0,
|
|
45
|
-
};
|
|
43
|
+
return Object.assign(config_0, {});
|
|
46
44
|
};
|
|
47
45
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/index.js
CHANGED
|
@@ -166,12 +166,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
|
166
166
|
|
|
167
167
|
// src/endpoint/EndpointParameters.ts
|
|
168
168
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
169
|
-
return {
|
|
170
|
-
...options,
|
|
169
|
+
return Object.assign(options, {
|
|
171
170
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
172
171
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
173
172
|
defaultSigningName: "autoscaling"
|
|
174
|
-
};
|
|
173
|
+
});
|
|
175
174
|
}, "resolveClientEndpointParameters");
|
|
176
175
|
var commonParams = {
|
|
177
176
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -228,22 +227,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
|
228
227
|
}, "resolveHttpAuthRuntimeConfig");
|
|
229
228
|
|
|
230
229
|
// src/runtimeExtensions.ts
|
|
231
|
-
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
232
230
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
233
|
-
const extensionConfiguration =
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
231
|
+
const extensionConfiguration = Object.assign(
|
|
232
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
233
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
234
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
235
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
236
|
+
);
|
|
239
237
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
240
|
-
return
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
238
|
+
return Object.assign(
|
|
239
|
+
runtimeConfig,
|
|
240
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
241
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
242
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
243
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
244
|
+
);
|
|
247
245
|
}, "resolveRuntimeExtensions");
|
|
248
246
|
|
|
249
247
|
// src/AutoScalingClient.ts
|
|
@@ -257,6 +255,8 @@ var AutoScalingClient = class extends import_smithy_client.Client {
|
|
|
257
255
|
config;
|
|
258
256
|
constructor(...[configuration]) {
|
|
259
257
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
258
|
+
super(_config_0);
|
|
259
|
+
this.initConfig = _config_0;
|
|
260
260
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
261
261
|
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
262
262
|
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
@@ -265,7 +265,6 @@ var AutoScalingClient = class extends import_smithy_client.Client {
|
|
|
265
265
|
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
266
266
|
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
267
267
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
268
|
-
super(_config_8);
|
|
269
268
|
this.config = _config_8;
|
|
270
269
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
271
270
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
@@ -17,6 +17,8 @@ export class AutoScalingClient extends __Client {
|
|
|
17
17
|
config;
|
|
18
18
|
constructor(...[configuration]) {
|
|
19
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
20
|
+
super(_config_0);
|
|
21
|
+
this.initConfig = _config_0;
|
|
20
22
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
23
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
24
|
const _config_3 = resolveRetryConfig(_config_2);
|
|
@@ -25,7 +27,6 @@ export class AutoScalingClient extends __Client {
|
|
|
25
27
|
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
28
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
29
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
-
super(_config_8);
|
|
29
30
|
this.config = _config_8;
|
|
30
31
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
32
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -35,7 +35,5 @@ export const defaultAutoScalingHttpAuthSchemeProvider = (authParameters) => {
|
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
37
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
-
return {
|
|
39
|
-
...config_0,
|
|
40
|
-
};
|
|
38
|
+
return Object.assign(config_0, {});
|
|
41
39
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
-
return {
|
|
3
|
-
...options,
|
|
2
|
+
return Object.assign(options, {
|
|
4
3
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
4
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
6
5
|
defaultSigningName: "autoscaling",
|
|
7
|
-
};
|
|
6
|
+
});
|
|
8
7
|
};
|
|
9
8
|
export const commonParams = {
|
|
10
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
-
const asPartial = (t) => t;
|
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const extensionConfiguration =
|
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
-
};
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
-
return
|
|
15
|
-
...runtimeConfig,
|
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
-
};
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
21
9
|
};
|
|
@@ -71,21 +71,24 @@ declare const AttachInstancesCommand_base: {
|
|
|
71
71
|
* @throws {@link AutoScalingServiceException}
|
|
72
72
|
* <p>Base exception class for all service exceptions from AutoScaling service.</p>
|
|
73
73
|
*
|
|
74
|
-
*
|
|
74
|
+
*
|
|
75
75
|
* @example To attach an instance to an Auto Scaling group
|
|
76
76
|
* ```javascript
|
|
77
77
|
* // This example attaches the specified instance to the specified Auto Scaling group.
|
|
78
78
|
* const input = {
|
|
79
|
-
*
|
|
80
|
-
*
|
|
79
|
+
* AutoScalingGroupName: "my-auto-scaling-group",
|
|
80
|
+
* InstanceIds: [
|
|
81
81
|
* "i-93633f9b"
|
|
82
82
|
* ]
|
|
83
83
|
* };
|
|
84
84
|
* const command = new AttachInstancesCommand(input);
|
|
85
|
-
* await client.send(command);
|
|
86
|
-
*
|
|
85
|
+
* const response = await client.send(command);
|
|
86
|
+
* /* response is
|
|
87
|
+
* { /* metadata only *\/ }
|
|
88
|
+
* *\/
|
|
87
89
|
* ```
|
|
88
90
|
*
|
|
91
|
+
* @public
|
|
89
92
|
*/
|
|
90
93
|
export declare class AttachInstancesCommand extends AttachInstancesCommand_base {
|
|
91
94
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -92,21 +92,24 @@ declare const AttachLoadBalancerTargetGroupsCommand_base: {
|
|
|
92
92
|
* @throws {@link AutoScalingServiceException}
|
|
93
93
|
* <p>Base exception class for all service exceptions from AutoScaling service.</p>
|
|
94
94
|
*
|
|
95
|
-
*
|
|
95
|
+
*
|
|
96
96
|
* @example To attach a target group to an Auto Scaling group
|
|
97
97
|
* ```javascript
|
|
98
98
|
* // This example attaches the specified target group to the specified Auto Scaling group.
|
|
99
99
|
* const input = {
|
|
100
|
-
*
|
|
101
|
-
*
|
|
100
|
+
* AutoScalingGroupName: "my-auto-scaling-group",
|
|
101
|
+
* TargetGroupARNs: [
|
|
102
102
|
* "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"
|
|
103
103
|
* ]
|
|
104
104
|
* };
|
|
105
105
|
* const command = new AttachLoadBalancerTargetGroupsCommand(input);
|
|
106
|
-
* await client.send(command);
|
|
107
|
-
*
|
|
106
|
+
* const response = await client.send(command);
|
|
107
|
+
* /* response is
|
|
108
|
+
* { /* metadata only *\/ }
|
|
109
|
+
* *\/
|
|
108
110
|
* ```
|
|
109
111
|
*
|
|
112
|
+
* @public
|
|
110
113
|
*/
|
|
111
114
|
export declare class AttachLoadBalancerTargetGroupsCommand extends AttachLoadBalancerTargetGroupsCommand_base {
|
|
112
115
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -79,21 +79,24 @@ declare const AttachLoadBalancersCommand_base: {
|
|
|
79
79
|
* @throws {@link AutoScalingServiceException}
|
|
80
80
|
* <p>Base exception class for all service exceptions from AutoScaling service.</p>
|
|
81
81
|
*
|
|
82
|
-
*
|
|
82
|
+
*
|
|
83
83
|
* @example To attach a load balancer to an Auto Scaling group
|
|
84
84
|
* ```javascript
|
|
85
85
|
* // This example attaches the specified load balancer to the specified Auto Scaling group.
|
|
86
86
|
* const input = {
|
|
87
|
-
*
|
|
88
|
-
*
|
|
87
|
+
* AutoScalingGroupName: "my-auto-scaling-group",
|
|
88
|
+
* LoadBalancerNames: [
|
|
89
89
|
* "my-load-balancer"
|
|
90
90
|
* ]
|
|
91
91
|
* };
|
|
92
92
|
* const command = new AttachLoadBalancersCommand(input);
|
|
93
|
-
* await client.send(command);
|
|
94
|
-
*
|
|
93
|
+
* const response = await client.send(command);
|
|
94
|
+
* /* response is
|
|
95
|
+
* { /* metadata only *\/ }
|
|
96
|
+
* *\/
|
|
95
97
|
* ```
|
|
96
98
|
*
|
|
99
|
+
* @public
|
|
97
100
|
*/
|
|
98
101
|
export declare class AttachLoadBalancersCommand extends AttachLoadBalancersCommand_base {
|
|
99
102
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -90,23 +90,26 @@ declare const AttachTrafficSourcesCommand_base: {
|
|
|
90
90
|
* @throws {@link AutoScalingServiceException}
|
|
91
91
|
* <p>Base exception class for all service exceptions from AutoScaling service.</p>
|
|
92
92
|
*
|
|
93
|
-
*
|
|
93
|
+
*
|
|
94
94
|
* @example To attach a target group to an Auto Scaling group
|
|
95
95
|
* ```javascript
|
|
96
96
|
* // This example attaches the specified target group to the specified Auto Scaling group.
|
|
97
97
|
* const input = {
|
|
98
|
-
*
|
|
99
|
-
*
|
|
98
|
+
* AutoScalingGroupName: "my-auto-scaling-group",
|
|
99
|
+
* TrafficSources: [
|
|
100
100
|
* {
|
|
101
|
-
*
|
|
101
|
+
* Identifier: "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"
|
|
102
102
|
* }
|
|
103
103
|
* ]
|
|
104
104
|
* };
|
|
105
105
|
* const command = new AttachTrafficSourcesCommand(input);
|
|
106
|
-
* await client.send(command);
|
|
107
|
-
*
|
|
106
|
+
* const response = await client.send(command);
|
|
107
|
+
* /* response is
|
|
108
|
+
* { /* empty *\/ }
|
|
109
|
+
* *\/
|
|
108
110
|
* ```
|
|
109
111
|
*
|
|
112
|
+
* @public
|
|
110
113
|
*/
|
|
111
114
|
export declare class AttachTrafficSourcesCommand extends AttachTrafficSourcesCommand_base {
|
|
112
115
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -67,6 +67,7 @@ declare const BatchDeleteScheduledActionCommand_base: {
|
|
|
67
67
|
* @throws {@link AutoScalingServiceException}
|
|
68
68
|
* <p>Base exception class for all service exceptions from AutoScaling service.</p>
|
|
69
69
|
*
|
|
70
|
+
*
|
|
70
71
|
* @public
|
|
71
72
|
*/
|
|
72
73
|
export declare class BatchDeleteScheduledActionCommand extends BatchDeleteScheduledActionCommand_base {
|
|
@@ -85,6 +85,7 @@ declare const BatchPutScheduledUpdateGroupActionCommand_base: {
|
|
|
85
85
|
* @throws {@link AutoScalingServiceException}
|
|
86
86
|
* <p>Base exception class for all service exceptions from AutoScaling service.</p>
|
|
87
87
|
*
|
|
88
|
+
*
|
|
88
89
|
* @public
|
|
89
90
|
*/
|
|
90
91
|
export declare class BatchPutScheduledUpdateGroupActionCommand extends BatchPutScheduledUpdateGroupActionCommand_base {
|
|
@@ -75,23 +75,23 @@ declare const CancelInstanceRefreshCommand_base: {
|
|
|
75
75
|
* @throws {@link AutoScalingServiceException}
|
|
76
76
|
* <p>Base exception class for all service exceptions from AutoScaling service.</p>
|
|
77
77
|
*
|
|
78
|
-
*
|
|
78
|
+
*
|
|
79
79
|
* @example To cancel an instance refresh
|
|
80
80
|
* ```javascript
|
|
81
81
|
* // This example cancels an instance refresh operation in progress.
|
|
82
82
|
* const input = {
|
|
83
|
-
*
|
|
83
|
+
* AutoScalingGroupName: "my-auto-scaling-group"
|
|
84
84
|
* };
|
|
85
85
|
* const command = new CancelInstanceRefreshCommand(input);
|
|
86
86
|
* const response = await client.send(command);
|
|
87
|
-
* /* response
|
|
87
|
+
* /* response is
|
|
88
88
|
* {
|
|
89
|
-
*
|
|
89
|
+
* InstanceRefreshId: "08b91cf7-8fa6-48af-b6a6-d227f40f1b9b"
|
|
90
90
|
* }
|
|
91
91
|
* *\/
|
|
92
|
-
* // example id: to-cancel-an-instance-refresh-1592960979817
|
|
93
92
|
* ```
|
|
94
93
|
*
|
|
94
|
+
* @public
|
|
95
95
|
*/
|
|
96
96
|
export declare class CancelInstanceRefreshCommand extends CancelInstanceRefreshCommand_base {
|
|
97
97
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -97,21 +97,24 @@ declare const CompleteLifecycleActionCommand_base: {
|
|
|
97
97
|
* @throws {@link AutoScalingServiceException}
|
|
98
98
|
* <p>Base exception class for all service exceptions from AutoScaling service.</p>
|
|
99
99
|
*
|
|
100
|
-
*
|
|
100
|
+
*
|
|
101
101
|
* @example To complete the lifecycle action
|
|
102
102
|
* ```javascript
|
|
103
103
|
* // This example notifies Auto Scaling that the specified lifecycle action is complete so that it can finish launching or terminating the instance.
|
|
104
104
|
* const input = {
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
105
|
+
* AutoScalingGroupName: "my-auto-scaling-group",
|
|
106
|
+
* LifecycleActionResult: "CONTINUE",
|
|
107
|
+
* LifecycleActionToken: "bcd2f1b8-9a78-44d3-8a7a-4dd07d7cf635",
|
|
108
|
+
* LifecycleHookName: "my-lifecycle-hook"
|
|
109
109
|
* };
|
|
110
110
|
* const command = new CompleteLifecycleActionCommand(input);
|
|
111
|
-
* await client.send(command);
|
|
112
|
-
*
|
|
111
|
+
* const response = await client.send(command);
|
|
112
|
+
* /* response is
|
|
113
|
+
* { /* metadata only *\/ }
|
|
114
|
+
* *\/
|
|
113
115
|
* ```
|
|
114
116
|
*
|
|
117
|
+
* @public
|
|
115
118
|
*/
|
|
116
119
|
export declare class CompleteLifecycleActionCommand extends CompleteLifecycleActionCommand_base {
|
|
117
120
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -267,137 +267,146 @@ declare const CreateAutoScalingGroupCommand_base: {
|
|
|
267
267
|
* @throws {@link AutoScalingServiceException}
|
|
268
268
|
* <p>Base exception class for all service exceptions from AutoScaling service.</p>
|
|
269
269
|
*
|
|
270
|
-
* @public
|
|
271
|
-
* @example To create an Auto Scaling group
|
|
272
|
-
* ```javascript
|
|
273
|
-
* // This example creates an Auto Scaling group.
|
|
274
|
-
* const input = {
|
|
275
|
-
* "AutoScalingGroupName": "my-auto-scaling-group",
|
|
276
|
-
* "DefaultInstanceWarmup": 120,
|
|
277
|
-
* "LaunchTemplate": {
|
|
278
|
-
* "LaunchTemplateName": "my-template-for-auto-scaling",
|
|
279
|
-
* "Version": "$Default"
|
|
280
|
-
* },
|
|
281
|
-
* "MaxInstanceLifetime": 2592000,
|
|
282
|
-
* "MaxSize": 3,
|
|
283
|
-
* "MinSize": 1,
|
|
284
|
-
* "VPCZoneIdentifier": "subnet-057fa0918fEXAMPLE"
|
|
285
|
-
* };
|
|
286
|
-
* const command = new CreateAutoScalingGroupCommand(input);
|
|
287
|
-
* await client.send(command);
|
|
288
|
-
* // example id: autoscaling-create-auto-scaling-group-1
|
|
289
|
-
* ```
|
|
290
270
|
*
|
|
291
271
|
* @example To create an Auto Scaling group with an attached target group
|
|
292
272
|
* ```javascript
|
|
293
273
|
* // This example creates an Auto Scaling group and attaches the specified target group.
|
|
294
274
|
* const input = {
|
|
295
|
-
*
|
|
296
|
-
*
|
|
297
|
-
*
|
|
298
|
-
*
|
|
299
|
-
*
|
|
300
|
-
*
|
|
275
|
+
* AutoScalingGroupName: "my-auto-scaling-group",
|
|
276
|
+
* HealthCheckGracePeriod: 300,
|
|
277
|
+
* HealthCheckType: "ELB",
|
|
278
|
+
* LaunchTemplate: {
|
|
279
|
+
* LaunchTemplateName: "my-template-for-auto-scaling",
|
|
280
|
+
* Version: "$Default"
|
|
301
281
|
* },
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
*
|
|
282
|
+
* MaxSize: 3,
|
|
283
|
+
* MinSize: 1,
|
|
284
|
+
* TargetGroupARNs: [
|
|
305
285
|
* "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"
|
|
306
286
|
* ],
|
|
307
|
-
*
|
|
287
|
+
* VPCZoneIdentifier: "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE"
|
|
308
288
|
* };
|
|
309
289
|
* const command = new CreateAutoScalingGroupCommand(input);
|
|
310
|
-
* await client.send(command);
|
|
311
|
-
*
|
|
290
|
+
* const response = await client.send(command);
|
|
291
|
+
* /* response is
|
|
292
|
+
* { /* metadata only *\/ }
|
|
293
|
+
* *\/
|
|
312
294
|
* ```
|
|
313
295
|
*
|
|
314
296
|
* @example To create an Auto Scaling group with a mixed instances policy
|
|
315
297
|
* ```javascript
|
|
316
298
|
* // This example creates an Auto Scaling group with a mixed instances policy. It specifies the c5.large, c5a.large, and c6g.large instance types and defines a different launch template for the c6g.large instance type.
|
|
317
299
|
* const input = {
|
|
318
|
-
*
|
|
319
|
-
*
|
|
320
|
-
*
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
*
|
|
300
|
+
* AutoScalingGroupName: "my-asg",
|
|
301
|
+
* DesiredCapacity: 3,
|
|
302
|
+
* MaxSize: 5,
|
|
303
|
+
* MinSize: 1,
|
|
304
|
+
* MixedInstancesPolicy: {
|
|
305
|
+
* InstancesDistribution: {
|
|
306
|
+
* OnDemandBaseCapacity: 1,
|
|
307
|
+
* OnDemandPercentageAboveBaseCapacity: 50,
|
|
308
|
+
* SpotAllocationStrategy: "price-capacity-optimized"
|
|
327
309
|
* },
|
|
328
|
-
*
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
*
|
|
310
|
+
* LaunchTemplate: {
|
|
311
|
+
* LaunchTemplateSpecification: {
|
|
312
|
+
* LaunchTemplateName: "my-launch-template-for-x86",
|
|
313
|
+
* Version: "$Default"
|
|
332
314
|
* },
|
|
333
|
-
*
|
|
315
|
+
* Overrides: [
|
|
334
316
|
* {
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
*
|
|
338
|
-
*
|
|
317
|
+
* InstanceType: "c6g.large",
|
|
318
|
+
* LaunchTemplateSpecification: {
|
|
319
|
+
* LaunchTemplateName: "my-launch-template-for-arm",
|
|
320
|
+
* Version: "$Default"
|
|
339
321
|
* }
|
|
340
322
|
* },
|
|
341
323
|
* {
|
|
342
|
-
*
|
|
324
|
+
* InstanceType: "c5.large"
|
|
343
325
|
* },
|
|
344
326
|
* {
|
|
345
|
-
*
|
|
327
|
+
* InstanceType: "c5a.large"
|
|
346
328
|
* }
|
|
347
329
|
* ]
|
|
348
330
|
* }
|
|
349
331
|
* },
|
|
350
|
-
*
|
|
332
|
+
* VPCZoneIdentifier: "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE"
|
|
351
333
|
* };
|
|
352
334
|
* const command = new CreateAutoScalingGroupCommand(input);
|
|
353
|
-
* await client.send(command);
|
|
354
|
-
*
|
|
335
|
+
* const response = await client.send(command);
|
|
336
|
+
* /* response is
|
|
337
|
+
* { /* metadata only *\/ }
|
|
338
|
+
* *\/
|
|
355
339
|
* ```
|
|
356
340
|
*
|
|
357
341
|
* @example To create an Auto Scaling group using attribute-based instance type selection
|
|
358
342
|
* ```javascript
|
|
359
343
|
* // This example creates an Auto Scaling group using attribute-based instance type selection. It requires the instance types to have a minimum of four vCPUs and a maximum of eight vCPUs, a minimum of 16,384 MiB of memory, and an Intel manufactured CPU.
|
|
360
344
|
* const input = {
|
|
361
|
-
*
|
|
362
|
-
*
|
|
363
|
-
*
|
|
364
|
-
*
|
|
365
|
-
*
|
|
366
|
-
*
|
|
367
|
-
*
|
|
368
|
-
*
|
|
369
|
-
*
|
|
345
|
+
* AutoScalingGroupName: "my-asg",
|
|
346
|
+
* DesiredCapacity: 4,
|
|
347
|
+
* DesiredCapacityType: "units",
|
|
348
|
+
* MaxSize: 100,
|
|
349
|
+
* MinSize: 0,
|
|
350
|
+
* MixedInstancesPolicy: {
|
|
351
|
+
* InstancesDistribution: {
|
|
352
|
+
* OnDemandPercentageAboveBaseCapacity: 50,
|
|
353
|
+
* SpotAllocationStrategy: "price-capacity-optimized"
|
|
370
354
|
* },
|
|
371
|
-
*
|
|
372
|
-
*
|
|
373
|
-
*
|
|
374
|
-
*
|
|
355
|
+
* LaunchTemplate: {
|
|
356
|
+
* LaunchTemplateSpecification: {
|
|
357
|
+
* LaunchTemplateName: "my-template-for-auto-scaling",
|
|
358
|
+
* Version: "$Default"
|
|
375
359
|
* },
|
|
376
|
-
*
|
|
360
|
+
* Overrides: [
|
|
377
361
|
* {
|
|
378
|
-
*
|
|
379
|
-
*
|
|
362
|
+
* InstanceRequirements: {
|
|
363
|
+
* CpuManufacturers: [
|
|
380
364
|
* "intel"
|
|
381
365
|
* ],
|
|
382
|
-
*
|
|
383
|
-
*
|
|
366
|
+
* MemoryMiB: {
|
|
367
|
+
* Min: 16384
|
|
384
368
|
* },
|
|
385
|
-
*
|
|
386
|
-
*
|
|
387
|
-
*
|
|
369
|
+
* VCpuCount: {
|
|
370
|
+
* Max: 8,
|
|
371
|
+
* Min: 4
|
|
388
372
|
* }
|
|
389
373
|
* }
|
|
390
374
|
* }
|
|
391
375
|
* ]
|
|
392
376
|
* }
|
|
393
377
|
* },
|
|
394
|
-
*
|
|
378
|
+
* VPCZoneIdentifier: "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE"
|
|
395
379
|
* };
|
|
396
380
|
* const command = new CreateAutoScalingGroupCommand(input);
|
|
397
|
-
* await client.send(command);
|
|
398
|
-
*
|
|
381
|
+
* const response = await client.send(command);
|
|
382
|
+
* /* response is
|
|
383
|
+
* { /* metadata only *\/ }
|
|
384
|
+
* *\/
|
|
385
|
+
* ```
|
|
386
|
+
*
|
|
387
|
+
* @example To create an Auto Scaling group
|
|
388
|
+
* ```javascript
|
|
389
|
+
* // This example creates an Auto Scaling group.
|
|
390
|
+
* const input = {
|
|
391
|
+
* AutoScalingGroupName: "my-auto-scaling-group",
|
|
392
|
+
* DefaultInstanceWarmup: 120,
|
|
393
|
+
* LaunchTemplate: {
|
|
394
|
+
* LaunchTemplateName: "my-template-for-auto-scaling",
|
|
395
|
+
* Version: "$Default"
|
|
396
|
+
* },
|
|
397
|
+
* MaxInstanceLifetime: 2592000,
|
|
398
|
+
* MaxSize: 3,
|
|
399
|
+
* MinSize: 1,
|
|
400
|
+
* VPCZoneIdentifier: "subnet-057fa0918fEXAMPLE"
|
|
401
|
+
* };
|
|
402
|
+
* const command = new CreateAutoScalingGroupCommand(input);
|
|
403
|
+
* const response = await client.send(command);
|
|
404
|
+
* /* response is
|
|
405
|
+
* { /* metadata only *\/ }
|
|
406
|
+
* *\/
|
|
399
407
|
* ```
|
|
400
408
|
*
|
|
409
|
+
* @public
|
|
401
410
|
*/
|
|
402
411
|
export declare class CreateAutoScalingGroupCommand extends CreateAutoScalingGroupCommand_base {
|
|
403
412
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -120,24 +120,27 @@ declare const CreateLaunchConfigurationCommand_base: {
|
|
|
120
120
|
* @throws {@link AutoScalingServiceException}
|
|
121
121
|
* <p>Base exception class for all service exceptions from AutoScaling service.</p>
|
|
122
122
|
*
|
|
123
|
-
*
|
|
123
|
+
*
|
|
124
124
|
* @example To create a launch configuration
|
|
125
125
|
* ```javascript
|
|
126
126
|
* // This example creates a launch configuration.
|
|
127
127
|
* const input = {
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
128
|
+
* IamInstanceProfile: "my-iam-role",
|
|
129
|
+
* ImageId: "ami-12345678",
|
|
130
|
+
* InstanceType: "m3.medium",
|
|
131
|
+
* LaunchConfigurationName: "my-launch-config",
|
|
132
|
+
* SecurityGroups: [
|
|
133
133
|
* "sg-eb2af88e"
|
|
134
134
|
* ]
|
|
135
135
|
* };
|
|
136
136
|
* const command = new CreateLaunchConfigurationCommand(input);
|
|
137
|
-
* await client.send(command);
|
|
138
|
-
*
|
|
137
|
+
* const response = await client.send(command);
|
|
138
|
+
* /* response is
|
|
139
|
+
* { /* metadata only *\/ }
|
|
140
|
+
* *\/
|
|
139
141
|
* ```
|
|
140
142
|
*
|
|
143
|
+
* @public
|
|
141
144
|
*/
|
|
142
145
|
export declare class CreateLaunchConfigurationCommand extends CreateLaunchConfigurationCommand_base {
|
|
143
146
|
/** @internal type navigation helper, not in runtime. */
|