@aws-sdk/client-iot-managed-integrations 3.835.0 → 3.839.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 +200 -0
- package/dist-cjs/IoTManagedIntegrations.js +50 -0
- package/dist-cjs/commands/CreateAccountAssociationCommand.js +27 -0
- package/dist-cjs/commands/CreateCloudConnectorCommand.js +26 -0
- package/dist-cjs/commands/CreateConnectorDestinationCommand.js +26 -0
- package/dist-cjs/commands/DeleteAccountAssociationCommand.js +26 -0
- package/dist-cjs/commands/DeleteCloudConnectorCommand.js +26 -0
- package/dist-cjs/commands/DeleteConnectorDestinationCommand.js +26 -0
- package/dist-cjs/commands/DeregisterAccountAssociationCommand.js +26 -0
- package/dist-cjs/commands/GetAccountAssociationCommand.js +27 -0
- package/dist-cjs/commands/GetCloudConnectorCommand.js +26 -0
- package/dist-cjs/commands/GetConnectorDestinationCommand.js +26 -0
- package/dist-cjs/commands/GetOtaTaskCommand.js +2 -1
- package/dist-cjs/commands/ListAccountAssociationsCommand.js +26 -0
- package/dist-cjs/commands/ListCloudConnectorsCommand.js +26 -0
- package/dist-cjs/commands/ListConnectorDestinationsCommand.js +26 -0
- package/dist-cjs/commands/ListDeviceDiscoveriesCommand.js +26 -0
- package/dist-cjs/commands/ListDiscoveredDevicesCommand.js +27 -0
- package/dist-cjs/commands/ListManagedThingAccountAssociationsCommand.js +26 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +27 -0
- package/dist-cjs/commands/RegisterAccountAssociationCommand.js +26 -0
- package/dist-cjs/commands/SendConnectorEventCommand.js +27 -0
- package/dist-cjs/commands/StartAccountAssociationRefreshCommand.js +27 -0
- package/dist-cjs/commands/TagResourceCommand.js +27 -0
- package/dist-cjs/commands/UntagResourceCommand.js +26 -0
- package/dist-cjs/commands/UpdateAccountAssociationCommand.js +26 -0
- package/dist-cjs/commands/UpdateCloudConnectorCommand.js +26 -0
- package/dist-cjs/commands/UpdateConnectorDestinationCommand.js +26 -0
- package/dist-cjs/commands/index.js +25 -0
- package/dist-cjs/models/models_0.js +187 -36
- package/dist-cjs/pagination/ListAccountAssociationsPaginator.js +7 -0
- package/dist-cjs/pagination/ListCloudConnectorsPaginator.js +7 -0
- package/dist-cjs/pagination/ListConnectorDestinationsPaginator.js +7 -0
- package/dist-cjs/pagination/ListDeviceDiscoveriesPaginator.js +7 -0
- package/dist-cjs/pagination/ListDiscoveredDevicesPaginator.js +7 -0
- package/dist-cjs/pagination/ListManagedThingAccountAssociationsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +974 -22
- package/dist-es/IoTManagedIntegrations.js +50 -0
- package/dist-es/commands/CreateAccountAssociationCommand.js +23 -0
- package/dist-es/commands/CreateCloudConnectorCommand.js +22 -0
- package/dist-es/commands/CreateConnectorDestinationCommand.js +22 -0
- package/dist-es/commands/DeleteAccountAssociationCommand.js +22 -0
- package/dist-es/commands/DeleteCloudConnectorCommand.js +22 -0
- package/dist-es/commands/DeleteConnectorDestinationCommand.js +22 -0
- package/dist-es/commands/DeregisterAccountAssociationCommand.js +22 -0
- package/dist-es/commands/GetAccountAssociationCommand.js +23 -0
- package/dist-es/commands/GetCloudConnectorCommand.js +22 -0
- package/dist-es/commands/GetConnectorDestinationCommand.js +22 -0
- package/dist-es/commands/GetOtaTaskCommand.js +2 -1
- package/dist-es/commands/ListAccountAssociationsCommand.js +22 -0
- package/dist-es/commands/ListCloudConnectorsCommand.js +22 -0
- package/dist-es/commands/ListConnectorDestinationsCommand.js +22 -0
- package/dist-es/commands/ListDeviceDiscoveriesCommand.js +22 -0
- package/dist-es/commands/ListDiscoveredDevicesCommand.js +23 -0
- package/dist-es/commands/ListManagedThingAccountAssociationsCommand.js +22 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +23 -0
- package/dist-es/commands/RegisterAccountAssociationCommand.js +22 -0
- package/dist-es/commands/SendConnectorEventCommand.js +23 -0
- package/dist-es/commands/StartAccountAssociationRefreshCommand.js +23 -0
- package/dist-es/commands/TagResourceCommand.js +23 -0
- package/dist-es/commands/UntagResourceCommand.js +22 -0
- package/dist-es/commands/UpdateAccountAssociationCommand.js +22 -0
- package/dist-es/commands/UpdateCloudConnectorCommand.js +22 -0
- package/dist-es/commands/UpdateConnectorDestinationCommand.js +22 -0
- package/dist-es/commands/index.js +25 -0
- package/dist-es/models/models_0.js +168 -32
- package/dist-es/pagination/ListAccountAssociationsPaginator.js +4 -0
- package/dist-es/pagination/ListCloudConnectorsPaginator.js +4 -0
- package/dist-es/pagination/ListConnectorDestinationsPaginator.js +4 -0
- package/dist-es/pagination/ListDeviceDiscoveriesPaginator.js +4 -0
- package/dist-es/pagination/ListDiscoveredDevicesPaginator.js +4 -0
- package/dist-es/pagination/ListManagedThingAccountAssociationsPaginator.js +4 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +918 -17
- package/dist-types/IoTManagedIntegrations.d.ts +180 -0
- package/dist-types/IoTManagedIntegrationsClient.d.ts +27 -2
- package/dist-types/commands/CreateAccountAssociationCommand.d.ts +102 -0
- package/dist-types/commands/CreateCloudConnectorCommand.d.ts +159 -0
- package/dist-types/commands/CreateConnectorDestinationCommand.d.ts +108 -0
- package/dist-types/commands/CreateCredentialLockerCommand.d.ts +2 -4
- package/dist-types/commands/CreateDestinationCommand.d.ts +2 -4
- package/dist-types/commands/CreateEventLogConfigurationCommand.d.ts +2 -4
- package/dist-types/commands/CreateManagedThingCommand.d.ts +12 -5
- package/dist-types/commands/CreateNotificationConfigurationCommand.d.ts +4 -6
- package/dist-types/commands/CreateOtaTaskCommand.d.ts +7 -2
- package/dist-types/commands/CreateOtaTaskConfigurationCommand.d.ts +1 -2
- package/dist-types/commands/CreateProvisioningProfileCommand.d.ts +5 -5
- package/dist-types/commands/DeleteAccountAssociationCommand.d.ts +88 -0
- package/dist-types/commands/DeleteCloudConnectorCommand.d.ts +85 -0
- package/dist-types/commands/DeleteConnectorDestinationCommand.d.ts +85 -0
- package/dist-types/commands/DeleteCredentialLockerCommand.d.ts +2 -7
- package/dist-types/commands/DeleteDestinationCommand.d.ts +1 -2
- package/dist-types/commands/DeleteEventLogConfigurationCommand.d.ts +1 -2
- package/dist-types/commands/DeleteManagedThingCommand.d.ts +2 -5
- package/dist-types/commands/DeleteNotificationConfigurationCommand.d.ts +2 -3
- package/dist-types/commands/DeleteOtaTaskCommand.d.ts +4 -2
- package/dist-types/commands/DeleteOtaTaskConfigurationCommand.d.ts +1 -2
- package/dist-types/commands/DeleteProvisioningProfileCommand.d.ts +1 -2
- package/dist-types/commands/DeregisterAccountAssociationCommand.d.ts +86 -0
- package/dist-types/commands/GetAccountAssociationCommand.d.ts +100 -0
- package/dist-types/commands/GetCloudConnectorCommand.d.ts +151 -0
- package/dist-types/commands/GetConnectorDestinationCommand.d.ts +109 -0
- package/dist-types/commands/GetCredentialLockerCommand.d.ts +1 -2
- package/dist-types/commands/GetCustomEndpointCommand.d.ts +1 -2
- package/dist-types/commands/GetDefaultEncryptionConfigurationCommand.d.ts +1 -3
- package/dist-types/commands/GetDestinationCommand.d.ts +1 -2
- package/dist-types/commands/GetDeviceDiscoveryCommand.d.ts +3 -3
- package/dist-types/commands/GetEventLogConfigurationCommand.d.ts +1 -2
- package/dist-types/commands/GetHubConfigurationCommand.d.ts +1 -2
- package/dist-types/commands/GetManagedThingCapabilitiesCommand.d.ts +1 -2
- package/dist-types/commands/GetManagedThingCommand.d.ts +2 -2
- package/dist-types/commands/GetManagedThingConnectivityDataCommand.d.ts +1 -2
- package/dist-types/commands/GetManagedThingMetaDataCommand.d.ts +2 -3
- package/dist-types/commands/GetNotificationConfigurationCommand.d.ts +3 -4
- package/dist-types/commands/GetOtaTaskCommand.d.ts +4 -2
- package/dist-types/commands/GetOtaTaskConfigurationCommand.d.ts +1 -2
- package/dist-types/commands/GetProvisioningProfileCommand.d.ts +1 -2
- package/dist-types/commands/GetRuntimeLogConfigurationCommand.d.ts +2 -4
- package/dist-types/commands/GetSchemaVersionCommand.d.ts +7 -14
- package/dist-types/commands/ListAccountAssociationsCommand.d.ts +100 -0
- package/dist-types/commands/ListCloudConnectorsCommand.d.ts +150 -0
- package/dist-types/commands/ListConnectorDestinationsCommand.d.ts +94 -0
- package/dist-types/commands/ListCredentialLockersCommand.d.ts +1 -2
- package/dist-types/commands/ListDestinationsCommand.d.ts +1 -2
- package/dist-types/commands/ListDeviceDiscoveriesCommand.d.ts +100 -0
- package/dist-types/commands/ListDiscoveredDevicesCommand.d.ts +110 -0
- package/dist-types/commands/ListEventLogConfigurationsCommand.d.ts +1 -2
- package/dist-types/commands/ListManagedThingAccountAssociationsCommand.d.ts +93 -0
- package/dist-types/commands/ListManagedThingSchemasCommand.d.ts +1 -2
- package/dist-types/commands/ListManagedThingsCommand.d.ts +5 -3
- package/dist-types/commands/ListNotificationConfigurationsCommand.d.ts +2 -3
- package/dist-types/commands/ListOtaTaskConfigurationsCommand.d.ts +1 -2
- package/dist-types/commands/ListOtaTaskExecutionsCommand.d.ts +4 -2
- package/dist-types/commands/ListOtaTasksCommand.d.ts +4 -2
- package/dist-types/commands/ListProvisioningProfilesCommand.d.ts +1 -2
- package/dist-types/commands/ListSchemaVersionsCommand.d.ts +7 -8
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +86 -0
- package/dist-types/commands/PutDefaultEncryptionConfigurationCommand.d.ts +1 -3
- package/dist-types/commands/PutHubConfigurationCommand.d.ts +1 -2
- package/dist-types/commands/PutRuntimeLogConfigurationCommand.d.ts +2 -4
- package/dist-types/commands/RegisterAccountAssociationCommand.d.ts +94 -0
- package/dist-types/commands/RegisterCustomEndpointCommand.d.ts +2 -4
- package/dist-types/commands/ResetRuntimeLogConfigurationCommand.d.ts +2 -4
- package/dist-types/commands/SendConnectorEventCommand.d.ts +309 -0
- package/dist-types/commands/SendManagedThingCommandCommand.d.ts +5 -2
- package/dist-types/commands/StartAccountAssociationRefreshCommand.d.ts +90 -0
- package/dist-types/commands/StartDeviceDiscoveryCommand.d.ts +7 -6
- package/dist-types/commands/TagResourceCommand.d.ts +88 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +88 -0
- package/dist-types/commands/UpdateAccountAssociationCommand.d.ts +93 -0
- package/dist-types/commands/UpdateCloudConnectorCommand.d.ts +115 -0
- package/dist-types/commands/UpdateConnectorDestinationCommand.d.ts +101 -0
- package/dist-types/commands/UpdateDestinationCommand.d.ts +1 -2
- package/dist-types/commands/UpdateEventLogConfigurationCommand.d.ts +1 -2
- package/dist-types/commands/UpdateManagedThingCommand.d.ts +10 -2
- package/dist-types/commands/UpdateNotificationConfigurationCommand.d.ts +2 -3
- package/dist-types/commands/UpdateOtaTaskCommand.d.ts +1 -2
- package/dist-types/commands/index.d.ts +25 -0
- package/dist-types/models/models_0.d.ts +1953 -394
- package/dist-types/pagination/ListAccountAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListCloudConnectorsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListConnectorDestinationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDeviceDiscoveriesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListDiscoveredDevicesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListManagedThingAccountAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +225 -0
- package/dist-types/ts3.4/IoTManagedIntegrations.d.ts +436 -0
- package/dist-types/ts3.4/IoTManagedIntegrationsClient.d.ts +150 -0
- package/dist-types/ts3.4/commands/CreateAccountAssociationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateCloudConnectorCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateConnectorDestinationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteAccountAssociationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteCloudConnectorCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/DeleteConnectorDestinationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeregisterAccountAssociationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetAccountAssociationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetCloudConnectorCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetConnectorDestinationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAccountAssociationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListCloudConnectorsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListConnectorDestinationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListDeviceDiscoveriesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListDiscoveredDevicesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListManagedThingAccountAssociationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RegisterAccountAssociationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SendConnectorEventCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartAccountAssociationRefreshCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateAccountAssociationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UpdateCloudConnectorCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/UpdateConnectorDestinationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +25 -0
- package/dist-types/ts3.4/models/models_0.d.ts +510 -54
- package/dist-types/ts3.4/pagination/ListAccountAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCloudConnectorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListConnectorDestinationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDeviceDiscoveriesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDiscoveredDevicesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListManagedThingAccountAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +300 -0
- package/package.json +11 -11
|
@@ -3,7 +3,60 @@ import { requestBuilder as rb } from "@smithy/core";
|
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { IoTManagedIntegrationsServiceException as __BaseException } from "../models/IoTManagedIntegrationsServiceException";
|
|
6
|
-
import { AccessDeniedException, ConflictException, InternalFailureException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/models_0";
|
|
6
|
+
import { AccessDeniedException, ConflictException, InternalFailureException, InternalServerException, InvalidRequestException, LimitExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/models_0";
|
|
7
|
+
export const se_CreateAccountAssociationCommand = async (input, context) => {
|
|
8
|
+
const b = rb(input, context);
|
|
9
|
+
const headers = {
|
|
10
|
+
"content-type": "application/json",
|
|
11
|
+
};
|
|
12
|
+
b.bp("/account-associations");
|
|
13
|
+
let body;
|
|
14
|
+
body = JSON.stringify(take(input, {
|
|
15
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
16
|
+
ConnectorDestinationId: [],
|
|
17
|
+
Description: [],
|
|
18
|
+
Name: [],
|
|
19
|
+
Tags: (_) => _json(_),
|
|
20
|
+
}));
|
|
21
|
+
b.m("POST").h(headers).b(body);
|
|
22
|
+
return b.build();
|
|
23
|
+
};
|
|
24
|
+
export const se_CreateCloudConnectorCommand = async (input, context) => {
|
|
25
|
+
const b = rb(input, context);
|
|
26
|
+
const headers = {
|
|
27
|
+
"content-type": "application/json",
|
|
28
|
+
};
|
|
29
|
+
b.bp("/cloud-connectors");
|
|
30
|
+
let body;
|
|
31
|
+
body = JSON.stringify(take(input, {
|
|
32
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
33
|
+
Description: [],
|
|
34
|
+
EndpointConfig: (_) => _json(_),
|
|
35
|
+
EndpointType: [],
|
|
36
|
+
Name: [],
|
|
37
|
+
}));
|
|
38
|
+
b.m("POST").h(headers).b(body);
|
|
39
|
+
return b.build();
|
|
40
|
+
};
|
|
41
|
+
export const se_CreateConnectorDestinationCommand = async (input, context) => {
|
|
42
|
+
const b = rb(input, context);
|
|
43
|
+
const headers = {
|
|
44
|
+
"content-type": "application/json",
|
|
45
|
+
};
|
|
46
|
+
b.bp("/connector-destinations");
|
|
47
|
+
let body;
|
|
48
|
+
body = JSON.stringify(take(input, {
|
|
49
|
+
AuthConfig: (_) => _json(_),
|
|
50
|
+
AuthType: [],
|
|
51
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
52
|
+
CloudConnectorId: [],
|
|
53
|
+
Description: [],
|
|
54
|
+
Name: [],
|
|
55
|
+
SecretsManager: (_) => _json(_),
|
|
56
|
+
}));
|
|
57
|
+
b.m("POST").h(headers).b(body);
|
|
58
|
+
return b.build();
|
|
59
|
+
};
|
|
7
60
|
export const se_CreateCredentialLockerCommand = async (input, context) => {
|
|
8
61
|
const b = rb(input, context);
|
|
9
62
|
const headers = {
|
|
@@ -67,6 +120,7 @@ export const se_CreateManagedThingCommand = async (input, context) => {
|
|
|
67
120
|
Brand: [],
|
|
68
121
|
Capabilities: [],
|
|
69
122
|
CapabilityReport: (_) => _json(_),
|
|
123
|
+
CapabilitySchemas: (_) => se_CapabilitySchemas(_, context),
|
|
70
124
|
Classification: [],
|
|
71
125
|
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
72
126
|
CredentialLockerId: [],
|
|
@@ -154,6 +208,33 @@ export const se_CreateProvisioningProfileCommand = async (input, context) => {
|
|
|
154
208
|
b.m("POST").h(headers).b(body);
|
|
155
209
|
return b.build();
|
|
156
210
|
};
|
|
211
|
+
export const se_DeleteAccountAssociationCommand = async (input, context) => {
|
|
212
|
+
const b = rb(input, context);
|
|
213
|
+
const headers = {};
|
|
214
|
+
b.bp("/account-associations/{AccountAssociationId}");
|
|
215
|
+
b.p("AccountAssociationId", () => input.AccountAssociationId, "{AccountAssociationId}", false);
|
|
216
|
+
let body;
|
|
217
|
+
b.m("DELETE").h(headers).b(body);
|
|
218
|
+
return b.build();
|
|
219
|
+
};
|
|
220
|
+
export const se_DeleteCloudConnectorCommand = async (input, context) => {
|
|
221
|
+
const b = rb(input, context);
|
|
222
|
+
const headers = {};
|
|
223
|
+
b.bp("/cloud-connectors/{Identifier}");
|
|
224
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
225
|
+
let body;
|
|
226
|
+
b.m("DELETE").h(headers).b(body);
|
|
227
|
+
return b.build();
|
|
228
|
+
};
|
|
229
|
+
export const se_DeleteConnectorDestinationCommand = async (input, context) => {
|
|
230
|
+
const b = rb(input, context);
|
|
231
|
+
const headers = {};
|
|
232
|
+
b.bp("/connector-destinations/{Identifier}");
|
|
233
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
234
|
+
let body;
|
|
235
|
+
b.m("DELETE").h(headers).b(body);
|
|
236
|
+
return b.build();
|
|
237
|
+
};
|
|
157
238
|
export const se_DeleteCredentialLockerCommand = async (input, context) => {
|
|
158
239
|
const b = rb(input, context);
|
|
159
240
|
const headers = {};
|
|
@@ -229,6 +310,47 @@ export const se_DeleteProvisioningProfileCommand = async (input, context) => {
|
|
|
229
310
|
b.m("DELETE").h(headers).b(body);
|
|
230
311
|
return b.build();
|
|
231
312
|
};
|
|
313
|
+
export const se_DeregisterAccountAssociationCommand = async (input, context) => {
|
|
314
|
+
const b = rb(input, context);
|
|
315
|
+
const headers = {
|
|
316
|
+
"content-type": "application/json",
|
|
317
|
+
};
|
|
318
|
+
b.bp("/managed-thing-associations/deregister");
|
|
319
|
+
let body;
|
|
320
|
+
body = JSON.stringify(take(input, {
|
|
321
|
+
AccountAssociationId: [],
|
|
322
|
+
ManagedThingId: [],
|
|
323
|
+
}));
|
|
324
|
+
b.m("PUT").h(headers).b(body);
|
|
325
|
+
return b.build();
|
|
326
|
+
};
|
|
327
|
+
export const se_GetAccountAssociationCommand = async (input, context) => {
|
|
328
|
+
const b = rb(input, context);
|
|
329
|
+
const headers = {};
|
|
330
|
+
b.bp("/account-associations/{AccountAssociationId}");
|
|
331
|
+
b.p("AccountAssociationId", () => input.AccountAssociationId, "{AccountAssociationId}", false);
|
|
332
|
+
let body;
|
|
333
|
+
b.m("GET").h(headers).b(body);
|
|
334
|
+
return b.build();
|
|
335
|
+
};
|
|
336
|
+
export const se_GetCloudConnectorCommand = async (input, context) => {
|
|
337
|
+
const b = rb(input, context);
|
|
338
|
+
const headers = {};
|
|
339
|
+
b.bp("/cloud-connectors/{Identifier}");
|
|
340
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
341
|
+
let body;
|
|
342
|
+
b.m("GET").h(headers).b(body);
|
|
343
|
+
return b.build();
|
|
344
|
+
};
|
|
345
|
+
export const se_GetConnectorDestinationCommand = async (input, context) => {
|
|
346
|
+
const b = rb(input, context);
|
|
347
|
+
const headers = {};
|
|
348
|
+
b.bp("/connector-destinations/{Identifier}");
|
|
349
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
350
|
+
let body;
|
|
351
|
+
b.m("GET").h(headers).b(body);
|
|
352
|
+
return b.build();
|
|
353
|
+
};
|
|
232
354
|
export const se_GetCredentialLockerCommand = async (input, context) => {
|
|
233
355
|
const b = rb(input, context);
|
|
234
356
|
const headers = {};
|
|
@@ -392,6 +514,46 @@ export const se_GetSchemaVersionCommand = async (input, context) => {
|
|
|
392
514
|
b.m("GET").h(headers).q(query).b(body);
|
|
393
515
|
return b.build();
|
|
394
516
|
};
|
|
517
|
+
export const se_ListAccountAssociationsCommand = async (input, context) => {
|
|
518
|
+
const b = rb(input, context);
|
|
519
|
+
const headers = {};
|
|
520
|
+
b.bp("/account-associations");
|
|
521
|
+
const query = map({
|
|
522
|
+
[_CDI]: [, input[_CDI]],
|
|
523
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
524
|
+
[_NT]: [, input[_NT]],
|
|
525
|
+
});
|
|
526
|
+
let body;
|
|
527
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
528
|
+
return b.build();
|
|
529
|
+
};
|
|
530
|
+
export const se_ListCloudConnectorsCommand = async (input, context) => {
|
|
531
|
+
const b = rb(input, context);
|
|
532
|
+
const headers = {};
|
|
533
|
+
b.bp("/cloud-connectors");
|
|
534
|
+
const query = map({
|
|
535
|
+
[_T]: [, input[_T]],
|
|
536
|
+
[_LA]: [, input[_LA]],
|
|
537
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
538
|
+
[_NT]: [, input[_NT]],
|
|
539
|
+
});
|
|
540
|
+
let body;
|
|
541
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
542
|
+
return b.build();
|
|
543
|
+
};
|
|
544
|
+
export const se_ListConnectorDestinationsCommand = async (input, context) => {
|
|
545
|
+
const b = rb(input, context);
|
|
546
|
+
const headers = {};
|
|
547
|
+
b.bp("/connector-destinations");
|
|
548
|
+
const query = map({
|
|
549
|
+
[_CCI]: [, input[_CCI]],
|
|
550
|
+
[_NT]: [, input[_NT]],
|
|
551
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
552
|
+
});
|
|
553
|
+
let body;
|
|
554
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
555
|
+
return b.build();
|
|
556
|
+
};
|
|
395
557
|
export const se_ListCredentialLockersCommand = async (input, context) => {
|
|
396
558
|
const b = rb(input, context);
|
|
397
559
|
const headers = {};
|
|
@@ -416,6 +578,33 @@ export const se_ListDestinationsCommand = async (input, context) => {
|
|
|
416
578
|
b.m("GET").h(headers).q(query).b(body);
|
|
417
579
|
return b.build();
|
|
418
580
|
};
|
|
581
|
+
export const se_ListDeviceDiscoveriesCommand = async (input, context) => {
|
|
582
|
+
const b = rb(input, context);
|
|
583
|
+
const headers = {};
|
|
584
|
+
b.bp("/device-discoveries");
|
|
585
|
+
const query = map({
|
|
586
|
+
[_NT]: [, input[_NT]],
|
|
587
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
588
|
+
[_TF]: [, input[_TF]],
|
|
589
|
+
[_SF]: [, input[_SF]],
|
|
590
|
+
});
|
|
591
|
+
let body;
|
|
592
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
593
|
+
return b.build();
|
|
594
|
+
};
|
|
595
|
+
export const se_ListDiscoveredDevicesCommand = async (input, context) => {
|
|
596
|
+
const b = rb(input, context);
|
|
597
|
+
const headers = {};
|
|
598
|
+
b.bp("/device-discoveries/{Identifier}/devices");
|
|
599
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
600
|
+
const query = map({
|
|
601
|
+
[_NT]: [, input[_NT]],
|
|
602
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
603
|
+
});
|
|
604
|
+
let body;
|
|
605
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
606
|
+
return b.build();
|
|
607
|
+
};
|
|
419
608
|
export const se_ListEventLogConfigurationsCommand = async (input, context) => {
|
|
420
609
|
const b = rb(input, context);
|
|
421
610
|
const headers = {};
|
|
@@ -428,6 +617,20 @@ export const se_ListEventLogConfigurationsCommand = async (input, context) => {
|
|
|
428
617
|
b.m("GET").h(headers).q(query).b(body);
|
|
429
618
|
return b.build();
|
|
430
619
|
};
|
|
620
|
+
export const se_ListManagedThingAccountAssociationsCommand = async (input, context) => {
|
|
621
|
+
const b = rb(input, context);
|
|
622
|
+
const headers = {};
|
|
623
|
+
b.bp("/managed-thing-associations");
|
|
624
|
+
const query = map({
|
|
625
|
+
[_MTI]: [, input[_MTI]],
|
|
626
|
+
[_AAI]: [, input[_AAI]],
|
|
627
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
628
|
+
[_NT]: [, input[_NT]],
|
|
629
|
+
});
|
|
630
|
+
let body;
|
|
631
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
632
|
+
return b.build();
|
|
633
|
+
};
|
|
431
634
|
export const se_ListManagedThingsCommand = async (input, context) => {
|
|
432
635
|
const b = rb(input, context);
|
|
433
636
|
const headers = {};
|
|
@@ -438,6 +641,8 @@ export const se_ListManagedThingsCommand = async (input, context) => {
|
|
|
438
641
|
[_RF]: [, input[_RF]],
|
|
439
642
|
[_PCIF]: [, input[_PCIF]],
|
|
440
643
|
[_CPIF]: [, input[_CPIF]],
|
|
644
|
+
[_CDIF]: [, input[_CDIF]],
|
|
645
|
+
[_CDIFo]: [, input[_CDIFo]],
|
|
441
646
|
[_SNF]: [, input[_SNF]],
|
|
442
647
|
[_PSF]: [, input[_PSF]],
|
|
443
648
|
[_NT]: [, input[_NT]],
|
|
@@ -540,6 +745,15 @@ export const se_ListSchemaVersionsCommand = async (input, context) => {
|
|
|
540
745
|
b.m("GET").h(headers).q(query).b(body);
|
|
541
746
|
return b.build();
|
|
542
747
|
};
|
|
748
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
749
|
+
const b = rb(input, context);
|
|
750
|
+
const headers = {};
|
|
751
|
+
b.bp("/tags/{ResourceArn}");
|
|
752
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
753
|
+
let body;
|
|
754
|
+
b.m("GET").h(headers).b(body);
|
|
755
|
+
return b.build();
|
|
756
|
+
};
|
|
543
757
|
export const se_PutDefaultEncryptionConfigurationCommand = async (input, context) => {
|
|
544
758
|
const b = rb(input, context);
|
|
545
759
|
const headers = {
|
|
@@ -581,6 +795,21 @@ export const se_PutRuntimeLogConfigurationCommand = async (input, context) => {
|
|
|
581
795
|
b.m("PUT").h(headers).b(body);
|
|
582
796
|
return b.build();
|
|
583
797
|
};
|
|
798
|
+
export const se_RegisterAccountAssociationCommand = async (input, context) => {
|
|
799
|
+
const b = rb(input, context);
|
|
800
|
+
const headers = {
|
|
801
|
+
"content-type": "application/json",
|
|
802
|
+
};
|
|
803
|
+
b.bp("/managed-thing-associations/register");
|
|
804
|
+
let body;
|
|
805
|
+
body = JSON.stringify(take(input, {
|
|
806
|
+
AccountAssociationId: [],
|
|
807
|
+
DeviceDiscoveryId: [],
|
|
808
|
+
ManagedThingId: [],
|
|
809
|
+
}));
|
|
810
|
+
b.m("PUT").h(headers).b(body);
|
|
811
|
+
return b.build();
|
|
812
|
+
};
|
|
584
813
|
export const se_RegisterCustomEndpointCommand = async (input, context) => {
|
|
585
814
|
const b = rb(input, context);
|
|
586
815
|
const headers = {};
|
|
@@ -598,6 +827,29 @@ export const se_ResetRuntimeLogConfigurationCommand = async (input, context) =>
|
|
|
598
827
|
b.m("DELETE").h(headers).b(body);
|
|
599
828
|
return b.build();
|
|
600
829
|
};
|
|
830
|
+
export const se_SendConnectorEventCommand = async (input, context) => {
|
|
831
|
+
const b = rb(input, context);
|
|
832
|
+
const headers = {
|
|
833
|
+
"content-type": "application/json",
|
|
834
|
+
};
|
|
835
|
+
b.bp("/connector-event/{ConnectorId}");
|
|
836
|
+
b.p("ConnectorId", () => input.ConnectorId, "{ConnectorId}", false);
|
|
837
|
+
let body;
|
|
838
|
+
body = JSON.stringify(take(input, {
|
|
839
|
+
ConnectorDeviceId: [],
|
|
840
|
+
DeviceDiscoveryId: [],
|
|
841
|
+
Devices: (_) => se_Devices(_, context),
|
|
842
|
+
MatterEndpoint: (_) => se_MatterEndpoint(_, context),
|
|
843
|
+
Message: [],
|
|
844
|
+
Operation: [],
|
|
845
|
+
OperationVersion: [],
|
|
846
|
+
StatusCode: [],
|
|
847
|
+
TraceId: [],
|
|
848
|
+
UserId: [],
|
|
849
|
+
}));
|
|
850
|
+
b.m("POST").h(headers).b(body);
|
|
851
|
+
return b.build();
|
|
852
|
+
};
|
|
601
853
|
export const se_SendManagedThingCommandCommand = async (input, context) => {
|
|
602
854
|
const b = rb(input, context);
|
|
603
855
|
const headers = {
|
|
@@ -607,12 +859,22 @@ export const se_SendManagedThingCommandCommand = async (input, context) => {
|
|
|
607
859
|
b.p("ManagedThingId", () => input.ManagedThingId, "{ManagedThingId}", false);
|
|
608
860
|
let body;
|
|
609
861
|
body = JSON.stringify(take(input, {
|
|
862
|
+
AccountAssociationId: [],
|
|
610
863
|
ConnectorAssociationId: [],
|
|
611
864
|
Endpoints: (_) => se_CommandEndpoints(_, context),
|
|
612
865
|
}));
|
|
613
866
|
b.m("POST").h(headers).b(body);
|
|
614
867
|
return b.build();
|
|
615
868
|
};
|
|
869
|
+
export const se_StartAccountAssociationRefreshCommand = async (input, context) => {
|
|
870
|
+
const b = rb(input, context);
|
|
871
|
+
const headers = {};
|
|
872
|
+
b.bp("/account-associations/{AccountAssociationId}/refresh");
|
|
873
|
+
b.p("AccountAssociationId", () => input.AccountAssociationId, "{AccountAssociationId}", false);
|
|
874
|
+
let body;
|
|
875
|
+
b.m("POST").h(headers).b(body);
|
|
876
|
+
return b.build();
|
|
877
|
+
};
|
|
616
878
|
export const se_StartDeviceDiscoveryCommand = async (input, context) => {
|
|
617
879
|
const b = rb(input, context);
|
|
618
880
|
const headers = {
|
|
@@ -621,17 +883,93 @@ export const se_StartDeviceDiscoveryCommand = async (input, context) => {
|
|
|
621
883
|
b.bp("/device-discoveries");
|
|
622
884
|
let body;
|
|
623
885
|
body = JSON.stringify(take(input, {
|
|
886
|
+
AccountAssociationId: [],
|
|
624
887
|
AuthenticationMaterial: [],
|
|
625
888
|
AuthenticationMaterialType: [],
|
|
626
889
|
ClientToken: [],
|
|
627
890
|
ConnectorAssociationIdentifier: [],
|
|
628
891
|
ControllerIdentifier: [],
|
|
892
|
+
CustomProtocolDetail: (_) => _json(_),
|
|
629
893
|
DiscoveryType: [],
|
|
630
894
|
Tags: (_) => _json(_),
|
|
631
895
|
}));
|
|
632
896
|
b.m("POST").h(headers).b(body);
|
|
633
897
|
return b.build();
|
|
634
898
|
};
|
|
899
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
900
|
+
const b = rb(input, context);
|
|
901
|
+
const headers = {
|
|
902
|
+
"content-type": "application/json",
|
|
903
|
+
};
|
|
904
|
+
b.bp("/tags/{ResourceArn}");
|
|
905
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
906
|
+
let body;
|
|
907
|
+
body = JSON.stringify(take(input, {
|
|
908
|
+
Tags: (_) => _json(_),
|
|
909
|
+
}));
|
|
910
|
+
b.m("POST").h(headers).b(body);
|
|
911
|
+
return b.build();
|
|
912
|
+
};
|
|
913
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
914
|
+
const b = rb(input, context);
|
|
915
|
+
const headers = {};
|
|
916
|
+
b.bp("/tags/{ResourceArn}");
|
|
917
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
918
|
+
const query = map({
|
|
919
|
+
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
920
|
+
});
|
|
921
|
+
let body;
|
|
922
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
923
|
+
return b.build();
|
|
924
|
+
};
|
|
925
|
+
export const se_UpdateAccountAssociationCommand = async (input, context) => {
|
|
926
|
+
const b = rb(input, context);
|
|
927
|
+
const headers = {
|
|
928
|
+
"content-type": "application/json",
|
|
929
|
+
};
|
|
930
|
+
b.bp("/account-associations/{AccountAssociationId}");
|
|
931
|
+
b.p("AccountAssociationId", () => input.AccountAssociationId, "{AccountAssociationId}", false);
|
|
932
|
+
let body;
|
|
933
|
+
body = JSON.stringify(take(input, {
|
|
934
|
+
Description: [],
|
|
935
|
+
Name: [],
|
|
936
|
+
}));
|
|
937
|
+
b.m("PUT").h(headers).b(body);
|
|
938
|
+
return b.build();
|
|
939
|
+
};
|
|
940
|
+
export const se_UpdateCloudConnectorCommand = async (input, context) => {
|
|
941
|
+
const b = rb(input, context);
|
|
942
|
+
const headers = {
|
|
943
|
+
"content-type": "application/json",
|
|
944
|
+
};
|
|
945
|
+
b.bp("/cloud-connectors/{Identifier}");
|
|
946
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
947
|
+
let body;
|
|
948
|
+
body = JSON.stringify(take(input, {
|
|
949
|
+
Description: [],
|
|
950
|
+
Name: [],
|
|
951
|
+
}));
|
|
952
|
+
b.m("PUT").h(headers).b(body);
|
|
953
|
+
return b.build();
|
|
954
|
+
};
|
|
955
|
+
export const se_UpdateConnectorDestinationCommand = async (input, context) => {
|
|
956
|
+
const b = rb(input, context);
|
|
957
|
+
const headers = {
|
|
958
|
+
"content-type": "application/json",
|
|
959
|
+
};
|
|
960
|
+
b.bp("/connector-destinations/{Identifier}");
|
|
961
|
+
b.p("Identifier", () => input.Identifier, "{Identifier}", false);
|
|
962
|
+
let body;
|
|
963
|
+
body = JSON.stringify(take(input, {
|
|
964
|
+
AuthConfig: (_) => _json(_),
|
|
965
|
+
AuthType: [],
|
|
966
|
+
Description: [],
|
|
967
|
+
Name: [],
|
|
968
|
+
SecretsManager: (_) => _json(_),
|
|
969
|
+
}));
|
|
970
|
+
b.m("PUT").h(headers).b(body);
|
|
971
|
+
return b.build();
|
|
972
|
+
};
|
|
635
973
|
export const se_UpdateDestinationCommand = async (input, context) => {
|
|
636
974
|
const b = rb(input, context);
|
|
637
975
|
const headers = {
|
|
@@ -675,6 +1013,7 @@ export const se_UpdateManagedThingCommand = async (input, context) => {
|
|
|
675
1013
|
Brand: [],
|
|
676
1014
|
Capabilities: [],
|
|
677
1015
|
CapabilityReport: (_) => _json(_),
|
|
1016
|
+
CapabilitySchemas: (_) => se_CapabilitySchemas(_, context),
|
|
678
1017
|
Classification: [],
|
|
679
1018
|
CredentialLockerId: [],
|
|
680
1019
|
HubNetworkMode: [],
|
|
@@ -716,7 +1055,7 @@ export const se_UpdateOtaTaskCommand = async (input, context) => {
|
|
|
716
1055
|
b.m("PUT").h(headers).b(body);
|
|
717
1056
|
return b.build();
|
|
718
1057
|
};
|
|
719
|
-
export const
|
|
1058
|
+
export const de_CreateAccountAssociationCommand = async (output, context) => {
|
|
720
1059
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
721
1060
|
return de_CommandError(output, context);
|
|
722
1061
|
}
|
|
@@ -725,14 +1064,15 @@ export const de_CreateCredentialLockerCommand = async (output, context) => {
|
|
|
725
1064
|
});
|
|
726
1065
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
727
1066
|
const doc = take(data, {
|
|
1067
|
+
AccountAssociationId: __expectString,
|
|
728
1068
|
Arn: __expectString,
|
|
729
|
-
|
|
730
|
-
|
|
1069
|
+
AssociationState: __expectString,
|
|
1070
|
+
OAuthAuthorizationUrl: __expectString,
|
|
731
1071
|
});
|
|
732
1072
|
Object.assign(contents, doc);
|
|
733
1073
|
return contents;
|
|
734
1074
|
};
|
|
735
|
-
export const
|
|
1075
|
+
export const de_CreateCloudConnectorCommand = async (output, context) => {
|
|
736
1076
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
737
1077
|
return de_CommandError(output, context);
|
|
738
1078
|
}
|
|
@@ -741,12 +1081,12 @@ export const de_CreateDestinationCommand = async (output, context) => {
|
|
|
741
1081
|
});
|
|
742
1082
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
743
1083
|
const doc = take(data, {
|
|
744
|
-
|
|
1084
|
+
Id: __expectString,
|
|
745
1085
|
});
|
|
746
1086
|
Object.assign(contents, doc);
|
|
747
1087
|
return contents;
|
|
748
1088
|
};
|
|
749
|
-
export const
|
|
1089
|
+
export const de_CreateConnectorDestinationCommand = async (output, context) => {
|
|
750
1090
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
751
1091
|
return de_CommandError(output, context);
|
|
752
1092
|
}
|
|
@@ -760,7 +1100,7 @@ export const de_CreateEventLogConfigurationCommand = async (output, context) =>
|
|
|
760
1100
|
Object.assign(contents, doc);
|
|
761
1101
|
return contents;
|
|
762
1102
|
};
|
|
763
|
-
export const
|
|
1103
|
+
export const de_CreateCredentialLockerCommand = async (output, context) => {
|
|
764
1104
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
765
1105
|
return de_CommandError(output, context);
|
|
766
1106
|
}
|
|
@@ -776,7 +1116,7 @@ export const de_CreateManagedThingCommand = async (output, context) => {
|
|
|
776
1116
|
Object.assign(contents, doc);
|
|
777
1117
|
return contents;
|
|
778
1118
|
};
|
|
779
|
-
export const
|
|
1119
|
+
export const de_CreateDestinationCommand = async (output, context) => {
|
|
780
1120
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
781
1121
|
return de_CommandError(output, context);
|
|
782
1122
|
}
|
|
@@ -785,12 +1125,56 @@ export const de_CreateNotificationConfigurationCommand = async (output, context)
|
|
|
785
1125
|
});
|
|
786
1126
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
787
1127
|
const doc = take(data, {
|
|
788
|
-
|
|
1128
|
+
Name: __expectString,
|
|
789
1129
|
});
|
|
790
1130
|
Object.assign(contents, doc);
|
|
791
1131
|
return contents;
|
|
792
1132
|
};
|
|
793
|
-
export const
|
|
1133
|
+
export const de_CreateEventLogConfigurationCommand = async (output, context) => {
|
|
1134
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1135
|
+
return de_CommandError(output, context);
|
|
1136
|
+
}
|
|
1137
|
+
const contents = map({
|
|
1138
|
+
$metadata: deserializeMetadata(output),
|
|
1139
|
+
});
|
|
1140
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1141
|
+
const doc = take(data, {
|
|
1142
|
+
Id: __expectString,
|
|
1143
|
+
});
|
|
1144
|
+
Object.assign(contents, doc);
|
|
1145
|
+
return contents;
|
|
1146
|
+
};
|
|
1147
|
+
export const de_CreateManagedThingCommand = async (output, context) => {
|
|
1148
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1149
|
+
return de_CommandError(output, context);
|
|
1150
|
+
}
|
|
1151
|
+
const contents = map({
|
|
1152
|
+
$metadata: deserializeMetadata(output),
|
|
1153
|
+
});
|
|
1154
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1155
|
+
const doc = take(data, {
|
|
1156
|
+
Arn: __expectString,
|
|
1157
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1158
|
+
Id: __expectString,
|
|
1159
|
+
});
|
|
1160
|
+
Object.assign(contents, doc);
|
|
1161
|
+
return contents;
|
|
1162
|
+
};
|
|
1163
|
+
export const de_CreateNotificationConfigurationCommand = async (output, context) => {
|
|
1164
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1165
|
+
return de_CommandError(output, context);
|
|
1166
|
+
}
|
|
1167
|
+
const contents = map({
|
|
1168
|
+
$metadata: deserializeMetadata(output),
|
|
1169
|
+
});
|
|
1170
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1171
|
+
const doc = take(data, {
|
|
1172
|
+
EventType: __expectString,
|
|
1173
|
+
});
|
|
1174
|
+
Object.assign(contents, doc);
|
|
1175
|
+
return contents;
|
|
1176
|
+
};
|
|
1177
|
+
export const de_CreateOtaTaskCommand = async (output, context) => {
|
|
794
1178
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
795
1179
|
return de_CommandError(output, context);
|
|
796
1180
|
}
|
|
@@ -839,6 +1223,36 @@ export const de_CreateProvisioningProfileCommand = async (output, context) => {
|
|
|
839
1223
|
Object.assign(contents, doc);
|
|
840
1224
|
return contents;
|
|
841
1225
|
};
|
|
1226
|
+
export const de_DeleteAccountAssociationCommand = async (output, context) => {
|
|
1227
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1228
|
+
return de_CommandError(output, context);
|
|
1229
|
+
}
|
|
1230
|
+
const contents = map({
|
|
1231
|
+
$metadata: deserializeMetadata(output),
|
|
1232
|
+
});
|
|
1233
|
+
await collectBody(output.body, context);
|
|
1234
|
+
return contents;
|
|
1235
|
+
};
|
|
1236
|
+
export const de_DeleteCloudConnectorCommand = async (output, context) => {
|
|
1237
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1238
|
+
return de_CommandError(output, context);
|
|
1239
|
+
}
|
|
1240
|
+
const contents = map({
|
|
1241
|
+
$metadata: deserializeMetadata(output),
|
|
1242
|
+
});
|
|
1243
|
+
await collectBody(output.body, context);
|
|
1244
|
+
return contents;
|
|
1245
|
+
};
|
|
1246
|
+
export const de_DeleteConnectorDestinationCommand = async (output, context) => {
|
|
1247
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1248
|
+
return de_CommandError(output, context);
|
|
1249
|
+
}
|
|
1250
|
+
const contents = map({
|
|
1251
|
+
$metadata: deserializeMetadata(output),
|
|
1252
|
+
});
|
|
1253
|
+
await collectBody(output.body, context);
|
|
1254
|
+
return contents;
|
|
1255
|
+
};
|
|
842
1256
|
export const de_DeleteCredentialLockerCommand = async (output, context) => {
|
|
843
1257
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
844
1258
|
return de_CommandError(output, context);
|
|
@@ -919,6 +1333,78 @@ export const de_DeleteProvisioningProfileCommand = async (output, context) => {
|
|
|
919
1333
|
await collectBody(output.body, context);
|
|
920
1334
|
return contents;
|
|
921
1335
|
};
|
|
1336
|
+
export const de_DeregisterAccountAssociationCommand = async (output, context) => {
|
|
1337
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1338
|
+
return de_CommandError(output, context);
|
|
1339
|
+
}
|
|
1340
|
+
const contents = map({
|
|
1341
|
+
$metadata: deserializeMetadata(output),
|
|
1342
|
+
});
|
|
1343
|
+
await collectBody(output.body, context);
|
|
1344
|
+
return contents;
|
|
1345
|
+
};
|
|
1346
|
+
export const de_GetAccountAssociationCommand = async (output, context) => {
|
|
1347
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1348
|
+
return de_CommandError(output, context);
|
|
1349
|
+
}
|
|
1350
|
+
const contents = map({
|
|
1351
|
+
$metadata: deserializeMetadata(output),
|
|
1352
|
+
});
|
|
1353
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1354
|
+
const doc = take(data, {
|
|
1355
|
+
AccountAssociationId: __expectString,
|
|
1356
|
+
Arn: __expectString,
|
|
1357
|
+
AssociationState: __expectString,
|
|
1358
|
+
ConnectorDestinationId: __expectString,
|
|
1359
|
+
Description: __expectString,
|
|
1360
|
+
ErrorMessage: __expectString,
|
|
1361
|
+
Name: __expectString,
|
|
1362
|
+
OAuthAuthorizationUrl: __expectString,
|
|
1363
|
+
Tags: _json,
|
|
1364
|
+
});
|
|
1365
|
+
Object.assign(contents, doc);
|
|
1366
|
+
return contents;
|
|
1367
|
+
};
|
|
1368
|
+
export const de_GetCloudConnectorCommand = async (output, context) => {
|
|
1369
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1370
|
+
return de_CommandError(output, context);
|
|
1371
|
+
}
|
|
1372
|
+
const contents = map({
|
|
1373
|
+
$metadata: deserializeMetadata(output),
|
|
1374
|
+
});
|
|
1375
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1376
|
+
const doc = take(data, {
|
|
1377
|
+
Description: __expectString,
|
|
1378
|
+
EndpointConfig: _json,
|
|
1379
|
+
EndpointType: __expectString,
|
|
1380
|
+
Id: __expectString,
|
|
1381
|
+
Name: __expectString,
|
|
1382
|
+
Type: __expectString,
|
|
1383
|
+
});
|
|
1384
|
+
Object.assign(contents, doc);
|
|
1385
|
+
return contents;
|
|
1386
|
+
};
|
|
1387
|
+
export const de_GetConnectorDestinationCommand = async (output, context) => {
|
|
1388
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1389
|
+
return de_CommandError(output, context);
|
|
1390
|
+
}
|
|
1391
|
+
const contents = map({
|
|
1392
|
+
$metadata: deserializeMetadata(output),
|
|
1393
|
+
});
|
|
1394
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1395
|
+
const doc = take(data, {
|
|
1396
|
+
AuthConfig: _json,
|
|
1397
|
+
AuthType: __expectString,
|
|
1398
|
+
CloudConnectorId: __expectString,
|
|
1399
|
+
Description: __expectString,
|
|
1400
|
+
Id: __expectString,
|
|
1401
|
+
Name: __expectString,
|
|
1402
|
+
OAuthCompleteRedirectUrl: __expectString,
|
|
1403
|
+
SecretsManager: _json,
|
|
1404
|
+
});
|
|
1405
|
+
Object.assign(contents, doc);
|
|
1406
|
+
return contents;
|
|
1407
|
+
};
|
|
922
1408
|
export const de_GetCredentialLockerCommand = async (output, context) => {
|
|
923
1409
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
924
1410
|
return de_CommandError(output, context);
|
|
@@ -997,6 +1483,7 @@ export const de_GetDeviceDiscoveryCommand = async (output, context) => {
|
|
|
997
1483
|
});
|
|
998
1484
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
999
1485
|
const doc = take(data, {
|
|
1486
|
+
AccountAssociationId: __expectString,
|
|
1000
1487
|
Arn: __expectString,
|
|
1001
1488
|
ConnectorAssociationId: __expectString,
|
|
1002
1489
|
ControllerId: __expectString,
|
|
@@ -1056,6 +1543,7 @@ export const de_GetManagedThingCommand = async (output, context) => {
|
|
|
1056
1543
|
Arn: __expectString,
|
|
1057
1544
|
Brand: __expectString,
|
|
1058
1545
|
Classification: __expectString,
|
|
1546
|
+
ConnectorDestinationId: __expectString,
|
|
1059
1547
|
ConnectorDeviceId: __expectString,
|
|
1060
1548
|
ConnectorPolicyId: __expectString,
|
|
1061
1549
|
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
@@ -1180,6 +1668,7 @@ export const de_GetOtaTaskCommand = async (output, context) => {
|
|
|
1180
1668
|
Protocol: __expectString,
|
|
1181
1669
|
S3Url: __expectString,
|
|
1182
1670
|
Status: __expectString,
|
|
1671
|
+
Tags: _json,
|
|
1183
1672
|
Target: _json,
|
|
1184
1673
|
TaskArn: __expectString,
|
|
1185
1674
|
TaskConfigurationId: __expectString,
|
|
@@ -1261,6 +1750,51 @@ export const de_GetSchemaVersionCommand = async (output, context) => {
|
|
|
1261
1750
|
Object.assign(contents, doc);
|
|
1262
1751
|
return contents;
|
|
1263
1752
|
};
|
|
1753
|
+
export const de_ListAccountAssociationsCommand = async (output, context) => {
|
|
1754
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1755
|
+
return de_CommandError(output, context);
|
|
1756
|
+
}
|
|
1757
|
+
const contents = map({
|
|
1758
|
+
$metadata: deserializeMetadata(output),
|
|
1759
|
+
});
|
|
1760
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1761
|
+
const doc = take(data, {
|
|
1762
|
+
Items: _json,
|
|
1763
|
+
NextToken: __expectString,
|
|
1764
|
+
});
|
|
1765
|
+
Object.assign(contents, doc);
|
|
1766
|
+
return contents;
|
|
1767
|
+
};
|
|
1768
|
+
export const de_ListCloudConnectorsCommand = async (output, context) => {
|
|
1769
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1770
|
+
return de_CommandError(output, context);
|
|
1771
|
+
}
|
|
1772
|
+
const contents = map({
|
|
1773
|
+
$metadata: deserializeMetadata(output),
|
|
1774
|
+
});
|
|
1775
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1776
|
+
const doc = take(data, {
|
|
1777
|
+
Items: _json,
|
|
1778
|
+
NextToken: __expectString,
|
|
1779
|
+
});
|
|
1780
|
+
Object.assign(contents, doc);
|
|
1781
|
+
return contents;
|
|
1782
|
+
};
|
|
1783
|
+
export const de_ListConnectorDestinationsCommand = async (output, context) => {
|
|
1784
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1785
|
+
return de_CommandError(output, context);
|
|
1786
|
+
}
|
|
1787
|
+
const contents = map({
|
|
1788
|
+
$metadata: deserializeMetadata(output),
|
|
1789
|
+
});
|
|
1790
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1791
|
+
const doc = take(data, {
|
|
1792
|
+
ConnectorDestinationList: _json,
|
|
1793
|
+
NextToken: __expectString,
|
|
1794
|
+
});
|
|
1795
|
+
Object.assign(contents, doc);
|
|
1796
|
+
return contents;
|
|
1797
|
+
};
|
|
1264
1798
|
export const de_ListCredentialLockersCommand = async (output, context) => {
|
|
1265
1799
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1266
1800
|
return de_CommandError(output, context);
|
|
@@ -1291,6 +1825,36 @@ export const de_ListDestinationsCommand = async (output, context) => {
|
|
|
1291
1825
|
Object.assign(contents, doc);
|
|
1292
1826
|
return contents;
|
|
1293
1827
|
};
|
|
1828
|
+
export const de_ListDeviceDiscoveriesCommand = async (output, context) => {
|
|
1829
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1830
|
+
return de_CommandError(output, context);
|
|
1831
|
+
}
|
|
1832
|
+
const contents = map({
|
|
1833
|
+
$metadata: deserializeMetadata(output),
|
|
1834
|
+
});
|
|
1835
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1836
|
+
const doc = take(data, {
|
|
1837
|
+
Items: _json,
|
|
1838
|
+
NextToken: __expectString,
|
|
1839
|
+
});
|
|
1840
|
+
Object.assign(contents, doc);
|
|
1841
|
+
return contents;
|
|
1842
|
+
};
|
|
1843
|
+
export const de_ListDiscoveredDevicesCommand = async (output, context) => {
|
|
1844
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1845
|
+
return de_CommandError(output, context);
|
|
1846
|
+
}
|
|
1847
|
+
const contents = map({
|
|
1848
|
+
$metadata: deserializeMetadata(output),
|
|
1849
|
+
});
|
|
1850
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1851
|
+
const doc = take(data, {
|
|
1852
|
+
Items: (_) => de_DiscoveredDeviceListDefinition(_, context),
|
|
1853
|
+
NextToken: __expectString,
|
|
1854
|
+
});
|
|
1855
|
+
Object.assign(contents, doc);
|
|
1856
|
+
return contents;
|
|
1857
|
+
};
|
|
1294
1858
|
export const de_ListEventLogConfigurationsCommand = async (output, context) => {
|
|
1295
1859
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1296
1860
|
return de_CommandError(output, context);
|
|
@@ -1306,6 +1870,21 @@ export const de_ListEventLogConfigurationsCommand = async (output, context) => {
|
|
|
1306
1870
|
Object.assign(contents, doc);
|
|
1307
1871
|
return contents;
|
|
1308
1872
|
};
|
|
1873
|
+
export const de_ListManagedThingAccountAssociationsCommand = async (output, context) => {
|
|
1874
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1875
|
+
return de_CommandError(output, context);
|
|
1876
|
+
}
|
|
1877
|
+
const contents = map({
|
|
1878
|
+
$metadata: deserializeMetadata(output),
|
|
1879
|
+
});
|
|
1880
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1881
|
+
const doc = take(data, {
|
|
1882
|
+
Items: _json,
|
|
1883
|
+
NextToken: __expectString,
|
|
1884
|
+
});
|
|
1885
|
+
Object.assign(contents, doc);
|
|
1886
|
+
return contents;
|
|
1887
|
+
};
|
|
1309
1888
|
export const de_ListManagedThingsCommand = async (output, context) => {
|
|
1310
1889
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1311
1890
|
return de_CommandError(output, context);
|
|
@@ -1426,6 +2005,20 @@ export const de_ListSchemaVersionsCommand = async (output, context) => {
|
|
|
1426
2005
|
Object.assign(contents, doc);
|
|
1427
2006
|
return contents;
|
|
1428
2007
|
};
|
|
2008
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2009
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2010
|
+
return de_CommandError(output, context);
|
|
2011
|
+
}
|
|
2012
|
+
const contents = map({
|
|
2013
|
+
$metadata: deserializeMetadata(output),
|
|
2014
|
+
});
|
|
2015
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2016
|
+
const doc = take(data, {
|
|
2017
|
+
tags: _json,
|
|
2018
|
+
});
|
|
2019
|
+
Object.assign(contents, doc);
|
|
2020
|
+
return contents;
|
|
2021
|
+
};
|
|
1429
2022
|
export const de_PutDefaultEncryptionConfigurationCommand = async (output, context) => {
|
|
1430
2023
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1431
2024
|
return de_CommandError(output, context);
|
|
@@ -1466,6 +2059,22 @@ export const de_PutRuntimeLogConfigurationCommand = async (output, context) => {
|
|
|
1466
2059
|
await collectBody(output.body, context);
|
|
1467
2060
|
return contents;
|
|
1468
2061
|
};
|
|
2062
|
+
export const de_RegisterAccountAssociationCommand = async (output, context) => {
|
|
2063
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2064
|
+
return de_CommandError(output, context);
|
|
2065
|
+
}
|
|
2066
|
+
const contents = map({
|
|
2067
|
+
$metadata: deserializeMetadata(output),
|
|
2068
|
+
});
|
|
2069
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2070
|
+
const doc = take(data, {
|
|
2071
|
+
AccountAssociationId: __expectString,
|
|
2072
|
+
DeviceDiscoveryId: __expectString,
|
|
2073
|
+
ManagedThingId: __expectString,
|
|
2074
|
+
});
|
|
2075
|
+
Object.assign(contents, doc);
|
|
2076
|
+
return contents;
|
|
2077
|
+
};
|
|
1469
2078
|
export const de_RegisterCustomEndpointCommand = async (output, context) => {
|
|
1470
2079
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1471
2080
|
return de_CommandError(output, context);
|
|
@@ -1490,6 +2099,20 @@ export const de_ResetRuntimeLogConfigurationCommand = async (output, context) =>
|
|
|
1490
2099
|
await collectBody(output.body, context);
|
|
1491
2100
|
return contents;
|
|
1492
2101
|
};
|
|
2102
|
+
export const de_SendConnectorEventCommand = async (output, context) => {
|
|
2103
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2104
|
+
return de_CommandError(output, context);
|
|
2105
|
+
}
|
|
2106
|
+
const contents = map({
|
|
2107
|
+
$metadata: deserializeMetadata(output),
|
|
2108
|
+
});
|
|
2109
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2110
|
+
const doc = take(data, {
|
|
2111
|
+
ConnectorId: __expectString,
|
|
2112
|
+
});
|
|
2113
|
+
Object.assign(contents, doc);
|
|
2114
|
+
return contents;
|
|
2115
|
+
};
|
|
1493
2116
|
export const de_SendManagedThingCommandCommand = async (output, context) => {
|
|
1494
2117
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1495
2118
|
return de_CommandError(output, context);
|
|
@@ -1504,6 +2127,20 @@ export const de_SendManagedThingCommandCommand = async (output, context) => {
|
|
|
1504
2127
|
Object.assign(contents, doc);
|
|
1505
2128
|
return contents;
|
|
1506
2129
|
};
|
|
2130
|
+
export const de_StartAccountAssociationRefreshCommand = async (output, context) => {
|
|
2131
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2132
|
+
return de_CommandError(output, context);
|
|
2133
|
+
}
|
|
2134
|
+
const contents = map({
|
|
2135
|
+
$metadata: deserializeMetadata(output),
|
|
2136
|
+
});
|
|
2137
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2138
|
+
const doc = take(data, {
|
|
2139
|
+
OAuthAuthorizationUrl: __expectString,
|
|
2140
|
+
});
|
|
2141
|
+
Object.assign(contents, doc);
|
|
2142
|
+
return contents;
|
|
2143
|
+
};
|
|
1507
2144
|
export const de_StartDeviceDiscoveryCommand = async (output, context) => {
|
|
1508
2145
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1509
2146
|
return de_CommandError(output, context);
|
|
@@ -1519,6 +2156,56 @@ export const de_StartDeviceDiscoveryCommand = async (output, context) => {
|
|
|
1519
2156
|
Object.assign(contents, doc);
|
|
1520
2157
|
return contents;
|
|
1521
2158
|
};
|
|
2159
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
2160
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2161
|
+
return de_CommandError(output, context);
|
|
2162
|
+
}
|
|
2163
|
+
const contents = map({
|
|
2164
|
+
$metadata: deserializeMetadata(output),
|
|
2165
|
+
});
|
|
2166
|
+
await collectBody(output.body, context);
|
|
2167
|
+
return contents;
|
|
2168
|
+
};
|
|
2169
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
2170
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2171
|
+
return de_CommandError(output, context);
|
|
2172
|
+
}
|
|
2173
|
+
const contents = map({
|
|
2174
|
+
$metadata: deserializeMetadata(output),
|
|
2175
|
+
});
|
|
2176
|
+
await collectBody(output.body, context);
|
|
2177
|
+
return contents;
|
|
2178
|
+
};
|
|
2179
|
+
export const de_UpdateAccountAssociationCommand = async (output, context) => {
|
|
2180
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2181
|
+
return de_CommandError(output, context);
|
|
2182
|
+
}
|
|
2183
|
+
const contents = map({
|
|
2184
|
+
$metadata: deserializeMetadata(output),
|
|
2185
|
+
});
|
|
2186
|
+
await collectBody(output.body, context);
|
|
2187
|
+
return contents;
|
|
2188
|
+
};
|
|
2189
|
+
export const de_UpdateCloudConnectorCommand = async (output, context) => {
|
|
2190
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2191
|
+
return de_CommandError(output, context);
|
|
2192
|
+
}
|
|
2193
|
+
const contents = map({
|
|
2194
|
+
$metadata: deserializeMetadata(output),
|
|
2195
|
+
});
|
|
2196
|
+
await collectBody(output.body, context);
|
|
2197
|
+
return contents;
|
|
2198
|
+
};
|
|
2199
|
+
export const de_UpdateConnectorDestinationCommand = async (output, context) => {
|
|
2200
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2201
|
+
return de_CommandError(output, context);
|
|
2202
|
+
}
|
|
2203
|
+
const contents = map({
|
|
2204
|
+
$metadata: deserializeMetadata(output),
|
|
2205
|
+
});
|
|
2206
|
+
await collectBody(output.body, context);
|
|
2207
|
+
return contents;
|
|
2208
|
+
};
|
|
1522
2209
|
export const de_UpdateDestinationCommand = async (output, context) => {
|
|
1523
2210
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1524
2211
|
return de_CommandError(output, context);
|
|
@@ -1585,9 +2272,9 @@ const de_CommandError = async (output, context) => {
|
|
|
1585
2272
|
case "InternalServerException":
|
|
1586
2273
|
case "com.amazonaws.iotmanagedintegrations#InternalServerException":
|
|
1587
2274
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1588
|
-
case "
|
|
1589
|
-
case "com.amazonaws.iotmanagedintegrations#
|
|
1590
|
-
throw await
|
|
2275
|
+
case "ResourceNotFoundException":
|
|
2276
|
+
case "com.amazonaws.iotmanagedintegrations#ResourceNotFoundException":
|
|
2277
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1591
2278
|
case "ServiceUnavailableException":
|
|
1592
2279
|
case "com.amazonaws.iotmanagedintegrations#ServiceUnavailableException":
|
|
1593
2280
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1597,15 +2284,21 @@ const de_CommandError = async (output, context) => {
|
|
|
1597
2284
|
case "ValidationException":
|
|
1598
2285
|
case "com.amazonaws.iotmanagedintegrations#ValidationException":
|
|
1599
2286
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1600
|
-
case "
|
|
1601
|
-
case "com.amazonaws.iotmanagedintegrations#
|
|
1602
|
-
throw await
|
|
2287
|
+
case "ServiceQuotaExceededException":
|
|
2288
|
+
case "com.amazonaws.iotmanagedintegrations#ServiceQuotaExceededException":
|
|
2289
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1603
2290
|
case "UnauthorizedException":
|
|
1604
2291
|
case "com.amazonaws.iotmanagedintegrations#UnauthorizedException":
|
|
1605
2292
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2293
|
+
case "LimitExceededException":
|
|
2294
|
+
case "com.amazonaws.iotmanagedintegrations#LimitExceededException":
|
|
2295
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1606
2296
|
case "InternalFailureException":
|
|
1607
2297
|
case "com.amazonaws.iotmanagedintegrations#InternalFailureException":
|
|
1608
2298
|
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2299
|
+
case "InvalidRequestException":
|
|
2300
|
+
case "com.amazonaws.iotmanagedintegrations#InvalidRequestException":
|
|
2301
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1609
2302
|
default:
|
|
1610
2303
|
const parsedBody = parsedOutput.body;
|
|
1611
2304
|
return throwDefaultError({
|
|
@@ -1668,11 +2361,39 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1668
2361
|
});
|
|
1669
2362
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1670
2363
|
};
|
|
2364
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
2365
|
+
const contents = map({});
|
|
2366
|
+
const data = parsedOutput.body;
|
|
2367
|
+
const doc = take(data, {
|
|
2368
|
+
Message: __expectString,
|
|
2369
|
+
});
|
|
2370
|
+
Object.assign(contents, doc);
|
|
2371
|
+
const exception = new InvalidRequestException({
|
|
2372
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2373
|
+
...contents,
|
|
2374
|
+
});
|
|
2375
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2376
|
+
};
|
|
2377
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2378
|
+
const contents = map({});
|
|
2379
|
+
const data = parsedOutput.body;
|
|
2380
|
+
const doc = take(data, {
|
|
2381
|
+
Message: __expectString,
|
|
2382
|
+
});
|
|
2383
|
+
Object.assign(contents, doc);
|
|
2384
|
+
const exception = new LimitExceededException({
|
|
2385
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2386
|
+
...contents,
|
|
2387
|
+
});
|
|
2388
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2389
|
+
};
|
|
1671
2390
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1672
2391
|
const contents = map({});
|
|
1673
2392
|
const data = parsedOutput.body;
|
|
1674
2393
|
const doc = take(data, {
|
|
1675
2394
|
Message: __expectString,
|
|
2395
|
+
ResourceId: __expectString,
|
|
2396
|
+
ResourceType: __expectString,
|
|
1676
2397
|
});
|
|
1677
2398
|
Object.assign(contents, doc);
|
|
1678
2399
|
const exception = new ResourceNotFoundException({
|
|
@@ -1779,6 +2500,22 @@ const se_CapabilityActions = (input, context) => {
|
|
|
1779
2500
|
const se_CapabilityProperties = (input, context) => {
|
|
1780
2501
|
return input;
|
|
1781
2502
|
};
|
|
2503
|
+
const se_CapabilitySchemaItem = (input, context) => {
|
|
2504
|
+
return take(input, {
|
|
2505
|
+
CapabilityId: [],
|
|
2506
|
+
ExtrinsicId: [],
|
|
2507
|
+
ExtrinsicVersion: [],
|
|
2508
|
+
Format: [],
|
|
2509
|
+
Schema: (_) => se_ValidationSchema(_, context),
|
|
2510
|
+
});
|
|
2511
|
+
};
|
|
2512
|
+
const se_CapabilitySchemas = (input, context) => {
|
|
2513
|
+
return input
|
|
2514
|
+
.filter((e) => e != null)
|
|
2515
|
+
.map((entry) => {
|
|
2516
|
+
return se_CapabilitySchemaItem(entry, context);
|
|
2517
|
+
});
|
|
2518
|
+
};
|
|
1782
2519
|
const se_CommandCapabilities = (input, context) => {
|
|
1783
2520
|
return input
|
|
1784
2521
|
.filter((e) => e != null)
|
|
@@ -1807,6 +2544,25 @@ const se_CommandEndpoints = (input, context) => {
|
|
|
1807
2544
|
return se_CommandEndpoint(entry, context);
|
|
1808
2545
|
});
|
|
1809
2546
|
};
|
|
2547
|
+
const se_Device = (input, context) => {
|
|
2548
|
+
return take(input, {
|
|
2549
|
+
CapabilityReport: (_) => se_MatterCapabilityReport(_, context),
|
|
2550
|
+
CapabilitySchemas: (_) => se_CapabilitySchemas(_, context),
|
|
2551
|
+
ConnectorDeviceId: [],
|
|
2552
|
+
ConnectorDeviceName: [],
|
|
2553
|
+
DeviceMetadata: (_) => se_DeviceMetadata(_, context),
|
|
2554
|
+
});
|
|
2555
|
+
};
|
|
2556
|
+
const se_DeviceMetadata = (input, context) => {
|
|
2557
|
+
return input;
|
|
2558
|
+
};
|
|
2559
|
+
const se_Devices = (input, context) => {
|
|
2560
|
+
return input
|
|
2561
|
+
.filter((e) => e != null)
|
|
2562
|
+
.map((entry) => {
|
|
2563
|
+
return se_Device(entry, context);
|
|
2564
|
+
});
|
|
2565
|
+
};
|
|
1810
2566
|
const se_ExponentialRolloutRate = (input, context) => {
|
|
1811
2567
|
return take(input, {
|
|
1812
2568
|
BaseRatePerMinute: [],
|
|
@@ -1814,6 +2570,114 @@ const se_ExponentialRolloutRate = (input, context) => {
|
|
|
1814
2570
|
RateIncreaseCriteria: _json,
|
|
1815
2571
|
});
|
|
1816
2572
|
};
|
|
2573
|
+
const se_MatterAttributes = (input, context) => {
|
|
2574
|
+
return input;
|
|
2575
|
+
};
|
|
2576
|
+
const se_MatterCapabilityReport = (input, context) => {
|
|
2577
|
+
return take(input, {
|
|
2578
|
+
endpoints: (_) => se_MatterCapabilityReportEndpoints(_, context),
|
|
2579
|
+
nodeId: [],
|
|
2580
|
+
version: [],
|
|
2581
|
+
});
|
|
2582
|
+
};
|
|
2583
|
+
const se_MatterCapabilityReportAttribute = (input, context) => {
|
|
2584
|
+
return take(input, {
|
|
2585
|
+
id: [],
|
|
2586
|
+
name: [],
|
|
2587
|
+
value: (_) => se_MatterCapabilityReportAttributeValue(_, context),
|
|
2588
|
+
});
|
|
2589
|
+
};
|
|
2590
|
+
const se_MatterCapabilityReportAttributes = (input, context) => {
|
|
2591
|
+
return input
|
|
2592
|
+
.filter((e) => e != null)
|
|
2593
|
+
.map((entry) => {
|
|
2594
|
+
return se_MatterCapabilityReportAttribute(entry, context);
|
|
2595
|
+
});
|
|
2596
|
+
};
|
|
2597
|
+
const se_MatterCapabilityReportAttributeValue = (input, context) => {
|
|
2598
|
+
return input;
|
|
2599
|
+
};
|
|
2600
|
+
const se_MatterCapabilityReportCluster = (input, context) => {
|
|
2601
|
+
return take(input, {
|
|
2602
|
+
attributes: (_) => se_MatterCapabilityReportAttributes(_, context),
|
|
2603
|
+
commands: _json,
|
|
2604
|
+
events: _json,
|
|
2605
|
+
fabricIndex: [],
|
|
2606
|
+
featureMap: [],
|
|
2607
|
+
generatedCommands: _json,
|
|
2608
|
+
id: [],
|
|
2609
|
+
name: [],
|
|
2610
|
+
publicId: [],
|
|
2611
|
+
revision: [],
|
|
2612
|
+
specVersion: [],
|
|
2613
|
+
});
|
|
2614
|
+
};
|
|
2615
|
+
const se_MatterCapabilityReportClusters = (input, context) => {
|
|
2616
|
+
return input
|
|
2617
|
+
.filter((e) => e != null)
|
|
2618
|
+
.map((entry) => {
|
|
2619
|
+
return se_MatterCapabilityReportCluster(entry, context);
|
|
2620
|
+
});
|
|
2621
|
+
};
|
|
2622
|
+
const se_MatterCapabilityReportEndpoint = (input, context) => {
|
|
2623
|
+
return take(input, {
|
|
2624
|
+
clientClusters: _json,
|
|
2625
|
+
clusters: (_) => se_MatterCapabilityReportClusters(_, context),
|
|
2626
|
+
deviceTypes: _json,
|
|
2627
|
+
id: [],
|
|
2628
|
+
parts: _json,
|
|
2629
|
+
semanticTags: _json,
|
|
2630
|
+
});
|
|
2631
|
+
};
|
|
2632
|
+
const se_MatterCapabilityReportEndpoints = (input, context) => {
|
|
2633
|
+
return input
|
|
2634
|
+
.filter((e) => e != null)
|
|
2635
|
+
.map((entry) => {
|
|
2636
|
+
return se_MatterCapabilityReportEndpoint(entry, context);
|
|
2637
|
+
});
|
|
2638
|
+
};
|
|
2639
|
+
const se_MatterCluster = (input, context) => {
|
|
2640
|
+
return take(input, {
|
|
2641
|
+
attributes: (_) => se_MatterAttributes(_, context),
|
|
2642
|
+
commands: (_) => se_MatterCommands(_, context),
|
|
2643
|
+
events: (_) => se_MatterEvents(_, context),
|
|
2644
|
+
id: [],
|
|
2645
|
+
});
|
|
2646
|
+
};
|
|
2647
|
+
const se_MatterClusters = (input, context) => {
|
|
2648
|
+
return input
|
|
2649
|
+
.filter((e) => e != null)
|
|
2650
|
+
.map((entry) => {
|
|
2651
|
+
return se_MatterCluster(entry, context);
|
|
2652
|
+
});
|
|
2653
|
+
};
|
|
2654
|
+
const se_MatterCommands = (input, context) => {
|
|
2655
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2656
|
+
if (value === null) {
|
|
2657
|
+
return acc;
|
|
2658
|
+
}
|
|
2659
|
+
acc[key] = se_MatterFields(value, context);
|
|
2660
|
+
return acc;
|
|
2661
|
+
}, {});
|
|
2662
|
+
};
|
|
2663
|
+
const se_MatterEndpoint = (input, context) => {
|
|
2664
|
+
return take(input, {
|
|
2665
|
+
clusters: (_) => se_MatterClusters(_, context),
|
|
2666
|
+
id: [],
|
|
2667
|
+
});
|
|
2668
|
+
};
|
|
2669
|
+
const se_MatterEvents = (input, context) => {
|
|
2670
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2671
|
+
if (value === null) {
|
|
2672
|
+
return acc;
|
|
2673
|
+
}
|
|
2674
|
+
acc[key] = se_MatterFields(value, context);
|
|
2675
|
+
return acc;
|
|
2676
|
+
}, {});
|
|
2677
|
+
};
|
|
2678
|
+
const se_MatterFields = (input, context) => {
|
|
2679
|
+
return input;
|
|
2680
|
+
};
|
|
1817
2681
|
const se_OtaTaskAbortConfig = (input, context) => {
|
|
1818
2682
|
return take(input, {
|
|
1819
2683
|
AbortConfigCriteriaList: (_) => se_AbortConfigCriteriaList(_, context),
|
|
@@ -1832,6 +2696,9 @@ const se_PushConfig = (input, context) => {
|
|
|
1832
2696
|
TimeoutConfig: _json,
|
|
1833
2697
|
});
|
|
1834
2698
|
};
|
|
2699
|
+
const se_ValidationSchema = (input, context) => {
|
|
2700
|
+
return input;
|
|
2701
|
+
};
|
|
1835
2702
|
const de_AbortConfigCriteria = (output, context) => {
|
|
1836
2703
|
return take(output, {
|
|
1837
2704
|
Action: __expectString,
|
|
@@ -1867,6 +2734,27 @@ const de_CredentialLockerSummary = (output, context) => {
|
|
|
1867
2734
|
Name: __expectString,
|
|
1868
2735
|
});
|
|
1869
2736
|
};
|
|
2737
|
+
const de_DiscoveredDeviceListDefinition = (output, context) => {
|
|
2738
|
+
const retVal = (output || [])
|
|
2739
|
+
.filter((e) => e != null)
|
|
2740
|
+
.map((entry) => {
|
|
2741
|
+
return de_DiscoveredDeviceSummary(entry, context);
|
|
2742
|
+
});
|
|
2743
|
+
return retVal;
|
|
2744
|
+
};
|
|
2745
|
+
const de_DiscoveredDeviceSummary = (output, context) => {
|
|
2746
|
+
return take(output, {
|
|
2747
|
+
AuthenticationMaterial: __expectString,
|
|
2748
|
+
Brand: __expectString,
|
|
2749
|
+
ConnectorDeviceId: __expectString,
|
|
2750
|
+
ConnectorDeviceName: __expectString,
|
|
2751
|
+
DeviceTypes: _json,
|
|
2752
|
+
DiscoveredAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2753
|
+
ManagedThingId: __expectString,
|
|
2754
|
+
Model: __expectString,
|
|
2755
|
+
Modification: __expectString,
|
|
2756
|
+
});
|
|
2757
|
+
};
|
|
1870
2758
|
const de_ExponentialRolloutRate = (output, context) => {
|
|
1871
2759
|
return take(output, {
|
|
1872
2760
|
BaseRatePerMinute: __expectInt32,
|
|
@@ -1904,6 +2792,7 @@ const de_ManagedThingSummary = (output, context) => {
|
|
|
1904
2792
|
Arn: __expectString,
|
|
1905
2793
|
Brand: __expectString,
|
|
1906
2794
|
Classification: __expectString,
|
|
2795
|
+
ConnectorDestinationId: __expectString,
|
|
1907
2796
|
ConnectorDeviceId: __expectString,
|
|
1908
2797
|
ConnectorPolicyId: __expectString,
|
|
1909
2798
|
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
@@ -2037,13 +2926,20 @@ const deserializeMetadata = (output) => ({
|
|
|
2037
2926
|
cfId: output.headers["x-amz-cf-id"],
|
|
2038
2927
|
});
|
|
2039
2928
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2929
|
+
const _AAI = "AccountAssociationId";
|
|
2930
|
+
const _CCI = "CloudConnectorId";
|
|
2931
|
+
const _CDI = "ConnectorDestinationId";
|
|
2932
|
+
const _CDIF = "ConnectorDestinationIdFilter";
|
|
2933
|
+
const _CDIFo = "ConnectorDeviceIdFilter";
|
|
2040
2934
|
const _CIF = "CapabilityIdFilter";
|
|
2041
2935
|
const _CLF = "CredentialLockerFilter";
|
|
2042
2936
|
const _CPIF = "ConnectorPolicyIdFilter";
|
|
2043
2937
|
const _EIF = "EndpointIdFilter";
|
|
2044
2938
|
const _F = "Force";
|
|
2045
2939
|
const _Fo = "Format";
|
|
2940
|
+
const _LA = "LambdaArn";
|
|
2046
2941
|
const _MR = "MaxResults";
|
|
2942
|
+
const _MTI = "ManagedThingId";
|
|
2047
2943
|
const _N = "Namespace";
|
|
2048
2944
|
const _NF = "NamespaceFilter";
|
|
2049
2945
|
const _NT = "NextToken";
|
|
@@ -2051,10 +2947,15 @@ const _OF = "OwnerFilter";
|
|
|
2051
2947
|
const _PCIF = "ParentControllerIdentifierFilter";
|
|
2052
2948
|
const _PSF = "ProvisioningStatusFilter";
|
|
2053
2949
|
const _RF = "RoleFilter";
|
|
2950
|
+
const _SF = "StatusFilter";
|
|
2054
2951
|
const _SI = "SchemaId";
|
|
2055
2952
|
const _SIF = "SchemaIdFilter";
|
|
2056
2953
|
const _SNF = "SerialNumberFilter";
|
|
2057
2954
|
const _SV = "SemanticVersion";
|
|
2058
2955
|
const _SVF = "SemanticVersionFilter";
|
|
2956
|
+
const _T = "Type";
|
|
2957
|
+
const _TF = "TypeFilter";
|
|
2958
|
+
const _TK = "TagKeys";
|
|
2059
2959
|
const _V = "Visibility";
|
|
2060
2960
|
const _VF = "VisibilityFilter";
|
|
2961
|
+
const _tK = "tagKeys";
|