@aws-sdk/client-auto-scaling 3.696.0 → 3.699.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.
@@ -145,6 +145,15 @@ declare const StartInstanceRefreshCommand_base: {
145
145
  * AllowedInstanceTypes: [ // AllowedInstanceTypes
146
146
  * "STRING_VALUE",
147
147
  * ],
148
+ * BaselinePerformanceFactors: { // BaselinePerformanceFactorsRequest
149
+ * Cpu: { // CpuPerformanceFactorRequest
150
+ * References: [ // PerformanceFactorReferenceSetRequest
151
+ * { // PerformanceFactorReferenceRequest
152
+ * InstanceFamily: "STRING_VALUE",
153
+ * },
154
+ * ],
155
+ * },
156
+ * },
148
157
  * },
149
158
  * },
150
159
  * ],
@@ -165,6 +165,15 @@ declare const UpdateAutoScalingGroupCommand_base: {
165
165
  * AllowedInstanceTypes: [ // AllowedInstanceTypes
166
166
  * "STRING_VALUE",
167
167
  * ],
168
+ * BaselinePerformanceFactors: { // BaselinePerformanceFactorsRequest
169
+ * Cpu: { // CpuPerformanceFactorRequest
170
+ * References: [ // PerformanceFactorReferenceSetRequest
171
+ * { // PerformanceFactorReferenceRequest
172
+ * InstanceFamily: "STRING_VALUE",
173
+ * },
174
+ * ],
175
+ * },
176
+ * },
168
177
  * },
169
178
  * },
170
179
  * ],
@@ -211,6 +220,17 @@ declare const UpdateAutoScalingGroupCommand_base: {
211
220
  * ImpairedZoneHealthCheckBehavior: "ReplaceUnhealthy" || "IgnoreUnhealthy",
212
221
  * },
213
222
  * SkipZonalShiftValidation: true || false,
223
+ * CapacityReservationSpecification: { // CapacityReservationSpecification
224
+ * CapacityReservationPreference: "capacity-reservations-only" || "capacity-reservations-first" || "none" || "default",
225
+ * CapacityReservationTarget: { // CapacityReservationTarget
226
+ * CapacityReservationIds: [ // CapacityReservationIds
227
+ * "STRING_VALUE",
228
+ * ],
229
+ * CapacityReservationResourceGroupArns: [ // CapacityReservationResourceGroupArns
230
+ * "STRING_VALUE",
231
+ * ],
232
+ * },
233
+ * },
214
234
  * };
215
235
  * const command = new UpdateAutoScalingGroupCommand(input);
216
236
  * const response = await client.send(command);
@@ -717,6 +717,82 @@ export interface AvailabilityZoneImpairmentPolicy {
717
717
  */
718
718
  ImpairedZoneHealthCheckBehavior?: ImpairedZoneHealthCheckBehavior | undefined;
719
719
  }
720
+ /**
721
+ * @public
722
+ * @enum
723
+ */
724
+ export declare const CapacityReservationPreference: {
725
+ readonly CapacityReservationsFirst: "capacity-reservations-first";
726
+ readonly CapacityReservationsOnly: "capacity-reservations-only";
727
+ readonly Default: "default";
728
+ readonly None: "none";
729
+ };
730
+ /**
731
+ * @public
732
+ */
733
+ export type CapacityReservationPreference = (typeof CapacityReservationPreference)[keyof typeof CapacityReservationPreference];
734
+ /**
735
+ * <p>
736
+ * The target for the Capacity Reservation. Specify Capacity Reservations IDs or Capacity Reservation resource group ARNs.
737
+ * </p>
738
+ * @public
739
+ */
740
+ export interface CapacityReservationTarget {
741
+ /**
742
+ * <p>
743
+ * The Capacity Reservation IDs to launch instances into.
744
+ * </p>
745
+ * @public
746
+ */
747
+ CapacityReservationIds?: string[] | undefined;
748
+ /**
749
+ * <p>
750
+ * The resource group ARNs of the Capacity Reservation to launch instances into.
751
+ * </p>
752
+ * @public
753
+ */
754
+ CapacityReservationResourceGroupArns?: string[] | undefined;
755
+ }
756
+ /**
757
+ * <p>
758
+ * Describes the Capacity Reservation preference and targeting options. If you specify <code>open</code> or <code>none</code> for <code>CapacityReservationPreference</code>, do not specify a <code>CapacityReservationTarget</code>.
759
+ * </p>
760
+ * @public
761
+ */
762
+ export interface CapacityReservationSpecification {
763
+ /**
764
+ * <p>
765
+ * The capacity reservation preference. The following options are available:
766
+ * </p>
767
+ * <ul>
768
+ * <li>
769
+ * <p>
770
+ * <code>capacity-reservations-only</code> - Auto Scaling will only launch instances into a Capacity Reservation or Capacity Reservation resource group. If capacity isn't available, instances will fail to launch.</p>
771
+ * </li>
772
+ * <li>
773
+ * <p>
774
+ * <code>capacity-reservations-first</code> - Auto Scaling will try to launch instances into a Capacity Reservation or Capacity Reservation resource group first. If capacity isn't available, instances will run in On-Demand capacity.</p>
775
+ * </li>
776
+ * <li>
777
+ * <p>
778
+ * <code>none</code> - Auto Scaling will not launch instances into a Capacity Reservation. Instances will run in On-Demand capacity. </p>
779
+ * </li>
780
+ * <li>
781
+ * <p>
782
+ * <code>default</code> - Auto Scaling uses the Capacity Reservation preference from your launch template or an open Capacity Reservation.</p>
783
+ * </li>
784
+ * </ul>
785
+ * @public
786
+ */
787
+ CapacityReservationPreference?: CapacityReservationPreference | undefined;
788
+ /**
789
+ * <p>
790
+ * Describes a target Capacity Reservation or Capacity Reservation resource group.
791
+ * </p>
792
+ * @public
793
+ */
794
+ CapacityReservationTarget?: CapacityReservationTarget | undefined;
795
+ }
720
796
  /**
721
797
  * <p>Describes an instance maintenance policy.</p>
722
798
  * <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html">Set instance maintenance policy</a> in the
@@ -999,6 +1075,112 @@ export interface BaselineEbsBandwidthMbpsRequest {
999
1075
  */
1000
1076
  Max?: number | undefined;
1001
1077
  }
1078
+ /**
1079
+ * <p>
1080
+ * Specify an instance family to use as the baseline reference for CPU performance. All instance types that All instance types that match your specified attributes will be compared against the CPU performance of the
1081
+ * referenced instance family, regardless of CPU manufacturer or architecture differences.
1082
+ * </p>
1083
+ * <note>
1084
+ * <p>Currently only one instance family can be specified in the list.</p>
1085
+ * </note>
1086
+ * @public
1087
+ */
1088
+ export interface PerformanceFactorReferenceRequest {
1089
+ /**
1090
+ * <p>
1091
+ * The instance family to use as a baseline reference.
1092
+ * </p>
1093
+ * <note>
1094
+ * <p>Make sure that you specify the correct value for the instance family. The instance family is everything before the period (.) in the instance type name. For example, in the instance <code>c6i.large</code>, the
1095
+ * instance family is <code>c6i</code>, not <code>c6</code>. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-type-names.html">Amazon EC2 instance type naming conventions</a> in
1096
+ * <i>Amazon EC2 Instance Types</i>.</p>
1097
+ * </note>
1098
+ * <p>The following instance types are <i>not supported</i> for performance protection.</p>
1099
+ * <ul>
1100
+ * <li>
1101
+ * <p>
1102
+ * <code>c1</code>
1103
+ * </p>
1104
+ * </li>
1105
+ * <li>
1106
+ * <p>
1107
+ * <code>g3| g3s</code>
1108
+ * </p>
1109
+ * </li>
1110
+ * <li>
1111
+ * <p>
1112
+ * <code>hpc7g</code>
1113
+ * </p>
1114
+ * </li>
1115
+ * <li>
1116
+ * <p>
1117
+ * <code>m1| m2</code>
1118
+ * </p>
1119
+ * </li>
1120
+ * <li>
1121
+ * <p>
1122
+ * <code>mac1 | mac2 | mac2-m1ultra | mac2-m2 | mac2-m2pro</code>
1123
+ * </p>
1124
+ * </li>
1125
+ * <li>
1126
+ * <p>
1127
+ * <code>p3dn | p4d | p5</code>
1128
+ * </p>
1129
+ * </li>
1130
+ * <li>
1131
+ * <p>
1132
+ * <code>t1</code>
1133
+ * </p>
1134
+ * </li>
1135
+ * <li>
1136
+ * <p>
1137
+ * <code>u-12tb1 | u-18tb1 | u-24tb1 | u-3tb1 | u-6tb1 | u-9tb1 | u7i-12tb | u7in-16tb | u7in-24tb | u7in-32tb</code>
1138
+ * </p>
1139
+ * </li>
1140
+ * </ul>
1141
+ * <p>If you performance protection by specifying a supported instance family, the returned instance types will exclude the preceding unsupported instance families.</p>
1142
+ * <p>If you specify an unsupported instance family as a value for baseline performance, the API returns an empty response.</p>
1143
+ * @public
1144
+ */
1145
+ InstanceFamily?: string | undefined;
1146
+ }
1147
+ /**
1148
+ * <p>
1149
+ * The CPU performance to consider, using an instance family as the baseline reference.
1150
+ * </p>
1151
+ * @public
1152
+ */
1153
+ export interface CpuPerformanceFactorRequest {
1154
+ /**
1155
+ * <p>
1156
+ * Specify an instance family to use as the baseline reference for CPU performance. All instance types that match your specified attributes will be compared against the CPU performance of the
1157
+ * referenced instance family, regardless of CPU manufacturer or architecture differences.
1158
+ * </p>
1159
+ * <note>
1160
+ * <p>Currently only one instance family can be specified in the list.</p>
1161
+ * </note>
1162
+ * @public
1163
+ */
1164
+ References?: PerformanceFactorReferenceRequest[] | undefined;
1165
+ }
1166
+ /**
1167
+ * <p>
1168
+ * The baseline performance to consider, using an instance family as a baseline reference. The instance family establishes the lowest acceptable level of performance. Auto Scaling uses
1169
+ * this baseline to guide instance type selection, but there is no guarantee that the selected instance types will always exceed the baseline for every application.
1170
+ * </p>
1171
+ * <p>Currently, this parameter only supports CPU performance as a baseline performance factor. For example, specifying <code>c6i</code> uses the CPU performance of the <code>c6i</code>
1172
+ * family as the baseline reference.</p>
1173
+ * @public
1174
+ */
1175
+ export interface BaselinePerformanceFactorsRequest {
1176
+ /**
1177
+ * <p>
1178
+ * The CPU performance to consider, using an instance family as the baseline reference.
1179
+ * </p>
1180
+ * @public
1181
+ */
1182
+ Cpu?: CpuPerformanceFactorRequest | undefined;
1183
+ }
1002
1184
  /**
1003
1185
  * @public
1004
1186
  * @enum
@@ -1533,6 +1715,13 @@ export interface InstanceRequirements {
1533
1715
  * @public
1534
1716
  */
1535
1717
  AllowedInstanceTypes?: string[] | undefined;
1718
+ /**
1719
+ * <p>
1720
+ * The baseline performance factors for the instance requirements.
1721
+ * </p>
1722
+ * @public
1723
+ */
1724
+ BaselinePerformanceFactors?: BaselinePerformanceFactorsRequest | undefined;
1536
1725
  }
1537
1726
  /**
1538
1727
  * <p>Use this structure to let Amazon EC2 Auto Scaling do the following when the Auto Scaling group has a mixed
@@ -1988,6 +2177,13 @@ export interface CreateAutoScalingGroupType {
1988
2177
  * @public
1989
2178
  */
1990
2179
  SkipZonalShiftValidation?: boolean | undefined;
2180
+ /**
2181
+ * <p>
2182
+ * The capacity reservation specification for the Auto Scaling group.
2183
+ * </p>
2184
+ * @public
2185
+ */
2186
+ CapacityReservationSpecification?: CapacityReservationSpecification | undefined;
1991
2187
  }
1992
2188
  /**
1993
2189
  * <p>Describes information used to set up an Amazon EBS volume specified in a block device
@@ -3233,6 +3429,13 @@ export interface AutoScalingGroup {
3233
3429
  * @public
3234
3430
  */
3235
3431
  AvailabilityZoneImpairmentPolicy?: AvailabilityZoneImpairmentPolicy | undefined;
3432
+ /**
3433
+ * <p>
3434
+ * The capacity reservation specification.
3435
+ * </p>
3436
+ * @public
3437
+ */
3438
+ CapacityReservationSpecification?: CapacityReservationSpecification | undefined;
3236
3439
  }
3237
3440
  /**
3238
3441
  * @public
@@ -5221,6 +5424,14 @@ export interface TargetTrackingMetricStat {
5221
5424
  * @public
5222
5425
  */
5223
5426
  Unit?: string | undefined;
5427
+ /**
5428
+ * <p>
5429
+ * The period of the metric in seconds. The default value is 60. Accepted values are 10, 30, and 60. For high resolution metric, set the value to less than 60. For more information, see
5430
+ * <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/policy-creating-high-resolution-metrics.html">Create a target tracking policy using high-resolution metrics for faster response</a>.
5431
+ * </p>
5432
+ * @public
5433
+ */
5434
+ Period?: number | undefined;
5224
5435
  }
5225
5436
  /**
5226
5437
  * <p>The metric data to return. Also defines whether this call is returning data for one
@@ -5263,6 +5474,14 @@ export interface TargetTrackingMetricDataQuery {
5263
5474
  * @public
5264
5475
  */
5265
5476
  Label?: string | undefined;
5477
+ /**
5478
+ * <p>
5479
+ * The period of the metric in seconds. The default value is 60. Accepted values are 10, 30, and 60. For high resolution metric, set the value to less than 60. For more information, see
5480
+ * <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/policy-creating-high-resolution-metrics.html">Create a target tracking policy using high-resolution metrics for faster response</a>.
5481
+ * </p>
5482
+ * @public
5483
+ */
5484
+ Period?: number | undefined;
5266
5485
  /**
5267
5486
  * <p>Indicates whether to return the timestamps and raw data values of this metric. </p>
5268
5487
  * <p>If you use any math expressions, specify <code>true</code> for this value for only the
@@ -5351,6 +5570,14 @@ export interface CustomizedMetricSpecification {
5351
5570
  * @public
5352
5571
  */
5353
5572
  Unit?: string | undefined;
5573
+ /**
5574
+ * <p>
5575
+ * The period of the metric in seconds. The default value is 60. Accepted values are 10, 30, and 60. For high resolution metric, set the value to less than 60. For more information, see
5576
+ * <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/policy-creating-high-resolution-metrics.html">Create a target tracking policy using high-resolution metrics for faster response</a>.
5577
+ * </p>
5578
+ * @public
5579
+ */
5580
+ Period?: number | undefined;
5354
5581
  /**
5355
5582
  * <p>The metrics to include in the target tracking scaling policy, as a metric data query.
5356
5583
  * This can include both raw metric and metric math expressions.</p>
@@ -7588,4 +7815,11 @@ export interface UpdateAutoScalingGroupType {
7588
7815
  * @public
7589
7816
  */
7590
7817
  SkipZonalShiftValidation?: boolean | undefined;
7818
+ /**
7819
+ * <p>
7820
+ * The capacity reservation specification for the Auto Scaling group.
7821
+ * </p>
7822
+ * @public
7823
+ */
7824
+ CapacityReservationSpecification?: CapacityReservationSpecification | undefined;
7591
7825
  }
@@ -206,6 +206,22 @@ export interface AvailabilityZoneImpairmentPolicy {
206
206
  ZonalShiftEnabled?: boolean | undefined;
207
207
  ImpairedZoneHealthCheckBehavior?: ImpairedZoneHealthCheckBehavior | undefined;
208
208
  }
209
+ export declare const CapacityReservationPreference: {
210
+ readonly CapacityReservationsFirst: "capacity-reservations-first";
211
+ readonly CapacityReservationsOnly: "capacity-reservations-only";
212
+ readonly Default: "default";
213
+ readonly None: "none";
214
+ };
215
+ export type CapacityReservationPreference =
216
+ (typeof CapacityReservationPreference)[keyof typeof CapacityReservationPreference];
217
+ export interface CapacityReservationTarget {
218
+ CapacityReservationIds?: string[] | undefined;
219
+ CapacityReservationResourceGroupArns?: string[] | undefined;
220
+ }
221
+ export interface CapacityReservationSpecification {
222
+ CapacityReservationPreference?: CapacityReservationPreference | undefined;
223
+ CapacityReservationTarget?: CapacityReservationTarget | undefined;
224
+ }
209
225
  export interface InstanceMaintenancePolicy {
210
226
  MinHealthyPercentage?: number | undefined;
211
227
  MaxHealthyPercentage?: number | undefined;
@@ -242,6 +258,15 @@ export interface BaselineEbsBandwidthMbpsRequest {
242
258
  Min?: number | undefined;
243
259
  Max?: number | undefined;
244
260
  }
261
+ export interface PerformanceFactorReferenceRequest {
262
+ InstanceFamily?: string | undefined;
263
+ }
264
+ export interface CpuPerformanceFactorRequest {
265
+ References?: PerformanceFactorReferenceRequest[] | undefined;
266
+ }
267
+ export interface BaselinePerformanceFactorsRequest {
268
+ Cpu?: CpuPerformanceFactorRequest | undefined;
269
+ }
245
270
  export declare const BurstablePerformance: {
246
271
  readonly EXCLUDED: "excluded";
247
272
  readonly INCLUDED: "included";
@@ -323,6 +348,7 @@ export interface InstanceRequirements {
323
348
  AcceleratorTotalMemoryMiB?: AcceleratorTotalMemoryMiBRequest | undefined;
324
349
  NetworkBandwidthGbps?: NetworkBandwidthGbpsRequest | undefined;
325
350
  AllowedInstanceTypes?: string[] | undefined;
351
+ BaselinePerformanceFactors?: BaselinePerformanceFactorsRequest | undefined;
326
352
  }
327
353
  export interface LaunchTemplateOverrides {
328
354
  InstanceType?: string | undefined;
@@ -379,6 +405,9 @@ export interface CreateAutoScalingGroupType {
379
405
  | AvailabilityZoneImpairmentPolicy
380
406
  | undefined;
381
407
  SkipZonalShiftValidation?: boolean | undefined;
408
+ CapacityReservationSpecification?:
409
+ | CapacityReservationSpecification
410
+ | undefined;
382
411
  }
383
412
  export interface Ebs {
384
413
  SnapshotId?: string | undefined;
@@ -616,6 +645,9 @@ export interface AutoScalingGroup {
616
645
  AvailabilityZoneImpairmentPolicy?:
617
646
  | AvailabilityZoneImpairmentPolicy
618
647
  | undefined;
648
+ CapacityReservationSpecification?:
649
+ | CapacityReservationSpecification
650
+ | undefined;
619
651
  }
620
652
  export interface AutoScalingGroupsType {
621
653
  AutoScalingGroups: AutoScalingGroup[] | undefined;
@@ -964,12 +996,14 @@ export interface TargetTrackingMetricStat {
964
996
  Metric: Metric | undefined;
965
997
  Stat: string | undefined;
966
998
  Unit?: string | undefined;
999
+ Period?: number | undefined;
967
1000
  }
968
1001
  export interface TargetTrackingMetricDataQuery {
969
1002
  Id: string | undefined;
970
1003
  Expression?: string | undefined;
971
1004
  MetricStat?: TargetTrackingMetricStat | undefined;
972
1005
  Label?: string | undefined;
1006
+ Period?: number | undefined;
973
1007
  ReturnData?: boolean | undefined;
974
1008
  }
975
1009
  export declare const MetricStatistic: {
@@ -987,6 +1021,7 @@ export interface CustomizedMetricSpecification {
987
1021
  Dimensions?: MetricDimension[] | undefined;
988
1022
  Statistic?: MetricStatistic | undefined;
989
1023
  Unit?: string | undefined;
1024
+ Period?: number | undefined;
990
1025
  Metrics?: TargetTrackingMetricDataQuery[] | undefined;
991
1026
  }
992
1027
  export declare const MetricType: {
@@ -1330,4 +1365,7 @@ export interface UpdateAutoScalingGroupType {
1330
1365
  | AvailabilityZoneImpairmentPolicy
1331
1366
  | undefined;
1332
1367
  SkipZonalShiftValidation?: boolean | undefined;
1368
+ CapacityReservationSpecification?:
1369
+ | CapacityReservationSpecification
1370
+ | undefined;
1333
1371
  }
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.696.0",
4
+ "version": "3.699.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-auto-scaling",
@@ -20,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.696.0",
24
- "@aws-sdk/client-sts": "3.696.0",
23
+ "@aws-sdk/client-sso-oidc": "3.699.0",
24
+ "@aws-sdk/client-sts": "3.699.0",
25
25
  "@aws-sdk/core": "3.696.0",
26
- "@aws-sdk/credential-provider-node": "3.696.0",
26
+ "@aws-sdk/credential-provider-node": "3.699.0",
27
27
  "@aws-sdk/middleware-host-header": "3.696.0",
28
28
  "@aws-sdk/middleware-logger": "3.696.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.696.0",