@aws-sdk/client-auto-scaling 3.972.0 → 3.975.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/index.js CHANGED
@@ -415,10 +415,11 @@ const _DNCT = "DeleteNotificationConfigurationType";
415
415
  const _DNCTe = "DescribeNotificationConfigurationsType";
416
416
  const _DNCe = "DescribeNotificationConfigurations";
417
417
  const _DOT = "DeleteOnTermination";
418
- const _DP = "DeletePolicy";
418
+ const _DP = "DeletionProtection";
419
419
  const _DPT = "DeletePolicyType";
420
420
  const _DPTe = "DescribePoliciesType";
421
- const _DPe = "DescribePolicies";
421
+ const _DPe = "DeletePolicy";
422
+ const _DPes = "DescribePolicies";
422
423
  const _DR = "DefaultResult";
423
424
  const _DSA = "DeleteScheduledAction";
424
425
  const _DSAT = "DeleteScheduledActionType";
@@ -929,8 +930,8 @@ var AttachTrafficSourcesType$ = [3, n0, _ATST,
929
930
  ];
930
931
  var AutoScalingGroup$ = [3, n0, _ASG,
931
932
  0,
932
- [_ASGN, _MS, _MSa, _DC, _DCe, _AZ, _HCT, _CT, _ASGARN, _LCN, _LT, _MIP, _PC, _LBN, _TGARN, _HCGP, _I, _SP, _PG, _VPCZI, _EM, _S, _T, _TP, _NIPFSI, _SLRARN, _MIL, _CR, _WPC, _WPS, _Co, _DCT, _DIW, _TS, _IMP, _AZD, _AZIP, _CRS, _ILP],
933
- [0, 1, 1, 1, 1, 64 | 0, 0, 4, 0, 0, () => LaunchTemplateSpecification$, [() => MixedInstancesPolicy$, 0], 1, 64 | 0, 64 | 0, 1, () => Instances, () => SuspendedProcesses, 0, 0, () => EnabledMetrics, 0, () => TagDescriptionList, 64 | 0, 2, 0, 1, 2, () => WarmPoolConfiguration$, 1, 0, 0, 1, () => TrafficSources, () => InstanceMaintenancePolicy$, () => AvailabilityZoneDistribution$, () => AvailabilityZoneImpairmentPolicy$, () => CapacityReservationSpecification$, () => InstanceLifecyclePolicy$], 8
933
+ [_ASGN, _MS, _MSa, _DC, _DCe, _AZ, _HCT, _CT, _ASGARN, _LCN, _LT, _MIP, _PC, _LBN, _TGARN, _HCGP, _I, _SP, _PG, _VPCZI, _EM, _S, _T, _TP, _NIPFSI, _SLRARN, _MIL, _CR, _WPC, _WPS, _Co, _DCT, _DIW, _TS, _IMP, _DP, _AZD, _AZIP, _CRS, _ILP],
934
+ [0, 1, 1, 1, 1, 64 | 0, 0, 4, 0, 0, () => LaunchTemplateSpecification$, [() => MixedInstancesPolicy$, 0], 1, 64 | 0, 64 | 0, 1, () => Instances, () => SuspendedProcesses, 0, 0, () => EnabledMetrics, 0, () => TagDescriptionList, 64 | 0, 2, 0, 1, 2, () => WarmPoolConfiguration$, 1, 0, 0, 1, () => TrafficSources, () => InstanceMaintenancePolicy$, 0, () => AvailabilityZoneDistribution$, () => AvailabilityZoneImpairmentPolicy$, () => CapacityReservationSpecification$, () => InstanceLifecyclePolicy$], 8
934
935
  ];
935
936
  var AutoScalingGroupNamesType$ = [3, n0, _ASGNT,
936
937
  0,
@@ -1039,8 +1040,8 @@ var CpuPerformanceFactorRequest$ = [3, n0, _CPFR,
1039
1040
  ];
1040
1041
  var CreateAutoScalingGroupType$ = [3, n0, _CASGT,
1041
1042
  0,
1042
- [_ASGN, _MS, _MSa, _LCN, _LT, _MIP, _IIns, _DC, _DCe, _AZ, _LBN, _TGARN, _HCT, _HCGP, _PG, _VPCZI, _TP, _NIPFSI, _CR, _LHSL, _T, _SLRARN, _MIL, _Co, _DCT, _DIW, _TS, _IMP, _AZD, _AZIP, _SZSV, _CRS, _ILP],
1043
- [0, 1, 1, 0, () => LaunchTemplateSpecification$, [() => MixedInstancesPolicy$, 0], 0, 1, 1, 64 | 0, 64 | 0, 64 | 0, 0, 1, 0, 0, 64 | 0, 2, 2, () => LifecycleHookSpecifications, () => Tags, 0, 1, 0, 0, 1, () => TrafficSources, () => InstanceMaintenancePolicy$, () => AvailabilityZoneDistribution$, () => AvailabilityZoneImpairmentPolicy$, 2, () => CapacityReservationSpecification$, () => InstanceLifecyclePolicy$], 3
1043
+ [_ASGN, _MS, _MSa, _LCN, _LT, _MIP, _IIns, _DC, _DCe, _AZ, _LBN, _TGARN, _HCT, _HCGP, _PG, _VPCZI, _TP, _NIPFSI, _CR, _LHSL, _DP, _T, _SLRARN, _MIL, _Co, _DCT, _DIW, _TS, _IMP, _AZD, _AZIP, _SZSV, _CRS, _ILP],
1044
+ [0, 1, 1, 0, () => LaunchTemplateSpecification$, [() => MixedInstancesPolicy$, 0], 0, 1, 1, 64 | 0, 64 | 0, 64 | 0, 0, 1, 0, 0, 64 | 0, 2, 2, () => LifecycleHookSpecifications, 0, () => Tags, 0, 1, 0, 0, 1, () => TrafficSources, () => InstanceMaintenancePolicy$, () => AvailabilityZoneDistribution$, () => AvailabilityZoneImpairmentPolicy$, 2, () => CapacityReservationSpecification$, () => InstanceLifecyclePolicy$], 3
1044
1045
  ];
1045
1046
  var CreateLaunchConfigurationType$ = [3, n0, _CLCT,
1046
1047
  0,
@@ -1848,8 +1849,8 @@ var TrafficSourceState$ = [3, n0, _TSS,
1848
1849
  ];
1849
1850
  var UpdateAutoScalingGroupType$ = [3, n0, _UASGT,
1850
1851
  0,
1851
- [_ASGN, _LCN, _LT, _MIP, _MS, _MSa, _DC, _DCe, _AZ, _HCT, _HCGP, _PG, _VPCZI, _TP, _NIPFSI, _SLRARN, _MIL, _CR, _Co, _DCT, _DIW, _IMP, _AZD, _AZIP, _SZSV, _CRS, _ILP],
1852
- [0, 0, () => LaunchTemplateSpecification$, [() => MixedInstancesPolicy$, 0], 1, 1, 1, 1, 64 | 0, 0, 1, 0, 0, 64 | 0, 2, 0, 1, 2, 0, 0, 1, () => InstanceMaintenancePolicy$, () => AvailabilityZoneDistribution$, () => AvailabilityZoneImpairmentPolicy$, 2, () => CapacityReservationSpecification$, () => InstanceLifecyclePolicy$], 1
1852
+ [_ASGN, _LCN, _LT, _MIP, _MS, _MSa, _DC, _DCe, _AZ, _HCT, _HCGP, _PG, _VPCZI, _TP, _NIPFSI, _SLRARN, _MIL, _CR, _Co, _DCT, _DIW, _IMP, _AZD, _AZIP, _SZSV, _CRS, _ILP, _DP],
1853
+ [0, 0, () => LaunchTemplateSpecification$, [() => MixedInstancesPolicy$, 0], 1, 1, 1, 1, 64 | 0, 0, 1, 0, 0, 64 | 0, 2, 0, 1, 2, 0, 0, 1, () => InstanceMaintenancePolicy$, () => AvailabilityZoneDistribution$, () => AvailabilityZoneImpairmentPolicy$, 2, () => CapacityReservationSpecification$, () => InstanceLifecyclePolicy$, 0], 1
1853
1854
  ];
1854
1855
  var VCpuCountRequest$ = [3, n0, _VCCR,
1855
1856
  0,
@@ -2027,7 +2028,7 @@ var DeleteLifecycleHook$ = [9, n0, _DLH,
2027
2028
  var DeleteNotificationConfiguration$ = [9, n0, _DNC,
2028
2029
  0, () => DeleteNotificationConfigurationType$, () => __Unit
2029
2030
  ];
2030
- var DeletePolicy$ = [9, n0, _DP,
2031
+ var DeletePolicy$ = [9, n0, _DPe,
2031
2032
  0, () => DeletePolicyType$, () => __Unit
2032
2033
  ];
2033
2034
  var DeleteScheduledAction$ = [9, n0, _DSA,
@@ -2078,7 +2079,7 @@ var DescribeMetricCollectionTypes$ = [9, n0, _DMCT,
2078
2079
  var DescribeNotificationConfigurations$ = [9, n0, _DNCe,
2079
2080
  0, () => DescribeNotificationConfigurationsType$, () => DescribeNotificationConfigurationsAnswer$
2080
2081
  ];
2081
- var DescribePolicies$ = [9, n0, _DPe,
2082
+ var DescribePolicies$ = [9, n0, _DPes,
2082
2083
  0, () => DescribePoliciesType$, () => PoliciesType$
2083
2084
  ];
2084
2085
  var DescribeScalingActivities$ = [9, n0, _DSAe,
@@ -3078,7 +3079,7 @@ const checkState$2 = async (client, input) => {
3078
3079
  reason = result;
3079
3080
  try {
3080
3081
  const returnComparator = () => {
3081
- return (result.AutoScalingGroups.length > 0.0);
3082
+ return (result.AutoScalingGroups.length > 0);
3082
3083
  };
3083
3084
  if (returnComparator() == true) {
3084
3085
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
@@ -3087,7 +3088,7 @@ const checkState$2 = async (client, input) => {
3087
3088
  catch (e) { }
3088
3089
  try {
3089
3090
  const returnComparator = () => {
3090
- return (result.AutoScalingGroups.length > 0.0);
3091
+ return (result.AutoScalingGroups.length > 0);
3091
3092
  };
3092
3093
  if (returnComparator() == false) {
3093
3094
  return { state: utilWaiter.WaiterState.RETRY, reason };
@@ -3178,7 +3179,7 @@ const checkState = async (client, input) => {
3178
3179
  reason = result;
3179
3180
  try {
3180
3181
  const returnComparator = () => {
3181
- return (result.AutoScalingGroups.length > 0.0);
3182
+ return (result.AutoScalingGroups.length > 0);
3182
3183
  };
3183
3184
  if (returnComparator() == false) {
3184
3185
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
@@ -3187,7 +3188,7 @@ const checkState = async (client, input) => {
3187
3188
  catch (e) { }
3188
3189
  try {
3189
3190
  const returnComparator = () => {
3190
- return (result.AutoScalingGroups.length > 0.0);
3191
+ return (result.AutoScalingGroups.length > 0);
3191
3192
  };
3192
3193
  if (returnComparator() == true) {
3193
3194
  return { state: utilWaiter.WaiterState.RETRY, reason };
@@ -3262,6 +3263,11 @@ const CapacityReservationPreference = {
3262
3263
  Default: "default",
3263
3264
  None: "none",
3264
3265
  };
3266
+ const DeletionProtection = {
3267
+ None: "none",
3268
+ PreventAllDeletion: "prevent-all-deletion",
3269
+ PreventForceDeletion: "prevent-force-deletion",
3270
+ };
3265
3271
  const RetentionAction = {
3266
3272
  Retain: "retain",
3267
3273
  Terminate: "terminate",
@@ -3518,6 +3524,7 @@ exports.DeleteWarmPool$ = DeleteWarmPool$;
3518
3524
  exports.DeleteWarmPoolAnswer$ = DeleteWarmPoolAnswer$;
3519
3525
  exports.DeleteWarmPoolCommand = DeleteWarmPoolCommand;
3520
3526
  exports.DeleteWarmPoolType$ = DeleteWarmPoolType$;
3527
+ exports.DeletionProtection = DeletionProtection;
3521
3528
  exports.DescribeAccountLimits$ = DescribeAccountLimits$;
3522
3529
  exports.DescribeAccountLimitsAnswer$ = DescribeAccountLimitsAnswer$;
3523
3530
  exports.DescribeAccountLimitsCommand = DescribeAccountLimitsCommand;
@@ -50,6 +50,11 @@ export const CapacityReservationPreference = {
50
50
  Default: "default",
51
51
  None: "none",
52
52
  };
53
+ export const DeletionProtection = {
54
+ None: "none",
55
+ PreventAllDeletion: "prevent-all-deletion",
56
+ PreventForceDeletion: "prevent-force-deletion",
57
+ };
53
58
  export const RetentionAction = {
54
59
  Retain: "retain",
55
60
  Terminate: "terminate",
@@ -160,10 +160,11 @@ const _DNCT = "DeleteNotificationConfigurationType";
160
160
  const _DNCTe = "DescribeNotificationConfigurationsType";
161
161
  const _DNCe = "DescribeNotificationConfigurations";
162
162
  const _DOT = "DeleteOnTermination";
163
- const _DP = "DeletePolicy";
163
+ const _DP = "DeletionProtection";
164
164
  const _DPT = "DeletePolicyType";
165
165
  const _DPTe = "DescribePoliciesType";
166
- const _DPe = "DescribePolicies";
166
+ const _DPe = "DeletePolicy";
167
+ const _DPes = "DescribePolicies";
167
168
  const _DR = "DefaultResult";
168
169
  const _DSA = "DeleteScheduledAction";
169
170
  const _DSAT = "DeleteScheduledActionType";
@@ -677,8 +678,8 @@ export var AttachTrafficSourcesType$ = [3, n0, _ATST,
677
678
  ];
678
679
  export var AutoScalingGroup$ = [3, n0, _ASG,
679
680
  0,
680
- [_ASGN, _MS, _MSa, _DC, _DCe, _AZ, _HCT, _CT, _ASGARN, _LCN, _LT, _MIP, _PC, _LBN, _TGARN, _HCGP, _I, _SP, _PG, _VPCZI, _EM, _S, _T, _TP, _NIPFSI, _SLRARN, _MIL, _CR, _WPC, _WPS, _Co, _DCT, _DIW, _TS, _IMP, _AZD, _AZIP, _CRS, _ILP],
681
- [0, 1, 1, 1, 1, 64 | 0, 0, 4, 0, 0, () => LaunchTemplateSpecification$, [() => MixedInstancesPolicy$, 0], 1, 64 | 0, 64 | 0, 1, () => Instances, () => SuspendedProcesses, 0, 0, () => EnabledMetrics, 0, () => TagDescriptionList, 64 | 0, 2, 0, 1, 2, () => WarmPoolConfiguration$, 1, 0, 0, 1, () => TrafficSources, () => InstanceMaintenancePolicy$, () => AvailabilityZoneDistribution$, () => AvailabilityZoneImpairmentPolicy$, () => CapacityReservationSpecification$, () => InstanceLifecyclePolicy$], 8
681
+ [_ASGN, _MS, _MSa, _DC, _DCe, _AZ, _HCT, _CT, _ASGARN, _LCN, _LT, _MIP, _PC, _LBN, _TGARN, _HCGP, _I, _SP, _PG, _VPCZI, _EM, _S, _T, _TP, _NIPFSI, _SLRARN, _MIL, _CR, _WPC, _WPS, _Co, _DCT, _DIW, _TS, _IMP, _DP, _AZD, _AZIP, _CRS, _ILP],
682
+ [0, 1, 1, 1, 1, 64 | 0, 0, 4, 0, 0, () => LaunchTemplateSpecification$, [() => MixedInstancesPolicy$, 0], 1, 64 | 0, 64 | 0, 1, () => Instances, () => SuspendedProcesses, 0, 0, () => EnabledMetrics, 0, () => TagDescriptionList, 64 | 0, 2, 0, 1, 2, () => WarmPoolConfiguration$, 1, 0, 0, 1, () => TrafficSources, () => InstanceMaintenancePolicy$, 0, () => AvailabilityZoneDistribution$, () => AvailabilityZoneImpairmentPolicy$, () => CapacityReservationSpecification$, () => InstanceLifecyclePolicy$], 8
682
683
  ];
683
684
  export var AutoScalingGroupNamesType$ = [3, n0, _ASGNT,
684
685
  0,
@@ -787,8 +788,8 @@ export var CpuPerformanceFactorRequest$ = [3, n0, _CPFR,
787
788
  ];
788
789
  export var CreateAutoScalingGroupType$ = [3, n0, _CASGT,
789
790
  0,
790
- [_ASGN, _MS, _MSa, _LCN, _LT, _MIP, _IIns, _DC, _DCe, _AZ, _LBN, _TGARN, _HCT, _HCGP, _PG, _VPCZI, _TP, _NIPFSI, _CR, _LHSL, _T, _SLRARN, _MIL, _Co, _DCT, _DIW, _TS, _IMP, _AZD, _AZIP, _SZSV, _CRS, _ILP],
791
- [0, 1, 1, 0, () => LaunchTemplateSpecification$, [() => MixedInstancesPolicy$, 0], 0, 1, 1, 64 | 0, 64 | 0, 64 | 0, 0, 1, 0, 0, 64 | 0, 2, 2, () => LifecycleHookSpecifications, () => Tags, 0, 1, 0, 0, 1, () => TrafficSources, () => InstanceMaintenancePolicy$, () => AvailabilityZoneDistribution$, () => AvailabilityZoneImpairmentPolicy$, 2, () => CapacityReservationSpecification$, () => InstanceLifecyclePolicy$], 3
791
+ [_ASGN, _MS, _MSa, _LCN, _LT, _MIP, _IIns, _DC, _DCe, _AZ, _LBN, _TGARN, _HCT, _HCGP, _PG, _VPCZI, _TP, _NIPFSI, _CR, _LHSL, _DP, _T, _SLRARN, _MIL, _Co, _DCT, _DIW, _TS, _IMP, _AZD, _AZIP, _SZSV, _CRS, _ILP],
792
+ [0, 1, 1, 0, () => LaunchTemplateSpecification$, [() => MixedInstancesPolicy$, 0], 0, 1, 1, 64 | 0, 64 | 0, 64 | 0, 0, 1, 0, 0, 64 | 0, 2, 2, () => LifecycleHookSpecifications, 0, () => Tags, 0, 1, 0, 0, 1, () => TrafficSources, () => InstanceMaintenancePolicy$, () => AvailabilityZoneDistribution$, () => AvailabilityZoneImpairmentPolicy$, 2, () => CapacityReservationSpecification$, () => InstanceLifecyclePolicy$], 3
792
793
  ];
793
794
  export var CreateLaunchConfigurationType$ = [3, n0, _CLCT,
794
795
  0,
@@ -1596,8 +1597,8 @@ export var TrafficSourceState$ = [3, n0, _TSS,
1596
1597
  ];
1597
1598
  export var UpdateAutoScalingGroupType$ = [3, n0, _UASGT,
1598
1599
  0,
1599
- [_ASGN, _LCN, _LT, _MIP, _MS, _MSa, _DC, _DCe, _AZ, _HCT, _HCGP, _PG, _VPCZI, _TP, _NIPFSI, _SLRARN, _MIL, _CR, _Co, _DCT, _DIW, _IMP, _AZD, _AZIP, _SZSV, _CRS, _ILP],
1600
- [0, 0, () => LaunchTemplateSpecification$, [() => MixedInstancesPolicy$, 0], 1, 1, 1, 1, 64 | 0, 0, 1, 0, 0, 64 | 0, 2, 0, 1, 2, 0, 0, 1, () => InstanceMaintenancePolicy$, () => AvailabilityZoneDistribution$, () => AvailabilityZoneImpairmentPolicy$, 2, () => CapacityReservationSpecification$, () => InstanceLifecyclePolicy$], 1
1600
+ [_ASGN, _LCN, _LT, _MIP, _MS, _MSa, _DC, _DCe, _AZ, _HCT, _HCGP, _PG, _VPCZI, _TP, _NIPFSI, _SLRARN, _MIL, _CR, _Co, _DCT, _DIW, _IMP, _AZD, _AZIP, _SZSV, _CRS, _ILP, _DP],
1601
+ [0, 0, () => LaunchTemplateSpecification$, [() => MixedInstancesPolicy$, 0], 1, 1, 1, 1, 64 | 0, 0, 1, 0, 0, 64 | 0, 2, 0, 1, 2, 0, 0, 1, () => InstanceMaintenancePolicy$, () => AvailabilityZoneDistribution$, () => AvailabilityZoneImpairmentPolicy$, 2, () => CapacityReservationSpecification$, () => InstanceLifecyclePolicy$, 0], 1
1601
1602
  ];
1602
1603
  export var VCpuCountRequest$ = [3, n0, _VCCR,
1603
1604
  0,
@@ -1811,7 +1812,7 @@ export var DeleteLifecycleHook$ = [9, n0, _DLH,
1811
1812
  export var DeleteNotificationConfiguration$ = [9, n0, _DNC,
1812
1813
  0, () => DeleteNotificationConfigurationType$, () => __Unit
1813
1814
  ];
1814
- export var DeletePolicy$ = [9, n0, _DP,
1815
+ export var DeletePolicy$ = [9, n0, _DPe,
1815
1816
  0, () => DeletePolicyType$, () => __Unit
1816
1817
  ];
1817
1818
  export var DeleteScheduledAction$ = [9, n0, _DSA,
@@ -1862,7 +1863,7 @@ export var DescribeMetricCollectionTypes$ = [9, n0, _DMCT,
1862
1863
  export var DescribeNotificationConfigurations$ = [9, n0, _DNCe,
1863
1864
  0, () => DescribeNotificationConfigurationsType$, () => DescribeNotificationConfigurationsAnswer$
1864
1865
  ];
1865
- export var DescribePolicies$ = [9, n0, _DPe,
1866
+ export var DescribePolicies$ = [9, n0, _DPes,
1866
1867
  0, () => DescribePoliciesType$, () => PoliciesType$
1867
1868
  ];
1868
1869
  export var DescribeScalingActivities$ = [9, n0, _DSAe,
@@ -7,7 +7,7 @@ const checkState = async (client, input) => {
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- return (result.AutoScalingGroups.length > 0.0);
10
+ return (result.AutoScalingGroups.length > 0);
11
11
  };
12
12
  if (returnComparator() == true) {
13
13
  return { state: WaiterState.SUCCESS, reason };
@@ -16,7 +16,7 @@ const checkState = async (client, input) => {
16
16
  catch (e) { }
17
17
  try {
18
18
  const returnComparator = () => {
19
- return (result.AutoScalingGroups.length > 0.0);
19
+ return (result.AutoScalingGroups.length > 0);
20
20
  };
21
21
  if (returnComparator() == false) {
22
22
  return { state: WaiterState.RETRY, reason };
@@ -7,7 +7,7 @@ const checkState = async (client, input) => {
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- return (result.AutoScalingGroups.length > 0.0);
10
+ return (result.AutoScalingGroups.length > 0);
11
11
  };
12
12
  if (returnComparator() == false) {
13
13
  return { state: WaiterState.SUCCESS, reason };
@@ -16,7 +16,7 @@ const checkState = async (client, input) => {
16
16
  catch (e) { }
17
17
  try {
18
18
  const returnComparator = () => {
19
- return (result.AutoScalingGroups.length > 0.0);
19
+ return (result.AutoScalingGroups.length > 0);
20
20
  };
21
21
  if (returnComparator() == true) {
22
22
  return { state: WaiterState.RETRY, reason };
@@ -28,7 +28,7 @@ declare const AttachLoadBalancersCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <note>
31
- * <p>This API operation is superseded by <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_AttachTrafficSources.html">https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_AttachTrafficSources.html</a>, which
31
+ * <p>This API operation is superseded by <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_AttachTrafficSources.html">AttachTrafficSources</a>, which
32
32
  * can attach multiple traffic sources types. We recommend using
33
33
  * <code>AttachTrafficSources</code> to simplify how you manage traffic sources.
34
34
  * However, we continue to support <code>AttachLoadBalancers</code>. You can use both
@@ -195,6 +195,7 @@ declare const CreateAutoScalingGroupCommand_base: {
195
195
  * RoleARN: "STRING_VALUE",
196
196
  * },
197
197
  * ],
198
+ * DeletionProtection: "none" || "prevent-force-deletion" || "prevent-all-deletion",
198
199
  * Tags: [ // Tags
199
200
  * { // Tag
200
201
  * ResourceId: "STRING_VALUE",
@@ -260,6 +260,7 @@ declare const DescribeAutoScalingGroupsCommand_base: {
260
260
  * // MinHealthyPercentage: Number("int"),
261
261
  * // MaxHealthyPercentage: Number("int"),
262
262
  * // },
263
+ * // DeletionProtection: "none" || "prevent-force-deletion" || "prevent-all-deletion",
263
264
  * // AvailabilityZoneDistribution: { // AvailabilityZoneDistribution
264
265
  * // CapacityDistributionStrategy: "balanced-only" || "balanced-best-effort",
265
266
  * // },
@@ -28,7 +28,7 @@ declare const DetachLoadBalancerTargetGroupsCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <note>
31
- * <p>This API operation is superseded by <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeTrafficSources.html">DetachTrafficSources</a>, which
31
+ * <p>This API operation is superseded by <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DetachTrafficSources.html">DetachTrafficSources</a>, which
32
32
  * can detach multiple traffic sources types. We recommend using
33
33
  * <code>DetachTrafficSources</code> to simplify how you manage traffic sources.
34
34
  * However, we continue to support <code>DetachLoadBalancerTargetGroups</code>. You can
@@ -239,6 +239,7 @@ declare const UpdateAutoScalingGroupCommand_base: {
239
239
  * TerminateHookAbandon: "retain" || "terminate",
240
240
  * },
241
241
  * },
242
+ * DeletionProtection: "none" || "prevent-force-deletion" || "prevent-all-deletion",
242
243
  * };
243
244
  * const command = new UpdateAutoScalingGroupCommand(input);
244
245
  * const response = await client.send(command);
@@ -106,6 +106,19 @@ export declare const CapacityReservationPreference: {
106
106
  * @public
107
107
  */
108
108
  export type CapacityReservationPreference = (typeof CapacityReservationPreference)[keyof typeof CapacityReservationPreference];
109
+ /**
110
+ * @public
111
+ * @enum
112
+ */
113
+ export declare const DeletionProtection: {
114
+ readonly None: "none";
115
+ readonly PreventAllDeletion: "prevent-all-deletion";
116
+ readonly PreventForceDeletion: "prevent-force-deletion";
117
+ };
118
+ /**
119
+ * @public
120
+ */
121
+ export type DeletionProtection = (typeof DeletionProtection)[keyof typeof DeletionProtection];
109
122
  /**
110
123
  * @public
111
124
  * @enum
@@ -1,4 +1,4 @@
1
- import { AcceleratorManufacturer, AcceleratorName, AcceleratorType, BareMetal, BurstablePerformance, CapacityDistributionStrategy, CapacityReservationPreference, CpuManufacturer, ImpairedZoneHealthCheckBehavior, InstanceGeneration, InstanceMetadataEndpointState, InstanceMetadataHttpTokensState, InstanceRefreshStatus, LifecycleState, LocalStorage, LocalStorageType, MetricStatistic, MetricType, PredefinedLoadMetricType, PredefinedMetricPairType, PredefinedScalingMetricType, PredictiveScalingMaxCapacityBreachBehavior, PredictiveScalingMode, RefreshStrategy, RetentionAction, RetryStrategy, ScaleInProtectedInstances, ScalingActivityStatusCode, StandbyInstances, WarmPoolState, WarmPoolStatus } from "./enums";
1
+ import { AcceleratorManufacturer, AcceleratorName, AcceleratorType, BareMetal, BurstablePerformance, CapacityDistributionStrategy, CapacityReservationPreference, CpuManufacturer, DeletionProtection, ImpairedZoneHealthCheckBehavior, InstanceGeneration, InstanceMetadataEndpointState, InstanceMetadataHttpTokensState, InstanceRefreshStatus, LifecycleState, LocalStorage, LocalStorageType, MetricStatistic, MetricType, PredefinedLoadMetricType, PredefinedMetricPairType, PredefinedScalingMetricType, PredictiveScalingMaxCapacityBreachBehavior, PredictiveScalingMode, RefreshStrategy, RetentionAction, RetryStrategy, ScaleInProtectedInstances, ScalingActivityStatusCode, StandbyInstances, WarmPoolState, WarmPoolStatus } from "./enums";
2
2
  /**
3
3
  * <p>Specifies the minimum and maximum for the <code>AcceleratorCount</code> object when
4
4
  * you specify <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_InstanceRequirements.html">InstanceRequirements</a> for an Auto Scaling group.</p>
@@ -1908,6 +1908,22 @@ export interface CreateAutoScalingGroupType {
1908
1908
  * @public
1909
1909
  */
1910
1910
  LifecycleHookSpecificationList?: LifecycleHookSpecification[] | undefined;
1911
+ /**
1912
+ * <p>
1913
+ * The deletion protection setting for the Auto Scaling group. This setting helps safeguard your Auto Scaling group and its
1914
+ * instances by controlling whether the <code>DeleteAutoScalingGroup</code> operation is allowed. When deletion
1915
+ * protection is enabled, users cannot delete the Auto Scaling group according to the specified protection level until
1916
+ * the setting is changed back to a less restrictive level.
1917
+ * </p>
1918
+ * <p>
1919
+ * The valid values are <code>none</code>, <code>prevent-force-deletion</code>, and <code>prevent-all-deletion</code>.
1920
+ * </p>
1921
+ * <p>
1922
+ * Default: <code>none</code>
1923
+ * </p>
1924
+ * @public
1925
+ */
1926
+ DeletionProtection?: DeletionProtection | undefined;
1911
1927
  /**
1912
1928
  * <p>One or more tags. You can tag your Auto Scaling group and propagate the tags to the Amazon EC2
1913
1929
  * instances it launches. Tags are not propagated to Amazon EBS volumes. To add tags to Amazon EBS
@@ -3239,6 +3255,11 @@ export interface AutoScalingGroup {
3239
3255
  * @public
3240
3256
  */
3241
3257
  InstanceMaintenancePolicy?: InstanceMaintenancePolicy | undefined;
3258
+ /**
3259
+ * <p>The deletion protection setting for the Auto Scaling group.</p>
3260
+ * @public
3261
+ */
3262
+ DeletionProtection?: DeletionProtection | undefined;
3242
3263
  /**
3243
3264
  * <p>The EC2 instance capacity distribution across Availability Zones for the Auto Scaling group.</p>
3244
3265
  * @public
@@ -7749,4 +7770,20 @@ export interface UpdateAutoScalingGroupType {
7749
7770
  * @public
7750
7771
  */
7751
7772
  InstanceLifecyclePolicy?: InstanceLifecyclePolicy | undefined;
7773
+ /**
7774
+ * <p>
7775
+ * The deletion protection setting for the Auto Scaling group. This setting helps safeguard your Auto Scaling group and its
7776
+ * instances by controlling whether the <code>DeleteAutoScalingGroup</code> operation is allowed. When deletion
7777
+ * protection is enabled, users cannot delete the Auto Scaling group according to the specified protection level until
7778
+ * the setting is changed back to a less restrictive level.
7779
+ * </p>
7780
+ * <p>
7781
+ * The valid values are <code>none</code>, <code>prevent-force-deletion</code>, and <code>prevent-all-deletion</code>.
7782
+ * </p>
7783
+ * <p>
7784
+ * Default: <code>none</code>
7785
+ * </p>
7786
+ * @public
7787
+ */
7788
+ DeletionProtection?: DeletionProtection | undefined;
7752
7789
  }
@@ -64,6 +64,13 @@ export declare const CapacityReservationPreference: {
64
64
  };
65
65
  export type CapacityReservationPreference =
66
66
  (typeof CapacityReservationPreference)[keyof typeof CapacityReservationPreference];
67
+ export declare const DeletionProtection: {
68
+ readonly None: "none";
69
+ readonly PreventAllDeletion: "prevent-all-deletion";
70
+ readonly PreventForceDeletion: "prevent-force-deletion";
71
+ };
72
+ export type DeletionProtection =
73
+ (typeof DeletionProtection)[keyof typeof DeletionProtection];
67
74
  export declare const RetentionAction: {
68
75
  readonly Retain: "retain";
69
76
  readonly Terminate: "terminate";
@@ -7,6 +7,7 @@ import {
7
7
  CapacityDistributionStrategy,
8
8
  CapacityReservationPreference,
9
9
  CpuManufacturer,
10
+ DeletionProtection,
10
11
  ImpairedZoneHealthCheckBehavior,
11
12
  InstanceGeneration,
12
13
  InstanceMetadataEndpointState,
@@ -296,6 +297,7 @@ export interface CreateAutoScalingGroupType {
296
297
  NewInstancesProtectedFromScaleIn?: boolean | undefined;
297
298
  CapacityRebalance?: boolean | undefined;
298
299
  LifecycleHookSpecificationList?: LifecycleHookSpecification[] | undefined;
300
+ DeletionProtection?: DeletionProtection | undefined;
299
301
  Tags?: Tag[] | undefined;
300
302
  ServiceLinkedRoleARN?: string | undefined;
301
303
  MaxInstanceLifetime?: number | undefined;
@@ -486,6 +488,7 @@ export interface AutoScalingGroup {
486
488
  DefaultInstanceWarmup?: number | undefined;
487
489
  TrafficSources?: TrafficSourceIdentifier[] | undefined;
488
490
  InstanceMaintenancePolicy?: InstanceMaintenancePolicy | undefined;
491
+ DeletionProtection?: DeletionProtection | undefined;
489
492
  AvailabilityZoneDistribution?: AvailabilityZoneDistribution | undefined;
490
493
  AvailabilityZoneImpairmentPolicy?:
491
494
  | AvailabilityZoneImpairmentPolicy
@@ -1143,4 +1146,5 @@ export interface UpdateAutoScalingGroupType {
1143
1146
  | CapacityReservationSpecification
1144
1147
  | undefined;
1145
1148
  InstanceLifecyclePolicy?: InstanceLifecyclePolicy | undefined;
1149
+ DeletionProtection?: DeletionProtection | undefined;
1146
1150
  }
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.972.0",
4
+ "version": "3.975.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-auto-scaling",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "3.972.0",
25
- "@aws-sdk/credential-provider-node": "3.972.0",
26
- "@aws-sdk/middleware-host-header": "3.972.0",
27
- "@aws-sdk/middleware-logger": "3.972.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.972.0",
29
- "@aws-sdk/middleware-user-agent": "3.972.0",
30
- "@aws-sdk/region-config-resolver": "3.972.0",
31
- "@aws-sdk/types": "3.972.0",
24
+ "@aws-sdk/core": "^3.973.1",
25
+ "@aws-sdk/credential-provider-node": "^3.972.1",
26
+ "@aws-sdk/middleware-host-header": "^3.972.1",
27
+ "@aws-sdk/middleware-logger": "^3.972.1",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.2",
30
+ "@aws-sdk/region-config-resolver": "^3.972.1",
31
+ "@aws-sdk/types": "^3.973.0",
32
32
  "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "3.972.0",
34
- "@aws-sdk/util-user-agent-node": "3.972.0",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.1",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.20.6",
36
+ "@smithy/core": "^3.21.1",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.7",
42
- "@smithy/middleware-retry": "^4.4.23",
41
+ "@smithy/middleware-endpoint": "^4.4.11",
42
+ "@smithy/middleware-retry": "^4.4.27",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.8",
48
+ "@smithy/smithy-client": "^4.10.12",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.22",
55
- "@smithy/util-defaults-mode-node": "^4.2.25",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.26",
55
+ "@smithy/util-defaults-mode-node": "^4.2.29",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",