@aws-sdk/client-auto-scaling 3.501.0 → 3.503.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
@@ -4934,6 +4934,9 @@ var se_InstanceRequirements = /* @__PURE__ */ __name((input, context) => {
4934
4934
  if (input[_SMPPOLP] != null) {
4935
4935
  entries[_SMPPOLP] = input[_SMPPOLP];
4936
4936
  }
4937
+ if (input[_MSPAPOOODP] != null) {
4938
+ entries[_MSPAPOOODP] = input[_MSPAPOOODP];
4939
+ }
4937
4940
  if (input[_ODMPPOLP] != null) {
4938
4941
  entries[_ODMPPOLP] = input[_ODMPPOLP];
4939
4942
  }
@@ -7323,6 +7326,9 @@ var de_InstanceRequirements = /* @__PURE__ */ __name((output, context) => {
7323
7326
  if (output[_SMPPOLP] != null) {
7324
7327
  contents[_SMPPOLP] = (0, import_smithy_client.strictParseInt32)(output[_SMPPOLP]);
7325
7328
  }
7329
+ if (output[_MSPAPOOODP] != null) {
7330
+ contents[_MSPAPOOODP] = (0, import_smithy_client.strictParseInt32)(output[_MSPAPOOODP]);
7331
+ }
7326
7332
  if (output[_ODMPPOLP] != null) {
7327
7333
  contents[_ODMPPOLP] = (0, import_smithy_client.strictParseInt32)(output[_ODMPPOLP]);
7328
7334
  }
@@ -8681,6 +8687,7 @@ var _MNOLC = "MaxNumberOfLaunchConfigurations";
8681
8687
  var _MO = "MetadataOptions";
8682
8688
  var _MR = "MaxRecords";
8683
8689
  var _MS = "MinSize";
8690
+ var _MSPAPOOODP = "MaxSpotPriceAsPercentageOfOptimalOnDemandPrice";
8684
8691
  var _MSa = "MaxSize";
8685
8692
  var _MSe = "MetricStat";
8686
8693
  var _MSet = "MetricSpecifications";
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const client_sts_1 = require("@aws-sdk/client-sts");
7
6
  const core_1 = require("@aws-sdk/core");
8
7
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
9
8
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
@@ -30,7 +29,7 @@ const getRuntimeConfig = (config) => {
30
29
  runtime: "node",
31
30
  defaultsMode,
32
31
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
33
- credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
32
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
34
33
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
35
34
  (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
36
35
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
@@ -4305,6 +4305,9 @@ const se_InstanceRequirements = (input, context) => {
4305
4305
  if (input[_SMPPOLP] != null) {
4306
4306
  entries[_SMPPOLP] = input[_SMPPOLP];
4307
4307
  }
4308
+ if (input[_MSPAPOOODP] != null) {
4309
+ entries[_MSPAPOOODP] = input[_MSPAPOOODP];
4310
+ }
4308
4311
  if (input[_ODMPPOLP] != null) {
4309
4312
  entries[_ODMPPOLP] = input[_ODMPPOLP];
4310
4313
  }
@@ -6759,6 +6762,9 @@ const de_InstanceRequirements = (output, context) => {
6759
6762
  if (output[_SMPPOLP] != null) {
6760
6763
  contents[_SMPPOLP] = __strictParseInt32(output[_SMPPOLP]);
6761
6764
  }
6765
+ if (output[_MSPAPOOODP] != null) {
6766
+ contents[_MSPAPOOODP] = __strictParseInt32(output[_MSPAPOOODP]);
6767
+ }
6762
6768
  if (output[_ODMPPOLP] != null) {
6763
6769
  contents[_ODMPPOLP] = __strictParseInt32(output[_ODMPPOLP]);
6764
6770
  }
@@ -8200,6 +8206,7 @@ const _MNOLC = "MaxNumberOfLaunchConfigurations";
8200
8206
  const _MO = "MetadataOptions";
8201
8207
  const _MR = "MaxRecords";
8202
8208
  const _MS = "MinSize";
8209
+ const _MSPAPOOODP = "MaxSpotPriceAsPercentageOfOptimalOnDemandPrice";
8203
8210
  const _MSa = "MaxSize";
8204
8211
  const _MSe = "MetricStat";
8205
8212
  const _MSet = "MetricSpecifications";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
2
  import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
4
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
4
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
@@ -26,7 +25,7 @@ export const getRuntimeConfig = (config) => {
26
25
  runtime: "node",
27
26
  defaultsMode,
28
27
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
29
- credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
28
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
30
29
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
31
30
  defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
32
31
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
@@ -93,6 +93,7 @@ declare const CreateAutoScalingGroupCommand_base: {
93
93
  * "current" || "previous",
94
94
  * ],
95
95
  * SpotMaxPricePercentageOverLowestPrice: Number("int"),
96
+ * MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
96
97
  * OnDemandMaxPricePercentageOverLowestPrice: Number("int"),
97
98
  * BareMetal: "included" || "excluded" || "required",
98
99
  * BurstablePerformance: "included" || "excluded" || "required",
@@ -102,6 +102,7 @@ declare const DescribeAutoScalingGroupsCommand_base: {
102
102
  * // "current" || "previous",
103
103
  * // ],
104
104
  * // SpotMaxPricePercentageOverLowestPrice: Number("int"),
105
+ * // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
105
106
  * // OnDemandMaxPricePercentageOverLowestPrice: Number("int"),
106
107
  * // BareMetal: "included" || "excluded" || "required",
107
108
  * // BurstablePerformance: "included" || "excluded" || "required",
@@ -26,7 +26,8 @@ declare const DescribeInstanceRefreshesCommand_base: {
26
26
  };
27
27
  /**
28
28
  * @public
29
- * <p>Gets information about the instance refreshes for the specified Auto Scaling group.</p>
29
+ * <p>Gets information about the instance refreshes for the specified Auto Scaling group from the
30
+ * previous six weeks.</p>
30
31
  * <p>This operation is part of the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html">instance refresh
31
32
  * feature</a> in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group
32
33
  * after you make configuration changes.</p>
@@ -132,6 +133,7 @@ declare const DescribeInstanceRefreshesCommand_base: {
132
133
  * // "current" || "previous",
133
134
  * // ],
134
135
  * // SpotMaxPricePercentageOverLowestPrice: Number("int"),
136
+ * // MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
135
137
  * // OnDemandMaxPricePercentageOverLowestPrice: Number("int"),
136
138
  * // BareMetal: "included" || "excluded" || "required",
137
139
  * // BurstablePerformance: "included" || "excluded" || "required",
@@ -98,6 +98,7 @@ declare const StartInstanceRefreshCommand_base: {
98
98
  * "current" || "previous",
99
99
  * ],
100
100
  * SpotMaxPricePercentageOverLowestPrice: Number("int"),
101
+ * MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
101
102
  * OnDemandMaxPricePercentageOverLowestPrice: Number("int"),
102
103
  * BareMetal: "included" || "excluded" || "required",
103
104
  * BurstablePerformance: "included" || "excluded" || "required",
@@ -119,6 +119,7 @@ declare const UpdateAutoScalingGroupCommand_base: {
119
119
  * "current" || "previous",
120
120
  * ],
121
121
  * SpotMaxPricePercentageOverLowestPrice: Number("int"),
122
+ * MaxSpotPriceAsPercentageOfOptimalOnDemandPrice: Number("int"),
122
123
  * OnDemandMaxPricePercentageOverLowestPrice: Number("int"),
123
124
  * BareMetal: "included" || "excluded" || "required",
124
125
  * BurstablePerformance: "included" || "excluded" || "required",
@@ -246,7 +246,8 @@ export interface Alarm {
246
246
  export interface AlarmSpecification {
247
247
  /**
248
248
  * @public
249
- * <p>The names of one or more CloudWatch alarms to monitor for the instance refresh. You can specify up to 10 alarms.</p>
249
+ * <p>The names of one or more CloudWatch alarms to monitor for the instance refresh. You can
250
+ * specify up to 10 alarms.</p>
250
251
  */
251
252
  Alarms?: string[];
252
253
  }
@@ -645,8 +646,7 @@ export interface InstanceMaintenancePolicy {
645
646
  * <p>Specifies the lower threshold as a percentage of the desired capacity of the Auto Scaling
646
647
  * group. It represents the minimum percentage of the group to keep in service, healthy,
647
648
  * and ready to use to support your workload when replacing instances. Value range is 0 to
648
- * 100. After it's set, a value of <code>-1</code> will clear the previously set
649
- * value.</p>
649
+ * 100. To clear a previously set value, specify a value of <code>-1</code>.</p>
650
650
  */
651
651
  MinHealthyPercentage?: number;
652
652
  /**
@@ -654,8 +654,7 @@ export interface InstanceMaintenancePolicy {
654
654
  * <p>Specifies the upper threshold as a percentage of the desired capacity of the Auto Scaling
655
655
  * group. It represents the maximum percentage of the group that can be in service and
656
656
  * healthy, or pending, to support your workload when replacing instances. Value range is
657
- * 100 to 200. After it's set, a value of <code>-1</code> will clear the previously set
658
- * value. </p>
657
+ * 100 to 200. To clear a previously set value, specify a value of <code>-1</code>.</p>
659
658
  * <p>Both <code>MinHealthyPercentage</code> and <code>MaxHealthyPercentage</code> must be
660
659
  * specified, and the difference between them cannot be greater than 100. A large range
661
660
  * increases the number of instances that can be replaced at the same time.</p>
@@ -1199,32 +1198,68 @@ export interface InstanceRequirements {
1199
1198
  InstanceGenerations?: InstanceGeneration[];
1200
1199
  /**
1201
1200
  * @public
1202
- * <p>The price protection threshold for Spot Instances. This is the maximum you’ll pay for
1203
- * a Spot Instance, expressed as a percentage higher than the least expensive current
1204
- * generation M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling
1205
- * selects instance types with your attributes, we will exclude instance types whose price
1206
- * is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling
1207
- * interprets as a percentage. To turn off price protection, specify a high value, such as
1208
- * <code>999999</code>. </p>
1201
+ * <p>[Price protection] The price protection threshold for Spot Instances, as a percentage
1202
+ * higher than an identified Spot price. The identified Spot price is the price of the
1203
+ * lowest priced current generation C, M, or R instance type with your specified
1204
+ * attributes. If no current generation C, M, or R instance type matches your attributes,
1205
+ * then the identified price is from either the lowest priced current generation instance
1206
+ * types or, failing that, the lowest priced previous generation instance types that match
1207
+ * your attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will
1208
+ * exclude instance types whose price exceeds your specified threshold.</p>
1209
+ * <p>The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage.</p>
1210
+ * <p>To turn off price protection, specify a high value, such as <code>999999</code>. </p>
1209
1211
  * <p>If you set <code>DesiredCapacityType</code> to <code>vcpu</code> or
1210
- * <code>memory-mib</code>, the price protection threshold is applied based on the per
1211
- * vCPU or per memory price instead of the per instance price. </p>
1212
+ * <code>memory-mib</code>, the price protection threshold is based on the per-vCPU or
1213
+ * per-memory price instead of the per instance price. </p>
1214
+ * <note>
1215
+ * <p>Only one of <code>SpotMaxPricePercentageOverLowestPrice</code> or
1216
+ * <code>MaxSpotPriceAsPercentageOfOptimalOnDemandPrice</code> can be
1217
+ * specified.</p>
1218
+ * </note>
1212
1219
  * <p>Default: <code>100</code>
1213
1220
  * </p>
1214
1221
  */
1215
1222
  SpotMaxPricePercentageOverLowestPrice?: number;
1216
1223
  /**
1217
1224
  * @public
1218
- * <p>The price protection threshold for On-Demand Instances. This is the maximum you’ll pay
1219
- * for an On-Demand Instance, expressed as a percentage higher than the least expensive
1220
- * current generation M, C, or R instance type with your specified attributes. When
1221
- * Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types
1222
- * whose price is higher than your threshold. The parameter accepts an integer, which
1223
- * Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value,
1224
- * such as <code>999999</code>. </p>
1225
+ * <p>[Price protection] The price protection threshold for Spot Instances, as a percentage
1226
+ * of an identified On-Demand price. The identified On-Demand price is the price of the
1227
+ * lowest priced current generation C, M, or R instance type with your specified
1228
+ * attributes. If no current generation C, M, or R instance type matches your attributes,
1229
+ * then the identified price is from either the lowest priced current generation instance
1230
+ * types or, failing that, the lowest priced previous generation instance types that match
1231
+ * your attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will
1232
+ * exclude instance types whose price exceeds your specified threshold.</p>
1233
+ * <p>The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage.</p>
1234
+ * <p>To indicate no price protection threshold, specify a high value, such as
1235
+ * <code>999999</code>. </p>
1236
+ * <p>If you set <code>DesiredCapacityType</code> to <code>vcpu</code> or
1237
+ * <code>memory-mib</code>, the price protection threshold is based on the per-vCPU or
1238
+ * per-memory price instead of the per instance price. </p>
1239
+ * <note>
1240
+ * <p>Only one of <code>SpotMaxPricePercentageOverLowestPrice</code> or
1241
+ * <code>MaxSpotPriceAsPercentageOfOptimalOnDemandPrice</code> can be specified. If
1242
+ * you don't specify either, then <code>SpotMaxPricePercentageOverLowestPrice</code> is
1243
+ * used and the value for that parameter defaults to <code>100</code>.</p>
1244
+ * </note>
1245
+ */
1246
+ MaxSpotPriceAsPercentageOfOptimalOnDemandPrice?: number;
1247
+ /**
1248
+ * @public
1249
+ * <p>[Price protection] The price protection threshold for On-Demand Instances, as a
1250
+ * percentage higher than an identified On-Demand price. The identified On-Demand price is
1251
+ * the price of the lowest priced current generation C, M, or R instance type with your
1252
+ * specified attributes. If no current generation C, M, or R instance type matches your
1253
+ * attributes, then the identified price is from either the lowest priced current
1254
+ * generation instance types or, failing that, the lowest priced previous generation
1255
+ * instance types that match your attributes. When Amazon EC2 Auto Scaling selects instance types with
1256
+ * your attributes, we will exclude instance types whose price exceeds your specified
1257
+ * threshold. </p>
1258
+ * <p>The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage.</p>
1259
+ * <p>To turn off price protection, specify a high value, such as <code>999999</code>. </p>
1225
1260
  * <p>If you set <code>DesiredCapacityType</code> to <code>vcpu</code> or
1226
- * <code>memory-mib</code>, the price protection threshold is applied based on the per
1227
- * vCPU or per memory price instead of the per instance price. </p>
1261
+ * <code>memory-mib</code>, the price protection threshold is applied based on the
1262
+ * per-vCPU or per-memory price instead of the per instance price. </p>
1228
1263
  * <p>Default: <code>20</code>
1229
1264
  * </p>
1230
1265
  */
@@ -4504,8 +4539,8 @@ export interface Metric {
4504
4539
  }
4505
4540
  /**
4506
4541
  * @public
4507
- * <p>This structure defines the CloudWatch metric to return, along with the statistic, period,
4508
- * and unit.</p>
4542
+ * <p>This structure defines the CloudWatch metric to return, along with the statistic and
4543
+ * unit.</p>
4509
4544
  * <p>For more information about the CloudWatch terminology below, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html">Amazon CloudWatch
4510
4545
  * concepts</a> in the <i>Amazon CloudWatch User Guide</i>.</p>
4511
4546
  */
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
10
+ credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
11
11
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -282,6 +282,7 @@ export interface InstanceRequirements {
282
282
  ExcludedInstanceTypes?: string[];
283
283
  InstanceGenerations?: InstanceGeneration[];
284
284
  SpotMaxPricePercentageOverLowestPrice?: number;
285
+ MaxSpotPriceAsPercentageOfOptimalOnDemandPrice?: number;
285
286
  OnDemandMaxPricePercentageOverLowestPrice?: number;
286
287
  BareMetal?: BareMetal;
287
288
  BurstablePerformance?: BurstablePerformance;
@@ -7,8 +7,12 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
9
  credentialDefaultProvider: (
10
- input: any
11
- ) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
10
+ init?:
11
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
12
+ | undefined
13
+ ) => import("@smithy/types").MemoizedProvider<
14
+ import("@smithy/types").AwsCredentialIdentity
15
+ >;
12
16
  defaultUserAgentProvider: import("@smithy/types").Provider<
13
17
  import("@smithy/types").UserAgent
14
18
  >;
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.501.0",
4
+ "version": "3.503.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,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.501.0",
23
+ "@aws-sdk/client-sts": "3.502.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.501.0",
26
- "@aws-sdk/middleware-host-header": "3.496.0",
27
- "@aws-sdk/middleware-logger": "3.496.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.496.0",
29
- "@aws-sdk/middleware-signing": "3.496.0",
30
- "@aws-sdk/middleware-user-agent": "3.496.0",
31
- "@aws-sdk/region-config-resolver": "3.496.0",
32
- "@aws-sdk/types": "3.496.0",
33
- "@aws-sdk/util-endpoints": "3.496.0",
34
- "@aws-sdk/util-user-agent-browser": "3.496.0",
35
- "@aws-sdk/util-user-agent-node": "3.496.0",
25
+ "@aws-sdk/credential-provider-node": "3.503.0",
26
+ "@aws-sdk/middleware-host-header": "3.502.0",
27
+ "@aws-sdk/middleware-logger": "3.502.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.502.0",
29
+ "@aws-sdk/middleware-signing": "3.502.0",
30
+ "@aws-sdk/middleware-user-agent": "3.502.0",
31
+ "@aws-sdk/region-config-resolver": "3.502.0",
32
+ "@aws-sdk/types": "3.502.0",
33
+ "@aws-sdk/util-endpoints": "3.502.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.502.0",
35
+ "@aws-sdk/util-user-agent-node": "3.502.0",
36
36
  "@smithy/config-resolver": "^2.1.1",
37
37
  "@smithy/core": "^1.3.1",
38
38
  "@smithy/fetch-http-handler": "^2.4.1",