@aws-sdk/client-iotdeviceadvisor 3.662.0 → 3.664.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 +2 -0
- package/dist-cjs/runtimeConfig.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-es/runtimeConfig.js +2 -1
- package/dist-types/commands/CreateSuiteDefinitionCommand.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +7 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -1
- package/dist-types/runtimeConfig.d.ts +2 -1
- package/dist-types/runtimeConfig.native.d.ts +2 -1
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +6 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -3
- package/package.json +17 -15
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
|
})
|
|
@@ -44,6 +44,7 @@ const getRuntimeConfig = (config) => {
|
|
|
44
44
|
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
45
45
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
46
46
|
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
47
|
+
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS),
|
|
47
48
|
};
|
|
48
49
|
};
|
|
49
50
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -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
|
}));
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
3
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
|
-
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
4
|
+
import { NODE_APP_ID_CONFIG_OPTIONS, defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
5
5
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
6
6
|
import { Hash } from "@smithy/hash-node";
|
|
7
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
@@ -40,5 +40,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
40
40
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
41
41
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
42
42
|
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
43
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS),
|
|
43
44
|
};
|
|
44
45
|
};
|
|
@@ -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
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: IotDeviceAdvisorClientConfig) =>
|
|
|
8
8
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
11
|
-
defaultUserAgentProvider: import("@
|
|
11
|
+
defaultUserAgentProvider: (config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
13
13
|
region: string | import("@smithy/types").Provider<any>;
|
|
14
14
|
requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
|
|
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: IotDeviceAdvisorClientConfig) =>
|
|
|
29
29
|
logger: import("@smithy/types").Logger;
|
|
30
30
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
31
31
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
32
|
+
userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
|
|
32
33
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
33
34
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
34
35
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: IotDeviceAdvisorClientConfig) =>
|
|
|
8
8
|
defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
|
|
11
|
-
defaultUserAgentProvider: import("@
|
|
11
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
13
13
|
region: string | import("@smithy/types").Provider<string>;
|
|
14
14
|
requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
|
|
@@ -17,6 +17,7 @@ export declare const getRuntimeConfig: (config: IotDeviceAdvisorClientConfig) =>
|
|
|
17
17
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
18
18
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
19
19
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
20
|
+
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
20
21
|
apiVersion: string;
|
|
21
22
|
cacheMiddleware?: boolean | undefined;
|
|
22
23
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -20,7 +20,7 @@ export declare const getRuntimeConfig: (config: IotDeviceAdvisorClientConfig) =>
|
|
|
20
20
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
21
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
22
22
|
region: string | import("@smithy/types").Provider<any>;
|
|
23
|
-
defaultUserAgentProvider: import("@
|
|
23
|
+
defaultUserAgentProvider: (config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
24
24
|
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
25
25
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
26
26
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
@@ -28,6 +28,7 @@ export declare const getRuntimeConfig: (config: IotDeviceAdvisorClientConfig) =>
|
|
|
28
28
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
29
29
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
30
30
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
31
|
+
userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
|
|
31
32
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
32
33
|
endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
|
|
33
34
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
@@ -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;
|
|
@@ -11,9 +11,9 @@ export declare const getRuntimeConfig: (
|
|
|
11
11
|
credentialDefaultProvider: (
|
|
12
12
|
input: any
|
|
13
13
|
) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
14
|
-
defaultUserAgentProvider:
|
|
15
|
-
import("@
|
|
16
|
-
>;
|
|
14
|
+
defaultUserAgentProvider: (
|
|
15
|
+
config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
|
|
16
|
+
) => Promise<import("@smithy/types").UserAgent>;
|
|
17
17
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
18
18
|
region: string | import("@smithy/types").Provider<any>;
|
|
19
19
|
requestHandler:
|
|
@@ -36,6 +36,10 @@ export declare const getRuntimeConfig: (
|
|
|
36
36
|
logger: import("@smithy/types").Logger;
|
|
37
37
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
38
38
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
39
|
+
userAgentAppId?:
|
|
40
|
+
| string
|
|
41
|
+
| import("@smithy/types").Provider<string | undefined>
|
|
42
|
+
| undefined;
|
|
39
43
|
retryStrategy?:
|
|
40
44
|
| import("@smithy/types").RetryStrategy
|
|
41
45
|
| import("@smithy/types").RetryStrategyV2
|
|
@@ -15,9 +15,11 @@ export declare const getRuntimeConfig: (
|
|
|
15
15
|
) => import("@smithy/types").MemoizedProvider<
|
|
16
16
|
import("@smithy/types").AwsCredentialIdentity
|
|
17
17
|
>;
|
|
18
|
-
defaultUserAgentProvider:
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
defaultUserAgentProvider: (
|
|
19
|
+
config?:
|
|
20
|
+
| import("@aws-sdk/util-user-agent-node").PreviouslyResolved
|
|
21
|
+
| undefined
|
|
22
|
+
) => Promise<import("@smithy/types").UserAgent>;
|
|
21
23
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
22
24
|
region: string | import("@smithy/types").Provider<string>;
|
|
23
25
|
requestHandler:
|
|
@@ -28,6 +30,7 @@ export declare const getRuntimeConfig: (
|
|
|
28
30
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
29
31
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
30
32
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
33
|
+
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
31
34
|
apiVersion: string;
|
|
32
35
|
cacheMiddleware?: boolean | undefined;
|
|
33
36
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -24,9 +24,9 @@ export declare const getRuntimeConfig: (
|
|
|
24
24
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
25
25
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
26
26
|
region: string | import("@smithy/types").Provider<any>;
|
|
27
|
-
defaultUserAgentProvider:
|
|
28
|
-
import("@
|
|
29
|
-
>;
|
|
27
|
+
defaultUserAgentProvider: (
|
|
28
|
+
config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
|
|
29
|
+
) => Promise<import("@smithy/types").UserAgent>;
|
|
30
30
|
credentialDefaultProvider: (
|
|
31
31
|
input: any
|
|
32
32
|
) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
|
|
|
40
40
|
import("@smithy/smithy-client").DefaultsMode
|
|
41
41
|
>;
|
|
42
42
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
43
|
+
userAgentAppId?:
|
|
44
|
+
| string
|
|
45
|
+
| import("@smithy/types").Provider<string | undefined>
|
|
46
|
+
| undefined;
|
|
43
47
|
retryStrategy?:
|
|
44
48
|
| import("@smithy/types").RetryStrategy
|
|
45
49
|
| import("@smithy/types").RetryStrategyV2
|
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.
|
|
4
|
+
"version": "3.664.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",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.664.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.664.0",
|
|
25
|
+
"@aws-sdk/core": "3.664.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.664.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.664.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.664.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.664.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.664.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.664.0",
|
|
32
|
+
"@aws-sdk/types": "3.664.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.664.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.664.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.664.0",
|
|
36
36
|
"@smithy/config-resolver": "^3.0.9",
|
|
37
37
|
"@smithy/core": "^2.4.7",
|
|
38
38
|
"@smithy/fetch-http-handler": "^3.2.9",
|
|
@@ -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",
|