@aws-sdk/client-iotdeviceadvisor 3.662.0 → 3.663.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
@@ -203,6 +203,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
203
203
  var import_core2 = require("@aws-sdk/core");
204
204
 
205
205
 
206
+ var import_uuid = require("uuid");
206
207
 
207
208
  // src/models/IotDeviceAdvisorServiceException.ts
208
209
 
@@ -345,6 +346,7 @@ var se_CreateSuiteDefinitionCommand = /* @__PURE__ */ __name(async (input, conte
345
346
  let body;
346
347
  body = JSON.stringify(
347
348
  (0, import_smithy_client.take)(input, {
349
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
348
350
  suiteDefinitionConfiguration: (_) => (0, import_smithy_client._json)(_),
349
351
  tags: (_) => (0, import_smithy_client._json)(_)
350
352
  })
@@ -1,6 +1,7 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
+ import { v4 as generateIdempotencyToken } from "uuid";
4
5
  import { IotDeviceAdvisorServiceException as __BaseException } from "../models/IotDeviceAdvisorServiceException";
5
6
  import { ConflictException, InternalServerException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
6
7
  export const se_CreateSuiteDefinitionCommand = async (input, context) => {
@@ -11,6 +12,7 @@ export const se_CreateSuiteDefinitionCommand = async (input, context) => {
11
12
  b.bp("/suiteDefinitions");
12
13
  let body;
13
14
  body = JSON.stringify(take(input, {
15
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
14
16
  suiteDefinitionConfiguration: (_) => _json(_),
15
17
  tags: (_) => _json(_),
16
18
  }));
@@ -54,6 +54,7 @@ declare const CreateSuiteDefinitionCommand_base: {
54
54
  * tags: { // TagMap
55
55
  * "<keys>": "STRING_VALUE",
56
56
  * },
57
+ * clientToken: "STRING_VALUE",
57
58
  * };
58
59
  * const command = new CreateSuiteDefinitionCommand(input);
59
60
  * const response = await client.send(command);
@@ -126,6 +126,13 @@ export interface CreateSuiteDefinitionRequest {
126
126
  * @public
127
127
  */
128
128
  tags?: Record<string, string>;
129
+ /**
130
+ * <p>The client token for the test suite definition creation.
131
+ * This token is used for tracking test suite definition creation
132
+ * using retries and obtaining its status. This parameter is optional.</p>
133
+ * @public
134
+ */
135
+ clientToken?: string;
129
136
  }
130
137
  /**
131
138
  * @public
@@ -35,6 +35,7 @@ export interface SuiteDefinitionConfiguration {
35
35
  export interface CreateSuiteDefinitionRequest {
36
36
  suiteDefinitionConfiguration: SuiteDefinitionConfiguration | undefined;
37
37
  tags?: Record<string, string>;
38
+ clientToken?: string;
38
39
  }
39
40
  export interface CreateSuiteDefinitionResponse {
40
41
  suiteDefinitionId?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iotdeviceadvisor",
3
3
  "description": "AWS SDK for JavaScript Iotdeviceadvisor Client for Node.js, Browser and React Native",
4
- "version": "3.662.0",
4
+ "version": "3.663.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-iotdeviceadvisor",
@@ -58,11 +58,13 @@
58
58
  "@smithy/util-middleware": "^3.0.7",
59
59
  "@smithy/util-retry": "^3.0.7",
60
60
  "@smithy/util-utf8": "^3.0.0",
61
- "tslib": "^2.6.2"
61
+ "tslib": "^2.6.2",
62
+ "uuid": "^9.0.1"
62
63
  },
63
64
  "devDependencies": {
64
65
  "@tsconfig/node16": "16.1.3",
65
66
  "@types/node": "^16.18.96",
67
+ "@types/uuid": "^9.0.4",
66
68
  "concurrently": "7.0.0",
67
69
  "downlevel-dts": "0.10.1",
68
70
  "rimraf": "3.0.2",