@aws-sdk/client-iotsitewise 3.31.0 → 3.32.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/CHANGELOG.md +8 -0
- package/dist/cjs/IoTSiteWiseClient.js +13 -13
- package/dist/cjs/IoTSiteWiseClient.js.map +1 -1
- package/dist/cjs/commands/AssociateAssetsCommand.js +3 -3
- package/dist/cjs/commands/AssociateAssetsCommand.js.map +1 -1
- package/dist/cjs/commands/BatchAssociateProjectAssetsCommand.js +3 -3
- package/dist/cjs/commands/BatchAssociateProjectAssetsCommand.js.map +1 -1
- package/dist/cjs/commands/BatchDisassociateProjectAssetsCommand.js +3 -3
- package/dist/cjs/commands/BatchDisassociateProjectAssetsCommand.js.map +1 -1
- package/dist/cjs/commands/BatchPutAssetPropertyValueCommand.js +3 -3
- package/dist/cjs/commands/BatchPutAssetPropertyValueCommand.js.map +1 -1
- package/dist/cjs/commands/CreateAccessPolicyCommand.js +3 -3
- package/dist/cjs/commands/CreateAccessPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/CreateAssetCommand.js +3 -3
- package/dist/cjs/commands/CreateAssetCommand.js.map +1 -1
- package/dist/cjs/commands/CreateAssetModelCommand.js +3 -3
- package/dist/cjs/commands/CreateAssetModelCommand.js.map +1 -1
- package/dist/cjs/commands/CreateDashboardCommand.js +3 -3
- package/dist/cjs/commands/CreateDashboardCommand.js.map +1 -1
- package/dist/cjs/commands/CreateGatewayCommand.js +3 -3
- package/dist/cjs/commands/CreateGatewayCommand.js.map +1 -1
- package/dist/cjs/commands/CreatePortalCommand.js +3 -3
- package/dist/cjs/commands/CreatePortalCommand.js.map +1 -1
- package/dist/cjs/commands/CreateProjectCommand.js +3 -3
- package/dist/cjs/commands/CreateProjectCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteAccessPolicyCommand.js +3 -3
- package/dist/cjs/commands/DeleteAccessPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteAssetCommand.js +3 -3
- package/dist/cjs/commands/DeleteAssetCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteAssetModelCommand.js +3 -3
- package/dist/cjs/commands/DeleteAssetModelCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteDashboardCommand.js +3 -3
- package/dist/cjs/commands/DeleteDashboardCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteGatewayCommand.js +3 -3
- package/dist/cjs/commands/DeleteGatewayCommand.js.map +1 -1
- package/dist/cjs/commands/DeletePortalCommand.js +3 -3
- package/dist/cjs/commands/DeletePortalCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteProjectCommand.js +3 -3
- package/dist/cjs/commands/DeleteProjectCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeAccessPolicyCommand.js +3 -3
- package/dist/cjs/commands/DescribeAccessPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeAssetCommand.js +3 -3
- package/dist/cjs/commands/DescribeAssetCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeAssetModelCommand.js +3 -3
- package/dist/cjs/commands/DescribeAssetModelCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeAssetPropertyCommand.js +3 -3
- package/dist/cjs/commands/DescribeAssetPropertyCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeDashboardCommand.js +3 -3
- package/dist/cjs/commands/DescribeDashboardCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeDefaultEncryptionConfigurationCommand.js +3 -3
- package/dist/cjs/commands/DescribeDefaultEncryptionConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeGatewayCapabilityConfigurationCommand.js +3 -3
- package/dist/cjs/commands/DescribeGatewayCapabilityConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeGatewayCommand.js +3 -3
- package/dist/cjs/commands/DescribeGatewayCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeLoggingOptionsCommand.js +3 -3
- package/dist/cjs/commands/DescribeLoggingOptionsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribePortalCommand.js +3 -3
- package/dist/cjs/commands/DescribePortalCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeProjectCommand.js +3 -3
- package/dist/cjs/commands/DescribeProjectCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeStorageConfigurationCommand.js +3 -3
- package/dist/cjs/commands/DescribeStorageConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/DisassociateAssetsCommand.js +3 -3
- package/dist/cjs/commands/DisassociateAssetsCommand.js.map +1 -1
- package/dist/cjs/commands/GetAssetPropertyAggregatesCommand.js +3 -3
- package/dist/cjs/commands/GetAssetPropertyAggregatesCommand.js.map +1 -1
- package/dist/cjs/commands/GetAssetPropertyValueCommand.js +3 -3
- package/dist/cjs/commands/GetAssetPropertyValueCommand.js.map +1 -1
- package/dist/cjs/commands/GetAssetPropertyValueHistoryCommand.js +3 -3
- package/dist/cjs/commands/GetAssetPropertyValueHistoryCommand.js.map +1 -1
- package/dist/cjs/commands/GetInterpolatedAssetPropertyValuesCommand.js +3 -3
- package/dist/cjs/commands/GetInterpolatedAssetPropertyValuesCommand.js.map +1 -1
- package/dist/cjs/commands/ListAccessPoliciesCommand.js +3 -3
- package/dist/cjs/commands/ListAccessPoliciesCommand.js.map +1 -1
- package/dist/cjs/commands/ListAssetModelsCommand.js +3 -3
- package/dist/cjs/commands/ListAssetModelsCommand.js.map +1 -1
- package/dist/cjs/commands/ListAssetRelationshipsCommand.js +3 -3
- package/dist/cjs/commands/ListAssetRelationshipsCommand.js.map +1 -1
- package/dist/cjs/commands/ListAssetsCommand.js +3 -3
- package/dist/cjs/commands/ListAssetsCommand.js.map +1 -1
- package/dist/cjs/commands/ListAssociatedAssetsCommand.js +3 -3
- package/dist/cjs/commands/ListAssociatedAssetsCommand.js.map +1 -1
- package/dist/cjs/commands/ListDashboardsCommand.js +3 -3
- package/dist/cjs/commands/ListDashboardsCommand.js.map +1 -1
- package/dist/cjs/commands/ListGatewaysCommand.js +3 -3
- package/dist/cjs/commands/ListGatewaysCommand.js.map +1 -1
- package/dist/cjs/commands/ListPortalsCommand.js +3 -3
- package/dist/cjs/commands/ListPortalsCommand.js.map +1 -1
- package/dist/cjs/commands/ListProjectAssetsCommand.js +3 -3
- package/dist/cjs/commands/ListProjectAssetsCommand.js.map +1 -1
- package/dist/cjs/commands/ListProjectsCommand.js +3 -3
- package/dist/cjs/commands/ListProjectsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/PutDefaultEncryptionConfigurationCommand.js +3 -3
- package/dist/cjs/commands/PutDefaultEncryptionConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/PutLoggingOptionsCommand.js +3 -3
- package/dist/cjs/commands/PutLoggingOptionsCommand.js.map +1 -1
- package/dist/cjs/commands/PutStorageConfigurationCommand.js +3 -3
- package/dist/cjs/commands/PutStorageConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateAccessPolicyCommand.js +3 -3
- package/dist/cjs/commands/UpdateAccessPolicyCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateAssetCommand.js +3 -3
- package/dist/cjs/commands/UpdateAssetCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateAssetModelCommand.js +3 -3
- package/dist/cjs/commands/UpdateAssetModelCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateAssetPropertyCommand.js +3 -3
- package/dist/cjs/commands/UpdateAssetPropertyCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateDashboardCommand.js +3 -3
- package/dist/cjs/commands/UpdateDashboardCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateGatewayCapabilityConfigurationCommand.js +3 -3
- package/dist/cjs/commands/UpdateGatewayCapabilityConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateGatewayCommand.js +3 -3
- package/dist/cjs/commands/UpdateGatewayCommand.js.map +1 -1
- package/dist/cjs/commands/UpdatePortalCommand.js +3 -3
- package/dist/cjs/commands/UpdatePortalCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateProjectCommand.js +3 -3
- package/dist/cjs/commands/UpdateProjectCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +83 -83
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +32 -32
- package/dist/cjs/protocols/Aws_restJson1.js +408 -408
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/cjs/waiters/waitForAssetActive.js +3 -3
- package/dist/cjs/waiters/waitForAssetActive.js.map +1 -1
- package/dist/cjs/waiters/waitForAssetModelActive.js +3 -3
- package/dist/cjs/waiters/waitForAssetModelActive.js.map +1 -1
- package/dist/cjs/waiters/waitForAssetModelNotExists.js +3 -3
- package/dist/cjs/waiters/waitForAssetModelNotExists.js.map +1 -1
- package/dist/cjs/waiters/waitForAssetNotExists.js +3 -3
- package/dist/cjs/waiters/waitForAssetNotExists.js.map +1 -1
- package/dist/cjs/waiters/waitForPortalActive.js +3 -3
- package/dist/cjs/waiters/waitForPortalActive.js.map +1 -1
- package/dist/cjs/waiters/waitForPortalNotExists.js +3 -3
- package/dist/cjs/waiters/waitForPortalNotExists.js.map +1 -1
- package/dist/es/package.json +32 -32
- package/dist/es/pagination/GetAssetPropertyAggregatesPaginator.js +4 -4
- package/dist/es/pagination/GetAssetPropertyAggregatesPaginator.js.map +1 -1
- package/dist/es/pagination/GetAssetPropertyValueHistoryPaginator.js +4 -4
- package/dist/es/pagination/GetAssetPropertyValueHistoryPaginator.js.map +1 -1
- package/dist/es/pagination/GetInterpolatedAssetPropertyValuesPaginator.js +4 -4
- package/dist/es/pagination/GetInterpolatedAssetPropertyValuesPaginator.js.map +1 -1
- package/dist/es/pagination/ListAccessPoliciesPaginator.js +4 -4
- package/dist/es/pagination/ListAccessPoliciesPaginator.js.map +1 -1
- package/dist/es/pagination/ListAssetModelsPaginator.js +4 -4
- package/dist/es/pagination/ListAssetModelsPaginator.js.map +1 -1
- package/dist/es/pagination/ListAssetRelationshipsPaginator.js +4 -4
- package/dist/es/pagination/ListAssetRelationshipsPaginator.js.map +1 -1
- package/dist/es/pagination/ListAssetsPaginator.js +4 -4
- package/dist/es/pagination/ListAssetsPaginator.js.map +1 -1
- package/dist/es/pagination/ListAssociatedAssetsPaginator.js +4 -4
- package/dist/es/pagination/ListAssociatedAssetsPaginator.js.map +1 -1
- package/dist/es/pagination/ListDashboardsPaginator.js +4 -4
- package/dist/es/pagination/ListDashboardsPaginator.js.map +1 -1
- package/dist/es/pagination/ListGatewaysPaginator.js +4 -4
- package/dist/es/pagination/ListGatewaysPaginator.js.map +1 -1
- package/dist/es/pagination/ListPortalsPaginator.js +4 -4
- package/dist/es/pagination/ListPortalsPaginator.js.map +1 -1
- package/dist/es/pagination/ListProjectAssetsPaginator.js +4 -4
- package/dist/es/pagination/ListProjectAssetsPaginator.js.map +1 -1
- package/dist/es/pagination/ListProjectsPaginator.js +4 -4
- package/dist/es/pagination/ListProjectsPaginator.js.map +1 -1
- package/package.json +32 -32
- package/tsconfig.json +1 -2
|
@@ -18,7 +18,7 @@ const serializeAws_restJson1AssociateAssetsCommand = async (input, context) => {
|
|
|
18
18
|
if (labelValue.length <= 0) {
|
|
19
19
|
throw new Error("Empty value provided for input HTTP label: assetId.");
|
|
20
20
|
}
|
|
21
|
-
resolvedPath = resolvedPath.replace("{assetId}",
|
|
21
|
+
resolvedPath = resolvedPath.replace("{assetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
22
22
|
}
|
|
23
23
|
else {
|
|
24
24
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
@@ -26,13 +26,13 @@ const serializeAws_restJson1AssociateAssetsCommand = async (input, context) => {
|
|
|
26
26
|
let body;
|
|
27
27
|
body = JSON.stringify({
|
|
28
28
|
...(input.childAssetId !== undefined && input.childAssetId !== null && { childAssetId: input.childAssetId }),
|
|
29
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
29
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
30
30
|
...(input.hierarchyId !== undefined && input.hierarchyId !== null && { hierarchyId: input.hierarchyId }),
|
|
31
31
|
});
|
|
32
32
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
33
33
|
if (context.disableHostPrefix !== true) {
|
|
34
34
|
resolvedHostname = "api." + resolvedHostname;
|
|
35
|
-
if (!
|
|
35
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
36
36
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -59,7 +59,7 @@ const serializeAws_restJson1BatchAssociateProjectAssetsCommand = async (input, c
|
|
|
59
59
|
if (labelValue.length <= 0) {
|
|
60
60
|
throw new Error("Empty value provided for input HTTP label: projectId.");
|
|
61
61
|
}
|
|
62
|
-
resolvedPath = resolvedPath.replace("{projectId}",
|
|
62
|
+
resolvedPath = resolvedPath.replace("{projectId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
63
63
|
}
|
|
64
64
|
else {
|
|
65
65
|
throw new Error("No value provided for input HTTP label: projectId.");
|
|
@@ -68,12 +68,12 @@ const serializeAws_restJson1BatchAssociateProjectAssetsCommand = async (input, c
|
|
|
68
68
|
body = JSON.stringify({
|
|
69
69
|
...(input.assetIds !== undefined &&
|
|
70
70
|
input.assetIds !== null && { assetIds: serializeAws_restJson1IDs(input.assetIds, context) }),
|
|
71
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
71
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
72
72
|
});
|
|
73
73
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
74
74
|
if (context.disableHostPrefix !== true) {
|
|
75
75
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
76
|
-
if (!
|
|
76
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
77
77
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -100,7 +100,7 @@ const serializeAws_restJson1BatchDisassociateProjectAssetsCommand = async (input
|
|
|
100
100
|
if (labelValue.length <= 0) {
|
|
101
101
|
throw new Error("Empty value provided for input HTTP label: projectId.");
|
|
102
102
|
}
|
|
103
|
-
resolvedPath = resolvedPath.replace("{projectId}",
|
|
103
|
+
resolvedPath = resolvedPath.replace("{projectId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
104
104
|
}
|
|
105
105
|
else {
|
|
106
106
|
throw new Error("No value provided for input HTTP label: projectId.");
|
|
@@ -109,12 +109,12 @@ const serializeAws_restJson1BatchDisassociateProjectAssetsCommand = async (input
|
|
|
109
109
|
body = JSON.stringify({
|
|
110
110
|
...(input.assetIds !== undefined &&
|
|
111
111
|
input.assetIds !== null && { assetIds: serializeAws_restJson1IDs(input.assetIds, context) }),
|
|
112
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
112
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
113
113
|
});
|
|
114
114
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
115
115
|
if (context.disableHostPrefix !== true) {
|
|
116
116
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
117
|
-
if (!
|
|
117
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
118
118
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -145,7 +145,7 @@ const serializeAws_restJson1BatchPutAssetPropertyValueCommand = async (input, co
|
|
|
145
145
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
146
146
|
if (context.disableHostPrefix !== true) {
|
|
147
147
|
resolvedHostname = "data." + resolvedHostname;
|
|
148
|
-
if (!
|
|
148
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
149
149
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
150
150
|
}
|
|
151
151
|
}
|
|
@@ -179,13 +179,13 @@ const serializeAws_restJson1CreateAccessPolicyCommand = async (input, context) =
|
|
|
179
179
|
input.accessPolicyResource !== null && {
|
|
180
180
|
accessPolicyResource: serializeAws_restJson1Resource(input.accessPolicyResource, context),
|
|
181
181
|
}),
|
|
182
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
182
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
183
183
|
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
184
184
|
});
|
|
185
185
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
186
186
|
if (context.disableHostPrefix !== true) {
|
|
187
187
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
188
|
-
if (!
|
|
188
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
189
189
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
190
190
|
}
|
|
191
191
|
}
|
|
@@ -211,13 +211,13 @@ const serializeAws_restJson1CreateAssetCommand = async (input, context) => {
|
|
|
211
211
|
body = JSON.stringify({
|
|
212
212
|
...(input.assetModelId !== undefined && input.assetModelId !== null && { assetModelId: input.assetModelId }),
|
|
213
213
|
...(input.assetName !== undefined && input.assetName !== null && { assetName: input.assetName }),
|
|
214
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
214
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
215
215
|
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
216
216
|
});
|
|
217
217
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
218
218
|
if (context.disableHostPrefix !== true) {
|
|
219
219
|
resolvedHostname = "api." + resolvedHostname;
|
|
220
|
-
if (!
|
|
220
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
221
221
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
222
222
|
}
|
|
223
223
|
}
|
|
@@ -257,13 +257,13 @@ const serializeAws_restJson1CreateAssetModelCommand = async (input, context) =>
|
|
|
257
257
|
input.assetModelProperties !== null && {
|
|
258
258
|
assetModelProperties: serializeAws_restJson1AssetModelPropertyDefinitions(input.assetModelProperties, context),
|
|
259
259
|
}),
|
|
260
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
260
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
261
261
|
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
262
262
|
});
|
|
263
263
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
264
264
|
if (context.disableHostPrefix !== true) {
|
|
265
265
|
resolvedHostname = "api." + resolvedHostname;
|
|
266
|
-
if (!
|
|
266
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
267
267
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
268
268
|
}
|
|
269
269
|
}
|
|
@@ -287,7 +287,7 @@ const serializeAws_restJson1CreateDashboardCommand = async (input, context) => {
|
|
|
287
287
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards";
|
|
288
288
|
let body;
|
|
289
289
|
body = JSON.stringify({
|
|
290
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
290
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
291
291
|
...(input.dashboardDefinition !== undefined &&
|
|
292
292
|
input.dashboardDefinition !== null && { dashboardDefinition: input.dashboardDefinition }),
|
|
293
293
|
...(input.dashboardDescription !== undefined &&
|
|
@@ -299,7 +299,7 @@ const serializeAws_restJson1CreateDashboardCommand = async (input, context) => {
|
|
|
299
299
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
300
300
|
if (context.disableHostPrefix !== true) {
|
|
301
301
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
302
|
-
if (!
|
|
302
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
303
303
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
304
304
|
}
|
|
305
305
|
}
|
|
@@ -332,7 +332,7 @@ const serializeAws_restJson1CreateGatewayCommand = async (input, context) => {
|
|
|
332
332
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
333
333
|
if (context.disableHostPrefix !== true) {
|
|
334
334
|
resolvedHostname = "api." + resolvedHostname;
|
|
335
|
-
if (!
|
|
335
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
336
336
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
337
337
|
}
|
|
338
338
|
}
|
|
@@ -358,7 +358,7 @@ const serializeAws_restJson1CreatePortalCommand = async (input, context) => {
|
|
|
358
358
|
body = JSON.stringify({
|
|
359
359
|
...(input.alarms !== undefined &&
|
|
360
360
|
input.alarms !== null && { alarms: serializeAws_restJson1Alarms(input.alarms, context) }),
|
|
361
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
361
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
362
362
|
...(input.notificationSenderEmail !== undefined &&
|
|
363
363
|
input.notificationSenderEmail !== null && { notificationSenderEmail: input.notificationSenderEmail }),
|
|
364
364
|
...(input.portalAuthMode !== undefined &&
|
|
@@ -378,7 +378,7 @@ const serializeAws_restJson1CreatePortalCommand = async (input, context) => {
|
|
|
378
378
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
379
379
|
if (context.disableHostPrefix !== true) {
|
|
380
380
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
381
|
-
if (!
|
|
381
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
382
382
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
383
383
|
}
|
|
384
384
|
}
|
|
@@ -402,7 +402,7 @@ const serializeAws_restJson1CreateProjectCommand = async (input, context) => {
|
|
|
402
402
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
|
|
403
403
|
let body;
|
|
404
404
|
body = JSON.stringify({
|
|
405
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
405
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
406
406
|
...(input.portalId !== undefined && input.portalId !== null && { portalId: input.portalId }),
|
|
407
407
|
...(input.projectDescription !== undefined &&
|
|
408
408
|
input.projectDescription !== null && { projectDescription: input.projectDescription }),
|
|
@@ -412,7 +412,7 @@ const serializeAws_restJson1CreateProjectCommand = async (input, context) => {
|
|
|
412
412
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
413
413
|
if (context.disableHostPrefix !== true) {
|
|
414
414
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
415
|
-
if (!
|
|
415
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
416
416
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
417
417
|
}
|
|
418
418
|
}
|
|
@@ -436,7 +436,7 @@ const serializeAws_restJson1DeleteAccessPolicyCommand = async (input, context) =
|
|
|
436
436
|
if (labelValue.length <= 0) {
|
|
437
437
|
throw new Error("Empty value provided for input HTTP label: accessPolicyId.");
|
|
438
438
|
}
|
|
439
|
-
resolvedPath = resolvedPath.replace("{accessPolicyId}",
|
|
439
|
+
resolvedPath = resolvedPath.replace("{accessPolicyId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
440
440
|
}
|
|
441
441
|
else {
|
|
442
442
|
throw new Error("No value provided for input HTTP label: accessPolicyId.");
|
|
@@ -448,7 +448,7 @@ const serializeAws_restJson1DeleteAccessPolicyCommand = async (input, context) =
|
|
|
448
448
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
449
449
|
if (context.disableHostPrefix !== true) {
|
|
450
450
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
451
|
-
if (!
|
|
451
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
452
452
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
453
453
|
}
|
|
454
454
|
}
|
|
@@ -473,7 +473,7 @@ const serializeAws_restJson1DeleteAssetCommand = async (input, context) => {
|
|
|
473
473
|
if (labelValue.length <= 0) {
|
|
474
474
|
throw new Error("Empty value provided for input HTTP label: assetId.");
|
|
475
475
|
}
|
|
476
|
-
resolvedPath = resolvedPath.replace("{assetId}",
|
|
476
|
+
resolvedPath = resolvedPath.replace("{assetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
477
477
|
}
|
|
478
478
|
else {
|
|
479
479
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
@@ -485,7 +485,7 @@ const serializeAws_restJson1DeleteAssetCommand = async (input, context) => {
|
|
|
485
485
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
486
486
|
if (context.disableHostPrefix !== true) {
|
|
487
487
|
resolvedHostname = "api." + resolvedHostname;
|
|
488
|
-
if (!
|
|
488
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
489
489
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
490
490
|
}
|
|
491
491
|
}
|
|
@@ -510,7 +510,7 @@ const serializeAws_restJson1DeleteAssetModelCommand = async (input, context) =>
|
|
|
510
510
|
if (labelValue.length <= 0) {
|
|
511
511
|
throw new Error("Empty value provided for input HTTP label: assetModelId.");
|
|
512
512
|
}
|
|
513
|
-
resolvedPath = resolvedPath.replace("{assetModelId}",
|
|
513
|
+
resolvedPath = resolvedPath.replace("{assetModelId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
514
514
|
}
|
|
515
515
|
else {
|
|
516
516
|
throw new Error("No value provided for input HTTP label: assetModelId.");
|
|
@@ -522,7 +522,7 @@ const serializeAws_restJson1DeleteAssetModelCommand = async (input, context) =>
|
|
|
522
522
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
523
523
|
if (context.disableHostPrefix !== true) {
|
|
524
524
|
resolvedHostname = "api." + resolvedHostname;
|
|
525
|
-
if (!
|
|
525
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
526
526
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
527
527
|
}
|
|
528
528
|
}
|
|
@@ -547,7 +547,7 @@ const serializeAws_restJson1DeleteDashboardCommand = async (input, context) => {
|
|
|
547
547
|
if (labelValue.length <= 0) {
|
|
548
548
|
throw new Error("Empty value provided for input HTTP label: dashboardId.");
|
|
549
549
|
}
|
|
550
|
-
resolvedPath = resolvedPath.replace("{dashboardId}",
|
|
550
|
+
resolvedPath = resolvedPath.replace("{dashboardId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
551
551
|
}
|
|
552
552
|
else {
|
|
553
553
|
throw new Error("No value provided for input HTTP label: dashboardId.");
|
|
@@ -559,7 +559,7 @@ const serializeAws_restJson1DeleteDashboardCommand = async (input, context) => {
|
|
|
559
559
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
560
560
|
if (context.disableHostPrefix !== true) {
|
|
561
561
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
562
|
-
if (!
|
|
562
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
563
563
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
564
564
|
}
|
|
565
565
|
}
|
|
@@ -584,7 +584,7 @@ const serializeAws_restJson1DeleteGatewayCommand = async (input, context) => {
|
|
|
584
584
|
if (labelValue.length <= 0) {
|
|
585
585
|
throw new Error("Empty value provided for input HTTP label: gatewayId.");
|
|
586
586
|
}
|
|
587
|
-
resolvedPath = resolvedPath.replace("{gatewayId}",
|
|
587
|
+
resolvedPath = resolvedPath.replace("{gatewayId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
588
588
|
}
|
|
589
589
|
else {
|
|
590
590
|
throw new Error("No value provided for input HTTP label: gatewayId.");
|
|
@@ -593,7 +593,7 @@ const serializeAws_restJson1DeleteGatewayCommand = async (input, context) => {
|
|
|
593
593
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
594
594
|
if (context.disableHostPrefix !== true) {
|
|
595
595
|
resolvedHostname = "api." + resolvedHostname;
|
|
596
|
-
if (!
|
|
596
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
597
597
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
598
598
|
}
|
|
599
599
|
}
|
|
@@ -617,7 +617,7 @@ const serializeAws_restJson1DeletePortalCommand = async (input, context) => {
|
|
|
617
617
|
if (labelValue.length <= 0) {
|
|
618
618
|
throw new Error("Empty value provided for input HTTP label: portalId.");
|
|
619
619
|
}
|
|
620
|
-
resolvedPath = resolvedPath.replace("{portalId}",
|
|
620
|
+
resolvedPath = resolvedPath.replace("{portalId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
621
621
|
}
|
|
622
622
|
else {
|
|
623
623
|
throw new Error("No value provided for input HTTP label: portalId.");
|
|
@@ -629,7 +629,7 @@ const serializeAws_restJson1DeletePortalCommand = async (input, context) => {
|
|
|
629
629
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
630
630
|
if (context.disableHostPrefix !== true) {
|
|
631
631
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
632
|
-
if (!
|
|
632
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
633
633
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
634
634
|
}
|
|
635
635
|
}
|
|
@@ -654,7 +654,7 @@ const serializeAws_restJson1DeleteProjectCommand = async (input, context) => {
|
|
|
654
654
|
if (labelValue.length <= 0) {
|
|
655
655
|
throw new Error("Empty value provided for input HTTP label: projectId.");
|
|
656
656
|
}
|
|
657
|
-
resolvedPath = resolvedPath.replace("{projectId}",
|
|
657
|
+
resolvedPath = resolvedPath.replace("{projectId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
658
658
|
}
|
|
659
659
|
else {
|
|
660
660
|
throw new Error("No value provided for input HTTP label: projectId.");
|
|
@@ -666,7 +666,7 @@ const serializeAws_restJson1DeleteProjectCommand = async (input, context) => {
|
|
|
666
666
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
667
667
|
if (context.disableHostPrefix !== true) {
|
|
668
668
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
669
|
-
if (!
|
|
669
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
670
670
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
671
671
|
}
|
|
672
672
|
}
|
|
@@ -691,7 +691,7 @@ const serializeAws_restJson1DescribeAccessPolicyCommand = async (input, context)
|
|
|
691
691
|
if (labelValue.length <= 0) {
|
|
692
692
|
throw new Error("Empty value provided for input HTTP label: accessPolicyId.");
|
|
693
693
|
}
|
|
694
|
-
resolvedPath = resolvedPath.replace("{accessPolicyId}",
|
|
694
|
+
resolvedPath = resolvedPath.replace("{accessPolicyId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
695
695
|
}
|
|
696
696
|
else {
|
|
697
697
|
throw new Error("No value provided for input HTTP label: accessPolicyId.");
|
|
@@ -700,7 +700,7 @@ const serializeAws_restJson1DescribeAccessPolicyCommand = async (input, context)
|
|
|
700
700
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
701
701
|
if (context.disableHostPrefix !== true) {
|
|
702
702
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
703
|
-
if (!
|
|
703
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
704
704
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
705
705
|
}
|
|
706
706
|
}
|
|
@@ -724,7 +724,7 @@ const serializeAws_restJson1DescribeAssetCommand = async (input, context) => {
|
|
|
724
724
|
if (labelValue.length <= 0) {
|
|
725
725
|
throw new Error("Empty value provided for input HTTP label: assetId.");
|
|
726
726
|
}
|
|
727
|
-
resolvedPath = resolvedPath.replace("{assetId}",
|
|
727
|
+
resolvedPath = resolvedPath.replace("{assetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
728
728
|
}
|
|
729
729
|
else {
|
|
730
730
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
@@ -733,7 +733,7 @@ const serializeAws_restJson1DescribeAssetCommand = async (input, context) => {
|
|
|
733
733
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
734
734
|
if (context.disableHostPrefix !== true) {
|
|
735
735
|
resolvedHostname = "api." + resolvedHostname;
|
|
736
|
-
if (!
|
|
736
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
737
737
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
738
738
|
}
|
|
739
739
|
}
|
|
@@ -757,7 +757,7 @@ const serializeAws_restJson1DescribeAssetModelCommand = async (input, context) =
|
|
|
757
757
|
if (labelValue.length <= 0) {
|
|
758
758
|
throw new Error("Empty value provided for input HTTP label: assetModelId.");
|
|
759
759
|
}
|
|
760
|
-
resolvedPath = resolvedPath.replace("{assetModelId}",
|
|
760
|
+
resolvedPath = resolvedPath.replace("{assetModelId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
761
761
|
}
|
|
762
762
|
else {
|
|
763
763
|
throw new Error("No value provided for input HTTP label: assetModelId.");
|
|
@@ -766,7 +766,7 @@ const serializeAws_restJson1DescribeAssetModelCommand = async (input, context) =
|
|
|
766
766
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
767
767
|
if (context.disableHostPrefix !== true) {
|
|
768
768
|
resolvedHostname = "api." + resolvedHostname;
|
|
769
|
-
if (!
|
|
769
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
770
770
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
771
771
|
}
|
|
772
772
|
}
|
|
@@ -790,7 +790,7 @@ const serializeAws_restJson1DescribeAssetPropertyCommand = async (input, context
|
|
|
790
790
|
if (labelValue.length <= 0) {
|
|
791
791
|
throw new Error("Empty value provided for input HTTP label: assetId.");
|
|
792
792
|
}
|
|
793
|
-
resolvedPath = resolvedPath.replace("{assetId}",
|
|
793
|
+
resolvedPath = resolvedPath.replace("{assetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
794
794
|
}
|
|
795
795
|
else {
|
|
796
796
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
@@ -800,7 +800,7 @@ const serializeAws_restJson1DescribeAssetPropertyCommand = async (input, context
|
|
|
800
800
|
if (labelValue.length <= 0) {
|
|
801
801
|
throw new Error("Empty value provided for input HTTP label: propertyId.");
|
|
802
802
|
}
|
|
803
|
-
resolvedPath = resolvedPath.replace("{propertyId}",
|
|
803
|
+
resolvedPath = resolvedPath.replace("{propertyId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
804
804
|
}
|
|
805
805
|
else {
|
|
806
806
|
throw new Error("No value provided for input HTTP label: propertyId.");
|
|
@@ -809,7 +809,7 @@ const serializeAws_restJson1DescribeAssetPropertyCommand = async (input, context
|
|
|
809
809
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
810
810
|
if (context.disableHostPrefix !== true) {
|
|
811
811
|
resolvedHostname = "api." + resolvedHostname;
|
|
812
|
-
if (!
|
|
812
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
813
813
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
814
814
|
}
|
|
815
815
|
}
|
|
@@ -833,7 +833,7 @@ const serializeAws_restJson1DescribeDashboardCommand = async (input, context) =>
|
|
|
833
833
|
if (labelValue.length <= 0) {
|
|
834
834
|
throw new Error("Empty value provided for input HTTP label: dashboardId.");
|
|
835
835
|
}
|
|
836
|
-
resolvedPath = resolvedPath.replace("{dashboardId}",
|
|
836
|
+
resolvedPath = resolvedPath.replace("{dashboardId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
837
837
|
}
|
|
838
838
|
else {
|
|
839
839
|
throw new Error("No value provided for input HTTP label: dashboardId.");
|
|
@@ -842,7 +842,7 @@ const serializeAws_restJson1DescribeDashboardCommand = async (input, context) =>
|
|
|
842
842
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
843
843
|
if (context.disableHostPrefix !== true) {
|
|
844
844
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
845
|
-
if (!
|
|
845
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
846
846
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
847
847
|
}
|
|
848
848
|
}
|
|
@@ -868,7 +868,7 @@ const serializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = asyn
|
|
|
868
868
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
869
869
|
if (context.disableHostPrefix !== true) {
|
|
870
870
|
resolvedHostname = "api." + resolvedHostname;
|
|
871
|
-
if (!
|
|
871
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
872
872
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
873
873
|
}
|
|
874
874
|
}
|
|
@@ -892,7 +892,7 @@ const serializeAws_restJson1DescribeGatewayCommand = async (input, context) => {
|
|
|
892
892
|
if (labelValue.length <= 0) {
|
|
893
893
|
throw new Error("Empty value provided for input HTTP label: gatewayId.");
|
|
894
894
|
}
|
|
895
|
-
resolvedPath = resolvedPath.replace("{gatewayId}",
|
|
895
|
+
resolvedPath = resolvedPath.replace("{gatewayId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
896
896
|
}
|
|
897
897
|
else {
|
|
898
898
|
throw new Error("No value provided for input HTTP label: gatewayId.");
|
|
@@ -901,7 +901,7 @@ const serializeAws_restJson1DescribeGatewayCommand = async (input, context) => {
|
|
|
901
901
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
902
902
|
if (context.disableHostPrefix !== true) {
|
|
903
903
|
resolvedHostname = "api." + resolvedHostname;
|
|
904
|
-
if (!
|
|
904
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
905
905
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
906
906
|
}
|
|
907
907
|
}
|
|
@@ -926,7 +926,7 @@ const serializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = asyn
|
|
|
926
926
|
if (labelValue.length <= 0) {
|
|
927
927
|
throw new Error("Empty value provided for input HTTP label: gatewayId.");
|
|
928
928
|
}
|
|
929
|
-
resolvedPath = resolvedPath.replace("{gatewayId}",
|
|
929
|
+
resolvedPath = resolvedPath.replace("{gatewayId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
930
930
|
}
|
|
931
931
|
else {
|
|
932
932
|
throw new Error("No value provided for input HTTP label: gatewayId.");
|
|
@@ -936,7 +936,7 @@ const serializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = asyn
|
|
|
936
936
|
if (labelValue.length <= 0) {
|
|
937
937
|
throw new Error("Empty value provided for input HTTP label: capabilityNamespace.");
|
|
938
938
|
}
|
|
939
|
-
resolvedPath = resolvedPath.replace("{capabilityNamespace}",
|
|
939
|
+
resolvedPath = resolvedPath.replace("{capabilityNamespace}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
940
940
|
}
|
|
941
941
|
else {
|
|
942
942
|
throw new Error("No value provided for input HTTP label: capabilityNamespace.");
|
|
@@ -945,7 +945,7 @@ const serializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = asyn
|
|
|
945
945
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
946
946
|
if (context.disableHostPrefix !== true) {
|
|
947
947
|
resolvedHostname = "api." + resolvedHostname;
|
|
948
|
-
if (!
|
|
948
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
949
949
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
950
950
|
}
|
|
951
951
|
}
|
|
@@ -971,7 +971,7 @@ const serializeAws_restJson1DescribeLoggingOptionsCommand = async (input, contex
|
|
|
971
971
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
972
972
|
if (context.disableHostPrefix !== true) {
|
|
973
973
|
resolvedHostname = "api." + resolvedHostname;
|
|
974
|
-
if (!
|
|
974
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
975
975
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
976
976
|
}
|
|
977
977
|
}
|
|
@@ -995,7 +995,7 @@ const serializeAws_restJson1DescribePortalCommand = async (input, context) => {
|
|
|
995
995
|
if (labelValue.length <= 0) {
|
|
996
996
|
throw new Error("Empty value provided for input HTTP label: portalId.");
|
|
997
997
|
}
|
|
998
|
-
resolvedPath = resolvedPath.replace("{portalId}",
|
|
998
|
+
resolvedPath = resolvedPath.replace("{portalId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
999
999
|
}
|
|
1000
1000
|
else {
|
|
1001
1001
|
throw new Error("No value provided for input HTTP label: portalId.");
|
|
@@ -1004,7 +1004,7 @@ const serializeAws_restJson1DescribePortalCommand = async (input, context) => {
|
|
|
1004
1004
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1005
1005
|
if (context.disableHostPrefix !== true) {
|
|
1006
1006
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
1007
|
-
if (!
|
|
1007
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1008
1008
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
@@ -1028,7 +1028,7 @@ const serializeAws_restJson1DescribeProjectCommand = async (input, context) => {
|
|
|
1028
1028
|
if (labelValue.length <= 0) {
|
|
1029
1029
|
throw new Error("Empty value provided for input HTTP label: projectId.");
|
|
1030
1030
|
}
|
|
1031
|
-
resolvedPath = resolvedPath.replace("{projectId}",
|
|
1031
|
+
resolvedPath = resolvedPath.replace("{projectId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1032
1032
|
}
|
|
1033
1033
|
else {
|
|
1034
1034
|
throw new Error("No value provided for input HTTP label: projectId.");
|
|
@@ -1037,7 +1037,7 @@ const serializeAws_restJson1DescribeProjectCommand = async (input, context) => {
|
|
|
1037
1037
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1038
1038
|
if (context.disableHostPrefix !== true) {
|
|
1039
1039
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
1040
|
-
if (!
|
|
1040
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1041
1041
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
@@ -1063,7 +1063,7 @@ const serializeAws_restJson1DescribeStorageConfigurationCommand = async (input,
|
|
|
1063
1063
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1064
1064
|
if (context.disableHostPrefix !== true) {
|
|
1065
1065
|
resolvedHostname = "api." + resolvedHostname;
|
|
1066
|
-
if (!
|
|
1066
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1067
1067
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
@@ -1090,7 +1090,7 @@ const serializeAws_restJson1DisassociateAssetsCommand = async (input, context) =
|
|
|
1090
1090
|
if (labelValue.length <= 0) {
|
|
1091
1091
|
throw new Error("Empty value provided for input HTTP label: assetId.");
|
|
1092
1092
|
}
|
|
1093
|
-
resolvedPath = resolvedPath.replace("{assetId}",
|
|
1093
|
+
resolvedPath = resolvedPath.replace("{assetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1094
1094
|
}
|
|
1095
1095
|
else {
|
|
1096
1096
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
@@ -1098,13 +1098,13 @@ const serializeAws_restJson1DisassociateAssetsCommand = async (input, context) =
|
|
|
1098
1098
|
let body;
|
|
1099
1099
|
body = JSON.stringify({
|
|
1100
1100
|
...(input.childAssetId !== undefined && input.childAssetId !== null && { childAssetId: input.childAssetId }),
|
|
1101
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
1101
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1102
1102
|
...(input.hierarchyId !== undefined && input.hierarchyId !== null && { hierarchyId: input.hierarchyId }),
|
|
1103
1103
|
});
|
|
1104
1104
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1105
1105
|
if (context.disableHostPrefix !== true) {
|
|
1106
1106
|
resolvedHostname = "api." + resolvedHostname;
|
|
1107
|
-
if (!
|
|
1107
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1108
1108
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
@@ -1142,7 +1142,7 @@ const serializeAws_restJson1GetAssetPropertyAggregatesCommand = async (input, co
|
|
|
1142
1142
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1143
1143
|
if (context.disableHostPrefix !== true) {
|
|
1144
1144
|
resolvedHostname = "data." + resolvedHostname;
|
|
1145
|
-
if (!
|
|
1145
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1146
1146
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1147
1147
|
}
|
|
1148
1148
|
}
|
|
@@ -1171,7 +1171,7 @@ const serializeAws_restJson1GetAssetPropertyValueCommand = async (input, context
|
|
|
1171
1171
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1172
1172
|
if (context.disableHostPrefix !== true) {
|
|
1173
1173
|
resolvedHostname = "data." + resolvedHostname;
|
|
1174
|
-
if (!
|
|
1174
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1175
1175
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
@@ -1206,7 +1206,7 @@ const serializeAws_restJson1GetAssetPropertyValueHistoryCommand = async (input,
|
|
|
1206
1206
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1207
1207
|
if (context.disableHostPrefix !== true) {
|
|
1208
1208
|
resolvedHostname = "data." + resolvedHostname;
|
|
1209
|
-
if (!
|
|
1209
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1210
1210
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1211
1211
|
}
|
|
1212
1212
|
}
|
|
@@ -1249,7 +1249,7 @@ const serializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = async (i
|
|
|
1249
1249
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1250
1250
|
if (context.disableHostPrefix !== true) {
|
|
1251
1251
|
resolvedHostname = "data." + resolvedHostname;
|
|
1252
|
-
if (!
|
|
1252
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1253
1253
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1254
1254
|
}
|
|
1255
1255
|
}
|
|
@@ -1282,7 +1282,7 @@ const serializeAws_restJson1ListAccessPoliciesCommand = async (input, context) =
|
|
|
1282
1282
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1283
1283
|
if (context.disableHostPrefix !== true) {
|
|
1284
1284
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
1285
|
-
if (!
|
|
1285
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1286
1286
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
@@ -1310,7 +1310,7 @@ const serializeAws_restJson1ListAssetModelsCommand = async (input, context) => {
|
|
|
1310
1310
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1311
1311
|
if (context.disableHostPrefix !== true) {
|
|
1312
1312
|
resolvedHostname = "api." + resolvedHostname;
|
|
1313
|
-
if (!
|
|
1313
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1314
1314
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
@@ -1335,7 +1335,7 @@ const serializeAws_restJson1ListAssetRelationshipsCommand = async (input, contex
|
|
|
1335
1335
|
if (labelValue.length <= 0) {
|
|
1336
1336
|
throw new Error("Empty value provided for input HTTP label: assetId.");
|
|
1337
1337
|
}
|
|
1338
|
-
resolvedPath = resolvedPath.replace("{assetId}",
|
|
1338
|
+
resolvedPath = resolvedPath.replace("{assetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1339
1339
|
}
|
|
1340
1340
|
else {
|
|
1341
1341
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
@@ -1349,7 +1349,7 @@ const serializeAws_restJson1ListAssetRelationshipsCommand = async (input, contex
|
|
|
1349
1349
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1350
1350
|
if (context.disableHostPrefix !== true) {
|
|
1351
1351
|
resolvedHostname = "api." + resolvedHostname;
|
|
1352
|
-
if (!
|
|
1352
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1353
1353
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
@@ -1379,7 +1379,7 @@ const serializeAws_restJson1ListAssetsCommand = async (input, context) => {
|
|
|
1379
1379
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1380
1380
|
if (context.disableHostPrefix !== true) {
|
|
1381
1381
|
resolvedHostname = "api." + resolvedHostname;
|
|
1382
|
-
if (!
|
|
1382
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1383
1383
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1384
1384
|
}
|
|
1385
1385
|
}
|
|
@@ -1404,7 +1404,7 @@ const serializeAws_restJson1ListAssociatedAssetsCommand = async (input, context)
|
|
|
1404
1404
|
if (labelValue.length <= 0) {
|
|
1405
1405
|
throw new Error("Empty value provided for input HTTP label: assetId.");
|
|
1406
1406
|
}
|
|
1407
|
-
resolvedPath = resolvedPath.replace("{assetId}",
|
|
1407
|
+
resolvedPath = resolvedPath.replace("{assetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1408
1408
|
}
|
|
1409
1409
|
else {
|
|
1410
1410
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
@@ -1419,7 +1419,7 @@ const serializeAws_restJson1ListAssociatedAssetsCommand = async (input, context)
|
|
|
1419
1419
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1420
1420
|
if (context.disableHostPrefix !== true) {
|
|
1421
1421
|
resolvedHostname = "api." + resolvedHostname;
|
|
1422
|
-
if (!
|
|
1422
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1423
1423
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1424
1424
|
}
|
|
1425
1425
|
}
|
|
@@ -1448,7 +1448,7 @@ const serializeAws_restJson1ListDashboardsCommand = async (input, context) => {
|
|
|
1448
1448
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1449
1449
|
if (context.disableHostPrefix !== true) {
|
|
1450
1450
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
1451
|
-
if (!
|
|
1451
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1452
1452
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1453
1453
|
}
|
|
1454
1454
|
}
|
|
@@ -1476,7 +1476,7 @@ const serializeAws_restJson1ListGatewaysCommand = async (input, context) => {
|
|
|
1476
1476
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1477
1477
|
if (context.disableHostPrefix !== true) {
|
|
1478
1478
|
resolvedHostname = "api." + resolvedHostname;
|
|
1479
|
-
if (!
|
|
1479
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1480
1480
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
@@ -1504,7 +1504,7 @@ const serializeAws_restJson1ListPortalsCommand = async (input, context) => {
|
|
|
1504
1504
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1505
1505
|
if (context.disableHostPrefix !== true) {
|
|
1506
1506
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
1507
|
-
if (!
|
|
1507
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1508
1508
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1509
1509
|
}
|
|
1510
1510
|
}
|
|
@@ -1529,7 +1529,7 @@ const serializeAws_restJson1ListProjectAssetsCommand = async (input, context) =>
|
|
|
1529
1529
|
if (labelValue.length <= 0) {
|
|
1530
1530
|
throw new Error("Empty value provided for input HTTP label: projectId.");
|
|
1531
1531
|
}
|
|
1532
|
-
resolvedPath = resolvedPath.replace("{projectId}",
|
|
1532
|
+
resolvedPath = resolvedPath.replace("{projectId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1533
1533
|
}
|
|
1534
1534
|
else {
|
|
1535
1535
|
throw new Error("No value provided for input HTTP label: projectId.");
|
|
@@ -1542,7 +1542,7 @@ const serializeAws_restJson1ListProjectAssetsCommand = async (input, context) =>
|
|
|
1542
1542
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1543
1543
|
if (context.disableHostPrefix !== true) {
|
|
1544
1544
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
1545
|
-
if (!
|
|
1545
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1546
1546
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1547
1547
|
}
|
|
1548
1548
|
}
|
|
@@ -1571,7 +1571,7 @@ const serializeAws_restJson1ListProjectsCommand = async (input, context) => {
|
|
|
1571
1571
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1572
1572
|
if (context.disableHostPrefix !== true) {
|
|
1573
1573
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
1574
|
-
if (!
|
|
1574
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1575
1575
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
@@ -1598,7 +1598,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
1598
1598
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1599
1599
|
if (context.disableHostPrefix !== true) {
|
|
1600
1600
|
resolvedHostname = "api." + resolvedHostname;
|
|
1601
|
-
if (!
|
|
1601
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1602
1602
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1603
1603
|
}
|
|
1604
1604
|
}
|
|
@@ -1629,7 +1629,7 @@ const serializeAws_restJson1PutDefaultEncryptionConfigurationCommand = async (in
|
|
|
1629
1629
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1630
1630
|
if (context.disableHostPrefix !== true) {
|
|
1631
1631
|
resolvedHostname = "api." + resolvedHostname;
|
|
1632
|
-
if (!
|
|
1632
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1633
1633
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1634
1634
|
}
|
|
1635
1635
|
}
|
|
@@ -1660,7 +1660,7 @@ const serializeAws_restJson1PutLoggingOptionsCommand = async (input, context) =>
|
|
|
1660
1660
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1661
1661
|
if (context.disableHostPrefix !== true) {
|
|
1662
1662
|
resolvedHostname = "api." + resolvedHostname;
|
|
1663
|
-
if (!
|
|
1663
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1664
1664
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1665
1665
|
}
|
|
1666
1666
|
}
|
|
@@ -1692,7 +1692,7 @@ const serializeAws_restJson1PutStorageConfigurationCommand = async (input, conte
|
|
|
1692
1692
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1693
1693
|
if (context.disableHostPrefix !== true) {
|
|
1694
1694
|
resolvedHostname = "api." + resolvedHostname;
|
|
1695
|
-
if (!
|
|
1695
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1696
1696
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1697
1697
|
}
|
|
1698
1698
|
}
|
|
@@ -1723,7 +1723,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1723
1723
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1724
1724
|
if (context.disableHostPrefix !== true) {
|
|
1725
1725
|
resolvedHostname = "api." + resolvedHostname;
|
|
1726
|
-
if (!
|
|
1726
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1727
1727
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1728
1728
|
}
|
|
1729
1729
|
}
|
|
@@ -1751,7 +1751,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1751
1751
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1752
1752
|
if (context.disableHostPrefix !== true) {
|
|
1753
1753
|
resolvedHostname = "api." + resolvedHostname;
|
|
1754
|
-
if (!
|
|
1754
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1755
1755
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1756
1756
|
}
|
|
1757
1757
|
}
|
|
@@ -1779,7 +1779,7 @@ const serializeAws_restJson1UpdateAccessPolicyCommand = async (input, context) =
|
|
|
1779
1779
|
if (labelValue.length <= 0) {
|
|
1780
1780
|
throw new Error("Empty value provided for input HTTP label: accessPolicyId.");
|
|
1781
1781
|
}
|
|
1782
|
-
resolvedPath = resolvedPath.replace("{accessPolicyId}",
|
|
1782
|
+
resolvedPath = resolvedPath.replace("{accessPolicyId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1783
1783
|
}
|
|
1784
1784
|
else {
|
|
1785
1785
|
throw new Error("No value provided for input HTTP label: accessPolicyId.");
|
|
@@ -1796,12 +1796,12 @@ const serializeAws_restJson1UpdateAccessPolicyCommand = async (input, context) =
|
|
|
1796
1796
|
input.accessPolicyResource !== null && {
|
|
1797
1797
|
accessPolicyResource: serializeAws_restJson1Resource(input.accessPolicyResource, context),
|
|
1798
1798
|
}),
|
|
1799
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
1799
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1800
1800
|
});
|
|
1801
1801
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1802
1802
|
if (context.disableHostPrefix !== true) {
|
|
1803
1803
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
1804
|
-
if (!
|
|
1804
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1805
1805
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1806
1806
|
}
|
|
1807
1807
|
}
|
|
@@ -1828,7 +1828,7 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
|
|
|
1828
1828
|
if (labelValue.length <= 0) {
|
|
1829
1829
|
throw new Error("Empty value provided for input HTTP label: assetId.");
|
|
1830
1830
|
}
|
|
1831
|
-
resolvedPath = resolvedPath.replace("{assetId}",
|
|
1831
|
+
resolvedPath = resolvedPath.replace("{assetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1832
1832
|
}
|
|
1833
1833
|
else {
|
|
1834
1834
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
@@ -1836,12 +1836,12 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
|
|
|
1836
1836
|
let body;
|
|
1837
1837
|
body = JSON.stringify({
|
|
1838
1838
|
...(input.assetName !== undefined && input.assetName !== null && { assetName: input.assetName }),
|
|
1839
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
1839
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1840
1840
|
});
|
|
1841
1841
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1842
1842
|
if (context.disableHostPrefix !== true) {
|
|
1843
1843
|
resolvedHostname = "api." + resolvedHostname;
|
|
1844
|
-
if (!
|
|
1844
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1845
1845
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1846
1846
|
}
|
|
1847
1847
|
}
|
|
@@ -1868,7 +1868,7 @@ const serializeAws_restJson1UpdateAssetModelCommand = async (input, context) =>
|
|
|
1868
1868
|
if (labelValue.length <= 0) {
|
|
1869
1869
|
throw new Error("Empty value provided for input HTTP label: assetModelId.");
|
|
1870
1870
|
}
|
|
1871
|
-
resolvedPath = resolvedPath.replace("{assetModelId}",
|
|
1871
|
+
resolvedPath = resolvedPath.replace("{assetModelId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1872
1872
|
}
|
|
1873
1873
|
else {
|
|
1874
1874
|
throw new Error("No value provided for input HTTP label: assetModelId.");
|
|
@@ -1891,12 +1891,12 @@ const serializeAws_restJson1UpdateAssetModelCommand = async (input, context) =>
|
|
|
1891
1891
|
input.assetModelProperties !== null && {
|
|
1892
1892
|
assetModelProperties: serializeAws_restJson1AssetModelProperties(input.assetModelProperties, context),
|
|
1893
1893
|
}),
|
|
1894
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
1894
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1895
1895
|
});
|
|
1896
1896
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1897
1897
|
if (context.disableHostPrefix !== true) {
|
|
1898
1898
|
resolvedHostname = "api." + resolvedHostname;
|
|
1899
|
-
if (!
|
|
1899
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1900
1900
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1901
1901
|
}
|
|
1902
1902
|
}
|
|
@@ -1923,7 +1923,7 @@ const serializeAws_restJson1UpdateAssetPropertyCommand = async (input, context)
|
|
|
1923
1923
|
if (labelValue.length <= 0) {
|
|
1924
1924
|
throw new Error("Empty value provided for input HTTP label: assetId.");
|
|
1925
1925
|
}
|
|
1926
|
-
resolvedPath = resolvedPath.replace("{assetId}",
|
|
1926
|
+
resolvedPath = resolvedPath.replace("{assetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1927
1927
|
}
|
|
1928
1928
|
else {
|
|
1929
1929
|
throw new Error("No value provided for input HTTP label: assetId.");
|
|
@@ -1933,14 +1933,14 @@ const serializeAws_restJson1UpdateAssetPropertyCommand = async (input, context)
|
|
|
1933
1933
|
if (labelValue.length <= 0) {
|
|
1934
1934
|
throw new Error("Empty value provided for input HTTP label: propertyId.");
|
|
1935
1935
|
}
|
|
1936
|
-
resolvedPath = resolvedPath.replace("{propertyId}",
|
|
1936
|
+
resolvedPath = resolvedPath.replace("{propertyId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1937
1937
|
}
|
|
1938
1938
|
else {
|
|
1939
1939
|
throw new Error("No value provided for input HTTP label: propertyId.");
|
|
1940
1940
|
}
|
|
1941
1941
|
let body;
|
|
1942
1942
|
body = JSON.stringify({
|
|
1943
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
1943
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1944
1944
|
...(input.propertyAlias !== undefined && input.propertyAlias !== null && { propertyAlias: input.propertyAlias }),
|
|
1945
1945
|
...(input.propertyNotificationState !== undefined &&
|
|
1946
1946
|
input.propertyNotificationState !== null && { propertyNotificationState: input.propertyNotificationState }),
|
|
@@ -1948,7 +1948,7 @@ const serializeAws_restJson1UpdateAssetPropertyCommand = async (input, context)
|
|
|
1948
1948
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1949
1949
|
if (context.disableHostPrefix !== true) {
|
|
1950
1950
|
resolvedHostname = "api." + resolvedHostname;
|
|
1951
|
-
if (!
|
|
1951
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1952
1952
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
@@ -1975,14 +1975,14 @@ const serializeAws_restJson1UpdateDashboardCommand = async (input, context) => {
|
|
|
1975
1975
|
if (labelValue.length <= 0) {
|
|
1976
1976
|
throw new Error("Empty value provided for input HTTP label: dashboardId.");
|
|
1977
1977
|
}
|
|
1978
|
-
resolvedPath = resolvedPath.replace("{dashboardId}",
|
|
1978
|
+
resolvedPath = resolvedPath.replace("{dashboardId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1979
1979
|
}
|
|
1980
1980
|
else {
|
|
1981
1981
|
throw new Error("No value provided for input HTTP label: dashboardId.");
|
|
1982
1982
|
}
|
|
1983
1983
|
let body;
|
|
1984
1984
|
body = JSON.stringify({
|
|
1985
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
1985
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1986
1986
|
...(input.dashboardDefinition !== undefined &&
|
|
1987
1987
|
input.dashboardDefinition !== null && { dashboardDefinition: input.dashboardDefinition }),
|
|
1988
1988
|
...(input.dashboardDescription !== undefined &&
|
|
@@ -1992,7 +1992,7 @@ const serializeAws_restJson1UpdateDashboardCommand = async (input, context) => {
|
|
|
1992
1992
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1993
1993
|
if (context.disableHostPrefix !== true) {
|
|
1994
1994
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
1995
|
-
if (!
|
|
1995
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1996
1996
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1997
1997
|
}
|
|
1998
1998
|
}
|
|
@@ -2018,7 +2018,7 @@ const serializeAws_restJson1UpdateGatewayCommand = async (input, context) => {
|
|
|
2018
2018
|
if (labelValue.length <= 0) {
|
|
2019
2019
|
throw new Error("Empty value provided for input HTTP label: gatewayId.");
|
|
2020
2020
|
}
|
|
2021
|
-
resolvedPath = resolvedPath.replace("{gatewayId}",
|
|
2021
|
+
resolvedPath = resolvedPath.replace("{gatewayId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2022
2022
|
}
|
|
2023
2023
|
else {
|
|
2024
2024
|
throw new Error("No value provided for input HTTP label: gatewayId.");
|
|
@@ -2030,7 +2030,7 @@ const serializeAws_restJson1UpdateGatewayCommand = async (input, context) => {
|
|
|
2030
2030
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2031
2031
|
if (context.disableHostPrefix !== true) {
|
|
2032
2032
|
resolvedHostname = "api." + resolvedHostname;
|
|
2033
|
-
if (!
|
|
2033
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
2034
2034
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2035
2035
|
}
|
|
2036
2036
|
}
|
|
@@ -2056,7 +2056,7 @@ const serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = async
|
|
|
2056
2056
|
if (labelValue.length <= 0) {
|
|
2057
2057
|
throw new Error("Empty value provided for input HTTP label: gatewayId.");
|
|
2058
2058
|
}
|
|
2059
|
-
resolvedPath = resolvedPath.replace("{gatewayId}",
|
|
2059
|
+
resolvedPath = resolvedPath.replace("{gatewayId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2060
2060
|
}
|
|
2061
2061
|
else {
|
|
2062
2062
|
throw new Error("No value provided for input HTTP label: gatewayId.");
|
|
@@ -2071,7 +2071,7 @@ const serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = async
|
|
|
2071
2071
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2072
2072
|
if (context.disableHostPrefix !== true) {
|
|
2073
2073
|
resolvedHostname = "api." + resolvedHostname;
|
|
2074
|
-
if (!
|
|
2074
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
2075
2075
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2076
2076
|
}
|
|
2077
2077
|
}
|
|
@@ -2098,7 +2098,7 @@ const serializeAws_restJson1UpdatePortalCommand = async (input, context) => {
|
|
|
2098
2098
|
if (labelValue.length <= 0) {
|
|
2099
2099
|
throw new Error("Empty value provided for input HTTP label: portalId.");
|
|
2100
2100
|
}
|
|
2101
|
-
resolvedPath = resolvedPath.replace("{portalId}",
|
|
2101
|
+
resolvedPath = resolvedPath.replace("{portalId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2102
2102
|
}
|
|
2103
2103
|
else {
|
|
2104
2104
|
throw new Error("No value provided for input HTTP label: portalId.");
|
|
@@ -2107,7 +2107,7 @@ const serializeAws_restJson1UpdatePortalCommand = async (input, context) => {
|
|
|
2107
2107
|
body = JSON.stringify({
|
|
2108
2108
|
...(input.alarms !== undefined &&
|
|
2109
2109
|
input.alarms !== null && { alarms: serializeAws_restJson1Alarms(input.alarms, context) }),
|
|
2110
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
2110
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
2111
2111
|
...(input.notificationSenderEmail !== undefined &&
|
|
2112
2112
|
input.notificationSenderEmail !== null && { notificationSenderEmail: input.notificationSenderEmail }),
|
|
2113
2113
|
...(input.portalContactEmail !== undefined &&
|
|
@@ -2124,7 +2124,7 @@ const serializeAws_restJson1UpdatePortalCommand = async (input, context) => {
|
|
|
2124
2124
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2125
2125
|
if (context.disableHostPrefix !== true) {
|
|
2126
2126
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
2127
|
-
if (!
|
|
2127
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
2128
2128
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2129
2129
|
}
|
|
2130
2130
|
}
|
|
@@ -2151,14 +2151,14 @@ const serializeAws_restJson1UpdateProjectCommand = async (input, context) => {
|
|
|
2151
2151
|
if (labelValue.length <= 0) {
|
|
2152
2152
|
throw new Error("Empty value provided for input HTTP label: projectId.");
|
|
2153
2153
|
}
|
|
2154
|
-
resolvedPath = resolvedPath.replace("{projectId}",
|
|
2154
|
+
resolvedPath = resolvedPath.replace("{projectId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
2155
2155
|
}
|
|
2156
2156
|
else {
|
|
2157
2157
|
throw new Error("No value provided for input HTTP label: projectId.");
|
|
2158
2158
|
}
|
|
2159
2159
|
let body;
|
|
2160
2160
|
body = JSON.stringify({
|
|
2161
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
2161
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
2162
2162
|
...(input.projectDescription !== undefined &&
|
|
2163
2163
|
input.projectDescription !== null && { projectDescription: input.projectDescription }),
|
|
2164
2164
|
...(input.projectName !== undefined && input.projectName !== null && { projectName: input.projectName }),
|
|
@@ -2166,7 +2166,7 @@ const serializeAws_restJson1UpdateProjectCommand = async (input, context) => {
|
|
|
2166
2166
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2167
2167
|
if (context.disableHostPrefix !== true) {
|
|
2168
2168
|
resolvedHostname = "monitor." + resolvedHostname;
|
|
2169
|
-
if (!
|
|
2169
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
2170
2170
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2171
2171
|
}
|
|
2172
2172
|
}
|
|
@@ -2273,7 +2273,7 @@ const deserializeAws_restJson1BatchAssociateProjectAssetsCommand = async (output
|
|
|
2273
2273
|
$metadata: deserializeMetadata(output),
|
|
2274
2274
|
errors: undefined,
|
|
2275
2275
|
};
|
|
2276
|
-
const data =
|
|
2276
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2277
2277
|
if (data.errors !== undefined && data.errors !== null) {
|
|
2278
2278
|
contents.errors = deserializeAws_restJson1BatchAssociateProjectAssetsErrors(data.errors, context);
|
|
2279
2279
|
}
|
|
@@ -2353,7 +2353,7 @@ const deserializeAws_restJson1BatchDisassociateProjectAssetsCommand = async (out
|
|
|
2353
2353
|
$metadata: deserializeMetadata(output),
|
|
2354
2354
|
errors: undefined,
|
|
2355
2355
|
};
|
|
2356
|
-
const data =
|
|
2356
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2357
2357
|
if (data.errors !== undefined && data.errors !== null) {
|
|
2358
2358
|
contents.errors = deserializeAws_restJson1BatchDisassociateProjectAssetsErrors(data.errors, context);
|
|
2359
2359
|
}
|
|
@@ -2425,7 +2425,7 @@ const deserializeAws_restJson1BatchPutAssetPropertyValueCommand = async (output,
|
|
|
2425
2425
|
$metadata: deserializeMetadata(output),
|
|
2426
2426
|
errorEntries: undefined,
|
|
2427
2427
|
};
|
|
2428
|
-
const data =
|
|
2428
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2429
2429
|
if (data.errorEntries !== undefined && data.errorEntries !== null) {
|
|
2430
2430
|
contents.errorEntries = deserializeAws_restJson1BatchPutAssetPropertyErrorEntries(data.errorEntries, context);
|
|
2431
2431
|
}
|
|
@@ -2522,12 +2522,12 @@ const deserializeAws_restJson1CreateAccessPolicyCommand = async (output, context
|
|
|
2522
2522
|
accessPolicyArn: undefined,
|
|
2523
2523
|
accessPolicyId: undefined,
|
|
2524
2524
|
};
|
|
2525
|
-
const data =
|
|
2525
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2526
2526
|
if (data.accessPolicyArn !== undefined && data.accessPolicyArn !== null) {
|
|
2527
|
-
contents.accessPolicyArn =
|
|
2527
|
+
contents.accessPolicyArn = smithy_client_1.expectString(data.accessPolicyArn);
|
|
2528
2528
|
}
|
|
2529
2529
|
if (data.accessPolicyId !== undefined && data.accessPolicyId !== null) {
|
|
2530
|
-
contents.accessPolicyId =
|
|
2530
|
+
contents.accessPolicyId = smithy_client_1.expectString(data.accessPolicyId);
|
|
2531
2531
|
}
|
|
2532
2532
|
return Promise.resolve(contents);
|
|
2533
2533
|
};
|
|
@@ -2607,12 +2607,12 @@ const deserializeAws_restJson1CreateAssetCommand = async (output, context) => {
|
|
|
2607
2607
|
assetId: undefined,
|
|
2608
2608
|
assetStatus: undefined,
|
|
2609
2609
|
};
|
|
2610
|
-
const data =
|
|
2610
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2611
2611
|
if (data.assetArn !== undefined && data.assetArn !== null) {
|
|
2612
|
-
contents.assetArn =
|
|
2612
|
+
contents.assetArn = smithy_client_1.expectString(data.assetArn);
|
|
2613
2613
|
}
|
|
2614
2614
|
if (data.assetId !== undefined && data.assetId !== null) {
|
|
2615
|
-
contents.assetId =
|
|
2615
|
+
contents.assetId = smithy_client_1.expectString(data.assetId);
|
|
2616
2616
|
}
|
|
2617
2617
|
if (data.assetStatus !== undefined && data.assetStatus !== null) {
|
|
2618
2618
|
contents.assetStatus = deserializeAws_restJson1AssetStatus(data.assetStatus, context);
|
|
@@ -2711,12 +2711,12 @@ const deserializeAws_restJson1CreateAssetModelCommand = async (output, context)
|
|
|
2711
2711
|
assetModelId: undefined,
|
|
2712
2712
|
assetModelStatus: undefined,
|
|
2713
2713
|
};
|
|
2714
|
-
const data =
|
|
2714
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2715
2715
|
if (data.assetModelArn !== undefined && data.assetModelArn !== null) {
|
|
2716
|
-
contents.assetModelArn =
|
|
2716
|
+
contents.assetModelArn = smithy_client_1.expectString(data.assetModelArn);
|
|
2717
2717
|
}
|
|
2718
2718
|
if (data.assetModelId !== undefined && data.assetModelId !== null) {
|
|
2719
|
-
contents.assetModelId =
|
|
2719
|
+
contents.assetModelId = smithy_client_1.expectString(data.assetModelId);
|
|
2720
2720
|
}
|
|
2721
2721
|
if (data.assetModelStatus !== undefined && data.assetModelStatus !== null) {
|
|
2722
2722
|
contents.assetModelStatus = deserializeAws_restJson1AssetModelStatus(data.assetModelStatus, context);
|
|
@@ -2814,12 +2814,12 @@ const deserializeAws_restJson1CreateDashboardCommand = async (output, context) =
|
|
|
2814
2814
|
dashboardArn: undefined,
|
|
2815
2815
|
dashboardId: undefined,
|
|
2816
2816
|
};
|
|
2817
|
-
const data =
|
|
2817
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2818
2818
|
if (data.dashboardArn !== undefined && data.dashboardArn !== null) {
|
|
2819
|
-
contents.dashboardArn =
|
|
2819
|
+
contents.dashboardArn = smithy_client_1.expectString(data.dashboardArn);
|
|
2820
2820
|
}
|
|
2821
2821
|
if (data.dashboardId !== undefined && data.dashboardId !== null) {
|
|
2822
|
-
contents.dashboardId =
|
|
2822
|
+
contents.dashboardId = smithy_client_1.expectString(data.dashboardId);
|
|
2823
2823
|
}
|
|
2824
2824
|
return Promise.resolve(contents);
|
|
2825
2825
|
};
|
|
@@ -2898,12 +2898,12 @@ const deserializeAws_restJson1CreateGatewayCommand = async (output, context) =>
|
|
|
2898
2898
|
gatewayArn: undefined,
|
|
2899
2899
|
gatewayId: undefined,
|
|
2900
2900
|
};
|
|
2901
|
-
const data =
|
|
2901
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2902
2902
|
if (data.gatewayArn !== undefined && data.gatewayArn !== null) {
|
|
2903
|
-
contents.gatewayArn =
|
|
2903
|
+
contents.gatewayArn = smithy_client_1.expectString(data.gatewayArn);
|
|
2904
2904
|
}
|
|
2905
2905
|
if (data.gatewayId !== undefined && data.gatewayId !== null) {
|
|
2906
|
-
contents.gatewayId =
|
|
2906
|
+
contents.gatewayId = smithy_client_1.expectString(data.gatewayId);
|
|
2907
2907
|
}
|
|
2908
2908
|
return Promise.resolve(contents);
|
|
2909
2909
|
};
|
|
@@ -2985,21 +2985,21 @@ const deserializeAws_restJson1CreatePortalCommand = async (output, context) => {
|
|
|
2985
2985
|
portalStatus: undefined,
|
|
2986
2986
|
ssoApplicationId: undefined,
|
|
2987
2987
|
};
|
|
2988
|
-
const data =
|
|
2988
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2989
2989
|
if (data.portalArn !== undefined && data.portalArn !== null) {
|
|
2990
|
-
contents.portalArn =
|
|
2990
|
+
contents.portalArn = smithy_client_1.expectString(data.portalArn);
|
|
2991
2991
|
}
|
|
2992
2992
|
if (data.portalId !== undefined && data.portalId !== null) {
|
|
2993
|
-
contents.portalId =
|
|
2993
|
+
contents.portalId = smithy_client_1.expectString(data.portalId);
|
|
2994
2994
|
}
|
|
2995
2995
|
if (data.portalStartUrl !== undefined && data.portalStartUrl !== null) {
|
|
2996
|
-
contents.portalStartUrl =
|
|
2996
|
+
contents.portalStartUrl = smithy_client_1.expectString(data.portalStartUrl);
|
|
2997
2997
|
}
|
|
2998
2998
|
if (data.portalStatus !== undefined && data.portalStatus !== null) {
|
|
2999
2999
|
contents.portalStatus = deserializeAws_restJson1PortalStatus(data.portalStatus, context);
|
|
3000
3000
|
}
|
|
3001
3001
|
if (data.ssoApplicationId !== undefined && data.ssoApplicationId !== null) {
|
|
3002
|
-
contents.ssoApplicationId =
|
|
3002
|
+
contents.ssoApplicationId = smithy_client_1.expectString(data.ssoApplicationId);
|
|
3003
3003
|
}
|
|
3004
3004
|
return Promise.resolve(contents);
|
|
3005
3005
|
};
|
|
@@ -3078,12 +3078,12 @@ const deserializeAws_restJson1CreateProjectCommand = async (output, context) =>
|
|
|
3078
3078
|
projectArn: undefined,
|
|
3079
3079
|
projectId: undefined,
|
|
3080
3080
|
};
|
|
3081
|
-
const data =
|
|
3081
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3082
3082
|
if (data.projectArn !== undefined && data.projectArn !== null) {
|
|
3083
|
-
contents.projectArn =
|
|
3083
|
+
contents.projectArn = smithy_client_1.expectString(data.projectArn);
|
|
3084
3084
|
}
|
|
3085
3085
|
if (data.projectId !== undefined && data.projectId !== null) {
|
|
3086
|
-
contents.projectId =
|
|
3086
|
+
contents.projectId = smithy_client_1.expectString(data.projectId);
|
|
3087
3087
|
}
|
|
3088
3088
|
return Promise.resolve(contents);
|
|
3089
3089
|
};
|
|
@@ -3229,7 +3229,7 @@ const deserializeAws_restJson1DeleteAssetCommand = async (output, context) => {
|
|
|
3229
3229
|
$metadata: deserializeMetadata(output),
|
|
3230
3230
|
assetStatus: undefined,
|
|
3231
3231
|
};
|
|
3232
|
-
const data =
|
|
3232
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3233
3233
|
if (data.assetStatus !== undefined && data.assetStatus !== null) {
|
|
3234
3234
|
contents.assetStatus = deserializeAws_restJson1AssetStatus(data.assetStatus, context);
|
|
3235
3235
|
}
|
|
@@ -3309,7 +3309,7 @@ const deserializeAws_restJson1DeleteAssetModelCommand = async (output, context)
|
|
|
3309
3309
|
$metadata: deserializeMetadata(output),
|
|
3310
3310
|
assetModelStatus: undefined,
|
|
3311
3311
|
};
|
|
3312
|
-
const data =
|
|
3312
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3313
3313
|
if (data.assetModelStatus !== undefined && data.assetModelStatus !== null) {
|
|
3314
3314
|
contents.assetModelStatus = deserializeAws_restJson1AssetModelStatus(data.assetModelStatus, context);
|
|
3315
3315
|
}
|
|
@@ -3525,7 +3525,7 @@ const deserializeAws_restJson1DeletePortalCommand = async (output, context) => {
|
|
|
3525
3525
|
$metadata: deserializeMetadata(output),
|
|
3526
3526
|
portalStatus: undefined,
|
|
3527
3527
|
};
|
|
3528
|
-
const data =
|
|
3528
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3529
3529
|
if (data.portalStatus !== undefined && data.portalStatus !== null) {
|
|
3530
3530
|
contents.portalStatus = deserializeAws_restJson1PortalStatus(data.portalStatus, context);
|
|
3531
3531
|
}
|
|
@@ -3679,24 +3679,24 @@ const deserializeAws_restJson1DescribeAccessPolicyCommand = async (output, conte
|
|
|
3679
3679
|
accessPolicyPermission: undefined,
|
|
3680
3680
|
accessPolicyResource: undefined,
|
|
3681
3681
|
};
|
|
3682
|
-
const data =
|
|
3682
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3683
3683
|
if (data.accessPolicyArn !== undefined && data.accessPolicyArn !== null) {
|
|
3684
|
-
contents.accessPolicyArn =
|
|
3684
|
+
contents.accessPolicyArn = smithy_client_1.expectString(data.accessPolicyArn);
|
|
3685
3685
|
}
|
|
3686
3686
|
if (data.accessPolicyCreationDate !== undefined && data.accessPolicyCreationDate !== null) {
|
|
3687
|
-
contents.accessPolicyCreationDate =
|
|
3687
|
+
contents.accessPolicyCreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.accessPolicyCreationDate)));
|
|
3688
3688
|
}
|
|
3689
3689
|
if (data.accessPolicyId !== undefined && data.accessPolicyId !== null) {
|
|
3690
|
-
contents.accessPolicyId =
|
|
3690
|
+
contents.accessPolicyId = smithy_client_1.expectString(data.accessPolicyId);
|
|
3691
3691
|
}
|
|
3692
3692
|
if (data.accessPolicyIdentity !== undefined && data.accessPolicyIdentity !== null) {
|
|
3693
3693
|
contents.accessPolicyIdentity = deserializeAws_restJson1Identity(data.accessPolicyIdentity, context);
|
|
3694
3694
|
}
|
|
3695
3695
|
if (data.accessPolicyLastUpdateDate !== undefined && data.accessPolicyLastUpdateDate !== null) {
|
|
3696
|
-
contents.accessPolicyLastUpdateDate =
|
|
3696
|
+
contents.accessPolicyLastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.accessPolicyLastUpdateDate)));
|
|
3697
3697
|
}
|
|
3698
3698
|
if (data.accessPolicyPermission !== undefined && data.accessPolicyPermission !== null) {
|
|
3699
|
-
contents.accessPolicyPermission =
|
|
3699
|
+
contents.accessPolicyPermission = smithy_client_1.expectString(data.accessPolicyPermission);
|
|
3700
3700
|
}
|
|
3701
3701
|
if (data.accessPolicyResource !== undefined && data.accessPolicyResource !== null) {
|
|
3702
3702
|
contents.accessPolicyResource = deserializeAws_restJson1Resource(data.accessPolicyResource, context);
|
|
@@ -3778,30 +3778,30 @@ const deserializeAws_restJson1DescribeAssetCommand = async (output, context) =>
|
|
|
3778
3778
|
assetProperties: undefined,
|
|
3779
3779
|
assetStatus: undefined,
|
|
3780
3780
|
};
|
|
3781
|
-
const data =
|
|
3781
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3782
3782
|
if (data.assetArn !== undefined && data.assetArn !== null) {
|
|
3783
|
-
contents.assetArn =
|
|
3783
|
+
contents.assetArn = smithy_client_1.expectString(data.assetArn);
|
|
3784
3784
|
}
|
|
3785
3785
|
if (data.assetCompositeModels !== undefined && data.assetCompositeModels !== null) {
|
|
3786
3786
|
contents.assetCompositeModels = deserializeAws_restJson1AssetCompositeModels(data.assetCompositeModels, context);
|
|
3787
3787
|
}
|
|
3788
3788
|
if (data.assetCreationDate !== undefined && data.assetCreationDate !== null) {
|
|
3789
|
-
contents.assetCreationDate =
|
|
3789
|
+
contents.assetCreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.assetCreationDate)));
|
|
3790
3790
|
}
|
|
3791
3791
|
if (data.assetHierarchies !== undefined && data.assetHierarchies !== null) {
|
|
3792
3792
|
contents.assetHierarchies = deserializeAws_restJson1AssetHierarchies(data.assetHierarchies, context);
|
|
3793
3793
|
}
|
|
3794
3794
|
if (data.assetId !== undefined && data.assetId !== null) {
|
|
3795
|
-
contents.assetId =
|
|
3795
|
+
contents.assetId = smithy_client_1.expectString(data.assetId);
|
|
3796
3796
|
}
|
|
3797
3797
|
if (data.assetLastUpdateDate !== undefined && data.assetLastUpdateDate !== null) {
|
|
3798
|
-
contents.assetLastUpdateDate =
|
|
3798
|
+
contents.assetLastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.assetLastUpdateDate)));
|
|
3799
3799
|
}
|
|
3800
3800
|
if (data.assetModelId !== undefined && data.assetModelId !== null) {
|
|
3801
|
-
contents.assetModelId =
|
|
3801
|
+
contents.assetModelId = smithy_client_1.expectString(data.assetModelId);
|
|
3802
3802
|
}
|
|
3803
3803
|
if (data.assetName !== undefined && data.assetName !== null) {
|
|
3804
|
-
contents.assetName =
|
|
3804
|
+
contents.assetName = smithy_client_1.expectString(data.assetName);
|
|
3805
3805
|
}
|
|
3806
3806
|
if (data.assetProperties !== undefined && data.assetProperties !== null) {
|
|
3807
3807
|
contents.assetProperties = deserializeAws_restJson1AssetProperties(data.assetProperties, context);
|
|
@@ -3886,30 +3886,30 @@ const deserializeAws_restJson1DescribeAssetModelCommand = async (output, context
|
|
|
3886
3886
|
assetModelProperties: undefined,
|
|
3887
3887
|
assetModelStatus: undefined,
|
|
3888
3888
|
};
|
|
3889
|
-
const data =
|
|
3889
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3890
3890
|
if (data.assetModelArn !== undefined && data.assetModelArn !== null) {
|
|
3891
|
-
contents.assetModelArn =
|
|
3891
|
+
contents.assetModelArn = smithy_client_1.expectString(data.assetModelArn);
|
|
3892
3892
|
}
|
|
3893
3893
|
if (data.assetModelCompositeModels !== undefined && data.assetModelCompositeModels !== null) {
|
|
3894
3894
|
contents.assetModelCompositeModels = deserializeAws_restJson1AssetModelCompositeModels(data.assetModelCompositeModels, context);
|
|
3895
3895
|
}
|
|
3896
3896
|
if (data.assetModelCreationDate !== undefined && data.assetModelCreationDate !== null) {
|
|
3897
|
-
contents.assetModelCreationDate =
|
|
3897
|
+
contents.assetModelCreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.assetModelCreationDate)));
|
|
3898
3898
|
}
|
|
3899
3899
|
if (data.assetModelDescription !== undefined && data.assetModelDescription !== null) {
|
|
3900
|
-
contents.assetModelDescription =
|
|
3900
|
+
contents.assetModelDescription = smithy_client_1.expectString(data.assetModelDescription);
|
|
3901
3901
|
}
|
|
3902
3902
|
if (data.assetModelHierarchies !== undefined && data.assetModelHierarchies !== null) {
|
|
3903
3903
|
contents.assetModelHierarchies = deserializeAws_restJson1AssetModelHierarchies(data.assetModelHierarchies, context);
|
|
3904
3904
|
}
|
|
3905
3905
|
if (data.assetModelId !== undefined && data.assetModelId !== null) {
|
|
3906
|
-
contents.assetModelId =
|
|
3906
|
+
contents.assetModelId = smithy_client_1.expectString(data.assetModelId);
|
|
3907
3907
|
}
|
|
3908
3908
|
if (data.assetModelLastUpdateDate !== undefined && data.assetModelLastUpdateDate !== null) {
|
|
3909
|
-
contents.assetModelLastUpdateDate =
|
|
3909
|
+
contents.assetModelLastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.assetModelLastUpdateDate)));
|
|
3910
3910
|
}
|
|
3911
3911
|
if (data.assetModelName !== undefined && data.assetModelName !== null) {
|
|
3912
|
-
contents.assetModelName =
|
|
3912
|
+
contents.assetModelName = smithy_client_1.expectString(data.assetModelName);
|
|
3913
3913
|
}
|
|
3914
3914
|
if (data.assetModelProperties !== undefined && data.assetModelProperties !== null) {
|
|
3915
3915
|
contents.assetModelProperties = deserializeAws_restJson1AssetModelProperties(data.assetModelProperties, context);
|
|
@@ -3989,15 +3989,15 @@ const deserializeAws_restJson1DescribeAssetPropertyCommand = async (output, cont
|
|
|
3989
3989
|
assetProperty: undefined,
|
|
3990
3990
|
compositeModel: undefined,
|
|
3991
3991
|
};
|
|
3992
|
-
const data =
|
|
3992
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3993
3993
|
if (data.assetId !== undefined && data.assetId !== null) {
|
|
3994
|
-
contents.assetId =
|
|
3994
|
+
contents.assetId = smithy_client_1.expectString(data.assetId);
|
|
3995
3995
|
}
|
|
3996
3996
|
if (data.assetModelId !== undefined && data.assetModelId !== null) {
|
|
3997
|
-
contents.assetModelId =
|
|
3997
|
+
contents.assetModelId = smithy_client_1.expectString(data.assetModelId);
|
|
3998
3998
|
}
|
|
3999
3999
|
if (data.assetName !== undefined && data.assetName !== null) {
|
|
4000
|
-
contents.assetName =
|
|
4000
|
+
contents.assetName = smithy_client_1.expectString(data.assetName);
|
|
4001
4001
|
}
|
|
4002
4002
|
if (data.assetProperty !== undefined && data.assetProperty !== null) {
|
|
4003
4003
|
contents.assetProperty = deserializeAws_restJson1Property(data.assetProperty, context);
|
|
@@ -4080,30 +4080,30 @@ const deserializeAws_restJson1DescribeDashboardCommand = async (output, context)
|
|
|
4080
4080
|
dashboardName: undefined,
|
|
4081
4081
|
projectId: undefined,
|
|
4082
4082
|
};
|
|
4083
|
-
const data =
|
|
4083
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4084
4084
|
if (data.dashboardArn !== undefined && data.dashboardArn !== null) {
|
|
4085
|
-
contents.dashboardArn =
|
|
4085
|
+
contents.dashboardArn = smithy_client_1.expectString(data.dashboardArn);
|
|
4086
4086
|
}
|
|
4087
4087
|
if (data.dashboardCreationDate !== undefined && data.dashboardCreationDate !== null) {
|
|
4088
|
-
contents.dashboardCreationDate =
|
|
4088
|
+
contents.dashboardCreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.dashboardCreationDate)));
|
|
4089
4089
|
}
|
|
4090
4090
|
if (data.dashboardDefinition !== undefined && data.dashboardDefinition !== null) {
|
|
4091
|
-
contents.dashboardDefinition =
|
|
4091
|
+
contents.dashboardDefinition = smithy_client_1.expectString(data.dashboardDefinition);
|
|
4092
4092
|
}
|
|
4093
4093
|
if (data.dashboardDescription !== undefined && data.dashboardDescription !== null) {
|
|
4094
|
-
contents.dashboardDescription =
|
|
4094
|
+
contents.dashboardDescription = smithy_client_1.expectString(data.dashboardDescription);
|
|
4095
4095
|
}
|
|
4096
4096
|
if (data.dashboardId !== undefined && data.dashboardId !== null) {
|
|
4097
|
-
contents.dashboardId =
|
|
4097
|
+
contents.dashboardId = smithy_client_1.expectString(data.dashboardId);
|
|
4098
4098
|
}
|
|
4099
4099
|
if (data.dashboardLastUpdateDate !== undefined && data.dashboardLastUpdateDate !== null) {
|
|
4100
|
-
contents.dashboardLastUpdateDate =
|
|
4100
|
+
contents.dashboardLastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.dashboardLastUpdateDate)));
|
|
4101
4101
|
}
|
|
4102
4102
|
if (data.dashboardName !== undefined && data.dashboardName !== null) {
|
|
4103
|
-
contents.dashboardName =
|
|
4103
|
+
contents.dashboardName = smithy_client_1.expectString(data.dashboardName);
|
|
4104
4104
|
}
|
|
4105
4105
|
if (data.projectId !== undefined && data.projectId !== null) {
|
|
4106
|
-
contents.projectId =
|
|
4106
|
+
contents.projectId = smithy_client_1.expectString(data.projectId);
|
|
4107
4107
|
}
|
|
4108
4108
|
return Promise.resolve(contents);
|
|
4109
4109
|
};
|
|
@@ -4175,15 +4175,15 @@ const deserializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = as
|
|
|
4175
4175
|
encryptionType: undefined,
|
|
4176
4176
|
kmsKeyArn: undefined,
|
|
4177
4177
|
};
|
|
4178
|
-
const data =
|
|
4178
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4179
4179
|
if (data.configurationStatus !== undefined && data.configurationStatus !== null) {
|
|
4180
4180
|
contents.configurationStatus = deserializeAws_restJson1ConfigurationStatus(data.configurationStatus, context);
|
|
4181
4181
|
}
|
|
4182
4182
|
if (data.encryptionType !== undefined && data.encryptionType !== null) {
|
|
4183
|
-
contents.encryptionType =
|
|
4183
|
+
contents.encryptionType = smithy_client_1.expectString(data.encryptionType);
|
|
4184
4184
|
}
|
|
4185
4185
|
if (data.kmsKeyArn !== undefined && data.kmsKeyArn !== null) {
|
|
4186
|
-
contents.kmsKeyArn =
|
|
4186
|
+
contents.kmsKeyArn = smithy_client_1.expectString(data.kmsKeyArn);
|
|
4187
4187
|
}
|
|
4188
4188
|
return Promise.resolve(contents);
|
|
4189
4189
|
};
|
|
@@ -4251,27 +4251,27 @@ const deserializeAws_restJson1DescribeGatewayCommand = async (output, context) =
|
|
|
4251
4251
|
gatewayPlatform: undefined,
|
|
4252
4252
|
lastUpdateDate: undefined,
|
|
4253
4253
|
};
|
|
4254
|
-
const data =
|
|
4254
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4255
4255
|
if (data.creationDate !== undefined && data.creationDate !== null) {
|
|
4256
|
-
contents.creationDate =
|
|
4256
|
+
contents.creationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.creationDate)));
|
|
4257
4257
|
}
|
|
4258
4258
|
if (data.gatewayArn !== undefined && data.gatewayArn !== null) {
|
|
4259
|
-
contents.gatewayArn =
|
|
4259
|
+
contents.gatewayArn = smithy_client_1.expectString(data.gatewayArn);
|
|
4260
4260
|
}
|
|
4261
4261
|
if (data.gatewayCapabilitySummaries !== undefined && data.gatewayCapabilitySummaries !== null) {
|
|
4262
4262
|
contents.gatewayCapabilitySummaries = deserializeAws_restJson1GatewayCapabilitySummaries(data.gatewayCapabilitySummaries, context);
|
|
4263
4263
|
}
|
|
4264
4264
|
if (data.gatewayId !== undefined && data.gatewayId !== null) {
|
|
4265
|
-
contents.gatewayId =
|
|
4265
|
+
contents.gatewayId = smithy_client_1.expectString(data.gatewayId);
|
|
4266
4266
|
}
|
|
4267
4267
|
if (data.gatewayName !== undefined && data.gatewayName !== null) {
|
|
4268
|
-
contents.gatewayName =
|
|
4268
|
+
contents.gatewayName = smithy_client_1.expectString(data.gatewayName);
|
|
4269
4269
|
}
|
|
4270
4270
|
if (data.gatewayPlatform !== undefined && data.gatewayPlatform !== null) {
|
|
4271
4271
|
contents.gatewayPlatform = deserializeAws_restJson1GatewayPlatform(data.gatewayPlatform, context);
|
|
4272
4272
|
}
|
|
4273
4273
|
if (data.lastUpdateDate !== undefined && data.lastUpdateDate !== null) {
|
|
4274
|
-
contents.lastUpdateDate =
|
|
4274
|
+
contents.lastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdateDate)));
|
|
4275
4275
|
}
|
|
4276
4276
|
return Promise.resolve(contents);
|
|
4277
4277
|
};
|
|
@@ -4344,18 +4344,18 @@ const deserializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = as
|
|
|
4344
4344
|
capabilitySyncStatus: undefined,
|
|
4345
4345
|
gatewayId: undefined,
|
|
4346
4346
|
};
|
|
4347
|
-
const data =
|
|
4347
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4348
4348
|
if (data.capabilityConfiguration !== undefined && data.capabilityConfiguration !== null) {
|
|
4349
|
-
contents.capabilityConfiguration =
|
|
4349
|
+
contents.capabilityConfiguration = smithy_client_1.expectString(data.capabilityConfiguration);
|
|
4350
4350
|
}
|
|
4351
4351
|
if (data.capabilityNamespace !== undefined && data.capabilityNamespace !== null) {
|
|
4352
|
-
contents.capabilityNamespace =
|
|
4352
|
+
contents.capabilityNamespace = smithy_client_1.expectString(data.capabilityNamespace);
|
|
4353
4353
|
}
|
|
4354
4354
|
if (data.capabilitySyncStatus !== undefined && data.capabilitySyncStatus !== null) {
|
|
4355
|
-
contents.capabilitySyncStatus =
|
|
4355
|
+
contents.capabilitySyncStatus = smithy_client_1.expectString(data.capabilitySyncStatus);
|
|
4356
4356
|
}
|
|
4357
4357
|
if (data.gatewayId !== undefined && data.gatewayId !== null) {
|
|
4358
|
-
contents.gatewayId =
|
|
4358
|
+
contents.gatewayId = smithy_client_1.expectString(data.gatewayId);
|
|
4359
4359
|
}
|
|
4360
4360
|
return Promise.resolve(contents);
|
|
4361
4361
|
};
|
|
@@ -4425,7 +4425,7 @@ const deserializeAws_restJson1DescribeLoggingOptionsCommand = async (output, con
|
|
|
4425
4425
|
$metadata: deserializeMetadata(output),
|
|
4426
4426
|
loggingOptions: undefined,
|
|
4427
4427
|
};
|
|
4428
|
-
const data =
|
|
4428
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4429
4429
|
if (data.loggingOptions !== undefined && data.loggingOptions !== null) {
|
|
4430
4430
|
contents.loggingOptions = deserializeAws_restJson1LoggingOptions(data.loggingOptions, context);
|
|
4431
4431
|
}
|
|
@@ -4511,51 +4511,51 @@ const deserializeAws_restJson1DescribePortalCommand = async (output, context) =>
|
|
|
4511
4511
|
portalStatus: undefined,
|
|
4512
4512
|
roleArn: undefined,
|
|
4513
4513
|
};
|
|
4514
|
-
const data =
|
|
4514
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4515
4515
|
if (data.alarms !== undefined && data.alarms !== null) {
|
|
4516
4516
|
contents.alarms = deserializeAws_restJson1Alarms(data.alarms, context);
|
|
4517
4517
|
}
|
|
4518
4518
|
if (data.notificationSenderEmail !== undefined && data.notificationSenderEmail !== null) {
|
|
4519
|
-
contents.notificationSenderEmail =
|
|
4519
|
+
contents.notificationSenderEmail = smithy_client_1.expectString(data.notificationSenderEmail);
|
|
4520
4520
|
}
|
|
4521
4521
|
if (data.portalArn !== undefined && data.portalArn !== null) {
|
|
4522
|
-
contents.portalArn =
|
|
4522
|
+
contents.portalArn = smithy_client_1.expectString(data.portalArn);
|
|
4523
4523
|
}
|
|
4524
4524
|
if (data.portalAuthMode !== undefined && data.portalAuthMode !== null) {
|
|
4525
|
-
contents.portalAuthMode =
|
|
4525
|
+
contents.portalAuthMode = smithy_client_1.expectString(data.portalAuthMode);
|
|
4526
4526
|
}
|
|
4527
4527
|
if (data.portalClientId !== undefined && data.portalClientId !== null) {
|
|
4528
|
-
contents.portalClientId =
|
|
4528
|
+
contents.portalClientId = smithy_client_1.expectString(data.portalClientId);
|
|
4529
4529
|
}
|
|
4530
4530
|
if (data.portalContactEmail !== undefined && data.portalContactEmail !== null) {
|
|
4531
|
-
contents.portalContactEmail =
|
|
4531
|
+
contents.portalContactEmail = smithy_client_1.expectString(data.portalContactEmail);
|
|
4532
4532
|
}
|
|
4533
4533
|
if (data.portalCreationDate !== undefined && data.portalCreationDate !== null) {
|
|
4534
|
-
contents.portalCreationDate =
|
|
4534
|
+
contents.portalCreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.portalCreationDate)));
|
|
4535
4535
|
}
|
|
4536
4536
|
if (data.portalDescription !== undefined && data.portalDescription !== null) {
|
|
4537
|
-
contents.portalDescription =
|
|
4537
|
+
contents.portalDescription = smithy_client_1.expectString(data.portalDescription);
|
|
4538
4538
|
}
|
|
4539
4539
|
if (data.portalId !== undefined && data.portalId !== null) {
|
|
4540
|
-
contents.portalId =
|
|
4540
|
+
contents.portalId = smithy_client_1.expectString(data.portalId);
|
|
4541
4541
|
}
|
|
4542
4542
|
if (data.portalLastUpdateDate !== undefined && data.portalLastUpdateDate !== null) {
|
|
4543
|
-
contents.portalLastUpdateDate =
|
|
4543
|
+
contents.portalLastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.portalLastUpdateDate)));
|
|
4544
4544
|
}
|
|
4545
4545
|
if (data.portalLogoImageLocation !== undefined && data.portalLogoImageLocation !== null) {
|
|
4546
4546
|
contents.portalLogoImageLocation = deserializeAws_restJson1ImageLocation(data.portalLogoImageLocation, context);
|
|
4547
4547
|
}
|
|
4548
4548
|
if (data.portalName !== undefined && data.portalName !== null) {
|
|
4549
|
-
contents.portalName =
|
|
4549
|
+
contents.portalName = smithy_client_1.expectString(data.portalName);
|
|
4550
4550
|
}
|
|
4551
4551
|
if (data.portalStartUrl !== undefined && data.portalStartUrl !== null) {
|
|
4552
|
-
contents.portalStartUrl =
|
|
4552
|
+
contents.portalStartUrl = smithy_client_1.expectString(data.portalStartUrl);
|
|
4553
4553
|
}
|
|
4554
4554
|
if (data.portalStatus !== undefined && data.portalStatus !== null) {
|
|
4555
4555
|
contents.portalStatus = deserializeAws_restJson1PortalStatus(data.portalStatus, context);
|
|
4556
4556
|
}
|
|
4557
4557
|
if (data.roleArn !== undefined && data.roleArn !== null) {
|
|
4558
|
-
contents.roleArn =
|
|
4558
|
+
contents.roleArn = smithy_client_1.expectString(data.roleArn);
|
|
4559
4559
|
}
|
|
4560
4560
|
return Promise.resolve(contents);
|
|
4561
4561
|
};
|
|
@@ -4631,27 +4631,27 @@ const deserializeAws_restJson1DescribeProjectCommand = async (output, context) =
|
|
|
4631
4631
|
projectLastUpdateDate: undefined,
|
|
4632
4632
|
projectName: undefined,
|
|
4633
4633
|
};
|
|
4634
|
-
const data =
|
|
4634
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4635
4635
|
if (data.portalId !== undefined && data.portalId !== null) {
|
|
4636
|
-
contents.portalId =
|
|
4636
|
+
contents.portalId = smithy_client_1.expectString(data.portalId);
|
|
4637
4637
|
}
|
|
4638
4638
|
if (data.projectArn !== undefined && data.projectArn !== null) {
|
|
4639
|
-
contents.projectArn =
|
|
4639
|
+
contents.projectArn = smithy_client_1.expectString(data.projectArn);
|
|
4640
4640
|
}
|
|
4641
4641
|
if (data.projectCreationDate !== undefined && data.projectCreationDate !== null) {
|
|
4642
|
-
contents.projectCreationDate =
|
|
4642
|
+
contents.projectCreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.projectCreationDate)));
|
|
4643
4643
|
}
|
|
4644
4644
|
if (data.projectDescription !== undefined && data.projectDescription !== null) {
|
|
4645
|
-
contents.projectDescription =
|
|
4645
|
+
contents.projectDescription = smithy_client_1.expectString(data.projectDescription);
|
|
4646
4646
|
}
|
|
4647
4647
|
if (data.projectId !== undefined && data.projectId !== null) {
|
|
4648
|
-
contents.projectId =
|
|
4648
|
+
contents.projectId = smithy_client_1.expectString(data.projectId);
|
|
4649
4649
|
}
|
|
4650
4650
|
if (data.projectLastUpdateDate !== undefined && data.projectLastUpdateDate !== null) {
|
|
4651
|
-
contents.projectLastUpdateDate =
|
|
4651
|
+
contents.projectLastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.projectLastUpdateDate)));
|
|
4652
4652
|
}
|
|
4653
4653
|
if (data.projectName !== undefined && data.projectName !== null) {
|
|
4654
|
-
contents.projectName =
|
|
4654
|
+
contents.projectName = smithy_client_1.expectString(data.projectName);
|
|
4655
4655
|
}
|
|
4656
4656
|
return Promise.resolve(contents);
|
|
4657
4657
|
};
|
|
@@ -4724,18 +4724,18 @@ const deserializeAws_restJson1DescribeStorageConfigurationCommand = async (outpu
|
|
|
4724
4724
|
multiLayerStorage: undefined,
|
|
4725
4725
|
storageType: undefined,
|
|
4726
4726
|
};
|
|
4727
|
-
const data =
|
|
4727
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4728
4728
|
if (data.configurationStatus !== undefined && data.configurationStatus !== null) {
|
|
4729
4729
|
contents.configurationStatus = deserializeAws_restJson1ConfigurationStatus(data.configurationStatus, context);
|
|
4730
4730
|
}
|
|
4731
4731
|
if (data.lastUpdateDate !== undefined && data.lastUpdateDate !== null) {
|
|
4732
|
-
contents.lastUpdateDate =
|
|
4732
|
+
contents.lastUpdateDate = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdateDate)));
|
|
4733
4733
|
}
|
|
4734
4734
|
if (data.multiLayerStorage !== undefined && data.multiLayerStorage !== null) {
|
|
4735
4735
|
contents.multiLayerStorage = deserializeAws_restJson1MultiLayerStorage(data.multiLayerStorage, context);
|
|
4736
4736
|
}
|
|
4737
4737
|
if (data.storageType !== undefined && data.storageType !== null) {
|
|
4738
|
-
contents.storageType =
|
|
4738
|
+
contents.storageType = smithy_client_1.expectString(data.storageType);
|
|
4739
4739
|
}
|
|
4740
4740
|
return Promise.resolve(contents);
|
|
4741
4741
|
};
|
|
@@ -4898,12 +4898,12 @@ const deserializeAws_restJson1GetAssetPropertyAggregatesCommand = async (output,
|
|
|
4898
4898
|
aggregatedValues: undefined,
|
|
4899
4899
|
nextToken: undefined,
|
|
4900
4900
|
};
|
|
4901
|
-
const data =
|
|
4901
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4902
4902
|
if (data.aggregatedValues !== undefined && data.aggregatedValues !== null) {
|
|
4903
4903
|
contents.aggregatedValues = deserializeAws_restJson1AggregatedValues(data.aggregatedValues, context);
|
|
4904
4904
|
}
|
|
4905
4905
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4906
|
-
contents.nextToken =
|
|
4906
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4907
4907
|
}
|
|
4908
4908
|
return Promise.resolve(contents);
|
|
4909
4909
|
};
|
|
@@ -4981,7 +4981,7 @@ const deserializeAws_restJson1GetAssetPropertyValueCommand = async (output, cont
|
|
|
4981
4981
|
$metadata: deserializeMetadata(output),
|
|
4982
4982
|
propertyValue: undefined,
|
|
4983
4983
|
};
|
|
4984
|
-
const data =
|
|
4984
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4985
4985
|
if (data.propertyValue !== undefined && data.propertyValue !== null) {
|
|
4986
4986
|
contents.propertyValue = deserializeAws_restJson1AssetPropertyValue(data.propertyValue, context);
|
|
4987
4987
|
}
|
|
@@ -5062,12 +5062,12 @@ const deserializeAws_restJson1GetAssetPropertyValueHistoryCommand = async (outpu
|
|
|
5062
5062
|
assetPropertyValueHistory: undefined,
|
|
5063
5063
|
nextToken: undefined,
|
|
5064
5064
|
};
|
|
5065
|
-
const data =
|
|
5065
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5066
5066
|
if (data.assetPropertyValueHistory !== undefined && data.assetPropertyValueHistory !== null) {
|
|
5067
5067
|
contents.assetPropertyValueHistory = deserializeAws_restJson1AssetPropertyValueHistory(data.assetPropertyValueHistory, context);
|
|
5068
5068
|
}
|
|
5069
5069
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5070
|
-
contents.nextToken =
|
|
5070
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5071
5071
|
}
|
|
5072
5072
|
return Promise.resolve(contents);
|
|
5073
5073
|
};
|
|
@@ -5146,12 +5146,12 @@ const deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = async
|
|
|
5146
5146
|
interpolatedAssetPropertyValues: undefined,
|
|
5147
5147
|
nextToken: undefined,
|
|
5148
5148
|
};
|
|
5149
|
-
const data =
|
|
5149
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5150
5150
|
if (data.interpolatedAssetPropertyValues !== undefined && data.interpolatedAssetPropertyValues !== null) {
|
|
5151
5151
|
contents.interpolatedAssetPropertyValues = deserializeAws_restJson1InterpolatedAssetPropertyValues(data.interpolatedAssetPropertyValues, context);
|
|
5152
5152
|
}
|
|
5153
5153
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5154
|
-
contents.nextToken =
|
|
5154
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5155
5155
|
}
|
|
5156
5156
|
return Promise.resolve(contents);
|
|
5157
5157
|
};
|
|
@@ -5230,12 +5230,12 @@ const deserializeAws_restJson1ListAccessPoliciesCommand = async (output, context
|
|
|
5230
5230
|
accessPolicySummaries: undefined,
|
|
5231
5231
|
nextToken: undefined,
|
|
5232
5232
|
};
|
|
5233
|
-
const data =
|
|
5233
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5234
5234
|
if (data.accessPolicySummaries !== undefined && data.accessPolicySummaries !== null) {
|
|
5235
5235
|
contents.accessPolicySummaries = deserializeAws_restJson1AccessPolicySummaries(data.accessPolicySummaries, context);
|
|
5236
5236
|
}
|
|
5237
5237
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5238
|
-
contents.nextToken =
|
|
5238
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5239
5239
|
}
|
|
5240
5240
|
return Promise.resolve(contents);
|
|
5241
5241
|
};
|
|
@@ -5298,12 +5298,12 @@ const deserializeAws_restJson1ListAssetModelsCommand = async (output, context) =
|
|
|
5298
5298
|
assetModelSummaries: undefined,
|
|
5299
5299
|
nextToken: undefined,
|
|
5300
5300
|
};
|
|
5301
|
-
const data =
|
|
5301
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5302
5302
|
if (data.assetModelSummaries !== undefined && data.assetModelSummaries !== null) {
|
|
5303
5303
|
contents.assetModelSummaries = deserializeAws_restJson1AssetModelSummaries(data.assetModelSummaries, context);
|
|
5304
5304
|
}
|
|
5305
5305
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5306
|
-
contents.nextToken =
|
|
5306
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5307
5307
|
}
|
|
5308
5308
|
return Promise.resolve(contents);
|
|
5309
5309
|
};
|
|
@@ -5366,12 +5366,12 @@ const deserializeAws_restJson1ListAssetRelationshipsCommand = async (output, con
|
|
|
5366
5366
|
assetRelationshipSummaries: undefined,
|
|
5367
5367
|
nextToken: undefined,
|
|
5368
5368
|
};
|
|
5369
|
-
const data =
|
|
5369
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5370
5370
|
if (data.assetRelationshipSummaries !== undefined && data.assetRelationshipSummaries !== null) {
|
|
5371
5371
|
contents.assetRelationshipSummaries = deserializeAws_restJson1AssetRelationshipSummaries(data.assetRelationshipSummaries, context);
|
|
5372
5372
|
}
|
|
5373
5373
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5374
|
-
contents.nextToken =
|
|
5374
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5375
5375
|
}
|
|
5376
5376
|
return Promise.resolve(contents);
|
|
5377
5377
|
};
|
|
@@ -5442,12 +5442,12 @@ const deserializeAws_restJson1ListAssetsCommand = async (output, context) => {
|
|
|
5442
5442
|
assetSummaries: undefined,
|
|
5443
5443
|
nextToken: undefined,
|
|
5444
5444
|
};
|
|
5445
|
-
const data =
|
|
5445
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5446
5446
|
if (data.assetSummaries !== undefined && data.assetSummaries !== null) {
|
|
5447
5447
|
contents.assetSummaries = deserializeAws_restJson1AssetSummaries(data.assetSummaries, context);
|
|
5448
5448
|
}
|
|
5449
5449
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5450
|
-
contents.nextToken =
|
|
5450
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5451
5451
|
}
|
|
5452
5452
|
return Promise.resolve(contents);
|
|
5453
5453
|
};
|
|
@@ -5518,12 +5518,12 @@ const deserializeAws_restJson1ListAssociatedAssetsCommand = async (output, conte
|
|
|
5518
5518
|
assetSummaries: undefined,
|
|
5519
5519
|
nextToken: undefined,
|
|
5520
5520
|
};
|
|
5521
|
-
const data =
|
|
5521
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5522
5522
|
if (data.assetSummaries !== undefined && data.assetSummaries !== null) {
|
|
5523
5523
|
contents.assetSummaries = deserializeAws_restJson1AssociatedAssetsSummaries(data.assetSummaries, context);
|
|
5524
5524
|
}
|
|
5525
5525
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5526
|
-
contents.nextToken =
|
|
5526
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5527
5527
|
}
|
|
5528
5528
|
return Promise.resolve(contents);
|
|
5529
5529
|
};
|
|
@@ -5594,12 +5594,12 @@ const deserializeAws_restJson1ListDashboardsCommand = async (output, context) =>
|
|
|
5594
5594
|
dashboardSummaries: undefined,
|
|
5595
5595
|
nextToken: undefined,
|
|
5596
5596
|
};
|
|
5597
|
-
const data =
|
|
5597
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5598
5598
|
if (data.dashboardSummaries !== undefined && data.dashboardSummaries !== null) {
|
|
5599
5599
|
contents.dashboardSummaries = deserializeAws_restJson1DashboardSummaries(data.dashboardSummaries, context);
|
|
5600
5600
|
}
|
|
5601
5601
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5602
|
-
contents.nextToken =
|
|
5602
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5603
5603
|
}
|
|
5604
5604
|
return Promise.resolve(contents);
|
|
5605
5605
|
};
|
|
@@ -5662,12 +5662,12 @@ const deserializeAws_restJson1ListGatewaysCommand = async (output, context) => {
|
|
|
5662
5662
|
gatewaySummaries: undefined,
|
|
5663
5663
|
nextToken: undefined,
|
|
5664
5664
|
};
|
|
5665
|
-
const data =
|
|
5665
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5666
5666
|
if (data.gatewaySummaries !== undefined && data.gatewaySummaries !== null) {
|
|
5667
5667
|
contents.gatewaySummaries = deserializeAws_restJson1GatewaySummaries(data.gatewaySummaries, context);
|
|
5668
5668
|
}
|
|
5669
5669
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5670
|
-
contents.nextToken =
|
|
5670
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5671
5671
|
}
|
|
5672
5672
|
return Promise.resolve(contents);
|
|
5673
5673
|
};
|
|
@@ -5730,9 +5730,9 @@ const deserializeAws_restJson1ListPortalsCommand = async (output, context) => {
|
|
|
5730
5730
|
nextToken: undefined,
|
|
5731
5731
|
portalSummaries: undefined,
|
|
5732
5732
|
};
|
|
5733
|
-
const data =
|
|
5733
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5734
5734
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5735
|
-
contents.nextToken =
|
|
5735
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5736
5736
|
}
|
|
5737
5737
|
if (data.portalSummaries !== undefined && data.portalSummaries !== null) {
|
|
5738
5738
|
contents.portalSummaries = deserializeAws_restJson1PortalSummaries(data.portalSummaries, context);
|
|
@@ -5798,12 +5798,12 @@ const deserializeAws_restJson1ListProjectAssetsCommand = async (output, context)
|
|
|
5798
5798
|
assetIds: undefined,
|
|
5799
5799
|
nextToken: undefined,
|
|
5800
5800
|
};
|
|
5801
|
-
const data =
|
|
5801
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5802
5802
|
if (data.assetIds !== undefined && data.assetIds !== null) {
|
|
5803
5803
|
contents.assetIds = deserializeAws_restJson1AssetIDs(data.assetIds, context);
|
|
5804
5804
|
}
|
|
5805
5805
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5806
|
-
contents.nextToken =
|
|
5806
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5807
5807
|
}
|
|
5808
5808
|
return Promise.resolve(contents);
|
|
5809
5809
|
};
|
|
@@ -5866,9 +5866,9 @@ const deserializeAws_restJson1ListProjectsCommand = async (output, context) => {
|
|
|
5866
5866
|
nextToken: undefined,
|
|
5867
5867
|
projectSummaries: undefined,
|
|
5868
5868
|
};
|
|
5869
|
-
const data =
|
|
5869
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5870
5870
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5871
|
-
contents.nextToken =
|
|
5871
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5872
5872
|
}
|
|
5873
5873
|
if (data.projectSummaries !== undefined && data.projectSummaries !== null) {
|
|
5874
5874
|
contents.projectSummaries = deserializeAws_restJson1ProjectSummaries(data.projectSummaries, context);
|
|
@@ -5933,7 +5933,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
5933
5933
|
$metadata: deserializeMetadata(output),
|
|
5934
5934
|
tags: undefined,
|
|
5935
5935
|
};
|
|
5936
|
-
const data =
|
|
5936
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5937
5937
|
if (data.tags !== undefined && data.tags !== null) {
|
|
5938
5938
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
5939
5939
|
}
|
|
@@ -6031,15 +6031,15 @@ const deserializeAws_restJson1PutDefaultEncryptionConfigurationCommand = async (
|
|
|
6031
6031
|
encryptionType: undefined,
|
|
6032
6032
|
kmsKeyArn: undefined,
|
|
6033
6033
|
};
|
|
6034
|
-
const data =
|
|
6034
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6035
6035
|
if (data.configurationStatus !== undefined && data.configurationStatus !== null) {
|
|
6036
6036
|
contents.configurationStatus = deserializeAws_restJson1ConfigurationStatus(data.configurationStatus, context);
|
|
6037
6037
|
}
|
|
6038
6038
|
if (data.encryptionType !== undefined && data.encryptionType !== null) {
|
|
6039
|
-
contents.encryptionType =
|
|
6039
|
+
contents.encryptionType = smithy_client_1.expectString(data.encryptionType);
|
|
6040
6040
|
}
|
|
6041
6041
|
if (data.kmsKeyArn !== undefined && data.kmsKeyArn !== null) {
|
|
6042
|
-
contents.kmsKeyArn =
|
|
6042
|
+
contents.kmsKeyArn = smithy_client_1.expectString(data.kmsKeyArn);
|
|
6043
6043
|
}
|
|
6044
6044
|
return Promise.resolve(contents);
|
|
6045
6045
|
};
|
|
@@ -6195,7 +6195,7 @@ const deserializeAws_restJson1PutStorageConfigurationCommand = async (output, co
|
|
|
6195
6195
|
multiLayerStorage: undefined,
|
|
6196
6196
|
storageType: undefined,
|
|
6197
6197
|
};
|
|
6198
|
-
const data =
|
|
6198
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6199
6199
|
if (data.configurationStatus !== undefined && data.configurationStatus !== null) {
|
|
6200
6200
|
contents.configurationStatus = deserializeAws_restJson1ConfigurationStatus(data.configurationStatus, context);
|
|
6201
6201
|
}
|
|
@@ -6203,7 +6203,7 @@ const deserializeAws_restJson1PutStorageConfigurationCommand = async (output, co
|
|
|
6203
6203
|
contents.multiLayerStorage = deserializeAws_restJson1MultiLayerStorage(data.multiLayerStorage, context);
|
|
6204
6204
|
}
|
|
6205
6205
|
if (data.storageType !== undefined && data.storageType !== null) {
|
|
6206
|
-
contents.storageType =
|
|
6206
|
+
contents.storageType = smithy_client_1.expectString(data.storageType);
|
|
6207
6207
|
}
|
|
6208
6208
|
return Promise.resolve(contents);
|
|
6209
6209
|
};
|
|
@@ -6557,7 +6557,7 @@ const deserializeAws_restJson1UpdateAssetCommand = async (output, context) => {
|
|
|
6557
6557
|
$metadata: deserializeMetadata(output),
|
|
6558
6558
|
assetStatus: undefined,
|
|
6559
6559
|
};
|
|
6560
|
-
const data =
|
|
6560
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6561
6561
|
if (data.assetStatus !== undefined && data.assetStatus !== null) {
|
|
6562
6562
|
contents.assetStatus = deserializeAws_restJson1AssetStatus(data.assetStatus, context);
|
|
6563
6563
|
}
|
|
@@ -6645,7 +6645,7 @@ const deserializeAws_restJson1UpdateAssetModelCommand = async (output, context)
|
|
|
6645
6645
|
$metadata: deserializeMetadata(output),
|
|
6646
6646
|
assetModelStatus: undefined,
|
|
6647
6647
|
};
|
|
6648
|
-
const data =
|
|
6648
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6649
6649
|
if (data.assetModelStatus !== undefined && data.assetModelStatus !== null) {
|
|
6650
6650
|
contents.assetModelStatus = deserializeAws_restJson1AssetModelStatus(data.assetModelStatus, context);
|
|
6651
6651
|
}
|
|
@@ -6962,12 +6962,12 @@ const deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = asyn
|
|
|
6962
6962
|
capabilityNamespace: undefined,
|
|
6963
6963
|
capabilitySyncStatus: undefined,
|
|
6964
6964
|
};
|
|
6965
|
-
const data =
|
|
6965
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6966
6966
|
if (data.capabilityNamespace !== undefined && data.capabilityNamespace !== null) {
|
|
6967
|
-
contents.capabilityNamespace =
|
|
6967
|
+
contents.capabilityNamespace = smithy_client_1.expectString(data.capabilityNamespace);
|
|
6968
6968
|
}
|
|
6969
6969
|
if (data.capabilitySyncStatus !== undefined && data.capabilitySyncStatus !== null) {
|
|
6970
|
-
contents.capabilitySyncStatus =
|
|
6970
|
+
contents.capabilitySyncStatus = smithy_client_1.expectString(data.capabilitySyncStatus);
|
|
6971
6971
|
}
|
|
6972
6972
|
return Promise.resolve(contents);
|
|
6973
6973
|
};
|
|
@@ -7053,7 +7053,7 @@ const deserializeAws_restJson1UpdatePortalCommand = async (output, context) => {
|
|
|
7053
7053
|
$metadata: deserializeMetadata(output),
|
|
7054
7054
|
portalStatus: undefined,
|
|
7055
7055
|
};
|
|
7056
|
-
const data =
|
|
7056
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
7057
7057
|
if (data.portalStatus !== undefined && data.portalStatus !== null) {
|
|
7058
7058
|
contents.portalStatus = deserializeAws_restJson1PortalStatus(data.portalStatus, context);
|
|
7059
7059
|
}
|
|
@@ -7204,13 +7204,13 @@ const deserializeAws_restJson1ConflictingOperationExceptionResponse = async (par
|
|
|
7204
7204
|
};
|
|
7205
7205
|
const data = parsedOutput.body;
|
|
7206
7206
|
if (data.message !== undefined && data.message !== null) {
|
|
7207
|
-
contents.message =
|
|
7207
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
7208
7208
|
}
|
|
7209
7209
|
if (data.resourceArn !== undefined && data.resourceArn !== null) {
|
|
7210
|
-
contents.resourceArn =
|
|
7210
|
+
contents.resourceArn = smithy_client_1.expectString(data.resourceArn);
|
|
7211
7211
|
}
|
|
7212
7212
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
7213
|
-
contents.resourceId =
|
|
7213
|
+
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
7214
7214
|
}
|
|
7215
7215
|
return contents;
|
|
7216
7216
|
};
|
|
@@ -7223,7 +7223,7 @@ const deserializeAws_restJson1InternalFailureExceptionResponse = async (parsedOu
|
|
|
7223
7223
|
};
|
|
7224
7224
|
const data = parsedOutput.body;
|
|
7225
7225
|
if (data.message !== undefined && data.message !== null) {
|
|
7226
|
-
contents.message =
|
|
7226
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
7227
7227
|
}
|
|
7228
7228
|
return contents;
|
|
7229
7229
|
};
|
|
@@ -7236,7 +7236,7 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
|
|
|
7236
7236
|
};
|
|
7237
7237
|
const data = parsedOutput.body;
|
|
7238
7238
|
if (data.message !== undefined && data.message !== null) {
|
|
7239
|
-
contents.message =
|
|
7239
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
7240
7240
|
}
|
|
7241
7241
|
return contents;
|
|
7242
7242
|
};
|
|
@@ -7249,7 +7249,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
|
|
|
7249
7249
|
};
|
|
7250
7250
|
const data = parsedOutput.body;
|
|
7251
7251
|
if (data.message !== undefined && data.message !== null) {
|
|
7252
|
-
contents.message =
|
|
7252
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
7253
7253
|
}
|
|
7254
7254
|
return contents;
|
|
7255
7255
|
};
|
|
@@ -7264,13 +7264,13 @@ const deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = async (pa
|
|
|
7264
7264
|
};
|
|
7265
7265
|
const data = parsedOutput.body;
|
|
7266
7266
|
if (data.message !== undefined && data.message !== null) {
|
|
7267
|
-
contents.message =
|
|
7267
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
7268
7268
|
}
|
|
7269
7269
|
if (data.resourceArn !== undefined && data.resourceArn !== null) {
|
|
7270
|
-
contents.resourceArn =
|
|
7270
|
+
contents.resourceArn = smithy_client_1.expectString(data.resourceArn);
|
|
7271
7271
|
}
|
|
7272
7272
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
7273
|
-
contents.resourceId =
|
|
7273
|
+
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
7274
7274
|
}
|
|
7275
7275
|
return contents;
|
|
7276
7276
|
};
|
|
@@ -7283,7 +7283,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
7283
7283
|
};
|
|
7284
7284
|
const data = parsedOutput.body;
|
|
7285
7285
|
if (data.message !== undefined && data.message !== null) {
|
|
7286
|
-
contents.message =
|
|
7286
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
7287
7287
|
}
|
|
7288
7288
|
return contents;
|
|
7289
7289
|
};
|
|
@@ -7296,7 +7296,7 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
7296
7296
|
};
|
|
7297
7297
|
const data = parsedOutput.body;
|
|
7298
7298
|
if (data.message !== undefined && data.message !== null) {
|
|
7299
|
-
contents.message =
|
|
7299
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
7300
7300
|
}
|
|
7301
7301
|
return contents;
|
|
7302
7302
|
};
|
|
@@ -7309,7 +7309,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
7309
7309
|
};
|
|
7310
7310
|
const data = parsedOutput.body;
|
|
7311
7311
|
if (data.message !== undefined && data.message !== null) {
|
|
7312
|
-
contents.message =
|
|
7312
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
7313
7313
|
}
|
|
7314
7314
|
return contents;
|
|
7315
7315
|
};
|
|
@@ -7323,10 +7323,10 @@ const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput
|
|
|
7323
7323
|
};
|
|
7324
7324
|
const data = parsedOutput.body;
|
|
7325
7325
|
if (data.message !== undefined && data.message !== null) {
|
|
7326
|
-
contents.message =
|
|
7326
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
7327
7327
|
}
|
|
7328
7328
|
if (data.resourceName !== undefined && data.resourceName !== null) {
|
|
7329
|
-
contents.resourceName =
|
|
7329
|
+
contents.resourceName = smithy_client_1.expectString(data.resourceName);
|
|
7330
7330
|
}
|
|
7331
7331
|
return contents;
|
|
7332
7332
|
};
|
|
@@ -7339,7 +7339,7 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
7339
7339
|
};
|
|
7340
7340
|
const data = parsedOutput.body;
|
|
7341
7341
|
if (data.message !== undefined && data.message !== null) {
|
|
7342
|
-
contents.message =
|
|
7342
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
7343
7343
|
}
|
|
7344
7344
|
return contents;
|
|
7345
7345
|
};
|
|
@@ -7754,7 +7754,7 @@ const serializeAws_restJson1Variant = (input, context) => {
|
|
|
7754
7754
|
return {
|
|
7755
7755
|
...(input.booleanValue !== undefined && input.booleanValue !== null && { booleanValue: input.booleanValue }),
|
|
7756
7756
|
...(input.doubleValue !== undefined &&
|
|
7757
|
-
input.doubleValue !== null && { doubleValue:
|
|
7757
|
+
input.doubleValue !== null && { doubleValue: smithy_client_1.serializeFloat(input.doubleValue) }),
|
|
7758
7758
|
...(input.integerValue !== undefined && input.integerValue !== null && { integerValue: input.integerValue }),
|
|
7759
7759
|
...(input.stringValue !== undefined && input.stringValue !== null && { stringValue: input.stringValue }),
|
|
7760
7760
|
};
|
|
@@ -7772,16 +7772,16 @@ const deserializeAws_restJson1AccessPolicySummaries = (output, context) => {
|
|
|
7772
7772
|
const deserializeAws_restJson1AccessPolicySummary = (output, context) => {
|
|
7773
7773
|
return {
|
|
7774
7774
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
7775
|
-
?
|
|
7775
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
|
|
7776
7776
|
: undefined,
|
|
7777
|
-
id:
|
|
7777
|
+
id: smithy_client_1.expectString(output.id),
|
|
7778
7778
|
identity: output.identity !== undefined && output.identity !== null
|
|
7779
7779
|
? deserializeAws_restJson1Identity(output.identity, context)
|
|
7780
7780
|
: undefined,
|
|
7781
7781
|
lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
|
|
7782
|
-
?
|
|
7782
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateDate)))
|
|
7783
7783
|
: undefined,
|
|
7784
|
-
permission:
|
|
7784
|
+
permission: smithy_client_1.expectString(output.permission),
|
|
7785
7785
|
resource: output.resource !== undefined && output.resource !== null
|
|
7786
7786
|
? deserializeAws_restJson1Resource(output.resource, context)
|
|
7787
7787
|
: undefined,
|
|
@@ -7789,9 +7789,9 @@ const deserializeAws_restJson1AccessPolicySummary = (output, context) => {
|
|
|
7789
7789
|
};
|
|
7790
7790
|
const deserializeAws_restJson1AggregatedValue = (output, context) => {
|
|
7791
7791
|
return {
|
|
7792
|
-
quality:
|
|
7792
|
+
quality: smithy_client_1.expectString(output.quality),
|
|
7793
7793
|
timestamp: output.timestamp !== undefined && output.timestamp !== null
|
|
7794
|
-
?
|
|
7794
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.timestamp)))
|
|
7795
7795
|
: undefined,
|
|
7796
7796
|
value: output.value !== undefined && output.value !== null
|
|
7797
7797
|
? deserializeAws_restJson1Aggregates(output.value, context)
|
|
@@ -7810,28 +7810,28 @@ const deserializeAws_restJson1AggregatedValues = (output, context) => {
|
|
|
7810
7810
|
};
|
|
7811
7811
|
const deserializeAws_restJson1Aggregates = (output, context) => {
|
|
7812
7812
|
return {
|
|
7813
|
-
average:
|
|
7814
|
-
count:
|
|
7815
|
-
maximum:
|
|
7816
|
-
minimum:
|
|
7817
|
-
standardDeviation:
|
|
7818
|
-
sum:
|
|
7813
|
+
average: smithy_client_1.limitedParseDouble(output.average),
|
|
7814
|
+
count: smithy_client_1.limitedParseDouble(output.count),
|
|
7815
|
+
maximum: smithy_client_1.limitedParseDouble(output.maximum),
|
|
7816
|
+
minimum: smithy_client_1.limitedParseDouble(output.minimum),
|
|
7817
|
+
standardDeviation: smithy_client_1.limitedParseDouble(output.standardDeviation),
|
|
7818
|
+
sum: smithy_client_1.limitedParseDouble(output.sum),
|
|
7819
7819
|
};
|
|
7820
7820
|
};
|
|
7821
7821
|
const deserializeAws_restJson1Alarms = (output, context) => {
|
|
7822
7822
|
return {
|
|
7823
|
-
alarmRoleArn:
|
|
7824
|
-
notificationLambdaArn:
|
|
7823
|
+
alarmRoleArn: smithy_client_1.expectString(output.alarmRoleArn),
|
|
7824
|
+
notificationLambdaArn: smithy_client_1.expectString(output.notificationLambdaArn),
|
|
7825
7825
|
};
|
|
7826
7826
|
};
|
|
7827
7827
|
const deserializeAws_restJson1AssetCompositeModel = (output, context) => {
|
|
7828
7828
|
return {
|
|
7829
|
-
description:
|
|
7830
|
-
name:
|
|
7829
|
+
description: smithy_client_1.expectString(output.description),
|
|
7830
|
+
name: smithy_client_1.expectString(output.name),
|
|
7831
7831
|
properties: output.properties !== undefined && output.properties !== null
|
|
7832
7832
|
? deserializeAws_restJson1AssetProperties(output.properties, context)
|
|
7833
7833
|
: undefined,
|
|
7834
|
-
type:
|
|
7834
|
+
type: smithy_client_1.expectString(output.type),
|
|
7835
7835
|
};
|
|
7836
7836
|
};
|
|
7837
7837
|
const deserializeAws_restJson1AssetCompositeModels = (output, context) => {
|
|
@@ -7846,9 +7846,9 @@ const deserializeAws_restJson1AssetCompositeModels = (output, context) => {
|
|
|
7846
7846
|
};
|
|
7847
7847
|
const deserializeAws_restJson1AssetErrorDetails = (output, context) => {
|
|
7848
7848
|
return {
|
|
7849
|
-
assetId:
|
|
7850
|
-
code:
|
|
7851
|
-
message:
|
|
7849
|
+
assetId: smithy_client_1.expectString(output.assetId),
|
|
7850
|
+
code: smithy_client_1.expectString(output.code),
|
|
7851
|
+
message: smithy_client_1.expectString(output.message),
|
|
7852
7852
|
};
|
|
7853
7853
|
};
|
|
7854
7854
|
const deserializeAws_restJson1AssetHierarchies = (output, context) => {
|
|
@@ -7863,14 +7863,14 @@ const deserializeAws_restJson1AssetHierarchies = (output, context) => {
|
|
|
7863
7863
|
};
|
|
7864
7864
|
const deserializeAws_restJson1AssetHierarchy = (output, context) => {
|
|
7865
7865
|
return {
|
|
7866
|
-
id:
|
|
7867
|
-
name:
|
|
7866
|
+
id: smithy_client_1.expectString(output.id),
|
|
7867
|
+
name: smithy_client_1.expectString(output.name),
|
|
7868
7868
|
};
|
|
7869
7869
|
};
|
|
7870
7870
|
const deserializeAws_restJson1AssetHierarchyInfo = (output, context) => {
|
|
7871
7871
|
return {
|
|
7872
|
-
childAssetId:
|
|
7873
|
-
parentAssetId:
|
|
7872
|
+
childAssetId: smithy_client_1.expectString(output.childAssetId),
|
|
7873
|
+
parentAssetId: smithy_client_1.expectString(output.parentAssetId),
|
|
7874
7874
|
};
|
|
7875
7875
|
};
|
|
7876
7876
|
const deserializeAws_restJson1AssetIDs = (output, context) => {
|
|
@@ -7880,17 +7880,17 @@ const deserializeAws_restJson1AssetIDs = (output, context) => {
|
|
|
7880
7880
|
if (entry === null) {
|
|
7881
7881
|
return null;
|
|
7882
7882
|
}
|
|
7883
|
-
return
|
|
7883
|
+
return smithy_client_1.expectString(entry);
|
|
7884
7884
|
});
|
|
7885
7885
|
};
|
|
7886
7886
|
const deserializeAws_restJson1AssetModelCompositeModel = (output, context) => {
|
|
7887
7887
|
return {
|
|
7888
|
-
description:
|
|
7889
|
-
name:
|
|
7888
|
+
description: smithy_client_1.expectString(output.description),
|
|
7889
|
+
name: smithy_client_1.expectString(output.name),
|
|
7890
7890
|
properties: output.properties !== undefined && output.properties !== null
|
|
7891
7891
|
? deserializeAws_restJson1AssetModelProperties(output.properties, context)
|
|
7892
7892
|
: undefined,
|
|
7893
|
-
type:
|
|
7893
|
+
type: smithy_client_1.expectString(output.type),
|
|
7894
7894
|
};
|
|
7895
7895
|
};
|
|
7896
7896
|
const deserializeAws_restJson1AssetModelCompositeModels = (output, context) => {
|
|
@@ -7915,9 +7915,9 @@ const deserializeAws_restJson1AssetModelHierarchies = (output, context) => {
|
|
|
7915
7915
|
};
|
|
7916
7916
|
const deserializeAws_restJson1AssetModelHierarchy = (output, context) => {
|
|
7917
7917
|
return {
|
|
7918
|
-
childAssetModelId:
|
|
7919
|
-
id:
|
|
7920
|
-
name:
|
|
7918
|
+
childAssetModelId: smithy_client_1.expectString(output.childAssetModelId),
|
|
7919
|
+
id: smithy_client_1.expectString(output.id),
|
|
7920
|
+
name: smithy_client_1.expectString(output.name),
|
|
7921
7921
|
};
|
|
7922
7922
|
};
|
|
7923
7923
|
const deserializeAws_restJson1AssetModelProperties = (output, context) => {
|
|
@@ -7932,14 +7932,14 @@ const deserializeAws_restJson1AssetModelProperties = (output, context) => {
|
|
|
7932
7932
|
};
|
|
7933
7933
|
const deserializeAws_restJson1AssetModelProperty = (output, context) => {
|
|
7934
7934
|
return {
|
|
7935
|
-
dataType:
|
|
7936
|
-
dataTypeSpec:
|
|
7937
|
-
id:
|
|
7938
|
-
name:
|
|
7935
|
+
dataType: smithy_client_1.expectString(output.dataType),
|
|
7936
|
+
dataTypeSpec: smithy_client_1.expectString(output.dataTypeSpec),
|
|
7937
|
+
id: smithy_client_1.expectString(output.id),
|
|
7938
|
+
name: smithy_client_1.expectString(output.name),
|
|
7939
7939
|
type: output.type !== undefined && output.type !== null
|
|
7940
7940
|
? deserializeAws_restJson1PropertyType(output.type, context)
|
|
7941
7941
|
: undefined,
|
|
7942
|
-
unit:
|
|
7942
|
+
unit: smithy_client_1.expectString(output.unit),
|
|
7943
7943
|
};
|
|
7944
7944
|
};
|
|
7945
7945
|
const deserializeAws_restJson1AssetModelStatus = (output, context) => {
|
|
@@ -7947,7 +7947,7 @@ const deserializeAws_restJson1AssetModelStatus = (output, context) => {
|
|
|
7947
7947
|
error: output.error !== undefined && output.error !== null
|
|
7948
7948
|
? deserializeAws_restJson1ErrorDetails(output.error, context)
|
|
7949
7949
|
: undefined,
|
|
7950
|
-
state:
|
|
7950
|
+
state: smithy_client_1.expectString(output.state),
|
|
7951
7951
|
};
|
|
7952
7952
|
};
|
|
7953
7953
|
const deserializeAws_restJson1AssetModelSummaries = (output, context) => {
|
|
@@ -7962,16 +7962,16 @@ const deserializeAws_restJson1AssetModelSummaries = (output, context) => {
|
|
|
7962
7962
|
};
|
|
7963
7963
|
const deserializeAws_restJson1AssetModelSummary = (output, context) => {
|
|
7964
7964
|
return {
|
|
7965
|
-
arn:
|
|
7965
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
7966
7966
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
7967
|
-
?
|
|
7967
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
|
|
7968
7968
|
: undefined,
|
|
7969
|
-
description:
|
|
7970
|
-
id:
|
|
7969
|
+
description: smithy_client_1.expectString(output.description),
|
|
7970
|
+
id: smithy_client_1.expectString(output.id),
|
|
7971
7971
|
lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
|
|
7972
|
-
?
|
|
7972
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateDate)))
|
|
7973
7973
|
: undefined,
|
|
7974
|
-
name:
|
|
7974
|
+
name: smithy_client_1.expectString(output.name),
|
|
7975
7975
|
status: output.status !== undefined && output.status !== null
|
|
7976
7976
|
? deserializeAws_restJson1AssetModelStatus(output.status, context)
|
|
7977
7977
|
: undefined,
|
|
@@ -7989,20 +7989,20 @@ const deserializeAws_restJson1AssetProperties = (output, context) => {
|
|
|
7989
7989
|
};
|
|
7990
7990
|
const deserializeAws_restJson1AssetProperty = (output, context) => {
|
|
7991
7991
|
return {
|
|
7992
|
-
alias:
|
|
7993
|
-
dataType:
|
|
7994
|
-
dataTypeSpec:
|
|
7995
|
-
id:
|
|
7996
|
-
name:
|
|
7992
|
+
alias: smithy_client_1.expectString(output.alias),
|
|
7993
|
+
dataType: smithy_client_1.expectString(output.dataType),
|
|
7994
|
+
dataTypeSpec: smithy_client_1.expectString(output.dataTypeSpec),
|
|
7995
|
+
id: smithy_client_1.expectString(output.id),
|
|
7996
|
+
name: smithy_client_1.expectString(output.name),
|
|
7997
7997
|
notification: output.notification !== undefined && output.notification !== null
|
|
7998
7998
|
? deserializeAws_restJson1PropertyNotification(output.notification, context)
|
|
7999
7999
|
: undefined,
|
|
8000
|
-
unit:
|
|
8000
|
+
unit: smithy_client_1.expectString(output.unit),
|
|
8001
8001
|
};
|
|
8002
8002
|
};
|
|
8003
8003
|
const deserializeAws_restJson1AssetPropertyValue = (output, context) => {
|
|
8004
8004
|
return {
|
|
8005
|
-
quality:
|
|
8005
|
+
quality: smithy_client_1.expectString(output.quality),
|
|
8006
8006
|
timestamp: output.timestamp !== undefined && output.timestamp !== null
|
|
8007
8007
|
? deserializeAws_restJson1TimeInNanos(output.timestamp, context)
|
|
8008
8008
|
: undefined,
|
|
@@ -8036,7 +8036,7 @@ const deserializeAws_restJson1AssetRelationshipSummary = (output, context) => {
|
|
|
8036
8036
|
hierarchyInfo: output.hierarchyInfo !== undefined && output.hierarchyInfo !== null
|
|
8037
8037
|
? deserializeAws_restJson1AssetHierarchyInfo(output.hierarchyInfo, context)
|
|
8038
8038
|
: undefined,
|
|
8039
|
-
relationshipType:
|
|
8039
|
+
relationshipType: smithy_client_1.expectString(output.relationshipType),
|
|
8040
8040
|
};
|
|
8041
8041
|
};
|
|
8042
8042
|
const deserializeAws_restJson1AssetStatus = (output, context) => {
|
|
@@ -8044,7 +8044,7 @@ const deserializeAws_restJson1AssetStatus = (output, context) => {
|
|
|
8044
8044
|
error: output.error !== undefined && output.error !== null
|
|
8045
8045
|
? deserializeAws_restJson1ErrorDetails(output.error, context)
|
|
8046
8046
|
: undefined,
|
|
8047
|
-
state:
|
|
8047
|
+
state: smithy_client_1.expectString(output.state),
|
|
8048
8048
|
};
|
|
8049
8049
|
};
|
|
8050
8050
|
const deserializeAws_restJson1AssetSummaries = (output, context) => {
|
|
@@ -8059,19 +8059,19 @@ const deserializeAws_restJson1AssetSummaries = (output, context) => {
|
|
|
8059
8059
|
};
|
|
8060
8060
|
const deserializeAws_restJson1AssetSummary = (output, context) => {
|
|
8061
8061
|
return {
|
|
8062
|
-
arn:
|
|
8063
|
-
assetModelId:
|
|
8062
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
8063
|
+
assetModelId: smithy_client_1.expectString(output.assetModelId),
|
|
8064
8064
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
8065
|
-
?
|
|
8065
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
|
|
8066
8066
|
: undefined,
|
|
8067
8067
|
hierarchies: output.hierarchies !== undefined && output.hierarchies !== null
|
|
8068
8068
|
? deserializeAws_restJson1AssetHierarchies(output.hierarchies, context)
|
|
8069
8069
|
: undefined,
|
|
8070
|
-
id:
|
|
8070
|
+
id: smithy_client_1.expectString(output.id),
|
|
8071
8071
|
lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
|
|
8072
|
-
?
|
|
8072
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateDate)))
|
|
8073
8073
|
: undefined,
|
|
8074
|
-
name:
|
|
8074
|
+
name: smithy_client_1.expectString(output.name),
|
|
8075
8075
|
status: output.status !== undefined && output.status !== null
|
|
8076
8076
|
? deserializeAws_restJson1AssetStatus(output.status, context)
|
|
8077
8077
|
: undefined,
|
|
@@ -8089,19 +8089,19 @@ const deserializeAws_restJson1AssociatedAssetsSummaries = (output, context) => {
|
|
|
8089
8089
|
};
|
|
8090
8090
|
const deserializeAws_restJson1AssociatedAssetsSummary = (output, context) => {
|
|
8091
8091
|
return {
|
|
8092
|
-
arn:
|
|
8093
|
-
assetModelId:
|
|
8092
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
8093
|
+
assetModelId: smithy_client_1.expectString(output.assetModelId),
|
|
8094
8094
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
8095
|
-
?
|
|
8095
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
|
|
8096
8096
|
: undefined,
|
|
8097
8097
|
hierarchies: output.hierarchies !== undefined && output.hierarchies !== null
|
|
8098
8098
|
? deserializeAws_restJson1AssetHierarchies(output.hierarchies, context)
|
|
8099
8099
|
: undefined,
|
|
8100
|
-
id:
|
|
8100
|
+
id: smithy_client_1.expectString(output.id),
|
|
8101
8101
|
lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
|
|
8102
|
-
?
|
|
8102
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateDate)))
|
|
8103
8103
|
: undefined,
|
|
8104
|
-
name:
|
|
8104
|
+
name: smithy_client_1.expectString(output.name),
|
|
8105
8105
|
status: output.status !== undefined && output.status !== null
|
|
8106
8106
|
? deserializeAws_restJson1AssetStatus(output.status, context)
|
|
8107
8107
|
: undefined,
|
|
@@ -8109,7 +8109,7 @@ const deserializeAws_restJson1AssociatedAssetsSummary = (output, context) => {
|
|
|
8109
8109
|
};
|
|
8110
8110
|
const deserializeAws_restJson1Attribute = (output, context) => {
|
|
8111
8111
|
return {
|
|
8112
|
-
defaultValue:
|
|
8112
|
+
defaultValue: smithy_client_1.expectString(output.defaultValue),
|
|
8113
8113
|
};
|
|
8114
8114
|
};
|
|
8115
8115
|
const deserializeAws_restJson1BatchAssociateProjectAssetsErrors = (output, context) => {
|
|
@@ -8134,8 +8134,8 @@ const deserializeAws_restJson1BatchDisassociateProjectAssetsErrors = (output, co
|
|
|
8134
8134
|
};
|
|
8135
8135
|
const deserializeAws_restJson1BatchPutAssetPropertyError = (output, context) => {
|
|
8136
8136
|
return {
|
|
8137
|
-
errorCode:
|
|
8138
|
-
errorMessage:
|
|
8137
|
+
errorCode: smithy_client_1.expectString(output.errorCode),
|
|
8138
|
+
errorMessage: smithy_client_1.expectString(output.errorMessage),
|
|
8139
8139
|
timestamps: output.timestamps !== undefined && output.timestamps !== null
|
|
8140
8140
|
? deserializeAws_restJson1Timestamps(output.timestamps, context)
|
|
8141
8141
|
: undefined,
|
|
@@ -8153,7 +8153,7 @@ const deserializeAws_restJson1BatchPutAssetPropertyErrorEntries = (output, conte
|
|
|
8153
8153
|
};
|
|
8154
8154
|
const deserializeAws_restJson1BatchPutAssetPropertyErrorEntry = (output, context) => {
|
|
8155
8155
|
return {
|
|
8156
|
-
entryId:
|
|
8156
|
+
entryId: smithy_client_1.expectString(output.entryId),
|
|
8157
8157
|
errors: output.errors !== undefined && output.errors !== null
|
|
8158
8158
|
? deserializeAws_restJson1BatchPutAssetPropertyErrors(output.errors, context)
|
|
8159
8159
|
: undefined,
|
|
@@ -8174,14 +8174,14 @@ const deserializeAws_restJson1CompositeModelProperty = (output, context) => {
|
|
|
8174
8174
|
assetProperty: output.assetProperty !== undefined && output.assetProperty !== null
|
|
8175
8175
|
? deserializeAws_restJson1Property(output.assetProperty, context)
|
|
8176
8176
|
: undefined,
|
|
8177
|
-
name:
|
|
8178
|
-
type:
|
|
8177
|
+
name: smithy_client_1.expectString(output.name),
|
|
8178
|
+
type: smithy_client_1.expectString(output.type),
|
|
8179
8179
|
};
|
|
8180
8180
|
};
|
|
8181
8181
|
const deserializeAws_restJson1ConfigurationErrorDetails = (output, context) => {
|
|
8182
8182
|
return {
|
|
8183
|
-
code:
|
|
8184
|
-
message:
|
|
8183
|
+
code: smithy_client_1.expectString(output.code),
|
|
8184
|
+
message: smithy_client_1.expectString(output.message),
|
|
8185
8185
|
};
|
|
8186
8186
|
};
|
|
8187
8187
|
const deserializeAws_restJson1ConfigurationStatus = (output, context) => {
|
|
@@ -8189,13 +8189,13 @@ const deserializeAws_restJson1ConfigurationStatus = (output, context) => {
|
|
|
8189
8189
|
error: output.error !== undefined && output.error !== null
|
|
8190
8190
|
? deserializeAws_restJson1ConfigurationErrorDetails(output.error, context)
|
|
8191
8191
|
: undefined,
|
|
8192
|
-
state:
|
|
8192
|
+
state: smithy_client_1.expectString(output.state),
|
|
8193
8193
|
};
|
|
8194
8194
|
};
|
|
8195
8195
|
const deserializeAws_restJson1CustomerManagedS3Storage = (output, context) => {
|
|
8196
8196
|
return {
|
|
8197
|
-
roleArn:
|
|
8198
|
-
s3ResourceArn:
|
|
8197
|
+
roleArn: smithy_client_1.expectString(output.roleArn),
|
|
8198
|
+
s3ResourceArn: smithy_client_1.expectString(output.s3ResourceArn),
|
|
8199
8199
|
};
|
|
8200
8200
|
};
|
|
8201
8201
|
const deserializeAws_restJson1DashboardSummaries = (output, context) => {
|
|
@@ -8211,20 +8211,20 @@ const deserializeAws_restJson1DashboardSummaries = (output, context) => {
|
|
|
8211
8211
|
const deserializeAws_restJson1DashboardSummary = (output, context) => {
|
|
8212
8212
|
return {
|
|
8213
8213
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
8214
|
-
?
|
|
8214
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
|
|
8215
8215
|
: undefined,
|
|
8216
|
-
description:
|
|
8217
|
-
id:
|
|
8216
|
+
description: smithy_client_1.expectString(output.description),
|
|
8217
|
+
id: smithy_client_1.expectString(output.id),
|
|
8218
8218
|
lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
|
|
8219
|
-
?
|
|
8219
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateDate)))
|
|
8220
8220
|
: undefined,
|
|
8221
|
-
name:
|
|
8221
|
+
name: smithy_client_1.expectString(output.name),
|
|
8222
8222
|
};
|
|
8223
8223
|
};
|
|
8224
8224
|
const deserializeAws_restJson1DetailedError = (output, context) => {
|
|
8225
8225
|
return {
|
|
8226
|
-
code:
|
|
8227
|
-
message:
|
|
8226
|
+
code: smithy_client_1.expectString(output.code),
|
|
8227
|
+
message: smithy_client_1.expectString(output.message),
|
|
8228
8228
|
};
|
|
8229
8229
|
};
|
|
8230
8230
|
const deserializeAws_restJson1DetailedErrors = (output, context) => {
|
|
@@ -8239,16 +8239,16 @@ const deserializeAws_restJson1DetailedErrors = (output, context) => {
|
|
|
8239
8239
|
};
|
|
8240
8240
|
const deserializeAws_restJson1ErrorDetails = (output, context) => {
|
|
8241
8241
|
return {
|
|
8242
|
-
code:
|
|
8242
|
+
code: smithy_client_1.expectString(output.code),
|
|
8243
8243
|
details: output.details !== undefined && output.details !== null
|
|
8244
8244
|
? deserializeAws_restJson1DetailedErrors(output.details, context)
|
|
8245
8245
|
: undefined,
|
|
8246
|
-
message:
|
|
8246
|
+
message: smithy_client_1.expectString(output.message),
|
|
8247
8247
|
};
|
|
8248
8248
|
};
|
|
8249
8249
|
const deserializeAws_restJson1ExpressionVariable = (output, context) => {
|
|
8250
8250
|
return {
|
|
8251
|
-
name:
|
|
8251
|
+
name: smithy_client_1.expectString(output.name),
|
|
8252
8252
|
value: output.value !== undefined && output.value !== null
|
|
8253
8253
|
? deserializeAws_restJson1VariableValue(output.value, context)
|
|
8254
8254
|
: undefined,
|
|
@@ -8266,7 +8266,7 @@ const deserializeAws_restJson1ExpressionVariables = (output, context) => {
|
|
|
8266
8266
|
};
|
|
8267
8267
|
const deserializeAws_restJson1ForwardingConfig = (output, context) => {
|
|
8268
8268
|
return {
|
|
8269
|
-
state:
|
|
8269
|
+
state: smithy_client_1.expectString(output.state),
|
|
8270
8270
|
};
|
|
8271
8271
|
};
|
|
8272
8272
|
const deserializeAws_restJson1GatewayCapabilitySummaries = (output, context) => {
|
|
@@ -8281,8 +8281,8 @@ const deserializeAws_restJson1GatewayCapabilitySummaries = (output, context) =>
|
|
|
8281
8281
|
};
|
|
8282
8282
|
const deserializeAws_restJson1GatewayCapabilitySummary = (output, context) => {
|
|
8283
8283
|
return {
|
|
8284
|
-
capabilityNamespace:
|
|
8285
|
-
capabilitySyncStatus:
|
|
8284
|
+
capabilityNamespace: smithy_client_1.expectString(output.capabilityNamespace),
|
|
8285
|
+
capabilitySyncStatus: smithy_client_1.expectString(output.capabilitySyncStatus),
|
|
8286
8286
|
};
|
|
8287
8287
|
};
|
|
8288
8288
|
const deserializeAws_restJson1GatewayPlatform = (output, context) => {
|
|
@@ -8308,44 +8308,44 @@ const deserializeAws_restJson1GatewaySummaries = (output, context) => {
|
|
|
8308
8308
|
const deserializeAws_restJson1GatewaySummary = (output, context) => {
|
|
8309
8309
|
return {
|
|
8310
8310
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
8311
|
-
?
|
|
8311
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
|
|
8312
8312
|
: undefined,
|
|
8313
8313
|
gatewayCapabilitySummaries: output.gatewayCapabilitySummaries !== undefined && output.gatewayCapabilitySummaries !== null
|
|
8314
8314
|
? deserializeAws_restJson1GatewayCapabilitySummaries(output.gatewayCapabilitySummaries, context)
|
|
8315
8315
|
: undefined,
|
|
8316
|
-
gatewayId:
|
|
8317
|
-
gatewayName:
|
|
8316
|
+
gatewayId: smithy_client_1.expectString(output.gatewayId),
|
|
8317
|
+
gatewayName: smithy_client_1.expectString(output.gatewayName),
|
|
8318
8318
|
gatewayPlatform: output.gatewayPlatform !== undefined && output.gatewayPlatform !== null
|
|
8319
8319
|
? deserializeAws_restJson1GatewayPlatform(output.gatewayPlatform, context)
|
|
8320
8320
|
: undefined,
|
|
8321
8321
|
lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
|
|
8322
|
-
?
|
|
8322
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateDate)))
|
|
8323
8323
|
: undefined,
|
|
8324
8324
|
};
|
|
8325
8325
|
};
|
|
8326
8326
|
const deserializeAws_restJson1Greengrass = (output, context) => {
|
|
8327
8327
|
return {
|
|
8328
|
-
groupArn:
|
|
8328
|
+
groupArn: smithy_client_1.expectString(output.groupArn),
|
|
8329
8329
|
};
|
|
8330
8330
|
};
|
|
8331
8331
|
const deserializeAws_restJson1GreengrassV2 = (output, context) => {
|
|
8332
8332
|
return {
|
|
8333
|
-
coreDeviceThingName:
|
|
8333
|
+
coreDeviceThingName: smithy_client_1.expectString(output.coreDeviceThingName),
|
|
8334
8334
|
};
|
|
8335
8335
|
};
|
|
8336
8336
|
const deserializeAws_restJson1GroupIdentity = (output, context) => {
|
|
8337
8337
|
return {
|
|
8338
|
-
id:
|
|
8338
|
+
id: smithy_client_1.expectString(output.id),
|
|
8339
8339
|
};
|
|
8340
8340
|
};
|
|
8341
8341
|
const deserializeAws_restJson1IAMRoleIdentity = (output, context) => {
|
|
8342
8342
|
return {
|
|
8343
|
-
arn:
|
|
8343
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
8344
8344
|
};
|
|
8345
8345
|
};
|
|
8346
8346
|
const deserializeAws_restJson1IAMUserIdentity = (output, context) => {
|
|
8347
8347
|
return {
|
|
8348
|
-
arn:
|
|
8348
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
8349
8349
|
};
|
|
8350
8350
|
};
|
|
8351
8351
|
const deserializeAws_restJson1Identity = (output, context) => {
|
|
@@ -8366,8 +8366,8 @@ const deserializeAws_restJson1Identity = (output, context) => {
|
|
|
8366
8366
|
};
|
|
8367
8367
|
const deserializeAws_restJson1ImageLocation = (output, context) => {
|
|
8368
8368
|
return {
|
|
8369
|
-
id:
|
|
8370
|
-
url:
|
|
8369
|
+
id: smithy_client_1.expectString(output.id),
|
|
8370
|
+
url: smithy_client_1.expectString(output.url),
|
|
8371
8371
|
};
|
|
8372
8372
|
};
|
|
8373
8373
|
const deserializeAws_restJson1InterpolatedAssetPropertyValue = (output, context) => {
|
|
@@ -8392,7 +8392,7 @@ const deserializeAws_restJson1InterpolatedAssetPropertyValues = (output, context
|
|
|
8392
8392
|
};
|
|
8393
8393
|
const deserializeAws_restJson1LoggingOptions = (output, context) => {
|
|
8394
8394
|
return {
|
|
8395
|
-
level:
|
|
8395
|
+
level: smithy_client_1.expectString(output.level),
|
|
8396
8396
|
};
|
|
8397
8397
|
};
|
|
8398
8398
|
const deserializeAws_restJson1Measurement = (output, context) => {
|
|
@@ -8411,7 +8411,7 @@ const deserializeAws_restJson1MeasurementProcessingConfig = (output, context) =>
|
|
|
8411
8411
|
};
|
|
8412
8412
|
const deserializeAws_restJson1Metric = (output, context) => {
|
|
8413
8413
|
return {
|
|
8414
|
-
expression:
|
|
8414
|
+
expression: smithy_client_1.expectString(output.expression),
|
|
8415
8415
|
processingConfig: output.processingConfig !== undefined && output.processingConfig !== null
|
|
8416
8416
|
? deserializeAws_restJson1MetricProcessingConfig(output.processingConfig, context)
|
|
8417
8417
|
: undefined,
|
|
@@ -8425,7 +8425,7 @@ const deserializeAws_restJson1Metric = (output, context) => {
|
|
|
8425
8425
|
};
|
|
8426
8426
|
const deserializeAws_restJson1MetricProcessingConfig = (output, context) => {
|
|
8427
8427
|
return {
|
|
8428
|
-
computeLocation:
|
|
8428
|
+
computeLocation: smithy_client_1.expectString(output.computeLocation),
|
|
8429
8429
|
};
|
|
8430
8430
|
};
|
|
8431
8431
|
const deserializeAws_restJson1MetricWindow = (output, context) => {
|
|
@@ -8437,8 +8437,8 @@ const deserializeAws_restJson1MetricWindow = (output, context) => {
|
|
|
8437
8437
|
};
|
|
8438
8438
|
const deserializeAws_restJson1MonitorErrorDetails = (output, context) => {
|
|
8439
8439
|
return {
|
|
8440
|
-
code:
|
|
8441
|
-
message:
|
|
8440
|
+
code: smithy_client_1.expectString(output.code),
|
|
8441
|
+
message: smithy_client_1.expectString(output.message),
|
|
8442
8442
|
};
|
|
8443
8443
|
};
|
|
8444
8444
|
const deserializeAws_restJson1MultiLayerStorage = (output, context) => {
|
|
@@ -8450,7 +8450,7 @@ const deserializeAws_restJson1MultiLayerStorage = (output, context) => {
|
|
|
8450
8450
|
};
|
|
8451
8451
|
const deserializeAws_restJson1PortalResource = (output, context) => {
|
|
8452
8452
|
return {
|
|
8453
|
-
id:
|
|
8453
|
+
id: smithy_client_1.expectString(output.id),
|
|
8454
8454
|
};
|
|
8455
8455
|
};
|
|
8456
8456
|
const deserializeAws_restJson1PortalStatus = (output, context) => {
|
|
@@ -8458,7 +8458,7 @@ const deserializeAws_restJson1PortalStatus = (output, context) => {
|
|
|
8458
8458
|
error: output.error !== undefined && output.error !== null
|
|
8459
8459
|
? deserializeAws_restJson1MonitorErrorDetails(output.error, context)
|
|
8460
8460
|
: undefined,
|
|
8461
|
-
state:
|
|
8461
|
+
state: smithy_client_1.expectString(output.state),
|
|
8462
8462
|
};
|
|
8463
8463
|
};
|
|
8464
8464
|
const deserializeAws_restJson1PortalSummaries = (output, context) => {
|
|
@@ -8474,16 +8474,16 @@ const deserializeAws_restJson1PortalSummaries = (output, context) => {
|
|
|
8474
8474
|
const deserializeAws_restJson1PortalSummary = (output, context) => {
|
|
8475
8475
|
return {
|
|
8476
8476
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
8477
|
-
?
|
|
8477
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
|
|
8478
8478
|
: undefined,
|
|
8479
|
-
description:
|
|
8480
|
-
id:
|
|
8479
|
+
description: smithy_client_1.expectString(output.description),
|
|
8480
|
+
id: smithy_client_1.expectString(output.id),
|
|
8481
8481
|
lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
|
|
8482
|
-
?
|
|
8482
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateDate)))
|
|
8483
8483
|
: undefined,
|
|
8484
|
-
name:
|
|
8485
|
-
roleArn:
|
|
8486
|
-
startUrl:
|
|
8484
|
+
name: smithy_client_1.expectString(output.name),
|
|
8485
|
+
roleArn: smithy_client_1.expectString(output.roleArn),
|
|
8486
|
+
startUrl: smithy_client_1.expectString(output.startUrl),
|
|
8487
8487
|
status: output.status !== undefined && output.status !== null
|
|
8488
8488
|
? deserializeAws_restJson1PortalStatus(output.status, context)
|
|
8489
8489
|
: undefined,
|
|
@@ -8491,7 +8491,7 @@ const deserializeAws_restJson1PortalSummary = (output, context) => {
|
|
|
8491
8491
|
};
|
|
8492
8492
|
const deserializeAws_restJson1ProjectResource = (output, context) => {
|
|
8493
8493
|
return {
|
|
8494
|
-
id:
|
|
8494
|
+
id: smithy_client_1.expectString(output.id),
|
|
8495
8495
|
};
|
|
8496
8496
|
};
|
|
8497
8497
|
const deserializeAws_restJson1ProjectSummaries = (output, context) => {
|
|
@@ -8507,35 +8507,35 @@ const deserializeAws_restJson1ProjectSummaries = (output, context) => {
|
|
|
8507
8507
|
const deserializeAws_restJson1ProjectSummary = (output, context) => {
|
|
8508
8508
|
return {
|
|
8509
8509
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
8510
|
-
?
|
|
8510
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
|
|
8511
8511
|
: undefined,
|
|
8512
|
-
description:
|
|
8513
|
-
id:
|
|
8512
|
+
description: smithy_client_1.expectString(output.description),
|
|
8513
|
+
id: smithy_client_1.expectString(output.id),
|
|
8514
8514
|
lastUpdateDate: output.lastUpdateDate !== undefined && output.lastUpdateDate !== null
|
|
8515
|
-
?
|
|
8515
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateDate)))
|
|
8516
8516
|
: undefined,
|
|
8517
|
-
name:
|
|
8517
|
+
name: smithy_client_1.expectString(output.name),
|
|
8518
8518
|
};
|
|
8519
8519
|
};
|
|
8520
8520
|
const deserializeAws_restJson1Property = (output, context) => {
|
|
8521
8521
|
return {
|
|
8522
|
-
alias:
|
|
8523
|
-
dataType:
|
|
8524
|
-
id:
|
|
8525
|
-
name:
|
|
8522
|
+
alias: smithy_client_1.expectString(output.alias),
|
|
8523
|
+
dataType: smithy_client_1.expectString(output.dataType),
|
|
8524
|
+
id: smithy_client_1.expectString(output.id),
|
|
8525
|
+
name: smithy_client_1.expectString(output.name),
|
|
8526
8526
|
notification: output.notification !== undefined && output.notification !== null
|
|
8527
8527
|
? deserializeAws_restJson1PropertyNotification(output.notification, context)
|
|
8528
8528
|
: undefined,
|
|
8529
8529
|
type: output.type !== undefined && output.type !== null
|
|
8530
8530
|
? deserializeAws_restJson1PropertyType(output.type, context)
|
|
8531
8531
|
: undefined,
|
|
8532
|
-
unit:
|
|
8532
|
+
unit: smithy_client_1.expectString(output.unit),
|
|
8533
8533
|
};
|
|
8534
8534
|
};
|
|
8535
8535
|
const deserializeAws_restJson1PropertyNotification = (output, context) => {
|
|
8536
8536
|
return {
|
|
8537
|
-
state:
|
|
8538
|
-
topic:
|
|
8537
|
+
state: smithy_client_1.expectString(output.state),
|
|
8538
|
+
topic: smithy_client_1.expectString(output.topic),
|
|
8539
8539
|
};
|
|
8540
8540
|
};
|
|
8541
8541
|
const deserializeAws_restJson1PropertyType = (output, context) => {
|
|
@@ -8571,14 +8571,14 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
8571
8571
|
}
|
|
8572
8572
|
return {
|
|
8573
8573
|
...acc,
|
|
8574
|
-
[key]:
|
|
8574
|
+
[key]: smithy_client_1.expectString(value),
|
|
8575
8575
|
};
|
|
8576
8576
|
}, {});
|
|
8577
8577
|
};
|
|
8578
8578
|
const deserializeAws_restJson1TimeInNanos = (output, context) => {
|
|
8579
8579
|
return {
|
|
8580
|
-
offsetInNanos:
|
|
8581
|
-
timeInSeconds:
|
|
8580
|
+
offsetInNanos: smithy_client_1.expectInt32(output.offsetInNanos),
|
|
8581
|
+
timeInSeconds: smithy_client_1.expectLong(output.timeInSeconds),
|
|
8582
8582
|
};
|
|
8583
8583
|
};
|
|
8584
8584
|
const deserializeAws_restJson1Timestamps = (output, context) => {
|
|
@@ -8593,7 +8593,7 @@ const deserializeAws_restJson1Timestamps = (output, context) => {
|
|
|
8593
8593
|
};
|
|
8594
8594
|
const deserializeAws_restJson1Transform = (output, context) => {
|
|
8595
8595
|
return {
|
|
8596
|
-
expression:
|
|
8596
|
+
expression: smithy_client_1.expectString(output.expression),
|
|
8597
8597
|
processingConfig: output.processingConfig !== undefined && output.processingConfig !== null
|
|
8598
8598
|
? deserializeAws_restJson1TransformProcessingConfig(output.processingConfig, context)
|
|
8599
8599
|
: undefined,
|
|
@@ -8604,7 +8604,7 @@ const deserializeAws_restJson1Transform = (output, context) => {
|
|
|
8604
8604
|
};
|
|
8605
8605
|
const deserializeAws_restJson1TransformProcessingConfig = (output, context) => {
|
|
8606
8606
|
return {
|
|
8607
|
-
computeLocation:
|
|
8607
|
+
computeLocation: smithy_client_1.expectString(output.computeLocation),
|
|
8608
8608
|
forwardingConfig: output.forwardingConfig !== undefined && output.forwardingConfig !== null
|
|
8609
8609
|
? deserializeAws_restJson1ForwardingConfig(output.forwardingConfig, context)
|
|
8610
8610
|
: undefined,
|
|
@@ -8612,27 +8612,27 @@ const deserializeAws_restJson1TransformProcessingConfig = (output, context) => {
|
|
|
8612
8612
|
};
|
|
8613
8613
|
const deserializeAws_restJson1TumblingWindow = (output, context) => {
|
|
8614
8614
|
return {
|
|
8615
|
-
interval:
|
|
8616
|
-
offset:
|
|
8615
|
+
interval: smithy_client_1.expectString(output.interval),
|
|
8616
|
+
offset: smithy_client_1.expectString(output.offset),
|
|
8617
8617
|
};
|
|
8618
8618
|
};
|
|
8619
8619
|
const deserializeAws_restJson1UserIdentity = (output, context) => {
|
|
8620
8620
|
return {
|
|
8621
|
-
id:
|
|
8621
|
+
id: smithy_client_1.expectString(output.id),
|
|
8622
8622
|
};
|
|
8623
8623
|
};
|
|
8624
8624
|
const deserializeAws_restJson1VariableValue = (output, context) => {
|
|
8625
8625
|
return {
|
|
8626
|
-
hierarchyId:
|
|
8627
|
-
propertyId:
|
|
8626
|
+
hierarchyId: smithy_client_1.expectString(output.hierarchyId),
|
|
8627
|
+
propertyId: smithy_client_1.expectString(output.propertyId),
|
|
8628
8628
|
};
|
|
8629
8629
|
};
|
|
8630
8630
|
const deserializeAws_restJson1Variant = (output, context) => {
|
|
8631
8631
|
return {
|
|
8632
|
-
booleanValue:
|
|
8633
|
-
doubleValue:
|
|
8634
|
-
integerValue:
|
|
8635
|
-
stringValue:
|
|
8632
|
+
booleanValue: smithy_client_1.expectBoolean(output.booleanValue),
|
|
8633
|
+
doubleValue: smithy_client_1.limitedParseDouble(output.doubleValue),
|
|
8634
|
+
integerValue: smithy_client_1.expectInt32(output.integerValue),
|
|
8635
|
+
stringValue: smithy_client_1.expectString(output.stringValue),
|
|
8636
8636
|
};
|
|
8637
8637
|
};
|
|
8638
8638
|
const deserializeMetadata = (output) => {
|