@aws-sdk/client-auto-scaling 3.202.0 → 3.205.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/CHANGELOG.md +22 -0
- package/dist-cjs/models/models_0.js +7 -3
- package/dist-cjs/protocols/Aws_query.js +70 -0
- package/dist-cjs/runtimeConfig.browser.js +0 -3
- package/dist-cjs/runtimeConfig.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +3 -0
- package/dist-es/models/models_0.js +3 -0
- package/dist-es/protocols/Aws_query.js +70 -0
- package/dist-es/runtimeConfig.browser.js +0 -3
- package/dist-es/runtimeConfig.js +0 -3
- package/dist-es/runtimeConfig.shared.js +3 -0
- package/dist-types/AutoScaling.d.ts +15 -4
- package/dist-types/commands/CreateLaunchConfigurationCommand.d.ts +6 -0
- package/dist-types/commands/DeleteAutoScalingGroupCommand.d.ts +9 -4
- package/dist-types/models/models_0.d.ts +181 -91
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +9 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.205.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.204.0...v3.205.0) (2022-11-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-auto-scaling:** This release adds support for two new attributes for attribute-based instance type selection - NetworkBandwidthGbps and AllowedInstanceTypes. ([bc7e079](https://github.com/aws/aws-sdk-js-v3/commit/bc7e079d15640f04e6dae55082abfd06cab1c6b7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.204.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.203.0...v3.204.0) (2022-11-04)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **clients:** update client endpoints as of 2022-11-04 ([7471107](https://github.com/aws/aws-sdk-js-v3/commit/7471107c0881b5d9e474447a660dd3354a50b195))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [3.202.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.201.0...v3.202.0) (2022-11-02)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ScheduledUpdateGroupActionRequestFilterSensitiveLog = exports.BatchPutScheduledUpdateGroupActionAnswerFilterSensitiveLog = exports.BatchDeleteScheduledActionTypeFilterSensitiveLog = exports.BatchDeleteScheduledActionAnswerFilterSensitiveLog = exports.FailedScheduledUpdateGroupActionRequestFilterSensitiveLog = exports.AttachLoadBalancerTargetGroupsTypeFilterSensitiveLog = exports.AttachLoadBalancerTargetGroupsResultTypeFilterSensitiveLog = exports.AttachLoadBalancersTypeFilterSensitiveLog = exports.AttachLoadBalancersResultTypeFilterSensitiveLog = exports.AttachInstancesQueryFilterSensitiveLog = exports.AlarmFilterSensitiveLog = exports.AdjustmentTypeFilterSensitiveLog = exports.ActivityTypeFilterSensitiveLog = exports.ActivitiesTypeFilterSensitiveLog = exports.ActivityFilterSensitiveLog = exports.AcceleratorTotalMemoryMiBRequestFilterSensitiveLog = exports.AcceleratorCountRequestFilterSensitiveLog = exports.RefreshStrategy = exports.InstanceRefreshInProgressFault = exports.MetricType = exports.MetricStatistic = exports.PredictiveScalingMode = exports.PredefinedScalingMetricType = exports.PredefinedMetricPairType = exports.PredefinedLoadMetricType = exports.PredictiveScalingMaxCapacityBreachBehavior = exports.InstanceRefreshStatus = 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
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.UpdateAutoScalingGroupTypeFilterSensitiveLog = exports.TerminateInstanceInAutoScalingGroupTypeFilterSensitiveLog = exports.StartInstanceRefreshTypeFilterSensitiveLog = exports.StartInstanceRefreshAnswerFilterSensitiveLog = exports.SetInstanceProtectionQueryFilterSensitiveLog = exports.SetInstanceProtectionAnswerFilterSensitiveLog = exports.SetInstanceHealthQueryFilterSensitiveLog = exports.SetDesiredCapacityTypeFilterSensitiveLog = exports.ScalingProcessQueryFilterSensitiveLog = exports.RecordLifecycleActionHeartbeatTypeFilterSensitiveLog = exports.RecordLifecycleActionHeartbeatAnswerFilterSensitiveLog = exports.PutWarmPoolTypeFilterSensitiveLog = exports.PutWarmPoolAnswerFilterSensitiveLog = exports.PutScheduledUpdateGroupActionTypeFilterSensitiveLog = exports.PutScalingPolicyTypeFilterSensitiveLog = exports.PolicyARNTypeFilterSensitiveLog = exports.PutNotificationConfigurationTypeFilterSensitiveLog = exports.PutLifecycleHookTypeFilterSensitiveLog = exports.PutLifecycleHookAnswerFilterSensitiveLog = exports.GetPredictiveScalingForecastTypeFilterSensitiveLog = exports.GetPredictiveScalingForecastAnswerFilterSensitiveLog = exports.LoadForecastFilterSensitiveLog = exports.CapacityForecastFilterSensitiveLog = exports.ExitStandbyQueryFilterSensitiveLog = exports.ExitStandbyAnswerFilterSensitiveLog = exports.ExecutePolicyTypeFilterSensitiveLog = exports.EnterStandbyQueryFilterSensitiveLog = exports.EnterStandbyAnswerFilterSensitiveLog = exports.EnableMetricsCollectionQueryFilterSensitiveLog = exports.DisableMetricsCollectionQueryFilterSensitiveLog = exports.DetachLoadBalancerTargetGroupsTypeFilterSensitiveLog = exports.DetachLoadBalancerTargetGroupsResultTypeFilterSensitiveLog = exports.DetachLoadBalancersTypeFilterSensitiveLog = exports.DetachLoadBalancersResultTypeFilterSensitiveLog = exports.DetachInstancesQueryFilterSensitiveLog = exports.DetachInstancesAnswerFilterSensitiveLog = exports.DescribeWarmPoolTypeFilterSensitiveLog = exports.DescribeWarmPoolAnswerFilterSensitiveLog = exports.DescribeTerminationPolicyTypesAnswerFilterSensitiveLog = exports.TagsTypeFilterSensitiveLog = exports.DescribeTagsTypeFilterSensitiveLog = exports.ScheduledActionsTypeFilterSensitiveLog = exports.ScheduledUpdateGroupActionFilterSensitiveLog = exports.DescribeScheduledActionsTypeFilterSensitiveLog = exports.ProcessesTypeFilterSensitiveLog = void 0;
|
|
4
|
+
exports.AutoScalingInstanceDetailsFilterSensitiveLog = exports.AutoScalingGroupsTypeFilterSensitiveLog = exports.AutoScalingGroupFilterSensitiveLog = exports.WarmPoolConfigurationFilterSensitiveLog = exports.InstanceReusePolicyFilterSensitiveLog = exports.TagDescriptionFilterSensitiveLog = exports.SuspendedProcessFilterSensitiveLog = exports.InstanceFilterSensitiveLog = exports.EnabledMetricFilterSensitiveLog = exports.AutoScalingGroupNamesTypeFilterSensitiveLog = exports.FilterFilterSensitiveLog = exports.DescribeAdjustmentTypesAnswerFilterSensitiveLog = exports.DescribeAccountLimitsAnswerFilterSensitiveLog = exports.DeleteWarmPoolTypeFilterSensitiveLog = exports.DeleteWarmPoolAnswerFilterSensitiveLog = exports.DeleteTagsTypeFilterSensitiveLog = exports.DeleteScheduledActionTypeFilterSensitiveLog = exports.DeletePolicyTypeFilterSensitiveLog = exports.DeleteNotificationConfigurationTypeFilterSensitiveLog = exports.DeleteLifecycleHookTypeFilterSensitiveLog = exports.DeleteLifecycleHookAnswerFilterSensitiveLog = exports.LaunchConfigurationNameTypeFilterSensitiveLog = exports.DeleteAutoScalingGroupTypeFilterSensitiveLog = exports.CreateOrUpdateTagsTypeFilterSensitiveLog = exports.CreateLaunchConfigurationTypeFilterSensitiveLog = exports.InstanceMetadataOptionsFilterSensitiveLog = exports.InstanceMonitoringFilterSensitiveLog = exports.BlockDeviceMappingFilterSensitiveLog = exports.EbsFilterSensitiveLog = exports.CreateAutoScalingGroupTypeFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.MixedInstancesPolicyFilterSensitiveLog = exports.LaunchTemplateFilterSensitiveLog = exports.LaunchTemplateOverridesFilterSensitiveLog = exports.InstanceRequirementsFilterSensitiveLog = exports.VCpuCountRequestFilterSensitiveLog = exports.TotalLocalStorageGBRequestFilterSensitiveLog = exports.NetworkInterfaceCountRequestFilterSensitiveLog = exports.NetworkBandwidthGbpsRequestFilterSensitiveLog = exports.MemoryMiBRequestFilterSensitiveLog = exports.MemoryGiBPerVCpuRequestFilterSensitiveLog = exports.BaselineEbsBandwidthMbpsRequestFilterSensitiveLog = exports.InstancesDistributionFilterSensitiveLog = exports.LifecycleHookSpecificationFilterSensitiveLog = exports.LaunchTemplateSpecificationFilterSensitiveLog = exports.CompleteLifecycleActionTypeFilterSensitiveLog = exports.CompleteLifecycleActionAnswerFilterSensitiveLog = exports.CancelInstanceRefreshTypeFilterSensitiveLog = exports.CancelInstanceRefreshAnswerFilterSensitiveLog = exports.BatchPutScheduledUpdateGroupActionTypeFilterSensitiveLog = void 0;
|
|
5
|
+
exports.DescribeScalingActivitiesTypeFilterSensitiveLog = exports.PoliciesTypeFilterSensitiveLog = exports.ScalingPolicyFilterSensitiveLog = exports.TargetTrackingConfigurationFilterSensitiveLog = exports.PredefinedMetricSpecificationFilterSensitiveLog = exports.CustomizedMetricSpecificationFilterSensitiveLog = exports.StepAdjustmentFilterSensitiveLog = exports.PredictiveScalingConfigurationFilterSensitiveLog = exports.PredictiveScalingMetricSpecificationFilterSensitiveLog = exports.PredictiveScalingPredefinedScalingMetricFilterSensitiveLog = exports.PredictiveScalingPredefinedMetricPairFilterSensitiveLog = exports.PredictiveScalingPredefinedLoadMetricFilterSensitiveLog = exports.PredictiveScalingCustomizedScalingMetricFilterSensitiveLog = exports.PredictiveScalingCustomizedLoadMetricFilterSensitiveLog = exports.PredictiveScalingCustomizedCapacityMetricFilterSensitiveLog = exports.MetricDataQueryFilterSensitiveLog = exports.MetricStatFilterSensitiveLog = exports.MetricFilterSensitiveLog = exports.MetricDimensionFilterSensitiveLog = exports.DescribePoliciesTypeFilterSensitiveLog = exports.DescribeNotificationConfigurationsTypeFilterSensitiveLog = exports.DescribeNotificationConfigurationsAnswerFilterSensitiveLog = exports.NotificationConfigurationFilterSensitiveLog = exports.DescribeMetricCollectionTypesAnswerFilterSensitiveLog = exports.MetricCollectionTypeFilterSensitiveLog = exports.MetricGranularityTypeFilterSensitiveLog = exports.DescribeLoadBalancerTargetGroupsResponseFilterSensitiveLog = exports.LoadBalancerTargetGroupStateFilterSensitiveLog = exports.DescribeLoadBalancerTargetGroupsRequestFilterSensitiveLog = exports.DescribeLoadBalancersResponseFilterSensitiveLog = exports.LoadBalancerStateFilterSensitiveLog = exports.DescribeLoadBalancersRequestFilterSensitiveLog = exports.DescribeLifecycleHookTypesAnswerFilterSensitiveLog = exports.DescribeLifecycleHooksTypeFilterSensitiveLog = exports.DescribeLifecycleHooksAnswerFilterSensitiveLog = exports.LifecycleHookFilterSensitiveLog = exports.LaunchConfigurationsTypeFilterSensitiveLog = exports.LaunchConfigurationFilterSensitiveLog = exports.LaunchConfigurationNamesTypeFilterSensitiveLog = exports.DescribeInstanceRefreshesTypeFilterSensitiveLog = exports.DescribeInstanceRefreshesAnswerFilterSensitiveLog = exports.InstanceRefreshFilterSensitiveLog = exports.InstanceRefreshProgressDetailsFilterSensitiveLog = exports.InstanceRefreshWarmPoolProgressFilterSensitiveLog = exports.InstanceRefreshLivePoolProgressFilterSensitiveLog = exports.RefreshPreferencesFilterSensitiveLog = exports.DesiredConfigurationFilterSensitiveLog = exports.DescribeAutoScalingNotificationTypesAnswerFilterSensitiveLog = exports.DescribeAutoScalingInstancesTypeFilterSensitiveLog = exports.AutoScalingInstancesTypeFilterSensitiveLog = void 0;
|
|
6
|
+
exports.UpdateAutoScalingGroupTypeFilterSensitiveLog = exports.TerminateInstanceInAutoScalingGroupTypeFilterSensitiveLog = exports.StartInstanceRefreshTypeFilterSensitiveLog = exports.StartInstanceRefreshAnswerFilterSensitiveLog = exports.SetInstanceProtectionQueryFilterSensitiveLog = exports.SetInstanceProtectionAnswerFilterSensitiveLog = exports.SetInstanceHealthQueryFilterSensitiveLog = exports.SetDesiredCapacityTypeFilterSensitiveLog = exports.ScalingProcessQueryFilterSensitiveLog = exports.RecordLifecycleActionHeartbeatTypeFilterSensitiveLog = exports.RecordLifecycleActionHeartbeatAnswerFilterSensitiveLog = exports.PutWarmPoolTypeFilterSensitiveLog = exports.PutWarmPoolAnswerFilterSensitiveLog = exports.PutScheduledUpdateGroupActionTypeFilterSensitiveLog = exports.PutScalingPolicyTypeFilterSensitiveLog = exports.PolicyARNTypeFilterSensitiveLog = exports.PutNotificationConfigurationTypeFilterSensitiveLog = exports.PutLifecycleHookTypeFilterSensitiveLog = exports.PutLifecycleHookAnswerFilterSensitiveLog = exports.GetPredictiveScalingForecastTypeFilterSensitiveLog = exports.GetPredictiveScalingForecastAnswerFilterSensitiveLog = exports.LoadForecastFilterSensitiveLog = exports.CapacityForecastFilterSensitiveLog = exports.ExitStandbyQueryFilterSensitiveLog = exports.ExitStandbyAnswerFilterSensitiveLog = exports.ExecutePolicyTypeFilterSensitiveLog = exports.EnterStandbyQueryFilterSensitiveLog = exports.EnterStandbyAnswerFilterSensitiveLog = exports.EnableMetricsCollectionQueryFilterSensitiveLog = exports.DisableMetricsCollectionQueryFilterSensitiveLog = exports.DetachLoadBalancerTargetGroupsTypeFilterSensitiveLog = exports.DetachLoadBalancerTargetGroupsResultTypeFilterSensitiveLog = exports.DetachLoadBalancersTypeFilterSensitiveLog = exports.DetachLoadBalancersResultTypeFilterSensitiveLog = exports.DetachInstancesQueryFilterSensitiveLog = exports.DetachInstancesAnswerFilterSensitiveLog = exports.DescribeWarmPoolTypeFilterSensitiveLog = exports.DescribeWarmPoolAnswerFilterSensitiveLog = exports.DescribeTerminationPolicyTypesAnswerFilterSensitiveLog = exports.TagsTypeFilterSensitiveLog = exports.DescribeTagsTypeFilterSensitiveLog = exports.ScheduledActionsTypeFilterSensitiveLog = exports.ScheduledUpdateGroupActionFilterSensitiveLog = exports.DescribeScheduledActionsTypeFilterSensitiveLog = exports.ProcessesTypeFilterSensitiveLog = exports.ProcessTypeFilterSensitiveLog = void 0;
|
|
7
7
|
const AutoScalingServiceException_1 = require("./AutoScalingServiceException");
|
|
8
8
|
var AcceleratorManufacturer;
|
|
9
9
|
(function (AcceleratorManufacturer) {
|
|
@@ -411,6 +411,10 @@ const MemoryMiBRequestFilterSensitiveLog = (obj) => ({
|
|
|
411
411
|
...obj,
|
|
412
412
|
});
|
|
413
413
|
exports.MemoryMiBRequestFilterSensitiveLog = MemoryMiBRequestFilterSensitiveLog;
|
|
414
|
+
const NetworkBandwidthGbpsRequestFilterSensitiveLog = (obj) => ({
|
|
415
|
+
...obj,
|
|
416
|
+
});
|
|
417
|
+
exports.NetworkBandwidthGbpsRequestFilterSensitiveLog = NetworkBandwidthGbpsRequestFilterSensitiveLog;
|
|
414
418
|
const NetworkInterfaceCountRequestFilterSensitiveLog = (obj) => ({
|
|
415
419
|
...obj,
|
|
416
420
|
});
|
|
@@ -3115,6 +3115,18 @@ const serializeAws_queryActivityIds = (input, context) => {
|
|
|
3115
3115
|
}
|
|
3116
3116
|
return entries;
|
|
3117
3117
|
};
|
|
3118
|
+
const serializeAws_queryAllowedInstanceTypes = (input, context) => {
|
|
3119
|
+
const entries = {};
|
|
3120
|
+
let counter = 1;
|
|
3121
|
+
for (const entry of input) {
|
|
3122
|
+
if (entry === null) {
|
|
3123
|
+
continue;
|
|
3124
|
+
}
|
|
3125
|
+
entries[`member.${counter}`] = entry;
|
|
3126
|
+
counter++;
|
|
3127
|
+
}
|
|
3128
|
+
return entries;
|
|
3129
|
+
};
|
|
3118
3130
|
const serializeAws_queryAttachInstancesQuery = (input, context) => {
|
|
3119
3131
|
const entries = {};
|
|
3120
3132
|
if (input.InstanceIds != null) {
|
|
@@ -4388,6 +4400,23 @@ const serializeAws_queryInstanceRequirements = (input, context) => {
|
|
|
4388
4400
|
entries[loc] = value;
|
|
4389
4401
|
});
|
|
4390
4402
|
}
|
|
4403
|
+
if (input.NetworkBandwidthGbps != null) {
|
|
4404
|
+
const memberEntries = serializeAws_queryNetworkBandwidthGbpsRequest(input.NetworkBandwidthGbps, context);
|
|
4405
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4406
|
+
const loc = `NetworkBandwidthGbps.${key}`;
|
|
4407
|
+
entries[loc] = value;
|
|
4408
|
+
});
|
|
4409
|
+
}
|
|
4410
|
+
if (input.AllowedInstanceTypes != null) {
|
|
4411
|
+
const memberEntries = serializeAws_queryAllowedInstanceTypes(input.AllowedInstanceTypes, context);
|
|
4412
|
+
if (input.AllowedInstanceTypes?.length === 0) {
|
|
4413
|
+
entries.AllowedInstanceTypes = [];
|
|
4414
|
+
}
|
|
4415
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4416
|
+
const loc = `AllowedInstanceTypes.${key}`;
|
|
4417
|
+
entries[loc] = value;
|
|
4418
|
+
});
|
|
4419
|
+
}
|
|
4391
4420
|
return entries;
|
|
4392
4421
|
};
|
|
4393
4422
|
const serializeAws_queryInstanceReusePolicy = (input, context) => {
|
|
@@ -4742,6 +4771,16 @@ const serializeAws_queryMixedInstancesPolicy = (input, context) => {
|
|
|
4742
4771
|
}
|
|
4743
4772
|
return entries;
|
|
4744
4773
|
};
|
|
4774
|
+
const serializeAws_queryNetworkBandwidthGbpsRequest = (input, context) => {
|
|
4775
|
+
const entries = {};
|
|
4776
|
+
if (input.Min != null) {
|
|
4777
|
+
entries["Min"] = (0, smithy_client_1.serializeFloat)(input.Min);
|
|
4778
|
+
}
|
|
4779
|
+
if (input.Max != null) {
|
|
4780
|
+
entries["Max"] = (0, smithy_client_1.serializeFloat)(input.Max);
|
|
4781
|
+
}
|
|
4782
|
+
return entries;
|
|
4783
|
+
};
|
|
4745
4784
|
const serializeAws_queryNetworkInterfaceCountRequest = (input, context) => {
|
|
4746
4785
|
const entries = {};
|
|
4747
4786
|
if (input.Min != null) {
|
|
@@ -5755,6 +5794,13 @@ const deserializeAws_queryAlarms = (output, context) => {
|
|
|
5755
5794
|
return deserializeAws_queryAlarm(entry, context);
|
|
5756
5795
|
});
|
|
5757
5796
|
};
|
|
5797
|
+
const deserializeAws_queryAllowedInstanceTypes = (output, context) => {
|
|
5798
|
+
return (output || [])
|
|
5799
|
+
.filter((e) => e != null)
|
|
5800
|
+
.map((entry) => {
|
|
5801
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
5802
|
+
});
|
|
5803
|
+
};
|
|
5758
5804
|
const deserializeAws_queryAlreadyExistsFault = (output, context) => {
|
|
5759
5805
|
const contents = {
|
|
5760
5806
|
message: undefined,
|
|
@@ -6744,6 +6790,8 @@ const deserializeAws_queryInstanceRequirements = (output, context) => {
|
|
|
6744
6790
|
AcceleratorManufacturers: undefined,
|
|
6745
6791
|
AcceleratorNames: undefined,
|
|
6746
6792
|
AcceleratorTotalMemoryMiB: undefined,
|
|
6793
|
+
NetworkBandwidthGbps: undefined,
|
|
6794
|
+
AllowedInstanceTypes: undefined,
|
|
6747
6795
|
};
|
|
6748
6796
|
if (output["VCpuCount"] !== undefined) {
|
|
6749
6797
|
contents.VCpuCount = deserializeAws_queryVCpuCountRequest(output["VCpuCount"], context);
|
|
@@ -6830,6 +6878,15 @@ const deserializeAws_queryInstanceRequirements = (output, context) => {
|
|
|
6830
6878
|
if (output["AcceleratorTotalMemoryMiB"] !== undefined) {
|
|
6831
6879
|
contents.AcceleratorTotalMemoryMiB = deserializeAws_queryAcceleratorTotalMemoryMiBRequest(output["AcceleratorTotalMemoryMiB"], context);
|
|
6832
6880
|
}
|
|
6881
|
+
if (output["NetworkBandwidthGbps"] !== undefined) {
|
|
6882
|
+
contents.NetworkBandwidthGbps = deserializeAws_queryNetworkBandwidthGbpsRequest(output["NetworkBandwidthGbps"], context);
|
|
6883
|
+
}
|
|
6884
|
+
if (output.AllowedInstanceTypes === "") {
|
|
6885
|
+
contents.AllowedInstanceTypes = [];
|
|
6886
|
+
}
|
|
6887
|
+
else if (output["AllowedInstanceTypes"] !== undefined && output["AllowedInstanceTypes"]["member"] !== undefined) {
|
|
6888
|
+
contents.AllowedInstanceTypes = deserializeAws_queryAllowedInstanceTypes((0, smithy_client_1.getArrayIfSingleItem)(output["AllowedInstanceTypes"]["member"]), context);
|
|
6889
|
+
}
|
|
6833
6890
|
return contents;
|
|
6834
6891
|
};
|
|
6835
6892
|
const deserializeAws_queryInstanceReusePolicy = (output, context) => {
|
|
@@ -7359,6 +7416,19 @@ const deserializeAws_queryMixedInstancesPolicy = (output, context) => {
|
|
|
7359
7416
|
}
|
|
7360
7417
|
return contents;
|
|
7361
7418
|
};
|
|
7419
|
+
const deserializeAws_queryNetworkBandwidthGbpsRequest = (output, context) => {
|
|
7420
|
+
const contents = {
|
|
7421
|
+
Min: undefined,
|
|
7422
|
+
Max: undefined,
|
|
7423
|
+
};
|
|
7424
|
+
if (output["Min"] !== undefined) {
|
|
7425
|
+
contents.Min = (0, smithy_client_1.strictParseFloat)(output["Min"]);
|
|
7426
|
+
}
|
|
7427
|
+
if (output["Max"] !== undefined) {
|
|
7428
|
+
contents.Max = (0, smithy_client_1.strictParseFloat)(output["Max"]);
|
|
7429
|
+
}
|
|
7430
|
+
return contents;
|
|
7431
|
+
};
|
|
7362
7432
|
const deserializeAws_queryNetworkInterfaceCountRequest = (output, context) => {
|
|
7363
7433
|
const contents = {
|
|
7364
7434
|
Min: undefined,
|
|
@@ -8,7 +8,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
8
8
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
9
9
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
10
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
-
const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
|
|
12
11
|
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
13
12
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
13
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
@@ -24,8 +23,6 @@ const getRuntimeConfig = (config) => {
|
|
|
24
23
|
...config,
|
|
25
24
|
runtime: "browser",
|
|
26
25
|
defaultsMode,
|
|
27
|
-
base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
|
|
28
|
-
base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
|
|
29
26
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
30
27
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
31
28
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
@@ -10,7 +10,6 @@ const hash_node_1 = require("@aws-sdk/hash-node");
|
|
|
10
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
11
|
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
12
12
|
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
13
|
-
const util_base64_node_1 = require("@aws-sdk/util-base64-node");
|
|
14
13
|
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
15
14
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
15
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
@@ -28,8 +27,6 @@ const getRuntimeConfig = (config) => {
|
|
|
28
27
|
...config,
|
|
29
28
|
runtime: "node",
|
|
30
29
|
defaultsMode,
|
|
31
|
-
base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
|
|
32
|
-
base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
|
|
33
30
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
34
31
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
35
32
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
+
const util_base64_1 = require("@aws-sdk/util-base64");
|
|
5
6
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
7
|
const getRuntimeConfig = (config) => ({
|
|
7
8
|
apiVersion: "2011-01-01",
|
|
9
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
10
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
8
11
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
12
|
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
10
13
|
logger: config?.logger ?? {},
|
|
@@ -368,6 +368,9 @@ export const MemoryGiBPerVCpuRequestFilterSensitiveLog = (obj) => ({
|
|
|
368
368
|
export const MemoryMiBRequestFilterSensitiveLog = (obj) => ({
|
|
369
369
|
...obj,
|
|
370
370
|
});
|
|
371
|
+
export const NetworkBandwidthGbpsRequestFilterSensitiveLog = (obj) => ({
|
|
372
|
+
...obj,
|
|
373
|
+
});
|
|
371
374
|
export const NetworkInterfaceCountRequestFilterSensitiveLog = (obj) => ({
|
|
372
375
|
...obj,
|
|
373
376
|
});
|
|
@@ -2988,6 +2988,18 @@ const serializeAws_queryActivityIds = (input, context) => {
|
|
|
2988
2988
|
}
|
|
2989
2989
|
return entries;
|
|
2990
2990
|
};
|
|
2991
|
+
const serializeAws_queryAllowedInstanceTypes = (input, context) => {
|
|
2992
|
+
const entries = {};
|
|
2993
|
+
let counter = 1;
|
|
2994
|
+
for (const entry of input) {
|
|
2995
|
+
if (entry === null) {
|
|
2996
|
+
continue;
|
|
2997
|
+
}
|
|
2998
|
+
entries[`member.${counter}`] = entry;
|
|
2999
|
+
counter++;
|
|
3000
|
+
}
|
|
3001
|
+
return entries;
|
|
3002
|
+
};
|
|
2991
3003
|
const serializeAws_queryAttachInstancesQuery = (input, context) => {
|
|
2992
3004
|
const entries = {};
|
|
2993
3005
|
if (input.InstanceIds != null) {
|
|
@@ -4261,6 +4273,23 @@ const serializeAws_queryInstanceRequirements = (input, context) => {
|
|
|
4261
4273
|
entries[loc] = value;
|
|
4262
4274
|
});
|
|
4263
4275
|
}
|
|
4276
|
+
if (input.NetworkBandwidthGbps != null) {
|
|
4277
|
+
const memberEntries = serializeAws_queryNetworkBandwidthGbpsRequest(input.NetworkBandwidthGbps, context);
|
|
4278
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4279
|
+
const loc = `NetworkBandwidthGbps.${key}`;
|
|
4280
|
+
entries[loc] = value;
|
|
4281
|
+
});
|
|
4282
|
+
}
|
|
4283
|
+
if (input.AllowedInstanceTypes != null) {
|
|
4284
|
+
const memberEntries = serializeAws_queryAllowedInstanceTypes(input.AllowedInstanceTypes, context);
|
|
4285
|
+
if (input.AllowedInstanceTypes?.length === 0) {
|
|
4286
|
+
entries.AllowedInstanceTypes = [];
|
|
4287
|
+
}
|
|
4288
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
4289
|
+
const loc = `AllowedInstanceTypes.${key}`;
|
|
4290
|
+
entries[loc] = value;
|
|
4291
|
+
});
|
|
4292
|
+
}
|
|
4264
4293
|
return entries;
|
|
4265
4294
|
};
|
|
4266
4295
|
const serializeAws_queryInstanceReusePolicy = (input, context) => {
|
|
@@ -4615,6 +4644,16 @@ const serializeAws_queryMixedInstancesPolicy = (input, context) => {
|
|
|
4615
4644
|
}
|
|
4616
4645
|
return entries;
|
|
4617
4646
|
};
|
|
4647
|
+
const serializeAws_queryNetworkBandwidthGbpsRequest = (input, context) => {
|
|
4648
|
+
const entries = {};
|
|
4649
|
+
if (input.Min != null) {
|
|
4650
|
+
entries["Min"] = __serializeFloat(input.Min);
|
|
4651
|
+
}
|
|
4652
|
+
if (input.Max != null) {
|
|
4653
|
+
entries["Max"] = __serializeFloat(input.Max);
|
|
4654
|
+
}
|
|
4655
|
+
return entries;
|
|
4656
|
+
};
|
|
4618
4657
|
const serializeAws_queryNetworkInterfaceCountRequest = (input, context) => {
|
|
4619
4658
|
const entries = {};
|
|
4620
4659
|
if (input.Min != null) {
|
|
@@ -5628,6 +5667,13 @@ const deserializeAws_queryAlarms = (output, context) => {
|
|
|
5628
5667
|
return deserializeAws_queryAlarm(entry, context);
|
|
5629
5668
|
});
|
|
5630
5669
|
};
|
|
5670
|
+
const deserializeAws_queryAllowedInstanceTypes = (output, context) => {
|
|
5671
|
+
return (output || [])
|
|
5672
|
+
.filter((e) => e != null)
|
|
5673
|
+
.map((entry) => {
|
|
5674
|
+
return __expectString(entry);
|
|
5675
|
+
});
|
|
5676
|
+
};
|
|
5631
5677
|
const deserializeAws_queryAlreadyExistsFault = (output, context) => {
|
|
5632
5678
|
const contents = {
|
|
5633
5679
|
message: undefined,
|
|
@@ -6617,6 +6663,8 @@ const deserializeAws_queryInstanceRequirements = (output, context) => {
|
|
|
6617
6663
|
AcceleratorManufacturers: undefined,
|
|
6618
6664
|
AcceleratorNames: undefined,
|
|
6619
6665
|
AcceleratorTotalMemoryMiB: undefined,
|
|
6666
|
+
NetworkBandwidthGbps: undefined,
|
|
6667
|
+
AllowedInstanceTypes: undefined,
|
|
6620
6668
|
};
|
|
6621
6669
|
if (output["VCpuCount"] !== undefined) {
|
|
6622
6670
|
contents.VCpuCount = deserializeAws_queryVCpuCountRequest(output["VCpuCount"], context);
|
|
@@ -6703,6 +6751,15 @@ const deserializeAws_queryInstanceRequirements = (output, context) => {
|
|
|
6703
6751
|
if (output["AcceleratorTotalMemoryMiB"] !== undefined) {
|
|
6704
6752
|
contents.AcceleratorTotalMemoryMiB = deserializeAws_queryAcceleratorTotalMemoryMiBRequest(output["AcceleratorTotalMemoryMiB"], context);
|
|
6705
6753
|
}
|
|
6754
|
+
if (output["NetworkBandwidthGbps"] !== undefined) {
|
|
6755
|
+
contents.NetworkBandwidthGbps = deserializeAws_queryNetworkBandwidthGbpsRequest(output["NetworkBandwidthGbps"], context);
|
|
6756
|
+
}
|
|
6757
|
+
if (output.AllowedInstanceTypes === "") {
|
|
6758
|
+
contents.AllowedInstanceTypes = [];
|
|
6759
|
+
}
|
|
6760
|
+
else if (output["AllowedInstanceTypes"] !== undefined && output["AllowedInstanceTypes"]["member"] !== undefined) {
|
|
6761
|
+
contents.AllowedInstanceTypes = deserializeAws_queryAllowedInstanceTypes(__getArrayIfSingleItem(output["AllowedInstanceTypes"]["member"]), context);
|
|
6762
|
+
}
|
|
6706
6763
|
return contents;
|
|
6707
6764
|
};
|
|
6708
6765
|
const deserializeAws_queryInstanceReusePolicy = (output, context) => {
|
|
@@ -7232,6 +7289,19 @@ const deserializeAws_queryMixedInstancesPolicy = (output, context) => {
|
|
|
7232
7289
|
}
|
|
7233
7290
|
return contents;
|
|
7234
7291
|
};
|
|
7292
|
+
const deserializeAws_queryNetworkBandwidthGbpsRequest = (output, context) => {
|
|
7293
|
+
const contents = {
|
|
7294
|
+
Min: undefined,
|
|
7295
|
+
Max: undefined,
|
|
7296
|
+
};
|
|
7297
|
+
if (output["Min"] !== undefined) {
|
|
7298
|
+
contents.Min = __strictParseFloat(output["Min"]);
|
|
7299
|
+
}
|
|
7300
|
+
if (output["Max"] !== undefined) {
|
|
7301
|
+
contents.Max = __strictParseFloat(output["Max"]);
|
|
7302
|
+
}
|
|
7303
|
+
return contents;
|
|
7304
|
+
};
|
|
7235
7305
|
const deserializeAws_queryNetworkInterfaceCountRequest = (output, context) => {
|
|
7236
7306
|
const contents = {
|
|
7237
7307
|
Min: undefined,
|
|
@@ -4,7 +4,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-
|
|
|
4
4
|
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
5
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
6
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
7
|
-
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
8
7
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
9
8
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
10
9
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
@@ -20,8 +19,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
20
19
|
...config,
|
|
21
20
|
runtime: "browser",
|
|
22
21
|
defaultsMode,
|
|
23
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
24
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
25
22
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
26
23
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
24
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -6,7 +6,6 @@ import { Hash } from "@aws-sdk/hash-node";
|
|
|
6
6
|
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
7
7
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
8
8
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
-
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
10
9
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
11
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
12
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
@@ -24,8 +23,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
24
23
|
...config,
|
|
25
24
|
runtime: "node",
|
|
26
25
|
defaultsMode,
|
|
27
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
28
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
29
26
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
30
27
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
31
28
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
|
+
import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
|
|
2
3
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
3
4
|
export const getRuntimeConfig = (config) => ({
|
|
4
5
|
apiVersion: "2011-01-01",
|
|
6
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
7
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
5
8
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
6
9
|
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
7
10
|
logger: config?.logger ?? {},
|
|
@@ -237,6 +237,12 @@ export declare class AutoScaling extends AutoScalingClient {
|
|
|
237
237
|
* Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
238
238
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchConfiguration.html">Launch
|
|
239
239
|
* configurations</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
240
|
+
* <note>
|
|
241
|
+
* <p>Amazon EC2 Auto Scaling configures instances launched as part of an Auto Scaling group using either a
|
|
242
|
+
* launch template or a launch configuration. We strongly recommend that you do not use
|
|
243
|
+
* launch configurations. They do not provide full functionality for Amazon EC2 Auto Scaling or Amazon EC2.
|
|
244
|
+
* For information about using launch templates, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-templates.html">Launch templates</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
245
|
+
* </note>
|
|
240
246
|
*/
|
|
241
247
|
createLaunchConfiguration(args: CreateLaunchConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<CreateLaunchConfigurationCommandOutput>;
|
|
242
248
|
createLaunchConfiguration(args: CreateLaunchConfigurationCommandInput, cb: (err: any, data?: CreateLaunchConfigurationCommandOutput) => void): void;
|
|
@@ -254,14 +260,19 @@ export declare class AutoScaling extends AutoScalingClient {
|
|
|
254
260
|
/**
|
|
255
261
|
* <p>Deletes the specified Auto Scaling group.</p>
|
|
256
262
|
* <p>If the group has instances or scaling activities in progress, you must specify the
|
|
257
|
-
* option to force the deletion in order for it to succeed
|
|
258
|
-
*
|
|
259
|
-
*
|
|
263
|
+
* option to force the deletion in order for it to succeed. The force delete operation will
|
|
264
|
+
* also terminate the EC2 instances. If the group has a warm pool, the force delete option
|
|
265
|
+
* also deletes the warm pool.</p>
|
|
260
266
|
* <p>To remove instances from the Auto Scaling group before deleting it, call the <a>DetachInstances</a> API with the list of instances and the option to
|
|
261
267
|
* decrement the desired capacity. This ensures that Amazon EC2 Auto Scaling does not launch replacement
|
|
262
268
|
* instances.</p>
|
|
263
269
|
* <p>To terminate all instances before deleting the Auto Scaling group, call the <a>UpdateAutoScalingGroup</a> API and set the minimum size and desired capacity
|
|
264
|
-
* of the Auto Scaling group to
|
|
270
|
+
* of the Auto Scaling group to
|
|
271
|
+
* zero.</p>
|
|
272
|
+
* <p>If the group has scaling policies, deleting the group deletes the policies, the
|
|
273
|
+
* underlying alarm actions, and any alarm that no longer has an associated action.</p>
|
|
274
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-process-shutdown.html">Delete your Auto Scaling
|
|
275
|
+
* infrastructure</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
265
276
|
*/
|
|
266
277
|
deleteAutoScalingGroup(args: DeleteAutoScalingGroupCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAutoScalingGroupCommandOutput>;
|
|
267
278
|
deleteAutoScalingGroup(args: DeleteAutoScalingGroupCommandInput, cb: (err: any, data?: DeleteAutoScalingGroupCommandOutput) => void): void;
|
|
@@ -15,6 +15,12 @@ export interface CreateLaunchConfigurationCommandOutput extends __MetadataBearer
|
|
|
15
15
|
* Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
16
16
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchConfiguration.html">Launch
|
|
17
17
|
* configurations</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
18
|
+
* <note>
|
|
19
|
+
* <p>Amazon EC2 Auto Scaling configures instances launched as part of an Auto Scaling group using either a
|
|
20
|
+
* launch template or a launch configuration. We strongly recommend that you do not use
|
|
21
|
+
* launch configurations. They do not provide full functionality for Amazon EC2 Auto Scaling or Amazon EC2.
|
|
22
|
+
* For information about using launch templates, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-templates.html">Launch templates</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
23
|
+
* </note>
|
|
18
24
|
* @example
|
|
19
25
|
* Use a bare-bones client and the command you need to make an API call.
|
|
20
26
|
* ```javascript
|
|
@@ -10,14 +10,19 @@ export interface DeleteAutoScalingGroupCommandOutput extends __MetadataBearer {
|
|
|
10
10
|
/**
|
|
11
11
|
* <p>Deletes the specified Auto Scaling group.</p>
|
|
12
12
|
* <p>If the group has instances or scaling activities in progress, you must specify the
|
|
13
|
-
* option to force the deletion in order for it to succeed
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* option to force the deletion in order for it to succeed. The force delete operation will
|
|
14
|
+
* also terminate the EC2 instances. If the group has a warm pool, the force delete option
|
|
15
|
+
* also deletes the warm pool.</p>
|
|
16
16
|
* <p>To remove instances from the Auto Scaling group before deleting it, call the <a>DetachInstances</a> API with the list of instances and the option to
|
|
17
17
|
* decrement the desired capacity. This ensures that Amazon EC2 Auto Scaling does not launch replacement
|
|
18
18
|
* instances.</p>
|
|
19
19
|
* <p>To terminate all instances before deleting the Auto Scaling group, call the <a>UpdateAutoScalingGroup</a> API and set the minimum size and desired capacity
|
|
20
|
-
* of the Auto Scaling group to
|
|
20
|
+
* of the Auto Scaling group to
|
|
21
|
+
* zero.</p>
|
|
22
|
+
* <p>If the group has scaling policies, deleting the group deletes the policies, the
|
|
23
|
+
* underlying alarm actions, and any alarm that no longer has an associated action.</p>
|
|
24
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-process-shutdown.html">Delete your Auto Scaling
|
|
25
|
+
* infrastructure</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
21
26
|
* @example
|
|
22
27
|
* Use a bare-bones client and the command you need to make an API call.
|
|
23
28
|
* ```javascript
|
|
@@ -493,7 +493,9 @@ export interface LifecycleHookSpecification {
|
|
|
493
493
|
RoleARN?: string;
|
|
494
494
|
}
|
|
495
495
|
/**
|
|
496
|
-
* <p>
|
|
496
|
+
* <p>Use this structure to specify the distribution of On-Demand Instances and Spot
|
|
497
|
+
* Instances and the allocation strategies used to fulfill On-Demand and Spot capacities
|
|
498
|
+
* for a mixed instances policy.</p>
|
|
497
499
|
*/
|
|
498
500
|
export interface InstancesDistribution {
|
|
499
501
|
/**
|
|
@@ -560,12 +562,14 @@ export interface InstancesDistribution {
|
|
|
560
562
|
SpotInstancePools?: number;
|
|
561
563
|
/**
|
|
562
564
|
* <p>The maximum price per unit hour that you are willing to pay for a Spot Instance. If
|
|
563
|
-
*
|
|
564
|
-
*
|
|
565
|
-
*
|
|
565
|
+
* your maximum price is lower than the Spot price for the instance types that you
|
|
566
|
+
* selected, your Spot Instances are not launched. We do not recommend specifying a maximum
|
|
567
|
+
* price because it can lead to increased interruptions. When Spot Instances launch, you
|
|
568
|
+
* pay the current Spot price. To remove a maximum price that you previously set, include
|
|
569
|
+
* the property but specify an empty string ("") for the value.</p>
|
|
566
570
|
* <important>
|
|
567
|
-
* <p>If
|
|
568
|
-
*
|
|
571
|
+
* <p>If you specify a maximum price, your instances will be interrupted more frequently
|
|
572
|
+
* than if you do not specify one.</p>
|
|
569
573
|
* </important>
|
|
570
574
|
* <p>Valid Range: Minimum value of 0.001</p>
|
|
571
575
|
*/
|
|
@@ -641,6 +645,27 @@ export interface MemoryMiBRequest {
|
|
|
641
645
|
*/
|
|
642
646
|
Max?: number;
|
|
643
647
|
}
|
|
648
|
+
/**
|
|
649
|
+
* <p>Specifies the minimum and maximum for the <code>NetworkBandwidthGbps</code> object
|
|
650
|
+
* when you specify <a>InstanceRequirements</a> for an Auto Scaling group.</p>
|
|
651
|
+
* <note>
|
|
652
|
+
* <p>Setting the minimum bandwidth does not guarantee that your instance will achieve
|
|
653
|
+
* the minimum bandwidth. Amazon EC2 will identify instance types that support the specified
|
|
654
|
+
* minimum bandwidth, but the actual bandwidth of your instance might go below the
|
|
655
|
+
* specified minimum at times. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-network-bandwidth.html#available-instance-bandwidth">Available instance bandwidth</a> in the
|
|
656
|
+
* <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
|
|
657
|
+
* </note>
|
|
658
|
+
*/
|
|
659
|
+
export interface NetworkBandwidthGbpsRequest {
|
|
660
|
+
/**
|
|
661
|
+
* <p>The minimum amount of network bandwidth, in gigabits per second (Gbps).</p>
|
|
662
|
+
*/
|
|
663
|
+
Min?: number;
|
|
664
|
+
/**
|
|
665
|
+
* <p>The maximum amount of network bandwidth, in gigabits per second (Gbps).</p>
|
|
666
|
+
*/
|
|
667
|
+
Max?: number;
|
|
668
|
+
}
|
|
644
669
|
/**
|
|
645
670
|
* <p>Specifies the minimum and maximum for the <code>NetworkInterfaceCount</code> object
|
|
646
671
|
* when you specify <a>InstanceRequirements</a> for an Auto Scaling group.</p>
|
|
@@ -684,16 +709,38 @@ export interface VCpuCountRequest {
|
|
|
684
709
|
Max?: number;
|
|
685
710
|
}
|
|
686
711
|
/**
|
|
687
|
-
* <p>
|
|
688
|
-
* specified
|
|
712
|
+
* <p>The attributes for the instance types for a mixed instances policy. Amazon EC2 Auto Scaling uses your
|
|
713
|
+
* specified requirements to identify instance types. Then, it uses your On-Demand and Spot
|
|
714
|
+
* allocation strategies to launch instances from these instance types.</p>
|
|
715
|
+
* <p>When you specify multiple attributes, you get instance types that satisfy all of the
|
|
716
|
+
* specified attributes. If you specify multiple values for an attribute, you get instance
|
|
689
717
|
* types that satisfy any of the specified values.</p>
|
|
690
|
-
*
|
|
691
|
-
*
|
|
692
|
-
*
|
|
693
|
-
*
|
|
694
|
-
*
|
|
718
|
+
* <p>To limit the list of instance types from which Amazon EC2 Auto Scaling can identify matching instance
|
|
719
|
+
* types, you can use one of the following parameters, but not both in the same
|
|
720
|
+
* request:</p>
|
|
721
|
+
* <ul>
|
|
722
|
+
* <li>
|
|
723
|
+
* <p>
|
|
724
|
+
* <code>AllowedInstanceTypes</code> - The instance types to include in the list.
|
|
725
|
+
* All other instance types are ignored, even if they match your specified
|
|
726
|
+
* attributes.</p>
|
|
727
|
+
* </li>
|
|
728
|
+
* <li>
|
|
729
|
+
* <p>
|
|
730
|
+
* <code>ExcludedInstanceTypes</code> - The instance types to exclude from the
|
|
731
|
+
* list, even if they match your specified attributes.</p>
|
|
732
|
+
* </li>
|
|
733
|
+
* </ul>
|
|
734
|
+
* <note>
|
|
735
|
+
* <p>You must specify <code>VCpuCount</code> and <code>MemoryMiB</code>. All other
|
|
736
|
+
* attributes are optional. Any unspecified optional attribute is set to its
|
|
737
|
+
* default.</p>
|
|
738
|
+
* </note>
|
|
739
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html">Creating
|
|
695
740
|
* an Auto Scaling group using attribute-based instance type selection</a> in the
|
|
696
|
-
* <i>Amazon EC2 Auto Scaling User Guide</i
|
|
741
|
+
* <i>Amazon EC2 Auto Scaling User Guide</i>. For help determining which instance types match
|
|
742
|
+
* your attributes before you apply them to your Auto Scaling group, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-get-instance-types-from-instance-requirements">Preview instance types with specified attributes</a> in the
|
|
743
|
+
* <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
|
|
697
744
|
*/
|
|
698
745
|
export interface InstanceRequirements {
|
|
699
746
|
/**
|
|
@@ -728,17 +775,22 @@ export interface InstanceRequirements {
|
|
|
728
775
|
CpuManufacturers?: (CpuManufacturer | string)[];
|
|
729
776
|
/**
|
|
730
777
|
* <p>The minimum and maximum amount of memory per vCPU for an instance type, in GiB.</p>
|
|
731
|
-
* <p>Default: No minimum or maximum</p>
|
|
778
|
+
* <p>Default: No minimum or maximum limits</p>
|
|
732
779
|
*/
|
|
733
780
|
MemoryGiBPerVCpu?: MemoryGiBPerVCpuRequest;
|
|
734
781
|
/**
|
|
735
|
-
* <p>
|
|
736
|
-
*
|
|
737
|
-
*
|
|
782
|
+
* <p>The instance types to exclude. You can use strings with one or more wild cards,
|
|
783
|
+
* represented by an asterisk (<code>*</code>), to exclude an instance family, type, size,
|
|
784
|
+
* or generation. The following are examples: <code>m5.8xlarge</code>, <code>c5*.*</code>,
|
|
785
|
+
* <code>m5a.*</code>, <code>r*</code>, <code>*3*</code>. </p>
|
|
738
786
|
* <p>For example, if you specify <code>c5*</code>, you are excluding the entire C5 instance
|
|
739
787
|
* family, which includes all C5a and C5n instance types. If you specify
|
|
740
|
-
* <code>m5a.*</code>,
|
|
788
|
+
* <code>m5a.*</code>, Amazon EC2 Auto Scaling will exclude all the M5a instance types, but not the M5n
|
|
741
789
|
* instance types.</p>
|
|
790
|
+
* <note>
|
|
791
|
+
* <p>If you specify <code>ExcludedInstanceTypes</code>, you can't specify
|
|
792
|
+
* <code>AllowedInstanceTypes</code>.</p>
|
|
793
|
+
* </note>
|
|
742
794
|
* <p>Default: No excluded instance types</p>
|
|
743
795
|
*/
|
|
744
796
|
ExcludedInstanceTypes?: string[];
|
|
@@ -799,8 +851,7 @@ export interface InstanceRequirements {
|
|
|
799
851
|
/**
|
|
800
852
|
* <p>Indicates whether burstable performance instance types are included, excluded, or
|
|
801
853
|
* required. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html">Burstable
|
|
802
|
-
* performance instances</a> in the <i>Amazon EC2 User Guide for Linux
|
|
803
|
-
* Instances</i>.</p>
|
|
854
|
+
* performance instances</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
|
|
804
855
|
* <p>Default: <code>excluded</code>
|
|
805
856
|
* </p>
|
|
806
857
|
*/
|
|
@@ -814,7 +865,7 @@ export interface InstanceRequirements {
|
|
|
814
865
|
RequireHibernateSupport?: boolean;
|
|
815
866
|
/**
|
|
816
867
|
* <p>The minimum and maximum number of network interfaces for an instance type.</p>
|
|
817
|
-
* <p>Default: No minimum or maximum</p>
|
|
868
|
+
* <p>Default: No minimum or maximum limits</p>
|
|
818
869
|
*/
|
|
819
870
|
NetworkInterfaceCount?: NetworkInterfaceCountRequest;
|
|
820
871
|
/**
|
|
@@ -842,14 +893,14 @@ export interface InstanceRequirements {
|
|
|
842
893
|
LocalStorageTypes?: (LocalStorageType | string)[];
|
|
843
894
|
/**
|
|
844
895
|
* <p>The minimum and maximum total local storage size for an instance type, in GB.</p>
|
|
845
|
-
* <p>Default: No minimum or maximum</p>
|
|
896
|
+
* <p>Default: No minimum or maximum limits</p>
|
|
846
897
|
*/
|
|
847
898
|
TotalLocalStorageGB?: TotalLocalStorageGBRequest;
|
|
848
899
|
/**
|
|
849
900
|
* <p>The minimum and maximum baseline bandwidth performance for an instance type, in Mbps.
|
|
850
901
|
* For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html">Amazon EBS–optimized instances</a>
|
|
851
902
|
* in the <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
|
|
852
|
-
* <p>Default: No minimum or maximum</p>
|
|
903
|
+
* <p>Default: No minimum or maximum limits</p>
|
|
853
904
|
*/
|
|
854
905
|
BaselineEbsBandwidthMbps?: BaselineEbsBandwidthMbpsRequest;
|
|
855
906
|
/**
|
|
@@ -874,7 +925,7 @@ export interface InstanceRequirements {
|
|
|
874
925
|
* chips) for an instance type.</p>
|
|
875
926
|
* <p>To exclude accelerator-enabled instance types, set <code>Max</code> to
|
|
876
927
|
* <code>0</code>.</p>
|
|
877
|
-
* <p>Default: No minimum or maximum</p>
|
|
928
|
+
* <p>Default: No minimum or maximum limits</p>
|
|
878
929
|
*/
|
|
879
930
|
AcceleratorCount?: AcceleratorCountRequest;
|
|
880
931
|
/**
|
|
@@ -930,71 +981,132 @@ export interface InstanceRequirements {
|
|
|
930
981
|
/**
|
|
931
982
|
* <p>The minimum and maximum total memory size for the accelerators on an instance type, in
|
|
932
983
|
* MiB.</p>
|
|
933
|
-
* <p>Default: No minimum or maximum</p>
|
|
984
|
+
* <p>Default: No minimum or maximum limits</p>
|
|
934
985
|
*/
|
|
935
986
|
AcceleratorTotalMemoryMiB?: AcceleratorTotalMemoryMiBRequest;
|
|
987
|
+
/**
|
|
988
|
+
* <p>The minimum and maximum amount of network bandwidth, in gigabits per second
|
|
989
|
+
* (Gbps).</p>
|
|
990
|
+
* <p>Default: No minimum or maximum limits</p>
|
|
991
|
+
*/
|
|
992
|
+
NetworkBandwidthGbps?: NetworkBandwidthGbpsRequest;
|
|
993
|
+
/**
|
|
994
|
+
* <p>The instance types to apply your specified attributes against. All other instance
|
|
995
|
+
* types are ignored, even if they match your specified attributes.</p>
|
|
996
|
+
* <p>You can use strings with one or more wild cards, represented by an asterisk
|
|
997
|
+
* (<code>*</code>), to allow an instance type, size, or generation. The following are
|
|
998
|
+
* examples: <code>m5.8xlarge</code>, <code>c5*.*</code>, <code>m5a.*</code>,
|
|
999
|
+
* <code>r*</code>, <code>*3*</code>.</p>
|
|
1000
|
+
* <p>For example, if you specify <code>c5*</code>, Amazon EC2 Auto Scaling will allow the entire C5
|
|
1001
|
+
* instance family, which includes all C5a and C5n instance types. If you specify
|
|
1002
|
+
* <code>m5a.*</code>, Amazon EC2 Auto Scaling will allow all the M5a instance types, but not the M5n
|
|
1003
|
+
* instance types.</p>
|
|
1004
|
+
* <note>
|
|
1005
|
+
* <p>If you specify <code>AllowedInstanceTypes</code>, you can't specify
|
|
1006
|
+
* <code>ExcludedInstanceTypes</code>.</p>
|
|
1007
|
+
* </note>
|
|
1008
|
+
* <p>Default: All instance types</p>
|
|
1009
|
+
*/
|
|
1010
|
+
AllowedInstanceTypes?: string[];
|
|
936
1011
|
}
|
|
937
1012
|
/**
|
|
938
|
-
* <p>
|
|
1013
|
+
* <p>Use this structure to let Amazon EC2 Auto Scaling do the following when the Auto Scaling group has a mixed
|
|
1014
|
+
* instances policy:</p>
|
|
1015
|
+
* <ul>
|
|
1016
|
+
* <li>
|
|
1017
|
+
* <p>Override the instance type that is specified in the launch template.</p>
|
|
1018
|
+
* </li>
|
|
1019
|
+
* <li>
|
|
1020
|
+
* <p>Use multiple instance types.</p>
|
|
1021
|
+
* </li>
|
|
1022
|
+
* </ul>
|
|
1023
|
+
* <p>Specify the instance types that you want, or define your instance requirements instead
|
|
1024
|
+
* and let Amazon EC2 Auto Scaling provision the available instance types that meet your requirements.
|
|
1025
|
+
* This can provide Amazon EC2 Auto Scaling with a larger selection of instance types to choose from when
|
|
1026
|
+
* fulfilling Spot and On-Demand capacities. You can view which instance types are matched
|
|
1027
|
+
* before you apply the instance requirements to your Auto Scaling group.</p>
|
|
1028
|
+
* <p>After you define your instance requirements, you don't have to keep updating these
|
|
1029
|
+
* settings to get new EC2 instance types automatically. Amazon EC2 Auto Scaling uses the instance
|
|
1030
|
+
* requirements of the Auto Scaling group to determine whether a new EC2 instance type can be
|
|
1031
|
+
* used.</p>
|
|
939
1032
|
*/
|
|
940
1033
|
export interface LaunchTemplateOverrides {
|
|
941
1034
|
/**
|
|
942
|
-
* <p>The instance type, such as <code>m3.xlarge</code>. You must
|
|
943
|
-
* is supported in your requested Region and Availability Zones. For more information,
|
|
944
|
-
*
|
|
1035
|
+
* <p>The instance type, such as <code>m3.xlarge</code>. You must specify an instance type
|
|
1036
|
+
* that is supported in your requested Region and Availability Zones. For more information,
|
|
1037
|
+
* see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance types</a> in the <i>Amazon Elastic Compute Cloud User
|
|
945
1038
|
* Guide</i>.</p>
|
|
1039
|
+
* <p>You can specify up to 40 instance types per Auto Scaling group.</p>
|
|
946
1040
|
*/
|
|
947
1041
|
InstanceType?: string;
|
|
948
1042
|
/**
|
|
949
|
-
* <p>
|
|
950
|
-
*
|
|
951
|
-
* other relative performance characteristic. When a Spot or On-Demand
|
|
952
|
-
* launched, the capacity units count toward the desired capacity. Amazon EC2 Auto Scaling
|
|
953
|
-
* instances until the desired capacity is totally fulfilled, even if this results
|
|
954
|
-
* overage. For example, if there are two units remaining to fulfill capacity, and
|
|
955
|
-
* can only launch an instance with a <code>WeightedCapacity</code> of five units,
|
|
956
|
-
* instance is launched, and the desired capacity is exceeded by three units. For more
|
|
1043
|
+
* <p>If you provide a list of instance types to use, you can specify the number of capacity
|
|
1044
|
+
* units provided by each instance type in terms of virtual CPUs, memory, storage,
|
|
1045
|
+
* throughput, or other relative performance characteristic. When a Spot or On-Demand
|
|
1046
|
+
* Instance is launched, the capacity units count toward the desired capacity. Amazon EC2 Auto Scaling
|
|
1047
|
+
* launches instances until the desired capacity is totally fulfilled, even if this results
|
|
1048
|
+
* in an overage. For example, if there are two units remaining to fulfill capacity, and
|
|
1049
|
+
* Amazon EC2 Auto Scaling can only launch an instance with a <code>WeightedCapacity</code> of five units,
|
|
1050
|
+
* the instance is launched, and the desired capacity is exceeded by three units. For more
|
|
957
1051
|
* information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups-instance-weighting.html">Configuring instance weighting for Amazon EC2 Auto Scaling</a> in the
|
|
958
1052
|
* <i>Amazon EC2 Auto Scaling User Guide</i>. Value must be in the range of 1–999.</p>
|
|
1053
|
+
* <p>If you specify a value for <code>WeightedCapacity</code> for one instance type, you
|
|
1054
|
+
* must specify a value for <code>WeightedCapacity</code> for all of them.</p>
|
|
1055
|
+
* <important>
|
|
1056
|
+
* <p>Every Auto Scaling group has three size parameters (<code>DesiredCapacity</code>,
|
|
1057
|
+
* <code>MaxSize</code>, and <code>MinSize</code>). Usually, you set these sizes
|
|
1058
|
+
* based on a specific number of instances. However, if you configure a mixed instances
|
|
1059
|
+
* policy that defines weights for the instance types, you must specify these sizes
|
|
1060
|
+
* with the same units that you use for weighting instances. </p>
|
|
1061
|
+
* </important>
|
|
959
1062
|
*/
|
|
960
1063
|
WeightedCapacity?: string;
|
|
961
1064
|
/**
|
|
962
|
-
* <p>Provides a launch template for the specified instance type or instance
|
|
963
|
-
* For example, some instance types might require a launch template with a
|
|
964
|
-
* If not provided, Amazon EC2 Auto Scaling uses the launch template that's
|
|
965
|
-
*
|
|
1065
|
+
* <p>Provides a launch template for the specified instance type or set of instance
|
|
1066
|
+
* requirements. For example, some instance types might require a launch template with a
|
|
1067
|
+
* different AMI. If not provided, Amazon EC2 Auto Scaling uses the launch template that's specified in
|
|
1068
|
+
* the <code>LaunchTemplate</code> definition. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups-launch-template-overrides.html">Specifying a different launch template for an instance type</a> in the
|
|
966
1069
|
* <i>Amazon EC2 Auto Scaling User Guide</i>. </p>
|
|
1070
|
+
* <p>You can specify up to 20 launch templates per Auto Scaling group. The launch templates
|
|
1071
|
+
* specified in the overrides and in the <code>LaunchTemplate</code> definition count
|
|
1072
|
+
* towards this limit.</p>
|
|
967
1073
|
*/
|
|
968
1074
|
LaunchTemplateSpecification?: LaunchTemplateSpecification;
|
|
969
1075
|
/**
|
|
970
|
-
* <p>The instance requirements.
|
|
971
|
-
* instance types
|
|
972
|
-
*
|
|
973
|
-
*
|
|
1076
|
+
* <p>The instance requirements. Amazon EC2 Auto Scaling uses your specified requirements to identify
|
|
1077
|
+
* instance types. Then, it uses your On-Demand and Spot allocation strategies to launch
|
|
1078
|
+
* instances from these instance types.</p>
|
|
1079
|
+
* <p>You can specify up to four separate sets of instance requirements per Auto Scaling group. This
|
|
1080
|
+
* is useful for provisioning instances from different Amazon Machine Images (AMIs) in the
|
|
1081
|
+
* same Auto Scaling group. To do this, create the AMIs and create a new launch template for each
|
|
1082
|
+
* AMI. Then, create a compatible set of instance requirements for each launch template.
|
|
1083
|
+
* </p>
|
|
1084
|
+
* <note>
|
|
1085
|
+
* <p>If you specify <code>InstanceRequirements</code>, you can't specify
|
|
1086
|
+
* <code>InstanceType</code>.</p>
|
|
1087
|
+
* </note>
|
|
974
1088
|
*/
|
|
975
1089
|
InstanceRequirements?: InstanceRequirements;
|
|
976
1090
|
}
|
|
977
1091
|
/**
|
|
978
|
-
* <p>
|
|
979
|
-
* mixed instances policy
|
|
1092
|
+
* <p>Use this structure to specify the launch templates and instance types (overrides) for
|
|
1093
|
+
* a mixed instances policy.</p>
|
|
980
1094
|
*/
|
|
981
1095
|
export interface LaunchTemplate {
|
|
982
1096
|
/**
|
|
983
|
-
* <p>The launch template
|
|
1097
|
+
* <p>The launch template.</p>
|
|
984
1098
|
*/
|
|
985
1099
|
LaunchTemplateSpecification?: LaunchTemplateSpecification;
|
|
986
1100
|
/**
|
|
987
|
-
* <p>Any properties that you specify override the same properties in the launch
|
|
988
|
-
*
|
|
989
|
-
* in the launch template when it launches an instance.</p>
|
|
990
|
-
* <p>The overrides can include either one or more instance types or a set of instance
|
|
991
|
-
* requirements, but not both.</p>
|
|
1101
|
+
* <p>Any properties that you specify override the same properties in the launch
|
|
1102
|
+
* template.</p>
|
|
992
1103
|
*/
|
|
993
1104
|
Overrides?: LaunchTemplateOverrides[];
|
|
994
1105
|
}
|
|
995
1106
|
/**
|
|
996
|
-
* <p>
|
|
997
|
-
*
|
|
1107
|
+
* <p>Use this structure to launch multiple instance types and On-Demand Instances and Spot
|
|
1108
|
+
* Instances within a single Auto Scaling group.</p>
|
|
1109
|
+
* <p>A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch
|
|
998
1110
|
* instances and help optimize your costs. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html">Auto Scaling
|
|
999
1111
|
* groups with multiple instance types and purchase options</a> in the
|
|
1000
1112
|
* <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
@@ -1064,11 +1176,7 @@ export interface CreateAutoScalingGroupType {
|
|
|
1064
1176
|
*/
|
|
1065
1177
|
LaunchTemplate?: LaunchTemplateSpecification;
|
|
1066
1178
|
/**
|
|
1067
|
-
* <p>
|
|
1068
|
-
*
|
|
1069
|
-
*
|
|
1070
|
-
*
|
|
1071
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html">Auto Scaling
|
|
1179
|
+
* <p>The mixed instances policy. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html">Auto Scaling
|
|
1072
1180
|
* groups with multiple instance types and purchase options</a> in the
|
|
1073
1181
|
* <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
1074
1182
|
*/
|
|
@@ -1482,24 +1590,11 @@ export interface CreateLaunchConfigurationType {
|
|
|
1482
1590
|
*/
|
|
1483
1591
|
SecurityGroups?: string[];
|
|
1484
1592
|
/**
|
|
1485
|
-
* <p>
|
|
1486
|
-
* <i>EC2-Classic retires on August 15, 2022. This property is not supported after
|
|
1487
|
-
* that date.</i>
|
|
1488
|
-
* </p>
|
|
1489
|
-
* <p>The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to. For more
|
|
1490
|
-
* information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html">ClassicLink</a> in the
|
|
1491
|
-
* <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
|
|
1593
|
+
* <p>Available for backward compatibility.</p>
|
|
1492
1594
|
*/
|
|
1493
1595
|
ClassicLinkVPCId?: string;
|
|
1494
1596
|
/**
|
|
1495
|
-
* <p>
|
|
1496
|
-
* <i>EC2-Classic retires on August 15, 2022. This property is not supported after
|
|
1497
|
-
* that date.</i>
|
|
1498
|
-
* </p>
|
|
1499
|
-
* <p>The IDs of one or more security groups for the specified ClassicLink-enabled
|
|
1500
|
-
* VPC.</p>
|
|
1501
|
-
* <p>If you specify the <code>ClassicLinkVPCId</code> property, you must specify
|
|
1502
|
-
* <code>ClassicLinkVPCSecurityGroups</code>.</p>
|
|
1597
|
+
* <p>Available for backward compatibility.</p>
|
|
1503
1598
|
*/
|
|
1504
1599
|
ClassicLinkVPCSecurityGroups?: string[];
|
|
1505
1600
|
/**
|
|
@@ -2432,8 +2527,9 @@ export interface DesiredConfiguration {
|
|
|
2432
2527
|
*/
|
|
2433
2528
|
LaunchTemplate?: LaunchTemplateSpecification;
|
|
2434
2529
|
/**
|
|
2435
|
-
* <p>
|
|
2436
|
-
*
|
|
2530
|
+
* <p>Use this structure to launch multiple instance types and On-Demand Instances and Spot
|
|
2531
|
+
* Instances within a single Auto Scaling group.</p>
|
|
2532
|
+
* <p>A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch
|
|
2437
2533
|
* instances and help optimize your costs. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html">Auto Scaling
|
|
2438
2534
|
* groups with multiple instance types and purchase options</a> in the
|
|
2439
2535
|
* <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
@@ -2720,20 +2816,11 @@ export interface LaunchConfiguration {
|
|
|
2720
2816
|
*/
|
|
2721
2817
|
SecurityGroups?: string[];
|
|
2722
2818
|
/**
|
|
2723
|
-
* <p>
|
|
2724
|
-
* <i>EC2-Classic retires on August 15, 2022. This property is not supported after
|
|
2725
|
-
* that date.</i>
|
|
2726
|
-
* </p>
|
|
2727
|
-
* <p>The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.</p>
|
|
2819
|
+
* <p>Available for backward compatibility.</p>
|
|
2728
2820
|
*/
|
|
2729
2821
|
ClassicLinkVPCId?: string;
|
|
2730
2822
|
/**
|
|
2731
|
-
* <p>
|
|
2732
|
-
* <i>EC2-Classic retires on August 15, 2022. This property is not supported after
|
|
2733
|
-
* that date.</i>
|
|
2734
|
-
* </p>
|
|
2735
|
-
* <p>The IDs of one or more security groups for the VPC specified in
|
|
2736
|
-
* <code>ClassicLinkVPCId</code>.</p>
|
|
2823
|
+
* <p>Available for backward compatibility.</p>
|
|
2737
2824
|
*/
|
|
2738
2825
|
ClassicLinkVPCSecurityGroups?: string[];
|
|
2739
2826
|
/**
|
|
@@ -5340,8 +5427,7 @@ export interface UpdateAutoScalingGroupType {
|
|
|
5340
5427
|
*/
|
|
5341
5428
|
LaunchTemplate?: LaunchTemplateSpecification;
|
|
5342
5429
|
/**
|
|
5343
|
-
* <p>
|
|
5344
|
-
* <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html">Auto Scaling
|
|
5430
|
+
* <p>The mixed instances policy. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html">Auto Scaling
|
|
5345
5431
|
* groups with multiple instance types and purchase options</a> in the
|
|
5346
5432
|
* <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
5347
5433
|
*/
|
|
@@ -5604,6 +5690,10 @@ export declare const MemoryGiBPerVCpuRequestFilterSensitiveLog: (obj: MemoryGiBP
|
|
|
5604
5690
|
* @internal
|
|
5605
5691
|
*/
|
|
5606
5692
|
export declare const MemoryMiBRequestFilterSensitiveLog: (obj: MemoryMiBRequest) => any;
|
|
5693
|
+
/**
|
|
5694
|
+
* @internal
|
|
5695
|
+
*/
|
|
5696
|
+
export declare const NetworkBandwidthGbpsRequestFilterSensitiveLog: (obj: NetworkBandwidthGbpsRequest) => any;
|
|
5607
5697
|
/**
|
|
5608
5698
|
* @internal
|
|
5609
5699
|
*/
|
|
@@ -6,8 +6,6 @@ import { AutoScalingClientConfig } from "./AutoScalingClient";
|
|
|
6
6
|
export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
|
-
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
|
-
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
9
|
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
@@ -23,6 +21,8 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
|
|
|
23
21
|
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
24
22
|
apiVersion: string;
|
|
25
23
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
24
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
25
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
26
26
|
disableHostPrefix: boolean;
|
|
27
27
|
logger: import("@aws-sdk/types").Logger;
|
|
28
28
|
serviceId: string;
|
|
@@ -6,8 +6,6 @@ import { AutoScalingClientConfig } from "./AutoScalingClient";
|
|
|
6
6
|
export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
|
-
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
|
-
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
9
|
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
@@ -23,6 +21,8 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
|
|
|
23
21
|
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
24
22
|
apiVersion: string;
|
|
25
23
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
24
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
25
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
26
26
|
disableHostPrefix: boolean;
|
|
27
27
|
logger: import("@aws-sdk/types").Logger;
|
|
28
28
|
serviceId: string;
|
|
@@ -5,6 +5,8 @@ import { AutoScalingClientConfig } from "./AutoScalingClient";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
|
|
7
7
|
apiVersion: string;
|
|
8
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
10
|
disableHostPrefix: boolean;
|
|
9
11
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
10
12
|
logger?: __Logger | undefined;
|
|
@@ -223,6 +223,10 @@ export interface MemoryMiBRequest {
|
|
|
223
223
|
Min: number | undefined;
|
|
224
224
|
Max?: number;
|
|
225
225
|
}
|
|
226
|
+
export interface NetworkBandwidthGbpsRequest {
|
|
227
|
+
Min?: number;
|
|
228
|
+
Max?: number;
|
|
229
|
+
}
|
|
226
230
|
export interface NetworkInterfaceCountRequest {
|
|
227
231
|
Min?: number;
|
|
228
232
|
Max?: number;
|
|
@@ -257,6 +261,8 @@ export interface InstanceRequirements {
|
|
|
257
261
|
AcceleratorManufacturers?: (AcceleratorManufacturer | string)[];
|
|
258
262
|
AcceleratorNames?: (AcceleratorName | string)[];
|
|
259
263
|
AcceleratorTotalMemoryMiB?: AcceleratorTotalMemoryMiBRequest;
|
|
264
|
+
NetworkBandwidthGbps?: NetworkBandwidthGbpsRequest;
|
|
265
|
+
AllowedInstanceTypes?: string[];
|
|
260
266
|
}
|
|
261
267
|
export interface LaunchTemplateOverrides {
|
|
262
268
|
InstanceType?: string;
|
|
@@ -1204,6 +1210,9 @@ export declare const MemoryGiBPerVCpuRequestFilterSensitiveLog: (
|
|
|
1204
1210
|
export declare const MemoryMiBRequestFilterSensitiveLog: (
|
|
1205
1211
|
obj: MemoryMiBRequest
|
|
1206
1212
|
) => any;
|
|
1213
|
+
export declare const NetworkBandwidthGbpsRequestFilterSensitiveLog: (
|
|
1214
|
+
obj: NetworkBandwidthGbpsRequest
|
|
1215
|
+
) => any;
|
|
1207
1216
|
export declare const NetworkInterfaceCountRequestFilterSensitiveLog: (
|
|
1208
1217
|
obj: NetworkInterfaceCountRequest
|
|
1209
1218
|
) => any;
|
|
@@ -5,8 +5,6 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
|
|
|
5
5
|
defaultsMode: import("@aws-sdk/types").Provider<
|
|
6
6
|
import("@aws-sdk/smithy-client").ResolvedDefaultsMode
|
|
7
7
|
>;
|
|
8
|
-
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
|
-
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
8
|
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
11
9
|
credentialDefaultProvider: (
|
|
12
10
|
input: any
|
|
@@ -33,6 +31,8 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
|
|
|
33
31
|
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
34
32
|
apiVersion: string;
|
|
35
33
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
34
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
35
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
36
36
|
disableHostPrefix: boolean;
|
|
37
37
|
logger: import("@aws-sdk/types").Logger;
|
|
38
38
|
serviceId: string;
|
|
@@ -5,8 +5,6 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
|
|
|
5
5
|
defaultsMode: import("@aws-sdk/types").Provider<
|
|
6
6
|
import("@aws-sdk/smithy-client").ResolvedDefaultsMode
|
|
7
7
|
>;
|
|
8
|
-
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
|
-
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
8
|
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
11
9
|
credentialDefaultProvider: (
|
|
12
10
|
input: any
|
|
@@ -33,6 +31,8 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
|
|
|
33
31
|
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
34
32
|
apiVersion: string;
|
|
35
33
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
34
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
35
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
36
36
|
disableHostPrefix: boolean;
|
|
37
37
|
logger: import("@aws-sdk/types").Logger;
|
|
38
38
|
serviceId: string;
|
|
@@ -2,6 +2,8 @@ import { Logger as __Logger } from "@aws-sdk/types";
|
|
|
2
2
|
import { AutoScalingClientConfig } from "./AutoScalingClient";
|
|
3
3
|
export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
|
|
4
4
|
apiVersion: string;
|
|
5
|
+
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
6
|
+
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
5
7
|
disableHostPrefix: boolean;
|
|
6
8
|
endpointProvider: (
|
|
7
9
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-auto-scaling",
|
|
3
3
|
"description": "AWS SDK for JavaScript Auto Scaling Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.205.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.204.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.201.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.204.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.204.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.201.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.201.0",
|
|
28
28
|
"@aws-sdk/middleware-content-length": "3.201.0",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"@aws-sdk/smithy-client": "3.201.0",
|
|
42
42
|
"@aws-sdk/types": "3.201.0",
|
|
43
43
|
"@aws-sdk/url-parser": "3.201.0",
|
|
44
|
+
"@aws-sdk/util-base64": "3.202.0",
|
|
44
45
|
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
45
46
|
"@aws-sdk/util-base64-node": "3.201.0",
|
|
46
47
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|