@aws-sdk/client-auto-scaling 3.379.1 → 3.382.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.
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
4
  const s = "required", t = "fn", u = "argv", v = "ref";
5
5
  const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://autoscaling-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://autoscaling.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://autoscaling-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://autoscaling.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://autoscaling.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
6
+ const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ endpoint: { url: "https://autoscaling-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://autoscaling.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://autoscaling-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ endpoint: { url: "https://autoscaling.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://autoscaling.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
7
7
  exports.ruleSet = _data;
@@ -3132,6 +3132,32 @@ const se_ActivityIds = (input, context) => {
3132
3132
  }
3133
3133
  return entries;
3134
3134
  };
3135
+ const se_AlarmList = (input, context) => {
3136
+ const entries = {};
3137
+ let counter = 1;
3138
+ for (const entry of input) {
3139
+ if (entry === null) {
3140
+ continue;
3141
+ }
3142
+ entries[`member.${counter}`] = entry;
3143
+ counter++;
3144
+ }
3145
+ return entries;
3146
+ };
3147
+ const se_AlarmSpecification = (input, context) => {
3148
+ const entries = {};
3149
+ if (input.Alarms != null) {
3150
+ const memberEntries = se_AlarmList(input.Alarms, context);
3151
+ if (input.Alarms?.length === 0) {
3152
+ entries.Alarms = [];
3153
+ }
3154
+ Object.entries(memberEntries).forEach(([key, value]) => {
3155
+ const loc = `Alarms.${key}`;
3156
+ entries[loc] = value;
3157
+ });
3158
+ }
3159
+ return entries;
3160
+ };
3135
3161
  const se_AllowedInstanceTypes = (input, context) => {
3136
3162
  const entries = {};
3137
3163
  let counter = 1;
@@ -5316,6 +5342,13 @@ const se_RefreshPreferences = (input, context) => {
5316
5342
  if (input.StandbyInstances != null) {
5317
5343
  entries["StandbyInstances"] = input.StandbyInstances;
5318
5344
  }
5345
+ if (input.AlarmSpecification != null) {
5346
+ const memberEntries = se_AlarmSpecification(input.AlarmSpecification, context);
5347
+ Object.entries(memberEntries).forEach(([key, value]) => {
5348
+ const loc = `AlarmSpecification.${key}`;
5349
+ entries[loc] = value;
5350
+ });
5351
+ }
5319
5352
  return entries;
5320
5353
  };
5321
5354
  const se_RollbackInstanceRefreshType = (input, context) => {
@@ -5939,6 +5972,13 @@ const de_Alarm = (output, context) => {
5939
5972
  }
5940
5973
  return contents;
5941
5974
  };
5975
+ const de_AlarmList = (output, context) => {
5976
+ return (output || [])
5977
+ .filter((e) => e != null)
5978
+ .map((entry) => {
5979
+ return (0, smithy_client_1.expectString)(entry);
5980
+ });
5981
+ };
5942
5982
  const de_Alarms = (output, context) => {
5943
5983
  return (output || [])
5944
5984
  .filter((e) => e != null)
@@ -5946,6 +5986,16 @@ const de_Alarms = (output, context) => {
5946
5986
  return de_Alarm(entry, context);
5947
5987
  });
5948
5988
  };
5989
+ const de_AlarmSpecification = (output, context) => {
5990
+ const contents = {};
5991
+ if (output.Alarms === "") {
5992
+ contents.Alarms = [];
5993
+ }
5994
+ else if (output["Alarms"] !== undefined && output["Alarms"]["member"] !== undefined) {
5995
+ contents.Alarms = de_AlarmList((0, smithy_client_1.getArrayIfSingleItem)(output["Alarms"]["member"]), context);
5996
+ }
5997
+ return contents;
5998
+ };
5949
5999
  const de_AllowedInstanceTypes = (output, context) => {
5950
6000
  return (output || [])
5951
6001
  .filter((e) => e != null)
@@ -7587,6 +7637,9 @@ const de_RefreshPreferences = (output, context) => {
7587
7637
  if (output["StandbyInstances"] !== undefined) {
7588
7638
  contents.StandbyInstances = (0, smithy_client_1.expectString)(output["StandbyInstances"]);
7589
7639
  }
7640
+ if (output["AlarmSpecification"] !== undefined) {
7641
+ contents.AlarmSpecification = de_AlarmSpecification(output["AlarmSpecification"], context);
7642
+ }
7590
7643
  return contents;
7591
7644
  };
7592
7645
  const de_ResourceContentionFault = (output, context) => {
@@ -1,4 +1,4 @@
1
1
  const s = "required", t = "fn", u = "argv", v = "ref";
2
2
  const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
3
- const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://autoscaling-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://autoscaling.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://autoscaling-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://autoscaling.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://autoscaling.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
3
+ const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ endpoint: { url: "https://autoscaling-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://autoscaling.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://autoscaling-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ endpoint: { url: "https://autoscaling.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://autoscaling.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
4
4
  export const ruleSet = _data;
@@ -2997,6 +2997,32 @@ const se_ActivityIds = (input, context) => {
2997
2997
  }
2998
2998
  return entries;
2999
2999
  };
3000
+ const se_AlarmList = (input, context) => {
3001
+ const entries = {};
3002
+ let counter = 1;
3003
+ for (const entry of input) {
3004
+ if (entry === null) {
3005
+ continue;
3006
+ }
3007
+ entries[`member.${counter}`] = entry;
3008
+ counter++;
3009
+ }
3010
+ return entries;
3011
+ };
3012
+ const se_AlarmSpecification = (input, context) => {
3013
+ const entries = {};
3014
+ if (input.Alarms != null) {
3015
+ const memberEntries = se_AlarmList(input.Alarms, context);
3016
+ if (input.Alarms?.length === 0) {
3017
+ entries.Alarms = [];
3018
+ }
3019
+ Object.entries(memberEntries).forEach(([key, value]) => {
3020
+ const loc = `Alarms.${key}`;
3021
+ entries[loc] = value;
3022
+ });
3023
+ }
3024
+ return entries;
3025
+ };
3000
3026
  const se_AllowedInstanceTypes = (input, context) => {
3001
3027
  const entries = {};
3002
3028
  let counter = 1;
@@ -5181,6 +5207,13 @@ const se_RefreshPreferences = (input, context) => {
5181
5207
  if (input.StandbyInstances != null) {
5182
5208
  entries["StandbyInstances"] = input.StandbyInstances;
5183
5209
  }
5210
+ if (input.AlarmSpecification != null) {
5211
+ const memberEntries = se_AlarmSpecification(input.AlarmSpecification, context);
5212
+ Object.entries(memberEntries).forEach(([key, value]) => {
5213
+ const loc = `AlarmSpecification.${key}`;
5214
+ entries[loc] = value;
5215
+ });
5216
+ }
5184
5217
  return entries;
5185
5218
  };
5186
5219
  const se_RollbackInstanceRefreshType = (input, context) => {
@@ -5804,6 +5837,13 @@ const de_Alarm = (output, context) => {
5804
5837
  }
5805
5838
  return contents;
5806
5839
  };
5840
+ const de_AlarmList = (output, context) => {
5841
+ return (output || [])
5842
+ .filter((e) => e != null)
5843
+ .map((entry) => {
5844
+ return __expectString(entry);
5845
+ });
5846
+ };
5807
5847
  const de_Alarms = (output, context) => {
5808
5848
  return (output || [])
5809
5849
  .filter((e) => e != null)
@@ -5811,6 +5851,16 @@ const de_Alarms = (output, context) => {
5811
5851
  return de_Alarm(entry, context);
5812
5852
  });
5813
5853
  };
5854
+ const de_AlarmSpecification = (output, context) => {
5855
+ const contents = {};
5856
+ if (output.Alarms === "") {
5857
+ contents.Alarms = [];
5858
+ }
5859
+ else if (output["Alarms"] !== undefined && output["Alarms"]["member"] !== undefined) {
5860
+ contents.Alarms = de_AlarmList(__getArrayIfSingleItem(output["Alarms"]["member"]), context);
5861
+ }
5862
+ return contents;
5863
+ };
5814
5864
  const de_AllowedInstanceTypes = (output, context) => {
5815
5865
  return (output || [])
5816
5866
  .filter((e) => e != null)
@@ -7452,6 +7502,9 @@ const de_RefreshPreferences = (output, context) => {
7452
7502
  if (output["StandbyInstances"] !== undefined) {
7453
7503
  contents.StandbyInstances = __expectString(output["StandbyInstances"]);
7454
7504
  }
7505
+ if (output["AlarmSpecification"] !== undefined) {
7506
+ contents.AlarmSpecification = de_AlarmSpecification(output["AlarmSpecification"], context);
7507
+ }
7455
7508
  return contents;
7456
7509
  };
7457
7510
  const de_ResourceContentionFault = (output, context) => {
@@ -81,6 +81,11 @@ export interface DescribeInstanceRefreshesCommandOutput extends DescribeInstance
81
81
  * // AutoRollback: true || false,
82
82
  * // ScaleInProtectedInstances: "Refresh" || "Ignore" || "Wait",
83
83
  * // StandbyInstances: "Terminate" || "Ignore" || "Wait",
84
+ * // AlarmSpecification: { // AlarmSpecification
85
+ * // Alarms: [ // AlarmList
86
+ * // "STRING_VALUE",
87
+ * // ],
88
+ * // },
84
89
  * // },
85
90
  * // DesiredConfiguration: { // DesiredConfiguration
86
91
  * // LaunchTemplate: { // LaunchTemplateSpecification
@@ -166,6 +166,11 @@ export interface StartInstanceRefreshCommandOutput extends StartInstanceRefreshA
166
166
  * AutoRollback: true || false,
167
167
  * ScaleInProtectedInstances: "Refresh" || "Ignore" || "Wait",
168
168
  * StandbyInstances: "Terminate" || "Ignore" || "Wait",
169
+ * AlarmSpecification: { // AlarmSpecification
170
+ * Alarms: [ // AlarmList
171
+ * "STRING_VALUE",
172
+ * ],
173
+ * },
169
174
  * },
170
175
  * };
171
176
  * const command = new StartInstanceRefreshCommand(input);