@aws-sdk/client-iot 3.345.0 → 3.347.1
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/README.md +96 -0
- package/dist-cjs/IoT.js +24 -0
- package/dist-cjs/commands/CreatePackageCommand.js +47 -0
- package/dist-cjs/commands/CreatePackageVersionCommand.js +47 -0
- package/dist-cjs/commands/DeletePackageCommand.js +46 -0
- package/dist-cjs/commands/DeletePackageVersionCommand.js +46 -0
- package/dist-cjs/commands/GetPackageCommand.js +47 -0
- package/dist-cjs/commands/GetPackageConfigurationCommand.js +46 -0
- package/dist-cjs/commands/GetPackageVersionCommand.js +47 -0
- package/dist-cjs/commands/ListPackageVersionsCommand.js +46 -0
- package/dist-cjs/commands/ListPackagesCommand.js +46 -0
- package/dist-cjs/commands/UpdatePackageCommand.js +47 -0
- package/dist-cjs/commands/UpdatePackageConfigurationCommand.js +46 -0
- package/dist-cjs/commands/UpdatePackageVersionCommand.js +47 -0
- package/dist-cjs/commands/index.js +12 -0
- package/dist-cjs/models/models_0.js +68 -1
- package/dist-cjs/models/models_1.js +13 -14
- package/dist-cjs/models/models_2.js +17 -1
- package/dist-cjs/pagination/ListPackageVersionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListPackagesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +897 -46
- package/dist-es/IoT.js +24 -0
- package/dist-es/commands/CreatePackageCommand.js +43 -0
- package/dist-es/commands/CreatePackageVersionCommand.js +43 -0
- package/dist-es/commands/DeletePackageCommand.js +42 -0
- package/dist-es/commands/DeletePackageVersionCommand.js +42 -0
- package/dist-es/commands/GetPackageCommand.js +43 -0
- package/dist-es/commands/GetPackageConfigurationCommand.js +42 -0
- package/dist-es/commands/GetPackageVersionCommand.js +43 -0
- package/dist-es/commands/ListPackageVersionsCommand.js +42 -0
- package/dist-es/commands/ListPackagesCommand.js +42 -0
- package/dist-es/commands/UpdatePackageCommand.js +43 -0
- package/dist-es/commands/UpdatePackageConfigurationCommand.js +42 -0
- package/dist-es/commands/UpdatePackageVersionCommand.js +43 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/models/models_0.js +60 -0
- package/dist-es/models/models_1.js +10 -12
- package/dist-es/models/models_2.js +14 -0
- package/dist-es/pagination/ListPackageVersionsPaginator.js +25 -0
- package/dist-es/pagination/ListPackagesPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +862 -35
- package/dist-types/IoT.d.ts +84 -0
- package/dist-types/IoTClient.d.ts +14 -2
- package/dist-types/commands/CreateCertificateFromCsrCommand.d.ts +1 -1
- package/dist-types/commands/CreateJobCommand.d.ts +3 -0
- package/dist-types/commands/CreateJobTemplateCommand.d.ts +3 -0
- package/dist-types/commands/CreatePackageCommand.d.ts +97 -0
- package/dist-types/commands/CreatePackageVersionCommand.d.ts +107 -0
- package/dist-types/commands/DeleteFleetMetricCommand.d.ts +1 -1
- package/dist-types/commands/DeleteJobCommand.d.ts +1 -1
- package/dist-types/commands/DeleteJobExecutionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteJobTemplateCommand.d.ts +1 -1
- package/dist-types/commands/DeleteMitigationActionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteOTAUpdateCommand.d.ts +1 -1
- package/dist-types/commands/DeletePackageCommand.d.ts +85 -0
- package/dist-types/commands/DeletePackageVersionCommand.d.ts +85 -0
- package/dist-types/commands/DescribeJobCommand.d.ts +3 -0
- package/dist-types/commands/DescribeJobTemplateCommand.d.ts +3 -0
- package/dist-types/commands/GetPackageCommand.d.ts +92 -0
- package/dist-types/commands/GetPackageConfigurationCommand.d.ts +82 -0
- package/dist-types/commands/GetPackageVersionCommand.d.ts +98 -0
- package/dist-types/commands/ListPackageVersionsCommand.d.ts +96 -0
- package/dist-types/commands/ListPackagesCommand.d.ts +93 -0
- package/dist-types/commands/ListPolicyVersionsCommand.d.ts +2 -1
- package/dist-types/commands/ListPrincipalPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListPrincipalThingsCommand.d.ts +1 -1
- package/dist-types/commands/ListProvisioningTemplateVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListProvisioningTemplatesCommand.d.ts +1 -1
- package/dist-types/commands/ListRelatedResourcesForAuditFindingCommand.d.ts +1 -1
- package/dist-types/commands/ListRoleAliasesCommand.d.ts +1 -1
- package/dist-types/commands/ListScheduledAuditsCommand.d.ts +1 -1
- package/dist-types/commands/ListSecurityProfilesCommand.d.ts +1 -1
- package/dist-types/commands/ListSecurityProfilesForTargetCommand.d.ts +1 -2
- package/dist-types/commands/UpdatePackageCommand.d.ts +89 -0
- package/dist-types/commands/UpdatePackageConfigurationCommand.d.ts +86 -0
- package/dist-types/commands/UpdatePackageVersionCommand.d.ts +92 -0
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +184 -134
- package/dist-types/models/models_1.d.ts +416 -405
- package/dist-types/models/models_2.d.ts +529 -2
- package/dist-types/pagination/ListPackageVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPackagesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +108 -0
- package/dist-types/ts3.4/IoT.d.ts +204 -0
- package/dist-types/ts3.4/IoTClient.d.ts +72 -0
- package/dist-types/ts3.4/commands/CreatePackageCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreatePackageVersionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteFleetMetricCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteJobExecutionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteJobTemplateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteMitigationActionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteOTAUpdateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeletePackageCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeletePackageVersionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetPackageCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetPackageConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetPackageVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListPackageVersionsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListPackagesCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListPolicyVersionsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListPrincipalPoliciesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListPrincipalThingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListProvisioningTemplateVersionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListProvisioningTemplatesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListRelatedResourcesForAuditFindingCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListRoleAliasesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListScheduledAuditsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSecurityProfilesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSecurityProfilesForTargetCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/UpdatePackageCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdatePackageConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdatePackageVersionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/dist-types/ts3.4/models/models_0.d.ts +71 -29
- package/dist-types/ts3.4/models/models_1.d.ts +114 -121
- package/dist-types/ts3.4/models/models_2.d.ts +152 -2
- package/dist-types/ts3.4/pagination/ListPackageVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPackagesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +144 -0
- package/package.json +28 -28
|
@@ -426,6 +426,7 @@ export class ConflictException extends __BaseException {
|
|
|
426
426
|
this.name = "ConflictException";
|
|
427
427
|
this.$fault = "client";
|
|
428
428
|
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
429
|
+
this.resourceId = opts.resourceId;
|
|
429
430
|
}
|
|
430
431
|
}
|
|
431
432
|
export const LogLevel = {
|
|
@@ -465,6 +466,47 @@ export const OTAUpdateStatus = {
|
|
|
465
466
|
DELETE_FAILED: "DELETE_FAILED",
|
|
466
467
|
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
467
468
|
};
|
|
469
|
+
export class InternalServerException extends __BaseException {
|
|
470
|
+
constructor(opts) {
|
|
471
|
+
super({
|
|
472
|
+
name: "InternalServerException",
|
|
473
|
+
$fault: "server",
|
|
474
|
+
...opts,
|
|
475
|
+
});
|
|
476
|
+
this.name = "InternalServerException";
|
|
477
|
+
this.$fault = "server";
|
|
478
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
482
|
+
constructor(opts) {
|
|
483
|
+
super({
|
|
484
|
+
name: "ServiceQuotaExceededException",
|
|
485
|
+
$fault: "client",
|
|
486
|
+
...opts,
|
|
487
|
+
});
|
|
488
|
+
this.name = "ServiceQuotaExceededException";
|
|
489
|
+
this.$fault = "client";
|
|
490
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
export class ValidationException extends __BaseException {
|
|
494
|
+
constructor(opts) {
|
|
495
|
+
super({
|
|
496
|
+
name: "ValidationException",
|
|
497
|
+
$fault: "client",
|
|
498
|
+
...opts,
|
|
499
|
+
});
|
|
500
|
+
this.name = "ValidationException";
|
|
501
|
+
this.$fault = "client";
|
|
502
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
export const PackageVersionStatus = {
|
|
506
|
+
DEPRECATED: "DEPRECATED",
|
|
507
|
+
DRAFT: "DRAFT",
|
|
508
|
+
PUBLISHED: "PUBLISHED",
|
|
509
|
+
};
|
|
468
510
|
export class MalformedPolicyException extends __BaseException {
|
|
469
511
|
constructor(opts) {
|
|
470
512
|
super({
|
|
@@ -553,6 +595,24 @@ export const CreateKeysAndCertificateResponseFilterSensitiveLog = (obj) => ({
|
|
|
553
595
|
...obj,
|
|
554
596
|
...(obj.keyPair && { keyPair: KeyPairFilterSensitiveLog(obj.keyPair) }),
|
|
555
597
|
});
|
|
598
|
+
export const CreatePackageRequestFilterSensitiveLog = (obj) => ({
|
|
599
|
+
...obj,
|
|
600
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
601
|
+
});
|
|
602
|
+
export const CreatePackageResponseFilterSensitiveLog = (obj) => ({
|
|
603
|
+
...obj,
|
|
604
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
605
|
+
});
|
|
606
|
+
export const CreatePackageVersionRequestFilterSensitiveLog = (obj) => ({
|
|
607
|
+
...obj,
|
|
608
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
609
|
+
...(obj.attributes && { attributes: SENSITIVE_STRING }),
|
|
610
|
+
});
|
|
611
|
+
export const CreatePackageVersionResponseFilterSensitiveLog = (obj) => ({
|
|
612
|
+
...obj,
|
|
613
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
614
|
+
...(obj.attributes && { attributes: SENSITIVE_STRING }),
|
|
615
|
+
});
|
|
556
616
|
export const CreateProvisioningClaimResponseFilterSensitiveLog = (obj) => ({
|
|
557
617
|
...obj,
|
|
558
618
|
...(obj.keyPair && { keyPair: KeyPairFilterSensitiveLog(obj.keyPair) }),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { IoTServiceException as __BaseException } from "./IoTServiceException";
|
|
2
3
|
export const LogTargetType = {
|
|
3
4
|
CLIENT_ID: "CLIENT_ID",
|
|
@@ -76,18 +77,6 @@ export const JobExecutionStatus = {
|
|
|
76
77
|
SUCCEEDED: "SUCCEEDED",
|
|
77
78
|
TIMED_OUT: "TIMED_OUT",
|
|
78
79
|
};
|
|
79
|
-
export class InternalServerException extends __BaseException {
|
|
80
|
-
constructor(opts) {
|
|
81
|
-
super({
|
|
82
|
-
name: "InternalServerException",
|
|
83
|
-
$fault: "server",
|
|
84
|
-
...opts,
|
|
85
|
-
});
|
|
86
|
-
this.name = "InternalServerException";
|
|
87
|
-
this.$fault = "server";
|
|
88
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
80
|
export const MitigationActionType = {
|
|
92
81
|
ADD_THINGS_TO_THING_GROUP: "ADD_THINGS_TO_THING_GROUP",
|
|
93
82
|
ENABLE_IOT_LOGGING: "ENABLE_IOT_LOGGING",
|
|
@@ -162,3 +151,12 @@ export const DetectMitigationActionExecutionStatus = {
|
|
|
162
151
|
SKIPPED: "SKIPPED",
|
|
163
152
|
SUCCESSFUL: "SUCCESSFUL",
|
|
164
153
|
};
|
|
154
|
+
export const GetPackageResponseFilterSensitiveLog = (obj) => ({
|
|
155
|
+
...obj,
|
|
156
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
157
|
+
});
|
|
158
|
+
export const GetPackageVersionResponseFilterSensitiveLog = (obj) => ({
|
|
159
|
+
...obj,
|
|
160
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
161
|
+
...(obj.attributes && { attributes: SENSITIVE_STRING }),
|
|
162
|
+
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { IoTServiceException as __BaseException } from "./IoTServiceException";
|
|
2
3
|
export const ReportType = {
|
|
3
4
|
ERRORS: "ERRORS",
|
|
@@ -80,3 +81,16 @@ export class TransferConflictException extends __BaseException {
|
|
|
80
81
|
Object.setPrototypeOf(this, TransferConflictException.prototype);
|
|
81
82
|
}
|
|
82
83
|
}
|
|
84
|
+
export const PackageVersionAction = {
|
|
85
|
+
DEPRECATE: "DEPRECATE",
|
|
86
|
+
PUBLISH: "PUBLISH",
|
|
87
|
+
};
|
|
88
|
+
export const UpdatePackageRequestFilterSensitiveLog = (obj) => ({
|
|
89
|
+
...obj,
|
|
90
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
91
|
+
});
|
|
92
|
+
export const UpdatePackageVersionRequestFilterSensitiveLog = (obj) => ({
|
|
93
|
+
...obj,
|
|
94
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
95
|
+
...(obj.attributes && { attributes: SENSITIVE_STRING }),
|
|
96
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListPackageVersionsCommand, } from "../commands/ListPackageVersionsCommand";
|
|
2
|
+
import { IoTClient } from "../IoTClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListPackageVersionsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListPackageVersions(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 { ListPackagesCommand, } from "../commands/ListPackagesCommand";
|
|
2
|
+
import { IoTClient } from "../IoTClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListPackagesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListPackages(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
|
+
}
|
|
@@ -28,6 +28,8 @@ export * from "./ListMetricValuesPaginator";
|
|
|
28
28
|
export * from "./ListMitigationActionsPaginator";
|
|
29
29
|
export * from "./ListOTAUpdatesPaginator";
|
|
30
30
|
export * from "./ListOutgoingCertificatesPaginator";
|
|
31
|
+
export * from "./ListPackageVersionsPaginator";
|
|
32
|
+
export * from "./ListPackagesPaginator";
|
|
31
33
|
export * from "./ListPoliciesPaginator";
|
|
32
34
|
export * from "./ListPolicyPrincipalsPaginator";
|
|
33
35
|
export * from "./ListPrincipalPoliciesPaginator";
|