@aws-sdk/client-iotfleetwise 3.418.0 → 3.422.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.
Files changed (28) hide show
  1. package/README.md +23 -7
  2. package/dist-cjs/IoTFleetWise.js +4 -0
  3. package/dist-cjs/commands/GetEncryptionConfigurationCommand.js +51 -0
  4. package/dist-cjs/commands/PutEncryptionConfigurationCommand.js +51 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +10 -1
  7. package/dist-cjs/protocols/Aws_json1_0.js +120 -2
  8. package/dist-es/IoTFleetWise.js +4 -0
  9. package/dist-es/commands/GetEncryptionConfigurationCommand.js +47 -0
  10. package/dist-es/commands/PutEncryptionConfigurationCommand.js +47 -0
  11. package/dist-es/commands/index.js +2 -0
  12. package/dist-es/models/models_0.js +9 -0
  13. package/dist-es/protocols/Aws_json1_0.js +113 -0
  14. package/dist-types/IoTFleetWise.d.ts +14 -0
  15. package/dist-types/IoTFleetWiseClient.d.ts +4 -2
  16. package/dist-types/commands/GetEncryptionConfigurationCommand.d.ts +91 -0
  17. package/dist-types/commands/PutEncryptionConfigurationCommand.d.ts +95 -0
  18. package/dist-types/commands/index.d.ts +2 -0
  19. package/dist-types/models/models_0.d.ts +101 -1
  20. package/dist-types/protocols/Aws_json1_0.d.ts +18 -0
  21. package/dist-types/ts3.4/IoTFleetWise.d.ts +34 -0
  22. package/dist-types/ts3.4/IoTFleetWiseClient.d.ts +12 -0
  23. package/dist-types/ts3.4/commands/GetEncryptionConfigurationCommand.d.ts +42 -0
  24. package/dist-types/ts3.4/commands/PutEncryptionConfigurationCommand.d.ts +42 -0
  25. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  26. package/dist-types/ts3.4/models/models_0.d.ts +31 -0
  27. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +24 -0
  28. package/package.json +3 -3
@@ -110,6 +110,12 @@ export const se_GetDecoderManifestCommand = async (input, context) => {
110
110
  body = JSON.stringify(_json(input));
111
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
112
  };
113
+ export const se_GetEncryptionConfigurationCommand = async (input, context) => {
114
+ const headers = sharedHeaders("GetEncryptionConfiguration");
115
+ let body;
116
+ body = JSON.stringify(_json(input));
117
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
+ };
113
119
  export const se_GetFleetCommand = async (input, context) => {
114
120
  const headers = sharedHeaders("GetFleet");
115
121
  let body;
@@ -242,6 +248,12 @@ export const se_ListVehiclesInFleetCommand = async (input, context) => {
242
248
  body = JSON.stringify(_json(input));
243
249
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
244
250
  };
251
+ export const se_PutEncryptionConfigurationCommand = async (input, context) => {
252
+ const headers = sharedHeaders("PutEncryptionConfiguration");
253
+ let body;
254
+ body = JSON.stringify(_json(input));
255
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
256
+ };
245
257
  export const se_PutLoggingOptionsCommand = async (input, context) => {
246
258
  const headers = sharedHeaders("PutLoggingOptions");
247
259
  let body;
@@ -1130,6 +1142,50 @@ const de_GetDecoderManifestCommandError = async (output, context) => {
1130
1142
  });
1131
1143
  }
1132
1144
  };
1145
+ export const de_GetEncryptionConfigurationCommand = async (output, context) => {
1146
+ if (output.statusCode >= 300) {
1147
+ return de_GetEncryptionConfigurationCommandError(output, context);
1148
+ }
1149
+ const data = await parseBody(output.body, context);
1150
+ let contents = {};
1151
+ contents = de_GetEncryptionConfigurationResponse(data, context);
1152
+ const response = {
1153
+ $metadata: deserializeMetadata(output),
1154
+ ...contents,
1155
+ };
1156
+ return response;
1157
+ };
1158
+ const de_GetEncryptionConfigurationCommandError = async (output, context) => {
1159
+ const parsedOutput = {
1160
+ ...output,
1161
+ body: await parseErrorBody(output.body, context),
1162
+ };
1163
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1164
+ switch (errorCode) {
1165
+ case "AccessDeniedException":
1166
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
1167
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1168
+ case "InternalServerException":
1169
+ case "com.amazonaws.iotfleetwise#InternalServerException":
1170
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1171
+ case "ResourceNotFoundException":
1172
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1173
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1174
+ case "ThrottlingException":
1175
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
1176
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1177
+ case "ValidationException":
1178
+ case "com.amazonaws.iotfleetwise#ValidationException":
1179
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1180
+ default:
1181
+ const parsedBody = parsedOutput.body;
1182
+ return throwDefaultError({
1183
+ output,
1184
+ parsedBody,
1185
+ errorCode,
1186
+ });
1187
+ }
1188
+ };
1133
1189
  export const de_GetFleetCommand = async (output, context) => {
1134
1190
  if (output.statusCode >= 300) {
1135
1191
  return de_GetFleetCommandError(output, context);
@@ -2101,6 +2157,53 @@ const de_ListVehiclesInFleetCommandError = async (output, context) => {
2101
2157
  });
2102
2158
  }
2103
2159
  };
2160
+ export const de_PutEncryptionConfigurationCommand = async (output, context) => {
2161
+ if (output.statusCode >= 300) {
2162
+ return de_PutEncryptionConfigurationCommandError(output, context);
2163
+ }
2164
+ const data = await parseBody(output.body, context);
2165
+ let contents = {};
2166
+ contents = _json(data);
2167
+ const response = {
2168
+ $metadata: deserializeMetadata(output),
2169
+ ...contents,
2170
+ };
2171
+ return response;
2172
+ };
2173
+ const de_PutEncryptionConfigurationCommandError = async (output, context) => {
2174
+ const parsedOutput = {
2175
+ ...output,
2176
+ body: await parseErrorBody(output.body, context),
2177
+ };
2178
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2179
+ switch (errorCode) {
2180
+ case "AccessDeniedException":
2181
+ case "com.amazonaws.iotfleetwise#AccessDeniedException":
2182
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2183
+ case "ConflictException":
2184
+ case "com.amazonaws.iotfleetwise#ConflictException":
2185
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2186
+ case "InternalServerException":
2187
+ case "com.amazonaws.iotfleetwise#InternalServerException":
2188
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2189
+ case "ResourceNotFoundException":
2190
+ case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2191
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2192
+ case "ThrottlingException":
2193
+ case "com.amazonaws.iotfleetwise#ThrottlingException":
2194
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2195
+ case "ValidationException":
2196
+ case "com.amazonaws.iotfleetwise#ValidationException":
2197
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2198
+ default:
2199
+ const parsedBody = parsedOutput.body;
2200
+ return throwDefaultError({
2201
+ output,
2202
+ parsedBody,
2203
+ errorCode,
2204
+ });
2205
+ }
2206
+ };
2104
2207
  export const de_PutLoggingOptionsCommand = async (output, context) => {
2105
2208
  if (output.statusCode >= 300) {
2106
2209
  return de_PutLoggingOptionsCommandError(output, context);
@@ -2997,6 +3100,16 @@ const de_GetDecoderManifestResponse = (output, context) => {
2997
3100
  status: __expectString,
2998
3101
  });
2999
3102
  };
3103
+ const de_GetEncryptionConfigurationResponse = (output, context) => {
3104
+ return take(output, {
3105
+ creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3106
+ encryptionStatus: __expectString,
3107
+ encryptionType: __expectString,
3108
+ errorMessage: __expectString,
3109
+ kmsKeyId: __expectString,
3110
+ lastModificationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3111
+ });
3112
+ };
3000
3113
  const de_GetFleetResponse = (output, context) => {
3001
3114
  return take(output, {
3002
3115
  arn: __expectString,
@@ -17,6 +17,7 @@ import { DeleteVehicleCommandInput, DeleteVehicleCommandOutput } from "./command
17
17
  import { DisassociateVehicleFleetCommandInput, DisassociateVehicleFleetCommandOutput } from "./commands/DisassociateVehicleFleetCommand";
18
18
  import { GetCampaignCommandInput, GetCampaignCommandOutput } from "./commands/GetCampaignCommand";
19
19
  import { GetDecoderManifestCommandInput, GetDecoderManifestCommandOutput } from "./commands/GetDecoderManifestCommand";
20
+ import { GetEncryptionConfigurationCommandInput, GetEncryptionConfigurationCommandOutput } from "./commands/GetEncryptionConfigurationCommand";
20
21
  import { GetFleetCommandInput, GetFleetCommandOutput } from "./commands/GetFleetCommand";
21
22
  import { GetLoggingOptionsCommandInput, GetLoggingOptionsCommandOutput } from "./commands/GetLoggingOptionsCommand";
22
23
  import { GetModelManifestCommandInput, GetModelManifestCommandOutput } from "./commands/GetModelManifestCommand";
@@ -39,6 +40,7 @@ import { ListSignalCatalogsCommandInput, ListSignalCatalogsCommandOutput } from
39
40
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
40
41
  import { ListVehiclesCommandInput, ListVehiclesCommandOutput } from "./commands/ListVehiclesCommand";
41
42
  import { ListVehiclesInFleetCommandInput, ListVehiclesInFleetCommandOutput } from "./commands/ListVehiclesInFleetCommand";
43
+ import { PutEncryptionConfigurationCommandInput, PutEncryptionConfigurationCommandOutput } from "./commands/PutEncryptionConfigurationCommand";
42
44
  import { PutLoggingOptionsCommandInput, PutLoggingOptionsCommandOutput } from "./commands/PutLoggingOptionsCommand";
43
45
  import { RegisterAccountCommandInput, RegisterAccountCommandOutput } from "./commands/RegisterAccountCommand";
44
46
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
@@ -159,6 +161,12 @@ export interface IoTFleetWise {
159
161
  getDecoderManifest(args: GetDecoderManifestCommandInput, options?: __HttpHandlerOptions): Promise<GetDecoderManifestCommandOutput>;
160
162
  getDecoderManifest(args: GetDecoderManifestCommandInput, cb: (err: any, data?: GetDecoderManifestCommandOutput) => void): void;
161
163
  getDecoderManifest(args: GetDecoderManifestCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDecoderManifestCommandOutput) => void): void;
164
+ /**
165
+ * @see {@link GetEncryptionConfigurationCommand}
166
+ */
167
+ getEncryptionConfiguration(args: GetEncryptionConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetEncryptionConfigurationCommandOutput>;
168
+ getEncryptionConfiguration(args: GetEncryptionConfigurationCommandInput, cb: (err: any, data?: GetEncryptionConfigurationCommandOutput) => void): void;
169
+ getEncryptionConfiguration(args: GetEncryptionConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEncryptionConfigurationCommandOutput) => void): void;
162
170
  /**
163
171
  * @see {@link GetFleetCommand}
164
172
  */
@@ -291,6 +299,12 @@ export interface IoTFleetWise {
291
299
  listVehiclesInFleet(args: ListVehiclesInFleetCommandInput, options?: __HttpHandlerOptions): Promise<ListVehiclesInFleetCommandOutput>;
292
300
  listVehiclesInFleet(args: ListVehiclesInFleetCommandInput, cb: (err: any, data?: ListVehiclesInFleetCommandOutput) => void): void;
293
301
  listVehiclesInFleet(args: ListVehiclesInFleetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListVehiclesInFleetCommandOutput) => void): void;
302
+ /**
303
+ * @see {@link PutEncryptionConfigurationCommand}
304
+ */
305
+ putEncryptionConfiguration(args: PutEncryptionConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<PutEncryptionConfigurationCommandOutput>;
306
+ putEncryptionConfiguration(args: PutEncryptionConfigurationCommandInput, cb: (err: any, data?: PutEncryptionConfigurationCommandOutput) => void): void;
307
+ putEncryptionConfiguration(args: PutEncryptionConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutEncryptionConfigurationCommandOutput) => void): void;
294
308
  /**
295
309
  * @see {@link PutLoggingOptionsCommand}
296
310
  */
@@ -26,6 +26,7 @@ import { DeleteVehicleCommandInput, DeleteVehicleCommandOutput } from "./command
26
26
  import { DisassociateVehicleFleetCommandInput, DisassociateVehicleFleetCommandOutput } from "./commands/DisassociateVehicleFleetCommand";
27
27
  import { GetCampaignCommandInput, GetCampaignCommandOutput } from "./commands/GetCampaignCommand";
28
28
  import { GetDecoderManifestCommandInput, GetDecoderManifestCommandOutput } from "./commands/GetDecoderManifestCommand";
29
+ import { GetEncryptionConfigurationCommandInput, GetEncryptionConfigurationCommandOutput } from "./commands/GetEncryptionConfigurationCommand";
29
30
  import { GetFleetCommandInput, GetFleetCommandOutput } from "./commands/GetFleetCommand";
30
31
  import { GetLoggingOptionsCommandInput, GetLoggingOptionsCommandOutput } from "./commands/GetLoggingOptionsCommand";
31
32
  import { GetModelManifestCommandInput, GetModelManifestCommandOutput } from "./commands/GetModelManifestCommand";
@@ -48,6 +49,7 @@ import { ListSignalCatalogsCommandInput, ListSignalCatalogsCommandOutput } from
48
49
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
49
50
  import { ListVehiclesCommandInput, ListVehiclesCommandOutput } from "./commands/ListVehiclesCommand";
50
51
  import { ListVehiclesInFleetCommandInput, ListVehiclesInFleetCommandOutput } from "./commands/ListVehiclesInFleetCommand";
52
+ import { PutEncryptionConfigurationCommandInput, PutEncryptionConfigurationCommandOutput } from "./commands/PutEncryptionConfigurationCommand";
51
53
  import { PutLoggingOptionsCommandInput, PutLoggingOptionsCommandOutput } from "./commands/PutLoggingOptionsCommand";
52
54
  import { RegisterAccountCommandInput, RegisterAccountCommandOutput } from "./commands/RegisterAccountCommand";
53
55
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
@@ -64,11 +66,11 @@ export { __Client };
64
66
  /**
65
67
  * @public
66
68
  */
67
- export type ServiceInputTypes = AssociateVehicleFleetCommandInput | BatchCreateVehicleCommandInput | BatchUpdateVehicleCommandInput | CreateCampaignCommandInput | CreateDecoderManifestCommandInput | CreateFleetCommandInput | CreateModelManifestCommandInput | CreateSignalCatalogCommandInput | CreateVehicleCommandInput | DeleteCampaignCommandInput | DeleteDecoderManifestCommandInput | DeleteFleetCommandInput | DeleteModelManifestCommandInput | DeleteSignalCatalogCommandInput | DeleteVehicleCommandInput | DisassociateVehicleFleetCommandInput | GetCampaignCommandInput | GetDecoderManifestCommandInput | GetFleetCommandInput | GetLoggingOptionsCommandInput | GetModelManifestCommandInput | GetRegisterAccountStatusCommandInput | GetSignalCatalogCommandInput | GetVehicleCommandInput | GetVehicleStatusCommandInput | ImportDecoderManifestCommandInput | ImportSignalCatalogCommandInput | ListCampaignsCommandInput | ListDecoderManifestNetworkInterfacesCommandInput | ListDecoderManifestSignalsCommandInput | ListDecoderManifestsCommandInput | ListFleetsCommandInput | ListFleetsForVehicleCommandInput | ListModelManifestNodesCommandInput | ListModelManifestsCommandInput | ListSignalCatalogNodesCommandInput | ListSignalCatalogsCommandInput | ListTagsForResourceCommandInput | ListVehiclesCommandInput | ListVehiclesInFleetCommandInput | PutLoggingOptionsCommandInput | RegisterAccountCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCampaignCommandInput | UpdateDecoderManifestCommandInput | UpdateFleetCommandInput | UpdateModelManifestCommandInput | UpdateSignalCatalogCommandInput | UpdateVehicleCommandInput;
69
+ export type ServiceInputTypes = AssociateVehicleFleetCommandInput | BatchCreateVehicleCommandInput | BatchUpdateVehicleCommandInput | CreateCampaignCommandInput | CreateDecoderManifestCommandInput | CreateFleetCommandInput | CreateModelManifestCommandInput | CreateSignalCatalogCommandInput | CreateVehicleCommandInput | DeleteCampaignCommandInput | DeleteDecoderManifestCommandInput | DeleteFleetCommandInput | DeleteModelManifestCommandInput | DeleteSignalCatalogCommandInput | DeleteVehicleCommandInput | DisassociateVehicleFleetCommandInput | GetCampaignCommandInput | GetDecoderManifestCommandInput | GetEncryptionConfigurationCommandInput | GetFleetCommandInput | GetLoggingOptionsCommandInput | GetModelManifestCommandInput | GetRegisterAccountStatusCommandInput | GetSignalCatalogCommandInput | GetVehicleCommandInput | GetVehicleStatusCommandInput | ImportDecoderManifestCommandInput | ImportSignalCatalogCommandInput | ListCampaignsCommandInput | ListDecoderManifestNetworkInterfacesCommandInput | ListDecoderManifestSignalsCommandInput | ListDecoderManifestsCommandInput | ListFleetsCommandInput | ListFleetsForVehicleCommandInput | ListModelManifestNodesCommandInput | ListModelManifestsCommandInput | ListSignalCatalogNodesCommandInput | ListSignalCatalogsCommandInput | ListTagsForResourceCommandInput | ListVehiclesCommandInput | ListVehiclesInFleetCommandInput | PutEncryptionConfigurationCommandInput | PutLoggingOptionsCommandInput | RegisterAccountCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCampaignCommandInput | UpdateDecoderManifestCommandInput | UpdateFleetCommandInput | UpdateModelManifestCommandInput | UpdateSignalCatalogCommandInput | UpdateVehicleCommandInput;
68
70
  /**
69
71
  * @public
70
72
  */
71
- export type ServiceOutputTypes = AssociateVehicleFleetCommandOutput | BatchCreateVehicleCommandOutput | BatchUpdateVehicleCommandOutput | CreateCampaignCommandOutput | CreateDecoderManifestCommandOutput | CreateFleetCommandOutput | CreateModelManifestCommandOutput | CreateSignalCatalogCommandOutput | CreateVehicleCommandOutput | DeleteCampaignCommandOutput | DeleteDecoderManifestCommandOutput | DeleteFleetCommandOutput | DeleteModelManifestCommandOutput | DeleteSignalCatalogCommandOutput | DeleteVehicleCommandOutput | DisassociateVehicleFleetCommandOutput | GetCampaignCommandOutput | GetDecoderManifestCommandOutput | GetFleetCommandOutput | GetLoggingOptionsCommandOutput | GetModelManifestCommandOutput | GetRegisterAccountStatusCommandOutput | GetSignalCatalogCommandOutput | GetVehicleCommandOutput | GetVehicleStatusCommandOutput | ImportDecoderManifestCommandOutput | ImportSignalCatalogCommandOutput | ListCampaignsCommandOutput | ListDecoderManifestNetworkInterfacesCommandOutput | ListDecoderManifestSignalsCommandOutput | ListDecoderManifestsCommandOutput | ListFleetsCommandOutput | ListFleetsForVehicleCommandOutput | ListModelManifestNodesCommandOutput | ListModelManifestsCommandOutput | ListSignalCatalogNodesCommandOutput | ListSignalCatalogsCommandOutput | ListTagsForResourceCommandOutput | ListVehiclesCommandOutput | ListVehiclesInFleetCommandOutput | PutLoggingOptionsCommandOutput | RegisterAccountCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCampaignCommandOutput | UpdateDecoderManifestCommandOutput | UpdateFleetCommandOutput | UpdateModelManifestCommandOutput | UpdateSignalCatalogCommandOutput | UpdateVehicleCommandOutput;
73
+ export type ServiceOutputTypes = AssociateVehicleFleetCommandOutput | BatchCreateVehicleCommandOutput | BatchUpdateVehicleCommandOutput | CreateCampaignCommandOutput | CreateDecoderManifestCommandOutput | CreateFleetCommandOutput | CreateModelManifestCommandOutput | CreateSignalCatalogCommandOutput | CreateVehicleCommandOutput | DeleteCampaignCommandOutput | DeleteDecoderManifestCommandOutput | DeleteFleetCommandOutput | DeleteModelManifestCommandOutput | DeleteSignalCatalogCommandOutput | DeleteVehicleCommandOutput | DisassociateVehicleFleetCommandOutput | GetCampaignCommandOutput | GetDecoderManifestCommandOutput | GetEncryptionConfigurationCommandOutput | GetFleetCommandOutput | GetLoggingOptionsCommandOutput | GetModelManifestCommandOutput | GetRegisterAccountStatusCommandOutput | GetSignalCatalogCommandOutput | GetVehicleCommandOutput | GetVehicleStatusCommandOutput | ImportDecoderManifestCommandOutput | ImportSignalCatalogCommandOutput | ListCampaignsCommandOutput | ListDecoderManifestNetworkInterfacesCommandOutput | ListDecoderManifestSignalsCommandOutput | ListDecoderManifestsCommandOutput | ListFleetsCommandOutput | ListFleetsForVehicleCommandOutput | ListModelManifestNodesCommandOutput | ListModelManifestsCommandOutput | ListSignalCatalogNodesCommandOutput | ListSignalCatalogsCommandOutput | ListTagsForResourceCommandOutput | ListVehiclesCommandOutput | ListVehiclesInFleetCommandOutput | PutEncryptionConfigurationCommandOutput | PutLoggingOptionsCommandOutput | RegisterAccountCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCampaignCommandOutput | UpdateDecoderManifestCommandOutput | UpdateFleetCommandOutput | UpdateModelManifestCommandOutput | UpdateSignalCatalogCommandOutput | UpdateVehicleCommandOutput;
72
74
  /**
73
75
  * @public
74
76
  */
@@ -0,0 +1,91 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { IoTFleetWiseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTFleetWiseClient";
5
+ import { GetEncryptionConfigurationRequest, GetEncryptionConfigurationResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetEncryptionConfigurationCommand}.
14
+ */
15
+ export interface GetEncryptionConfigurationCommandInput extends GetEncryptionConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetEncryptionConfigurationCommand}.
21
+ */
22
+ export interface GetEncryptionConfigurationCommandOutput extends GetEncryptionConfigurationResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Retrieves the encryption configuration for resources and data in Amazon Web Services IoT FleetWise.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { IoTFleetWiseClient, GetEncryptionConfigurationCommand } from "@aws-sdk/client-iotfleetwise"; // ES Modules import
31
+ * // const { IoTFleetWiseClient, GetEncryptionConfigurationCommand } = require("@aws-sdk/client-iotfleetwise"); // CommonJS import
32
+ * const client = new IoTFleetWiseClient(config);
33
+ * const input = {};
34
+ * const command = new GetEncryptionConfigurationCommand(input);
35
+ * const response = await client.send(command);
36
+ * // { // GetEncryptionConfigurationResponse
37
+ * // kmsKeyId: "STRING_VALUE",
38
+ * // encryptionStatus: "STRING_VALUE", // required
39
+ * // encryptionType: "STRING_VALUE", // required
40
+ * // errorMessage: "STRING_VALUE",
41
+ * // creationTime: new Date("TIMESTAMP"),
42
+ * // lastModificationTime: new Date("TIMESTAMP"),
43
+ * // };
44
+ *
45
+ * ```
46
+ *
47
+ * @param GetEncryptionConfigurationCommandInput - {@link GetEncryptionConfigurationCommandInput}
48
+ * @returns {@link GetEncryptionConfigurationCommandOutput}
49
+ * @see {@link GetEncryptionConfigurationCommandInput} for command's `input` shape.
50
+ * @see {@link GetEncryptionConfigurationCommandOutput} for command's `response` shape.
51
+ * @see {@link IoTFleetWiseClientResolvedConfig | config} for IoTFleetWiseClient's `config` shape.
52
+ *
53
+ * @throws {@link AccessDeniedException} (client fault)
54
+ * <p>You don't have sufficient permission to perform this action.</p>
55
+ *
56
+ * @throws {@link InternalServerException} (server fault)
57
+ * <p>The request couldn't be completed because the server temporarily failed.</p>
58
+ *
59
+ * @throws {@link ResourceNotFoundException} (client fault)
60
+ * <p>The resource wasn't found.</p>
61
+ *
62
+ * @throws {@link ThrottlingException} (client fault)
63
+ * <p>The request couldn't be completed due to throttling.</p>
64
+ *
65
+ * @throws {@link ValidationException} (client fault)
66
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
67
+ *
68
+ * @throws {@link IoTFleetWiseServiceException}
69
+ * <p>Base exception class for all service exceptions from IoTFleetWise service.</p>
70
+ *
71
+ */
72
+ export declare class GetEncryptionConfigurationCommand extends $Command<GetEncryptionConfigurationCommandInput, GetEncryptionConfigurationCommandOutput, IoTFleetWiseClientResolvedConfig> {
73
+ readonly input: GetEncryptionConfigurationCommandInput;
74
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
75
+ /**
76
+ * @public
77
+ */
78
+ constructor(input: GetEncryptionConfigurationCommandInput);
79
+ /**
80
+ * @internal
81
+ */
82
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IoTFleetWiseClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetEncryptionConfigurationCommandInput, GetEncryptionConfigurationCommandOutput>;
83
+ /**
84
+ * @internal
85
+ */
86
+ private serialize;
87
+ /**
88
+ * @internal
89
+ */
90
+ private deserialize;
91
+ }
@@ -0,0 +1,95 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { IoTFleetWiseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTFleetWiseClient";
5
+ import { PutEncryptionConfigurationRequest, PutEncryptionConfigurationResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link PutEncryptionConfigurationCommand}.
14
+ */
15
+ export interface PutEncryptionConfigurationCommandInput extends PutEncryptionConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PutEncryptionConfigurationCommand}.
21
+ */
22
+ export interface PutEncryptionConfigurationCommandOutput extends PutEncryptionConfigurationResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Creates or updates the encryption configuration. Amazon Web Services IoT FleetWise can encrypt your data and resources using an Amazon Web Services managed key. Or, you can use a KMS key that you own and manage. For more information, see <a href="https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/data-encryption.html">Data encryption</a> in the <i>Amazon Web Services IoT FleetWise Developer Guide</i>.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { IoTFleetWiseClient, PutEncryptionConfigurationCommand } from "@aws-sdk/client-iotfleetwise"; // ES Modules import
31
+ * // const { IoTFleetWiseClient, PutEncryptionConfigurationCommand } = require("@aws-sdk/client-iotfleetwise"); // CommonJS import
32
+ * const client = new IoTFleetWiseClient(config);
33
+ * const input = { // PutEncryptionConfigurationRequest
34
+ * kmsKeyId: "STRING_VALUE",
35
+ * encryptionType: "STRING_VALUE", // required
36
+ * };
37
+ * const command = new PutEncryptionConfigurationCommand(input);
38
+ * const response = await client.send(command);
39
+ * // { // PutEncryptionConfigurationResponse
40
+ * // kmsKeyId: "STRING_VALUE",
41
+ * // encryptionStatus: "STRING_VALUE", // required
42
+ * // encryptionType: "STRING_VALUE", // required
43
+ * // };
44
+ *
45
+ * ```
46
+ *
47
+ * @param PutEncryptionConfigurationCommandInput - {@link PutEncryptionConfigurationCommandInput}
48
+ * @returns {@link PutEncryptionConfigurationCommandOutput}
49
+ * @see {@link PutEncryptionConfigurationCommandInput} for command's `input` shape.
50
+ * @see {@link PutEncryptionConfigurationCommandOutput} for command's `response` shape.
51
+ * @see {@link IoTFleetWiseClientResolvedConfig | config} for IoTFleetWiseClient's `config` shape.
52
+ *
53
+ * @throws {@link AccessDeniedException} (client fault)
54
+ * <p>You don't have sufficient permission to perform this action.</p>
55
+ *
56
+ * @throws {@link ConflictException} (client fault)
57
+ * <p>The request has conflicting operations. This can occur if you're trying to perform
58
+ * more than one operation on the same resource at the same time.</p>
59
+ *
60
+ * @throws {@link InternalServerException} (server fault)
61
+ * <p>The request couldn't be completed because the server temporarily failed.</p>
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * <p>The resource wasn't found.</p>
65
+ *
66
+ * @throws {@link ThrottlingException} (client fault)
67
+ * <p>The request couldn't be completed due to throttling.</p>
68
+ *
69
+ * @throws {@link ValidationException} (client fault)
70
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
71
+ *
72
+ * @throws {@link IoTFleetWiseServiceException}
73
+ * <p>Base exception class for all service exceptions from IoTFleetWise service.</p>
74
+ *
75
+ */
76
+ export declare class PutEncryptionConfigurationCommand extends $Command<PutEncryptionConfigurationCommandInput, PutEncryptionConfigurationCommandOutput, IoTFleetWiseClientResolvedConfig> {
77
+ readonly input: PutEncryptionConfigurationCommandInput;
78
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
79
+ /**
80
+ * @public
81
+ */
82
+ constructor(input: PutEncryptionConfigurationCommandInput);
83
+ /**
84
+ * @internal
85
+ */
86
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IoTFleetWiseClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutEncryptionConfigurationCommandInput, PutEncryptionConfigurationCommandOutput>;
87
+ /**
88
+ * @internal
89
+ */
90
+ private serialize;
91
+ /**
92
+ * @internal
93
+ */
94
+ private deserialize;
95
+ }
@@ -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";
@@ -1041,7 +1041,7 @@ export interface CreateCampaignRequest {
1041
1041
  /**
1042
1042
  * @public
1043
1043
  * <p>The destination where the campaign sends data. You can choose to send data to be stored in Amazon S3 or Amazon Timestream.</p>
1044
- * <p>Amazon S3 optimizes the cost of data storage and provides additional mechanisms to use vehicle data, such as data lakes, centralized data storage, data processing pipelines, and analytics. </p>
1044
+ * <p>Amazon S3 optimizes the cost of data storage and provides additional mechanisms to use vehicle data, such as data lakes, centralized data storage, data processing pipelines, and analytics. Amazon Web Services IoT FleetWise supports at-least-once file delivery to S3. Your vehicle data is stored on multiple Amazon Web Services IoT FleetWise servers for redundancy and high availability.</p>
1045
1045
  * <p>You can use Amazon Timestream to access and analyze time series data, and Timestream to query
1046
1046
  * vehicle data so that you can identify trends and patterns.</p>
1047
1047
  */
@@ -2771,6 +2771,31 @@ export interface DisassociateVehicleFleetRequest {
2771
2771
  */
2772
2772
  export interface DisassociateVehicleFleetResponse {
2773
2773
  }
2774
+ /**
2775
+ * @public
2776
+ * @enum
2777
+ */
2778
+ export declare const EncryptionStatus: {
2779
+ readonly FAILURE: "FAILURE";
2780
+ readonly PENDING: "PENDING";
2781
+ readonly SUCCESS: "SUCCESS";
2782
+ };
2783
+ /**
2784
+ * @public
2785
+ */
2786
+ export type EncryptionStatus = (typeof EncryptionStatus)[keyof typeof EncryptionStatus];
2787
+ /**
2788
+ * @public
2789
+ * @enum
2790
+ */
2791
+ export declare const EncryptionType: {
2792
+ readonly FLEETWISE_DEFAULT_ENCRYPTION: "FLEETWISE_DEFAULT_ENCRYPTION";
2793
+ readonly KMS_BASED_ENCRYPTION: "KMS_BASED_ENCRYPTION";
2794
+ };
2795
+ /**
2796
+ * @public
2797
+ */
2798
+ export type EncryptionType = (typeof EncryptionType)[keyof typeof EncryptionType];
2774
2799
  /**
2775
2800
  * @public
2776
2801
  */
@@ -3024,6 +3049,46 @@ export declare namespace FormattedVss {
3024
3049
  }
3025
3050
  const visit: <T>(value: FormattedVss, visitor: Visitor<T>) => T;
3026
3051
  }
3052
+ /**
3053
+ * @public
3054
+ */
3055
+ export interface GetEncryptionConfigurationRequest {
3056
+ }
3057
+ /**
3058
+ * @public
3059
+ */
3060
+ export interface GetEncryptionConfigurationResponse {
3061
+ /**
3062
+ * @public
3063
+ * <p>The ID of the KMS key that is used for encryption.</p>
3064
+ */
3065
+ kmsKeyId?: string;
3066
+ /**
3067
+ * @public
3068
+ * <p>The encryption status.</p>
3069
+ */
3070
+ encryptionStatus: EncryptionStatus | string | undefined;
3071
+ /**
3072
+ * @public
3073
+ * <p>The type of encryption. Set to <code>KMS_BASED_ENCRYPTION</code> to use an KMS key that you own and manage. Set to <code>FLEETWISE_DEFAULT_ENCRYPTION</code> to use an Amazon Web Services managed key that is owned by the Amazon Web Services IoT FleetWise service account.</p>
3074
+ */
3075
+ encryptionType: EncryptionType | string | undefined;
3076
+ /**
3077
+ * @public
3078
+ * <p>The error message that describes why encryption settings couldn't be configured, if applicable.</p>
3079
+ */
3080
+ errorMessage?: string;
3081
+ /**
3082
+ * @public
3083
+ * <p>The time when encryption was configured in seconds since epoch (January 1, 1970 at midnight UTC time).</p>
3084
+ */
3085
+ creationTime?: Date;
3086
+ /**
3087
+ * @public
3088
+ * <p>The time when encryption was last updated in seconds since epoch (January 1, 1970 at midnight UTC time).</p>
3089
+ */
3090
+ lastModificationTime?: Date;
3091
+ }
3027
3092
  /**
3028
3093
  * @public
3029
3094
  */
@@ -3700,6 +3765,41 @@ export interface UpdateModelManifestResponse {
3700
3765
  */
3701
3766
  arn: string | undefined;
3702
3767
  }
3768
+ /**
3769
+ * @public
3770
+ */
3771
+ export interface PutEncryptionConfigurationRequest {
3772
+ /**
3773
+ * @public
3774
+ * <p>The ID of the KMS key that is used for encryption.</p>
3775
+ */
3776
+ kmsKeyId?: string;
3777
+ /**
3778
+ * @public
3779
+ * <p>The type of encryption. Choose <code>KMS_BASED_ENCRYPTION</code> to use a KMS key or <code>FLEETWISE_DEFAULT_ENCRYPTION</code> to use an Amazon Web Services managed key.</p>
3780
+ */
3781
+ encryptionType: EncryptionType | string | undefined;
3782
+ }
3783
+ /**
3784
+ * @public
3785
+ */
3786
+ export interface PutEncryptionConfigurationResponse {
3787
+ /**
3788
+ * @public
3789
+ * <p>The ID of the KMS key that is used for encryption.</p>
3790
+ */
3791
+ kmsKeyId?: string;
3792
+ /**
3793
+ * @public
3794
+ * <p>The encryption status.</p>
3795
+ */
3796
+ encryptionStatus: EncryptionStatus | string | undefined;
3797
+ /**
3798
+ * @public
3799
+ * <p>The type of encryption. Set to <code>KMS_BASED_ENCRYPTION</code> to use an KMS key that you own and manage. Set to <code>FLEETWISE_DEFAULT_ENCRYPTION</code> to use an Amazon Web Services managed key that is owned by the Amazon Web Services IoT FleetWise service account.</p>
3800
+ */
3801
+ encryptionType: EncryptionType | string | undefined;
3802
+ }
3703
3803
  /**
3704
3804
  * @public
3705
3805
  */
@@ -18,6 +18,7 @@ import { DeleteVehicleCommandInput, DeleteVehicleCommandOutput } from "../comman
18
18
  import { DisassociateVehicleFleetCommandInput, DisassociateVehicleFleetCommandOutput } from "../commands/DisassociateVehicleFleetCommand";
19
19
  import { GetCampaignCommandInput, GetCampaignCommandOutput } from "../commands/GetCampaignCommand";
20
20
  import { GetDecoderManifestCommandInput, GetDecoderManifestCommandOutput } from "../commands/GetDecoderManifestCommand";
21
+ import { GetEncryptionConfigurationCommandInput, GetEncryptionConfigurationCommandOutput } from "../commands/GetEncryptionConfigurationCommand";
21
22
  import { GetFleetCommandInput, GetFleetCommandOutput } from "../commands/GetFleetCommand";
22
23
  import { GetLoggingOptionsCommandInput, GetLoggingOptionsCommandOutput } from "../commands/GetLoggingOptionsCommand";
23
24
  import { GetModelManifestCommandInput, GetModelManifestCommandOutput } from "../commands/GetModelManifestCommand";
@@ -40,6 +41,7 @@ import { ListSignalCatalogsCommandInput, ListSignalCatalogsCommandOutput } from
40
41
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
41
42
  import { ListVehiclesCommandInput, ListVehiclesCommandOutput } from "../commands/ListVehiclesCommand";
42
43
  import { ListVehiclesInFleetCommandInput, ListVehiclesInFleetCommandOutput } from "../commands/ListVehiclesInFleetCommand";
44
+ import { PutEncryptionConfigurationCommandInput, PutEncryptionConfigurationCommandOutput } from "../commands/PutEncryptionConfigurationCommand";
43
45
  import { PutLoggingOptionsCommandInput, PutLoggingOptionsCommandOutput } from "../commands/PutLoggingOptionsCommand";
44
46
  import { RegisterAccountCommandInput, RegisterAccountCommandOutput } from "../commands/RegisterAccountCommand";
45
47
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
@@ -122,6 +124,10 @@ export declare const se_GetCampaignCommand: (input: GetCampaignCommandInput, con
122
124
  * serializeAws_json1_0GetDecoderManifestCommand
123
125
  */
124
126
  export declare const se_GetDecoderManifestCommand: (input: GetDecoderManifestCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
127
+ /**
128
+ * serializeAws_json1_0GetEncryptionConfigurationCommand
129
+ */
130
+ export declare const se_GetEncryptionConfigurationCommand: (input: GetEncryptionConfigurationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
125
131
  /**
126
132
  * serializeAws_json1_0GetFleetCommand
127
133
  */
@@ -210,6 +216,10 @@ export declare const se_ListVehiclesCommand: (input: ListVehiclesCommandInput, c
210
216
  * serializeAws_json1_0ListVehiclesInFleetCommand
211
217
  */
212
218
  export declare const se_ListVehiclesInFleetCommand: (input: ListVehiclesInFleetCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
219
+ /**
220
+ * serializeAws_json1_0PutEncryptionConfigurationCommand
221
+ */
222
+ export declare const se_PutEncryptionConfigurationCommand: (input: PutEncryptionConfigurationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
213
223
  /**
214
224
  * serializeAws_json1_0PutLoggingOptionsCommand
215
225
  */
@@ -322,6 +332,10 @@ export declare const de_GetCampaignCommand: (output: __HttpResponse, context: __
322
332
  * deserializeAws_json1_0GetDecoderManifestCommand
323
333
  */
324
334
  export declare const de_GetDecoderManifestCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDecoderManifestCommandOutput>;
335
+ /**
336
+ * deserializeAws_json1_0GetEncryptionConfigurationCommand
337
+ */
338
+ export declare const de_GetEncryptionConfigurationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetEncryptionConfigurationCommandOutput>;
325
339
  /**
326
340
  * deserializeAws_json1_0GetFleetCommand
327
341
  */
@@ -410,6 +424,10 @@ export declare const de_ListVehiclesCommand: (output: __HttpResponse, context: _
410
424
  * deserializeAws_json1_0ListVehiclesInFleetCommand
411
425
  */
412
426
  export declare const de_ListVehiclesInFleetCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListVehiclesInFleetCommandOutput>;
427
+ /**
428
+ * deserializeAws_json1_0PutEncryptionConfigurationCommand
429
+ */
430
+ export declare const de_PutEncryptionConfigurationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutEncryptionConfigurationCommandOutput>;
413
431
  /**
414
432
  * deserializeAws_json1_0PutLoggingOptionsCommand
415
433
  */