@aws-sdk/client-iot 3.199.0 → 3.201.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/CHANGELOG.md +22 -0
- package/dist-cjs/commands/DeleteRegistrationCodeCommand.js +2 -1
- package/dist-cjs/commands/DeleteRoleAliasCommand.js +1 -2
- package/dist-cjs/commands/ListThingGroupsCommand.js +3 -3
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/models/models_0.js +14 -14
- package/dist-cjs/models/models_1.js +14 -14
- package/dist-cjs/models/models_2.js +11 -3
- package/dist-cjs/protocols/Aws_restJson1.js +283 -258
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/dist-es/commands/DeleteRegistrationCodeCommand.js +2 -1
- package/dist-es/commands/DeleteRoleAliasCommand.js +1 -2
- package/dist-es/commands/ListThingGroupsCommand.js +1 -1
- package/dist-es/models/models_0.js +6 -6
- package/dist-es/models/models_1.js +6 -6
- package/dist-es/models/models_2.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +34 -0
- package/dist-types/commands/DeleteRegistrationCodeCommand.d.ts +2 -1
- package/dist-types/commands/DeleteRoleAliasCommand.d.ts +1 -2
- package/dist-types/commands/ListThingGroupsCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +67 -20
- package/dist-types/models/models_1.d.ts +21 -44
- package/dist-types/models/models_2.d.ts +45 -1
- package/dist-types/ts3.4/commands/DeleteRegistrationCodeCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DeleteRoleAliasCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ListThingGroupsCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +19 -10
- package/dist-types/ts3.4/models/models_1.d.ts +10 -17
- package/dist-types/ts3.4/models/models_2.d.ts +17 -0
- package/package.json +33 -33
|
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
|
16
16
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
19
|
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
20
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
21
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
|
|
|
25
24
|
...config,
|
|
26
25
|
runtime: "browser",
|
|
27
26
|
defaultsMode,
|
|
28
|
-
base64Decoder:
|
|
29
|
-
base64Encoder:
|
|
30
|
-
bodyLengthChecker:
|
|
31
|
-
credentialDefaultProvider:
|
|
32
|
-
defaultUserAgentProvider:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
|
|
28
|
+
base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
+
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
|
+
maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
|
+
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
38
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
39
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
40
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
41
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
|
|
42
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
21
21
|
const getRuntimeConfig = (config) => {
|
|
22
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
23
22
|
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
|
|
|
29
28
|
...config,
|
|
30
29
|
runtime: "node",
|
|
31
30
|
defaultsMode,
|
|
32
|
-
base64Decoder:
|
|
33
|
-
base64Encoder:
|
|
34
|
-
bodyLengthChecker:
|
|
35
|
-
credentialDefaultProvider:
|
|
36
|
-
defaultUserAgentProvider:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
|
|
32
|
+
base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
|
|
33
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
34
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
35
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
+
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
38
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
39
|
+
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
40
|
+
retryMode: config?.retryMode ??
|
|
41
|
+
(0, node_config_provider_1.loadConfig)({
|
|
42
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
44
|
+
}),
|
|
45
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
46
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
47
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
48
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
49
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
|
|
50
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
|
|
50
51
|
};
|
|
51
52
|
};
|
|
52
53
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
var _a;
|
|
8
7
|
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
8
|
return {
|
|
10
9
|
...browserDefaults,
|
|
11
10
|
...config,
|
|
12
11
|
runtime: "react-native",
|
|
13
|
-
sha256:
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
14
13
|
};
|
|
15
14
|
};
|
|
16
15
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
|
-
const getRuntimeConfig = (config) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
|
-
});
|
|
16
|
-
};
|
|
6
|
+
const getRuntimeConfig = (config) => ({
|
|
7
|
+
apiVersion: "2015-05-28",
|
|
8
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
10
|
+
logger: config?.logger ?? {},
|
|
11
|
+
serviceId: config?.serviceId ?? "IoT",
|
|
12
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
13
|
+
});
|
|
17
14
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { DeleteRegistrationCodeRequestFilterSensitiveLog
|
|
4
|
+
import { DeleteRegistrationCodeRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
|
+
import { DeleteRegistrationCodeResponseFilterSensitiveLog } from "../models/models_1";
|
|
5
6
|
import { deserializeAws_restJson1DeleteRegistrationCodeCommand, serializeAws_restJson1DeleteRegistrationCodeCommand, } from "../protocols/Aws_restJson1";
|
|
6
7
|
export class DeleteRegistrationCodeCommand extends $Command {
|
|
7
8
|
constructor(input) {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { DeleteRoleAliasRequestFilterSensitiveLog } from "../models/
|
|
5
|
-
import { DeleteRoleAliasResponseFilterSensitiveLog } from "../models/models_1";
|
|
4
|
+
import { DeleteRoleAliasRequestFilterSensitiveLog, DeleteRoleAliasResponseFilterSensitiveLog, } from "../models/models_1";
|
|
6
5
|
import { deserializeAws_restJson1DeleteRoleAliasCommand, serializeAws_restJson1DeleteRoleAliasCommand, } from "../protocols/Aws_restJson1";
|
|
7
6
|
export class DeleteRoleAliasCommand extends $Command {
|
|
8
7
|
constructor(input) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { ListThingGroupsRequestFilterSensitiveLog, ListThingGroupsResponseFilterSensitiveLog, } from "../models/
|
|
4
|
+
import { ListThingGroupsRequestFilterSensitiveLog, ListThingGroupsResponseFilterSensitiveLog, } from "../models/models_2";
|
|
5
5
|
import { deserializeAws_restJson1ListThingGroupsCommand, serializeAws_restJson1ListThingGroupsCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class ListThingGroupsCommand extends $Command {
|
|
7
7
|
constructor(input) {
|
|
@@ -666,6 +666,12 @@ export const KinesisActionFilterSensitiveLog = (obj) => ({
|
|
|
666
666
|
export const LambdaActionFilterSensitiveLog = (obj) => ({
|
|
667
667
|
...obj,
|
|
668
668
|
});
|
|
669
|
+
export const LocationTimestampFilterSensitiveLog = (obj) => ({
|
|
670
|
+
...obj,
|
|
671
|
+
});
|
|
672
|
+
export const LocationActionFilterSensitiveLog = (obj) => ({
|
|
673
|
+
...obj,
|
|
674
|
+
});
|
|
669
675
|
export const OpenSearchActionFilterSensitiveLog = (obj) => ({
|
|
670
676
|
...obj,
|
|
671
677
|
});
|
|
@@ -1296,9 +1302,3 @@ export const DeleteProvisioningTemplateVersionResponseFilterSensitiveLog = (obj)
|
|
|
1296
1302
|
export const DeleteRegistrationCodeRequestFilterSensitiveLog = (obj) => ({
|
|
1297
1303
|
...obj,
|
|
1298
1304
|
});
|
|
1299
|
-
export const DeleteRegistrationCodeResponseFilterSensitiveLog = (obj) => ({
|
|
1300
|
-
...obj,
|
|
1301
|
-
});
|
|
1302
|
-
export const DeleteRoleAliasRequestFilterSensitiveLog = (obj) => ({
|
|
1303
|
-
...obj,
|
|
1304
|
-
});
|
|
@@ -185,6 +185,12 @@ export var DetectMitigationActionExecutionStatus;
|
|
|
185
185
|
DetectMitigationActionExecutionStatus["SKIPPED"] = "SKIPPED";
|
|
186
186
|
DetectMitigationActionExecutionStatus["SUCCESSFUL"] = "SUCCESSFUL";
|
|
187
187
|
})(DetectMitigationActionExecutionStatus || (DetectMitigationActionExecutionStatus = {}));
|
|
188
|
+
export const DeleteRegistrationCodeResponseFilterSensitiveLog = (obj) => ({
|
|
189
|
+
...obj,
|
|
190
|
+
});
|
|
191
|
+
export const DeleteRoleAliasRequestFilterSensitiveLog = (obj) => ({
|
|
192
|
+
...obj,
|
|
193
|
+
});
|
|
188
194
|
export const DeleteRoleAliasResponseFilterSensitiveLog = (obj) => ({
|
|
189
195
|
...obj,
|
|
190
196
|
});
|
|
@@ -1001,9 +1007,3 @@ export const ListTargetsForSecurityProfileRequestFilterSensitiveLog = (obj) => (
|
|
|
1001
1007
|
export const ListTargetsForSecurityProfileResponseFilterSensitiveLog = (obj) => ({
|
|
1002
1008
|
...obj,
|
|
1003
1009
|
});
|
|
1004
|
-
export const ListThingGroupsRequestFilterSensitiveLog = (obj) => ({
|
|
1005
|
-
...obj,
|
|
1006
|
-
});
|
|
1007
|
-
export const ListThingGroupsResponseFilterSensitiveLog = (obj) => ({
|
|
1008
|
-
...obj,
|
|
1009
|
-
});
|
|
@@ -82,6 +82,12 @@ export class TransferConflictException extends __BaseException {
|
|
|
82
82
|
Object.setPrototypeOf(this, TransferConflictException.prototype);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
+
export const ListThingGroupsRequestFilterSensitiveLog = (obj) => ({
|
|
86
|
+
...obj,
|
|
87
|
+
});
|
|
88
|
+
export const ListThingGroupsResponseFilterSensitiveLog = (obj) => ({
|
|
89
|
+
...obj,
|
|
90
|
+
});
|
|
85
91
|
export const ListThingGroupsForThingRequestFilterSensitiveLog = (obj) => ({
|
|
86
92
|
...obj,
|
|
87
93
|
});
|
|
@@ -17052,6 +17052,7 @@ const serializeAws_restJson1Action = (input, context) => {
|
|
|
17052
17052
|
...(input.kafka != null && { kafka: serializeAws_restJson1KafkaAction(input.kafka, context) }),
|
|
17053
17053
|
...(input.kinesis != null && { kinesis: serializeAws_restJson1KinesisAction(input.kinesis, context) }),
|
|
17054
17054
|
...(input.lambda != null && { lambda: serializeAws_restJson1LambdaAction(input.lambda, context) }),
|
|
17055
|
+
...(input.location != null && { location: serializeAws_restJson1LocationAction(input.location, context) }),
|
|
17055
17056
|
...(input.openSearch != null && { openSearch: serializeAws_restJson1OpenSearchAction(input.openSearch, context) }),
|
|
17056
17057
|
...(input.republish != null && { republish: serializeAws_restJson1RepublishAction(input.republish, context) }),
|
|
17057
17058
|
...(input.s3 != null && { s3: serializeAws_restJson1S3Action(input.s3, context) }),
|
|
@@ -17714,6 +17715,22 @@ const serializeAws_restJson1LambdaAction = (input, context) => {
|
|
|
17714
17715
|
...(input.functionArn != null && { functionArn: input.functionArn }),
|
|
17715
17716
|
};
|
|
17716
17717
|
};
|
|
17718
|
+
const serializeAws_restJson1LocationAction = (input, context) => {
|
|
17719
|
+
return {
|
|
17720
|
+
...(input.deviceId != null && { deviceId: input.deviceId }),
|
|
17721
|
+
...(input.latitude != null && { latitude: input.latitude }),
|
|
17722
|
+
...(input.longitude != null && { longitude: input.longitude }),
|
|
17723
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
17724
|
+
...(input.timestamp != null && { timestamp: serializeAws_restJson1LocationTimestamp(input.timestamp, context) }),
|
|
17725
|
+
...(input.trackerName != null && { trackerName: input.trackerName }),
|
|
17726
|
+
};
|
|
17727
|
+
};
|
|
17728
|
+
const serializeAws_restJson1LocationTimestamp = (input, context) => {
|
|
17729
|
+
return {
|
|
17730
|
+
...(input.unit != null && { unit: input.unit }),
|
|
17731
|
+
...(input.value != null && { value: input.value }),
|
|
17732
|
+
};
|
|
17733
|
+
};
|
|
17717
17734
|
const serializeAws_restJson1LoggingOptionsPayload = (input, context) => {
|
|
17718
17735
|
return {
|
|
17719
17736
|
...(input.logLevel != null && { logLevel: input.logLevel }),
|
|
@@ -18368,6 +18385,7 @@ const deserializeAws_restJson1Action = (output, context) => {
|
|
|
18368
18385
|
kafka: output.kafka != null ? deserializeAws_restJson1KafkaAction(output.kafka, context) : undefined,
|
|
18369
18386
|
kinesis: output.kinesis != null ? deserializeAws_restJson1KinesisAction(output.kinesis, context) : undefined,
|
|
18370
18387
|
lambda: output.lambda != null ? deserializeAws_restJson1LambdaAction(output.lambda, context) : undefined,
|
|
18388
|
+
location: output.location != null ? deserializeAws_restJson1LocationAction(output.location, context) : undefined,
|
|
18371
18389
|
openSearch: output.openSearch != null ? deserializeAws_restJson1OpenSearchAction(output.openSearch, context) : undefined,
|
|
18372
18390
|
republish: output.republish != null ? deserializeAws_restJson1RepublishAction(output.republish, context) : undefined,
|
|
18373
18391
|
s3: output.s3 != null ? deserializeAws_restJson1S3Action(output.s3, context) : undefined,
|
|
@@ -19803,6 +19821,22 @@ const deserializeAws_restJson1LambdaAction = (output, context) => {
|
|
|
19803
19821
|
functionArn: __expectString(output.functionArn),
|
|
19804
19822
|
};
|
|
19805
19823
|
};
|
|
19824
|
+
const deserializeAws_restJson1LocationAction = (output, context) => {
|
|
19825
|
+
return {
|
|
19826
|
+
deviceId: __expectString(output.deviceId),
|
|
19827
|
+
latitude: __expectString(output.latitude),
|
|
19828
|
+
longitude: __expectString(output.longitude),
|
|
19829
|
+
roleArn: __expectString(output.roleArn),
|
|
19830
|
+
timestamp: output.timestamp != null ? deserializeAws_restJson1LocationTimestamp(output.timestamp, context) : undefined,
|
|
19831
|
+
trackerName: __expectString(output.trackerName),
|
|
19832
|
+
};
|
|
19833
|
+
};
|
|
19834
|
+
const deserializeAws_restJson1LocationTimestamp = (output, context) => {
|
|
19835
|
+
return {
|
|
19836
|
+
unit: __expectString(output.unit),
|
|
19837
|
+
value: __expectString(output.value),
|
|
19838
|
+
};
|
|
19839
|
+
};
|
|
19806
19840
|
const deserializeAws_restJson1LogTarget = (output, context) => {
|
|
19807
19841
|
return {
|
|
19808
19842
|
targetName: __expectString(output.targetName),
|
|
@@ -2,7 +2,8 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
4
|
import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
|
|
5
|
-
import { DeleteRegistrationCodeRequest
|
|
5
|
+
import { DeleteRegistrationCodeRequest } from "../models/models_0";
|
|
6
|
+
import { DeleteRegistrationCodeResponse } from "../models/models_1";
|
|
6
7
|
export interface DeleteRegistrationCodeCommandInput extends DeleteRegistrationCodeRequest {
|
|
7
8
|
}
|
|
8
9
|
export interface DeleteRegistrationCodeCommandOutput extends DeleteRegistrationCodeResponse, __MetadataBearer {
|
|
@@ -2,8 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
4
|
import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
|
|
5
|
-
import { DeleteRoleAliasRequest } from "../models/
|
|
6
|
-
import { DeleteRoleAliasResponse } from "../models/models_1";
|
|
5
|
+
import { DeleteRoleAliasRequest, DeleteRoleAliasResponse } from "../models/models_1";
|
|
7
6
|
export interface DeleteRoleAliasCommandInput extends DeleteRoleAliasRequest {
|
|
8
7
|
}
|
|
9
8
|
export interface DeleteRoleAliasCommandOutput extends DeleteRoleAliasResponse, __MetadataBearer {
|
|
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
4
|
import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
|
|
5
|
-
import { ListThingGroupsRequest, ListThingGroupsResponse } from "../models/
|
|
5
|
+
import { ListThingGroupsRequest, ListThingGroupsResponse } from "../models/models_2";
|
|
6
6
|
export interface ListThingGroupsCommandInput extends ListThingGroupsRequest {
|
|
7
7
|
}
|
|
8
8
|
export interface ListThingGroupsCommandOutput extends ListThingGroupsResponse, __MetadataBearer {
|
|
@@ -687,6 +687,57 @@ export interface LambdaAction {
|
|
|
687
687
|
*/
|
|
688
688
|
functionArn: string | undefined;
|
|
689
689
|
}
|
|
690
|
+
/**
|
|
691
|
+
* <p>Describes how to interpret an application-defined timestamp value from an MQTT message
|
|
692
|
+
* payload and the precision of that value.</p>
|
|
693
|
+
*/
|
|
694
|
+
export interface LocationTimestamp {
|
|
695
|
+
/**
|
|
696
|
+
* <p>An expression that returns a long epoch time value.</p>
|
|
697
|
+
*/
|
|
698
|
+
value: string | undefined;
|
|
699
|
+
/**
|
|
700
|
+
* <p>The precision of the timestamp value that results from the expression
|
|
701
|
+
* described in <code>value</code>.</p>
|
|
702
|
+
* <p>Valid values: <code>SECONDS</code> | <code>MILLISECONDS</code> |
|
|
703
|
+
* <code>MICROSECONDS</code> | <code>NANOSECONDS</code>. The default is
|
|
704
|
+
* <code>MILLISECONDS</code>.</p>
|
|
705
|
+
*/
|
|
706
|
+
unit?: string;
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* <p>The Amazon Location rule action sends device location updates from
|
|
710
|
+
* an MQTT message to an Amazon Location tracker resource.</p>
|
|
711
|
+
*/
|
|
712
|
+
export interface LocationAction {
|
|
713
|
+
/**
|
|
714
|
+
* <p>The IAM role that grants permission to write to the Amazon Location resource.</p>
|
|
715
|
+
*/
|
|
716
|
+
roleArn: string | undefined;
|
|
717
|
+
/**
|
|
718
|
+
* <p>The name of the tracker resource in Amazon Location in which the location is updated.</p>
|
|
719
|
+
*/
|
|
720
|
+
trackerName: string | undefined;
|
|
721
|
+
/**
|
|
722
|
+
* <p>The unique ID of the device providing the location data.</p>
|
|
723
|
+
*/
|
|
724
|
+
deviceId: string | undefined;
|
|
725
|
+
/**
|
|
726
|
+
* <p>The time that the location data was sampled. The default value is
|
|
727
|
+
* the time the MQTT message was processed.</p>
|
|
728
|
+
*/
|
|
729
|
+
timestamp?: LocationTimestamp;
|
|
730
|
+
/**
|
|
731
|
+
* <p>A string that evaluates to a double value that represents the
|
|
732
|
+
* latitude of the device's location.</p>
|
|
733
|
+
*/
|
|
734
|
+
latitude: string | undefined;
|
|
735
|
+
/**
|
|
736
|
+
* <p>A string that evaluates to a double value that represents the
|
|
737
|
+
* longitude of the device's location.</p>
|
|
738
|
+
*/
|
|
739
|
+
longitude: string | undefined;
|
|
740
|
+
}
|
|
690
741
|
/**
|
|
691
742
|
* <p>Describes an action that writes data to an Amazon OpenSearch Service
|
|
692
743
|
* domain.</p>
|
|
@@ -1016,6 +1067,11 @@ export interface Action {
|
|
|
1016
1067
|
* <p>Write data to an Amazon OpenSearch Service domain.</p>
|
|
1017
1068
|
*/
|
|
1018
1069
|
openSearch?: OpenSearchAction;
|
|
1070
|
+
/**
|
|
1071
|
+
* <p>The Amazon Location Service rule action sends device location updates from
|
|
1072
|
+
* an MQTT message to an Amazon Location tracker resource.</p>
|
|
1073
|
+
*/
|
|
1074
|
+
location?: LocationAction;
|
|
1019
1075
|
}
|
|
1020
1076
|
export declare enum ActionType {
|
|
1021
1077
|
CONNECT = "CONNECT",
|
|
@@ -3895,7 +3951,9 @@ export interface CreateProvisioningTemplateRequest {
|
|
|
3895
3951
|
*/
|
|
3896
3952
|
provisioningRoleArn: string | undefined;
|
|
3897
3953
|
/**
|
|
3898
|
-
* <p>Creates a pre-provisioning hook template
|
|
3954
|
+
* <p>Creates a pre-provisioning hook template. Only supports template of type
|
|
3955
|
+
* <code>FLEET_PROVISIONING</code>. For more information about provisioning template types,
|
|
3956
|
+
* see <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_CreateProvisioningTemplate.html#iot-CreateProvisioningTemplate-request-type">type</a>.</p>
|
|
3899
3957
|
*/
|
|
3900
3958
|
preProvisioningHook?: ProvisioningHook;
|
|
3901
3959
|
/**
|
|
@@ -4811,17 +4869,6 @@ export interface DeleteProvisioningTemplateVersionResponse {
|
|
|
4811
4869
|
*/
|
|
4812
4870
|
export interface DeleteRegistrationCodeRequest {
|
|
4813
4871
|
}
|
|
4814
|
-
/**
|
|
4815
|
-
* <p>The output for the DeleteRegistrationCode operation.</p>
|
|
4816
|
-
*/
|
|
4817
|
-
export interface DeleteRegistrationCodeResponse {
|
|
4818
|
-
}
|
|
4819
|
-
export interface DeleteRoleAliasRequest {
|
|
4820
|
-
/**
|
|
4821
|
-
* <p>The role alias to delete.</p>
|
|
4822
|
-
*/
|
|
4823
|
-
roleAlias: string | undefined;
|
|
4824
|
-
}
|
|
4825
4872
|
/**
|
|
4826
4873
|
* @internal
|
|
4827
4874
|
*/
|
|
@@ -4922,6 +4969,14 @@ export declare const KinesisActionFilterSensitiveLog: (obj: KinesisAction) => an
|
|
|
4922
4969
|
* @internal
|
|
4923
4970
|
*/
|
|
4924
4971
|
export declare const LambdaActionFilterSensitiveLog: (obj: LambdaAction) => any;
|
|
4972
|
+
/**
|
|
4973
|
+
* @internal
|
|
4974
|
+
*/
|
|
4975
|
+
export declare const LocationTimestampFilterSensitiveLog: (obj: LocationTimestamp) => any;
|
|
4976
|
+
/**
|
|
4977
|
+
* @internal
|
|
4978
|
+
*/
|
|
4979
|
+
export declare const LocationActionFilterSensitiveLog: (obj: LocationAction) => any;
|
|
4925
4980
|
/**
|
|
4926
4981
|
* @internal
|
|
4927
4982
|
*/
|
|
@@ -5758,11 +5813,3 @@ export declare const DeleteProvisioningTemplateVersionResponseFilterSensitiveLog
|
|
|
5758
5813
|
* @internal
|
|
5759
5814
|
*/
|
|
5760
5815
|
export declare const DeleteRegistrationCodeRequestFilterSensitiveLog: (obj: DeleteRegistrationCodeRequest) => any;
|
|
5761
|
-
/**
|
|
5762
|
-
* @internal
|
|
5763
|
-
*/
|
|
5764
|
-
export declare const DeleteRegistrationCodeResponseFilterSensitiveLog: (obj: DeleteRegistrationCodeResponse) => any;
|
|
5765
|
-
/**
|
|
5766
|
-
* @internal
|
|
5767
|
-
*/
|
|
5768
|
-
export declare const DeleteRoleAliasRequestFilterSensitiveLog: (obj: DeleteRoleAliasRequest) => any;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { IoTServiceException as __BaseException } from "./IoTServiceException";
|
|
3
3
|
import { AbortConfig, Action, ActiveViolation, AggregationType, AlertTarget, AuditCheckConfiguration, AuditCheckDetails, AuditFinding, AuditFrequency, AuditMitigationActionExecutionMetadata, AuditMitigationActionsExecutionStatus, AuditMitigationActionsTaskMetadata, AuditMitigationActionsTaskStatus, AuditMitigationActionsTaskTarget, AuditNotificationTarget, AuditSuppression, AuditTaskMetadata, AuditTaskStatus, AuditTaskType, AuthorizerConfig, AuthorizerDescription, AuthorizerStatus, AuthorizerSummary, AutoRegistrationStatus, AwsJobExecutionsRolloutConfig, AwsJobPresignedUrlConfig, Behavior, BillingGroupProperties, CustomMetricType, DayOfWeek, DimensionType, DimensionValueOperator, FleetMetricUnit, JobExecutionsRetryConfig, JobExecutionsRolloutConfig, LogLevel, MetricToRetain, MetricValue, MitigationActionParams, OTAUpdateFile, OTAUpdateStatus, Policy, PresignedUrlConfig, Protocol, ProvisioningHook, ResourceIdentifier, ServiceType, StreamFile, Tag, TargetSelection, TaskStatisticsForAuditCheck, TemplateType, ThingGroupProperties, ThingTypeProperties, TimeoutConfig, TopicRuleDestination, VerificationState } from "./models_0";
|
|
4
|
+
/**
|
|
5
|
+
* <p>The output for the DeleteRegistrationCode operation.</p>
|
|
6
|
+
*/
|
|
7
|
+
export interface DeleteRegistrationCodeResponse {
|
|
8
|
+
}
|
|
9
|
+
export interface DeleteRoleAliasRequest {
|
|
10
|
+
/**
|
|
11
|
+
* <p>The role alias to delete.</p>
|
|
12
|
+
*/
|
|
13
|
+
roleAlias: string | undefined;
|
|
14
|
+
}
|
|
4
15
|
export interface DeleteRoleAliasResponse {
|
|
5
16
|
}
|
|
6
17
|
export interface DeleteScheduledAuditRequest {
|
|
@@ -2260,7 +2271,7 @@ export interface GetBehaviorModelTrainingSummariesRequest {
|
|
|
2260
2271
|
securityProfileName?: string;
|
|
2261
2272
|
/**
|
|
2262
2273
|
* <p>
|
|
2263
|
-
* The maximum number of results to return at one time. The default is
|
|
2274
|
+
* The maximum number of results to return at one time. The default is 10.
|
|
2264
2275
|
* </p>
|
|
2265
2276
|
*/
|
|
2266
2277
|
maxResults?: number;
|
|
@@ -4675,7 +4686,7 @@ export interface ListProvisioningTemplateVersionsRequest {
|
|
|
4675
4686
|
*/
|
|
4676
4687
|
export interface ProvisioningTemplateVersionSummary {
|
|
4677
4688
|
/**
|
|
4678
|
-
* <p>The ID of the fleet
|
|
4689
|
+
* <p>The ID of the fleet provisioning template version.</p>
|
|
4679
4690
|
*/
|
|
4680
4691
|
versionId?: number;
|
|
4681
4692
|
/**
|
|
@@ -4985,40 +4996,14 @@ export interface ListTargetsForSecurityProfileResponse {
|
|
|
4985
4996
|
*/
|
|
4986
4997
|
nextToken?: string;
|
|
4987
4998
|
}
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
* <p>The maximum number of results to return at one time.</p>
|
|
4997
|
-
*/
|
|
4998
|
-
maxResults?: number;
|
|
4999
|
-
/**
|
|
5000
|
-
* <p>A filter that limits the results to those with the specified parent group.</p>
|
|
5001
|
-
*/
|
|
5002
|
-
parentGroup?: string;
|
|
5003
|
-
/**
|
|
5004
|
-
* <p>A filter that limits the results to those with the specified name prefix.</p>
|
|
5005
|
-
*/
|
|
5006
|
-
namePrefixFilter?: string;
|
|
5007
|
-
/**
|
|
5008
|
-
* <p>If true, return child groups as well.</p>
|
|
5009
|
-
*/
|
|
5010
|
-
recursive?: boolean;
|
|
5011
|
-
}
|
|
5012
|
-
export interface ListThingGroupsResponse {
|
|
5013
|
-
/**
|
|
5014
|
-
* <p>The thing groups.</p>
|
|
5015
|
-
*/
|
|
5016
|
-
thingGroups?: GroupNameAndArn[];
|
|
5017
|
-
/**
|
|
5018
|
-
* <p>The token to use to get the next set of results. Will not be returned if operation has returned all results.</p>
|
|
5019
|
-
*/
|
|
5020
|
-
nextToken?: string;
|
|
5021
|
-
}
|
|
4999
|
+
/**
|
|
5000
|
+
* @internal
|
|
5001
|
+
*/
|
|
5002
|
+
export declare const DeleteRegistrationCodeResponseFilterSensitiveLog: (obj: DeleteRegistrationCodeResponse) => any;
|
|
5003
|
+
/**
|
|
5004
|
+
* @internal
|
|
5005
|
+
*/
|
|
5006
|
+
export declare const DeleteRoleAliasRequestFilterSensitiveLog: (obj: DeleteRoleAliasRequest) => any;
|
|
5022
5007
|
/**
|
|
5023
5008
|
* @internal
|
|
5024
5009
|
*/
|
|
@@ -6107,11 +6092,3 @@ export declare const ListTargetsForSecurityProfileRequestFilterSensitiveLog: (ob
|
|
|
6107
6092
|
* @internal
|
|
6108
6093
|
*/
|
|
6109
6094
|
export declare const ListTargetsForSecurityProfileResponseFilterSensitiveLog: (obj: ListTargetsForSecurityProfileResponse) => any;
|
|
6110
|
-
/**
|
|
6111
|
-
* @internal
|
|
6112
|
-
*/
|
|
6113
|
-
export declare const ListThingGroupsRequestFilterSensitiveLog: (obj: ListThingGroupsRequest) => any;
|
|
6114
|
-
/**
|
|
6115
|
-
* @internal
|
|
6116
|
-
*/
|
|
6117
|
-
export declare const ListThingGroupsResponseFilterSensitiveLog: (obj: ListThingGroupsResponse) => any;
|
|
@@ -2,6 +2,40 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl
|
|
|
2
2
|
import { IoTServiceException as __BaseException } from "./IoTServiceException";
|
|
3
3
|
import { AbortConfig, AggregationType, AlertTarget, AttributePayload, AuditCheckConfiguration, AuditFrequency, AuditMitigationActionsTaskTarget, AuditNotificationTarget, AuthInfo, AuthorizerConfig, AuthorizerStatus, AuthResult, AutoRegistrationStatus, Behavior, BillingGroupProperties, CustomMetricType, DayOfWeek, DimensionType, FleetMetricUnit, JobExecutionsRetryConfig, JobExecutionsRolloutConfig, LogLevel, MetricToRetain, MetricValue, MitigationActionParams, PresignedUrlConfig, ProvisioningHook, ResourceIdentifier, StreamFile, Tag, ThingGroupProperties, ThingTypeProperties, TimeoutConfig, TopicRuleDestinationStatus, TopicRulePayload, VerificationState, ViolationEventAdditionalInfo } from "./models_0";
|
|
4
4
|
import { BehaviorCriteriaType, CACertificateStatus, CertificateMode, CertificateStatus, Configuration, DetectMitigationActionsTaskTarget, DomainConfigurationStatus, GroupNameAndArn, LogTargetType, RegistrationConfig, Status, ThingGroupIndexingConfiguration, ThingIndexingConfiguration, ThingTypeMetadata, ViolationEventOccurrenceRange } from "./models_1";
|
|
5
|
+
export interface ListThingGroupsRequest {
|
|
6
|
+
/**
|
|
7
|
+
* <p>To retrieve the next set of results, the <code>nextToken</code>
|
|
8
|
+
* value from a previous response; otherwise <b>null</b> to receive
|
|
9
|
+
* the first set of results.</p>
|
|
10
|
+
*/
|
|
11
|
+
nextToken?: string;
|
|
12
|
+
/**
|
|
13
|
+
* <p>The maximum number of results to return at one time.</p>
|
|
14
|
+
*/
|
|
15
|
+
maxResults?: number;
|
|
16
|
+
/**
|
|
17
|
+
* <p>A filter that limits the results to those with the specified parent group.</p>
|
|
18
|
+
*/
|
|
19
|
+
parentGroup?: string;
|
|
20
|
+
/**
|
|
21
|
+
* <p>A filter that limits the results to those with the specified name prefix.</p>
|
|
22
|
+
*/
|
|
23
|
+
namePrefixFilter?: string;
|
|
24
|
+
/**
|
|
25
|
+
* <p>If true, return child groups as well.</p>
|
|
26
|
+
*/
|
|
27
|
+
recursive?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface ListThingGroupsResponse {
|
|
30
|
+
/**
|
|
31
|
+
* <p>The thing groups.</p>
|
|
32
|
+
*/
|
|
33
|
+
thingGroups?: GroupNameAndArn[];
|
|
34
|
+
/**
|
|
35
|
+
* <p>The token to use to get the next set of results. Will not be returned if operation has returned all results.</p>
|
|
36
|
+
*/
|
|
37
|
+
nextToken?: string;
|
|
38
|
+
}
|
|
5
39
|
export interface ListThingGroupsForThingRequest {
|
|
6
40
|
/**
|
|
7
41
|
* <p>The thing name.</p>
|
|
@@ -1945,7 +1979,9 @@ export interface UpdateProvisioningTemplateRequest {
|
|
|
1945
1979
|
*/
|
|
1946
1980
|
provisioningRoleArn?: string;
|
|
1947
1981
|
/**
|
|
1948
|
-
* <p>Updates the pre-provisioning hook template
|
|
1982
|
+
* <p>Updates the pre-provisioning hook template. Only supports template of type
|
|
1983
|
+
* <code>FLEET_PROVISIONING</code>. For more information about provisioning template types,
|
|
1984
|
+
* see <a href="https://docs.aws.amazon.com/iot/latest/apireference/API_CreateProvisioningTemplate.html#iot-CreateProvisioningTemplate-request-type">type</a>.</p>
|
|
1949
1985
|
*/
|
|
1950
1986
|
preProvisioningHook?: ProvisioningHook;
|
|
1951
1987
|
/**
|
|
@@ -2326,6 +2362,14 @@ export interface ValidateSecurityProfileBehaviorsResponse {
|
|
|
2326
2362
|
*/
|
|
2327
2363
|
validationErrors?: ValidationError[];
|
|
2328
2364
|
}
|
|
2365
|
+
/**
|
|
2366
|
+
* @internal
|
|
2367
|
+
*/
|
|
2368
|
+
export declare const ListThingGroupsRequestFilterSensitiveLog: (obj: ListThingGroupsRequest) => any;
|
|
2369
|
+
/**
|
|
2370
|
+
* @internal
|
|
2371
|
+
*/
|
|
2372
|
+
export declare const ListThingGroupsResponseFilterSensitiveLog: (obj: ListThingGroupsResponse) => any;
|
|
2329
2373
|
/**
|
|
2330
2374
|
* @internal
|
|
2331
2375
|
*/
|