@aws-sdk/client-iot 3.316.0 → 3.317.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/endpoint/EndpointParameters.js +1 -1
- package/dist-cjs/models/models_0.js +2 -0
- package/dist-cjs/pagination/ListManagedJobTemplatesPaginator.js +29 -0
- package/dist-cjs/pagination/ListRelatedResourcesForAuditFindingPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-es/endpoint/EndpointParameters.js +1 -1
- package/dist-es/models/models_0.js +2 -0
- package/dist-es/pagination/ListManagedJobTemplatesPaginator.js +25 -0
- package/dist-es/pagination/ListRelatedResourcesForAuditFindingPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-types/commands/ListOTAUpdatesCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +2 -0
- package/dist-types/pagination/ListManagedJobTemplatesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRelatedResourcesForAuditFindingPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/dist-types/ts3.4/pagination/ListManagedJobTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRelatedResourcesForAuditFindingPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ const resolveClientEndpointParameters = (options) => {
|
|
|
6
6
|
...options,
|
|
7
7
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
8
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
9
|
-
defaultSigningName: "
|
|
9
|
+
defaultSigningName: "iot",
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
@@ -484,6 +484,8 @@ exports.OTAUpdateStatus = {
|
|
|
484
484
|
CREATE_FAILED: "CREATE_FAILED",
|
|
485
485
|
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
486
486
|
CREATE_PENDING: "CREATE_PENDING",
|
|
487
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
488
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
487
489
|
};
|
|
488
490
|
class MalformedPolicyException extends IoTServiceException_1.IoTServiceException {
|
|
489
491
|
constructor(opts) {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListManagedJobTemplates = void 0;
|
|
4
|
+
const ListManagedJobTemplatesCommand_1 = require("../commands/ListManagedJobTemplatesCommand");
|
|
5
|
+
const IoTClient_1 = require("../IoTClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListManagedJobTemplatesCommand_1.ListManagedJobTemplatesCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListManagedJobTemplates(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof IoTClient_1.IoTClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListManagedJobTemplates = paginateListManagedJobTemplates;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListRelatedResourcesForAuditFinding = void 0;
|
|
4
|
+
const ListRelatedResourcesForAuditFindingCommand_1 = require("../commands/ListRelatedResourcesForAuditFindingCommand");
|
|
5
|
+
const IoTClient_1 = require("../IoTClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListRelatedResourcesForAuditFindingCommand_1.ListRelatedResourcesForAuditFindingCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListRelatedResourcesForAuditFinding(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof IoTClient_1.IoTClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListRelatedResourcesForAuditFinding = paginateListRelatedResourcesForAuditFinding;
|
|
@@ -26,6 +26,7 @@ tslib_1.__exportStar(require("./ListJobExecutionsForJobPaginator"), exports);
|
|
|
26
26
|
tslib_1.__exportStar(require("./ListJobExecutionsForThingPaginator"), exports);
|
|
27
27
|
tslib_1.__exportStar(require("./ListJobTemplatesPaginator"), exports);
|
|
28
28
|
tslib_1.__exportStar(require("./ListJobsPaginator"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./ListManagedJobTemplatesPaginator"), exports);
|
|
29
30
|
tslib_1.__exportStar(require("./ListMetricValuesPaginator"), exports);
|
|
30
31
|
tslib_1.__exportStar(require("./ListMitigationActionsPaginator"), exports);
|
|
31
32
|
tslib_1.__exportStar(require("./ListOTAUpdatesPaginator"), exports);
|
|
@@ -36,6 +37,7 @@ tslib_1.__exportStar(require("./ListPrincipalPoliciesPaginator"), exports);
|
|
|
36
37
|
tslib_1.__exportStar(require("./ListPrincipalThingsPaginator"), exports);
|
|
37
38
|
tslib_1.__exportStar(require("./ListProvisioningTemplateVersionsPaginator"), exports);
|
|
38
39
|
tslib_1.__exportStar(require("./ListProvisioningTemplatesPaginator"), exports);
|
|
40
|
+
tslib_1.__exportStar(require("./ListRelatedResourcesForAuditFindingPaginator"), exports);
|
|
39
41
|
tslib_1.__exportStar(require("./ListRoleAliasesPaginator"), exports);
|
|
40
42
|
tslib_1.__exportStar(require("./ListScheduledAuditsPaginator"), exports);
|
|
41
43
|
tslib_1.__exportStar(require("./ListSecurityProfilesForTargetPaginator"), exports);
|
|
@@ -462,6 +462,8 @@ export const OTAUpdateStatus = {
|
|
|
462
462
|
CREATE_FAILED: "CREATE_FAILED",
|
|
463
463
|
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
464
464
|
CREATE_PENDING: "CREATE_PENDING",
|
|
465
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
466
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
465
467
|
};
|
|
466
468
|
export class MalformedPolicyException extends __BaseException {
|
|
467
469
|
constructor(opts) {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListManagedJobTemplatesCommand, } from "../commands/ListManagedJobTemplatesCommand";
|
|
2
|
+
import { IoTClient } from "../IoTClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListManagedJobTemplatesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListManagedJobTemplates(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof IoTClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListRelatedResourcesForAuditFindingCommand, } from "../commands/ListRelatedResourcesForAuditFindingCommand";
|
|
2
|
+
import { IoTClient } from "../IoTClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListRelatedResourcesForAuditFindingCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListRelatedResourcesForAuditFinding(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof IoTClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -23,6 +23,7 @@ export * from "./ListJobExecutionsForJobPaginator";
|
|
|
23
23
|
export * from "./ListJobExecutionsForThingPaginator";
|
|
24
24
|
export * from "./ListJobTemplatesPaginator";
|
|
25
25
|
export * from "./ListJobsPaginator";
|
|
26
|
+
export * from "./ListManagedJobTemplatesPaginator";
|
|
26
27
|
export * from "./ListMetricValuesPaginator";
|
|
27
28
|
export * from "./ListMitigationActionsPaginator";
|
|
28
29
|
export * from "./ListOTAUpdatesPaginator";
|
|
@@ -33,6 +34,7 @@ export * from "./ListPrincipalPoliciesPaginator";
|
|
|
33
34
|
export * from "./ListPrincipalThingsPaginator";
|
|
34
35
|
export * from "./ListProvisioningTemplateVersionsPaginator";
|
|
35
36
|
export * from "./ListProvisioningTemplatesPaginator";
|
|
37
|
+
export * from "./ListRelatedResourcesForAuditFindingPaginator";
|
|
36
38
|
export * from "./ListRoleAliasesPaginator";
|
|
37
39
|
export * from "./ListScheduledAuditsPaginator";
|
|
38
40
|
export * from "./ListSecurityProfilesForTargetPaginator";
|
|
@@ -30,7 +30,7 @@ export interface ListOTAUpdatesCommandOutput extends ListOTAUpdatesResponse, __M
|
|
|
30
30
|
* const input = { // ListOTAUpdatesRequest
|
|
31
31
|
* maxResults: Number("int"),
|
|
32
32
|
* nextToken: "STRING_VALUE",
|
|
33
|
-
* otaUpdateStatus: "CREATE_PENDING" || "CREATE_IN_PROGRESS" || "CREATE_COMPLETE" || "CREATE_FAILED",
|
|
33
|
+
* otaUpdateStatus: "CREATE_PENDING" || "CREATE_IN_PROGRESS" || "CREATE_COMPLETE" || "CREATE_FAILED" || "DELETE_IN_PROGRESS" || "DELETE_FAILED",
|
|
34
34
|
* };
|
|
35
35
|
* const command = new ListOTAUpdatesCommand(input);
|
|
36
36
|
* const response = await client.send(command);
|
|
@@ -4511,6 +4511,8 @@ export declare const OTAUpdateStatus: {
|
|
|
4511
4511
|
readonly CREATE_FAILED: "CREATE_FAILED";
|
|
4512
4512
|
readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
|
|
4513
4513
|
readonly CREATE_PENDING: "CREATE_PENDING";
|
|
4514
|
+
readonly DELETE_FAILED: "DELETE_FAILED";
|
|
4515
|
+
readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
|
|
4514
4516
|
};
|
|
4515
4517
|
/**
|
|
4516
4518
|
* @public
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
import { ListManagedJobTemplatesCommandInput, ListManagedJobTemplatesCommandOutput } from "../commands/ListManagedJobTemplatesCommand";
|
|
3
|
+
import { IoTPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare function paginateListManagedJobTemplates(config: IoTPaginationConfiguration, input: ListManagedJobTemplatesCommandInput, ...additionalArguments: any): Paginator<ListManagedJobTemplatesCommandOutput>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
import { ListRelatedResourcesForAuditFindingCommandInput, ListRelatedResourcesForAuditFindingCommandOutput } from "../commands/ListRelatedResourcesForAuditFindingCommand";
|
|
3
|
+
import { IoTPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare function paginateListRelatedResourcesForAuditFinding(config: IoTPaginationConfiguration, input: ListRelatedResourcesForAuditFindingCommandInput, ...additionalArguments: any): Paginator<ListRelatedResourcesForAuditFindingCommandOutput>;
|
|
@@ -23,6 +23,7 @@ export * from "./ListJobExecutionsForJobPaginator";
|
|
|
23
23
|
export * from "./ListJobExecutionsForThingPaginator";
|
|
24
24
|
export * from "./ListJobTemplatesPaginator";
|
|
25
25
|
export * from "./ListJobsPaginator";
|
|
26
|
+
export * from "./ListManagedJobTemplatesPaginator";
|
|
26
27
|
export * from "./ListMetricValuesPaginator";
|
|
27
28
|
export * from "./ListMitigationActionsPaginator";
|
|
28
29
|
export * from "./ListOTAUpdatesPaginator";
|
|
@@ -33,6 +34,7 @@ export * from "./ListPrincipalPoliciesPaginator";
|
|
|
33
34
|
export * from "./ListPrincipalThingsPaginator";
|
|
34
35
|
export * from "./ListProvisioningTemplateVersionsPaginator";
|
|
35
36
|
export * from "./ListProvisioningTemplatesPaginator";
|
|
37
|
+
export * from "./ListRelatedResourcesForAuditFindingPaginator";
|
|
36
38
|
export * from "./ListRoleAliasesPaginator";
|
|
37
39
|
export * from "./ListScheduledAuditsPaginator";
|
|
38
40
|
export * from "./ListSecurityProfilesForTargetPaginator";
|
|
@@ -1355,6 +1355,8 @@ export declare const OTAUpdateStatus: {
|
|
|
1355
1355
|
readonly CREATE_FAILED: "CREATE_FAILED";
|
|
1356
1356
|
readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
|
|
1357
1357
|
readonly CREATE_PENDING: "CREATE_PENDING";
|
|
1358
|
+
readonly DELETE_FAILED: "DELETE_FAILED";
|
|
1359
|
+
readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
|
|
1358
1360
|
};
|
|
1359
1361
|
export type OTAUpdateStatus =
|
|
1360
1362
|
(typeof OTAUpdateStatus)[keyof typeof OTAUpdateStatus];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
import {
|
|
3
|
+
ListManagedJobTemplatesCommandInput,
|
|
4
|
+
ListManagedJobTemplatesCommandOutput,
|
|
5
|
+
} from "../commands/ListManagedJobTemplatesCommand";
|
|
6
|
+
import { IoTPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare function paginateListManagedJobTemplates(
|
|
8
|
+
config: IoTPaginationConfiguration,
|
|
9
|
+
input: ListManagedJobTemplatesCommandInput,
|
|
10
|
+
...additionalArguments: any
|
|
11
|
+
): Paginator<ListManagedJobTemplatesCommandOutput>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
import {
|
|
3
|
+
ListRelatedResourcesForAuditFindingCommandInput,
|
|
4
|
+
ListRelatedResourcesForAuditFindingCommandOutput,
|
|
5
|
+
} from "../commands/ListRelatedResourcesForAuditFindingCommand";
|
|
6
|
+
import { IoTPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare function paginateListRelatedResourcesForAuditFinding(
|
|
8
|
+
config: IoTPaginationConfiguration,
|
|
9
|
+
input: ListRelatedResourcesForAuditFindingCommandInput,
|
|
10
|
+
...additionalArguments: any
|
|
11
|
+
): Paginator<ListRelatedResourcesForAuditFindingCommandOutput>;
|
|
@@ -23,6 +23,7 @@ export * from "./ListJobExecutionsForJobPaginator";
|
|
|
23
23
|
export * from "./ListJobExecutionsForThingPaginator";
|
|
24
24
|
export * from "./ListJobTemplatesPaginator";
|
|
25
25
|
export * from "./ListJobsPaginator";
|
|
26
|
+
export * from "./ListManagedJobTemplatesPaginator";
|
|
26
27
|
export * from "./ListMetricValuesPaginator";
|
|
27
28
|
export * from "./ListMitigationActionsPaginator";
|
|
28
29
|
export * from "./ListOTAUpdatesPaginator";
|
|
@@ -33,6 +34,7 @@ export * from "./ListPrincipalPoliciesPaginator";
|
|
|
33
34
|
export * from "./ListPrincipalThingsPaginator";
|
|
34
35
|
export * from "./ListProvisioningTemplateVersionsPaginator";
|
|
35
36
|
export * from "./ListProvisioningTemplatesPaginator";
|
|
37
|
+
export * from "./ListRelatedResourcesForAuditFindingPaginator";
|
|
36
38
|
export * from "./ListRoleAliasesPaginator";
|
|
37
39
|
export * from "./ListScheduledAuditsPaginator";
|
|
38
40
|
export * from "./ListSecurityProfilesForTargetPaginator";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-iot",
|
|
3
3
|
"description": "AWS SDK for JavaScript Iot Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.317.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|