@aws-sdk/client-iot 3.315.0 → 3.316.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.
@@ -340,7 +340,7 @@ export const se_CreateAuditSuppressionCommand = async (input, context) => {
340
340
  let body;
341
341
  body = JSON.stringify(take(input, {
342
342
  checkName: [],
343
- clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
343
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
344
344
  description: [],
345
345
  expirationDate: (_) => Math.round(_.getTime() / 1000),
346
346
  resourceIdentifier: (_) => _json(_),
@@ -438,7 +438,7 @@ export const se_CreateCustomMetricCommand = async (input, context) => {
438
438
  resolvedPath = __resolvedPath(resolvedPath, input, "metricName", () => input.metricName, "{metricName}", false);
439
439
  let body;
440
440
  body = JSON.stringify(take(input, {
441
- clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
441
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
442
442
  displayName: [],
443
443
  metricType: [],
444
444
  tags: (_) => _json(_),
@@ -462,7 +462,7 @@ export const se_CreateDimensionCommand = async (input, context) => {
462
462
  resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
463
463
  let body;
464
464
  body = JSON.stringify(take(input, {
465
- clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
465
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
466
466
  stringValues: (_) => _json(_),
467
467
  tags: (_) => _json(_),
468
468
  type: [],
@@ -4232,7 +4232,7 @@ export const se_StartAuditMitigationActionsTaskCommand = async (input, context)
4232
4232
  let body;
4233
4233
  body = JSON.stringify(take(input, {
4234
4234
  auditCheckToActionsMapping: (_) => _json(_),
4235
- clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
4235
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
4236
4236
  target: (_) => _json(_),
4237
4237
  }));
4238
4238
  return new __HttpRequest({
@@ -4255,7 +4255,7 @@ export const se_StartDetectMitigationActionsTaskCommand = async (input, context)
4255
4255
  let body;
4256
4256
  body = JSON.stringify(take(input, {
4257
4257
  actions: (_) => _json(_),
4258
- clientRequestToken: (_) => _ ?? generateIdempotencyToken(),
4258
+ clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
4259
4259
  includeOnlyActiveViolations: [],
4260
4260
  includeSuppressedAlerts: [],
4261
4261
  target: (_) => _json(_),