@aws-sdk/client-iotthingsgraph 3.121.0 → 3.130.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +138 -241
- package/dist-es/protocols/Aws_json1_1.js +84 -187
- package/package.json +26 -26
|
@@ -2019,54 +2019,45 @@ const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, c
|
|
|
2019
2019
|
};
|
|
2020
2020
|
const serializeAws_json1_1AssociateEntityToThingRequest = (input, context) => {
|
|
2021
2021
|
return {
|
|
2022
|
-
...(input.entityId
|
|
2023
|
-
...(input.namespaceVersion
|
|
2024
|
-
|
|
2025
|
-
...(input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }),
|
|
2022
|
+
...(input.entityId != null && { entityId: input.entityId }),
|
|
2023
|
+
...(input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion }),
|
|
2024
|
+
...(input.thingName != null && { thingName: input.thingName }),
|
|
2026
2025
|
};
|
|
2027
2026
|
};
|
|
2028
2027
|
const serializeAws_json1_1CreateFlowTemplateRequest = (input, context) => {
|
|
2029
2028
|
return {
|
|
2030
|
-
...(input.compatibleNamespaceVersion
|
|
2031
|
-
|
|
2032
|
-
...(input.definition !== undefined &&
|
|
2033
|
-
input.definition !== null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
2029
|
+
...(input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
2030
|
+
...(input.definition != null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
2034
2031
|
};
|
|
2035
2032
|
};
|
|
2036
2033
|
const serializeAws_json1_1CreateSystemInstanceRequest = (input, context) => {
|
|
2037
2034
|
return {
|
|
2038
|
-
...(input.definition
|
|
2039
|
-
|
|
2040
|
-
...(input.
|
|
2041
|
-
|
|
2042
|
-
...(input.greengrassGroupName !== undefined &&
|
|
2043
|
-
input.greengrassGroupName !== null && { greengrassGroupName: input.greengrassGroupName }),
|
|
2044
|
-
...(input.metricsConfiguration !== undefined &&
|
|
2045
|
-
input.metricsConfiguration !== null && {
|
|
2035
|
+
...(input.definition != null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
2036
|
+
...(input.flowActionsRoleArn != null && { flowActionsRoleArn: input.flowActionsRoleArn }),
|
|
2037
|
+
...(input.greengrassGroupName != null && { greengrassGroupName: input.greengrassGroupName }),
|
|
2038
|
+
...(input.metricsConfiguration != null && {
|
|
2046
2039
|
metricsConfiguration: serializeAws_json1_1MetricsConfiguration(input.metricsConfiguration, context),
|
|
2047
2040
|
}),
|
|
2048
|
-
...(input.s3BucketName
|
|
2049
|
-
...(input.tags
|
|
2050
|
-
...(input.target
|
|
2041
|
+
...(input.s3BucketName != null && { s3BucketName: input.s3BucketName }),
|
|
2042
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2043
|
+
...(input.target != null && { target: input.target }),
|
|
2051
2044
|
};
|
|
2052
2045
|
};
|
|
2053
2046
|
const serializeAws_json1_1CreateSystemTemplateRequest = (input, context) => {
|
|
2054
2047
|
return {
|
|
2055
|
-
...(input.compatibleNamespaceVersion
|
|
2056
|
-
|
|
2057
|
-
...(input.definition !== undefined &&
|
|
2058
|
-
input.definition !== null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
2048
|
+
...(input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
2049
|
+
...(input.definition != null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
2059
2050
|
};
|
|
2060
2051
|
};
|
|
2061
2052
|
const serializeAws_json1_1DefinitionDocument = (input, context) => {
|
|
2062
2053
|
return {
|
|
2063
|
-
...(input.language
|
|
2064
|
-
...(input.text
|
|
2054
|
+
...(input.language != null && { language: input.language }),
|
|
2055
|
+
...(input.text != null && { text: input.text }),
|
|
2065
2056
|
};
|
|
2066
2057
|
};
|
|
2067
2058
|
const serializeAws_json1_1DeleteFlowTemplateRequest = (input, context) => {
|
|
2068
2059
|
return {
|
|
2069
|
-
...(input.id
|
|
2060
|
+
...(input.id != null && { id: input.id }),
|
|
2070
2061
|
};
|
|
2071
2062
|
};
|
|
2072
2063
|
const serializeAws_json1_1DeleteNamespaceRequest = (input, context) => {
|
|
@@ -2074,45 +2065,44 @@ const serializeAws_json1_1DeleteNamespaceRequest = (input, context) => {
|
|
|
2074
2065
|
};
|
|
2075
2066
|
const serializeAws_json1_1DeleteSystemInstanceRequest = (input, context) => {
|
|
2076
2067
|
return {
|
|
2077
|
-
...(input.id
|
|
2068
|
+
...(input.id != null && { id: input.id }),
|
|
2078
2069
|
};
|
|
2079
2070
|
};
|
|
2080
2071
|
const serializeAws_json1_1DeleteSystemTemplateRequest = (input, context) => {
|
|
2081
2072
|
return {
|
|
2082
|
-
...(input.id
|
|
2073
|
+
...(input.id != null && { id: input.id }),
|
|
2083
2074
|
};
|
|
2084
2075
|
};
|
|
2085
2076
|
const serializeAws_json1_1DeploySystemInstanceRequest = (input, context) => {
|
|
2086
2077
|
return {
|
|
2087
|
-
...(input.id
|
|
2078
|
+
...(input.id != null && { id: input.id }),
|
|
2088
2079
|
};
|
|
2089
2080
|
};
|
|
2090
2081
|
const serializeAws_json1_1DeprecateFlowTemplateRequest = (input, context) => {
|
|
2091
2082
|
return {
|
|
2092
|
-
...(input.id
|
|
2083
|
+
...(input.id != null && { id: input.id }),
|
|
2093
2084
|
};
|
|
2094
2085
|
};
|
|
2095
2086
|
const serializeAws_json1_1DeprecateSystemTemplateRequest = (input, context) => {
|
|
2096
2087
|
return {
|
|
2097
|
-
...(input.id
|
|
2088
|
+
...(input.id != null && { id: input.id }),
|
|
2098
2089
|
};
|
|
2099
2090
|
};
|
|
2100
2091
|
const serializeAws_json1_1DescribeNamespaceRequest = (input, context) => {
|
|
2101
2092
|
return {
|
|
2102
|
-
...(input.namespaceName
|
|
2093
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2103
2094
|
};
|
|
2104
2095
|
};
|
|
2105
2096
|
const serializeAws_json1_1DissociateEntityFromThingRequest = (input, context) => {
|
|
2106
2097
|
return {
|
|
2107
|
-
...(input.entityType
|
|
2108
|
-
...(input.thingName
|
|
2098
|
+
...(input.entityType != null && { entityType: input.entityType }),
|
|
2099
|
+
...(input.thingName != null && { thingName: input.thingName }),
|
|
2109
2100
|
};
|
|
2110
2101
|
};
|
|
2111
2102
|
const serializeAws_json1_1EntityFilter = (input, context) => {
|
|
2112
2103
|
return {
|
|
2113
|
-
...(input.name
|
|
2114
|
-
...(input.value
|
|
2115
|
-
input.value !== null && { value: serializeAws_json1_1EntityFilterValues(input.value, context) }),
|
|
2104
|
+
...(input.name != null && { name: input.name }),
|
|
2105
|
+
...(input.value != null && { value: serializeAws_json1_1EntityFilterValues(input.value, context) }),
|
|
2116
2106
|
};
|
|
2117
2107
|
};
|
|
2118
2108
|
const serializeAws_json1_1EntityFilters = (input, context) => {
|
|
@@ -2147,9 +2137,8 @@ const serializeAws_json1_1EntityTypes = (input, context) => {
|
|
|
2147
2137
|
};
|
|
2148
2138
|
const serializeAws_json1_1FlowTemplateFilter = (input, context) => {
|
|
2149
2139
|
return {
|
|
2150
|
-
...(input.name
|
|
2151
|
-
...(input.value
|
|
2152
|
-
input.value !== null && { value: serializeAws_json1_1FlowTemplateFilterValues(input.value, context) }),
|
|
2140
|
+
...(input.name != null && { name: input.name }),
|
|
2141
|
+
...(input.value != null && { value: serializeAws_json1_1FlowTemplateFilterValues(input.value, context) }),
|
|
2153
2142
|
};
|
|
2154
2143
|
};
|
|
2155
2144
|
const serializeAws_json1_1FlowTemplateFilters = (input, context) => {
|
|
@@ -2174,23 +2163,21 @@ const serializeAws_json1_1FlowTemplateFilterValues = (input, context) => {
|
|
|
2174
2163
|
};
|
|
2175
2164
|
const serializeAws_json1_1GetEntitiesRequest = (input, context) => {
|
|
2176
2165
|
return {
|
|
2177
|
-
...(input.ids
|
|
2178
|
-
...(input.namespaceVersion
|
|
2179
|
-
input.namespaceVersion !== null && { namespaceVersion: input.namespaceVersion }),
|
|
2166
|
+
...(input.ids != null && { ids: serializeAws_json1_1Urns(input.ids, context) }),
|
|
2167
|
+
...(input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion }),
|
|
2180
2168
|
};
|
|
2181
2169
|
};
|
|
2182
2170
|
const serializeAws_json1_1GetFlowTemplateRequest = (input, context) => {
|
|
2183
2171
|
return {
|
|
2184
|
-
...(input.id
|
|
2185
|
-
...(input.revisionNumber
|
|
2186
|
-
input.revisionNumber !== null && { revisionNumber: input.revisionNumber }),
|
|
2172
|
+
...(input.id != null && { id: input.id }),
|
|
2173
|
+
...(input.revisionNumber != null && { revisionNumber: input.revisionNumber }),
|
|
2187
2174
|
};
|
|
2188
2175
|
};
|
|
2189
2176
|
const serializeAws_json1_1GetFlowTemplateRevisionsRequest = (input, context) => {
|
|
2190
2177
|
return {
|
|
2191
|
-
...(input.id
|
|
2192
|
-
...(input.maxResults
|
|
2193
|
-
...(input.nextToken
|
|
2178
|
+
...(input.id != null && { id: input.id }),
|
|
2179
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2180
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2194
2181
|
};
|
|
2195
2182
|
};
|
|
2196
2183
|
const serializeAws_json1_1GetNamespaceDeletionStatusRequest = (input, context) => {
|
|
@@ -2198,115 +2185,99 @@ const serializeAws_json1_1GetNamespaceDeletionStatusRequest = (input, context) =
|
|
|
2198
2185
|
};
|
|
2199
2186
|
const serializeAws_json1_1GetSystemInstanceRequest = (input, context) => {
|
|
2200
2187
|
return {
|
|
2201
|
-
...(input.id
|
|
2188
|
+
...(input.id != null && { id: input.id }),
|
|
2202
2189
|
};
|
|
2203
2190
|
};
|
|
2204
2191
|
const serializeAws_json1_1GetSystemTemplateRequest = (input, context) => {
|
|
2205
2192
|
return {
|
|
2206
|
-
...(input.id
|
|
2207
|
-
...(input.revisionNumber
|
|
2208
|
-
input.revisionNumber !== null && { revisionNumber: input.revisionNumber }),
|
|
2193
|
+
...(input.id != null && { id: input.id }),
|
|
2194
|
+
...(input.revisionNumber != null && { revisionNumber: input.revisionNumber }),
|
|
2209
2195
|
};
|
|
2210
2196
|
};
|
|
2211
2197
|
const serializeAws_json1_1GetSystemTemplateRevisionsRequest = (input, context) => {
|
|
2212
2198
|
return {
|
|
2213
|
-
...(input.id
|
|
2214
|
-
...(input.maxResults
|
|
2215
|
-
...(input.nextToken
|
|
2199
|
+
...(input.id != null && { id: input.id }),
|
|
2200
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2201
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2216
2202
|
};
|
|
2217
2203
|
};
|
|
2218
2204
|
const serializeAws_json1_1GetUploadStatusRequest = (input, context) => {
|
|
2219
2205
|
return {
|
|
2220
|
-
...(input.uploadId
|
|
2206
|
+
...(input.uploadId != null && { uploadId: input.uploadId }),
|
|
2221
2207
|
};
|
|
2222
2208
|
};
|
|
2223
2209
|
const serializeAws_json1_1ListFlowExecutionMessagesRequest = (input, context) => {
|
|
2224
2210
|
return {
|
|
2225
|
-
...(input.flowExecutionId
|
|
2226
|
-
|
|
2227
|
-
...(input.
|
|
2228
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2211
|
+
...(input.flowExecutionId != null && { flowExecutionId: input.flowExecutionId }),
|
|
2212
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2213
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2229
2214
|
};
|
|
2230
2215
|
};
|
|
2231
2216
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
2232
2217
|
return {
|
|
2233
|
-
...(input.maxResults
|
|
2234
|
-
...(input.nextToken
|
|
2235
|
-
...(input.resourceArn
|
|
2218
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2219
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2220
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2236
2221
|
};
|
|
2237
2222
|
};
|
|
2238
2223
|
const serializeAws_json1_1MetricsConfiguration = (input, context) => {
|
|
2239
2224
|
return {
|
|
2240
|
-
...(input.cloudMetricEnabled
|
|
2241
|
-
|
|
2242
|
-
...(input.metricRuleRoleArn !== undefined &&
|
|
2243
|
-
input.metricRuleRoleArn !== null && { metricRuleRoleArn: input.metricRuleRoleArn }),
|
|
2225
|
+
...(input.cloudMetricEnabled != null && { cloudMetricEnabled: input.cloudMetricEnabled }),
|
|
2226
|
+
...(input.metricRuleRoleArn != null && { metricRuleRoleArn: input.metricRuleRoleArn }),
|
|
2244
2227
|
};
|
|
2245
2228
|
};
|
|
2246
2229
|
const serializeAws_json1_1SearchEntitiesRequest = (input, context) => {
|
|
2247
2230
|
return {
|
|
2248
|
-
...(input.entityTypes
|
|
2249
|
-
|
|
2250
|
-
...(input.
|
|
2251
|
-
|
|
2252
|
-
...(input.
|
|
2253
|
-
...(input.namespaceVersion !== undefined &&
|
|
2254
|
-
input.namespaceVersion !== null && { namespaceVersion: input.namespaceVersion }),
|
|
2255
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2231
|
+
...(input.entityTypes != null && { entityTypes: serializeAws_json1_1EntityTypes(input.entityTypes, context) }),
|
|
2232
|
+
...(input.filters != null && { filters: serializeAws_json1_1EntityFilters(input.filters, context) }),
|
|
2233
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2234
|
+
...(input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion }),
|
|
2235
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2256
2236
|
};
|
|
2257
2237
|
};
|
|
2258
2238
|
const serializeAws_json1_1SearchFlowExecutionsRequest = (input, context) => {
|
|
2259
2239
|
return {
|
|
2260
|
-
...(input.endTime
|
|
2261
|
-
|
|
2262
|
-
...(input.
|
|
2263
|
-
|
|
2264
|
-
...(input.
|
|
2265
|
-
...(input.
|
|
2266
|
-
...(input.startTime !== undefined &&
|
|
2267
|
-
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2268
|
-
...(input.systemInstanceId !== undefined &&
|
|
2269
|
-
input.systemInstanceId !== null && { systemInstanceId: input.systemInstanceId }),
|
|
2240
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
2241
|
+
...(input.flowExecutionId != null && { flowExecutionId: input.flowExecutionId }),
|
|
2242
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2243
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2244
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2245
|
+
...(input.systemInstanceId != null && { systemInstanceId: input.systemInstanceId }),
|
|
2270
2246
|
};
|
|
2271
2247
|
};
|
|
2272
2248
|
const serializeAws_json1_1SearchFlowTemplatesRequest = (input, context) => {
|
|
2273
2249
|
return {
|
|
2274
|
-
...(input.filters
|
|
2275
|
-
|
|
2276
|
-
...(input.
|
|
2277
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2250
|
+
...(input.filters != null && { filters: serializeAws_json1_1FlowTemplateFilters(input.filters, context) }),
|
|
2251
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2252
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2278
2253
|
};
|
|
2279
2254
|
};
|
|
2280
2255
|
const serializeAws_json1_1SearchSystemInstancesRequest = (input, context) => {
|
|
2281
2256
|
return {
|
|
2282
|
-
...(input.filters
|
|
2283
|
-
|
|
2284
|
-
...(input.
|
|
2285
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2257
|
+
...(input.filters != null && { filters: serializeAws_json1_1SystemInstanceFilters(input.filters, context) }),
|
|
2258
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2259
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2286
2260
|
};
|
|
2287
2261
|
};
|
|
2288
2262
|
const serializeAws_json1_1SearchSystemTemplatesRequest = (input, context) => {
|
|
2289
2263
|
return {
|
|
2290
|
-
...(input.filters
|
|
2291
|
-
|
|
2292
|
-
...(input.
|
|
2293
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2264
|
+
...(input.filters != null && { filters: serializeAws_json1_1SystemTemplateFilters(input.filters, context) }),
|
|
2265
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2266
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2294
2267
|
};
|
|
2295
2268
|
};
|
|
2296
2269
|
const serializeAws_json1_1SearchThingsRequest = (input, context) => {
|
|
2297
2270
|
return {
|
|
2298
|
-
...(input.entityId
|
|
2299
|
-
...(input.maxResults
|
|
2300
|
-
...(input.namespaceVersion
|
|
2301
|
-
|
|
2302
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2271
|
+
...(input.entityId != null && { entityId: input.entityId }),
|
|
2272
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2273
|
+
...(input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion }),
|
|
2274
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2303
2275
|
};
|
|
2304
2276
|
};
|
|
2305
2277
|
const serializeAws_json1_1SystemInstanceFilter = (input, context) => {
|
|
2306
2278
|
return {
|
|
2307
|
-
...(input.name
|
|
2308
|
-
...(input.value
|
|
2309
|
-
input.value !== null && { value: serializeAws_json1_1SystemInstanceFilterValues(input.value, context) }),
|
|
2279
|
+
...(input.name != null && { name: input.name }),
|
|
2280
|
+
...(input.value != null && { value: serializeAws_json1_1SystemInstanceFilterValues(input.value, context) }),
|
|
2310
2281
|
};
|
|
2311
2282
|
};
|
|
2312
2283
|
const serializeAws_json1_1SystemInstanceFilters = (input, context) => {
|
|
@@ -2331,9 +2302,8 @@ const serializeAws_json1_1SystemInstanceFilterValues = (input, context) => {
|
|
|
2331
2302
|
};
|
|
2332
2303
|
const serializeAws_json1_1SystemTemplateFilter = (input, context) => {
|
|
2333
2304
|
return {
|
|
2334
|
-
...(input.name
|
|
2335
|
-
...(input.value
|
|
2336
|
-
input.value !== null && { value: serializeAws_json1_1SystemTemplateFilterValues(input.value, context) }),
|
|
2305
|
+
...(input.name != null && { name: input.name }),
|
|
2306
|
+
...(input.value != null && { value: serializeAws_json1_1SystemTemplateFilterValues(input.value, context) }),
|
|
2337
2307
|
};
|
|
2338
2308
|
};
|
|
2339
2309
|
const serializeAws_json1_1SystemTemplateFilters = (input, context) => {
|
|
@@ -2358,8 +2328,8 @@ const serializeAws_json1_1SystemTemplateFilterValues = (input, context) => {
|
|
|
2358
2328
|
};
|
|
2359
2329
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
2360
2330
|
return {
|
|
2361
|
-
...(input.key
|
|
2362
|
-
...(input.value
|
|
2331
|
+
...(input.key != null && { key: input.key }),
|
|
2332
|
+
...(input.value != null && { value: input.value }),
|
|
2363
2333
|
};
|
|
2364
2334
|
};
|
|
2365
2335
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
@@ -2384,48 +2354,40 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
2384
2354
|
};
|
|
2385
2355
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
2386
2356
|
return {
|
|
2387
|
-
...(input.resourceArn
|
|
2388
|
-
...(input.tags
|
|
2357
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2358
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2389
2359
|
};
|
|
2390
2360
|
};
|
|
2391
2361
|
const serializeAws_json1_1UndeploySystemInstanceRequest = (input, context) => {
|
|
2392
2362
|
return {
|
|
2393
|
-
...(input.id
|
|
2363
|
+
...(input.id != null && { id: input.id }),
|
|
2394
2364
|
};
|
|
2395
2365
|
};
|
|
2396
2366
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
2397
2367
|
return {
|
|
2398
|
-
...(input.resourceArn
|
|
2399
|
-
...(input.tagKeys
|
|
2400
|
-
input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
2368
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2369
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
2401
2370
|
};
|
|
2402
2371
|
};
|
|
2403
2372
|
const serializeAws_json1_1UpdateFlowTemplateRequest = (input, context) => {
|
|
2404
2373
|
return {
|
|
2405
|
-
...(input.compatibleNamespaceVersion
|
|
2406
|
-
|
|
2407
|
-
...(input.
|
|
2408
|
-
input.definition !== null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
2409
|
-
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
2374
|
+
...(input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
2375
|
+
...(input.definition != null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
2376
|
+
...(input.id != null && { id: input.id }),
|
|
2410
2377
|
};
|
|
2411
2378
|
};
|
|
2412
2379
|
const serializeAws_json1_1UpdateSystemTemplateRequest = (input, context) => {
|
|
2413
2380
|
return {
|
|
2414
|
-
...(input.compatibleNamespaceVersion
|
|
2415
|
-
|
|
2416
|
-
...(input.
|
|
2417
|
-
input.definition !== null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
2418
|
-
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
2381
|
+
...(input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
2382
|
+
...(input.definition != null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
2383
|
+
...(input.id != null && { id: input.id }),
|
|
2419
2384
|
};
|
|
2420
2385
|
};
|
|
2421
2386
|
const serializeAws_json1_1UploadEntityDefinitionsRequest = (input, context) => {
|
|
2422
2387
|
return {
|
|
2423
|
-
...(input.deprecateExistingEntities
|
|
2424
|
-
|
|
2425
|
-
...(input.
|
|
2426
|
-
input.document !== null && { document: serializeAws_json1_1DefinitionDocument(input.document, context) }),
|
|
2427
|
-
...(input.syncWithPublicNamespace !== undefined &&
|
|
2428
|
-
input.syncWithPublicNamespace !== null && { syncWithPublicNamespace: input.syncWithPublicNamespace }),
|
|
2388
|
+
...(input.deprecateExistingEntities != null && { deprecateExistingEntities: input.deprecateExistingEntities }),
|
|
2389
|
+
...(input.document != null && { document: serializeAws_json1_1DefinitionDocument(input.document, context) }),
|
|
2390
|
+
...(input.syncWithPublicNamespace != null && { syncWithPublicNamespace: input.syncWithPublicNamespace }),
|
|
2429
2391
|
};
|
|
2430
2392
|
};
|
|
2431
2393
|
const serializeAws_json1_1Urns = (input, context) => {
|
|
@@ -2443,23 +2405,17 @@ const deserializeAws_json1_1AssociateEntityToThingResponse = (output, context) =
|
|
|
2443
2405
|
};
|
|
2444
2406
|
const deserializeAws_json1_1CreateFlowTemplateResponse = (output, context) => {
|
|
2445
2407
|
return {
|
|
2446
|
-
summary: output.summary
|
|
2447
|
-
? deserializeAws_json1_1FlowTemplateSummary(output.summary, context)
|
|
2448
|
-
: undefined,
|
|
2408
|
+
summary: output.summary != null ? deserializeAws_json1_1FlowTemplateSummary(output.summary, context) : undefined,
|
|
2449
2409
|
};
|
|
2450
2410
|
};
|
|
2451
2411
|
const deserializeAws_json1_1CreateSystemInstanceResponse = (output, context) => {
|
|
2452
2412
|
return {
|
|
2453
|
-
summary: output.summary
|
|
2454
|
-
? deserializeAws_json1_1SystemInstanceSummary(output.summary, context)
|
|
2455
|
-
: undefined,
|
|
2413
|
+
summary: output.summary != null ? deserializeAws_json1_1SystemInstanceSummary(output.summary, context) : undefined,
|
|
2456
2414
|
};
|
|
2457
2415
|
};
|
|
2458
2416
|
const deserializeAws_json1_1CreateSystemTemplateResponse = (output, context) => {
|
|
2459
2417
|
return {
|
|
2460
|
-
summary: output.summary
|
|
2461
|
-
? deserializeAws_json1_1SystemTemplateSummary(output.summary, context)
|
|
2462
|
-
: undefined,
|
|
2418
|
+
summary: output.summary != null ? deserializeAws_json1_1SystemTemplateSummary(output.summary, context) : undefined,
|
|
2463
2419
|
};
|
|
2464
2420
|
};
|
|
2465
2421
|
const deserializeAws_json1_1DefinitionDocument = (output, context) => {
|
|
@@ -2503,9 +2459,7 @@ const deserializeAws_json1_1DependencyRevisions = (output, context) => {
|
|
|
2503
2459
|
const deserializeAws_json1_1DeploySystemInstanceResponse = (output, context) => {
|
|
2504
2460
|
return {
|
|
2505
2461
|
greengrassDeploymentId: (0, smithy_client_1.expectString)(output.greengrassDeploymentId),
|
|
2506
|
-
summary: output.summary
|
|
2507
|
-
? deserializeAws_json1_1SystemInstanceSummary(output.summary, context)
|
|
2508
|
-
: undefined,
|
|
2462
|
+
summary: output.summary != null ? deserializeAws_json1_1SystemInstanceSummary(output.summary, context) : undefined,
|
|
2509
2463
|
};
|
|
2510
2464
|
};
|
|
2511
2465
|
const deserializeAws_json1_1DeprecateFlowTemplateResponse = (output, context) => {
|
|
@@ -2529,12 +2483,8 @@ const deserializeAws_json1_1DissociateEntityFromThingResponse = (output, context
|
|
|
2529
2483
|
const deserializeAws_json1_1EntityDescription = (output, context) => {
|
|
2530
2484
|
return {
|
|
2531
2485
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2532
|
-
createdAt: output.createdAt
|
|
2533
|
-
|
|
2534
|
-
: undefined,
|
|
2535
|
-
definition: output.definition !== undefined && output.definition !== null
|
|
2536
|
-
? deserializeAws_json1_1DefinitionDocument(output.definition, context)
|
|
2537
|
-
: undefined,
|
|
2486
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2487
|
+
definition: output.definition != null ? deserializeAws_json1_1DefinitionDocument(output.definition, context) : undefined,
|
|
2538
2488
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2539
2489
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2540
2490
|
};
|
|
@@ -2555,9 +2505,7 @@ const deserializeAws_json1_1FlowExecutionMessage = (output, context) => {
|
|
|
2555
2505
|
eventType: (0, smithy_client_1.expectString)(output.eventType),
|
|
2556
2506
|
messageId: (0, smithy_client_1.expectString)(output.messageId),
|
|
2557
2507
|
payload: (0, smithy_client_1.expectString)(output.payload),
|
|
2558
|
-
timestamp: output.timestamp
|
|
2559
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp)))
|
|
2560
|
-
: undefined,
|
|
2508
|
+
timestamp: output.timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp))) : undefined,
|
|
2561
2509
|
};
|
|
2562
2510
|
};
|
|
2563
2511
|
const deserializeAws_json1_1FlowExecutionMessages = (output, context) => {
|
|
@@ -2584,26 +2532,18 @@ const deserializeAws_json1_1FlowExecutionSummaries = (output, context) => {
|
|
|
2584
2532
|
};
|
|
2585
2533
|
const deserializeAws_json1_1FlowExecutionSummary = (output, context) => {
|
|
2586
2534
|
return {
|
|
2587
|
-
createdAt: output.createdAt
|
|
2588
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
2589
|
-
: undefined,
|
|
2535
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2590
2536
|
flowExecutionId: (0, smithy_client_1.expectString)(output.flowExecutionId),
|
|
2591
2537
|
flowTemplateId: (0, smithy_client_1.expectString)(output.flowTemplateId),
|
|
2592
2538
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2593
2539
|
systemInstanceId: (0, smithy_client_1.expectString)(output.systemInstanceId),
|
|
2594
|
-
updatedAt: output.updatedAt
|
|
2595
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
|
|
2596
|
-
: undefined,
|
|
2540
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
2597
2541
|
};
|
|
2598
2542
|
};
|
|
2599
2543
|
const deserializeAws_json1_1FlowTemplateDescription = (output, context) => {
|
|
2600
2544
|
return {
|
|
2601
|
-
definition: output.definition
|
|
2602
|
-
|
|
2603
|
-
: undefined,
|
|
2604
|
-
summary: output.summary !== undefined && output.summary !== null
|
|
2605
|
-
? deserializeAws_json1_1FlowTemplateSummary(output.summary, context)
|
|
2606
|
-
: undefined,
|
|
2545
|
+
definition: output.definition != null ? deserializeAws_json1_1DefinitionDocument(output.definition, context) : undefined,
|
|
2546
|
+
summary: output.summary != null ? deserializeAws_json1_1FlowTemplateSummary(output.summary, context) : undefined,
|
|
2607
2547
|
validatedNamespaceVersion: (0, smithy_client_1.expectLong)(output.validatedNamespaceVersion),
|
|
2608
2548
|
};
|
|
2609
2549
|
};
|
|
@@ -2621,23 +2561,19 @@ const deserializeAws_json1_1FlowTemplateSummaries = (output, context) => {
|
|
|
2621
2561
|
const deserializeAws_json1_1FlowTemplateSummary = (output, context) => {
|
|
2622
2562
|
return {
|
|
2623
2563
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2624
|
-
createdAt: output.createdAt
|
|
2625
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
2626
|
-
: undefined,
|
|
2564
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2627
2565
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2628
2566
|
revisionNumber: (0, smithy_client_1.expectLong)(output.revisionNumber),
|
|
2629
2567
|
};
|
|
2630
2568
|
};
|
|
2631
2569
|
const deserializeAws_json1_1GetEntitiesResponse = (output, context) => {
|
|
2632
2570
|
return {
|
|
2633
|
-
descriptions: output.descriptions
|
|
2634
|
-
? deserializeAws_json1_1EntityDescriptions(output.descriptions, context)
|
|
2635
|
-
: undefined,
|
|
2571
|
+
descriptions: output.descriptions != null ? deserializeAws_json1_1EntityDescriptions(output.descriptions, context) : undefined,
|
|
2636
2572
|
};
|
|
2637
2573
|
};
|
|
2638
2574
|
const deserializeAws_json1_1GetFlowTemplateResponse = (output, context) => {
|
|
2639
2575
|
return {
|
|
2640
|
-
description: output.description
|
|
2576
|
+
description: output.description != null
|
|
2641
2577
|
? deserializeAws_json1_1FlowTemplateDescription(output.description, context)
|
|
2642
2578
|
: undefined,
|
|
2643
2579
|
};
|
|
@@ -2645,9 +2581,7 @@ const deserializeAws_json1_1GetFlowTemplateResponse = (output, context) => {
|
|
|
2645
2581
|
const deserializeAws_json1_1GetFlowTemplateRevisionsResponse = (output, context) => {
|
|
2646
2582
|
return {
|
|
2647
2583
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2648
|
-
summaries: output.summaries
|
|
2649
|
-
? deserializeAws_json1_1FlowTemplateSummaries(output.summaries, context)
|
|
2650
|
-
: undefined,
|
|
2584
|
+
summaries: output.summaries != null ? deserializeAws_json1_1FlowTemplateSummaries(output.summaries, context) : undefined,
|
|
2651
2585
|
};
|
|
2652
2586
|
};
|
|
2653
2587
|
const deserializeAws_json1_1GetNamespaceDeletionStatusResponse = (output, context) => {
|
|
@@ -2661,14 +2595,14 @@ const deserializeAws_json1_1GetNamespaceDeletionStatusResponse = (output, contex
|
|
|
2661
2595
|
};
|
|
2662
2596
|
const deserializeAws_json1_1GetSystemInstanceResponse = (output, context) => {
|
|
2663
2597
|
return {
|
|
2664
|
-
description: output.description
|
|
2598
|
+
description: output.description != null
|
|
2665
2599
|
? deserializeAws_json1_1SystemInstanceDescription(output.description, context)
|
|
2666
2600
|
: undefined,
|
|
2667
2601
|
};
|
|
2668
2602
|
};
|
|
2669
2603
|
const deserializeAws_json1_1GetSystemTemplateResponse = (output, context) => {
|
|
2670
2604
|
return {
|
|
2671
|
-
description: output.description
|
|
2605
|
+
description: output.description != null
|
|
2672
2606
|
? deserializeAws_json1_1SystemTemplateDescription(output.description, context)
|
|
2673
2607
|
: undefined,
|
|
2674
2608
|
};
|
|
@@ -2676,19 +2610,15 @@ const deserializeAws_json1_1GetSystemTemplateResponse = (output, context) => {
|
|
|
2676
2610
|
const deserializeAws_json1_1GetSystemTemplateRevisionsResponse = (output, context) => {
|
|
2677
2611
|
return {
|
|
2678
2612
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2679
|
-
summaries: output.summaries
|
|
2680
|
-
? deserializeAws_json1_1SystemTemplateSummaries(output.summaries, context)
|
|
2681
|
-
: undefined,
|
|
2613
|
+
summaries: output.summaries != null ? deserializeAws_json1_1SystemTemplateSummaries(output.summaries, context) : undefined,
|
|
2682
2614
|
};
|
|
2683
2615
|
};
|
|
2684
2616
|
const deserializeAws_json1_1GetUploadStatusResponse = (output, context) => {
|
|
2685
2617
|
return {
|
|
2686
|
-
createdDate: output.createdDate
|
|
2618
|
+
createdDate: output.createdDate != null
|
|
2687
2619
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdDate)))
|
|
2688
2620
|
: undefined,
|
|
2689
|
-
failureReason: output.failureReason
|
|
2690
|
-
? deserializeAws_json1_1StringList(output.failureReason, context)
|
|
2691
|
-
: undefined,
|
|
2621
|
+
failureReason: output.failureReason != null ? deserializeAws_json1_1StringList(output.failureReason, context) : undefined,
|
|
2692
2622
|
namespaceArn: (0, smithy_client_1.expectString)(output.namespaceArn),
|
|
2693
2623
|
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
2694
2624
|
namespaceVersion: (0, smithy_client_1.expectLong)(output.namespaceVersion),
|
|
@@ -2713,18 +2643,14 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
2713
2643
|
};
|
|
2714
2644
|
const deserializeAws_json1_1ListFlowExecutionMessagesResponse = (output, context) => {
|
|
2715
2645
|
return {
|
|
2716
|
-
messages: output.messages
|
|
2717
|
-
? deserializeAws_json1_1FlowExecutionMessages(output.messages, context)
|
|
2718
|
-
: undefined,
|
|
2646
|
+
messages: output.messages != null ? deserializeAws_json1_1FlowExecutionMessages(output.messages, context) : undefined,
|
|
2719
2647
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2720
2648
|
};
|
|
2721
2649
|
};
|
|
2722
2650
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
2723
2651
|
return {
|
|
2724
2652
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2725
|
-
tags: output.tags
|
|
2726
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
2727
|
-
: undefined,
|
|
2653
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
2728
2654
|
};
|
|
2729
2655
|
};
|
|
2730
2656
|
const deserializeAws_json1_1MetricsConfiguration = (output, context) => {
|
|
@@ -2750,50 +2676,38 @@ const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
|
2750
2676
|
};
|
|
2751
2677
|
const deserializeAws_json1_1SearchEntitiesResponse = (output, context) => {
|
|
2752
2678
|
return {
|
|
2753
|
-
descriptions: output.descriptions
|
|
2754
|
-
? deserializeAws_json1_1EntityDescriptions(output.descriptions, context)
|
|
2755
|
-
: undefined,
|
|
2679
|
+
descriptions: output.descriptions != null ? deserializeAws_json1_1EntityDescriptions(output.descriptions, context) : undefined,
|
|
2756
2680
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2757
2681
|
};
|
|
2758
2682
|
};
|
|
2759
2683
|
const deserializeAws_json1_1SearchFlowExecutionsResponse = (output, context) => {
|
|
2760
2684
|
return {
|
|
2761
2685
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2762
|
-
summaries: output.summaries
|
|
2763
|
-
? deserializeAws_json1_1FlowExecutionSummaries(output.summaries, context)
|
|
2764
|
-
: undefined,
|
|
2686
|
+
summaries: output.summaries != null ? deserializeAws_json1_1FlowExecutionSummaries(output.summaries, context) : undefined,
|
|
2765
2687
|
};
|
|
2766
2688
|
};
|
|
2767
2689
|
const deserializeAws_json1_1SearchFlowTemplatesResponse = (output, context) => {
|
|
2768
2690
|
return {
|
|
2769
2691
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2770
|
-
summaries: output.summaries
|
|
2771
|
-
? deserializeAws_json1_1FlowTemplateSummaries(output.summaries, context)
|
|
2772
|
-
: undefined,
|
|
2692
|
+
summaries: output.summaries != null ? deserializeAws_json1_1FlowTemplateSummaries(output.summaries, context) : undefined,
|
|
2773
2693
|
};
|
|
2774
2694
|
};
|
|
2775
2695
|
const deserializeAws_json1_1SearchSystemInstancesResponse = (output, context) => {
|
|
2776
2696
|
return {
|
|
2777
2697
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2778
|
-
summaries: output.summaries
|
|
2779
|
-
? deserializeAws_json1_1SystemInstanceSummaries(output.summaries, context)
|
|
2780
|
-
: undefined,
|
|
2698
|
+
summaries: output.summaries != null ? deserializeAws_json1_1SystemInstanceSummaries(output.summaries, context) : undefined,
|
|
2781
2699
|
};
|
|
2782
2700
|
};
|
|
2783
2701
|
const deserializeAws_json1_1SearchSystemTemplatesResponse = (output, context) => {
|
|
2784
2702
|
return {
|
|
2785
2703
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2786
|
-
summaries: output.summaries
|
|
2787
|
-
? deserializeAws_json1_1SystemTemplateSummaries(output.summaries, context)
|
|
2788
|
-
: undefined,
|
|
2704
|
+
summaries: output.summaries != null ? deserializeAws_json1_1SystemTemplateSummaries(output.summaries, context) : undefined,
|
|
2789
2705
|
};
|
|
2790
2706
|
};
|
|
2791
2707
|
const deserializeAws_json1_1SearchThingsResponse = (output, context) => {
|
|
2792
2708
|
return {
|
|
2793
2709
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2794
|
-
things: output.things
|
|
2795
|
-
? deserializeAws_json1_1Things(output.things, context)
|
|
2796
|
-
: undefined,
|
|
2710
|
+
things: output.things != null ? deserializeAws_json1_1Things(output.things, context) : undefined,
|
|
2797
2711
|
};
|
|
2798
2712
|
};
|
|
2799
2713
|
const deserializeAws_json1_1StringList = (output, context) => {
|
|
@@ -2809,18 +2723,14 @@ const deserializeAws_json1_1StringList = (output, context) => {
|
|
|
2809
2723
|
};
|
|
2810
2724
|
const deserializeAws_json1_1SystemInstanceDescription = (output, context) => {
|
|
2811
2725
|
return {
|
|
2812
|
-
definition: output.definition
|
|
2813
|
-
? deserializeAws_json1_1DefinitionDocument(output.definition, context)
|
|
2814
|
-
: undefined,
|
|
2726
|
+
definition: output.definition != null ? deserializeAws_json1_1DefinitionDocument(output.definition, context) : undefined,
|
|
2815
2727
|
flowActionsRoleArn: (0, smithy_client_1.expectString)(output.flowActionsRoleArn),
|
|
2816
|
-
metricsConfiguration: output.metricsConfiguration
|
|
2728
|
+
metricsConfiguration: output.metricsConfiguration != null
|
|
2817
2729
|
? deserializeAws_json1_1MetricsConfiguration(output.metricsConfiguration, context)
|
|
2818
2730
|
: undefined,
|
|
2819
2731
|
s3BucketName: (0, smithy_client_1.expectString)(output.s3BucketName),
|
|
2820
|
-
summary: output.summary
|
|
2821
|
-
|
|
2822
|
-
: undefined,
|
|
2823
|
-
validatedDependencyRevisions: output.validatedDependencyRevisions !== undefined && output.validatedDependencyRevisions !== null
|
|
2732
|
+
summary: output.summary != null ? deserializeAws_json1_1SystemInstanceSummary(output.summary, context) : undefined,
|
|
2733
|
+
validatedDependencyRevisions: output.validatedDependencyRevisions != null
|
|
2824
2734
|
? deserializeAws_json1_1DependencyRevisions(output.validatedDependencyRevisions, context)
|
|
2825
2735
|
: undefined,
|
|
2826
2736
|
validatedNamespaceVersion: (0, smithy_client_1.expectLong)(output.validatedNamespaceVersion),
|
|
@@ -2840,28 +2750,20 @@ const deserializeAws_json1_1SystemInstanceSummaries = (output, context) => {
|
|
|
2840
2750
|
const deserializeAws_json1_1SystemInstanceSummary = (output, context) => {
|
|
2841
2751
|
return {
|
|
2842
2752
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2843
|
-
createdAt: output.createdAt
|
|
2844
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
2845
|
-
: undefined,
|
|
2753
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2846
2754
|
greengrassGroupId: (0, smithy_client_1.expectString)(output.greengrassGroupId),
|
|
2847
2755
|
greengrassGroupName: (0, smithy_client_1.expectString)(output.greengrassGroupName),
|
|
2848
2756
|
greengrassGroupVersionId: (0, smithy_client_1.expectString)(output.greengrassGroupVersionId),
|
|
2849
2757
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2850
2758
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2851
2759
|
target: (0, smithy_client_1.expectString)(output.target),
|
|
2852
|
-
updatedAt: output.updatedAt
|
|
2853
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt)))
|
|
2854
|
-
: undefined,
|
|
2760
|
+
updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updatedAt))) : undefined,
|
|
2855
2761
|
};
|
|
2856
2762
|
};
|
|
2857
2763
|
const deserializeAws_json1_1SystemTemplateDescription = (output, context) => {
|
|
2858
2764
|
return {
|
|
2859
|
-
definition: output.definition
|
|
2860
|
-
|
|
2861
|
-
: undefined,
|
|
2862
|
-
summary: output.summary !== undefined && output.summary !== null
|
|
2863
|
-
? deserializeAws_json1_1SystemTemplateSummary(output.summary, context)
|
|
2864
|
-
: undefined,
|
|
2765
|
+
definition: output.definition != null ? deserializeAws_json1_1DefinitionDocument(output.definition, context) : undefined,
|
|
2766
|
+
summary: output.summary != null ? deserializeAws_json1_1SystemTemplateSummary(output.summary, context) : undefined,
|
|
2865
2767
|
validatedNamespaceVersion: (0, smithy_client_1.expectLong)(output.validatedNamespaceVersion),
|
|
2866
2768
|
};
|
|
2867
2769
|
};
|
|
@@ -2879,9 +2781,7 @@ const deserializeAws_json1_1SystemTemplateSummaries = (output, context) => {
|
|
|
2879
2781
|
const deserializeAws_json1_1SystemTemplateSummary = (output, context) => {
|
|
2880
2782
|
return {
|
|
2881
2783
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2882
|
-
createdAt: output.createdAt
|
|
2883
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
2884
|
-
: undefined,
|
|
2784
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2885
2785
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2886
2786
|
revisionNumber: (0, smithy_client_1.expectLong)(output.revisionNumber),
|
|
2887
2787
|
};
|
|
@@ -2930,9 +2830,7 @@ const deserializeAws_json1_1ThrottlingException = (output, context) => {
|
|
|
2930
2830
|
};
|
|
2931
2831
|
const deserializeAws_json1_1UndeploySystemInstanceResponse = (output, context) => {
|
|
2932
2832
|
return {
|
|
2933
|
-
summary: output.summary
|
|
2934
|
-
? deserializeAws_json1_1SystemInstanceSummary(output.summary, context)
|
|
2935
|
-
: undefined,
|
|
2833
|
+
summary: output.summary != null ? deserializeAws_json1_1SystemInstanceSummary(output.summary, context) : undefined,
|
|
2936
2834
|
};
|
|
2937
2835
|
};
|
|
2938
2836
|
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
@@ -2940,16 +2838,12 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
|
2940
2838
|
};
|
|
2941
2839
|
const deserializeAws_json1_1UpdateFlowTemplateResponse = (output, context) => {
|
|
2942
2840
|
return {
|
|
2943
|
-
summary: output.summary
|
|
2944
|
-
? deserializeAws_json1_1FlowTemplateSummary(output.summary, context)
|
|
2945
|
-
: undefined,
|
|
2841
|
+
summary: output.summary != null ? deserializeAws_json1_1FlowTemplateSummary(output.summary, context) : undefined,
|
|
2946
2842
|
};
|
|
2947
2843
|
};
|
|
2948
2844
|
const deserializeAws_json1_1UpdateSystemTemplateResponse = (output, context) => {
|
|
2949
2845
|
return {
|
|
2950
|
-
summary: output.summary
|
|
2951
|
-
? deserializeAws_json1_1SystemTemplateSummary(output.summary, context)
|
|
2952
|
-
: undefined,
|
|
2846
|
+
summary: output.summary != null ? deserializeAws_json1_1SystemTemplateSummary(output.summary, context) : undefined,
|
|
2953
2847
|
};
|
|
2954
2848
|
};
|
|
2955
2849
|
const deserializeAws_json1_1UploadEntityDefinitionsResponse = (output, context) => {
|
|
@@ -3001,6 +2895,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3001
2895
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3002
2896
|
const sanitizeErrorCode = (rawValue) => {
|
|
3003
2897
|
let cleanValue = rawValue;
|
|
2898
|
+
if (typeof cleanValue === "number") {
|
|
2899
|
+
cleanValue = cleanValue.toString();
|
|
2900
|
+
}
|
|
3004
2901
|
if (cleanValue.indexOf(":") >= 0) {
|
|
3005
2902
|
cleanValue = cleanValue.split(":")[0];
|
|
3006
2903
|
}
|