@aws-sdk/client-auto-scaling 3.697.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.
package/dist-cjs/index.js CHANGED
@@ -3030,6 +3030,9 @@ var se_CustomizedMetricSpecification = /* @__PURE__ */ __name((input, context) =
3030
3030
  if (input[_U] != null) {
3031
3031
  entries[_U] = input[_U];
3032
3032
  }
3033
+ if (input[_P] != null) {
3034
+ entries[_P] = input[_P];
3035
+ }
3033
3036
  if (input[_Me] != null) {
3034
3037
  const memberEntries = se_TargetTrackingMetricDataQueries(input[_Me], context);
3035
3038
  if (((_b = input[_Me]) == null ? void 0 : _b.length) === 0) {
@@ -4897,8 +4900,8 @@ var se_StartInstanceRefreshType = /* @__PURE__ */ __name((input, context) => {
4897
4900
  entries[loc] = value;
4898
4901
  });
4899
4902
  }
4900
- if (input[_P] != null) {
4901
- const memberEntries = se_RefreshPreferences(input[_P], context);
4903
+ if (input[_Pr] != null) {
4904
+ const memberEntries = se_RefreshPreferences(input[_Pr], context);
4902
4905
  Object.entries(memberEntries).forEach(([key, value]) => {
4903
4906
  const loc = `Preferences.${key}`;
4904
4907
  entries[loc] = value;
@@ -5037,6 +5040,9 @@ var se_TargetTrackingMetricDataQuery = /* @__PURE__ */ __name((input, context) =
5037
5040
  if (input[_L] != null) {
5038
5041
  entries[_L] = input[_L];
5039
5042
  }
5043
+ if (input[_P] != null) {
5044
+ entries[_P] = input[_P];
5045
+ }
5040
5046
  if (input[_RD] != null) {
5041
5047
  entries[_RD] = input[_RD];
5042
5048
  }
@@ -5057,6 +5063,9 @@ var se_TargetTrackingMetricStat = /* @__PURE__ */ __name((input, context) => {
5057
5063
  if (input[_U] != null) {
5058
5064
  entries[_U] = input[_U];
5059
5065
  }
5066
+ if (input[_P] != null) {
5067
+ entries[_P] = input[_P];
5068
+ }
5060
5069
  return entries;
5061
5070
  }, "se_TargetTrackingMetricStat");
5062
5071
  var se_TerminateInstanceInAutoScalingGroupType = /* @__PURE__ */ __name((input, context) => {
@@ -5344,8 +5353,8 @@ var de_Activity = /* @__PURE__ */ __name((output, context) => {
5344
5353
  if (output[_SMt] != null) {
5345
5354
  contents[_SMt] = (0, import_smithy_client.expectString)(output[_SMt]);
5346
5355
  }
5347
- if (output[_Pr] != null) {
5348
- contents[_Pr] = (0, import_smithy_client.strictParseInt32)(output[_Pr]);
5356
+ if (output[_Pro] != null) {
5357
+ contents[_Pro] = (0, import_smithy_client.strictParseInt32)(output[_Pro]);
5349
5358
  }
5350
5359
  if (output[_Det] != null) {
5351
5360
  contents[_Det] = (0, import_smithy_client.expectString)(output[_Det]);
@@ -5822,6 +5831,9 @@ var de_CustomizedMetricSpecification = /* @__PURE__ */ __name((output, context)
5822
5831
  if (output[_U] != null) {
5823
5832
  contents[_U] = (0, import_smithy_client.expectString)(output[_U]);
5824
5833
  }
5834
+ if (output[_P] != null) {
5835
+ contents[_P] = (0, import_smithy_client.strictParseInt32)(output[_P]);
5836
+ }
5825
5837
  if (output.Metrics === "") {
5826
5838
  contents[_Me] = [];
5827
5839
  } else if (output[_Me] != null && output[_Me][_me] != null) {
@@ -6209,8 +6221,8 @@ var de_InstanceRefresh = /* @__PURE__ */ __name((output, context) => {
6209
6221
  if (output[_PD] != null) {
6210
6222
  contents[_PD] = de_InstanceRefreshProgressDetails(output[_PD], context);
6211
6223
  }
6212
- if (output[_P] != null) {
6213
- contents[_P] = de_RefreshPreferences(output[_P], context);
6224
+ if (output[_Pr] != null) {
6225
+ contents[_Pr] = de_RefreshPreferences(output[_Pr], context);
6214
6226
  }
6215
6227
  if (output[_DCes] != null) {
6216
6228
  contents[_DCes] = de_DesiredConfiguration(output[_DCes], context);
@@ -6974,9 +6986,9 @@ var de_Processes = /* @__PURE__ */ __name((output, context) => {
6974
6986
  var de_ProcessesType = /* @__PURE__ */ __name((output, context) => {
6975
6987
  const contents = {};
6976
6988
  if (output.Processes === "") {
6977
- contents[_Pro] = [];
6978
- } else if (output[_Pro] != null && output[_Pro][_me] != null) {
6979
- contents[_Pro] = de_Processes((0, import_smithy_client.getArrayIfSingleItem)(output[_Pro][_me]), context);
6989
+ contents[_Proc] = [];
6990
+ } else if (output[_Proc] != null && output[_Proc][_me] != null) {
6991
+ contents[_Proc] = de_Processes((0, import_smithy_client.getArrayIfSingleItem)(output[_Proc][_me]), context);
6980
6992
  }
6981
6993
  return contents;
6982
6994
  }, "de_ProcessesType");
@@ -7332,6 +7344,9 @@ var de_TargetTrackingMetricDataQuery = /* @__PURE__ */ __name((output, context)
7332
7344
  if (output[_L] != null) {
7333
7345
  contents[_L] = (0, import_smithy_client.expectString)(output[_L]);
7334
7346
  }
7347
+ if (output[_P] != null) {
7348
+ contents[_P] = (0, import_smithy_client.strictParseInt32)(output[_P]);
7349
+ }
7335
7350
  if (output[_RD] != null) {
7336
7351
  contents[_RD] = (0, import_smithy_client.parseBoolean)(output[_RD]);
7337
7352
  }
@@ -7348,6 +7363,9 @@ var de_TargetTrackingMetricStat = /* @__PURE__ */ __name((output, context) => {
7348
7363
  if (output[_U] != null) {
7349
7364
  contents[_U] = (0, import_smithy_client.expectString)(output[_U]);
7350
7365
  }
7366
+ if (output[_P] != null) {
7367
+ contents[_P] = (0, import_smithy_client.strictParseInt32)(output[_P]);
7368
+ }
7351
7369
  return contents;
7352
7370
  }, "de_TargetTrackingMetricStat");
7353
7371
  var de_TerminationPolicies = /* @__PURE__ */ __name((output, context) => {
@@ -7711,7 +7729,7 @@ var _ODAS = "OnDemandAllocationStrategy";
7711
7729
  var _ODBC = "OnDemandBaseCapacity";
7712
7730
  var _ODMPPOLP = "OnDemandMaxPricePercentageOverLowestPrice";
7713
7731
  var _ODPABC = "OnDemandPercentageAboveBaseCapacity";
7714
- var _P = "Preferences";
7732
+ var _P = "Period";
7715
7733
  var _PAL = "PropagateAtLaunch";
7716
7734
  var _PARN = "PolicyARN";
7717
7735
  var _PC = "PredictedCapacity";
@@ -7739,8 +7757,9 @@ var _PT = "PlacementTenancy";
7739
7757
  var _PTo = "PolicyTypes";
7740
7758
  var _PTol = "PolicyType";
7741
7759
  var _PWP = "PutWarmPool";
7742
- var _Pr = "Progress";
7743
- var _Pro = "Processes";
7760
+ var _Pr = "Preferences";
7761
+ var _Pro = "Progress";
7762
+ var _Proc = "Processes";
7744
7763
  var _R = "References";
7745
7764
  var _RARN = "RoleARN";
7746
7765
  var _RD = "ReturnData";
@@ -2349,6 +2349,9 @@ const se_CustomizedMetricSpecification = (input, context) => {
2349
2349
  if (input[_U] != null) {
2350
2350
  entries[_U] = input[_U];
2351
2351
  }
2352
+ if (input[_P] != null) {
2353
+ entries[_P] = input[_P];
2354
+ }
2352
2355
  if (input[_Me] != null) {
2353
2356
  const memberEntries = se_TargetTrackingMetricDataQueries(input[_Me], context);
2354
2357
  if (input[_Me]?.length === 0) {
@@ -4185,8 +4188,8 @@ const se_StartInstanceRefreshType = (input, context) => {
4185
4188
  entries[loc] = value;
4186
4189
  });
4187
4190
  }
4188
- if (input[_P] != null) {
4189
- const memberEntries = se_RefreshPreferences(input[_P], context);
4191
+ if (input[_Pr] != null) {
4192
+ const memberEntries = se_RefreshPreferences(input[_Pr], context);
4190
4193
  Object.entries(memberEntries).forEach(([key, value]) => {
4191
4194
  const loc = `Preferences.${key}`;
4192
4195
  entries[loc] = value;
@@ -4325,6 +4328,9 @@ const se_TargetTrackingMetricDataQuery = (input, context) => {
4325
4328
  if (input[_L] != null) {
4326
4329
  entries[_L] = input[_L];
4327
4330
  }
4331
+ if (input[_P] != null) {
4332
+ entries[_P] = input[_P];
4333
+ }
4328
4334
  if (input[_RD] != null) {
4329
4335
  entries[_RD] = input[_RD];
4330
4336
  }
@@ -4345,6 +4351,9 @@ const se_TargetTrackingMetricStat = (input, context) => {
4345
4351
  if (input[_U] != null) {
4346
4352
  entries[_U] = input[_U];
4347
4353
  }
4354
+ if (input[_P] != null) {
4355
+ entries[_P] = input[_P];
4356
+ }
4348
4357
  return entries;
4349
4358
  };
4350
4359
  const se_TerminateInstanceInAutoScalingGroupType = (input, context) => {
@@ -4640,8 +4649,8 @@ const de_Activity = (output, context) => {
4640
4649
  if (output[_SMt] != null) {
4641
4650
  contents[_SMt] = __expectString(output[_SMt]);
4642
4651
  }
4643
- if (output[_Pr] != null) {
4644
- contents[_Pr] = __strictParseInt32(output[_Pr]);
4652
+ if (output[_Pro] != null) {
4653
+ contents[_Pro] = __strictParseInt32(output[_Pro]);
4645
4654
  }
4646
4655
  if (output[_Det] != null) {
4647
4656
  contents[_Det] = __expectString(output[_Det]);
@@ -5163,6 +5172,9 @@ const de_CustomizedMetricSpecification = (output, context) => {
5163
5172
  if (output[_U] != null) {
5164
5173
  contents[_U] = __expectString(output[_U]);
5165
5174
  }
5175
+ if (output[_P] != null) {
5176
+ contents[_P] = __strictParseInt32(output[_P]);
5177
+ }
5166
5178
  if (output.Metrics === "") {
5167
5179
  contents[_Me] = [];
5168
5180
  }
@@ -5576,8 +5588,8 @@ const de_InstanceRefresh = (output, context) => {
5576
5588
  if (output[_PD] != null) {
5577
5589
  contents[_PD] = de_InstanceRefreshProgressDetails(output[_PD], context);
5578
5590
  }
5579
- if (output[_P] != null) {
5580
- contents[_P] = de_RefreshPreferences(output[_P], context);
5591
+ if (output[_Pr] != null) {
5592
+ contents[_Pr] = de_RefreshPreferences(output[_Pr], context);
5581
5593
  }
5582
5594
  if (output[_DCes] != null) {
5583
5595
  contents[_DCes] = de_DesiredConfiguration(output[_DCes], context);
@@ -6403,10 +6415,10 @@ const de_Processes = (output, context) => {
6403
6415
  const de_ProcessesType = (output, context) => {
6404
6416
  const contents = {};
6405
6417
  if (output.Processes === "") {
6406
- contents[_Pro] = [];
6418
+ contents[_Proc] = [];
6407
6419
  }
6408
- else if (output[_Pro] != null && output[_Pro][_me] != null) {
6409
- contents[_Pro] = de_Processes(__getArrayIfSingleItem(output[_Pro][_me]), context);
6420
+ else if (output[_Proc] != null && output[_Proc][_me] != null) {
6421
+ contents[_Proc] = de_Processes(__getArrayIfSingleItem(output[_Proc][_me]), context);
6410
6422
  }
6411
6423
  return contents;
6412
6424
  };
@@ -6783,6 +6795,9 @@ const de_TargetTrackingMetricDataQuery = (output, context) => {
6783
6795
  if (output[_L] != null) {
6784
6796
  contents[_L] = __expectString(output[_L]);
6785
6797
  }
6798
+ if (output[_P] != null) {
6799
+ contents[_P] = __strictParseInt32(output[_P]);
6800
+ }
6786
6801
  if (output[_RD] != null) {
6787
6802
  contents[_RD] = __parseBoolean(output[_RD]);
6788
6803
  }
@@ -6799,6 +6814,9 @@ const de_TargetTrackingMetricStat = (output, context) => {
6799
6814
  if (output[_U] != null) {
6800
6815
  contents[_U] = __expectString(output[_U]);
6801
6816
  }
6817
+ if (output[_P] != null) {
6818
+ contents[_P] = __strictParseInt32(output[_P]);
6819
+ }
6802
6820
  return contents;
6803
6821
  };
6804
6822
  const de_TerminationPolicies = (output, context) => {
@@ -7169,7 +7187,7 @@ const _ODAS = "OnDemandAllocationStrategy";
7169
7187
  const _ODBC = "OnDemandBaseCapacity";
7170
7188
  const _ODMPPOLP = "OnDemandMaxPricePercentageOverLowestPrice";
7171
7189
  const _ODPABC = "OnDemandPercentageAboveBaseCapacity";
7172
- const _P = "Preferences";
7190
+ const _P = "Period";
7173
7191
  const _PAL = "PropagateAtLaunch";
7174
7192
  const _PARN = "PolicyARN";
7175
7193
  const _PC = "PredictedCapacity";
@@ -7197,8 +7215,9 @@ const _PT = "PlacementTenancy";
7197
7215
  const _PTo = "PolicyTypes";
7198
7216
  const _PTol = "PolicyType";
7199
7217
  const _PWP = "PutWarmPool";
7200
- const _Pr = "Progress";
7201
- const _Pro = "Processes";
7218
+ const _Pr = "Preferences";
7219
+ const _Pro = "Progress";
7220
+ const _Proc = "Processes";
7202
7221
  const _R = "References";
7203
7222
  const _RARN = "RoleARN";
7204
7223
  const _RD = "ReturnData";
@@ -90,6 +90,7 @@ declare const DescribePoliciesCommand_base: {
90
90
  * // ],
91
91
  * // Statistic: "Average" || "Minimum" || "Maximum" || "SampleCount" || "Sum",
92
92
  * // Unit: "STRING_VALUE",
93
+ * // Period: Number("int"),
93
94
  * // Metrics: [ // TargetTrackingMetricDataQueries
94
95
  * // { // TargetTrackingMetricDataQuery
95
96
  * // Id: "STRING_VALUE", // required
@@ -107,8 +108,10 @@ declare const DescribePoliciesCommand_base: {
107
108
  * // },
108
109
  * // Stat: "STRING_VALUE", // required
109
110
  * // Unit: "STRING_VALUE",
111
+ * // Period: Number("int"),
110
112
  * // },
111
113
  * // Label: "STRING_VALUE",
114
+ * // Period: Number("int"),
112
115
  * // ReturnData: true || false,
113
116
  * // },
114
117
  * // ],
@@ -78,6 +78,7 @@ declare const PutScalingPolicyCommand_base: {
78
78
  * ],
79
79
  * Statistic: "Average" || "Minimum" || "Maximum" || "SampleCount" || "Sum",
80
80
  * Unit: "STRING_VALUE",
81
+ * Period: Number("int"),
81
82
  * Metrics: [ // TargetTrackingMetricDataQueries
82
83
  * { // TargetTrackingMetricDataQuery
83
84
  * Id: "STRING_VALUE", // required
@@ -95,8 +96,10 @@ declare const PutScalingPolicyCommand_base: {
95
96
  * },
96
97
  * Stat: "STRING_VALUE", // required
97
98
  * Unit: "STRING_VALUE",
99
+ * Period: Number("int"),
98
100
  * },
99
101
  * Label: "STRING_VALUE",
102
+ * Period: Number("int"),
100
103
  * ReturnData: true || false,
101
104
  * },
102
105
  * ],
@@ -5424,6 +5424,14 @@ export interface TargetTrackingMetricStat {
5424
5424
  * @public
5425
5425
  */
5426
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;
5427
5435
  }
5428
5436
  /**
5429
5437
  * <p>The metric data to return. Also defines whether this call is returning data for one
@@ -5466,6 +5474,14 @@ export interface TargetTrackingMetricDataQuery {
5466
5474
  * @public
5467
5475
  */
5468
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;
5469
5485
  /**
5470
5486
  * <p>Indicates whether to return the timestamps and raw data values of this metric. </p>
5471
5487
  * <p>If you use any math expressions, specify <code>true</code> for this value for only the
@@ -5554,6 +5570,14 @@ export interface CustomizedMetricSpecification {
5554
5570
  * @public
5555
5571
  */
5556
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;
5557
5581
  /**
5558
5582
  * <p>The metrics to include in the target tracking scaling policy, as a metric data query.
5559
5583
  * This can include both raw metric and metric math expressions.</p>
@@ -996,12 +996,14 @@ export interface TargetTrackingMetricStat {
996
996
  Metric: Metric | undefined;
997
997
  Stat: string | undefined;
998
998
  Unit?: string | undefined;
999
+ Period?: number | undefined;
999
1000
  }
1000
1001
  export interface TargetTrackingMetricDataQuery {
1001
1002
  Id: string | undefined;
1002
1003
  Expression?: string | undefined;
1003
1004
  MetricStat?: TargetTrackingMetricStat | undefined;
1004
1005
  Label?: string | undefined;
1006
+ Period?: number | undefined;
1005
1007
  ReturnData?: boolean | undefined;
1006
1008
  }
1007
1009
  export declare const MetricStatistic: {
@@ -1019,6 +1021,7 @@ export interface CustomizedMetricSpecification {
1019
1021
  Dimensions?: MetricDimension[] | undefined;
1020
1022
  Statistic?: MetricStatistic | undefined;
1021
1023
  Unit?: string | undefined;
1024
+ Period?: number | undefined;
1022
1025
  Metrics?: TargetTrackingMetricDataQuery[] | undefined;
1023
1026
  }
1024
1027
  export declare const MetricType: {
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.697.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",