@aws-sdk/client-iot 3.345.0 → 3.347.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/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
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListPackagesCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class ListPackagesCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListPackagesCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "IoTClient";
|
|
28
|
+
const commandName = "ListPackagesCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.se_ListPackagesCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.de_ListPackagesCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListPackagesCommand = ListPackagesCommand;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdatePackageCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_2_1 = require("../models/models_2");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class UpdatePackageCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdatePackageCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "IoTClient";
|
|
29
|
+
const commandName = "UpdatePackageCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: models_2_1.UpdatePackageRequestFilterSensitiveLog,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return (0, Aws_restJson1_1.se_UpdatePackageCommand)(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return (0, Aws_restJson1_1.de_UpdatePackageCommand)(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.UpdatePackageCommand = UpdatePackageCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdatePackageConfigurationCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class UpdatePackageConfigurationCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdatePackageConfigurationCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "IoTClient";
|
|
28
|
+
const commandName = "UpdatePackageConfigurationCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.se_UpdatePackageConfigurationCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.de_UpdatePackageConfigurationCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.UpdatePackageConfigurationCommand = UpdatePackageConfigurationCommand;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdatePackageVersionCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_2_1 = require("../models/models_2");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class UpdatePackageVersionCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdatePackageVersionCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "IoTClient";
|
|
29
|
+
const commandName = "UpdatePackageVersionCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: models_2_1.UpdatePackageVersionRequestFilterSensitiveLog,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return (0, Aws_restJson1_1.se_UpdatePackageVersionCommand)(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return (0, Aws_restJson1_1.de_UpdatePackageVersionCommand)(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.UpdatePackageVersionCommand = UpdatePackageVersionCommand;
|
|
@@ -31,6 +31,8 @@ tslib_1.__exportStar(require("./CreateJobTemplateCommand"), exports);
|
|
|
31
31
|
tslib_1.__exportStar(require("./CreateKeysAndCertificateCommand"), exports);
|
|
32
32
|
tslib_1.__exportStar(require("./CreateMitigationActionCommand"), exports);
|
|
33
33
|
tslib_1.__exportStar(require("./CreateOTAUpdateCommand"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./CreatePackageCommand"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./CreatePackageVersionCommand"), exports);
|
|
34
36
|
tslib_1.__exportStar(require("./CreatePolicyCommand"), exports);
|
|
35
37
|
tslib_1.__exportStar(require("./CreatePolicyVersionCommand"), exports);
|
|
36
38
|
tslib_1.__exportStar(require("./CreateProvisioningClaimCommand"), exports);
|
|
@@ -61,6 +63,8 @@ tslib_1.__exportStar(require("./DeleteJobExecutionCommand"), exports);
|
|
|
61
63
|
tslib_1.__exportStar(require("./DeleteJobTemplateCommand"), exports);
|
|
62
64
|
tslib_1.__exportStar(require("./DeleteMitigationActionCommand"), exports);
|
|
63
65
|
tslib_1.__exportStar(require("./DeleteOTAUpdateCommand"), exports);
|
|
66
|
+
tslib_1.__exportStar(require("./DeletePackageCommand"), exports);
|
|
67
|
+
tslib_1.__exportStar(require("./DeletePackageVersionCommand"), exports);
|
|
64
68
|
tslib_1.__exportStar(require("./DeletePolicyCommand"), exports);
|
|
65
69
|
tslib_1.__exportStar(require("./DeletePolicyVersionCommand"), exports);
|
|
66
70
|
tslib_1.__exportStar(require("./DeleteProvisioningTemplateCommand"), exports);
|
|
@@ -124,6 +128,9 @@ tslib_1.__exportStar(require("./GetIndexingConfigurationCommand"), exports);
|
|
|
124
128
|
tslib_1.__exportStar(require("./GetJobDocumentCommand"), exports);
|
|
125
129
|
tslib_1.__exportStar(require("./GetLoggingOptionsCommand"), exports);
|
|
126
130
|
tslib_1.__exportStar(require("./GetOTAUpdateCommand"), exports);
|
|
131
|
+
tslib_1.__exportStar(require("./GetPackageCommand"), exports);
|
|
132
|
+
tslib_1.__exportStar(require("./GetPackageConfigurationCommand"), exports);
|
|
133
|
+
tslib_1.__exportStar(require("./GetPackageVersionCommand"), exports);
|
|
127
134
|
tslib_1.__exportStar(require("./GetPercentilesCommand"), exports);
|
|
128
135
|
tslib_1.__exportStar(require("./GetPolicyCommand"), exports);
|
|
129
136
|
tslib_1.__exportStar(require("./GetPolicyVersionCommand"), exports);
|
|
@@ -160,6 +167,8 @@ tslib_1.__exportStar(require("./ListMetricValuesCommand"), exports);
|
|
|
160
167
|
tslib_1.__exportStar(require("./ListMitigationActionsCommand"), exports);
|
|
161
168
|
tslib_1.__exportStar(require("./ListOTAUpdatesCommand"), exports);
|
|
162
169
|
tslib_1.__exportStar(require("./ListOutgoingCertificatesCommand"), exports);
|
|
170
|
+
tslib_1.__exportStar(require("./ListPackageVersionsCommand"), exports);
|
|
171
|
+
tslib_1.__exportStar(require("./ListPackagesCommand"), exports);
|
|
163
172
|
tslib_1.__exportStar(require("./ListPoliciesCommand"), exports);
|
|
164
173
|
tslib_1.__exportStar(require("./ListPolicyPrincipalsCommand"), exports);
|
|
165
174
|
tslib_1.__exportStar(require("./ListPolicyVersionsCommand"), exports);
|
|
@@ -229,6 +238,9 @@ tslib_1.__exportStar(require("./UpdateFleetMetricCommand"), exports);
|
|
|
229
238
|
tslib_1.__exportStar(require("./UpdateIndexingConfigurationCommand"), exports);
|
|
230
239
|
tslib_1.__exportStar(require("./UpdateJobCommand"), exports);
|
|
231
240
|
tslib_1.__exportStar(require("./UpdateMitigationActionCommand"), exports);
|
|
241
|
+
tslib_1.__exportStar(require("./UpdatePackageCommand"), exports);
|
|
242
|
+
tslib_1.__exportStar(require("./UpdatePackageConfigurationCommand"), exports);
|
|
243
|
+
tslib_1.__exportStar(require("./UpdatePackageVersionCommand"), exports);
|
|
232
244
|
tslib_1.__exportStar(require("./UpdateProvisioningTemplateCommand"), exports);
|
|
233
245
|
tslib_1.__exportStar(require("./UpdateRoleAliasCommand"), exports);
|
|
234
246
|
tslib_1.__exportStar(require("./UpdateScheduledAuditCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConflictException = exports.TargetSelection = exports.JobEndBehavior = exports.RetryableFailureType = exports.InvalidAggregationException = exports.IndexNotReadyException = exports.FleetMetricUnit = exports.InvalidQueryException = exports.ServiceType = exports.CertificateValidationException = exports.DimensionType = exports.CustomMetricType = exports.ResourceAlreadyExistsException = exports.InternalException = exports.ConflictingResourceUpdateException = exports.InvalidStateTransitionException = exports.AutoRegistrationStatus = exports.AuthorizerStatus = exports.AuthDecision = exports.AuditTaskType = exports.AuditTaskStatus = exports.AuditNotificationType = exports.AuditMitigationActionsTaskStatus = exports.AuditMitigationActionsExecutionStatus = exports.AuditFrequency = exports.AuditFindingSeverity = exports.ResourceType = exports.AuditCheckRunStatus = exports.VersionConflictException = exports.LimitExceededException = exports.AlertTargetType = exports.AggregationTypeName = exports.VerificationState = exports.DimensionValueOperator = exports.ConfidenceLevel = exports.ComparisonOperator = exports.ActionType = exports.MessageFormat = exports.CannedAccessControlList = exports.AssetPropertyVariant = exports.DynamoKeyType = exports.UnauthorizedException = exports.TransferAlreadyCompletedException = exports.ThrottlingException = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.InvalidRequestException = exports.InternalFailureException = exports.JobExecutionFailureType = exports.AbortAction = void 0;
|
|
4
|
-
exports.CreateProvisioningClaimResponseFilterSensitiveLog = exports.CreateKeysAndCertificateResponseFilterSensitiveLog = exports.KeyPairFilterSensitiveLog = exports.CertificateStateException = exports.DeleteConflictException = exports.TopicRuleDestinationStatus = exports.SqlParseException = exports.DayOfWeek = exports.TemplateType = exports.VersionsLimitExceededException = exports.MalformedPolicyException = exports.OTAUpdateStatus = exports.Protocol = exports.AwsJobAbortCriteriaFailureType = exports.AwsJobAbortCriteriaAbortAction = exports.DeviceCertificateUpdateAction = exports.CACertificateUpdateAction = exports.PolicyTemplateName = exports.LogLevel = void 0;
|
|
4
|
+
exports.CreateProvisioningClaimResponseFilterSensitiveLog = exports.CreatePackageVersionResponseFilterSensitiveLog = exports.CreatePackageVersionRequestFilterSensitiveLog = exports.CreatePackageResponseFilterSensitiveLog = exports.CreatePackageRequestFilterSensitiveLog = exports.CreateKeysAndCertificateResponseFilterSensitiveLog = exports.KeyPairFilterSensitiveLog = exports.CertificateStateException = exports.DeleteConflictException = exports.TopicRuleDestinationStatus = exports.SqlParseException = exports.DayOfWeek = exports.TemplateType = exports.VersionsLimitExceededException = exports.MalformedPolicyException = exports.PackageVersionStatus = exports.ValidationException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.OTAUpdateStatus = exports.Protocol = exports.AwsJobAbortCriteriaFailureType = exports.AwsJobAbortCriteriaAbortAction = exports.DeviceCertificateUpdateAction = exports.CACertificateUpdateAction = exports.PolicyTemplateName = exports.LogLevel = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const IoTServiceException_1 = require("./IoTServiceException");
|
|
7
7
|
exports.AbortAction = {
|
|
@@ -447,6 +447,7 @@ class ConflictException extends IoTServiceException_1.IoTServiceException {
|
|
|
447
447
|
this.name = "ConflictException";
|
|
448
448
|
this.$fault = "client";
|
|
449
449
|
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
450
|
+
this.resourceId = opts.resourceId;
|
|
450
451
|
}
|
|
451
452
|
}
|
|
452
453
|
exports.ConflictException = ConflictException;
|
|
@@ -487,6 +488,50 @@ exports.OTAUpdateStatus = {
|
|
|
487
488
|
DELETE_FAILED: "DELETE_FAILED",
|
|
488
489
|
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
489
490
|
};
|
|
491
|
+
class InternalServerException extends IoTServiceException_1.IoTServiceException {
|
|
492
|
+
constructor(opts) {
|
|
493
|
+
super({
|
|
494
|
+
name: "InternalServerException",
|
|
495
|
+
$fault: "server",
|
|
496
|
+
...opts,
|
|
497
|
+
});
|
|
498
|
+
this.name = "InternalServerException";
|
|
499
|
+
this.$fault = "server";
|
|
500
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
exports.InternalServerException = InternalServerException;
|
|
504
|
+
class ServiceQuotaExceededException extends IoTServiceException_1.IoTServiceException {
|
|
505
|
+
constructor(opts) {
|
|
506
|
+
super({
|
|
507
|
+
name: "ServiceQuotaExceededException",
|
|
508
|
+
$fault: "client",
|
|
509
|
+
...opts,
|
|
510
|
+
});
|
|
511
|
+
this.name = "ServiceQuotaExceededException";
|
|
512
|
+
this.$fault = "client";
|
|
513
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
517
|
+
class ValidationException extends IoTServiceException_1.IoTServiceException {
|
|
518
|
+
constructor(opts) {
|
|
519
|
+
super({
|
|
520
|
+
name: "ValidationException",
|
|
521
|
+
$fault: "client",
|
|
522
|
+
...opts,
|
|
523
|
+
});
|
|
524
|
+
this.name = "ValidationException";
|
|
525
|
+
this.$fault = "client";
|
|
526
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
exports.ValidationException = ValidationException;
|
|
530
|
+
exports.PackageVersionStatus = {
|
|
531
|
+
DEPRECATED: "DEPRECATED",
|
|
532
|
+
DRAFT: "DRAFT",
|
|
533
|
+
PUBLISHED: "PUBLISHED",
|
|
534
|
+
};
|
|
490
535
|
class MalformedPolicyException extends IoTServiceException_1.IoTServiceException {
|
|
491
536
|
constructor(opts) {
|
|
492
537
|
super({
|
|
@@ -582,6 +627,28 @@ const CreateKeysAndCertificateResponseFilterSensitiveLog = (obj) => ({
|
|
|
582
627
|
...(obj.keyPair && { keyPair: (0, exports.KeyPairFilterSensitiveLog)(obj.keyPair) }),
|
|
583
628
|
});
|
|
584
629
|
exports.CreateKeysAndCertificateResponseFilterSensitiveLog = CreateKeysAndCertificateResponseFilterSensitiveLog;
|
|
630
|
+
const CreatePackageRequestFilterSensitiveLog = (obj) => ({
|
|
631
|
+
...obj,
|
|
632
|
+
...(obj.description && { description: smithy_client_1.SENSITIVE_STRING }),
|
|
633
|
+
});
|
|
634
|
+
exports.CreatePackageRequestFilterSensitiveLog = CreatePackageRequestFilterSensitiveLog;
|
|
635
|
+
const CreatePackageResponseFilterSensitiveLog = (obj) => ({
|
|
636
|
+
...obj,
|
|
637
|
+
...(obj.description && { description: smithy_client_1.SENSITIVE_STRING }),
|
|
638
|
+
});
|
|
639
|
+
exports.CreatePackageResponseFilterSensitiveLog = CreatePackageResponseFilterSensitiveLog;
|
|
640
|
+
const CreatePackageVersionRequestFilterSensitiveLog = (obj) => ({
|
|
641
|
+
...obj,
|
|
642
|
+
...(obj.description && { description: smithy_client_1.SENSITIVE_STRING }),
|
|
643
|
+
...(obj.attributes && { attributes: smithy_client_1.SENSITIVE_STRING }),
|
|
644
|
+
});
|
|
645
|
+
exports.CreatePackageVersionRequestFilterSensitiveLog = CreatePackageVersionRequestFilterSensitiveLog;
|
|
646
|
+
const CreatePackageVersionResponseFilterSensitiveLog = (obj) => ({
|
|
647
|
+
...obj,
|
|
648
|
+
...(obj.description && { description: smithy_client_1.SENSITIVE_STRING }),
|
|
649
|
+
...(obj.attributes && { attributes: smithy_client_1.SENSITIVE_STRING }),
|
|
650
|
+
});
|
|
651
|
+
exports.CreatePackageVersionResponseFilterSensitiveLog = CreatePackageVersionResponseFilterSensitiveLog;
|
|
585
652
|
const CreateProvisioningClaimResponseFilterSensitiveLog = (obj) => ({
|
|
586
653
|
...obj,
|
|
587
654
|
...(obj.keyPair && { keyPair: (0, exports.KeyPairFilterSensitiveLog)(obj.keyPair) }),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DetectMitigationActionExecutionStatus = exports.BehaviorCriteriaType = exports.NotConfiguredException = exports.ThingIndexingMode = exports.ThingConnectivityIndexingMode = exports.NamedShadowIndexingMode = exports.DeviceDefenderIndexingMode = exports.ThingGroupIndexingMode = exports.FieldType = exports.ModelStatus = exports.Status = exports.DynamicGroupStatus = exports.MitigationActionType = exports.
|
|
3
|
+
exports.GetPackageVersionResponseFilterSensitiveLog = exports.GetPackageResponseFilterSensitiveLog = exports.DetectMitigationActionExecutionStatus = exports.BehaviorCriteriaType = exports.NotConfiguredException = exports.ThingIndexingMode = exports.ThingConnectivityIndexingMode = exports.NamedShadowIndexingMode = exports.DeviceDefenderIndexingMode = exports.ThingGroupIndexingMode = exports.FieldType = exports.ModelStatus = exports.Status = exports.DynamicGroupStatus = exports.MitigationActionType = exports.JobExecutionStatus = exports.JobStatus = exports.IndexStatus = exports.EventType = exports.ServerCertificateStatus = exports.DomainType = exports.DomainConfigurationStatus = exports.DetectMitigationActionsTaskStatus = exports.CertificateStatus = exports.CACertificateStatus = exports.CertificateMode = exports.LogTargetType = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const IoTServiceException_1 = require("./IoTServiceException");
|
|
5
6
|
exports.LogTargetType = {
|
|
6
7
|
CLIENT_ID: "CLIENT_ID",
|
|
@@ -79,19 +80,6 @@ exports.JobExecutionStatus = {
|
|
|
79
80
|
SUCCEEDED: "SUCCEEDED",
|
|
80
81
|
TIMED_OUT: "TIMED_OUT",
|
|
81
82
|
};
|
|
82
|
-
class InternalServerException extends IoTServiceException_1.IoTServiceException {
|
|
83
|
-
constructor(opts) {
|
|
84
|
-
super({
|
|
85
|
-
name: "InternalServerException",
|
|
86
|
-
$fault: "server",
|
|
87
|
-
...opts,
|
|
88
|
-
});
|
|
89
|
-
this.name = "InternalServerException";
|
|
90
|
-
this.$fault = "server";
|
|
91
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
exports.InternalServerException = InternalServerException;
|
|
95
83
|
exports.MitigationActionType = {
|
|
96
84
|
ADD_THINGS_TO_THING_GROUP: "ADD_THINGS_TO_THING_GROUP",
|
|
97
85
|
ENABLE_IOT_LOGGING: "ENABLE_IOT_LOGGING",
|
|
@@ -167,3 +155,14 @@ exports.DetectMitigationActionExecutionStatus = {
|
|
|
167
155
|
SKIPPED: "SKIPPED",
|
|
168
156
|
SUCCESSFUL: "SUCCESSFUL",
|
|
169
157
|
};
|
|
158
|
+
const GetPackageResponseFilterSensitiveLog = (obj) => ({
|
|
159
|
+
...obj,
|
|
160
|
+
...(obj.description && { description: smithy_client_1.SENSITIVE_STRING }),
|
|
161
|
+
});
|
|
162
|
+
exports.GetPackageResponseFilterSensitiveLog = GetPackageResponseFilterSensitiveLog;
|
|
163
|
+
const GetPackageVersionResponseFilterSensitiveLog = (obj) => ({
|
|
164
|
+
...obj,
|
|
165
|
+
...(obj.description && { description: smithy_client_1.SENSITIVE_STRING }),
|
|
166
|
+
...(obj.attributes && { attributes: smithy_client_1.SENSITIVE_STRING }),
|
|
167
|
+
});
|
|
168
|
+
exports.GetPackageVersionResponseFilterSensitiveLog = GetPackageVersionResponseFilterSensitiveLog;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransferConflictException = exports.InvalidResponseException = exports.TaskAlreadyExistsException = exports.ResourceRegistrationFailureException = exports.CertificateConflictException = exports.RegistrationCodeValidationException = exports.ViolationEventType = exports.ReportType = void 0;
|
|
3
|
+
exports.UpdatePackageVersionRequestFilterSensitiveLog = exports.UpdatePackageRequestFilterSensitiveLog = exports.PackageVersionAction = exports.TransferConflictException = exports.InvalidResponseException = exports.TaskAlreadyExistsException = exports.ResourceRegistrationFailureException = exports.CertificateConflictException = exports.RegistrationCodeValidationException = exports.ViolationEventType = exports.ReportType = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const IoTServiceException_1 = require("./IoTServiceException");
|
|
5
6
|
exports.ReportType = {
|
|
6
7
|
ERRORS: "ERRORS",
|
|
@@ -89,3 +90,18 @@ class TransferConflictException extends IoTServiceException_1.IoTServiceExceptio
|
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
exports.TransferConflictException = TransferConflictException;
|
|
93
|
+
exports.PackageVersionAction = {
|
|
94
|
+
DEPRECATE: "DEPRECATE",
|
|
95
|
+
PUBLISH: "PUBLISH",
|
|
96
|
+
};
|
|
97
|
+
const UpdatePackageRequestFilterSensitiveLog = (obj) => ({
|
|
98
|
+
...obj,
|
|
99
|
+
...(obj.description && { description: smithy_client_1.SENSITIVE_STRING }),
|
|
100
|
+
});
|
|
101
|
+
exports.UpdatePackageRequestFilterSensitiveLog = UpdatePackageRequestFilterSensitiveLog;
|
|
102
|
+
const UpdatePackageVersionRequestFilterSensitiveLog = (obj) => ({
|
|
103
|
+
...obj,
|
|
104
|
+
...(obj.description && { description: smithy_client_1.SENSITIVE_STRING }),
|
|
105
|
+
...(obj.attributes && { attributes: smithy_client_1.SENSITIVE_STRING }),
|
|
106
|
+
});
|
|
107
|
+
exports.UpdatePackageVersionRequestFilterSensitiveLog = UpdatePackageVersionRequestFilterSensitiveLog;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListPackageVersions = void 0;
|
|
4
|
+
const ListPackageVersionsCommand_1 = require("../commands/ListPackageVersionsCommand");
|
|
5
|
+
const IoTClient_1 = require("../IoTClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListPackageVersionsCommand_1.ListPackageVersionsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListPackageVersions(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.paginateListPackageVersions = paginateListPackageVersions;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListPackages = void 0;
|
|
4
|
+
const ListPackagesCommand_1 = require("../commands/ListPackagesCommand");
|
|
5
|
+
const IoTClient_1 = require("../IoTClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListPackagesCommand_1.ListPackagesCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListPackages(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.paginateListPackages = paginateListPackages;
|
|
@@ -31,6 +31,8 @@ tslib_1.__exportStar(require("./ListMetricValuesPaginator"), exports);
|
|
|
31
31
|
tslib_1.__exportStar(require("./ListMitigationActionsPaginator"), exports);
|
|
32
32
|
tslib_1.__exportStar(require("./ListOTAUpdatesPaginator"), exports);
|
|
33
33
|
tslib_1.__exportStar(require("./ListOutgoingCertificatesPaginator"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./ListPackageVersionsPaginator"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./ListPackagesPaginator"), exports);
|
|
34
36
|
tslib_1.__exportStar(require("./ListPoliciesPaginator"), exports);
|
|
35
37
|
tslib_1.__exportStar(require("./ListPolicyPrincipalsPaginator"), exports);
|
|
36
38
|
tslib_1.__exportStar(require("./ListPrincipalPoliciesPaginator"), exports);
|