@aws-sdk/client-iotfleetwise 3.421.0 → 3.423.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 +16 -0
- package/dist-cjs/IoTFleetWise.js +4 -0
- package/dist-cjs/commands/GetEncryptionConfigurationCommand.js +51 -0
- package/dist-cjs/commands/PutEncryptionConfigurationCommand.js +51 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +10 -1
- package/dist-cjs/protocols/Aws_json1_0.js +120 -2
- package/dist-es/IoTFleetWise.js +4 -0
- package/dist-es/commands/GetEncryptionConfigurationCommand.js +47 -0
- package/dist-es/commands/PutEncryptionConfigurationCommand.js +47 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +9 -0
- package/dist-es/protocols/Aws_json1_0.js +113 -0
- package/dist-types/IoTFleetWise.d.ts +14 -0
- package/dist-types/IoTFleetWiseClient.d.ts +4 -2
- package/dist-types/commands/GetEncryptionConfigurationCommand.d.ts +91 -0
- package/dist-types/commands/PutEncryptionConfigurationCommand.d.ts +95 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +101 -1
- package/dist-types/protocols/Aws_json1_0.d.ts +18 -0
- package/dist-types/ts3.4/IoTFleetWise.d.ts +34 -0
- package/dist-types/ts3.4/IoTFleetWiseClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/GetEncryptionConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/PutEncryptionConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +31 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +24 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -352,6 +352,14 @@ GetDecoderManifest
|
|
|
352
352
|
|
|
353
353
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iotfleetwise/classes/getdecodermanifestcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iotfleetwise/interfaces/getdecodermanifestcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iotfleetwise/interfaces/getdecodermanifestcommandoutput.html)
|
|
354
354
|
|
|
355
|
+
</details>
|
|
356
|
+
<details>
|
|
357
|
+
<summary>
|
|
358
|
+
GetEncryptionConfiguration
|
|
359
|
+
</summary>
|
|
360
|
+
|
|
361
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iotfleetwise/classes/getencryptionconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iotfleetwise/interfaces/getencryptionconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iotfleetwise/interfaces/getencryptionconfigurationcommandoutput.html)
|
|
362
|
+
|
|
355
363
|
</details>
|
|
356
364
|
<details>
|
|
357
365
|
<summary>
|
|
@@ -528,6 +536,14 @@ ListVehiclesInFleet
|
|
|
528
536
|
|
|
529
537
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iotfleetwise/classes/listvehiclesinfleetcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iotfleetwise/interfaces/listvehiclesinfleetcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iotfleetwise/interfaces/listvehiclesinfleetcommandoutput.html)
|
|
530
538
|
|
|
539
|
+
</details>
|
|
540
|
+
<details>
|
|
541
|
+
<summary>
|
|
542
|
+
PutEncryptionConfiguration
|
|
543
|
+
</summary>
|
|
544
|
+
|
|
545
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iotfleetwise/classes/putencryptionconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iotfleetwise/interfaces/putencryptionconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-iotfleetwise/interfaces/putencryptionconfigurationcommandoutput.html)
|
|
546
|
+
|
|
531
547
|
</details>
|
|
532
548
|
<details>
|
|
533
549
|
<summary>
|
package/dist-cjs/IoTFleetWise.js
CHANGED
|
@@ -20,6 +20,7 @@ const DeleteVehicleCommand_1 = require("./commands/DeleteVehicleCommand");
|
|
|
20
20
|
const DisassociateVehicleFleetCommand_1 = require("./commands/DisassociateVehicleFleetCommand");
|
|
21
21
|
const GetCampaignCommand_1 = require("./commands/GetCampaignCommand");
|
|
22
22
|
const GetDecoderManifestCommand_1 = require("./commands/GetDecoderManifestCommand");
|
|
23
|
+
const GetEncryptionConfigurationCommand_1 = require("./commands/GetEncryptionConfigurationCommand");
|
|
23
24
|
const GetFleetCommand_1 = require("./commands/GetFleetCommand");
|
|
24
25
|
const GetLoggingOptionsCommand_1 = require("./commands/GetLoggingOptionsCommand");
|
|
25
26
|
const GetModelManifestCommand_1 = require("./commands/GetModelManifestCommand");
|
|
@@ -42,6 +43,7 @@ const ListSignalCatalogsCommand_1 = require("./commands/ListSignalCatalogsComman
|
|
|
42
43
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
43
44
|
const ListVehiclesCommand_1 = require("./commands/ListVehiclesCommand");
|
|
44
45
|
const ListVehiclesInFleetCommand_1 = require("./commands/ListVehiclesInFleetCommand");
|
|
46
|
+
const PutEncryptionConfigurationCommand_1 = require("./commands/PutEncryptionConfigurationCommand");
|
|
45
47
|
const PutLoggingOptionsCommand_1 = require("./commands/PutLoggingOptionsCommand");
|
|
46
48
|
const RegisterAccountCommand_1 = require("./commands/RegisterAccountCommand");
|
|
47
49
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
@@ -72,6 +74,7 @@ const commands = {
|
|
|
72
74
|
DisassociateVehicleFleetCommand: DisassociateVehicleFleetCommand_1.DisassociateVehicleFleetCommand,
|
|
73
75
|
GetCampaignCommand: GetCampaignCommand_1.GetCampaignCommand,
|
|
74
76
|
GetDecoderManifestCommand: GetDecoderManifestCommand_1.GetDecoderManifestCommand,
|
|
77
|
+
GetEncryptionConfigurationCommand: GetEncryptionConfigurationCommand_1.GetEncryptionConfigurationCommand,
|
|
75
78
|
GetFleetCommand: GetFleetCommand_1.GetFleetCommand,
|
|
76
79
|
GetLoggingOptionsCommand: GetLoggingOptionsCommand_1.GetLoggingOptionsCommand,
|
|
77
80
|
GetModelManifestCommand: GetModelManifestCommand_1.GetModelManifestCommand,
|
|
@@ -94,6 +97,7 @@ const commands = {
|
|
|
94
97
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
95
98
|
ListVehiclesCommand: ListVehiclesCommand_1.ListVehiclesCommand,
|
|
96
99
|
ListVehiclesInFleetCommand: ListVehiclesInFleetCommand_1.ListVehiclesInFleetCommand,
|
|
100
|
+
PutEncryptionConfigurationCommand: PutEncryptionConfigurationCommand_1.PutEncryptionConfigurationCommand,
|
|
97
101
|
PutLoggingOptionsCommand: PutLoggingOptionsCommand_1.PutLoggingOptionsCommand,
|
|
98
102
|
RegisterAccountCommand: RegisterAccountCommand_1.RegisterAccountCommand,
|
|
99
103
|
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetEncryptionConfigurationCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
10
|
+
class GetEncryptionConfigurationCommand 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, GetEncryptionConfigurationCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "IoTFleetWiseClient";
|
|
29
|
+
const commandName = "GetEncryptionConfigurationCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "IoTAutobahnControlPlane",
|
|
38
|
+
operation: "GetEncryptionConfiguration",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_json1_0_1.se_GetEncryptionConfigurationCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_json1_0_1.de_GetEncryptionConfigurationCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.GetEncryptionConfigurationCommand = GetEncryptionConfigurationCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutEncryptionConfigurationCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
10
|
+
class PutEncryptionConfigurationCommand 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, PutEncryptionConfigurationCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "IoTFleetWiseClient";
|
|
29
|
+
const commandName = "PutEncryptionConfigurationCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "IoTAutobahnControlPlane",
|
|
38
|
+
operation: "PutEncryptionConfiguration",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_json1_0_1.se_PutEncryptionConfigurationCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_json1_0_1.de_PutEncryptionConfigurationCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.PutEncryptionConfigurationCommand = PutEncryptionConfigurationCommand;
|
|
@@ -19,6 +19,7 @@ tslib_1.__exportStar(require("./DeleteVehicleCommand"), exports);
|
|
|
19
19
|
tslib_1.__exportStar(require("./DisassociateVehicleFleetCommand"), exports);
|
|
20
20
|
tslib_1.__exportStar(require("./GetCampaignCommand"), exports);
|
|
21
21
|
tslib_1.__exportStar(require("./GetDecoderManifestCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./GetEncryptionConfigurationCommand"), exports);
|
|
22
23
|
tslib_1.__exportStar(require("./GetFleetCommand"), exports);
|
|
23
24
|
tslib_1.__exportStar(require("./GetLoggingOptionsCommand"), exports);
|
|
24
25
|
tslib_1.__exportStar(require("./GetModelManifestCommand"), exports);
|
|
@@ -41,6 +42,7 @@ tslib_1.__exportStar(require("./ListSignalCatalogsCommand"), exports);
|
|
|
41
42
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
42
43
|
tslib_1.__exportStar(require("./ListVehiclesCommand"), exports);
|
|
43
44
|
tslib_1.__exportStar(require("./ListVehiclesInFleetCommand"), exports);
|
|
45
|
+
tslib_1.__exportStar(require("./PutEncryptionConfigurationCommand"), exports);
|
|
44
46
|
tslib_1.__exportStar(require("./PutLoggingOptionsCommand"), exports);
|
|
45
47
|
tslib_1.__exportStar(require("./RegisterAccountCommand"), exports);
|
|
46
48
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VehicleState = exports.RegistrationStatus = exports.FormattedVss = exports.NetworkFileDefinition = exports.ManifestStatus = exports.InvalidNodeException = exports.Node = exports.InvalidSignalsException = exports.DecoderManifestValidationException = exports.SignalDecoderFailureReason = exports.NetworkInterfaceFailureReason = exports.SignalDecoderType = exports.NetworkInterfaceType = exports.LogType = exports.UpdateCampaignAction = exports.CampaignStatus = exports.SpoolingMode = exports.DiagnosticsMode = exports.DataDestinationConfig = exports.StorageCompressionFormat = exports.DataFormat = exports.Compression = exports.CollectionScheme = exports.TriggerMode = exports.ConflictException = exports.UpdateMode = exports.LimitExceededException = exports.VehicleAssociationBehavior = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.NodeDataType = exports.AccessDeniedException = void 0;
|
|
3
|
+
exports.VehicleState = exports.RegistrationStatus = exports.FormattedVss = exports.EncryptionType = exports.EncryptionStatus = exports.NetworkFileDefinition = exports.ManifestStatus = exports.InvalidNodeException = exports.Node = exports.InvalidSignalsException = exports.DecoderManifestValidationException = exports.SignalDecoderFailureReason = exports.NetworkInterfaceFailureReason = exports.SignalDecoderType = exports.NetworkInterfaceType = exports.LogType = exports.UpdateCampaignAction = exports.CampaignStatus = exports.SpoolingMode = exports.DiagnosticsMode = exports.DataDestinationConfig = exports.StorageCompressionFormat = exports.DataFormat = exports.Compression = exports.CollectionScheme = exports.TriggerMode = exports.ConflictException = exports.UpdateMode = exports.LimitExceededException = exports.VehicleAssociationBehavior = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.NodeDataType = exports.AccessDeniedException = void 0;
|
|
4
4
|
const IoTFleetWiseServiceException_1 = require("./IoTFleetWiseServiceException");
|
|
5
5
|
class AccessDeniedException extends IoTFleetWiseServiceException_1.IoTFleetWiseServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -305,6 +305,15 @@ var NetworkFileDefinition;
|
|
|
305
305
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
306
306
|
};
|
|
307
307
|
})(NetworkFileDefinition = exports.NetworkFileDefinition || (exports.NetworkFileDefinition = {}));
|
|
308
|
+
exports.EncryptionStatus = {
|
|
309
|
+
FAILURE: "FAILURE",
|
|
310
|
+
PENDING: "PENDING",
|
|
311
|
+
SUCCESS: "SUCCESS",
|
|
312
|
+
};
|
|
313
|
+
exports.EncryptionType = {
|
|
314
|
+
FLEETWISE_DEFAULT_ENCRYPTION: "FLEETWISE_DEFAULT_ENCRYPTION",
|
|
315
|
+
KMS_BASED_ENCRYPTION: "KMS_BASED_ENCRYPTION",
|
|
316
|
+
};
|
|
308
317
|
var FormattedVss;
|
|
309
318
|
(function (FormattedVss) {
|
|
310
319
|
FormattedVss.visit = (value, visitor) => {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.se_UpdateModelManifestCommand = exports.se_UpdateFleetCommand = exports.se_UpdateDecoderManifestCommand = exports.se_UpdateCampaignCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterAccountCommand = exports.se_PutLoggingOptionsCommand = exports.se_PutEncryptionConfigurationCommand = exports.se_ListVehiclesInFleetCommand = exports.se_ListVehiclesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSignalCatalogsCommand = exports.se_ListSignalCatalogNodesCommand = exports.se_ListModelManifestsCommand = exports.se_ListModelManifestNodesCommand = exports.se_ListFleetsForVehicleCommand = exports.se_ListFleetsCommand = exports.se_ListDecoderManifestSignalsCommand = exports.se_ListDecoderManifestsCommand = exports.se_ListDecoderManifestNetworkInterfacesCommand = exports.se_ListCampaignsCommand = exports.se_ImportSignalCatalogCommand = exports.se_ImportDecoderManifestCommand = exports.se_GetVehicleStatusCommand = exports.se_GetVehicleCommand = exports.se_GetSignalCatalogCommand = exports.se_GetRegisterAccountStatusCommand = exports.se_GetModelManifestCommand = exports.se_GetLoggingOptionsCommand = exports.se_GetFleetCommand = exports.se_GetEncryptionConfigurationCommand = exports.se_GetDecoderManifestCommand = exports.se_GetCampaignCommand = exports.se_DisassociateVehicleFleetCommand = exports.se_DeleteVehicleCommand = exports.se_DeleteSignalCatalogCommand = exports.se_DeleteModelManifestCommand = exports.se_DeleteFleetCommand = exports.se_DeleteDecoderManifestCommand = exports.se_DeleteCampaignCommand = exports.se_CreateVehicleCommand = exports.se_CreateSignalCatalogCommand = exports.se_CreateModelManifestCommand = exports.se_CreateFleetCommand = exports.se_CreateDecoderManifestCommand = exports.se_CreateCampaignCommand = exports.se_BatchUpdateVehicleCommand = exports.se_BatchCreateVehicleCommand = exports.se_AssociateVehicleFleetCommand = void 0;
|
|
4
|
+
exports.de_UpdateDecoderManifestCommand = exports.de_UpdateCampaignCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterAccountCommand = exports.de_PutLoggingOptionsCommand = exports.de_PutEncryptionConfigurationCommand = exports.de_ListVehiclesInFleetCommand = exports.de_ListVehiclesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSignalCatalogsCommand = exports.de_ListSignalCatalogNodesCommand = exports.de_ListModelManifestsCommand = exports.de_ListModelManifestNodesCommand = exports.de_ListFleetsForVehicleCommand = exports.de_ListFleetsCommand = exports.de_ListDecoderManifestSignalsCommand = exports.de_ListDecoderManifestsCommand = exports.de_ListDecoderManifestNetworkInterfacesCommand = exports.de_ListCampaignsCommand = exports.de_ImportSignalCatalogCommand = exports.de_ImportDecoderManifestCommand = exports.de_GetVehicleStatusCommand = exports.de_GetVehicleCommand = exports.de_GetSignalCatalogCommand = exports.de_GetRegisterAccountStatusCommand = exports.de_GetModelManifestCommand = exports.de_GetLoggingOptionsCommand = exports.de_GetFleetCommand = exports.de_GetEncryptionConfigurationCommand = exports.de_GetDecoderManifestCommand = exports.de_GetCampaignCommand = exports.de_DisassociateVehicleFleetCommand = exports.de_DeleteVehicleCommand = exports.de_DeleteSignalCatalogCommand = exports.de_DeleteModelManifestCommand = exports.de_DeleteFleetCommand = exports.de_DeleteDecoderManifestCommand = exports.de_DeleteCampaignCommand = exports.de_CreateVehicleCommand = exports.de_CreateSignalCatalogCommand = exports.de_CreateModelManifestCommand = exports.de_CreateFleetCommand = exports.de_CreateDecoderManifestCommand = exports.de_CreateCampaignCommand = exports.de_BatchUpdateVehicleCommand = exports.de_BatchCreateVehicleCommand = exports.de_AssociateVehicleFleetCommand = exports.se_UpdateVehicleCommand = exports.se_UpdateSignalCatalogCommand = void 0;
|
|
5
|
+
exports.de_UpdateVehicleCommand = exports.de_UpdateSignalCatalogCommand = exports.de_UpdateModelManifestCommand = exports.de_UpdateFleetCommand = void 0;
|
|
5
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
8
|
const IoTFleetWiseServiceException_1 = require("../models/IoTFleetWiseServiceException");
|
|
@@ -132,6 +133,13 @@ const se_GetDecoderManifestCommand = async (input, context) => {
|
|
|
132
133
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
133
134
|
};
|
|
134
135
|
exports.se_GetDecoderManifestCommand = se_GetDecoderManifestCommand;
|
|
136
|
+
const se_GetEncryptionConfigurationCommand = async (input, context) => {
|
|
137
|
+
const headers = sharedHeaders("GetEncryptionConfiguration");
|
|
138
|
+
let body;
|
|
139
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
140
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
141
|
+
};
|
|
142
|
+
exports.se_GetEncryptionConfigurationCommand = se_GetEncryptionConfigurationCommand;
|
|
135
143
|
const se_GetFleetCommand = async (input, context) => {
|
|
136
144
|
const headers = sharedHeaders("GetFleet");
|
|
137
145
|
let body;
|
|
@@ -286,6 +294,13 @@ const se_ListVehiclesInFleetCommand = async (input, context) => {
|
|
|
286
294
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
295
|
};
|
|
288
296
|
exports.se_ListVehiclesInFleetCommand = se_ListVehiclesInFleetCommand;
|
|
297
|
+
const se_PutEncryptionConfigurationCommand = async (input, context) => {
|
|
298
|
+
const headers = sharedHeaders("PutEncryptionConfiguration");
|
|
299
|
+
let body;
|
|
300
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
301
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
302
|
+
};
|
|
303
|
+
exports.se_PutEncryptionConfigurationCommand = se_PutEncryptionConfigurationCommand;
|
|
289
304
|
const se_PutLoggingOptionsCommand = async (input, context) => {
|
|
290
305
|
const headers = sharedHeaders("PutLoggingOptions");
|
|
291
306
|
let body;
|
|
@@ -1202,6 +1217,51 @@ const de_GetDecoderManifestCommandError = async (output, context) => {
|
|
|
1202
1217
|
});
|
|
1203
1218
|
}
|
|
1204
1219
|
};
|
|
1220
|
+
const de_GetEncryptionConfigurationCommand = async (output, context) => {
|
|
1221
|
+
if (output.statusCode >= 300) {
|
|
1222
|
+
return de_GetEncryptionConfigurationCommandError(output, context);
|
|
1223
|
+
}
|
|
1224
|
+
const data = await parseBody(output.body, context);
|
|
1225
|
+
let contents = {};
|
|
1226
|
+
contents = de_GetEncryptionConfigurationResponse(data, context);
|
|
1227
|
+
const response = {
|
|
1228
|
+
$metadata: deserializeMetadata(output),
|
|
1229
|
+
...contents,
|
|
1230
|
+
};
|
|
1231
|
+
return response;
|
|
1232
|
+
};
|
|
1233
|
+
exports.de_GetEncryptionConfigurationCommand = de_GetEncryptionConfigurationCommand;
|
|
1234
|
+
const de_GetEncryptionConfigurationCommandError = async (output, context) => {
|
|
1235
|
+
const parsedOutput = {
|
|
1236
|
+
...output,
|
|
1237
|
+
body: await parseErrorBody(output.body, context),
|
|
1238
|
+
};
|
|
1239
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
|
+
switch (errorCode) {
|
|
1241
|
+
case "AccessDeniedException":
|
|
1242
|
+
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
1243
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1244
|
+
case "InternalServerException":
|
|
1245
|
+
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
1246
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1247
|
+
case "ResourceNotFoundException":
|
|
1248
|
+
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
1249
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1250
|
+
case "ThrottlingException":
|
|
1251
|
+
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
1252
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1253
|
+
case "ValidationException":
|
|
1254
|
+
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
1255
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1256
|
+
default:
|
|
1257
|
+
const parsedBody = parsedOutput.body;
|
|
1258
|
+
return throwDefaultError({
|
|
1259
|
+
output,
|
|
1260
|
+
parsedBody,
|
|
1261
|
+
errorCode,
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1264
|
+
};
|
|
1205
1265
|
const de_GetFleetCommand = async (output, context) => {
|
|
1206
1266
|
if (output.statusCode >= 300) {
|
|
1207
1267
|
return de_GetFleetCommandError(output, context);
|
|
@@ -2195,6 +2255,54 @@ const de_ListVehiclesInFleetCommandError = async (output, context) => {
|
|
|
2195
2255
|
});
|
|
2196
2256
|
}
|
|
2197
2257
|
};
|
|
2258
|
+
const de_PutEncryptionConfigurationCommand = async (output, context) => {
|
|
2259
|
+
if (output.statusCode >= 300) {
|
|
2260
|
+
return de_PutEncryptionConfigurationCommandError(output, context);
|
|
2261
|
+
}
|
|
2262
|
+
const data = await parseBody(output.body, context);
|
|
2263
|
+
let contents = {};
|
|
2264
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2265
|
+
const response = {
|
|
2266
|
+
$metadata: deserializeMetadata(output),
|
|
2267
|
+
...contents,
|
|
2268
|
+
};
|
|
2269
|
+
return response;
|
|
2270
|
+
};
|
|
2271
|
+
exports.de_PutEncryptionConfigurationCommand = de_PutEncryptionConfigurationCommand;
|
|
2272
|
+
const de_PutEncryptionConfigurationCommandError = async (output, context) => {
|
|
2273
|
+
const parsedOutput = {
|
|
2274
|
+
...output,
|
|
2275
|
+
body: await parseErrorBody(output.body, context),
|
|
2276
|
+
};
|
|
2277
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2278
|
+
switch (errorCode) {
|
|
2279
|
+
case "AccessDeniedException":
|
|
2280
|
+
case "com.amazonaws.iotfleetwise#AccessDeniedException":
|
|
2281
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2282
|
+
case "ConflictException":
|
|
2283
|
+
case "com.amazonaws.iotfleetwise#ConflictException":
|
|
2284
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2285
|
+
case "InternalServerException":
|
|
2286
|
+
case "com.amazonaws.iotfleetwise#InternalServerException":
|
|
2287
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2288
|
+
case "ResourceNotFoundException":
|
|
2289
|
+
case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
|
|
2290
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2291
|
+
case "ThrottlingException":
|
|
2292
|
+
case "com.amazonaws.iotfleetwise#ThrottlingException":
|
|
2293
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2294
|
+
case "ValidationException":
|
|
2295
|
+
case "com.amazonaws.iotfleetwise#ValidationException":
|
|
2296
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2297
|
+
default:
|
|
2298
|
+
const parsedBody = parsedOutput.body;
|
|
2299
|
+
return throwDefaultError({
|
|
2300
|
+
output,
|
|
2301
|
+
parsedBody,
|
|
2302
|
+
errorCode,
|
|
2303
|
+
});
|
|
2304
|
+
}
|
|
2305
|
+
};
|
|
2198
2306
|
const de_PutLoggingOptionsCommand = async (output, context) => {
|
|
2199
2307
|
if (output.statusCode >= 300) {
|
|
2200
2308
|
return de_PutLoggingOptionsCommandError(output, context);
|
|
@@ -3101,6 +3209,16 @@ const de_GetDecoderManifestResponse = (output, context) => {
|
|
|
3101
3209
|
status: smithy_client_1.expectString,
|
|
3102
3210
|
});
|
|
3103
3211
|
};
|
|
3212
|
+
const de_GetEncryptionConfigurationResponse = (output, context) => {
|
|
3213
|
+
return (0, smithy_client_1.take)(output, {
|
|
3214
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3215
|
+
encryptionStatus: smithy_client_1.expectString,
|
|
3216
|
+
encryptionType: smithy_client_1.expectString,
|
|
3217
|
+
errorMessage: smithy_client_1.expectString,
|
|
3218
|
+
kmsKeyId: smithy_client_1.expectString,
|
|
3219
|
+
lastModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3220
|
+
});
|
|
3221
|
+
};
|
|
3104
3222
|
const de_GetFleetResponse = (output, context) => {
|
|
3105
3223
|
return (0, smithy_client_1.take)(output, {
|
|
3106
3224
|
arn: smithy_client_1.expectString,
|
package/dist-es/IoTFleetWise.js
CHANGED
|
@@ -17,6 +17,7 @@ import { DeleteVehicleCommand, } from "./commands/DeleteVehicleCommand";
|
|
|
17
17
|
import { DisassociateVehicleFleetCommand, } from "./commands/DisassociateVehicleFleetCommand";
|
|
18
18
|
import { GetCampaignCommand } from "./commands/GetCampaignCommand";
|
|
19
19
|
import { GetDecoderManifestCommand, } from "./commands/GetDecoderManifestCommand";
|
|
20
|
+
import { GetEncryptionConfigurationCommand, } from "./commands/GetEncryptionConfigurationCommand";
|
|
20
21
|
import { GetFleetCommand } from "./commands/GetFleetCommand";
|
|
21
22
|
import { GetLoggingOptionsCommand, } from "./commands/GetLoggingOptionsCommand";
|
|
22
23
|
import { GetModelManifestCommand, } from "./commands/GetModelManifestCommand";
|
|
@@ -39,6 +40,7 @@ import { ListSignalCatalogsCommand, } from "./commands/ListSignalCatalogsCommand
|
|
|
39
40
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
40
41
|
import { ListVehiclesCommand, } from "./commands/ListVehiclesCommand";
|
|
41
42
|
import { ListVehiclesInFleetCommand, } from "./commands/ListVehiclesInFleetCommand";
|
|
43
|
+
import { PutEncryptionConfigurationCommand, } from "./commands/PutEncryptionConfigurationCommand";
|
|
42
44
|
import { PutLoggingOptionsCommand, } from "./commands/PutLoggingOptionsCommand";
|
|
43
45
|
import { RegisterAccountCommand, } from "./commands/RegisterAccountCommand";
|
|
44
46
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
@@ -69,6 +71,7 @@ const commands = {
|
|
|
69
71
|
DisassociateVehicleFleetCommand,
|
|
70
72
|
GetCampaignCommand,
|
|
71
73
|
GetDecoderManifestCommand,
|
|
74
|
+
GetEncryptionConfigurationCommand,
|
|
72
75
|
GetFleetCommand,
|
|
73
76
|
GetLoggingOptionsCommand,
|
|
74
77
|
GetModelManifestCommand,
|
|
@@ -91,6 +94,7 @@ const commands = {
|
|
|
91
94
|
ListTagsForResourceCommand,
|
|
92
95
|
ListVehiclesCommand,
|
|
93
96
|
ListVehiclesInFleetCommand,
|
|
97
|
+
PutEncryptionConfigurationCommand,
|
|
94
98
|
PutLoggingOptionsCommand,
|
|
95
99
|
RegisterAccountCommand,
|
|
96
100
|
TagResourceCommand,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_GetEncryptionConfigurationCommand, se_GetEncryptionConfigurationCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetEncryptionConfigurationCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetEncryptionConfigurationCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "IoTFleetWiseClient";
|
|
26
|
+
const commandName = "GetEncryptionConfigurationCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "IoTAutobahnControlPlane",
|
|
35
|
+
operation: "GetEncryptionConfiguration",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_GetEncryptionConfigurationCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_GetEncryptionConfigurationCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_PutEncryptionConfigurationCommand, se_PutEncryptionConfigurationCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class PutEncryptionConfigurationCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, PutEncryptionConfigurationCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "IoTFleetWiseClient";
|
|
26
|
+
const commandName = "PutEncryptionConfigurationCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "IoTAutobahnControlPlane",
|
|
35
|
+
operation: "PutEncryptionConfiguration",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_PutEncryptionConfigurationCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_PutEncryptionConfigurationCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -16,6 +16,7 @@ export * from "./DeleteVehicleCommand";
|
|
|
16
16
|
export * from "./DisassociateVehicleFleetCommand";
|
|
17
17
|
export * from "./GetCampaignCommand";
|
|
18
18
|
export * from "./GetDecoderManifestCommand";
|
|
19
|
+
export * from "./GetEncryptionConfigurationCommand";
|
|
19
20
|
export * from "./GetFleetCommand";
|
|
20
21
|
export * from "./GetLoggingOptionsCommand";
|
|
21
22
|
export * from "./GetModelManifestCommand";
|
|
@@ -38,6 +39,7 @@ export * from "./ListSignalCatalogsCommand";
|
|
|
38
39
|
export * from "./ListTagsForResourceCommand";
|
|
39
40
|
export * from "./ListVehiclesCommand";
|
|
40
41
|
export * from "./ListVehiclesInFleetCommand";
|
|
42
|
+
export * from "./PutEncryptionConfigurationCommand";
|
|
41
43
|
export * from "./PutLoggingOptionsCommand";
|
|
42
44
|
export * from "./RegisterAccountCommand";
|
|
43
45
|
export * from "./TagResourceCommand";
|
|
@@ -292,6 +292,15 @@ export var NetworkFileDefinition;
|
|
|
292
292
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
293
293
|
};
|
|
294
294
|
})(NetworkFileDefinition || (NetworkFileDefinition = {}));
|
|
295
|
+
export const EncryptionStatus = {
|
|
296
|
+
FAILURE: "FAILURE",
|
|
297
|
+
PENDING: "PENDING",
|
|
298
|
+
SUCCESS: "SUCCESS",
|
|
299
|
+
};
|
|
300
|
+
export const EncryptionType = {
|
|
301
|
+
FLEETWISE_DEFAULT_ENCRYPTION: "FLEETWISE_DEFAULT_ENCRYPTION",
|
|
302
|
+
KMS_BASED_ENCRYPTION: "KMS_BASED_ENCRYPTION",
|
|
303
|
+
};
|
|
295
304
|
export var FormattedVss;
|
|
296
305
|
(function (FormattedVss) {
|
|
297
306
|
FormattedVss.visit = (value, visitor) => {
|