@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.
@@ -368,7 +368,7 @@ const se_CreateAuditSuppressionCommand = async (input, context) => {
368
368
  let body;
369
369
  body = JSON.stringify((0, smithy_client_1.take)(input, {
370
370
  checkName: [],
371
- clientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
371
+ clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
372
372
  description: [],
373
373
  expirationDate: (_) => Math.round(_.getTime() / 1000),
374
374
  resourceIdentifier: (_) => (0, smithy_client_1._json)(_),
@@ -470,7 +470,7 @@ const se_CreateCustomMetricCommand = async (input, context) => {
470
470
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "metricName", () => input.metricName, "{metricName}", false);
471
471
  let body;
472
472
  body = JSON.stringify((0, smithy_client_1.take)(input, {
473
- clientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
473
+ clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
474
474
  displayName: [],
475
475
  metricType: [],
476
476
  tags: (_) => (0, smithy_client_1._json)(_),
@@ -495,7 +495,7 @@ const se_CreateDimensionCommand = async (input, context) => {
495
495
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
496
496
  let body;
497
497
  body = JSON.stringify((0, smithy_client_1.take)(input, {
498
- clientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
498
+ clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
499
499
  stringValues: (_) => (0, smithy_client_1._json)(_),
500
500
  tags: (_) => (0, smithy_client_1._json)(_),
501
501
  type: [],
@@ -4447,7 +4447,7 @@ const se_StartAuditMitigationActionsTaskCommand = async (input, context) => {
4447
4447
  let body;
4448
4448
  body = JSON.stringify((0, smithy_client_1.take)(input, {
4449
4449
  auditCheckToActionsMapping: (_) => (0, smithy_client_1._json)(_),
4450
- clientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
4450
+ clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
4451
4451
  target: (_) => (0, smithy_client_1._json)(_),
4452
4452
  }));
4453
4453
  return new protocol_http_1.HttpRequest({
@@ -4471,7 +4471,7 @@ const se_StartDetectMitigationActionsTaskCommand = async (input, context) => {
4471
4471
  let body;
4472
4472
  body = JSON.stringify((0, smithy_client_1.take)(input, {
4473
4473
  actions: (_) => (0, smithy_client_1._json)(_),
4474
- clientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
4474
+ clientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
4475
4475
  includeOnlyActiveViolations: [],
4476
4476
  includeSuppressedAlerts: [],
4477
4477
  target: (_) => (0, smithy_client_1._json)(_),