@aws-sdk/client-application-auto-scaling 3.241.0 → 3.244.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const p = "required", q = "fn", r = "argv", s = "ref";
5
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
6
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://application-autoscaling-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://application-autoscaling-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://application-autoscaling.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://application-autoscaling.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
4
+ const r = "fn", s = "argv", t = "ref";
5
+ const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [t]: "Endpoint" }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, k = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, l = {}, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsFIPS"] }] }, n = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsDualStack"] }] }, o = [i], p = [j], q = [k];
6
+ const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [r]: "aws.partition", [s]: [{ [t]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [r]: "isSet", [s]: o }, { [r]: "parseURL", [s]: o, assign: "url" }], type: e, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://application-autoscaling-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://application-autoscaling-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://application-autoscaling.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://application-autoscaling.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
7
7
  exports.ruleSet = _data;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RegisterScalableTargetResponseFilterSensitiveLog = exports.RegisterScalableTargetRequestFilterSensitiveLog = exports.PutScheduledActionResponseFilterSensitiveLog = exports.PutScheduledActionRequestFilterSensitiveLog = exports.PutScalingPolicyResponseFilterSensitiveLog = exports.PutScalingPolicyRequestFilterSensitiveLog = exports.DescribeScheduledActionsResponseFilterSensitiveLog = exports.ScheduledActionFilterSensitiveLog = exports.ScalableTargetActionFilterSensitiveLog = exports.DescribeScheduledActionsRequestFilterSensitiveLog = exports.DescribeScalingPoliciesResponseFilterSensitiveLog = exports.ScalingPolicyFilterSensitiveLog = exports.TargetTrackingScalingPolicyConfigurationFilterSensitiveLog = exports.PredefinedMetricSpecificationFilterSensitiveLog = exports.CustomizedMetricSpecificationFilterSensitiveLog = exports.MetricDimensionFilterSensitiveLog = exports.StepScalingPolicyConfigurationFilterSensitiveLog = exports.StepAdjustmentFilterSensitiveLog = exports.DescribeScalingPoliciesRequestFilterSensitiveLog = exports.DescribeScalingActivitiesResponseFilterSensitiveLog = exports.ScalingActivityFilterSensitiveLog = exports.DescribeScalingActivitiesRequestFilterSensitiveLog = exports.DescribeScalableTargetsResponseFilterSensitiveLog = exports.ScalableTargetFilterSensitiveLog = exports.SuspendedStateFilterSensitiveLog = exports.DescribeScalableTargetsRequestFilterSensitiveLog = exports.DeregisterScalableTargetResponseFilterSensitiveLog = exports.DeregisterScalableTargetRequestFilterSensitiveLog = exports.DeleteScheduledActionResponseFilterSensitiveLog = exports.DeleteScheduledActionRequestFilterSensitiveLog = exports.DeleteScalingPolicyResponseFilterSensitiveLog = exports.DeleteScalingPolicyRequestFilterSensitiveLog = exports.AlarmFilterSensitiveLog = exports.LimitExceededException = exports.FailedResourceAccessException = exports.MetricType = exports.MetricStatistic = exports.MetricAggregationType = exports.PolicyType = exports.ScalingActivityStatusCode = exports.InvalidNextTokenException = exports.ValidationException = exports.ObjectNotFoundException = exports.InternalServiceException = exports.ServiceNamespace = exports.ScalableDimension = exports.ConcurrentUpdateException = exports.AdjustmentType = void 0;
3
+ exports.RegisterScalableTargetResponseFilterSensitiveLog = exports.RegisterScalableTargetRequestFilterSensitiveLog = exports.PutScheduledActionResponseFilterSensitiveLog = exports.PutScheduledActionRequestFilterSensitiveLog = exports.PutScalingPolicyResponseFilterSensitiveLog = exports.PutScalingPolicyRequestFilterSensitiveLog = exports.DescribeScheduledActionsResponseFilterSensitiveLog = exports.ScheduledActionFilterSensitiveLog = exports.ScalableTargetActionFilterSensitiveLog = exports.DescribeScheduledActionsRequestFilterSensitiveLog = exports.DescribeScalingPoliciesResponseFilterSensitiveLog = exports.ScalingPolicyFilterSensitiveLog = exports.TargetTrackingScalingPolicyConfigurationFilterSensitiveLog = exports.PredefinedMetricSpecificationFilterSensitiveLog = exports.CustomizedMetricSpecificationFilterSensitiveLog = exports.MetricDimensionFilterSensitiveLog = exports.StepScalingPolicyConfigurationFilterSensitiveLog = exports.StepAdjustmentFilterSensitiveLog = exports.DescribeScalingPoliciesRequestFilterSensitiveLog = exports.DescribeScalingActivitiesResponseFilterSensitiveLog = exports.ScalingActivityFilterSensitiveLog = exports.NotScaledReasonFilterSensitiveLog = exports.DescribeScalingActivitiesRequestFilterSensitiveLog = exports.DescribeScalableTargetsResponseFilterSensitiveLog = exports.ScalableTargetFilterSensitiveLog = exports.SuspendedStateFilterSensitiveLog = exports.DescribeScalableTargetsRequestFilterSensitiveLog = exports.DeregisterScalableTargetResponseFilterSensitiveLog = exports.DeregisterScalableTargetRequestFilterSensitiveLog = exports.DeleteScheduledActionResponseFilterSensitiveLog = exports.DeleteScheduledActionRequestFilterSensitiveLog = exports.DeleteScalingPolicyResponseFilterSensitiveLog = exports.DeleteScalingPolicyRequestFilterSensitiveLog = exports.AlarmFilterSensitiveLog = exports.LimitExceededException = exports.FailedResourceAccessException = exports.MetricType = exports.MetricStatistic = exports.MetricAggregationType = exports.PolicyType = exports.ScalingActivityStatusCode = exports.InvalidNextTokenException = exports.ValidationException = exports.ObjectNotFoundException = exports.InternalServiceException = exports.ServiceNamespace = exports.ScalableDimension = exports.ConcurrentUpdateException = exports.AdjustmentType = void 0;
4
4
  const ApplicationAutoScalingServiceException_1 = require("./ApplicationAutoScalingServiceException");
5
5
  var AdjustmentType;
6
6
  (function (AdjustmentType) {
@@ -246,6 +246,10 @@ const DescribeScalingActivitiesRequestFilterSensitiveLog = (obj) => ({
246
246
  ...obj,
247
247
  });
248
248
  exports.DescribeScalingActivitiesRequestFilterSensitiveLog = DescribeScalingActivitiesRequestFilterSensitiveLog;
249
+ const NotScaledReasonFilterSensitiveLog = (obj) => ({
250
+ ...obj,
251
+ });
252
+ exports.NotScaledReasonFilterSensitiveLog = NotScaledReasonFilterSensitiveLog;
249
253
  const ScalingActivityFilterSensitiveLog = (obj) => ({
250
254
  ...obj,
251
255
  });
@@ -655,6 +655,7 @@ const serializeAws_json1_1DescribeScalableTargetsRequest = (input, context) => {
655
655
  };
656
656
  const serializeAws_json1_1DescribeScalingActivitiesRequest = (input, context) => {
657
657
  return {
658
+ ...(input.IncludeNotScaledActivities != null && { IncludeNotScaledActivities: input.IncludeNotScaledActivities }),
658
659
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
659
660
  ...(input.NextToken != null && { NextToken: input.NextToken }),
660
661
  ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
@@ -920,6 +921,25 @@ const deserializeAws_json1_1MetricDimensions = (output, context) => {
920
921
  });
921
922
  return retVal;
922
923
  };
924
+ const deserializeAws_json1_1NotScaledReason = (output, context) => {
925
+ return {
926
+ Code: (0, smithy_client_1.expectString)(output.Code),
927
+ CurrentCapacity: (0, smithy_client_1.expectInt32)(output.CurrentCapacity),
928
+ MaxCapacity: (0, smithy_client_1.expectInt32)(output.MaxCapacity),
929
+ MinCapacity: (0, smithy_client_1.expectInt32)(output.MinCapacity),
930
+ };
931
+ };
932
+ const deserializeAws_json1_1NotScaledReasons = (output, context) => {
933
+ const retVal = (output || [])
934
+ .filter((e) => e != null)
935
+ .map((entry) => {
936
+ if (entry === null) {
937
+ return null;
938
+ }
939
+ return deserializeAws_json1_1NotScaledReason(entry, context);
940
+ });
941
+ return retVal;
942
+ };
923
943
  const deserializeAws_json1_1ObjectNotFoundException = (output, context) => {
924
944
  return {
925
945
  Message: (0, smithy_client_1.expectString)(output.Message),
@@ -992,6 +1012,9 @@ const deserializeAws_json1_1ScalingActivity = (output, context) => {
992
1012
  Description: (0, smithy_client_1.expectString)(output.Description),
993
1013
  Details: (0, smithy_client_1.expectString)(output.Details),
994
1014
  EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
1015
+ NotScaledReasons: output.NotScaledReasons != null
1016
+ ? deserializeAws_json1_1NotScaledReasons(output.NotScaledReasons, context)
1017
+ : undefined,
995
1018
  ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
996
1019
  ScalableDimension: (0, smithy_client_1.expectString)(output.ScalableDimension),
997
1020
  ServiceNamespace: (0, smithy_client_1.expectString)(output.ServiceNamespace),
@@ -1,4 +1,4 @@
1
- const p = "required", q = "fn", r = "argv", s = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
3
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://application-autoscaling-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://application-autoscaling-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://application-autoscaling.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://application-autoscaling.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
1
+ const r = "fn", s = "argv", t = "ref";
2
+ const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [t]: "Endpoint" }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, k = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, l = {}, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsFIPS"] }] }, n = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsDualStack"] }] }, o = [i], p = [j], q = [k];
3
+ const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [r]: "aws.partition", [s]: [{ [t]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [r]: "isSet", [s]: o }, { [r]: "parseURL", [s]: o, assign: "url" }], type: e, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://application-autoscaling-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://application-autoscaling-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://application-autoscaling.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://application-autoscaling.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
4
4
  export const ruleSet = _data;
@@ -224,6 +224,9 @@ export const DescribeScalableTargetsResponseFilterSensitiveLog = (obj) => ({
224
224
  export const DescribeScalingActivitiesRequestFilterSensitiveLog = (obj) => ({
225
225
  ...obj,
226
226
  });
227
+ export const NotScaledReasonFilterSensitiveLog = (obj) => ({
228
+ ...obj,
229
+ });
227
230
  export const ScalingActivityFilterSensitiveLog = (obj) => ({
228
231
  ...obj,
229
232
  });
@@ -632,6 +632,7 @@ const serializeAws_json1_1DescribeScalableTargetsRequest = (input, context) => {
632
632
  };
633
633
  const serializeAws_json1_1DescribeScalingActivitiesRequest = (input, context) => {
634
634
  return {
635
+ ...(input.IncludeNotScaledActivities != null && { IncludeNotScaledActivities: input.IncludeNotScaledActivities }),
635
636
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
636
637
  ...(input.NextToken != null && { NextToken: input.NextToken }),
637
638
  ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
@@ -897,6 +898,25 @@ const deserializeAws_json1_1MetricDimensions = (output, context) => {
897
898
  });
898
899
  return retVal;
899
900
  };
901
+ const deserializeAws_json1_1NotScaledReason = (output, context) => {
902
+ return {
903
+ Code: __expectString(output.Code),
904
+ CurrentCapacity: __expectInt32(output.CurrentCapacity),
905
+ MaxCapacity: __expectInt32(output.MaxCapacity),
906
+ MinCapacity: __expectInt32(output.MinCapacity),
907
+ };
908
+ };
909
+ const deserializeAws_json1_1NotScaledReasons = (output, context) => {
910
+ const retVal = (output || [])
911
+ .filter((e) => e != null)
912
+ .map((entry) => {
913
+ if (entry === null) {
914
+ return null;
915
+ }
916
+ return deserializeAws_json1_1NotScaledReason(entry, context);
917
+ });
918
+ return retVal;
919
+ };
900
920
  const deserializeAws_json1_1ObjectNotFoundException = (output, context) => {
901
921
  return {
902
922
  Message: __expectString(output.Message),
@@ -969,6 +989,9 @@ const deserializeAws_json1_1ScalingActivity = (output, context) => {
969
989
  Description: __expectString(output.Description),
970
990
  Details: __expectString(output.Details),
971
991
  EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
992
+ NotScaledReasons: output.NotScaledReasons != null
993
+ ? deserializeAws_json1_1NotScaledReasons(output.NotScaledReasons, context)
994
+ : undefined,
972
995
  ResourceId: __expectString(output.ResourceId),
973
996
  ScalableDimension: __expectString(output.ScalableDimension),
974
997
  ServiceNamespace: __expectString(output.ServiceNamespace),
@@ -129,6 +129,7 @@ export declare class ApplicationAutoScaling extends ApplicationAutoScalingClient
129
129
  * from the previous six weeks.</p>
130
130
  * <p>You can filter the results using <code>ResourceId</code> and
131
131
  * <code>ScalableDimension</code>.</p>
132
+ * <p>For information about viewing scaling activities using the Amazon Web Services CLI, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scaling-activities.html">Scaling activities for Application Auto Scaling</a>.</p>
132
133
  */
133
134
  describeScalingActivities(args: DescribeScalingActivitiesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeScalingActivitiesCommandOutput>;
134
135
  describeScalingActivities(args: DescribeScalingActivitiesCommandInput, cb: (err: any, data?: DescribeScalingActivitiesCommandOutput) => void): void;
@@ -203,14 +204,17 @@ export declare class ApplicationAutoScaling extends ApplicationAutoScalingClient
203
204
  putScheduledAction(args: PutScheduledActionCommandInput, cb: (err: any, data?: PutScheduledActionCommandOutput) => void): void;
204
205
  putScheduledAction(args: PutScheduledActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutScheduledActionCommandOutput) => void): void;
205
206
  /**
206
- * <p>Registers or updates a scalable target. </p>
207
- * <p>A scalable target is a resource that Application Auto Scaling can scale out and scale in. Scalable
208
- * targets are uniquely identified by the combination of resource ID, scalable dimension, and
209
- * namespace. </p>
210
- * <p>When you register a new scalable target, you must specify values for minimum and maximum
211
- * capacity. Current capacity will be adjusted within the specified range when scaling starts.
212
- * Application Auto Scaling scaling policies will not scale capacity to values that are outside of this
213
- * range.</p>
207
+ * <p>Registers or updates a scalable target, the resource that you want to scale.</p>
208
+ * <p>Scalable targets are uniquely identified by the combination of resource ID, scalable
209
+ * dimension, and namespace, which represents some capacity dimension of the underlying
210
+ * service.</p>
211
+ * <p>When you register a new scalable target, you must specify values for the minimum and
212
+ * maximum capacity. If the specified resource is not active in the target service, this
213
+ * operation does not change the resource's current capacity. Otherwise, it changes the
214
+ * resource's current capacity to a value that is inside of this range.</p>
215
+ * <p>If you choose to add a scaling policy, current capacity is adjustable within the
216
+ * specified range when scaling starts. Application Auto Scaling scaling policies will not scale capacity to
217
+ * values that are outside of the minimum and maximum range.</p>
214
218
  * <p>After you register a scalable target, you do not need to register it again to use other
215
219
  * Application Auto Scaling operations. To see which resources have been registered, use <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html">DescribeScalableTargets</a>. You can also view the scaling policies for a service
216
220
  * namespace by using <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html">DescribeScalableTargets</a>. If you no longer need a scalable target, you can
@@ -12,6 +12,7 @@ export interface DescribeScalingActivitiesCommandOutput extends DescribeScalingA
12
12
  * from the previous six weeks.</p>
13
13
  * <p>You can filter the results using <code>ResourceId</code> and
14
14
  * <code>ScalableDimension</code>.</p>
15
+ * <p>For information about viewing scaling activities using the Amazon Web Services CLI, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scaling-activities.html">Scaling activities for Application Auto Scaling</a>.</p>
15
16
  * @example
16
17
  * Use a bare-bones client and the command you need to make an API call.
17
18
  * ```javascript
@@ -8,14 +8,17 @@ export interface RegisterScalableTargetCommandInput extends RegisterScalableTarg
8
8
  export interface RegisterScalableTargetCommandOutput extends RegisterScalableTargetResponse, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Registers or updates a scalable target. </p>
12
- * <p>A scalable target is a resource that Application Auto Scaling can scale out and scale in. Scalable
13
- * targets are uniquely identified by the combination of resource ID, scalable dimension, and
14
- * namespace. </p>
15
- * <p>When you register a new scalable target, you must specify values for minimum and maximum
16
- * capacity. Current capacity will be adjusted within the specified range when scaling starts.
17
- * Application Auto Scaling scaling policies will not scale capacity to values that are outside of this
18
- * range.</p>
11
+ * <p>Registers or updates a scalable target, the resource that you want to scale.</p>
12
+ * <p>Scalable targets are uniquely identified by the combination of resource ID, scalable
13
+ * dimension, and namespace, which represents some capacity dimension of the underlying
14
+ * service.</p>
15
+ * <p>When you register a new scalable target, you must specify values for the minimum and
16
+ * maximum capacity. If the specified resource is not active in the target service, this
17
+ * operation does not change the resource's current capacity. Otherwise, it changes the
18
+ * resource's current capacity to a value that is inside of this range.</p>
19
+ * <p>If you choose to add a scaling policy, current capacity is adjustable within the
20
+ * specified range when scaling starts. Application Auto Scaling scaling policies will not scale capacity to
21
+ * values that are outside of the minimum and maximum range.</p>
19
22
  * <p>After you register a scalable target, you do not need to register it again to use other
20
23
  * Application Auto Scaling operations. To see which resources have been registered, use <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html">DescribeScalableTargets</a>. You can also view the scaling policies for a service
21
24
  * namespace by using <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalableTargets.html">DescribeScalableTargets</a>. If you no longer need a scalable target, you can
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region?: string;
15
+ Region: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;
@@ -189,7 +189,7 @@ export interface DeleteScalingPolicyRequest {
189
189
  * </li>
190
190
  * <li>
191
191
  * <p>
192
- * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for an SageMaker model endpoint variant.</p>
192
+ * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for a SageMaker model endpoint variant.</p>
193
193
  * </li>
194
194
  * <li>
195
195
  * <p>
@@ -398,7 +398,7 @@ export interface DeleteScheduledActionRequest {
398
398
  * </li>
399
399
  * <li>
400
400
  * <p>
401
- * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for an SageMaker model endpoint variant.</p>
401
+ * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for a SageMaker model endpoint variant.</p>
402
402
  * </li>
403
403
  * <li>
404
404
  * <p>
@@ -563,7 +563,7 @@ export interface DeregisterScalableTargetRequest {
563
563
  * </li>
564
564
  * <li>
565
565
  * <p>
566
- * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for an SageMaker model endpoint variant.</p>
566
+ * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for a SageMaker model endpoint variant.</p>
567
567
  * </li>
568
568
  * <li>
569
569
  * <p>
@@ -728,7 +728,7 @@ export interface DescribeScalableTargetsRequest {
728
728
  * </li>
729
729
  * <li>
730
730
  * <p>
731
- * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for an SageMaker model endpoint variant.</p>
731
+ * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for a SageMaker model endpoint variant.</p>
732
732
  * </li>
733
733
  * <li>
734
734
  * <p>
@@ -932,7 +932,7 @@ export interface ScalableTarget {
932
932
  * </li>
933
933
  * <li>
934
934
  * <p>
935
- * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for an SageMaker model endpoint variant.</p>
935
+ * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for a SageMaker model endpoint variant.</p>
936
936
  * </li>
937
937
  * <li>
938
938
  * <p>
@@ -1140,7 +1140,7 @@ export interface DescribeScalingActivitiesRequest {
1140
1140
  * </li>
1141
1141
  * <li>
1142
1142
  * <p>
1143
- * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for an SageMaker model endpoint variant.</p>
1143
+ * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for a SageMaker model endpoint variant.</p>
1144
1144
  * </li>
1145
1145
  * <li>
1146
1146
  * <p>
@@ -1199,6 +1199,55 @@ export interface DescribeScalingActivitiesRequest {
1199
1199
  * <p>The token for the next set of results.</p>
1200
1200
  */
1201
1201
  NextToken?: string;
1202
+ /**
1203
+ * <p>Specifies whether to include activities that aren't scaled (<i>not scaled
1204
+ * activities</i>) in the response. Not scaled activities are activities that aren't
1205
+ * completed or started for various reasons, such as preventing infinite scaling loops. For
1206
+ * help interpreting the not scaled reason details in the response, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scaling-activities.html">Scaling activities for Application Auto Scaling</a>.</p>
1207
+ */
1208
+ IncludeNotScaledActivities?: boolean;
1209
+ }
1210
+ /**
1211
+ * <p>Describes the reason for an activity that isn't scaled (<i>not scaled
1212
+ * activity</i>), in machine-readable format. For help interpreting the not scaled
1213
+ * reason details, see <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scaling-activities.html">Scaling activities for Application Auto Scaling</a>.</p>
1214
+ */
1215
+ export interface NotScaledReason {
1216
+ /**
1217
+ * <p>A code that represents the reason for not scaling.</p>
1218
+ * <p>Valid values:</p>
1219
+ *
1220
+ * <ul>
1221
+ * <li>
1222
+ * <p>AutoScalingAnticipatedFlapping</p>
1223
+ * </li>
1224
+ * <li>
1225
+ * <p>TargetServicePutResourceAsUnscalable</p>
1226
+ * </li>
1227
+ * <li>
1228
+ * <p>AlreadyAtMaxCapacity</p>
1229
+ * </li>
1230
+ * <li>
1231
+ * <p>AlreadyAtMinCapacity</p>
1232
+ * </li>
1233
+ * <li>
1234
+ * <p>AlreadyAtDesiredCapacity</p>
1235
+ * </li>
1236
+ * </ul>
1237
+ */
1238
+ Code: string | undefined;
1239
+ /**
1240
+ * <p>The maximum capacity.</p>
1241
+ */
1242
+ MaxCapacity?: number;
1243
+ /**
1244
+ * <p>The minimum capacity.</p>
1245
+ */
1246
+ MinCapacity?: number;
1247
+ /**
1248
+ * <p>The current capacity.</p>
1249
+ */
1250
+ CurrentCapacity?: number;
1202
1251
  }
1203
1252
  export declare enum ScalingActivityStatusCode {
1204
1253
  Failed = "Failed",
@@ -1331,7 +1380,7 @@ export interface ScalingActivity {
1331
1380
  * </li>
1332
1381
  * <li>
1333
1382
  * <p>
1334
- * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for an SageMaker model endpoint variant.</p>
1383
+ * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for a SageMaker model endpoint variant.</p>
1335
1384
  * </li>
1336
1385
  * <li>
1337
1386
  * <p>
@@ -1404,6 +1453,11 @@ export interface ScalingActivity {
1404
1453
  * <p>The details about the scaling activity.</p>
1405
1454
  */
1406
1455
  Details?: string;
1456
+ /**
1457
+ * <p>Machine-readable data that describes the reason for a not scaled activity. Only
1458
+ * available when <a href="https://docs.aws.amazon.com/autoscaling/application/APIReference/API_DescribeScalingActivities.html">DescribeScalingActivities</a> includes not scaled activities.</p>
1459
+ */
1460
+ NotScaledReasons?: NotScaledReason[];
1407
1461
  }
1408
1462
  export interface DescribeScalingActivitiesResponse {
1409
1463
  /**
@@ -1537,7 +1591,7 @@ export interface DescribeScalingPoliciesRequest {
1537
1591
  * </li>
1538
1592
  * <li>
1539
1593
  * <p>
1540
- * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for an SageMaker model endpoint variant.</p>
1594
+ * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for a SageMaker model endpoint variant.</p>
1541
1595
  * </li>
1542
1596
  * <li>
1543
1597
  * <p>
@@ -1793,15 +1847,15 @@ export declare enum MetricStatistic {
1793
1847
  * <p>Represents a CloudWatch metric of your choosing for a target tracking scaling policy to use
1794
1848
  * with Application Auto Scaling.</p>
1795
1849
  * <p>For information about the available metrics for a service, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html">Amazon Web Services
1796
- * Services That Publish CloudWatch Metrics</a> in the <i>Amazon CloudWatch User
1850
+ * services that publish CloudWatch metrics</a> in the <i>Amazon CloudWatch User
1797
1851
  * Guide</i>.</p>
1798
1852
  * <p>To create your customized metric specification:</p>
1799
1853
  * <ul>
1800
1854
  * <li>
1801
1855
  * <p>Add values for each required parameter from CloudWatch. You can use an existing metric,
1802
1856
  * or a new metric that you create. To use your own metric, you must first publish the
1803
- * metric to CloudWatch. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publish Custom
1804
- * Metrics</a> in the <i>Amazon CloudWatch User Guide</i>.</p>
1857
+ * metric to CloudWatch. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publish custom
1858
+ * metrics</a> in the <i>Amazon CloudWatch User Guide</i>.</p>
1805
1859
  * </li>
1806
1860
  * <li>
1807
1861
  * <p>Choose a metric that changes proportionally with capacity. The value of the metric
@@ -1810,12 +1864,17 @@ export declare enum MetricStatistic {
1810
1864
  * increase when capacity decreases. </p>
1811
1865
  * </li>
1812
1866
  * </ul>
1813
- * <p>For more information about CloudWatch, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html">Amazon CloudWatch
1814
- * Concepts</a>. </p>
1867
+ * <p>For an example of how creating new metrics can be useful, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-using-sqs-queue.html">Scaling
1868
+ * based on Amazon SQS</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. This topic
1869
+ * mentions Auto Scaling groups, but the same scenario for Amazon SQS can apply to the target tracking
1870
+ * scaling policies that you create for a Spot Fleet by using the Application Auto Scaling API.</p>
1871
+ * <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
1872
+ * concepts</a> in the <i>Amazon CloudWatch User Guide</i>. </p>
1815
1873
  */
1816
1874
  export interface CustomizedMetricSpecification {
1817
1875
  /**
1818
- * <p>The name of the metric. </p>
1876
+ * <p>The name of the metric. To get the exact metric name, namespace, and dimensions, inspect
1877
+ * the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html">Metric</a> object that is returned by a call to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>.</p>
1819
1878
  */
1820
1879
  MetricName: string | undefined;
1821
1880
  /**
@@ -1833,7 +1892,9 @@ export interface CustomizedMetricSpecification {
1833
1892
  */
1834
1893
  Statistic: MetricStatistic | string | undefined;
1835
1894
  /**
1836
- * <p>The unit of the metric.</p>
1895
+ * <p>The unit of the metric. For a complete list of the units that CloudWatch supports, see the
1896
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html">MetricDatum</a> data
1897
+ * type in the <i>Amazon CloudWatch API Reference</i>.</p>
1837
1898
  */
1838
1899
  Unit?: string;
1839
1900
  }
@@ -1871,13 +1932,13 @@ export declare enum MetricType {
1871
1932
  export interface PredefinedMetricSpecification {
1872
1933
  /**
1873
1934
  * <p>The metric type. The <code>ALBRequestCountPerTarget</code> metric type applies only to
1874
- * Spot Fleet requests and ECS services.</p>
1935
+ * Spot Fleets and ECS services.</p>
1875
1936
  */
1876
1937
  PredefinedMetricType: MetricType | string | undefined;
1877
1938
  /**
1878
1939
  * <p>Identifies the resource associated with the metric type. You can't specify a resource
1879
1940
  * label unless the metric type is <code>ALBRequestCountPerTarget</code> and there is a target
1880
- * group attached to the Spot Fleet request or ECS service.</p>
1941
+ * group attached to the Spot Fleet or ECS service.</p>
1881
1942
  * <p>You create the resource label by appending the final portion of the load balancer ARN
1882
1943
  * and the final portion of the target group ARN into a single value, separated by a forward
1883
1944
  * slash (/). The format of the resource label is:</p>
@@ -1909,6 +1970,11 @@ export interface TargetTrackingScalingPolicyConfiguration {
1909
1970
  * of -2^360 to 2^360. The value must be a valid number based on the choice of metric. For
1910
1971
  * example, if the metric is CPU utilization, then the target value is a percent value that
1911
1972
  * represents how much of the CPU can be used before scaling out. </p>
1973
+ * <note>
1974
+ * <p>If the scaling policy specifies the <code>ALBRequestCountPerTarget</code> predefined
1975
+ * metric, specify the target utilization as the optimal average request count per target
1976
+ * during any one-minute interval.</p>
1977
+ * </note>
1912
1978
  */
1913
1979
  TargetValue: number | undefined;
1914
1980
  /**
@@ -2047,7 +2113,8 @@ export interface TargetTrackingScalingPolicyConfiguration {
2047
2113
  /**
2048
2114
  * <p>Represents a scaling policy to use with Application Auto Scaling.</p>
2049
2115
  * <p>For more information about configuring scaling policies for a specific service, see
2050
- * <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/getting-started.html">Getting started with Application Auto Scaling</a> in the
2116
+ * <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/integrated-services-list.html">Amazon Web Services services
2117
+ * that you can use with Application Auto Scaling</a> in the
2051
2118
  * <i>Application Auto Scaling User Guide</i>.</p>
2052
2119
  */
2053
2120
  export interface ScalingPolicy {
@@ -2174,7 +2241,7 @@ export interface ScalingPolicy {
2174
2241
  * </li>
2175
2242
  * <li>
2176
2243
  * <p>
2177
- * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for an SageMaker model endpoint variant.</p>
2244
+ * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for a SageMaker model endpoint variant.</p>
2178
2245
  * </li>
2179
2246
  * <li>
2180
2247
  * <p>
@@ -2221,6 +2288,12 @@ export interface ScalingPolicy {
2221
2288
  ScalableDimension: ScalableDimension | string | undefined;
2222
2289
  /**
2223
2290
  * <p>The scaling policy type.</p>
2291
+ * <p>The following policy types are supported: </p>
2292
+ * <p>
2293
+ * <code>TargetTrackingScaling</code>—Not supported for Amazon EMR</p>
2294
+ * <p>
2295
+ * <code>StepScaling</code>—Not supported for DynamoDB, Amazon Comprehend, Lambda, Amazon Keyspaces, Amazon MSK, Amazon ElastiCache, or
2296
+ * Neptune.</p>
2224
2297
  */
2225
2298
  PolicyType: PolicyType | string | undefined;
2226
2299
  /**
@@ -2387,7 +2460,7 @@ export interface DescribeScheduledActionsRequest {
2387
2460
  * </li>
2388
2461
  * <li>
2389
2462
  * <p>
2390
- * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for an SageMaker model endpoint variant.</p>
2463
+ * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for a SageMaker model endpoint variant.</p>
2391
2464
  * </li>
2392
2465
  * <li>
2393
2466
  * <p>
@@ -2453,9 +2526,9 @@ export interface DescribeScheduledActionsRequest {
2453
2526
  export interface ScalableTargetAction {
2454
2527
  /**
2455
2528
  * <p>The minimum capacity.</p>
2456
- * <p>For certain resources, the minimum value allowed is 0. This includes Lambda provisioned
2457
- * concurrency, Spot Fleet, ECS services, Aurora DB clusters, EMR clusters, and custom resources.
2458
- * For all other resources, the minimum value allowed is 1.</p>
2529
+ * <p>When the scheduled action runs, the resource will have at least this much capacity, but it
2530
+ * might have more depending on other settings, such as the target utilization level of a target
2531
+ * tracking scaling policy.</p>
2459
2532
  */
2460
2533
  MinCapacity?: number;
2461
2534
  /**
@@ -2464,8 +2537,8 @@ export interface ScalableTargetAction {
2464
2537
  * lower limits. Each service has its own default quotas for the maximum capacity of the
2465
2538
  * resource. If you want to specify a higher limit, you can request an increase. For more
2466
2539
  * information, consult the documentation for that service. For information about the default
2467
- * quotas for each service, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-service-information.html">Service Endpoints and
2468
- * Quotas</a> in the <i>Amazon Web Services General Reference</i>.</p>
2540
+ * quotas for each service, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-service-information.html">Service endpoints and
2541
+ * quotas</a> in the <i>Amazon Web Services General Reference</i>.</p>
2469
2542
  */
2470
2543
  MaxCapacity?: number;
2471
2544
  }
@@ -2626,7 +2699,7 @@ export interface ScheduledAction {
2626
2699
  * </li>
2627
2700
  * <li>
2628
2701
  * <p>
2629
- * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for an SageMaker model endpoint variant.</p>
2702
+ * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for a SageMaker model endpoint variant.</p>
2630
2703
  * </li>
2631
2704
  * <li>
2632
2705
  * <p>
@@ -2717,6 +2790,8 @@ export declare class LimitExceededException extends __BaseException {
2717
2790
  export interface PutScalingPolicyRequest {
2718
2791
  /**
2719
2792
  * <p>The name of the scaling policy.</p>
2793
+ * <p>You cannot change the name of a scaling policy, but you can delete the original scaling
2794
+ * policy and create a new scaling policy with the same settings and a different name.</p>
2720
2795
  */
2721
2796
  PolicyName: string | undefined;
2722
2797
  /**
@@ -2834,7 +2909,7 @@ export interface PutScalingPolicyRequest {
2834
2909
  * </li>
2835
2910
  * <li>
2836
2911
  * <p>
2837
- * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for an SageMaker model endpoint variant.</p>
2912
+ * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for a SageMaker model endpoint variant.</p>
2838
2913
  * </li>
2839
2914
  * <li>
2840
2915
  * <p>
@@ -2880,7 +2955,8 @@ export interface PutScalingPolicyRequest {
2880
2955
  */
2881
2956
  ScalableDimension: ScalableDimension | string | undefined;
2882
2957
  /**
2883
- * <p>The policy type. This parameter is required if you are creating a scaling policy.</p>
2958
+ * <p>The scaling policy type. This parameter is required if you are creating a scaling
2959
+ * policy.</p>
2884
2960
  * <p>The following policy types are supported: </p>
2885
2961
  * <p>
2886
2962
  * <code>TargetTrackingScaling</code>—Not supported for Amazon EMR</p>
@@ -3068,7 +3144,7 @@ export interface PutScheduledActionRequest {
3068
3144
  * </li>
3069
3145
  * <li>
3070
3146
  * <p>
3071
- * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for an SageMaker model endpoint variant.</p>
3147
+ * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for a SageMaker model endpoint variant.</p>
3072
3148
  * </li>
3073
3149
  * <li>
3074
3150
  * <p>
@@ -3248,7 +3324,7 @@ export interface RegisterScalableTargetRequest {
3248
3324
  * </li>
3249
3325
  * <li>
3250
3326
  * <p>
3251
- * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for an SageMaker model endpoint variant.</p>
3327
+ * <code>sagemaker:variant:DesiredInstanceCount</code> - The number of EC2 instances for a SageMaker model endpoint variant.</p>
3252
3328
  * </li>
3253
3329
  * <li>
3254
3330
  * <p>
@@ -3297,9 +3373,40 @@ export interface RegisterScalableTargetRequest {
3297
3373
  * <p>The minimum value that you plan to scale in to. When a scaling policy is in effect,
3298
3374
  * Application Auto Scaling can scale in (contract) as needed to the minimum capacity limit in response to
3299
3375
  * changing demand. This property is required when registering a new scalable target.</p>
3300
- * <p>For certain resources, the minimum value allowed is 0. This includes Lambda provisioned
3301
- * concurrency, Spot Fleet, ECS services, Aurora DB clusters, EMR clusters, and custom resources.
3302
- * For all other resources, the minimum value allowed is 1.</p>
3376
+ * <p>For the following resources, the minimum value allowed is 0.</p>
3377
+ * <ul>
3378
+ * <li>
3379
+ * <p>AppStream 2.0 fleets</p>
3380
+ * </li>
3381
+ * <li>
3382
+ * <p> Aurora DB clusters</p>
3383
+ * </li>
3384
+ * <li>
3385
+ * <p>ECS services</p>
3386
+ * </li>
3387
+ * <li>
3388
+ * <p>EMR clusters</p>
3389
+ * </li>
3390
+ * <li>
3391
+ * <p>Lambda provisioned concurrency</p>
3392
+ * </li>
3393
+ * <li>
3394
+ * <p>SageMaker endpoint variants</p>
3395
+ * </li>
3396
+ * <li>
3397
+ * <p>Spot Fleets</p>
3398
+ * </li>
3399
+ * <li>
3400
+ * <p>custom resources</p>
3401
+ * </li>
3402
+ * </ul>
3403
+ * <p>It's strongly recommended that you specify a value greater than 0. A value greater than 0
3404
+ * means that data points are continuously reported to CloudWatch that scaling policies can use to
3405
+ * scale on a metric like average CPU utilization.</p>
3406
+ * <p>For all other resources, the minimum allowed value depends on the type of resource that
3407
+ * you are using. If you provide a value that is lower than what a resource can accept, an error
3408
+ * occurs. In which case, the error message will provide the minimum value that the resource can
3409
+ * accept.</p>
3303
3410
  */
3304
3411
  MinCapacity?: number;
3305
3412
  /**
@@ -3310,8 +3417,8 @@ export interface RegisterScalableTargetRequest {
3310
3417
  * lower limits. Each service has its own default quotas for the maximum capacity of the
3311
3418
  * resource. If you want to specify a higher limit, you can request an increase. For more
3312
3419
  * information, consult the documentation for that service. For information about the default
3313
- * quotas for each service, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-service-information.html">Service Endpoints and
3314
- * Quotas</a> in the <i>Amazon Web Services General Reference</i>.</p>
3420
+ * quotas for each service, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-service-information.html">Service endpoints and
3421
+ * quotas</a> in the <i>Amazon Web Services General Reference</i>.</p>
3315
3422
  */
3316
3423
  MaxCapacity?: number;
3317
3424
  /**
@@ -3399,6 +3506,10 @@ export declare const DescribeScalableTargetsResponseFilterSensitiveLog: (obj: De
3399
3506
  * @internal
3400
3507
  */
3401
3508
  export declare const DescribeScalingActivitiesRequestFilterSensitiveLog: (obj: DescribeScalingActivitiesRequest) => any;
3509
+ /**
3510
+ * @internal
3511
+ */
3512
+ export declare const NotScaledReasonFilterSensitiveLog: (obj: NotScaledReason) => any;
3402
3513
  /**
3403
3514
  * @internal
3404
3515
  */
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
27
27
  defaultSigningName: string;
28
28
  };
29
29
  export interface EndpointParameters extends __EndpointParameters {
30
- Region?: string;
30
+ Region: string;
31
31
  UseDualStack?: boolean;
32
32
  UseFIPS?: boolean;
33
33
  Endpoint?: string;
@@ -139,6 +139,13 @@ export interface DescribeScalingActivitiesRequest {
139
139
  ScalableDimension?: ScalableDimension | string;
140
140
  MaxResults?: number;
141
141
  NextToken?: string;
142
+ IncludeNotScaledActivities?: boolean;
143
+ }
144
+ export interface NotScaledReason {
145
+ Code: string | undefined;
146
+ MaxCapacity?: number;
147
+ MinCapacity?: number;
148
+ CurrentCapacity?: number;
142
149
  }
143
150
  export declare enum ScalingActivityStatusCode {
144
151
  Failed = "Failed",
@@ -160,6 +167,7 @@ export interface ScalingActivity {
160
167
  StatusCode: ScalingActivityStatusCode | string | undefined;
161
168
  StatusMessage?: string;
162
169
  Details?: string;
170
+ NotScaledReasons?: NotScaledReason[];
163
171
  }
164
172
  export interface DescribeScalingActivitiesResponse {
165
173
  ScalingActivities?: ScalingActivity[];
@@ -377,6 +385,9 @@ export declare const DescribeScalableTargetsResponseFilterSensitiveLog: (
377
385
  export declare const DescribeScalingActivitiesRequestFilterSensitiveLog: (
378
386
  obj: DescribeScalingActivitiesRequest
379
387
  ) => any;
388
+ export declare const NotScaledReasonFilterSensitiveLog: (
389
+ obj: NotScaledReason
390
+ ) => any;
380
391
  export declare const ScalingActivityFilterSensitiveLog: (
381
392
  obj: ScalingActivity
382
393
  ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-application-auto-scaling",
3
3
  "description": "AWS SDK for JavaScript Application Auto Scaling Client for Node.js, Browser and React Native",
4
- "version": "3.241.0",
4
+ "version": "3.244.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",