@aws-sdk/client-iotthingsgraph 3.35.0 → 3.38.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 +47 -0
- package/dist-cjs/IoTThingsGraph.js +0 -8
- package/dist-cjs/IoTThingsGraphClient.js +0 -13
- package/dist-cjs/commands/AssociateEntityToThingCommand.js +0 -26
- package/dist-cjs/commands/CreateFlowTemplateCommand.js +0 -27
- package/dist-cjs/commands/CreateSystemInstanceCommand.js +0 -33
- package/dist-cjs/commands/CreateSystemTemplateCommand.js +0 -26
- package/dist-cjs/commands/DeleteFlowTemplateCommand.js +0 -26
- package/dist-cjs/commands/DeleteNamespaceCommand.js +0 -25
- package/dist-cjs/commands/DeleteSystemInstanceCommand.js +0 -27
- package/dist-cjs/commands/DeleteSystemTemplateCommand.js +0 -26
- package/dist-cjs/commands/DeploySystemInstanceCommand.js +0 -36
- package/dist-cjs/commands/DeprecateFlowTemplateCommand.js +0 -25
- package/dist-cjs/commands/DeprecateSystemTemplateCommand.js +0 -25
- package/dist-cjs/commands/DescribeNamespaceCommand.js +0 -25
- package/dist-cjs/commands/DissociateEntityFromThingCommand.js +0 -26
- package/dist-cjs/commands/GetEntitiesCommand.js +0 -56
- package/dist-cjs/commands/GetFlowTemplateCommand.js +0 -25
- package/dist-cjs/commands/GetFlowTemplateRevisionsCommand.js +0 -26
- package/dist-cjs/commands/GetNamespaceDeletionStatusCommand.js +0 -25
- package/dist-cjs/commands/GetSystemInstanceCommand.js +0 -25
- package/dist-cjs/commands/GetSystemTemplateCommand.js +0 -25
- package/dist-cjs/commands/GetSystemTemplateRevisionsCommand.js +0 -26
- package/dist-cjs/commands/GetUploadStatusCommand.js +0 -25
- package/dist-cjs/commands/ListFlowExecutionMessagesCommand.js +0 -25
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/SearchEntitiesCommand.js +0 -25
- package/dist-cjs/commands/SearchFlowExecutionsCommand.js +0 -25
- package/dist-cjs/commands/SearchFlowTemplatesCommand.js +0 -25
- package/dist-cjs/commands/SearchSystemInstancesCommand.js +0 -25
- package/dist-cjs/commands/SearchSystemTemplatesCommand.js +0 -25
- package/dist-cjs/commands/SearchThingsCommand.js +0 -28
- package/dist-cjs/commands/TagResourceCommand.js +0 -25
- package/dist-cjs/commands/UndeploySystemInstanceCommand.js +0 -25
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/UpdateFlowTemplateCommand.js +0 -26
- package/dist-cjs/commands/UpdateSystemTemplateCommand.js +0 -25
- package/dist-cjs/commands/UploadEntityDefinitionsCommand.js +0 -35
- package/dist-cjs/commands/index.js +38 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -49
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -286
- package/dist-cjs/pagination/GetFlowTemplateRevisionsPaginator.js +0 -11
- package/dist-cjs/pagination/GetSystemTemplateRevisionsPaginator.js +0 -11
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListFlowExecutionMessagesPaginator.js +0 -11
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +0 -11
- package/dist-cjs/pagination/SearchEntitiesPaginator.js +0 -11
- package/dist-cjs/pagination/SearchFlowExecutionsPaginator.js +0 -11
- package/dist-cjs/pagination/SearchFlowTemplatesPaginator.js +0 -11
- package/dist-cjs/pagination/SearchSystemInstancesPaginator.js +0 -11
- package/dist-cjs/pagination/SearchSystemTemplatesPaginator.js +0 -11
- package/dist-cjs/pagination/SearchThingsPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +14 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/IoTThingsGraph.js +0 -1
- package/dist-es/IoTThingsGraphClient.js +0 -1
- package/dist-es/commands/AssociateEntityToThingCommand.js +0 -1
- package/dist-es/commands/CreateFlowTemplateCommand.js +0 -1
- package/dist-es/commands/CreateSystemInstanceCommand.js +0 -1
- package/dist-es/commands/CreateSystemTemplateCommand.js +0 -1
- package/dist-es/commands/DeleteFlowTemplateCommand.js +0 -1
- package/dist-es/commands/DeleteNamespaceCommand.js +0 -1
- package/dist-es/commands/DeleteSystemInstanceCommand.js +0 -1
- package/dist-es/commands/DeleteSystemTemplateCommand.js +0 -1
- package/dist-es/commands/DeploySystemInstanceCommand.js +0 -1
- package/dist-es/commands/DeprecateFlowTemplateCommand.js +0 -1
- package/dist-es/commands/DeprecateSystemTemplateCommand.js +0 -1
- package/dist-es/commands/DescribeNamespaceCommand.js +0 -1
- package/dist-es/commands/DissociateEntityFromThingCommand.js +0 -1
- package/dist-es/commands/GetEntitiesCommand.js +0 -1
- package/dist-es/commands/GetFlowTemplateCommand.js +0 -1
- package/dist-es/commands/GetFlowTemplateRevisionsCommand.js +0 -1
- package/dist-es/commands/GetNamespaceDeletionStatusCommand.js +0 -1
- package/dist-es/commands/GetSystemInstanceCommand.js +0 -1
- package/dist-es/commands/GetSystemTemplateCommand.js +0 -1
- package/dist-es/commands/GetSystemTemplateRevisionsCommand.js +0 -1
- package/dist-es/commands/GetUploadStatusCommand.js +0 -1
- package/dist-es/commands/ListFlowExecutionMessagesCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/SearchEntitiesCommand.js +0 -1
- package/dist-es/commands/SearchFlowExecutionsCommand.js +0 -1
- package/dist-es/commands/SearchFlowTemplatesCommand.js +0 -1
- package/dist-es/commands/SearchSystemInstancesCommand.js +0 -1
- package/dist-es/commands/SearchSystemTemplatesCommand.js +0 -1
- package/dist-es/commands/SearchThingsCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UndeploySystemInstanceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateFlowTemplateCommand.js +0 -1
- package/dist-es/commands/UpdateSystemTemplateCommand.js +0 -1
- package/dist-es/commands/UploadEntityDefinitionsCommand.js +0 -1
- package/dist-es/commands/index.js +35 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -49
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/GetFlowTemplateRevisionsPaginator.js +0 -1
- package/dist-es/pagination/GetSystemTemplateRevisionsPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListFlowExecutionMessagesPaginator.js +0 -1
- package/dist-es/pagination/ListTagsForResourcePaginator.js +0 -1
- package/dist-es/pagination/SearchEntitiesPaginator.js +0 -1
- package/dist-es/pagination/SearchFlowExecutionsPaginator.js +0 -1
- package/dist-es/pagination/SearchFlowTemplatesPaginator.js +0 -1
- package/dist-es/pagination/SearchSystemInstancesPaginator.js +0 -1
- package/dist-es/pagination/SearchSystemTemplatesPaginator.js +0 -1
- package/dist-es/pagination/SearchThingsPaginator.js +0 -1
- package/dist-es/pagination/index.js +11 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +35 -0
- package/dist-types/index.d.ts +4 -48
- package/dist-types/pagination/index.d.ts +11 -0
- package/dist-types/ts3.4/IoTThingsGraph.d.ts +36 -187
- package/dist-types/ts3.4/IoTThingsGraphClient.d.ts +24 -93
- package/dist-types/ts3.4/commands/AssociateEntityToThingCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/CreateFlowTemplateCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/CreateSystemInstanceCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/CreateSystemTemplateCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteFlowTemplateCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteNamespaceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteSystemInstanceCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteSystemTemplateCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeploySystemInstanceCommand.d.ts +2 -31
- package/dist-types/ts3.4/commands/DeprecateFlowTemplateCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeprecateSystemTemplateCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeNamespaceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DissociateEntityFromThingCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetEntitiesCommand.d.ts +2 -51
- package/dist-types/ts3.4/commands/GetFlowTemplateCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetFlowTemplateRevisionsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetNamespaceDeletionStatusCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetSystemInstanceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetSystemTemplateCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetSystemTemplateRevisionsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetUploadStatusCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListFlowExecutionMessagesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/SearchEntitiesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/SearchFlowExecutionsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/SearchFlowTemplatesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/SearchSystemInstancesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/SearchSystemTemplatesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/SearchThingsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UndeploySystemInstanceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdateFlowTemplateCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/UpdateSystemTemplateCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UploadEntityDefinitionsCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/index.d.ts +35 -0
- package/dist-types/ts3.4/index.d.ts +4 -48
- package/dist-types/ts3.4/models/models_0.d.ts +316 -1034
- package/dist-types/ts3.4/pagination/index.d.ts +11 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/IoTThingsGraph.js.map +0 -1
- package/dist-cjs/IoTThingsGraphClient.js.map +0 -1
- package/dist-cjs/commands/AssociateEntityToThingCommand.js.map +0 -1
- package/dist-cjs/commands/CreateFlowTemplateCommand.js.map +0 -1
- package/dist-cjs/commands/CreateSystemInstanceCommand.js.map +0 -1
- package/dist-cjs/commands/CreateSystemTemplateCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteFlowTemplateCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteNamespaceCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteSystemInstanceCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteSystemTemplateCommand.js.map +0 -1
- package/dist-cjs/commands/DeploySystemInstanceCommand.js.map +0 -1
- package/dist-cjs/commands/DeprecateFlowTemplateCommand.js.map +0 -1
- package/dist-cjs/commands/DeprecateSystemTemplateCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeNamespaceCommand.js.map +0 -1
- package/dist-cjs/commands/DissociateEntityFromThingCommand.js.map +0 -1
- package/dist-cjs/commands/GetEntitiesCommand.js.map +0 -1
- package/dist-cjs/commands/GetFlowTemplateCommand.js.map +0 -1
- package/dist-cjs/commands/GetFlowTemplateRevisionsCommand.js.map +0 -1
- package/dist-cjs/commands/GetNamespaceDeletionStatusCommand.js.map +0 -1
- package/dist-cjs/commands/GetSystemInstanceCommand.js.map +0 -1
- package/dist-cjs/commands/GetSystemTemplateCommand.js.map +0 -1
- package/dist-cjs/commands/GetSystemTemplateRevisionsCommand.js.map +0 -1
- package/dist-cjs/commands/GetUploadStatusCommand.js.map +0 -1
- package/dist-cjs/commands/ListFlowExecutionMessagesCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/SearchEntitiesCommand.js.map +0 -1
- package/dist-cjs/commands/SearchFlowExecutionsCommand.js.map +0 -1
- package/dist-cjs/commands/SearchFlowTemplatesCommand.js.map +0 -1
- package/dist-cjs/commands/SearchSystemInstancesCommand.js.map +0 -1
- package/dist-cjs/commands/SearchSystemTemplatesCommand.js.map +0 -1
- package/dist-cjs/commands/SearchThingsCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UndeploySystemInstanceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateFlowTemplateCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateSystemTemplateCommand.js.map +0 -1
- package/dist-cjs/commands/UploadEntityDefinitionsCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/GetFlowTemplateRevisionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/GetSystemTemplateRevisionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListFlowExecutionMessagesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js.map +0 -1
- package/dist-cjs/pagination/SearchEntitiesPaginator.js.map +0 -1
- package/dist-cjs/pagination/SearchFlowExecutionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/SearchFlowTemplatesPaginator.js.map +0 -1
- package/dist-cjs/pagination/SearchSystemInstancesPaginator.js.map +0 -1
- package/dist-cjs/pagination/SearchSystemTemplatesPaginator.js.map +0 -1
- package/dist-cjs/pagination/SearchThingsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/IoTThingsGraph.js.map +0 -1
- package/dist-es/IoTThingsGraphClient.js.map +0 -1
- package/dist-es/commands/AssociateEntityToThingCommand.js.map +0 -1
- package/dist-es/commands/CreateFlowTemplateCommand.js.map +0 -1
- package/dist-es/commands/CreateSystemInstanceCommand.js.map +0 -1
- package/dist-es/commands/CreateSystemTemplateCommand.js.map +0 -1
- package/dist-es/commands/DeleteFlowTemplateCommand.js.map +0 -1
- package/dist-es/commands/DeleteNamespaceCommand.js.map +0 -1
- package/dist-es/commands/DeleteSystemInstanceCommand.js.map +0 -1
- package/dist-es/commands/DeleteSystemTemplateCommand.js.map +0 -1
- package/dist-es/commands/DeploySystemInstanceCommand.js.map +0 -1
- package/dist-es/commands/DeprecateFlowTemplateCommand.js.map +0 -1
- package/dist-es/commands/DeprecateSystemTemplateCommand.js.map +0 -1
- package/dist-es/commands/DescribeNamespaceCommand.js.map +0 -1
- package/dist-es/commands/DissociateEntityFromThingCommand.js.map +0 -1
- package/dist-es/commands/GetEntitiesCommand.js.map +0 -1
- package/dist-es/commands/GetFlowTemplateCommand.js.map +0 -1
- package/dist-es/commands/GetFlowTemplateRevisionsCommand.js.map +0 -1
- package/dist-es/commands/GetNamespaceDeletionStatusCommand.js.map +0 -1
- package/dist-es/commands/GetSystemInstanceCommand.js.map +0 -1
- package/dist-es/commands/GetSystemTemplateCommand.js.map +0 -1
- package/dist-es/commands/GetSystemTemplateRevisionsCommand.js.map +0 -1
- package/dist-es/commands/GetUploadStatusCommand.js.map +0 -1
- package/dist-es/commands/ListFlowExecutionMessagesCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/SearchEntitiesCommand.js.map +0 -1
- package/dist-es/commands/SearchFlowExecutionsCommand.js.map +0 -1
- package/dist-es/commands/SearchFlowTemplatesCommand.js.map +0 -1
- package/dist-es/commands/SearchSystemInstancesCommand.js.map +0 -1
- package/dist-es/commands/SearchSystemTemplatesCommand.js.map +0 -1
- package/dist-es/commands/SearchThingsCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UndeploySystemInstanceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateFlowTemplateCommand.js.map +0 -1
- package/dist-es/commands/UpdateSystemTemplateCommand.js.map +0 -1
- package/dist-es/commands/UploadEntityDefinitionsCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/GetFlowTemplateRevisionsPaginator.js.map +0 -1
- package/dist-es/pagination/GetSystemTemplateRevisionsPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListFlowExecutionMessagesPaginator.js.map +0 -1
- package/dist-es/pagination/ListTagsForResourcePaginator.js.map +0 -1
- package/dist-es/pagination/SearchEntitiesPaginator.js.map +0 -1
- package/dist-es/pagination/SearchFlowExecutionsPaginator.js.map +0 -1
- package/dist-es/pagination/SearchFlowTemplatesPaginator.js.map +0 -1
- package/dist-es/pagination/SearchSystemInstancesPaginator.js.map +0 -1
- package/dist-es/pagination/SearchSystemTemplatesPaginator.js.map +0 -1
- package/dist-es/pagination/SearchThingsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/IoTThingsGraph.ts +0 -1359
- package/src/IoTThingsGraphClient.ts +0 -408
- package/src/commands/AssociateEntityToThingCommand.ts +0 -96
- package/src/commands/CreateFlowTemplateCommand.ts +0 -97
- package/src/commands/CreateSystemInstanceCommand.ts +0 -103
- package/src/commands/CreateSystemTemplateCommand.ts +0 -96
- package/src/commands/DeleteFlowTemplateCommand.ts +0 -96
- package/src/commands/DeleteNamespaceCommand.ts +0 -95
- package/src/commands/DeleteSystemInstanceCommand.ts +0 -97
- package/src/commands/DeleteSystemTemplateCommand.ts +0 -96
- package/src/commands/DeploySystemInstanceCommand.ts +0 -106
- package/src/commands/DeprecateFlowTemplateCommand.ts +0 -95
- package/src/commands/DeprecateSystemTemplateCommand.ts +0 -95
- package/src/commands/DescribeNamespaceCommand.ts +0 -95
- package/src/commands/DissociateEntityFromThingCommand.ts +0 -99
- package/src/commands/GetEntitiesCommand.ts +0 -126
- package/src/commands/GetFlowTemplateCommand.ts +0 -95
- package/src/commands/GetFlowTemplateRevisionsCommand.ts +0 -96
- package/src/commands/GetNamespaceDeletionStatusCommand.ts +0 -98
- package/src/commands/GetSystemInstanceCommand.ts +0 -95
- package/src/commands/GetSystemTemplateCommand.ts +0 -95
- package/src/commands/GetSystemTemplateRevisionsCommand.ts +0 -99
- package/src/commands/GetUploadStatusCommand.ts +0 -95
- package/src/commands/ListFlowExecutionMessagesCommand.ts +0 -98
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/SearchEntitiesCommand.ts +0 -95
- package/src/commands/SearchFlowExecutionsCommand.ts +0 -95
- package/src/commands/SearchFlowTemplatesCommand.ts +0 -95
- package/src/commands/SearchSystemInstancesCommand.ts +0 -95
- package/src/commands/SearchSystemTemplatesCommand.ts +0 -95
- package/src/commands/SearchThingsCommand.ts +0 -98
- package/src/commands/TagResourceCommand.ts +0 -95
- package/src/commands/UndeploySystemInstanceCommand.ts +0 -95
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateFlowTemplateCommand.ts +0 -96
- package/src/commands/UpdateSystemTemplateCommand.ts +0 -95
- package/src/commands/UploadEntityDefinitionsCommand.ts +0 -105
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -49
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2312
- package/src/pagination/GetFlowTemplateRevisionsPaginator.ts +0 -59
- package/src/pagination/GetSystemTemplateRevisionsPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListFlowExecutionMessagesPaginator.ts +0 -59
- package/src/pagination/ListTagsForResourcePaginator.ts +0 -59
- package/src/pagination/SearchEntitiesPaginator.ts +0 -59
- package/src/pagination/SearchFlowExecutionsPaginator.ts +0 -59
- package/src/pagination/SearchFlowTemplatesPaginator.ts +0 -59
- package/src/pagination/SearchSystemInstancesPaginator.ts +0 -59
- package/src/pagination/SearchSystemTemplatesPaginator.ts +0 -59
- package/src/pagination/SearchThingsPaginator.ts +0 -59
- package/src/protocols/Aws_json1_1.ts +0 -4845
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,4845 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
|
-
import {
|
|
3
|
-
expectBoolean as __expectBoolean,
|
|
4
|
-
expectLong as __expectLong,
|
|
5
|
-
expectNonNull as __expectNonNull,
|
|
6
|
-
expectNumber as __expectNumber,
|
|
7
|
-
expectString as __expectString,
|
|
8
|
-
parseEpochTimestamp as __parseEpochTimestamp,
|
|
9
|
-
} from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
Endpoint as __Endpoint,
|
|
12
|
-
HeaderBag as __HeaderBag,
|
|
13
|
-
MetadataBearer as __MetadataBearer,
|
|
14
|
-
ResponseMetadata as __ResponseMetadata,
|
|
15
|
-
SerdeContext as __SerdeContext,
|
|
16
|
-
SmithyException as __SmithyException,
|
|
17
|
-
} from "@aws-sdk/types";
|
|
18
|
-
|
|
19
|
-
import {
|
|
20
|
-
AssociateEntityToThingCommandInput,
|
|
21
|
-
AssociateEntityToThingCommandOutput,
|
|
22
|
-
} from "../commands/AssociateEntityToThingCommand";
|
|
23
|
-
import { CreateFlowTemplateCommandInput, CreateFlowTemplateCommandOutput } from "../commands/CreateFlowTemplateCommand";
|
|
24
|
-
import {
|
|
25
|
-
CreateSystemInstanceCommandInput,
|
|
26
|
-
CreateSystemInstanceCommandOutput,
|
|
27
|
-
} from "../commands/CreateSystemInstanceCommand";
|
|
28
|
-
import {
|
|
29
|
-
CreateSystemTemplateCommandInput,
|
|
30
|
-
CreateSystemTemplateCommandOutput,
|
|
31
|
-
} from "../commands/CreateSystemTemplateCommand";
|
|
32
|
-
import { DeleteFlowTemplateCommandInput, DeleteFlowTemplateCommandOutput } from "../commands/DeleteFlowTemplateCommand";
|
|
33
|
-
import { DeleteNamespaceCommandInput, DeleteNamespaceCommandOutput } from "../commands/DeleteNamespaceCommand";
|
|
34
|
-
import {
|
|
35
|
-
DeleteSystemInstanceCommandInput,
|
|
36
|
-
DeleteSystemInstanceCommandOutput,
|
|
37
|
-
} from "../commands/DeleteSystemInstanceCommand";
|
|
38
|
-
import {
|
|
39
|
-
DeleteSystemTemplateCommandInput,
|
|
40
|
-
DeleteSystemTemplateCommandOutput,
|
|
41
|
-
} from "../commands/DeleteSystemTemplateCommand";
|
|
42
|
-
import {
|
|
43
|
-
DeploySystemInstanceCommandInput,
|
|
44
|
-
DeploySystemInstanceCommandOutput,
|
|
45
|
-
} from "../commands/DeploySystemInstanceCommand";
|
|
46
|
-
import {
|
|
47
|
-
DeprecateFlowTemplateCommandInput,
|
|
48
|
-
DeprecateFlowTemplateCommandOutput,
|
|
49
|
-
} from "../commands/DeprecateFlowTemplateCommand";
|
|
50
|
-
import {
|
|
51
|
-
DeprecateSystemTemplateCommandInput,
|
|
52
|
-
DeprecateSystemTemplateCommandOutput,
|
|
53
|
-
} from "../commands/DeprecateSystemTemplateCommand";
|
|
54
|
-
import { DescribeNamespaceCommandInput, DescribeNamespaceCommandOutput } from "../commands/DescribeNamespaceCommand";
|
|
55
|
-
import {
|
|
56
|
-
DissociateEntityFromThingCommandInput,
|
|
57
|
-
DissociateEntityFromThingCommandOutput,
|
|
58
|
-
} from "../commands/DissociateEntityFromThingCommand";
|
|
59
|
-
import { GetEntitiesCommandInput, GetEntitiesCommandOutput } from "../commands/GetEntitiesCommand";
|
|
60
|
-
import { GetFlowTemplateCommandInput, GetFlowTemplateCommandOutput } from "../commands/GetFlowTemplateCommand";
|
|
61
|
-
import {
|
|
62
|
-
GetFlowTemplateRevisionsCommandInput,
|
|
63
|
-
GetFlowTemplateRevisionsCommandOutput,
|
|
64
|
-
} from "../commands/GetFlowTemplateRevisionsCommand";
|
|
65
|
-
import {
|
|
66
|
-
GetNamespaceDeletionStatusCommandInput,
|
|
67
|
-
GetNamespaceDeletionStatusCommandOutput,
|
|
68
|
-
} from "../commands/GetNamespaceDeletionStatusCommand";
|
|
69
|
-
import { GetSystemInstanceCommandInput, GetSystemInstanceCommandOutput } from "../commands/GetSystemInstanceCommand";
|
|
70
|
-
import { GetSystemTemplateCommandInput, GetSystemTemplateCommandOutput } from "../commands/GetSystemTemplateCommand";
|
|
71
|
-
import {
|
|
72
|
-
GetSystemTemplateRevisionsCommandInput,
|
|
73
|
-
GetSystemTemplateRevisionsCommandOutput,
|
|
74
|
-
} from "../commands/GetSystemTemplateRevisionsCommand";
|
|
75
|
-
import { GetUploadStatusCommandInput, GetUploadStatusCommandOutput } from "../commands/GetUploadStatusCommand";
|
|
76
|
-
import {
|
|
77
|
-
ListFlowExecutionMessagesCommandInput,
|
|
78
|
-
ListFlowExecutionMessagesCommandOutput,
|
|
79
|
-
} from "../commands/ListFlowExecutionMessagesCommand";
|
|
80
|
-
import {
|
|
81
|
-
ListTagsForResourceCommandInput,
|
|
82
|
-
ListTagsForResourceCommandOutput,
|
|
83
|
-
} from "../commands/ListTagsForResourceCommand";
|
|
84
|
-
import { SearchEntitiesCommandInput, SearchEntitiesCommandOutput } from "../commands/SearchEntitiesCommand";
|
|
85
|
-
import {
|
|
86
|
-
SearchFlowExecutionsCommandInput,
|
|
87
|
-
SearchFlowExecutionsCommandOutput,
|
|
88
|
-
} from "../commands/SearchFlowExecutionsCommand";
|
|
89
|
-
import {
|
|
90
|
-
SearchFlowTemplatesCommandInput,
|
|
91
|
-
SearchFlowTemplatesCommandOutput,
|
|
92
|
-
} from "../commands/SearchFlowTemplatesCommand";
|
|
93
|
-
import {
|
|
94
|
-
SearchSystemInstancesCommandInput,
|
|
95
|
-
SearchSystemInstancesCommandOutput,
|
|
96
|
-
} from "../commands/SearchSystemInstancesCommand";
|
|
97
|
-
import {
|
|
98
|
-
SearchSystemTemplatesCommandInput,
|
|
99
|
-
SearchSystemTemplatesCommandOutput,
|
|
100
|
-
} from "../commands/SearchSystemTemplatesCommand";
|
|
101
|
-
import { SearchThingsCommandInput, SearchThingsCommandOutput } from "../commands/SearchThingsCommand";
|
|
102
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
103
|
-
import {
|
|
104
|
-
UndeploySystemInstanceCommandInput,
|
|
105
|
-
UndeploySystemInstanceCommandOutput,
|
|
106
|
-
} from "../commands/UndeploySystemInstanceCommand";
|
|
107
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
108
|
-
import { UpdateFlowTemplateCommandInput, UpdateFlowTemplateCommandOutput } from "../commands/UpdateFlowTemplateCommand";
|
|
109
|
-
import {
|
|
110
|
-
UpdateSystemTemplateCommandInput,
|
|
111
|
-
UpdateSystemTemplateCommandOutput,
|
|
112
|
-
} from "../commands/UpdateSystemTemplateCommand";
|
|
113
|
-
import {
|
|
114
|
-
UploadEntityDefinitionsCommandInput,
|
|
115
|
-
UploadEntityDefinitionsCommandOutput,
|
|
116
|
-
} from "../commands/UploadEntityDefinitionsCommand";
|
|
117
|
-
import {
|
|
118
|
-
AssociateEntityToThingRequest,
|
|
119
|
-
AssociateEntityToThingResponse,
|
|
120
|
-
CreateFlowTemplateRequest,
|
|
121
|
-
CreateFlowTemplateResponse,
|
|
122
|
-
CreateSystemInstanceRequest,
|
|
123
|
-
CreateSystemInstanceResponse,
|
|
124
|
-
CreateSystemTemplateRequest,
|
|
125
|
-
CreateSystemTemplateResponse,
|
|
126
|
-
DefinitionDocument,
|
|
127
|
-
DeleteFlowTemplateRequest,
|
|
128
|
-
DeleteFlowTemplateResponse,
|
|
129
|
-
DeleteNamespaceRequest,
|
|
130
|
-
DeleteNamespaceResponse,
|
|
131
|
-
DeleteSystemInstanceRequest,
|
|
132
|
-
DeleteSystemInstanceResponse,
|
|
133
|
-
DeleteSystemTemplateRequest,
|
|
134
|
-
DeleteSystemTemplateResponse,
|
|
135
|
-
DependencyRevision,
|
|
136
|
-
DeploySystemInstanceRequest,
|
|
137
|
-
DeploySystemInstanceResponse,
|
|
138
|
-
DeprecateFlowTemplateRequest,
|
|
139
|
-
DeprecateFlowTemplateResponse,
|
|
140
|
-
DeprecateSystemTemplateRequest,
|
|
141
|
-
DeprecateSystemTemplateResponse,
|
|
142
|
-
DescribeNamespaceRequest,
|
|
143
|
-
DescribeNamespaceResponse,
|
|
144
|
-
DissociateEntityFromThingRequest,
|
|
145
|
-
DissociateEntityFromThingResponse,
|
|
146
|
-
EntityDescription,
|
|
147
|
-
EntityFilter,
|
|
148
|
-
EntityType,
|
|
149
|
-
FlowExecutionMessage,
|
|
150
|
-
FlowExecutionSummary,
|
|
151
|
-
FlowTemplateDescription,
|
|
152
|
-
FlowTemplateFilter,
|
|
153
|
-
FlowTemplateSummary,
|
|
154
|
-
GetEntitiesRequest,
|
|
155
|
-
GetEntitiesResponse,
|
|
156
|
-
GetFlowTemplateRequest,
|
|
157
|
-
GetFlowTemplateResponse,
|
|
158
|
-
GetFlowTemplateRevisionsRequest,
|
|
159
|
-
GetFlowTemplateRevisionsResponse,
|
|
160
|
-
GetNamespaceDeletionStatusRequest,
|
|
161
|
-
GetNamespaceDeletionStatusResponse,
|
|
162
|
-
GetSystemInstanceRequest,
|
|
163
|
-
GetSystemInstanceResponse,
|
|
164
|
-
GetSystemTemplateRequest,
|
|
165
|
-
GetSystemTemplateResponse,
|
|
166
|
-
GetSystemTemplateRevisionsRequest,
|
|
167
|
-
GetSystemTemplateRevisionsResponse,
|
|
168
|
-
GetUploadStatusRequest,
|
|
169
|
-
GetUploadStatusResponse,
|
|
170
|
-
InternalFailureException,
|
|
171
|
-
InvalidRequestException,
|
|
172
|
-
LimitExceededException,
|
|
173
|
-
ListFlowExecutionMessagesRequest,
|
|
174
|
-
ListFlowExecutionMessagesResponse,
|
|
175
|
-
ListTagsForResourceRequest,
|
|
176
|
-
ListTagsForResourceResponse,
|
|
177
|
-
MetricsConfiguration,
|
|
178
|
-
ResourceAlreadyExistsException,
|
|
179
|
-
ResourceInUseException,
|
|
180
|
-
ResourceNotFoundException,
|
|
181
|
-
SearchEntitiesRequest,
|
|
182
|
-
SearchEntitiesResponse,
|
|
183
|
-
SearchFlowExecutionsRequest,
|
|
184
|
-
SearchFlowExecutionsResponse,
|
|
185
|
-
SearchFlowTemplatesRequest,
|
|
186
|
-
SearchFlowTemplatesResponse,
|
|
187
|
-
SearchSystemInstancesRequest,
|
|
188
|
-
SearchSystemInstancesResponse,
|
|
189
|
-
SearchSystemTemplatesRequest,
|
|
190
|
-
SearchSystemTemplatesResponse,
|
|
191
|
-
SearchThingsRequest,
|
|
192
|
-
SearchThingsResponse,
|
|
193
|
-
SystemInstanceDescription,
|
|
194
|
-
SystemInstanceFilter,
|
|
195
|
-
SystemInstanceSummary,
|
|
196
|
-
SystemTemplateDescription,
|
|
197
|
-
SystemTemplateFilter,
|
|
198
|
-
SystemTemplateSummary,
|
|
199
|
-
Tag,
|
|
200
|
-
TagResourceRequest,
|
|
201
|
-
TagResourceResponse,
|
|
202
|
-
Thing,
|
|
203
|
-
ThrottlingException,
|
|
204
|
-
UndeploySystemInstanceRequest,
|
|
205
|
-
UndeploySystemInstanceResponse,
|
|
206
|
-
UntagResourceRequest,
|
|
207
|
-
UntagResourceResponse,
|
|
208
|
-
UpdateFlowTemplateRequest,
|
|
209
|
-
UpdateFlowTemplateResponse,
|
|
210
|
-
UpdateSystemTemplateRequest,
|
|
211
|
-
UpdateSystemTemplateResponse,
|
|
212
|
-
UploadEntityDefinitionsRequest,
|
|
213
|
-
UploadEntityDefinitionsResponse,
|
|
214
|
-
} from "../models/models_0";
|
|
215
|
-
|
|
216
|
-
export const serializeAws_json1_1AssociateEntityToThingCommand = async (
|
|
217
|
-
input: AssociateEntityToThingCommandInput,
|
|
218
|
-
context: __SerdeContext
|
|
219
|
-
): Promise<__HttpRequest> => {
|
|
220
|
-
const headers: __HeaderBag = {
|
|
221
|
-
"content-type": "application/x-amz-json-1.1",
|
|
222
|
-
"x-amz-target": "IotThingsGraphFrontEndService.AssociateEntityToThing",
|
|
223
|
-
};
|
|
224
|
-
let body: any;
|
|
225
|
-
body = JSON.stringify(serializeAws_json1_1AssociateEntityToThingRequest(input, context));
|
|
226
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
export const serializeAws_json1_1CreateFlowTemplateCommand = async (
|
|
230
|
-
input: CreateFlowTemplateCommandInput,
|
|
231
|
-
context: __SerdeContext
|
|
232
|
-
): Promise<__HttpRequest> => {
|
|
233
|
-
const headers: __HeaderBag = {
|
|
234
|
-
"content-type": "application/x-amz-json-1.1",
|
|
235
|
-
"x-amz-target": "IotThingsGraphFrontEndService.CreateFlowTemplate",
|
|
236
|
-
};
|
|
237
|
-
let body: any;
|
|
238
|
-
body = JSON.stringify(serializeAws_json1_1CreateFlowTemplateRequest(input, context));
|
|
239
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
export const serializeAws_json1_1CreateSystemInstanceCommand = async (
|
|
243
|
-
input: CreateSystemInstanceCommandInput,
|
|
244
|
-
context: __SerdeContext
|
|
245
|
-
): Promise<__HttpRequest> => {
|
|
246
|
-
const headers: __HeaderBag = {
|
|
247
|
-
"content-type": "application/x-amz-json-1.1",
|
|
248
|
-
"x-amz-target": "IotThingsGraphFrontEndService.CreateSystemInstance",
|
|
249
|
-
};
|
|
250
|
-
let body: any;
|
|
251
|
-
body = JSON.stringify(serializeAws_json1_1CreateSystemInstanceRequest(input, context));
|
|
252
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
export const serializeAws_json1_1CreateSystemTemplateCommand = async (
|
|
256
|
-
input: CreateSystemTemplateCommandInput,
|
|
257
|
-
context: __SerdeContext
|
|
258
|
-
): Promise<__HttpRequest> => {
|
|
259
|
-
const headers: __HeaderBag = {
|
|
260
|
-
"content-type": "application/x-amz-json-1.1",
|
|
261
|
-
"x-amz-target": "IotThingsGraphFrontEndService.CreateSystemTemplate",
|
|
262
|
-
};
|
|
263
|
-
let body: any;
|
|
264
|
-
body = JSON.stringify(serializeAws_json1_1CreateSystemTemplateRequest(input, context));
|
|
265
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
export const serializeAws_json1_1DeleteFlowTemplateCommand = async (
|
|
269
|
-
input: DeleteFlowTemplateCommandInput,
|
|
270
|
-
context: __SerdeContext
|
|
271
|
-
): Promise<__HttpRequest> => {
|
|
272
|
-
const headers: __HeaderBag = {
|
|
273
|
-
"content-type": "application/x-amz-json-1.1",
|
|
274
|
-
"x-amz-target": "IotThingsGraphFrontEndService.DeleteFlowTemplate",
|
|
275
|
-
};
|
|
276
|
-
let body: any;
|
|
277
|
-
body = JSON.stringify(serializeAws_json1_1DeleteFlowTemplateRequest(input, context));
|
|
278
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
279
|
-
};
|
|
280
|
-
|
|
281
|
-
export const serializeAws_json1_1DeleteNamespaceCommand = async (
|
|
282
|
-
input: DeleteNamespaceCommandInput,
|
|
283
|
-
context: __SerdeContext
|
|
284
|
-
): Promise<__HttpRequest> => {
|
|
285
|
-
const headers: __HeaderBag = {
|
|
286
|
-
"content-type": "application/x-amz-json-1.1",
|
|
287
|
-
"x-amz-target": "IotThingsGraphFrontEndService.DeleteNamespace",
|
|
288
|
-
};
|
|
289
|
-
let body: any;
|
|
290
|
-
body = JSON.stringify(serializeAws_json1_1DeleteNamespaceRequest(input, context));
|
|
291
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
292
|
-
};
|
|
293
|
-
|
|
294
|
-
export const serializeAws_json1_1DeleteSystemInstanceCommand = async (
|
|
295
|
-
input: DeleteSystemInstanceCommandInput,
|
|
296
|
-
context: __SerdeContext
|
|
297
|
-
): Promise<__HttpRequest> => {
|
|
298
|
-
const headers: __HeaderBag = {
|
|
299
|
-
"content-type": "application/x-amz-json-1.1",
|
|
300
|
-
"x-amz-target": "IotThingsGraphFrontEndService.DeleteSystemInstance",
|
|
301
|
-
};
|
|
302
|
-
let body: any;
|
|
303
|
-
body = JSON.stringify(serializeAws_json1_1DeleteSystemInstanceRequest(input, context));
|
|
304
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
305
|
-
};
|
|
306
|
-
|
|
307
|
-
export const serializeAws_json1_1DeleteSystemTemplateCommand = async (
|
|
308
|
-
input: DeleteSystemTemplateCommandInput,
|
|
309
|
-
context: __SerdeContext
|
|
310
|
-
): Promise<__HttpRequest> => {
|
|
311
|
-
const headers: __HeaderBag = {
|
|
312
|
-
"content-type": "application/x-amz-json-1.1",
|
|
313
|
-
"x-amz-target": "IotThingsGraphFrontEndService.DeleteSystemTemplate",
|
|
314
|
-
};
|
|
315
|
-
let body: any;
|
|
316
|
-
body = JSON.stringify(serializeAws_json1_1DeleteSystemTemplateRequest(input, context));
|
|
317
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
export const serializeAws_json1_1DeploySystemInstanceCommand = async (
|
|
321
|
-
input: DeploySystemInstanceCommandInput,
|
|
322
|
-
context: __SerdeContext
|
|
323
|
-
): Promise<__HttpRequest> => {
|
|
324
|
-
const headers: __HeaderBag = {
|
|
325
|
-
"content-type": "application/x-amz-json-1.1",
|
|
326
|
-
"x-amz-target": "IotThingsGraphFrontEndService.DeploySystemInstance",
|
|
327
|
-
};
|
|
328
|
-
let body: any;
|
|
329
|
-
body = JSON.stringify(serializeAws_json1_1DeploySystemInstanceRequest(input, context));
|
|
330
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
331
|
-
};
|
|
332
|
-
|
|
333
|
-
export const serializeAws_json1_1DeprecateFlowTemplateCommand = async (
|
|
334
|
-
input: DeprecateFlowTemplateCommandInput,
|
|
335
|
-
context: __SerdeContext
|
|
336
|
-
): Promise<__HttpRequest> => {
|
|
337
|
-
const headers: __HeaderBag = {
|
|
338
|
-
"content-type": "application/x-amz-json-1.1",
|
|
339
|
-
"x-amz-target": "IotThingsGraphFrontEndService.DeprecateFlowTemplate",
|
|
340
|
-
};
|
|
341
|
-
let body: any;
|
|
342
|
-
body = JSON.stringify(serializeAws_json1_1DeprecateFlowTemplateRequest(input, context));
|
|
343
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
344
|
-
};
|
|
345
|
-
|
|
346
|
-
export const serializeAws_json1_1DeprecateSystemTemplateCommand = async (
|
|
347
|
-
input: DeprecateSystemTemplateCommandInput,
|
|
348
|
-
context: __SerdeContext
|
|
349
|
-
): Promise<__HttpRequest> => {
|
|
350
|
-
const headers: __HeaderBag = {
|
|
351
|
-
"content-type": "application/x-amz-json-1.1",
|
|
352
|
-
"x-amz-target": "IotThingsGraphFrontEndService.DeprecateSystemTemplate",
|
|
353
|
-
};
|
|
354
|
-
let body: any;
|
|
355
|
-
body = JSON.stringify(serializeAws_json1_1DeprecateSystemTemplateRequest(input, context));
|
|
356
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
export const serializeAws_json1_1DescribeNamespaceCommand = async (
|
|
360
|
-
input: DescribeNamespaceCommandInput,
|
|
361
|
-
context: __SerdeContext
|
|
362
|
-
): Promise<__HttpRequest> => {
|
|
363
|
-
const headers: __HeaderBag = {
|
|
364
|
-
"content-type": "application/x-amz-json-1.1",
|
|
365
|
-
"x-amz-target": "IotThingsGraphFrontEndService.DescribeNamespace",
|
|
366
|
-
};
|
|
367
|
-
let body: any;
|
|
368
|
-
body = JSON.stringify(serializeAws_json1_1DescribeNamespaceRequest(input, context));
|
|
369
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
370
|
-
};
|
|
371
|
-
|
|
372
|
-
export const serializeAws_json1_1DissociateEntityFromThingCommand = async (
|
|
373
|
-
input: DissociateEntityFromThingCommandInput,
|
|
374
|
-
context: __SerdeContext
|
|
375
|
-
): Promise<__HttpRequest> => {
|
|
376
|
-
const headers: __HeaderBag = {
|
|
377
|
-
"content-type": "application/x-amz-json-1.1",
|
|
378
|
-
"x-amz-target": "IotThingsGraphFrontEndService.DissociateEntityFromThing",
|
|
379
|
-
};
|
|
380
|
-
let body: any;
|
|
381
|
-
body = JSON.stringify(serializeAws_json1_1DissociateEntityFromThingRequest(input, context));
|
|
382
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
383
|
-
};
|
|
384
|
-
|
|
385
|
-
export const serializeAws_json1_1GetEntitiesCommand = async (
|
|
386
|
-
input: GetEntitiesCommandInput,
|
|
387
|
-
context: __SerdeContext
|
|
388
|
-
): Promise<__HttpRequest> => {
|
|
389
|
-
const headers: __HeaderBag = {
|
|
390
|
-
"content-type": "application/x-amz-json-1.1",
|
|
391
|
-
"x-amz-target": "IotThingsGraphFrontEndService.GetEntities",
|
|
392
|
-
};
|
|
393
|
-
let body: any;
|
|
394
|
-
body = JSON.stringify(serializeAws_json1_1GetEntitiesRequest(input, context));
|
|
395
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
396
|
-
};
|
|
397
|
-
|
|
398
|
-
export const serializeAws_json1_1GetFlowTemplateCommand = async (
|
|
399
|
-
input: GetFlowTemplateCommandInput,
|
|
400
|
-
context: __SerdeContext
|
|
401
|
-
): Promise<__HttpRequest> => {
|
|
402
|
-
const headers: __HeaderBag = {
|
|
403
|
-
"content-type": "application/x-amz-json-1.1",
|
|
404
|
-
"x-amz-target": "IotThingsGraphFrontEndService.GetFlowTemplate",
|
|
405
|
-
};
|
|
406
|
-
let body: any;
|
|
407
|
-
body = JSON.stringify(serializeAws_json1_1GetFlowTemplateRequest(input, context));
|
|
408
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
409
|
-
};
|
|
410
|
-
|
|
411
|
-
export const serializeAws_json1_1GetFlowTemplateRevisionsCommand = async (
|
|
412
|
-
input: GetFlowTemplateRevisionsCommandInput,
|
|
413
|
-
context: __SerdeContext
|
|
414
|
-
): Promise<__HttpRequest> => {
|
|
415
|
-
const headers: __HeaderBag = {
|
|
416
|
-
"content-type": "application/x-amz-json-1.1",
|
|
417
|
-
"x-amz-target": "IotThingsGraphFrontEndService.GetFlowTemplateRevisions",
|
|
418
|
-
};
|
|
419
|
-
let body: any;
|
|
420
|
-
body = JSON.stringify(serializeAws_json1_1GetFlowTemplateRevisionsRequest(input, context));
|
|
421
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
422
|
-
};
|
|
423
|
-
|
|
424
|
-
export const serializeAws_json1_1GetNamespaceDeletionStatusCommand = async (
|
|
425
|
-
input: GetNamespaceDeletionStatusCommandInput,
|
|
426
|
-
context: __SerdeContext
|
|
427
|
-
): Promise<__HttpRequest> => {
|
|
428
|
-
const headers: __HeaderBag = {
|
|
429
|
-
"content-type": "application/x-amz-json-1.1",
|
|
430
|
-
"x-amz-target": "IotThingsGraphFrontEndService.GetNamespaceDeletionStatus",
|
|
431
|
-
};
|
|
432
|
-
let body: any;
|
|
433
|
-
body = JSON.stringify(serializeAws_json1_1GetNamespaceDeletionStatusRequest(input, context));
|
|
434
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
435
|
-
};
|
|
436
|
-
|
|
437
|
-
export const serializeAws_json1_1GetSystemInstanceCommand = async (
|
|
438
|
-
input: GetSystemInstanceCommandInput,
|
|
439
|
-
context: __SerdeContext
|
|
440
|
-
): Promise<__HttpRequest> => {
|
|
441
|
-
const headers: __HeaderBag = {
|
|
442
|
-
"content-type": "application/x-amz-json-1.1",
|
|
443
|
-
"x-amz-target": "IotThingsGraphFrontEndService.GetSystemInstance",
|
|
444
|
-
};
|
|
445
|
-
let body: any;
|
|
446
|
-
body = JSON.stringify(serializeAws_json1_1GetSystemInstanceRequest(input, context));
|
|
447
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
448
|
-
};
|
|
449
|
-
|
|
450
|
-
export const serializeAws_json1_1GetSystemTemplateCommand = async (
|
|
451
|
-
input: GetSystemTemplateCommandInput,
|
|
452
|
-
context: __SerdeContext
|
|
453
|
-
): Promise<__HttpRequest> => {
|
|
454
|
-
const headers: __HeaderBag = {
|
|
455
|
-
"content-type": "application/x-amz-json-1.1",
|
|
456
|
-
"x-amz-target": "IotThingsGraphFrontEndService.GetSystemTemplate",
|
|
457
|
-
};
|
|
458
|
-
let body: any;
|
|
459
|
-
body = JSON.stringify(serializeAws_json1_1GetSystemTemplateRequest(input, context));
|
|
460
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
461
|
-
};
|
|
462
|
-
|
|
463
|
-
export const serializeAws_json1_1GetSystemTemplateRevisionsCommand = async (
|
|
464
|
-
input: GetSystemTemplateRevisionsCommandInput,
|
|
465
|
-
context: __SerdeContext
|
|
466
|
-
): Promise<__HttpRequest> => {
|
|
467
|
-
const headers: __HeaderBag = {
|
|
468
|
-
"content-type": "application/x-amz-json-1.1",
|
|
469
|
-
"x-amz-target": "IotThingsGraphFrontEndService.GetSystemTemplateRevisions",
|
|
470
|
-
};
|
|
471
|
-
let body: any;
|
|
472
|
-
body = JSON.stringify(serializeAws_json1_1GetSystemTemplateRevisionsRequest(input, context));
|
|
473
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
474
|
-
};
|
|
475
|
-
|
|
476
|
-
export const serializeAws_json1_1GetUploadStatusCommand = async (
|
|
477
|
-
input: GetUploadStatusCommandInput,
|
|
478
|
-
context: __SerdeContext
|
|
479
|
-
): Promise<__HttpRequest> => {
|
|
480
|
-
const headers: __HeaderBag = {
|
|
481
|
-
"content-type": "application/x-amz-json-1.1",
|
|
482
|
-
"x-amz-target": "IotThingsGraphFrontEndService.GetUploadStatus",
|
|
483
|
-
};
|
|
484
|
-
let body: any;
|
|
485
|
-
body = JSON.stringify(serializeAws_json1_1GetUploadStatusRequest(input, context));
|
|
486
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
487
|
-
};
|
|
488
|
-
|
|
489
|
-
export const serializeAws_json1_1ListFlowExecutionMessagesCommand = async (
|
|
490
|
-
input: ListFlowExecutionMessagesCommandInput,
|
|
491
|
-
context: __SerdeContext
|
|
492
|
-
): Promise<__HttpRequest> => {
|
|
493
|
-
const headers: __HeaderBag = {
|
|
494
|
-
"content-type": "application/x-amz-json-1.1",
|
|
495
|
-
"x-amz-target": "IotThingsGraphFrontEndService.ListFlowExecutionMessages",
|
|
496
|
-
};
|
|
497
|
-
let body: any;
|
|
498
|
-
body = JSON.stringify(serializeAws_json1_1ListFlowExecutionMessagesRequest(input, context));
|
|
499
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
500
|
-
};
|
|
501
|
-
|
|
502
|
-
export const serializeAws_json1_1ListTagsForResourceCommand = async (
|
|
503
|
-
input: ListTagsForResourceCommandInput,
|
|
504
|
-
context: __SerdeContext
|
|
505
|
-
): Promise<__HttpRequest> => {
|
|
506
|
-
const headers: __HeaderBag = {
|
|
507
|
-
"content-type": "application/x-amz-json-1.1",
|
|
508
|
-
"x-amz-target": "IotThingsGraphFrontEndService.ListTagsForResource",
|
|
509
|
-
};
|
|
510
|
-
let body: any;
|
|
511
|
-
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
512
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
513
|
-
};
|
|
514
|
-
|
|
515
|
-
export const serializeAws_json1_1SearchEntitiesCommand = async (
|
|
516
|
-
input: SearchEntitiesCommandInput,
|
|
517
|
-
context: __SerdeContext
|
|
518
|
-
): Promise<__HttpRequest> => {
|
|
519
|
-
const headers: __HeaderBag = {
|
|
520
|
-
"content-type": "application/x-amz-json-1.1",
|
|
521
|
-
"x-amz-target": "IotThingsGraphFrontEndService.SearchEntities",
|
|
522
|
-
};
|
|
523
|
-
let body: any;
|
|
524
|
-
body = JSON.stringify(serializeAws_json1_1SearchEntitiesRequest(input, context));
|
|
525
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
526
|
-
};
|
|
527
|
-
|
|
528
|
-
export const serializeAws_json1_1SearchFlowExecutionsCommand = async (
|
|
529
|
-
input: SearchFlowExecutionsCommandInput,
|
|
530
|
-
context: __SerdeContext
|
|
531
|
-
): Promise<__HttpRequest> => {
|
|
532
|
-
const headers: __HeaderBag = {
|
|
533
|
-
"content-type": "application/x-amz-json-1.1",
|
|
534
|
-
"x-amz-target": "IotThingsGraphFrontEndService.SearchFlowExecutions",
|
|
535
|
-
};
|
|
536
|
-
let body: any;
|
|
537
|
-
body = JSON.stringify(serializeAws_json1_1SearchFlowExecutionsRequest(input, context));
|
|
538
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
539
|
-
};
|
|
540
|
-
|
|
541
|
-
export const serializeAws_json1_1SearchFlowTemplatesCommand = async (
|
|
542
|
-
input: SearchFlowTemplatesCommandInput,
|
|
543
|
-
context: __SerdeContext
|
|
544
|
-
): Promise<__HttpRequest> => {
|
|
545
|
-
const headers: __HeaderBag = {
|
|
546
|
-
"content-type": "application/x-amz-json-1.1",
|
|
547
|
-
"x-amz-target": "IotThingsGraphFrontEndService.SearchFlowTemplates",
|
|
548
|
-
};
|
|
549
|
-
let body: any;
|
|
550
|
-
body = JSON.stringify(serializeAws_json1_1SearchFlowTemplatesRequest(input, context));
|
|
551
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
552
|
-
};
|
|
553
|
-
|
|
554
|
-
export const serializeAws_json1_1SearchSystemInstancesCommand = async (
|
|
555
|
-
input: SearchSystemInstancesCommandInput,
|
|
556
|
-
context: __SerdeContext
|
|
557
|
-
): Promise<__HttpRequest> => {
|
|
558
|
-
const headers: __HeaderBag = {
|
|
559
|
-
"content-type": "application/x-amz-json-1.1",
|
|
560
|
-
"x-amz-target": "IotThingsGraphFrontEndService.SearchSystemInstances",
|
|
561
|
-
};
|
|
562
|
-
let body: any;
|
|
563
|
-
body = JSON.stringify(serializeAws_json1_1SearchSystemInstancesRequest(input, context));
|
|
564
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
565
|
-
};
|
|
566
|
-
|
|
567
|
-
export const serializeAws_json1_1SearchSystemTemplatesCommand = async (
|
|
568
|
-
input: SearchSystemTemplatesCommandInput,
|
|
569
|
-
context: __SerdeContext
|
|
570
|
-
): Promise<__HttpRequest> => {
|
|
571
|
-
const headers: __HeaderBag = {
|
|
572
|
-
"content-type": "application/x-amz-json-1.1",
|
|
573
|
-
"x-amz-target": "IotThingsGraphFrontEndService.SearchSystemTemplates",
|
|
574
|
-
};
|
|
575
|
-
let body: any;
|
|
576
|
-
body = JSON.stringify(serializeAws_json1_1SearchSystemTemplatesRequest(input, context));
|
|
577
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
578
|
-
};
|
|
579
|
-
|
|
580
|
-
export const serializeAws_json1_1SearchThingsCommand = async (
|
|
581
|
-
input: SearchThingsCommandInput,
|
|
582
|
-
context: __SerdeContext
|
|
583
|
-
): Promise<__HttpRequest> => {
|
|
584
|
-
const headers: __HeaderBag = {
|
|
585
|
-
"content-type": "application/x-amz-json-1.1",
|
|
586
|
-
"x-amz-target": "IotThingsGraphFrontEndService.SearchThings",
|
|
587
|
-
};
|
|
588
|
-
let body: any;
|
|
589
|
-
body = JSON.stringify(serializeAws_json1_1SearchThingsRequest(input, context));
|
|
590
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
591
|
-
};
|
|
592
|
-
|
|
593
|
-
export const serializeAws_json1_1TagResourceCommand = async (
|
|
594
|
-
input: TagResourceCommandInput,
|
|
595
|
-
context: __SerdeContext
|
|
596
|
-
): Promise<__HttpRequest> => {
|
|
597
|
-
const headers: __HeaderBag = {
|
|
598
|
-
"content-type": "application/x-amz-json-1.1",
|
|
599
|
-
"x-amz-target": "IotThingsGraphFrontEndService.TagResource",
|
|
600
|
-
};
|
|
601
|
-
let body: any;
|
|
602
|
-
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
603
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
604
|
-
};
|
|
605
|
-
|
|
606
|
-
export const serializeAws_json1_1UndeploySystemInstanceCommand = async (
|
|
607
|
-
input: UndeploySystemInstanceCommandInput,
|
|
608
|
-
context: __SerdeContext
|
|
609
|
-
): Promise<__HttpRequest> => {
|
|
610
|
-
const headers: __HeaderBag = {
|
|
611
|
-
"content-type": "application/x-amz-json-1.1",
|
|
612
|
-
"x-amz-target": "IotThingsGraphFrontEndService.UndeploySystemInstance",
|
|
613
|
-
};
|
|
614
|
-
let body: any;
|
|
615
|
-
body = JSON.stringify(serializeAws_json1_1UndeploySystemInstanceRequest(input, context));
|
|
616
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
617
|
-
};
|
|
618
|
-
|
|
619
|
-
export const serializeAws_json1_1UntagResourceCommand = async (
|
|
620
|
-
input: UntagResourceCommandInput,
|
|
621
|
-
context: __SerdeContext
|
|
622
|
-
): Promise<__HttpRequest> => {
|
|
623
|
-
const headers: __HeaderBag = {
|
|
624
|
-
"content-type": "application/x-amz-json-1.1",
|
|
625
|
-
"x-amz-target": "IotThingsGraphFrontEndService.UntagResource",
|
|
626
|
-
};
|
|
627
|
-
let body: any;
|
|
628
|
-
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
629
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
630
|
-
};
|
|
631
|
-
|
|
632
|
-
export const serializeAws_json1_1UpdateFlowTemplateCommand = async (
|
|
633
|
-
input: UpdateFlowTemplateCommandInput,
|
|
634
|
-
context: __SerdeContext
|
|
635
|
-
): Promise<__HttpRequest> => {
|
|
636
|
-
const headers: __HeaderBag = {
|
|
637
|
-
"content-type": "application/x-amz-json-1.1",
|
|
638
|
-
"x-amz-target": "IotThingsGraphFrontEndService.UpdateFlowTemplate",
|
|
639
|
-
};
|
|
640
|
-
let body: any;
|
|
641
|
-
body = JSON.stringify(serializeAws_json1_1UpdateFlowTemplateRequest(input, context));
|
|
642
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
643
|
-
};
|
|
644
|
-
|
|
645
|
-
export const serializeAws_json1_1UpdateSystemTemplateCommand = async (
|
|
646
|
-
input: UpdateSystemTemplateCommandInput,
|
|
647
|
-
context: __SerdeContext
|
|
648
|
-
): Promise<__HttpRequest> => {
|
|
649
|
-
const headers: __HeaderBag = {
|
|
650
|
-
"content-type": "application/x-amz-json-1.1",
|
|
651
|
-
"x-amz-target": "IotThingsGraphFrontEndService.UpdateSystemTemplate",
|
|
652
|
-
};
|
|
653
|
-
let body: any;
|
|
654
|
-
body = JSON.stringify(serializeAws_json1_1UpdateSystemTemplateRequest(input, context));
|
|
655
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
656
|
-
};
|
|
657
|
-
|
|
658
|
-
export const serializeAws_json1_1UploadEntityDefinitionsCommand = async (
|
|
659
|
-
input: UploadEntityDefinitionsCommandInput,
|
|
660
|
-
context: __SerdeContext
|
|
661
|
-
): Promise<__HttpRequest> => {
|
|
662
|
-
const headers: __HeaderBag = {
|
|
663
|
-
"content-type": "application/x-amz-json-1.1",
|
|
664
|
-
"x-amz-target": "IotThingsGraphFrontEndService.UploadEntityDefinitions",
|
|
665
|
-
};
|
|
666
|
-
let body: any;
|
|
667
|
-
body = JSON.stringify(serializeAws_json1_1UploadEntityDefinitionsRequest(input, context));
|
|
668
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
669
|
-
};
|
|
670
|
-
|
|
671
|
-
export const deserializeAws_json1_1AssociateEntityToThingCommand = async (
|
|
672
|
-
output: __HttpResponse,
|
|
673
|
-
context: __SerdeContext
|
|
674
|
-
): Promise<AssociateEntityToThingCommandOutput> => {
|
|
675
|
-
if (output.statusCode >= 300) {
|
|
676
|
-
return deserializeAws_json1_1AssociateEntityToThingCommandError(output, context);
|
|
677
|
-
}
|
|
678
|
-
const data: any = await parseBody(output.body, context);
|
|
679
|
-
let contents: any = {};
|
|
680
|
-
contents = deserializeAws_json1_1AssociateEntityToThingResponse(data, context);
|
|
681
|
-
const response: AssociateEntityToThingCommandOutput = {
|
|
682
|
-
$metadata: deserializeMetadata(output),
|
|
683
|
-
...contents,
|
|
684
|
-
};
|
|
685
|
-
return Promise.resolve(response);
|
|
686
|
-
};
|
|
687
|
-
|
|
688
|
-
const deserializeAws_json1_1AssociateEntityToThingCommandError = async (
|
|
689
|
-
output: __HttpResponse,
|
|
690
|
-
context: __SerdeContext
|
|
691
|
-
): Promise<AssociateEntityToThingCommandOutput> => {
|
|
692
|
-
const parsedOutput: any = {
|
|
693
|
-
...output,
|
|
694
|
-
body: await parseBody(output.body, context),
|
|
695
|
-
};
|
|
696
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
697
|
-
let errorCode = "UnknownError";
|
|
698
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
699
|
-
switch (errorCode) {
|
|
700
|
-
case "InternalFailureException":
|
|
701
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
702
|
-
response = {
|
|
703
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
704
|
-
name: errorCode,
|
|
705
|
-
$metadata: deserializeMetadata(output),
|
|
706
|
-
};
|
|
707
|
-
break;
|
|
708
|
-
case "InvalidRequestException":
|
|
709
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
710
|
-
response = {
|
|
711
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
712
|
-
name: errorCode,
|
|
713
|
-
$metadata: deserializeMetadata(output),
|
|
714
|
-
};
|
|
715
|
-
break;
|
|
716
|
-
case "ResourceNotFoundException":
|
|
717
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
718
|
-
response = {
|
|
719
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
720
|
-
name: errorCode,
|
|
721
|
-
$metadata: deserializeMetadata(output),
|
|
722
|
-
};
|
|
723
|
-
break;
|
|
724
|
-
case "ThrottlingException":
|
|
725
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
726
|
-
response = {
|
|
727
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
728
|
-
name: errorCode,
|
|
729
|
-
$metadata: deserializeMetadata(output),
|
|
730
|
-
};
|
|
731
|
-
break;
|
|
732
|
-
default:
|
|
733
|
-
const parsedBody = parsedOutput.body;
|
|
734
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
735
|
-
response = {
|
|
736
|
-
...parsedBody,
|
|
737
|
-
name: `${errorCode}`,
|
|
738
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
739
|
-
$fault: "client",
|
|
740
|
-
$metadata: deserializeMetadata(output),
|
|
741
|
-
} as any;
|
|
742
|
-
}
|
|
743
|
-
const message = response.message || response.Message || errorCode;
|
|
744
|
-
response.message = message;
|
|
745
|
-
delete response.Message;
|
|
746
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
747
|
-
};
|
|
748
|
-
|
|
749
|
-
export const deserializeAws_json1_1CreateFlowTemplateCommand = async (
|
|
750
|
-
output: __HttpResponse,
|
|
751
|
-
context: __SerdeContext
|
|
752
|
-
): Promise<CreateFlowTemplateCommandOutput> => {
|
|
753
|
-
if (output.statusCode >= 300) {
|
|
754
|
-
return deserializeAws_json1_1CreateFlowTemplateCommandError(output, context);
|
|
755
|
-
}
|
|
756
|
-
const data: any = await parseBody(output.body, context);
|
|
757
|
-
let contents: any = {};
|
|
758
|
-
contents = deserializeAws_json1_1CreateFlowTemplateResponse(data, context);
|
|
759
|
-
const response: CreateFlowTemplateCommandOutput = {
|
|
760
|
-
$metadata: deserializeMetadata(output),
|
|
761
|
-
...contents,
|
|
762
|
-
};
|
|
763
|
-
return Promise.resolve(response);
|
|
764
|
-
};
|
|
765
|
-
|
|
766
|
-
const deserializeAws_json1_1CreateFlowTemplateCommandError = async (
|
|
767
|
-
output: __HttpResponse,
|
|
768
|
-
context: __SerdeContext
|
|
769
|
-
): Promise<CreateFlowTemplateCommandOutput> => {
|
|
770
|
-
const parsedOutput: any = {
|
|
771
|
-
...output,
|
|
772
|
-
body: await parseBody(output.body, context),
|
|
773
|
-
};
|
|
774
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
775
|
-
let errorCode = "UnknownError";
|
|
776
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
777
|
-
switch (errorCode) {
|
|
778
|
-
case "InternalFailureException":
|
|
779
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
780
|
-
response = {
|
|
781
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
782
|
-
name: errorCode,
|
|
783
|
-
$metadata: deserializeMetadata(output),
|
|
784
|
-
};
|
|
785
|
-
break;
|
|
786
|
-
case "InvalidRequestException":
|
|
787
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
788
|
-
response = {
|
|
789
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
790
|
-
name: errorCode,
|
|
791
|
-
$metadata: deserializeMetadata(output),
|
|
792
|
-
};
|
|
793
|
-
break;
|
|
794
|
-
case "LimitExceededException":
|
|
795
|
-
case "com.amazonaws.iotthingsgraph#LimitExceededException":
|
|
796
|
-
response = {
|
|
797
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
798
|
-
name: errorCode,
|
|
799
|
-
$metadata: deserializeMetadata(output),
|
|
800
|
-
};
|
|
801
|
-
break;
|
|
802
|
-
case "ResourceAlreadyExistsException":
|
|
803
|
-
case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException":
|
|
804
|
-
response = {
|
|
805
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
806
|
-
name: errorCode,
|
|
807
|
-
$metadata: deserializeMetadata(output),
|
|
808
|
-
};
|
|
809
|
-
break;
|
|
810
|
-
case "ThrottlingException":
|
|
811
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
812
|
-
response = {
|
|
813
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
814
|
-
name: errorCode,
|
|
815
|
-
$metadata: deserializeMetadata(output),
|
|
816
|
-
};
|
|
817
|
-
break;
|
|
818
|
-
default:
|
|
819
|
-
const parsedBody = parsedOutput.body;
|
|
820
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
821
|
-
response = {
|
|
822
|
-
...parsedBody,
|
|
823
|
-
name: `${errorCode}`,
|
|
824
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
825
|
-
$fault: "client",
|
|
826
|
-
$metadata: deserializeMetadata(output),
|
|
827
|
-
} as any;
|
|
828
|
-
}
|
|
829
|
-
const message = response.message || response.Message || errorCode;
|
|
830
|
-
response.message = message;
|
|
831
|
-
delete response.Message;
|
|
832
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
833
|
-
};
|
|
834
|
-
|
|
835
|
-
export const deserializeAws_json1_1CreateSystemInstanceCommand = async (
|
|
836
|
-
output: __HttpResponse,
|
|
837
|
-
context: __SerdeContext
|
|
838
|
-
): Promise<CreateSystemInstanceCommandOutput> => {
|
|
839
|
-
if (output.statusCode >= 300) {
|
|
840
|
-
return deserializeAws_json1_1CreateSystemInstanceCommandError(output, context);
|
|
841
|
-
}
|
|
842
|
-
const data: any = await parseBody(output.body, context);
|
|
843
|
-
let contents: any = {};
|
|
844
|
-
contents = deserializeAws_json1_1CreateSystemInstanceResponse(data, context);
|
|
845
|
-
const response: CreateSystemInstanceCommandOutput = {
|
|
846
|
-
$metadata: deserializeMetadata(output),
|
|
847
|
-
...contents,
|
|
848
|
-
};
|
|
849
|
-
return Promise.resolve(response);
|
|
850
|
-
};
|
|
851
|
-
|
|
852
|
-
const deserializeAws_json1_1CreateSystemInstanceCommandError = async (
|
|
853
|
-
output: __HttpResponse,
|
|
854
|
-
context: __SerdeContext
|
|
855
|
-
): Promise<CreateSystemInstanceCommandOutput> => {
|
|
856
|
-
const parsedOutput: any = {
|
|
857
|
-
...output,
|
|
858
|
-
body: await parseBody(output.body, context),
|
|
859
|
-
};
|
|
860
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
861
|
-
let errorCode = "UnknownError";
|
|
862
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
863
|
-
switch (errorCode) {
|
|
864
|
-
case "InternalFailureException":
|
|
865
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
866
|
-
response = {
|
|
867
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
868
|
-
name: errorCode,
|
|
869
|
-
$metadata: deserializeMetadata(output),
|
|
870
|
-
};
|
|
871
|
-
break;
|
|
872
|
-
case "InvalidRequestException":
|
|
873
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
874
|
-
response = {
|
|
875
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
876
|
-
name: errorCode,
|
|
877
|
-
$metadata: deserializeMetadata(output),
|
|
878
|
-
};
|
|
879
|
-
break;
|
|
880
|
-
case "LimitExceededException":
|
|
881
|
-
case "com.amazonaws.iotthingsgraph#LimitExceededException":
|
|
882
|
-
response = {
|
|
883
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
884
|
-
name: errorCode,
|
|
885
|
-
$metadata: deserializeMetadata(output),
|
|
886
|
-
};
|
|
887
|
-
break;
|
|
888
|
-
case "ResourceAlreadyExistsException":
|
|
889
|
-
case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException":
|
|
890
|
-
response = {
|
|
891
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
892
|
-
name: errorCode,
|
|
893
|
-
$metadata: deserializeMetadata(output),
|
|
894
|
-
};
|
|
895
|
-
break;
|
|
896
|
-
case "ThrottlingException":
|
|
897
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
898
|
-
response = {
|
|
899
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
900
|
-
name: errorCode,
|
|
901
|
-
$metadata: deserializeMetadata(output),
|
|
902
|
-
};
|
|
903
|
-
break;
|
|
904
|
-
default:
|
|
905
|
-
const parsedBody = parsedOutput.body;
|
|
906
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
907
|
-
response = {
|
|
908
|
-
...parsedBody,
|
|
909
|
-
name: `${errorCode}`,
|
|
910
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
911
|
-
$fault: "client",
|
|
912
|
-
$metadata: deserializeMetadata(output),
|
|
913
|
-
} as any;
|
|
914
|
-
}
|
|
915
|
-
const message = response.message || response.Message || errorCode;
|
|
916
|
-
response.message = message;
|
|
917
|
-
delete response.Message;
|
|
918
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
919
|
-
};
|
|
920
|
-
|
|
921
|
-
export const deserializeAws_json1_1CreateSystemTemplateCommand = async (
|
|
922
|
-
output: __HttpResponse,
|
|
923
|
-
context: __SerdeContext
|
|
924
|
-
): Promise<CreateSystemTemplateCommandOutput> => {
|
|
925
|
-
if (output.statusCode >= 300) {
|
|
926
|
-
return deserializeAws_json1_1CreateSystemTemplateCommandError(output, context);
|
|
927
|
-
}
|
|
928
|
-
const data: any = await parseBody(output.body, context);
|
|
929
|
-
let contents: any = {};
|
|
930
|
-
contents = deserializeAws_json1_1CreateSystemTemplateResponse(data, context);
|
|
931
|
-
const response: CreateSystemTemplateCommandOutput = {
|
|
932
|
-
$metadata: deserializeMetadata(output),
|
|
933
|
-
...contents,
|
|
934
|
-
};
|
|
935
|
-
return Promise.resolve(response);
|
|
936
|
-
};
|
|
937
|
-
|
|
938
|
-
const deserializeAws_json1_1CreateSystemTemplateCommandError = async (
|
|
939
|
-
output: __HttpResponse,
|
|
940
|
-
context: __SerdeContext
|
|
941
|
-
): Promise<CreateSystemTemplateCommandOutput> => {
|
|
942
|
-
const parsedOutput: any = {
|
|
943
|
-
...output,
|
|
944
|
-
body: await parseBody(output.body, context),
|
|
945
|
-
};
|
|
946
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
947
|
-
let errorCode = "UnknownError";
|
|
948
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
949
|
-
switch (errorCode) {
|
|
950
|
-
case "InternalFailureException":
|
|
951
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
952
|
-
response = {
|
|
953
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
954
|
-
name: errorCode,
|
|
955
|
-
$metadata: deserializeMetadata(output),
|
|
956
|
-
};
|
|
957
|
-
break;
|
|
958
|
-
case "InvalidRequestException":
|
|
959
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
960
|
-
response = {
|
|
961
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
962
|
-
name: errorCode,
|
|
963
|
-
$metadata: deserializeMetadata(output),
|
|
964
|
-
};
|
|
965
|
-
break;
|
|
966
|
-
case "ResourceAlreadyExistsException":
|
|
967
|
-
case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException":
|
|
968
|
-
response = {
|
|
969
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
970
|
-
name: errorCode,
|
|
971
|
-
$metadata: deserializeMetadata(output),
|
|
972
|
-
};
|
|
973
|
-
break;
|
|
974
|
-
case "ThrottlingException":
|
|
975
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
976
|
-
response = {
|
|
977
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
978
|
-
name: errorCode,
|
|
979
|
-
$metadata: deserializeMetadata(output),
|
|
980
|
-
};
|
|
981
|
-
break;
|
|
982
|
-
default:
|
|
983
|
-
const parsedBody = parsedOutput.body;
|
|
984
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
985
|
-
response = {
|
|
986
|
-
...parsedBody,
|
|
987
|
-
name: `${errorCode}`,
|
|
988
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
989
|
-
$fault: "client",
|
|
990
|
-
$metadata: deserializeMetadata(output),
|
|
991
|
-
} as any;
|
|
992
|
-
}
|
|
993
|
-
const message = response.message || response.Message || errorCode;
|
|
994
|
-
response.message = message;
|
|
995
|
-
delete response.Message;
|
|
996
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
997
|
-
};
|
|
998
|
-
|
|
999
|
-
export const deserializeAws_json1_1DeleteFlowTemplateCommand = async (
|
|
1000
|
-
output: __HttpResponse,
|
|
1001
|
-
context: __SerdeContext
|
|
1002
|
-
): Promise<DeleteFlowTemplateCommandOutput> => {
|
|
1003
|
-
if (output.statusCode >= 300) {
|
|
1004
|
-
return deserializeAws_json1_1DeleteFlowTemplateCommandError(output, context);
|
|
1005
|
-
}
|
|
1006
|
-
const data: any = await parseBody(output.body, context);
|
|
1007
|
-
let contents: any = {};
|
|
1008
|
-
contents = deserializeAws_json1_1DeleteFlowTemplateResponse(data, context);
|
|
1009
|
-
const response: DeleteFlowTemplateCommandOutput = {
|
|
1010
|
-
$metadata: deserializeMetadata(output),
|
|
1011
|
-
...contents,
|
|
1012
|
-
};
|
|
1013
|
-
return Promise.resolve(response);
|
|
1014
|
-
};
|
|
1015
|
-
|
|
1016
|
-
const deserializeAws_json1_1DeleteFlowTemplateCommandError = async (
|
|
1017
|
-
output: __HttpResponse,
|
|
1018
|
-
context: __SerdeContext
|
|
1019
|
-
): Promise<DeleteFlowTemplateCommandOutput> => {
|
|
1020
|
-
const parsedOutput: any = {
|
|
1021
|
-
...output,
|
|
1022
|
-
body: await parseBody(output.body, context),
|
|
1023
|
-
};
|
|
1024
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1025
|
-
let errorCode = "UnknownError";
|
|
1026
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1027
|
-
switch (errorCode) {
|
|
1028
|
-
case "InternalFailureException":
|
|
1029
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1030
|
-
response = {
|
|
1031
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
1032
|
-
name: errorCode,
|
|
1033
|
-
$metadata: deserializeMetadata(output),
|
|
1034
|
-
};
|
|
1035
|
-
break;
|
|
1036
|
-
case "InvalidRequestException":
|
|
1037
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1038
|
-
response = {
|
|
1039
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1040
|
-
name: errorCode,
|
|
1041
|
-
$metadata: deserializeMetadata(output),
|
|
1042
|
-
};
|
|
1043
|
-
break;
|
|
1044
|
-
case "ResourceInUseException":
|
|
1045
|
-
case "com.amazonaws.iotthingsgraph#ResourceInUseException":
|
|
1046
|
-
response = {
|
|
1047
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1048
|
-
name: errorCode,
|
|
1049
|
-
$metadata: deserializeMetadata(output),
|
|
1050
|
-
};
|
|
1051
|
-
break;
|
|
1052
|
-
case "ThrottlingException":
|
|
1053
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1054
|
-
response = {
|
|
1055
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1056
|
-
name: errorCode,
|
|
1057
|
-
$metadata: deserializeMetadata(output),
|
|
1058
|
-
};
|
|
1059
|
-
break;
|
|
1060
|
-
default:
|
|
1061
|
-
const parsedBody = parsedOutput.body;
|
|
1062
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1063
|
-
response = {
|
|
1064
|
-
...parsedBody,
|
|
1065
|
-
name: `${errorCode}`,
|
|
1066
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1067
|
-
$fault: "client",
|
|
1068
|
-
$metadata: deserializeMetadata(output),
|
|
1069
|
-
} as any;
|
|
1070
|
-
}
|
|
1071
|
-
const message = response.message || response.Message || errorCode;
|
|
1072
|
-
response.message = message;
|
|
1073
|
-
delete response.Message;
|
|
1074
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1075
|
-
};
|
|
1076
|
-
|
|
1077
|
-
export const deserializeAws_json1_1DeleteNamespaceCommand = async (
|
|
1078
|
-
output: __HttpResponse,
|
|
1079
|
-
context: __SerdeContext
|
|
1080
|
-
): Promise<DeleteNamespaceCommandOutput> => {
|
|
1081
|
-
if (output.statusCode >= 300) {
|
|
1082
|
-
return deserializeAws_json1_1DeleteNamespaceCommandError(output, context);
|
|
1083
|
-
}
|
|
1084
|
-
const data: any = await parseBody(output.body, context);
|
|
1085
|
-
let contents: any = {};
|
|
1086
|
-
contents = deserializeAws_json1_1DeleteNamespaceResponse(data, context);
|
|
1087
|
-
const response: DeleteNamespaceCommandOutput = {
|
|
1088
|
-
$metadata: deserializeMetadata(output),
|
|
1089
|
-
...contents,
|
|
1090
|
-
};
|
|
1091
|
-
return Promise.resolve(response);
|
|
1092
|
-
};
|
|
1093
|
-
|
|
1094
|
-
const deserializeAws_json1_1DeleteNamespaceCommandError = async (
|
|
1095
|
-
output: __HttpResponse,
|
|
1096
|
-
context: __SerdeContext
|
|
1097
|
-
): Promise<DeleteNamespaceCommandOutput> => {
|
|
1098
|
-
const parsedOutput: any = {
|
|
1099
|
-
...output,
|
|
1100
|
-
body: await parseBody(output.body, context),
|
|
1101
|
-
};
|
|
1102
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1103
|
-
let errorCode = "UnknownError";
|
|
1104
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1105
|
-
switch (errorCode) {
|
|
1106
|
-
case "InternalFailureException":
|
|
1107
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1108
|
-
response = {
|
|
1109
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
1110
|
-
name: errorCode,
|
|
1111
|
-
$metadata: deserializeMetadata(output),
|
|
1112
|
-
};
|
|
1113
|
-
break;
|
|
1114
|
-
case "ThrottlingException":
|
|
1115
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1116
|
-
response = {
|
|
1117
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1118
|
-
name: errorCode,
|
|
1119
|
-
$metadata: deserializeMetadata(output),
|
|
1120
|
-
};
|
|
1121
|
-
break;
|
|
1122
|
-
default:
|
|
1123
|
-
const parsedBody = parsedOutput.body;
|
|
1124
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1125
|
-
response = {
|
|
1126
|
-
...parsedBody,
|
|
1127
|
-
name: `${errorCode}`,
|
|
1128
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1129
|
-
$fault: "client",
|
|
1130
|
-
$metadata: deserializeMetadata(output),
|
|
1131
|
-
} as any;
|
|
1132
|
-
}
|
|
1133
|
-
const message = response.message || response.Message || errorCode;
|
|
1134
|
-
response.message = message;
|
|
1135
|
-
delete response.Message;
|
|
1136
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1137
|
-
};
|
|
1138
|
-
|
|
1139
|
-
export const deserializeAws_json1_1DeleteSystemInstanceCommand = async (
|
|
1140
|
-
output: __HttpResponse,
|
|
1141
|
-
context: __SerdeContext
|
|
1142
|
-
): Promise<DeleteSystemInstanceCommandOutput> => {
|
|
1143
|
-
if (output.statusCode >= 300) {
|
|
1144
|
-
return deserializeAws_json1_1DeleteSystemInstanceCommandError(output, context);
|
|
1145
|
-
}
|
|
1146
|
-
const data: any = await parseBody(output.body, context);
|
|
1147
|
-
let contents: any = {};
|
|
1148
|
-
contents = deserializeAws_json1_1DeleteSystemInstanceResponse(data, context);
|
|
1149
|
-
const response: DeleteSystemInstanceCommandOutput = {
|
|
1150
|
-
$metadata: deserializeMetadata(output),
|
|
1151
|
-
...contents,
|
|
1152
|
-
};
|
|
1153
|
-
return Promise.resolve(response);
|
|
1154
|
-
};
|
|
1155
|
-
|
|
1156
|
-
const deserializeAws_json1_1DeleteSystemInstanceCommandError = async (
|
|
1157
|
-
output: __HttpResponse,
|
|
1158
|
-
context: __SerdeContext
|
|
1159
|
-
): Promise<DeleteSystemInstanceCommandOutput> => {
|
|
1160
|
-
const parsedOutput: any = {
|
|
1161
|
-
...output,
|
|
1162
|
-
body: await parseBody(output.body, context),
|
|
1163
|
-
};
|
|
1164
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1165
|
-
let errorCode = "UnknownError";
|
|
1166
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1167
|
-
switch (errorCode) {
|
|
1168
|
-
case "InternalFailureException":
|
|
1169
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1170
|
-
response = {
|
|
1171
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
1172
|
-
name: errorCode,
|
|
1173
|
-
$metadata: deserializeMetadata(output),
|
|
1174
|
-
};
|
|
1175
|
-
break;
|
|
1176
|
-
case "InvalidRequestException":
|
|
1177
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1178
|
-
response = {
|
|
1179
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1180
|
-
name: errorCode,
|
|
1181
|
-
$metadata: deserializeMetadata(output),
|
|
1182
|
-
};
|
|
1183
|
-
break;
|
|
1184
|
-
case "ResourceInUseException":
|
|
1185
|
-
case "com.amazonaws.iotthingsgraph#ResourceInUseException":
|
|
1186
|
-
response = {
|
|
1187
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1188
|
-
name: errorCode,
|
|
1189
|
-
$metadata: deserializeMetadata(output),
|
|
1190
|
-
};
|
|
1191
|
-
break;
|
|
1192
|
-
case "ThrottlingException":
|
|
1193
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1194
|
-
response = {
|
|
1195
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1196
|
-
name: errorCode,
|
|
1197
|
-
$metadata: deserializeMetadata(output),
|
|
1198
|
-
};
|
|
1199
|
-
break;
|
|
1200
|
-
default:
|
|
1201
|
-
const parsedBody = parsedOutput.body;
|
|
1202
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1203
|
-
response = {
|
|
1204
|
-
...parsedBody,
|
|
1205
|
-
name: `${errorCode}`,
|
|
1206
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1207
|
-
$fault: "client",
|
|
1208
|
-
$metadata: deserializeMetadata(output),
|
|
1209
|
-
} as any;
|
|
1210
|
-
}
|
|
1211
|
-
const message = response.message || response.Message || errorCode;
|
|
1212
|
-
response.message = message;
|
|
1213
|
-
delete response.Message;
|
|
1214
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1215
|
-
};
|
|
1216
|
-
|
|
1217
|
-
export const deserializeAws_json1_1DeleteSystemTemplateCommand = async (
|
|
1218
|
-
output: __HttpResponse,
|
|
1219
|
-
context: __SerdeContext
|
|
1220
|
-
): Promise<DeleteSystemTemplateCommandOutput> => {
|
|
1221
|
-
if (output.statusCode >= 300) {
|
|
1222
|
-
return deserializeAws_json1_1DeleteSystemTemplateCommandError(output, context);
|
|
1223
|
-
}
|
|
1224
|
-
const data: any = await parseBody(output.body, context);
|
|
1225
|
-
let contents: any = {};
|
|
1226
|
-
contents = deserializeAws_json1_1DeleteSystemTemplateResponse(data, context);
|
|
1227
|
-
const response: DeleteSystemTemplateCommandOutput = {
|
|
1228
|
-
$metadata: deserializeMetadata(output),
|
|
1229
|
-
...contents,
|
|
1230
|
-
};
|
|
1231
|
-
return Promise.resolve(response);
|
|
1232
|
-
};
|
|
1233
|
-
|
|
1234
|
-
const deserializeAws_json1_1DeleteSystemTemplateCommandError = async (
|
|
1235
|
-
output: __HttpResponse,
|
|
1236
|
-
context: __SerdeContext
|
|
1237
|
-
): Promise<DeleteSystemTemplateCommandOutput> => {
|
|
1238
|
-
const parsedOutput: any = {
|
|
1239
|
-
...output,
|
|
1240
|
-
body: await parseBody(output.body, context),
|
|
1241
|
-
};
|
|
1242
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1243
|
-
let errorCode = "UnknownError";
|
|
1244
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1245
|
-
switch (errorCode) {
|
|
1246
|
-
case "InternalFailureException":
|
|
1247
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1248
|
-
response = {
|
|
1249
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
1250
|
-
name: errorCode,
|
|
1251
|
-
$metadata: deserializeMetadata(output),
|
|
1252
|
-
};
|
|
1253
|
-
break;
|
|
1254
|
-
case "InvalidRequestException":
|
|
1255
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1256
|
-
response = {
|
|
1257
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1258
|
-
name: errorCode,
|
|
1259
|
-
$metadata: deserializeMetadata(output),
|
|
1260
|
-
};
|
|
1261
|
-
break;
|
|
1262
|
-
case "ResourceInUseException":
|
|
1263
|
-
case "com.amazonaws.iotthingsgraph#ResourceInUseException":
|
|
1264
|
-
response = {
|
|
1265
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1266
|
-
name: errorCode,
|
|
1267
|
-
$metadata: deserializeMetadata(output),
|
|
1268
|
-
};
|
|
1269
|
-
break;
|
|
1270
|
-
case "ThrottlingException":
|
|
1271
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1272
|
-
response = {
|
|
1273
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1274
|
-
name: errorCode,
|
|
1275
|
-
$metadata: deserializeMetadata(output),
|
|
1276
|
-
};
|
|
1277
|
-
break;
|
|
1278
|
-
default:
|
|
1279
|
-
const parsedBody = parsedOutput.body;
|
|
1280
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1281
|
-
response = {
|
|
1282
|
-
...parsedBody,
|
|
1283
|
-
name: `${errorCode}`,
|
|
1284
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1285
|
-
$fault: "client",
|
|
1286
|
-
$metadata: deserializeMetadata(output),
|
|
1287
|
-
} as any;
|
|
1288
|
-
}
|
|
1289
|
-
const message = response.message || response.Message || errorCode;
|
|
1290
|
-
response.message = message;
|
|
1291
|
-
delete response.Message;
|
|
1292
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1293
|
-
};
|
|
1294
|
-
|
|
1295
|
-
export const deserializeAws_json1_1DeploySystemInstanceCommand = async (
|
|
1296
|
-
output: __HttpResponse,
|
|
1297
|
-
context: __SerdeContext
|
|
1298
|
-
): Promise<DeploySystemInstanceCommandOutput> => {
|
|
1299
|
-
if (output.statusCode >= 300) {
|
|
1300
|
-
return deserializeAws_json1_1DeploySystemInstanceCommandError(output, context);
|
|
1301
|
-
}
|
|
1302
|
-
const data: any = await parseBody(output.body, context);
|
|
1303
|
-
let contents: any = {};
|
|
1304
|
-
contents = deserializeAws_json1_1DeploySystemInstanceResponse(data, context);
|
|
1305
|
-
const response: DeploySystemInstanceCommandOutput = {
|
|
1306
|
-
$metadata: deserializeMetadata(output),
|
|
1307
|
-
...contents,
|
|
1308
|
-
};
|
|
1309
|
-
return Promise.resolve(response);
|
|
1310
|
-
};
|
|
1311
|
-
|
|
1312
|
-
const deserializeAws_json1_1DeploySystemInstanceCommandError = async (
|
|
1313
|
-
output: __HttpResponse,
|
|
1314
|
-
context: __SerdeContext
|
|
1315
|
-
): Promise<DeploySystemInstanceCommandOutput> => {
|
|
1316
|
-
const parsedOutput: any = {
|
|
1317
|
-
...output,
|
|
1318
|
-
body: await parseBody(output.body, context),
|
|
1319
|
-
};
|
|
1320
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1321
|
-
let errorCode = "UnknownError";
|
|
1322
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
|
-
switch (errorCode) {
|
|
1324
|
-
case "InternalFailureException":
|
|
1325
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1326
|
-
response = {
|
|
1327
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
1328
|
-
name: errorCode,
|
|
1329
|
-
$metadata: deserializeMetadata(output),
|
|
1330
|
-
};
|
|
1331
|
-
break;
|
|
1332
|
-
case "InvalidRequestException":
|
|
1333
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1334
|
-
response = {
|
|
1335
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1336
|
-
name: errorCode,
|
|
1337
|
-
$metadata: deserializeMetadata(output),
|
|
1338
|
-
};
|
|
1339
|
-
break;
|
|
1340
|
-
case "ResourceInUseException":
|
|
1341
|
-
case "com.amazonaws.iotthingsgraph#ResourceInUseException":
|
|
1342
|
-
response = {
|
|
1343
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1344
|
-
name: errorCode,
|
|
1345
|
-
$metadata: deserializeMetadata(output),
|
|
1346
|
-
};
|
|
1347
|
-
break;
|
|
1348
|
-
case "ResourceNotFoundException":
|
|
1349
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1350
|
-
response = {
|
|
1351
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1352
|
-
name: errorCode,
|
|
1353
|
-
$metadata: deserializeMetadata(output),
|
|
1354
|
-
};
|
|
1355
|
-
break;
|
|
1356
|
-
case "ThrottlingException":
|
|
1357
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1358
|
-
response = {
|
|
1359
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1360
|
-
name: errorCode,
|
|
1361
|
-
$metadata: deserializeMetadata(output),
|
|
1362
|
-
};
|
|
1363
|
-
break;
|
|
1364
|
-
default:
|
|
1365
|
-
const parsedBody = parsedOutput.body;
|
|
1366
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1367
|
-
response = {
|
|
1368
|
-
...parsedBody,
|
|
1369
|
-
name: `${errorCode}`,
|
|
1370
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1371
|
-
$fault: "client",
|
|
1372
|
-
$metadata: deserializeMetadata(output),
|
|
1373
|
-
} as any;
|
|
1374
|
-
}
|
|
1375
|
-
const message = response.message || response.Message || errorCode;
|
|
1376
|
-
response.message = message;
|
|
1377
|
-
delete response.Message;
|
|
1378
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1379
|
-
};
|
|
1380
|
-
|
|
1381
|
-
export const deserializeAws_json1_1DeprecateFlowTemplateCommand = async (
|
|
1382
|
-
output: __HttpResponse,
|
|
1383
|
-
context: __SerdeContext
|
|
1384
|
-
): Promise<DeprecateFlowTemplateCommandOutput> => {
|
|
1385
|
-
if (output.statusCode >= 300) {
|
|
1386
|
-
return deserializeAws_json1_1DeprecateFlowTemplateCommandError(output, context);
|
|
1387
|
-
}
|
|
1388
|
-
const data: any = await parseBody(output.body, context);
|
|
1389
|
-
let contents: any = {};
|
|
1390
|
-
contents = deserializeAws_json1_1DeprecateFlowTemplateResponse(data, context);
|
|
1391
|
-
const response: DeprecateFlowTemplateCommandOutput = {
|
|
1392
|
-
$metadata: deserializeMetadata(output),
|
|
1393
|
-
...contents,
|
|
1394
|
-
};
|
|
1395
|
-
return Promise.resolve(response);
|
|
1396
|
-
};
|
|
1397
|
-
|
|
1398
|
-
const deserializeAws_json1_1DeprecateFlowTemplateCommandError = async (
|
|
1399
|
-
output: __HttpResponse,
|
|
1400
|
-
context: __SerdeContext
|
|
1401
|
-
): Promise<DeprecateFlowTemplateCommandOutput> => {
|
|
1402
|
-
const parsedOutput: any = {
|
|
1403
|
-
...output,
|
|
1404
|
-
body: await parseBody(output.body, context),
|
|
1405
|
-
};
|
|
1406
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1407
|
-
let errorCode = "UnknownError";
|
|
1408
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1409
|
-
switch (errorCode) {
|
|
1410
|
-
case "InternalFailureException":
|
|
1411
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1412
|
-
response = {
|
|
1413
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
1414
|
-
name: errorCode,
|
|
1415
|
-
$metadata: deserializeMetadata(output),
|
|
1416
|
-
};
|
|
1417
|
-
break;
|
|
1418
|
-
case "InvalidRequestException":
|
|
1419
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1420
|
-
response = {
|
|
1421
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1422
|
-
name: errorCode,
|
|
1423
|
-
$metadata: deserializeMetadata(output),
|
|
1424
|
-
};
|
|
1425
|
-
break;
|
|
1426
|
-
case "ResourceNotFoundException":
|
|
1427
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1428
|
-
response = {
|
|
1429
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1430
|
-
name: errorCode,
|
|
1431
|
-
$metadata: deserializeMetadata(output),
|
|
1432
|
-
};
|
|
1433
|
-
break;
|
|
1434
|
-
case "ThrottlingException":
|
|
1435
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1436
|
-
response = {
|
|
1437
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1438
|
-
name: errorCode,
|
|
1439
|
-
$metadata: deserializeMetadata(output),
|
|
1440
|
-
};
|
|
1441
|
-
break;
|
|
1442
|
-
default:
|
|
1443
|
-
const parsedBody = parsedOutput.body;
|
|
1444
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1445
|
-
response = {
|
|
1446
|
-
...parsedBody,
|
|
1447
|
-
name: `${errorCode}`,
|
|
1448
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1449
|
-
$fault: "client",
|
|
1450
|
-
$metadata: deserializeMetadata(output),
|
|
1451
|
-
} as any;
|
|
1452
|
-
}
|
|
1453
|
-
const message = response.message || response.Message || errorCode;
|
|
1454
|
-
response.message = message;
|
|
1455
|
-
delete response.Message;
|
|
1456
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1457
|
-
};
|
|
1458
|
-
|
|
1459
|
-
export const deserializeAws_json1_1DeprecateSystemTemplateCommand = async (
|
|
1460
|
-
output: __HttpResponse,
|
|
1461
|
-
context: __SerdeContext
|
|
1462
|
-
): Promise<DeprecateSystemTemplateCommandOutput> => {
|
|
1463
|
-
if (output.statusCode >= 300) {
|
|
1464
|
-
return deserializeAws_json1_1DeprecateSystemTemplateCommandError(output, context);
|
|
1465
|
-
}
|
|
1466
|
-
const data: any = await parseBody(output.body, context);
|
|
1467
|
-
let contents: any = {};
|
|
1468
|
-
contents = deserializeAws_json1_1DeprecateSystemTemplateResponse(data, context);
|
|
1469
|
-
const response: DeprecateSystemTemplateCommandOutput = {
|
|
1470
|
-
$metadata: deserializeMetadata(output),
|
|
1471
|
-
...contents,
|
|
1472
|
-
};
|
|
1473
|
-
return Promise.resolve(response);
|
|
1474
|
-
};
|
|
1475
|
-
|
|
1476
|
-
const deserializeAws_json1_1DeprecateSystemTemplateCommandError = async (
|
|
1477
|
-
output: __HttpResponse,
|
|
1478
|
-
context: __SerdeContext
|
|
1479
|
-
): Promise<DeprecateSystemTemplateCommandOutput> => {
|
|
1480
|
-
const parsedOutput: any = {
|
|
1481
|
-
...output,
|
|
1482
|
-
body: await parseBody(output.body, context),
|
|
1483
|
-
};
|
|
1484
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1485
|
-
let errorCode = "UnknownError";
|
|
1486
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1487
|
-
switch (errorCode) {
|
|
1488
|
-
case "InternalFailureException":
|
|
1489
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1490
|
-
response = {
|
|
1491
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
1492
|
-
name: errorCode,
|
|
1493
|
-
$metadata: deserializeMetadata(output),
|
|
1494
|
-
};
|
|
1495
|
-
break;
|
|
1496
|
-
case "InvalidRequestException":
|
|
1497
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1498
|
-
response = {
|
|
1499
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1500
|
-
name: errorCode,
|
|
1501
|
-
$metadata: deserializeMetadata(output),
|
|
1502
|
-
};
|
|
1503
|
-
break;
|
|
1504
|
-
case "ResourceNotFoundException":
|
|
1505
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1506
|
-
response = {
|
|
1507
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1508
|
-
name: errorCode,
|
|
1509
|
-
$metadata: deserializeMetadata(output),
|
|
1510
|
-
};
|
|
1511
|
-
break;
|
|
1512
|
-
case "ThrottlingException":
|
|
1513
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1514
|
-
response = {
|
|
1515
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1516
|
-
name: errorCode,
|
|
1517
|
-
$metadata: deserializeMetadata(output),
|
|
1518
|
-
};
|
|
1519
|
-
break;
|
|
1520
|
-
default:
|
|
1521
|
-
const parsedBody = parsedOutput.body;
|
|
1522
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1523
|
-
response = {
|
|
1524
|
-
...parsedBody,
|
|
1525
|
-
name: `${errorCode}`,
|
|
1526
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1527
|
-
$fault: "client",
|
|
1528
|
-
$metadata: deserializeMetadata(output),
|
|
1529
|
-
} as any;
|
|
1530
|
-
}
|
|
1531
|
-
const message = response.message || response.Message || errorCode;
|
|
1532
|
-
response.message = message;
|
|
1533
|
-
delete response.Message;
|
|
1534
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1535
|
-
};
|
|
1536
|
-
|
|
1537
|
-
export const deserializeAws_json1_1DescribeNamespaceCommand = async (
|
|
1538
|
-
output: __HttpResponse,
|
|
1539
|
-
context: __SerdeContext
|
|
1540
|
-
): Promise<DescribeNamespaceCommandOutput> => {
|
|
1541
|
-
if (output.statusCode >= 300) {
|
|
1542
|
-
return deserializeAws_json1_1DescribeNamespaceCommandError(output, context);
|
|
1543
|
-
}
|
|
1544
|
-
const data: any = await parseBody(output.body, context);
|
|
1545
|
-
let contents: any = {};
|
|
1546
|
-
contents = deserializeAws_json1_1DescribeNamespaceResponse(data, context);
|
|
1547
|
-
const response: DescribeNamespaceCommandOutput = {
|
|
1548
|
-
$metadata: deserializeMetadata(output),
|
|
1549
|
-
...contents,
|
|
1550
|
-
};
|
|
1551
|
-
return Promise.resolve(response);
|
|
1552
|
-
};
|
|
1553
|
-
|
|
1554
|
-
const deserializeAws_json1_1DescribeNamespaceCommandError = async (
|
|
1555
|
-
output: __HttpResponse,
|
|
1556
|
-
context: __SerdeContext
|
|
1557
|
-
): Promise<DescribeNamespaceCommandOutput> => {
|
|
1558
|
-
const parsedOutput: any = {
|
|
1559
|
-
...output,
|
|
1560
|
-
body: await parseBody(output.body, context),
|
|
1561
|
-
};
|
|
1562
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1563
|
-
let errorCode = "UnknownError";
|
|
1564
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1565
|
-
switch (errorCode) {
|
|
1566
|
-
case "InternalFailureException":
|
|
1567
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1568
|
-
response = {
|
|
1569
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
1570
|
-
name: errorCode,
|
|
1571
|
-
$metadata: deserializeMetadata(output),
|
|
1572
|
-
};
|
|
1573
|
-
break;
|
|
1574
|
-
case "InvalidRequestException":
|
|
1575
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1576
|
-
response = {
|
|
1577
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1578
|
-
name: errorCode,
|
|
1579
|
-
$metadata: deserializeMetadata(output),
|
|
1580
|
-
};
|
|
1581
|
-
break;
|
|
1582
|
-
case "ResourceNotFoundException":
|
|
1583
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1584
|
-
response = {
|
|
1585
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1586
|
-
name: errorCode,
|
|
1587
|
-
$metadata: deserializeMetadata(output),
|
|
1588
|
-
};
|
|
1589
|
-
break;
|
|
1590
|
-
case "ThrottlingException":
|
|
1591
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1592
|
-
response = {
|
|
1593
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1594
|
-
name: errorCode,
|
|
1595
|
-
$metadata: deserializeMetadata(output),
|
|
1596
|
-
};
|
|
1597
|
-
break;
|
|
1598
|
-
default:
|
|
1599
|
-
const parsedBody = parsedOutput.body;
|
|
1600
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1601
|
-
response = {
|
|
1602
|
-
...parsedBody,
|
|
1603
|
-
name: `${errorCode}`,
|
|
1604
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1605
|
-
$fault: "client",
|
|
1606
|
-
$metadata: deserializeMetadata(output),
|
|
1607
|
-
} as any;
|
|
1608
|
-
}
|
|
1609
|
-
const message = response.message || response.Message || errorCode;
|
|
1610
|
-
response.message = message;
|
|
1611
|
-
delete response.Message;
|
|
1612
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1613
|
-
};
|
|
1614
|
-
|
|
1615
|
-
export const deserializeAws_json1_1DissociateEntityFromThingCommand = async (
|
|
1616
|
-
output: __HttpResponse,
|
|
1617
|
-
context: __SerdeContext
|
|
1618
|
-
): Promise<DissociateEntityFromThingCommandOutput> => {
|
|
1619
|
-
if (output.statusCode >= 300) {
|
|
1620
|
-
return deserializeAws_json1_1DissociateEntityFromThingCommandError(output, context);
|
|
1621
|
-
}
|
|
1622
|
-
const data: any = await parseBody(output.body, context);
|
|
1623
|
-
let contents: any = {};
|
|
1624
|
-
contents = deserializeAws_json1_1DissociateEntityFromThingResponse(data, context);
|
|
1625
|
-
const response: DissociateEntityFromThingCommandOutput = {
|
|
1626
|
-
$metadata: deserializeMetadata(output),
|
|
1627
|
-
...contents,
|
|
1628
|
-
};
|
|
1629
|
-
return Promise.resolve(response);
|
|
1630
|
-
};
|
|
1631
|
-
|
|
1632
|
-
const deserializeAws_json1_1DissociateEntityFromThingCommandError = async (
|
|
1633
|
-
output: __HttpResponse,
|
|
1634
|
-
context: __SerdeContext
|
|
1635
|
-
): Promise<DissociateEntityFromThingCommandOutput> => {
|
|
1636
|
-
const parsedOutput: any = {
|
|
1637
|
-
...output,
|
|
1638
|
-
body: await parseBody(output.body, context),
|
|
1639
|
-
};
|
|
1640
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1641
|
-
let errorCode = "UnknownError";
|
|
1642
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1643
|
-
switch (errorCode) {
|
|
1644
|
-
case "InternalFailureException":
|
|
1645
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1646
|
-
response = {
|
|
1647
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
1648
|
-
name: errorCode,
|
|
1649
|
-
$metadata: deserializeMetadata(output),
|
|
1650
|
-
};
|
|
1651
|
-
break;
|
|
1652
|
-
case "InvalidRequestException":
|
|
1653
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1654
|
-
response = {
|
|
1655
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1656
|
-
name: errorCode,
|
|
1657
|
-
$metadata: deserializeMetadata(output),
|
|
1658
|
-
};
|
|
1659
|
-
break;
|
|
1660
|
-
case "ResourceNotFoundException":
|
|
1661
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1662
|
-
response = {
|
|
1663
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1664
|
-
name: errorCode,
|
|
1665
|
-
$metadata: deserializeMetadata(output),
|
|
1666
|
-
};
|
|
1667
|
-
break;
|
|
1668
|
-
case "ThrottlingException":
|
|
1669
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1670
|
-
response = {
|
|
1671
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1672
|
-
name: errorCode,
|
|
1673
|
-
$metadata: deserializeMetadata(output),
|
|
1674
|
-
};
|
|
1675
|
-
break;
|
|
1676
|
-
default:
|
|
1677
|
-
const parsedBody = parsedOutput.body;
|
|
1678
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1679
|
-
response = {
|
|
1680
|
-
...parsedBody,
|
|
1681
|
-
name: `${errorCode}`,
|
|
1682
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1683
|
-
$fault: "client",
|
|
1684
|
-
$metadata: deserializeMetadata(output),
|
|
1685
|
-
} as any;
|
|
1686
|
-
}
|
|
1687
|
-
const message = response.message || response.Message || errorCode;
|
|
1688
|
-
response.message = message;
|
|
1689
|
-
delete response.Message;
|
|
1690
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1691
|
-
};
|
|
1692
|
-
|
|
1693
|
-
export const deserializeAws_json1_1GetEntitiesCommand = async (
|
|
1694
|
-
output: __HttpResponse,
|
|
1695
|
-
context: __SerdeContext
|
|
1696
|
-
): Promise<GetEntitiesCommandOutput> => {
|
|
1697
|
-
if (output.statusCode >= 300) {
|
|
1698
|
-
return deserializeAws_json1_1GetEntitiesCommandError(output, context);
|
|
1699
|
-
}
|
|
1700
|
-
const data: any = await parseBody(output.body, context);
|
|
1701
|
-
let contents: any = {};
|
|
1702
|
-
contents = deserializeAws_json1_1GetEntitiesResponse(data, context);
|
|
1703
|
-
const response: GetEntitiesCommandOutput = {
|
|
1704
|
-
$metadata: deserializeMetadata(output),
|
|
1705
|
-
...contents,
|
|
1706
|
-
};
|
|
1707
|
-
return Promise.resolve(response);
|
|
1708
|
-
};
|
|
1709
|
-
|
|
1710
|
-
const deserializeAws_json1_1GetEntitiesCommandError = async (
|
|
1711
|
-
output: __HttpResponse,
|
|
1712
|
-
context: __SerdeContext
|
|
1713
|
-
): Promise<GetEntitiesCommandOutput> => {
|
|
1714
|
-
const parsedOutput: any = {
|
|
1715
|
-
...output,
|
|
1716
|
-
body: await parseBody(output.body, context),
|
|
1717
|
-
};
|
|
1718
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1719
|
-
let errorCode = "UnknownError";
|
|
1720
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1721
|
-
switch (errorCode) {
|
|
1722
|
-
case "InternalFailureException":
|
|
1723
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1724
|
-
response = {
|
|
1725
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
1726
|
-
name: errorCode,
|
|
1727
|
-
$metadata: deserializeMetadata(output),
|
|
1728
|
-
};
|
|
1729
|
-
break;
|
|
1730
|
-
case "InvalidRequestException":
|
|
1731
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1732
|
-
response = {
|
|
1733
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1734
|
-
name: errorCode,
|
|
1735
|
-
$metadata: deserializeMetadata(output),
|
|
1736
|
-
};
|
|
1737
|
-
break;
|
|
1738
|
-
case "ResourceNotFoundException":
|
|
1739
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1740
|
-
response = {
|
|
1741
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1742
|
-
name: errorCode,
|
|
1743
|
-
$metadata: deserializeMetadata(output),
|
|
1744
|
-
};
|
|
1745
|
-
break;
|
|
1746
|
-
case "ThrottlingException":
|
|
1747
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1748
|
-
response = {
|
|
1749
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1750
|
-
name: errorCode,
|
|
1751
|
-
$metadata: deserializeMetadata(output),
|
|
1752
|
-
};
|
|
1753
|
-
break;
|
|
1754
|
-
default:
|
|
1755
|
-
const parsedBody = parsedOutput.body;
|
|
1756
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1757
|
-
response = {
|
|
1758
|
-
...parsedBody,
|
|
1759
|
-
name: `${errorCode}`,
|
|
1760
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1761
|
-
$fault: "client",
|
|
1762
|
-
$metadata: deserializeMetadata(output),
|
|
1763
|
-
} as any;
|
|
1764
|
-
}
|
|
1765
|
-
const message = response.message || response.Message || errorCode;
|
|
1766
|
-
response.message = message;
|
|
1767
|
-
delete response.Message;
|
|
1768
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1769
|
-
};
|
|
1770
|
-
|
|
1771
|
-
export const deserializeAws_json1_1GetFlowTemplateCommand = async (
|
|
1772
|
-
output: __HttpResponse,
|
|
1773
|
-
context: __SerdeContext
|
|
1774
|
-
): Promise<GetFlowTemplateCommandOutput> => {
|
|
1775
|
-
if (output.statusCode >= 300) {
|
|
1776
|
-
return deserializeAws_json1_1GetFlowTemplateCommandError(output, context);
|
|
1777
|
-
}
|
|
1778
|
-
const data: any = await parseBody(output.body, context);
|
|
1779
|
-
let contents: any = {};
|
|
1780
|
-
contents = deserializeAws_json1_1GetFlowTemplateResponse(data, context);
|
|
1781
|
-
const response: GetFlowTemplateCommandOutput = {
|
|
1782
|
-
$metadata: deserializeMetadata(output),
|
|
1783
|
-
...contents,
|
|
1784
|
-
};
|
|
1785
|
-
return Promise.resolve(response);
|
|
1786
|
-
};
|
|
1787
|
-
|
|
1788
|
-
const deserializeAws_json1_1GetFlowTemplateCommandError = async (
|
|
1789
|
-
output: __HttpResponse,
|
|
1790
|
-
context: __SerdeContext
|
|
1791
|
-
): Promise<GetFlowTemplateCommandOutput> => {
|
|
1792
|
-
const parsedOutput: any = {
|
|
1793
|
-
...output,
|
|
1794
|
-
body: await parseBody(output.body, context),
|
|
1795
|
-
};
|
|
1796
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1797
|
-
let errorCode = "UnknownError";
|
|
1798
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1799
|
-
switch (errorCode) {
|
|
1800
|
-
case "InternalFailureException":
|
|
1801
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1802
|
-
response = {
|
|
1803
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
1804
|
-
name: errorCode,
|
|
1805
|
-
$metadata: deserializeMetadata(output),
|
|
1806
|
-
};
|
|
1807
|
-
break;
|
|
1808
|
-
case "InvalidRequestException":
|
|
1809
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1810
|
-
response = {
|
|
1811
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1812
|
-
name: errorCode,
|
|
1813
|
-
$metadata: deserializeMetadata(output),
|
|
1814
|
-
};
|
|
1815
|
-
break;
|
|
1816
|
-
case "ResourceNotFoundException":
|
|
1817
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1818
|
-
response = {
|
|
1819
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1820
|
-
name: errorCode,
|
|
1821
|
-
$metadata: deserializeMetadata(output),
|
|
1822
|
-
};
|
|
1823
|
-
break;
|
|
1824
|
-
case "ThrottlingException":
|
|
1825
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1826
|
-
response = {
|
|
1827
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1828
|
-
name: errorCode,
|
|
1829
|
-
$metadata: deserializeMetadata(output),
|
|
1830
|
-
};
|
|
1831
|
-
break;
|
|
1832
|
-
default:
|
|
1833
|
-
const parsedBody = parsedOutput.body;
|
|
1834
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1835
|
-
response = {
|
|
1836
|
-
...parsedBody,
|
|
1837
|
-
name: `${errorCode}`,
|
|
1838
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1839
|
-
$fault: "client",
|
|
1840
|
-
$metadata: deserializeMetadata(output),
|
|
1841
|
-
} as any;
|
|
1842
|
-
}
|
|
1843
|
-
const message = response.message || response.Message || errorCode;
|
|
1844
|
-
response.message = message;
|
|
1845
|
-
delete response.Message;
|
|
1846
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1847
|
-
};
|
|
1848
|
-
|
|
1849
|
-
export const deserializeAws_json1_1GetFlowTemplateRevisionsCommand = async (
|
|
1850
|
-
output: __HttpResponse,
|
|
1851
|
-
context: __SerdeContext
|
|
1852
|
-
): Promise<GetFlowTemplateRevisionsCommandOutput> => {
|
|
1853
|
-
if (output.statusCode >= 300) {
|
|
1854
|
-
return deserializeAws_json1_1GetFlowTemplateRevisionsCommandError(output, context);
|
|
1855
|
-
}
|
|
1856
|
-
const data: any = await parseBody(output.body, context);
|
|
1857
|
-
let contents: any = {};
|
|
1858
|
-
contents = deserializeAws_json1_1GetFlowTemplateRevisionsResponse(data, context);
|
|
1859
|
-
const response: GetFlowTemplateRevisionsCommandOutput = {
|
|
1860
|
-
$metadata: deserializeMetadata(output),
|
|
1861
|
-
...contents,
|
|
1862
|
-
};
|
|
1863
|
-
return Promise.resolve(response);
|
|
1864
|
-
};
|
|
1865
|
-
|
|
1866
|
-
const deserializeAws_json1_1GetFlowTemplateRevisionsCommandError = async (
|
|
1867
|
-
output: __HttpResponse,
|
|
1868
|
-
context: __SerdeContext
|
|
1869
|
-
): Promise<GetFlowTemplateRevisionsCommandOutput> => {
|
|
1870
|
-
const parsedOutput: any = {
|
|
1871
|
-
...output,
|
|
1872
|
-
body: await parseBody(output.body, context),
|
|
1873
|
-
};
|
|
1874
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1875
|
-
let errorCode = "UnknownError";
|
|
1876
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1877
|
-
switch (errorCode) {
|
|
1878
|
-
case "InternalFailureException":
|
|
1879
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1880
|
-
response = {
|
|
1881
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
1882
|
-
name: errorCode,
|
|
1883
|
-
$metadata: deserializeMetadata(output),
|
|
1884
|
-
};
|
|
1885
|
-
break;
|
|
1886
|
-
case "InvalidRequestException":
|
|
1887
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1888
|
-
response = {
|
|
1889
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1890
|
-
name: errorCode,
|
|
1891
|
-
$metadata: deserializeMetadata(output),
|
|
1892
|
-
};
|
|
1893
|
-
break;
|
|
1894
|
-
case "ResourceNotFoundException":
|
|
1895
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
1896
|
-
response = {
|
|
1897
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1898
|
-
name: errorCode,
|
|
1899
|
-
$metadata: deserializeMetadata(output),
|
|
1900
|
-
};
|
|
1901
|
-
break;
|
|
1902
|
-
case "ThrottlingException":
|
|
1903
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1904
|
-
response = {
|
|
1905
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1906
|
-
name: errorCode,
|
|
1907
|
-
$metadata: deserializeMetadata(output),
|
|
1908
|
-
};
|
|
1909
|
-
break;
|
|
1910
|
-
default:
|
|
1911
|
-
const parsedBody = parsedOutput.body;
|
|
1912
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1913
|
-
response = {
|
|
1914
|
-
...parsedBody,
|
|
1915
|
-
name: `${errorCode}`,
|
|
1916
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1917
|
-
$fault: "client",
|
|
1918
|
-
$metadata: deserializeMetadata(output),
|
|
1919
|
-
} as any;
|
|
1920
|
-
}
|
|
1921
|
-
const message = response.message || response.Message || errorCode;
|
|
1922
|
-
response.message = message;
|
|
1923
|
-
delete response.Message;
|
|
1924
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1925
|
-
};
|
|
1926
|
-
|
|
1927
|
-
export const deserializeAws_json1_1GetNamespaceDeletionStatusCommand = async (
|
|
1928
|
-
output: __HttpResponse,
|
|
1929
|
-
context: __SerdeContext
|
|
1930
|
-
): Promise<GetNamespaceDeletionStatusCommandOutput> => {
|
|
1931
|
-
if (output.statusCode >= 300) {
|
|
1932
|
-
return deserializeAws_json1_1GetNamespaceDeletionStatusCommandError(output, context);
|
|
1933
|
-
}
|
|
1934
|
-
const data: any = await parseBody(output.body, context);
|
|
1935
|
-
let contents: any = {};
|
|
1936
|
-
contents = deserializeAws_json1_1GetNamespaceDeletionStatusResponse(data, context);
|
|
1937
|
-
const response: GetNamespaceDeletionStatusCommandOutput = {
|
|
1938
|
-
$metadata: deserializeMetadata(output),
|
|
1939
|
-
...contents,
|
|
1940
|
-
};
|
|
1941
|
-
return Promise.resolve(response);
|
|
1942
|
-
};
|
|
1943
|
-
|
|
1944
|
-
const deserializeAws_json1_1GetNamespaceDeletionStatusCommandError = async (
|
|
1945
|
-
output: __HttpResponse,
|
|
1946
|
-
context: __SerdeContext
|
|
1947
|
-
): Promise<GetNamespaceDeletionStatusCommandOutput> => {
|
|
1948
|
-
const parsedOutput: any = {
|
|
1949
|
-
...output,
|
|
1950
|
-
body: await parseBody(output.body, context),
|
|
1951
|
-
};
|
|
1952
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1953
|
-
let errorCode = "UnknownError";
|
|
1954
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1955
|
-
switch (errorCode) {
|
|
1956
|
-
case "InternalFailureException":
|
|
1957
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
1958
|
-
response = {
|
|
1959
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
1960
|
-
name: errorCode,
|
|
1961
|
-
$metadata: deserializeMetadata(output),
|
|
1962
|
-
};
|
|
1963
|
-
break;
|
|
1964
|
-
case "InvalidRequestException":
|
|
1965
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
1966
|
-
response = {
|
|
1967
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1968
|
-
name: errorCode,
|
|
1969
|
-
$metadata: deserializeMetadata(output),
|
|
1970
|
-
};
|
|
1971
|
-
break;
|
|
1972
|
-
case "ThrottlingException":
|
|
1973
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
1974
|
-
response = {
|
|
1975
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1976
|
-
name: errorCode,
|
|
1977
|
-
$metadata: deserializeMetadata(output),
|
|
1978
|
-
};
|
|
1979
|
-
break;
|
|
1980
|
-
default:
|
|
1981
|
-
const parsedBody = parsedOutput.body;
|
|
1982
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1983
|
-
response = {
|
|
1984
|
-
...parsedBody,
|
|
1985
|
-
name: `${errorCode}`,
|
|
1986
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1987
|
-
$fault: "client",
|
|
1988
|
-
$metadata: deserializeMetadata(output),
|
|
1989
|
-
} as any;
|
|
1990
|
-
}
|
|
1991
|
-
const message = response.message || response.Message || errorCode;
|
|
1992
|
-
response.message = message;
|
|
1993
|
-
delete response.Message;
|
|
1994
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1995
|
-
};
|
|
1996
|
-
|
|
1997
|
-
export const deserializeAws_json1_1GetSystemInstanceCommand = async (
|
|
1998
|
-
output: __HttpResponse,
|
|
1999
|
-
context: __SerdeContext
|
|
2000
|
-
): Promise<GetSystemInstanceCommandOutput> => {
|
|
2001
|
-
if (output.statusCode >= 300) {
|
|
2002
|
-
return deserializeAws_json1_1GetSystemInstanceCommandError(output, context);
|
|
2003
|
-
}
|
|
2004
|
-
const data: any = await parseBody(output.body, context);
|
|
2005
|
-
let contents: any = {};
|
|
2006
|
-
contents = deserializeAws_json1_1GetSystemInstanceResponse(data, context);
|
|
2007
|
-
const response: GetSystemInstanceCommandOutput = {
|
|
2008
|
-
$metadata: deserializeMetadata(output),
|
|
2009
|
-
...contents,
|
|
2010
|
-
};
|
|
2011
|
-
return Promise.resolve(response);
|
|
2012
|
-
};
|
|
2013
|
-
|
|
2014
|
-
const deserializeAws_json1_1GetSystemInstanceCommandError = async (
|
|
2015
|
-
output: __HttpResponse,
|
|
2016
|
-
context: __SerdeContext
|
|
2017
|
-
): Promise<GetSystemInstanceCommandOutput> => {
|
|
2018
|
-
const parsedOutput: any = {
|
|
2019
|
-
...output,
|
|
2020
|
-
body: await parseBody(output.body, context),
|
|
2021
|
-
};
|
|
2022
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2023
|
-
let errorCode = "UnknownError";
|
|
2024
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2025
|
-
switch (errorCode) {
|
|
2026
|
-
case "InternalFailureException":
|
|
2027
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
2028
|
-
response = {
|
|
2029
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
2030
|
-
name: errorCode,
|
|
2031
|
-
$metadata: deserializeMetadata(output),
|
|
2032
|
-
};
|
|
2033
|
-
break;
|
|
2034
|
-
case "InvalidRequestException":
|
|
2035
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
2036
|
-
response = {
|
|
2037
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2038
|
-
name: errorCode,
|
|
2039
|
-
$metadata: deserializeMetadata(output),
|
|
2040
|
-
};
|
|
2041
|
-
break;
|
|
2042
|
-
case "ResourceNotFoundException":
|
|
2043
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
2044
|
-
response = {
|
|
2045
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2046
|
-
name: errorCode,
|
|
2047
|
-
$metadata: deserializeMetadata(output),
|
|
2048
|
-
};
|
|
2049
|
-
break;
|
|
2050
|
-
case "ThrottlingException":
|
|
2051
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
2052
|
-
response = {
|
|
2053
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2054
|
-
name: errorCode,
|
|
2055
|
-
$metadata: deserializeMetadata(output),
|
|
2056
|
-
};
|
|
2057
|
-
break;
|
|
2058
|
-
default:
|
|
2059
|
-
const parsedBody = parsedOutput.body;
|
|
2060
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2061
|
-
response = {
|
|
2062
|
-
...parsedBody,
|
|
2063
|
-
name: `${errorCode}`,
|
|
2064
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2065
|
-
$fault: "client",
|
|
2066
|
-
$metadata: deserializeMetadata(output),
|
|
2067
|
-
} as any;
|
|
2068
|
-
}
|
|
2069
|
-
const message = response.message || response.Message || errorCode;
|
|
2070
|
-
response.message = message;
|
|
2071
|
-
delete response.Message;
|
|
2072
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2073
|
-
};
|
|
2074
|
-
|
|
2075
|
-
export const deserializeAws_json1_1GetSystemTemplateCommand = async (
|
|
2076
|
-
output: __HttpResponse,
|
|
2077
|
-
context: __SerdeContext
|
|
2078
|
-
): Promise<GetSystemTemplateCommandOutput> => {
|
|
2079
|
-
if (output.statusCode >= 300) {
|
|
2080
|
-
return deserializeAws_json1_1GetSystemTemplateCommandError(output, context);
|
|
2081
|
-
}
|
|
2082
|
-
const data: any = await parseBody(output.body, context);
|
|
2083
|
-
let contents: any = {};
|
|
2084
|
-
contents = deserializeAws_json1_1GetSystemTemplateResponse(data, context);
|
|
2085
|
-
const response: GetSystemTemplateCommandOutput = {
|
|
2086
|
-
$metadata: deserializeMetadata(output),
|
|
2087
|
-
...contents,
|
|
2088
|
-
};
|
|
2089
|
-
return Promise.resolve(response);
|
|
2090
|
-
};
|
|
2091
|
-
|
|
2092
|
-
const deserializeAws_json1_1GetSystemTemplateCommandError = async (
|
|
2093
|
-
output: __HttpResponse,
|
|
2094
|
-
context: __SerdeContext
|
|
2095
|
-
): Promise<GetSystemTemplateCommandOutput> => {
|
|
2096
|
-
const parsedOutput: any = {
|
|
2097
|
-
...output,
|
|
2098
|
-
body: await parseBody(output.body, context),
|
|
2099
|
-
};
|
|
2100
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2101
|
-
let errorCode = "UnknownError";
|
|
2102
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2103
|
-
switch (errorCode) {
|
|
2104
|
-
case "InternalFailureException":
|
|
2105
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
2106
|
-
response = {
|
|
2107
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
2108
|
-
name: errorCode,
|
|
2109
|
-
$metadata: deserializeMetadata(output),
|
|
2110
|
-
};
|
|
2111
|
-
break;
|
|
2112
|
-
case "InvalidRequestException":
|
|
2113
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
2114
|
-
response = {
|
|
2115
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2116
|
-
name: errorCode,
|
|
2117
|
-
$metadata: deserializeMetadata(output),
|
|
2118
|
-
};
|
|
2119
|
-
break;
|
|
2120
|
-
case "ResourceNotFoundException":
|
|
2121
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
2122
|
-
response = {
|
|
2123
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2124
|
-
name: errorCode,
|
|
2125
|
-
$metadata: deserializeMetadata(output),
|
|
2126
|
-
};
|
|
2127
|
-
break;
|
|
2128
|
-
case "ThrottlingException":
|
|
2129
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
2130
|
-
response = {
|
|
2131
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2132
|
-
name: errorCode,
|
|
2133
|
-
$metadata: deserializeMetadata(output),
|
|
2134
|
-
};
|
|
2135
|
-
break;
|
|
2136
|
-
default:
|
|
2137
|
-
const parsedBody = parsedOutput.body;
|
|
2138
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2139
|
-
response = {
|
|
2140
|
-
...parsedBody,
|
|
2141
|
-
name: `${errorCode}`,
|
|
2142
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2143
|
-
$fault: "client",
|
|
2144
|
-
$metadata: deserializeMetadata(output),
|
|
2145
|
-
} as any;
|
|
2146
|
-
}
|
|
2147
|
-
const message = response.message || response.Message || errorCode;
|
|
2148
|
-
response.message = message;
|
|
2149
|
-
delete response.Message;
|
|
2150
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2151
|
-
};
|
|
2152
|
-
|
|
2153
|
-
export const deserializeAws_json1_1GetSystemTemplateRevisionsCommand = async (
|
|
2154
|
-
output: __HttpResponse,
|
|
2155
|
-
context: __SerdeContext
|
|
2156
|
-
): Promise<GetSystemTemplateRevisionsCommandOutput> => {
|
|
2157
|
-
if (output.statusCode >= 300) {
|
|
2158
|
-
return deserializeAws_json1_1GetSystemTemplateRevisionsCommandError(output, context);
|
|
2159
|
-
}
|
|
2160
|
-
const data: any = await parseBody(output.body, context);
|
|
2161
|
-
let contents: any = {};
|
|
2162
|
-
contents = deserializeAws_json1_1GetSystemTemplateRevisionsResponse(data, context);
|
|
2163
|
-
const response: GetSystemTemplateRevisionsCommandOutput = {
|
|
2164
|
-
$metadata: deserializeMetadata(output),
|
|
2165
|
-
...contents,
|
|
2166
|
-
};
|
|
2167
|
-
return Promise.resolve(response);
|
|
2168
|
-
};
|
|
2169
|
-
|
|
2170
|
-
const deserializeAws_json1_1GetSystemTemplateRevisionsCommandError = async (
|
|
2171
|
-
output: __HttpResponse,
|
|
2172
|
-
context: __SerdeContext
|
|
2173
|
-
): Promise<GetSystemTemplateRevisionsCommandOutput> => {
|
|
2174
|
-
const parsedOutput: any = {
|
|
2175
|
-
...output,
|
|
2176
|
-
body: await parseBody(output.body, context),
|
|
2177
|
-
};
|
|
2178
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2179
|
-
let errorCode = "UnknownError";
|
|
2180
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2181
|
-
switch (errorCode) {
|
|
2182
|
-
case "InternalFailureException":
|
|
2183
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
2184
|
-
response = {
|
|
2185
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
2186
|
-
name: errorCode,
|
|
2187
|
-
$metadata: deserializeMetadata(output),
|
|
2188
|
-
};
|
|
2189
|
-
break;
|
|
2190
|
-
case "InvalidRequestException":
|
|
2191
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
2192
|
-
response = {
|
|
2193
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2194
|
-
name: errorCode,
|
|
2195
|
-
$metadata: deserializeMetadata(output),
|
|
2196
|
-
};
|
|
2197
|
-
break;
|
|
2198
|
-
case "ResourceNotFoundException":
|
|
2199
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
2200
|
-
response = {
|
|
2201
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2202
|
-
name: errorCode,
|
|
2203
|
-
$metadata: deserializeMetadata(output),
|
|
2204
|
-
};
|
|
2205
|
-
break;
|
|
2206
|
-
case "ThrottlingException":
|
|
2207
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
2208
|
-
response = {
|
|
2209
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2210
|
-
name: errorCode,
|
|
2211
|
-
$metadata: deserializeMetadata(output),
|
|
2212
|
-
};
|
|
2213
|
-
break;
|
|
2214
|
-
default:
|
|
2215
|
-
const parsedBody = parsedOutput.body;
|
|
2216
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2217
|
-
response = {
|
|
2218
|
-
...parsedBody,
|
|
2219
|
-
name: `${errorCode}`,
|
|
2220
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2221
|
-
$fault: "client",
|
|
2222
|
-
$metadata: deserializeMetadata(output),
|
|
2223
|
-
} as any;
|
|
2224
|
-
}
|
|
2225
|
-
const message = response.message || response.Message || errorCode;
|
|
2226
|
-
response.message = message;
|
|
2227
|
-
delete response.Message;
|
|
2228
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2229
|
-
};
|
|
2230
|
-
|
|
2231
|
-
export const deserializeAws_json1_1GetUploadStatusCommand = async (
|
|
2232
|
-
output: __HttpResponse,
|
|
2233
|
-
context: __SerdeContext
|
|
2234
|
-
): Promise<GetUploadStatusCommandOutput> => {
|
|
2235
|
-
if (output.statusCode >= 300) {
|
|
2236
|
-
return deserializeAws_json1_1GetUploadStatusCommandError(output, context);
|
|
2237
|
-
}
|
|
2238
|
-
const data: any = await parseBody(output.body, context);
|
|
2239
|
-
let contents: any = {};
|
|
2240
|
-
contents = deserializeAws_json1_1GetUploadStatusResponse(data, context);
|
|
2241
|
-
const response: GetUploadStatusCommandOutput = {
|
|
2242
|
-
$metadata: deserializeMetadata(output),
|
|
2243
|
-
...contents,
|
|
2244
|
-
};
|
|
2245
|
-
return Promise.resolve(response);
|
|
2246
|
-
};
|
|
2247
|
-
|
|
2248
|
-
const deserializeAws_json1_1GetUploadStatusCommandError = async (
|
|
2249
|
-
output: __HttpResponse,
|
|
2250
|
-
context: __SerdeContext
|
|
2251
|
-
): Promise<GetUploadStatusCommandOutput> => {
|
|
2252
|
-
const parsedOutput: any = {
|
|
2253
|
-
...output,
|
|
2254
|
-
body: await parseBody(output.body, context),
|
|
2255
|
-
};
|
|
2256
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2257
|
-
let errorCode = "UnknownError";
|
|
2258
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2259
|
-
switch (errorCode) {
|
|
2260
|
-
case "InternalFailureException":
|
|
2261
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
2262
|
-
response = {
|
|
2263
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
2264
|
-
name: errorCode,
|
|
2265
|
-
$metadata: deserializeMetadata(output),
|
|
2266
|
-
};
|
|
2267
|
-
break;
|
|
2268
|
-
case "InvalidRequestException":
|
|
2269
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
2270
|
-
response = {
|
|
2271
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2272
|
-
name: errorCode,
|
|
2273
|
-
$metadata: deserializeMetadata(output),
|
|
2274
|
-
};
|
|
2275
|
-
break;
|
|
2276
|
-
case "ResourceNotFoundException":
|
|
2277
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
2278
|
-
response = {
|
|
2279
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2280
|
-
name: errorCode,
|
|
2281
|
-
$metadata: deserializeMetadata(output),
|
|
2282
|
-
};
|
|
2283
|
-
break;
|
|
2284
|
-
case "ThrottlingException":
|
|
2285
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
2286
|
-
response = {
|
|
2287
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2288
|
-
name: errorCode,
|
|
2289
|
-
$metadata: deserializeMetadata(output),
|
|
2290
|
-
};
|
|
2291
|
-
break;
|
|
2292
|
-
default:
|
|
2293
|
-
const parsedBody = parsedOutput.body;
|
|
2294
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2295
|
-
response = {
|
|
2296
|
-
...parsedBody,
|
|
2297
|
-
name: `${errorCode}`,
|
|
2298
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2299
|
-
$fault: "client",
|
|
2300
|
-
$metadata: deserializeMetadata(output),
|
|
2301
|
-
} as any;
|
|
2302
|
-
}
|
|
2303
|
-
const message = response.message || response.Message || errorCode;
|
|
2304
|
-
response.message = message;
|
|
2305
|
-
delete response.Message;
|
|
2306
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2307
|
-
};
|
|
2308
|
-
|
|
2309
|
-
export const deserializeAws_json1_1ListFlowExecutionMessagesCommand = async (
|
|
2310
|
-
output: __HttpResponse,
|
|
2311
|
-
context: __SerdeContext
|
|
2312
|
-
): Promise<ListFlowExecutionMessagesCommandOutput> => {
|
|
2313
|
-
if (output.statusCode >= 300) {
|
|
2314
|
-
return deserializeAws_json1_1ListFlowExecutionMessagesCommandError(output, context);
|
|
2315
|
-
}
|
|
2316
|
-
const data: any = await parseBody(output.body, context);
|
|
2317
|
-
let contents: any = {};
|
|
2318
|
-
contents = deserializeAws_json1_1ListFlowExecutionMessagesResponse(data, context);
|
|
2319
|
-
const response: ListFlowExecutionMessagesCommandOutput = {
|
|
2320
|
-
$metadata: deserializeMetadata(output),
|
|
2321
|
-
...contents,
|
|
2322
|
-
};
|
|
2323
|
-
return Promise.resolve(response);
|
|
2324
|
-
};
|
|
2325
|
-
|
|
2326
|
-
const deserializeAws_json1_1ListFlowExecutionMessagesCommandError = async (
|
|
2327
|
-
output: __HttpResponse,
|
|
2328
|
-
context: __SerdeContext
|
|
2329
|
-
): Promise<ListFlowExecutionMessagesCommandOutput> => {
|
|
2330
|
-
const parsedOutput: any = {
|
|
2331
|
-
...output,
|
|
2332
|
-
body: await parseBody(output.body, context),
|
|
2333
|
-
};
|
|
2334
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2335
|
-
let errorCode = "UnknownError";
|
|
2336
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2337
|
-
switch (errorCode) {
|
|
2338
|
-
case "InternalFailureException":
|
|
2339
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
2340
|
-
response = {
|
|
2341
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
2342
|
-
name: errorCode,
|
|
2343
|
-
$metadata: deserializeMetadata(output),
|
|
2344
|
-
};
|
|
2345
|
-
break;
|
|
2346
|
-
case "InvalidRequestException":
|
|
2347
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
2348
|
-
response = {
|
|
2349
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2350
|
-
name: errorCode,
|
|
2351
|
-
$metadata: deserializeMetadata(output),
|
|
2352
|
-
};
|
|
2353
|
-
break;
|
|
2354
|
-
case "ResourceNotFoundException":
|
|
2355
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
2356
|
-
response = {
|
|
2357
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2358
|
-
name: errorCode,
|
|
2359
|
-
$metadata: deserializeMetadata(output),
|
|
2360
|
-
};
|
|
2361
|
-
break;
|
|
2362
|
-
case "ThrottlingException":
|
|
2363
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
2364
|
-
response = {
|
|
2365
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2366
|
-
name: errorCode,
|
|
2367
|
-
$metadata: deserializeMetadata(output),
|
|
2368
|
-
};
|
|
2369
|
-
break;
|
|
2370
|
-
default:
|
|
2371
|
-
const parsedBody = parsedOutput.body;
|
|
2372
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2373
|
-
response = {
|
|
2374
|
-
...parsedBody,
|
|
2375
|
-
name: `${errorCode}`,
|
|
2376
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2377
|
-
$fault: "client",
|
|
2378
|
-
$metadata: deserializeMetadata(output),
|
|
2379
|
-
} as any;
|
|
2380
|
-
}
|
|
2381
|
-
const message = response.message || response.Message || errorCode;
|
|
2382
|
-
response.message = message;
|
|
2383
|
-
delete response.Message;
|
|
2384
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2385
|
-
};
|
|
2386
|
-
|
|
2387
|
-
export const deserializeAws_json1_1ListTagsForResourceCommand = async (
|
|
2388
|
-
output: __HttpResponse,
|
|
2389
|
-
context: __SerdeContext
|
|
2390
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
2391
|
-
if (output.statusCode >= 300) {
|
|
2392
|
-
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
2393
|
-
}
|
|
2394
|
-
const data: any = await parseBody(output.body, context);
|
|
2395
|
-
let contents: any = {};
|
|
2396
|
-
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
2397
|
-
const response: ListTagsForResourceCommandOutput = {
|
|
2398
|
-
$metadata: deserializeMetadata(output),
|
|
2399
|
-
...contents,
|
|
2400
|
-
};
|
|
2401
|
-
return Promise.resolve(response);
|
|
2402
|
-
};
|
|
2403
|
-
|
|
2404
|
-
const deserializeAws_json1_1ListTagsForResourceCommandError = async (
|
|
2405
|
-
output: __HttpResponse,
|
|
2406
|
-
context: __SerdeContext
|
|
2407
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
2408
|
-
const parsedOutput: any = {
|
|
2409
|
-
...output,
|
|
2410
|
-
body: await parseBody(output.body, context),
|
|
2411
|
-
};
|
|
2412
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2413
|
-
let errorCode = "UnknownError";
|
|
2414
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2415
|
-
switch (errorCode) {
|
|
2416
|
-
case "InternalFailureException":
|
|
2417
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
2418
|
-
response = {
|
|
2419
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
2420
|
-
name: errorCode,
|
|
2421
|
-
$metadata: deserializeMetadata(output),
|
|
2422
|
-
};
|
|
2423
|
-
break;
|
|
2424
|
-
case "InvalidRequestException":
|
|
2425
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
2426
|
-
response = {
|
|
2427
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2428
|
-
name: errorCode,
|
|
2429
|
-
$metadata: deserializeMetadata(output),
|
|
2430
|
-
};
|
|
2431
|
-
break;
|
|
2432
|
-
case "ResourceAlreadyExistsException":
|
|
2433
|
-
case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException":
|
|
2434
|
-
response = {
|
|
2435
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
2436
|
-
name: errorCode,
|
|
2437
|
-
$metadata: deserializeMetadata(output),
|
|
2438
|
-
};
|
|
2439
|
-
break;
|
|
2440
|
-
case "ThrottlingException":
|
|
2441
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
2442
|
-
response = {
|
|
2443
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2444
|
-
name: errorCode,
|
|
2445
|
-
$metadata: deserializeMetadata(output),
|
|
2446
|
-
};
|
|
2447
|
-
break;
|
|
2448
|
-
default:
|
|
2449
|
-
const parsedBody = parsedOutput.body;
|
|
2450
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2451
|
-
response = {
|
|
2452
|
-
...parsedBody,
|
|
2453
|
-
name: `${errorCode}`,
|
|
2454
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2455
|
-
$fault: "client",
|
|
2456
|
-
$metadata: deserializeMetadata(output),
|
|
2457
|
-
} as any;
|
|
2458
|
-
}
|
|
2459
|
-
const message = response.message || response.Message || errorCode;
|
|
2460
|
-
response.message = message;
|
|
2461
|
-
delete response.Message;
|
|
2462
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2463
|
-
};
|
|
2464
|
-
|
|
2465
|
-
export const deserializeAws_json1_1SearchEntitiesCommand = async (
|
|
2466
|
-
output: __HttpResponse,
|
|
2467
|
-
context: __SerdeContext
|
|
2468
|
-
): Promise<SearchEntitiesCommandOutput> => {
|
|
2469
|
-
if (output.statusCode >= 300) {
|
|
2470
|
-
return deserializeAws_json1_1SearchEntitiesCommandError(output, context);
|
|
2471
|
-
}
|
|
2472
|
-
const data: any = await parseBody(output.body, context);
|
|
2473
|
-
let contents: any = {};
|
|
2474
|
-
contents = deserializeAws_json1_1SearchEntitiesResponse(data, context);
|
|
2475
|
-
const response: SearchEntitiesCommandOutput = {
|
|
2476
|
-
$metadata: deserializeMetadata(output),
|
|
2477
|
-
...contents,
|
|
2478
|
-
};
|
|
2479
|
-
return Promise.resolve(response);
|
|
2480
|
-
};
|
|
2481
|
-
|
|
2482
|
-
const deserializeAws_json1_1SearchEntitiesCommandError = async (
|
|
2483
|
-
output: __HttpResponse,
|
|
2484
|
-
context: __SerdeContext
|
|
2485
|
-
): Promise<SearchEntitiesCommandOutput> => {
|
|
2486
|
-
const parsedOutput: any = {
|
|
2487
|
-
...output,
|
|
2488
|
-
body: await parseBody(output.body, context),
|
|
2489
|
-
};
|
|
2490
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2491
|
-
let errorCode = "UnknownError";
|
|
2492
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2493
|
-
switch (errorCode) {
|
|
2494
|
-
case "InternalFailureException":
|
|
2495
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
2496
|
-
response = {
|
|
2497
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
2498
|
-
name: errorCode,
|
|
2499
|
-
$metadata: deserializeMetadata(output),
|
|
2500
|
-
};
|
|
2501
|
-
break;
|
|
2502
|
-
case "InvalidRequestException":
|
|
2503
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
2504
|
-
response = {
|
|
2505
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2506
|
-
name: errorCode,
|
|
2507
|
-
$metadata: deserializeMetadata(output),
|
|
2508
|
-
};
|
|
2509
|
-
break;
|
|
2510
|
-
case "ThrottlingException":
|
|
2511
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
2512
|
-
response = {
|
|
2513
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2514
|
-
name: errorCode,
|
|
2515
|
-
$metadata: deserializeMetadata(output),
|
|
2516
|
-
};
|
|
2517
|
-
break;
|
|
2518
|
-
default:
|
|
2519
|
-
const parsedBody = parsedOutput.body;
|
|
2520
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2521
|
-
response = {
|
|
2522
|
-
...parsedBody,
|
|
2523
|
-
name: `${errorCode}`,
|
|
2524
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2525
|
-
$fault: "client",
|
|
2526
|
-
$metadata: deserializeMetadata(output),
|
|
2527
|
-
} as any;
|
|
2528
|
-
}
|
|
2529
|
-
const message = response.message || response.Message || errorCode;
|
|
2530
|
-
response.message = message;
|
|
2531
|
-
delete response.Message;
|
|
2532
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2533
|
-
};
|
|
2534
|
-
|
|
2535
|
-
export const deserializeAws_json1_1SearchFlowExecutionsCommand = async (
|
|
2536
|
-
output: __HttpResponse,
|
|
2537
|
-
context: __SerdeContext
|
|
2538
|
-
): Promise<SearchFlowExecutionsCommandOutput> => {
|
|
2539
|
-
if (output.statusCode >= 300) {
|
|
2540
|
-
return deserializeAws_json1_1SearchFlowExecutionsCommandError(output, context);
|
|
2541
|
-
}
|
|
2542
|
-
const data: any = await parseBody(output.body, context);
|
|
2543
|
-
let contents: any = {};
|
|
2544
|
-
contents = deserializeAws_json1_1SearchFlowExecutionsResponse(data, context);
|
|
2545
|
-
const response: SearchFlowExecutionsCommandOutput = {
|
|
2546
|
-
$metadata: deserializeMetadata(output),
|
|
2547
|
-
...contents,
|
|
2548
|
-
};
|
|
2549
|
-
return Promise.resolve(response);
|
|
2550
|
-
};
|
|
2551
|
-
|
|
2552
|
-
const deserializeAws_json1_1SearchFlowExecutionsCommandError = async (
|
|
2553
|
-
output: __HttpResponse,
|
|
2554
|
-
context: __SerdeContext
|
|
2555
|
-
): Promise<SearchFlowExecutionsCommandOutput> => {
|
|
2556
|
-
const parsedOutput: any = {
|
|
2557
|
-
...output,
|
|
2558
|
-
body: await parseBody(output.body, context),
|
|
2559
|
-
};
|
|
2560
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2561
|
-
let errorCode = "UnknownError";
|
|
2562
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2563
|
-
switch (errorCode) {
|
|
2564
|
-
case "InternalFailureException":
|
|
2565
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
2566
|
-
response = {
|
|
2567
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
2568
|
-
name: errorCode,
|
|
2569
|
-
$metadata: deserializeMetadata(output),
|
|
2570
|
-
};
|
|
2571
|
-
break;
|
|
2572
|
-
case "InvalidRequestException":
|
|
2573
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
2574
|
-
response = {
|
|
2575
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2576
|
-
name: errorCode,
|
|
2577
|
-
$metadata: deserializeMetadata(output),
|
|
2578
|
-
};
|
|
2579
|
-
break;
|
|
2580
|
-
case "ResourceNotFoundException":
|
|
2581
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
2582
|
-
response = {
|
|
2583
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2584
|
-
name: errorCode,
|
|
2585
|
-
$metadata: deserializeMetadata(output),
|
|
2586
|
-
};
|
|
2587
|
-
break;
|
|
2588
|
-
case "ThrottlingException":
|
|
2589
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
2590
|
-
response = {
|
|
2591
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2592
|
-
name: errorCode,
|
|
2593
|
-
$metadata: deserializeMetadata(output),
|
|
2594
|
-
};
|
|
2595
|
-
break;
|
|
2596
|
-
default:
|
|
2597
|
-
const parsedBody = parsedOutput.body;
|
|
2598
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2599
|
-
response = {
|
|
2600
|
-
...parsedBody,
|
|
2601
|
-
name: `${errorCode}`,
|
|
2602
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2603
|
-
$fault: "client",
|
|
2604
|
-
$metadata: deserializeMetadata(output),
|
|
2605
|
-
} as any;
|
|
2606
|
-
}
|
|
2607
|
-
const message = response.message || response.Message || errorCode;
|
|
2608
|
-
response.message = message;
|
|
2609
|
-
delete response.Message;
|
|
2610
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2611
|
-
};
|
|
2612
|
-
|
|
2613
|
-
export const deserializeAws_json1_1SearchFlowTemplatesCommand = async (
|
|
2614
|
-
output: __HttpResponse,
|
|
2615
|
-
context: __SerdeContext
|
|
2616
|
-
): Promise<SearchFlowTemplatesCommandOutput> => {
|
|
2617
|
-
if (output.statusCode >= 300) {
|
|
2618
|
-
return deserializeAws_json1_1SearchFlowTemplatesCommandError(output, context);
|
|
2619
|
-
}
|
|
2620
|
-
const data: any = await parseBody(output.body, context);
|
|
2621
|
-
let contents: any = {};
|
|
2622
|
-
contents = deserializeAws_json1_1SearchFlowTemplatesResponse(data, context);
|
|
2623
|
-
const response: SearchFlowTemplatesCommandOutput = {
|
|
2624
|
-
$metadata: deserializeMetadata(output),
|
|
2625
|
-
...contents,
|
|
2626
|
-
};
|
|
2627
|
-
return Promise.resolve(response);
|
|
2628
|
-
};
|
|
2629
|
-
|
|
2630
|
-
const deserializeAws_json1_1SearchFlowTemplatesCommandError = async (
|
|
2631
|
-
output: __HttpResponse,
|
|
2632
|
-
context: __SerdeContext
|
|
2633
|
-
): Promise<SearchFlowTemplatesCommandOutput> => {
|
|
2634
|
-
const parsedOutput: any = {
|
|
2635
|
-
...output,
|
|
2636
|
-
body: await parseBody(output.body, context),
|
|
2637
|
-
};
|
|
2638
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2639
|
-
let errorCode = "UnknownError";
|
|
2640
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2641
|
-
switch (errorCode) {
|
|
2642
|
-
case "InternalFailureException":
|
|
2643
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
2644
|
-
response = {
|
|
2645
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
2646
|
-
name: errorCode,
|
|
2647
|
-
$metadata: deserializeMetadata(output),
|
|
2648
|
-
};
|
|
2649
|
-
break;
|
|
2650
|
-
case "InvalidRequestException":
|
|
2651
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
2652
|
-
response = {
|
|
2653
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2654
|
-
name: errorCode,
|
|
2655
|
-
$metadata: deserializeMetadata(output),
|
|
2656
|
-
};
|
|
2657
|
-
break;
|
|
2658
|
-
case "ThrottlingException":
|
|
2659
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
2660
|
-
response = {
|
|
2661
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2662
|
-
name: errorCode,
|
|
2663
|
-
$metadata: deserializeMetadata(output),
|
|
2664
|
-
};
|
|
2665
|
-
break;
|
|
2666
|
-
default:
|
|
2667
|
-
const parsedBody = parsedOutput.body;
|
|
2668
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2669
|
-
response = {
|
|
2670
|
-
...parsedBody,
|
|
2671
|
-
name: `${errorCode}`,
|
|
2672
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2673
|
-
$fault: "client",
|
|
2674
|
-
$metadata: deserializeMetadata(output),
|
|
2675
|
-
} as any;
|
|
2676
|
-
}
|
|
2677
|
-
const message = response.message || response.Message || errorCode;
|
|
2678
|
-
response.message = message;
|
|
2679
|
-
delete response.Message;
|
|
2680
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2681
|
-
};
|
|
2682
|
-
|
|
2683
|
-
export const deserializeAws_json1_1SearchSystemInstancesCommand = async (
|
|
2684
|
-
output: __HttpResponse,
|
|
2685
|
-
context: __SerdeContext
|
|
2686
|
-
): Promise<SearchSystemInstancesCommandOutput> => {
|
|
2687
|
-
if (output.statusCode >= 300) {
|
|
2688
|
-
return deserializeAws_json1_1SearchSystemInstancesCommandError(output, context);
|
|
2689
|
-
}
|
|
2690
|
-
const data: any = await parseBody(output.body, context);
|
|
2691
|
-
let contents: any = {};
|
|
2692
|
-
contents = deserializeAws_json1_1SearchSystemInstancesResponse(data, context);
|
|
2693
|
-
const response: SearchSystemInstancesCommandOutput = {
|
|
2694
|
-
$metadata: deserializeMetadata(output),
|
|
2695
|
-
...contents,
|
|
2696
|
-
};
|
|
2697
|
-
return Promise.resolve(response);
|
|
2698
|
-
};
|
|
2699
|
-
|
|
2700
|
-
const deserializeAws_json1_1SearchSystemInstancesCommandError = async (
|
|
2701
|
-
output: __HttpResponse,
|
|
2702
|
-
context: __SerdeContext
|
|
2703
|
-
): Promise<SearchSystemInstancesCommandOutput> => {
|
|
2704
|
-
const parsedOutput: any = {
|
|
2705
|
-
...output,
|
|
2706
|
-
body: await parseBody(output.body, context),
|
|
2707
|
-
};
|
|
2708
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2709
|
-
let errorCode = "UnknownError";
|
|
2710
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2711
|
-
switch (errorCode) {
|
|
2712
|
-
case "InternalFailureException":
|
|
2713
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
2714
|
-
response = {
|
|
2715
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
2716
|
-
name: errorCode,
|
|
2717
|
-
$metadata: deserializeMetadata(output),
|
|
2718
|
-
};
|
|
2719
|
-
break;
|
|
2720
|
-
case "InvalidRequestException":
|
|
2721
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
2722
|
-
response = {
|
|
2723
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2724
|
-
name: errorCode,
|
|
2725
|
-
$metadata: deserializeMetadata(output),
|
|
2726
|
-
};
|
|
2727
|
-
break;
|
|
2728
|
-
case "ThrottlingException":
|
|
2729
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
2730
|
-
response = {
|
|
2731
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2732
|
-
name: errorCode,
|
|
2733
|
-
$metadata: deserializeMetadata(output),
|
|
2734
|
-
};
|
|
2735
|
-
break;
|
|
2736
|
-
default:
|
|
2737
|
-
const parsedBody = parsedOutput.body;
|
|
2738
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2739
|
-
response = {
|
|
2740
|
-
...parsedBody,
|
|
2741
|
-
name: `${errorCode}`,
|
|
2742
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2743
|
-
$fault: "client",
|
|
2744
|
-
$metadata: deserializeMetadata(output),
|
|
2745
|
-
} as any;
|
|
2746
|
-
}
|
|
2747
|
-
const message = response.message || response.Message || errorCode;
|
|
2748
|
-
response.message = message;
|
|
2749
|
-
delete response.Message;
|
|
2750
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2751
|
-
};
|
|
2752
|
-
|
|
2753
|
-
export const deserializeAws_json1_1SearchSystemTemplatesCommand = async (
|
|
2754
|
-
output: __HttpResponse,
|
|
2755
|
-
context: __SerdeContext
|
|
2756
|
-
): Promise<SearchSystemTemplatesCommandOutput> => {
|
|
2757
|
-
if (output.statusCode >= 300) {
|
|
2758
|
-
return deserializeAws_json1_1SearchSystemTemplatesCommandError(output, context);
|
|
2759
|
-
}
|
|
2760
|
-
const data: any = await parseBody(output.body, context);
|
|
2761
|
-
let contents: any = {};
|
|
2762
|
-
contents = deserializeAws_json1_1SearchSystemTemplatesResponse(data, context);
|
|
2763
|
-
const response: SearchSystemTemplatesCommandOutput = {
|
|
2764
|
-
$metadata: deserializeMetadata(output),
|
|
2765
|
-
...contents,
|
|
2766
|
-
};
|
|
2767
|
-
return Promise.resolve(response);
|
|
2768
|
-
};
|
|
2769
|
-
|
|
2770
|
-
const deserializeAws_json1_1SearchSystemTemplatesCommandError = async (
|
|
2771
|
-
output: __HttpResponse,
|
|
2772
|
-
context: __SerdeContext
|
|
2773
|
-
): Promise<SearchSystemTemplatesCommandOutput> => {
|
|
2774
|
-
const parsedOutput: any = {
|
|
2775
|
-
...output,
|
|
2776
|
-
body: await parseBody(output.body, context),
|
|
2777
|
-
};
|
|
2778
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2779
|
-
let errorCode = "UnknownError";
|
|
2780
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2781
|
-
switch (errorCode) {
|
|
2782
|
-
case "InternalFailureException":
|
|
2783
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
2784
|
-
response = {
|
|
2785
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
2786
|
-
name: errorCode,
|
|
2787
|
-
$metadata: deserializeMetadata(output),
|
|
2788
|
-
};
|
|
2789
|
-
break;
|
|
2790
|
-
case "InvalidRequestException":
|
|
2791
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
2792
|
-
response = {
|
|
2793
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2794
|
-
name: errorCode,
|
|
2795
|
-
$metadata: deserializeMetadata(output),
|
|
2796
|
-
};
|
|
2797
|
-
break;
|
|
2798
|
-
case "ThrottlingException":
|
|
2799
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
2800
|
-
response = {
|
|
2801
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2802
|
-
name: errorCode,
|
|
2803
|
-
$metadata: deserializeMetadata(output),
|
|
2804
|
-
};
|
|
2805
|
-
break;
|
|
2806
|
-
default:
|
|
2807
|
-
const parsedBody = parsedOutput.body;
|
|
2808
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2809
|
-
response = {
|
|
2810
|
-
...parsedBody,
|
|
2811
|
-
name: `${errorCode}`,
|
|
2812
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2813
|
-
$fault: "client",
|
|
2814
|
-
$metadata: deserializeMetadata(output),
|
|
2815
|
-
} as any;
|
|
2816
|
-
}
|
|
2817
|
-
const message = response.message || response.Message || errorCode;
|
|
2818
|
-
response.message = message;
|
|
2819
|
-
delete response.Message;
|
|
2820
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2821
|
-
};
|
|
2822
|
-
|
|
2823
|
-
export const deserializeAws_json1_1SearchThingsCommand = async (
|
|
2824
|
-
output: __HttpResponse,
|
|
2825
|
-
context: __SerdeContext
|
|
2826
|
-
): Promise<SearchThingsCommandOutput> => {
|
|
2827
|
-
if (output.statusCode >= 300) {
|
|
2828
|
-
return deserializeAws_json1_1SearchThingsCommandError(output, context);
|
|
2829
|
-
}
|
|
2830
|
-
const data: any = await parseBody(output.body, context);
|
|
2831
|
-
let contents: any = {};
|
|
2832
|
-
contents = deserializeAws_json1_1SearchThingsResponse(data, context);
|
|
2833
|
-
const response: SearchThingsCommandOutput = {
|
|
2834
|
-
$metadata: deserializeMetadata(output),
|
|
2835
|
-
...contents,
|
|
2836
|
-
};
|
|
2837
|
-
return Promise.resolve(response);
|
|
2838
|
-
};
|
|
2839
|
-
|
|
2840
|
-
const deserializeAws_json1_1SearchThingsCommandError = async (
|
|
2841
|
-
output: __HttpResponse,
|
|
2842
|
-
context: __SerdeContext
|
|
2843
|
-
): Promise<SearchThingsCommandOutput> => {
|
|
2844
|
-
const parsedOutput: any = {
|
|
2845
|
-
...output,
|
|
2846
|
-
body: await parseBody(output.body, context),
|
|
2847
|
-
};
|
|
2848
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2849
|
-
let errorCode = "UnknownError";
|
|
2850
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2851
|
-
switch (errorCode) {
|
|
2852
|
-
case "InternalFailureException":
|
|
2853
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
2854
|
-
response = {
|
|
2855
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
2856
|
-
name: errorCode,
|
|
2857
|
-
$metadata: deserializeMetadata(output),
|
|
2858
|
-
};
|
|
2859
|
-
break;
|
|
2860
|
-
case "InvalidRequestException":
|
|
2861
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
2862
|
-
response = {
|
|
2863
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2864
|
-
name: errorCode,
|
|
2865
|
-
$metadata: deserializeMetadata(output),
|
|
2866
|
-
};
|
|
2867
|
-
break;
|
|
2868
|
-
case "ResourceNotFoundException":
|
|
2869
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
2870
|
-
response = {
|
|
2871
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2872
|
-
name: errorCode,
|
|
2873
|
-
$metadata: deserializeMetadata(output),
|
|
2874
|
-
};
|
|
2875
|
-
break;
|
|
2876
|
-
case "ThrottlingException":
|
|
2877
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
2878
|
-
response = {
|
|
2879
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2880
|
-
name: errorCode,
|
|
2881
|
-
$metadata: deserializeMetadata(output),
|
|
2882
|
-
};
|
|
2883
|
-
break;
|
|
2884
|
-
default:
|
|
2885
|
-
const parsedBody = parsedOutput.body;
|
|
2886
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2887
|
-
response = {
|
|
2888
|
-
...parsedBody,
|
|
2889
|
-
name: `${errorCode}`,
|
|
2890
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2891
|
-
$fault: "client",
|
|
2892
|
-
$metadata: deserializeMetadata(output),
|
|
2893
|
-
} as any;
|
|
2894
|
-
}
|
|
2895
|
-
const message = response.message || response.Message || errorCode;
|
|
2896
|
-
response.message = message;
|
|
2897
|
-
delete response.Message;
|
|
2898
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2899
|
-
};
|
|
2900
|
-
|
|
2901
|
-
export const deserializeAws_json1_1TagResourceCommand = async (
|
|
2902
|
-
output: __HttpResponse,
|
|
2903
|
-
context: __SerdeContext
|
|
2904
|
-
): Promise<TagResourceCommandOutput> => {
|
|
2905
|
-
if (output.statusCode >= 300) {
|
|
2906
|
-
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
2907
|
-
}
|
|
2908
|
-
const data: any = await parseBody(output.body, context);
|
|
2909
|
-
let contents: any = {};
|
|
2910
|
-
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
2911
|
-
const response: TagResourceCommandOutput = {
|
|
2912
|
-
$metadata: deserializeMetadata(output),
|
|
2913
|
-
...contents,
|
|
2914
|
-
};
|
|
2915
|
-
return Promise.resolve(response);
|
|
2916
|
-
};
|
|
2917
|
-
|
|
2918
|
-
const deserializeAws_json1_1TagResourceCommandError = async (
|
|
2919
|
-
output: __HttpResponse,
|
|
2920
|
-
context: __SerdeContext
|
|
2921
|
-
): Promise<TagResourceCommandOutput> => {
|
|
2922
|
-
const parsedOutput: any = {
|
|
2923
|
-
...output,
|
|
2924
|
-
body: await parseBody(output.body, context),
|
|
2925
|
-
};
|
|
2926
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2927
|
-
let errorCode = "UnknownError";
|
|
2928
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2929
|
-
switch (errorCode) {
|
|
2930
|
-
case "InternalFailureException":
|
|
2931
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
2932
|
-
response = {
|
|
2933
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
2934
|
-
name: errorCode,
|
|
2935
|
-
$metadata: deserializeMetadata(output),
|
|
2936
|
-
};
|
|
2937
|
-
break;
|
|
2938
|
-
case "InvalidRequestException":
|
|
2939
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
2940
|
-
response = {
|
|
2941
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2942
|
-
name: errorCode,
|
|
2943
|
-
$metadata: deserializeMetadata(output),
|
|
2944
|
-
};
|
|
2945
|
-
break;
|
|
2946
|
-
case "ResourceAlreadyExistsException":
|
|
2947
|
-
case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException":
|
|
2948
|
-
response = {
|
|
2949
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
2950
|
-
name: errorCode,
|
|
2951
|
-
$metadata: deserializeMetadata(output),
|
|
2952
|
-
};
|
|
2953
|
-
break;
|
|
2954
|
-
case "ThrottlingException":
|
|
2955
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
2956
|
-
response = {
|
|
2957
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2958
|
-
name: errorCode,
|
|
2959
|
-
$metadata: deserializeMetadata(output),
|
|
2960
|
-
};
|
|
2961
|
-
break;
|
|
2962
|
-
default:
|
|
2963
|
-
const parsedBody = parsedOutput.body;
|
|
2964
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2965
|
-
response = {
|
|
2966
|
-
...parsedBody,
|
|
2967
|
-
name: `${errorCode}`,
|
|
2968
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2969
|
-
$fault: "client",
|
|
2970
|
-
$metadata: deserializeMetadata(output),
|
|
2971
|
-
} as any;
|
|
2972
|
-
}
|
|
2973
|
-
const message = response.message || response.Message || errorCode;
|
|
2974
|
-
response.message = message;
|
|
2975
|
-
delete response.Message;
|
|
2976
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2977
|
-
};
|
|
2978
|
-
|
|
2979
|
-
export const deserializeAws_json1_1UndeploySystemInstanceCommand = async (
|
|
2980
|
-
output: __HttpResponse,
|
|
2981
|
-
context: __SerdeContext
|
|
2982
|
-
): Promise<UndeploySystemInstanceCommandOutput> => {
|
|
2983
|
-
if (output.statusCode >= 300) {
|
|
2984
|
-
return deserializeAws_json1_1UndeploySystemInstanceCommandError(output, context);
|
|
2985
|
-
}
|
|
2986
|
-
const data: any = await parseBody(output.body, context);
|
|
2987
|
-
let contents: any = {};
|
|
2988
|
-
contents = deserializeAws_json1_1UndeploySystemInstanceResponse(data, context);
|
|
2989
|
-
const response: UndeploySystemInstanceCommandOutput = {
|
|
2990
|
-
$metadata: deserializeMetadata(output),
|
|
2991
|
-
...contents,
|
|
2992
|
-
};
|
|
2993
|
-
return Promise.resolve(response);
|
|
2994
|
-
};
|
|
2995
|
-
|
|
2996
|
-
const deserializeAws_json1_1UndeploySystemInstanceCommandError = async (
|
|
2997
|
-
output: __HttpResponse,
|
|
2998
|
-
context: __SerdeContext
|
|
2999
|
-
): Promise<UndeploySystemInstanceCommandOutput> => {
|
|
3000
|
-
const parsedOutput: any = {
|
|
3001
|
-
...output,
|
|
3002
|
-
body: await parseBody(output.body, context),
|
|
3003
|
-
};
|
|
3004
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
3005
|
-
let errorCode = "UnknownError";
|
|
3006
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3007
|
-
switch (errorCode) {
|
|
3008
|
-
case "InternalFailureException":
|
|
3009
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
3010
|
-
response = {
|
|
3011
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
3012
|
-
name: errorCode,
|
|
3013
|
-
$metadata: deserializeMetadata(output),
|
|
3014
|
-
};
|
|
3015
|
-
break;
|
|
3016
|
-
case "InvalidRequestException":
|
|
3017
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
3018
|
-
response = {
|
|
3019
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
3020
|
-
name: errorCode,
|
|
3021
|
-
$metadata: deserializeMetadata(output),
|
|
3022
|
-
};
|
|
3023
|
-
break;
|
|
3024
|
-
case "ResourceInUseException":
|
|
3025
|
-
case "com.amazonaws.iotthingsgraph#ResourceInUseException":
|
|
3026
|
-
response = {
|
|
3027
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
3028
|
-
name: errorCode,
|
|
3029
|
-
$metadata: deserializeMetadata(output),
|
|
3030
|
-
};
|
|
3031
|
-
break;
|
|
3032
|
-
case "ResourceNotFoundException":
|
|
3033
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
3034
|
-
response = {
|
|
3035
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3036
|
-
name: errorCode,
|
|
3037
|
-
$metadata: deserializeMetadata(output),
|
|
3038
|
-
};
|
|
3039
|
-
break;
|
|
3040
|
-
case "ThrottlingException":
|
|
3041
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
3042
|
-
response = {
|
|
3043
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3044
|
-
name: errorCode,
|
|
3045
|
-
$metadata: deserializeMetadata(output),
|
|
3046
|
-
};
|
|
3047
|
-
break;
|
|
3048
|
-
default:
|
|
3049
|
-
const parsedBody = parsedOutput.body;
|
|
3050
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3051
|
-
response = {
|
|
3052
|
-
...parsedBody,
|
|
3053
|
-
name: `${errorCode}`,
|
|
3054
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3055
|
-
$fault: "client",
|
|
3056
|
-
$metadata: deserializeMetadata(output),
|
|
3057
|
-
} as any;
|
|
3058
|
-
}
|
|
3059
|
-
const message = response.message || response.Message || errorCode;
|
|
3060
|
-
response.message = message;
|
|
3061
|
-
delete response.Message;
|
|
3062
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3063
|
-
};
|
|
3064
|
-
|
|
3065
|
-
export const deserializeAws_json1_1UntagResourceCommand = async (
|
|
3066
|
-
output: __HttpResponse,
|
|
3067
|
-
context: __SerdeContext
|
|
3068
|
-
): Promise<UntagResourceCommandOutput> => {
|
|
3069
|
-
if (output.statusCode >= 300) {
|
|
3070
|
-
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
3071
|
-
}
|
|
3072
|
-
const data: any = await parseBody(output.body, context);
|
|
3073
|
-
let contents: any = {};
|
|
3074
|
-
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
3075
|
-
const response: UntagResourceCommandOutput = {
|
|
3076
|
-
$metadata: deserializeMetadata(output),
|
|
3077
|
-
...contents,
|
|
3078
|
-
};
|
|
3079
|
-
return Promise.resolve(response);
|
|
3080
|
-
};
|
|
3081
|
-
|
|
3082
|
-
const deserializeAws_json1_1UntagResourceCommandError = async (
|
|
3083
|
-
output: __HttpResponse,
|
|
3084
|
-
context: __SerdeContext
|
|
3085
|
-
): Promise<UntagResourceCommandOutput> => {
|
|
3086
|
-
const parsedOutput: any = {
|
|
3087
|
-
...output,
|
|
3088
|
-
body: await parseBody(output.body, context),
|
|
3089
|
-
};
|
|
3090
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
3091
|
-
let errorCode = "UnknownError";
|
|
3092
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3093
|
-
switch (errorCode) {
|
|
3094
|
-
case "InternalFailureException":
|
|
3095
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
3096
|
-
response = {
|
|
3097
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
3098
|
-
name: errorCode,
|
|
3099
|
-
$metadata: deserializeMetadata(output),
|
|
3100
|
-
};
|
|
3101
|
-
break;
|
|
3102
|
-
case "InvalidRequestException":
|
|
3103
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
3104
|
-
response = {
|
|
3105
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
3106
|
-
name: errorCode,
|
|
3107
|
-
$metadata: deserializeMetadata(output),
|
|
3108
|
-
};
|
|
3109
|
-
break;
|
|
3110
|
-
case "ResourceAlreadyExistsException":
|
|
3111
|
-
case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException":
|
|
3112
|
-
response = {
|
|
3113
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
3114
|
-
name: errorCode,
|
|
3115
|
-
$metadata: deserializeMetadata(output),
|
|
3116
|
-
};
|
|
3117
|
-
break;
|
|
3118
|
-
case "ThrottlingException":
|
|
3119
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
3120
|
-
response = {
|
|
3121
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3122
|
-
name: errorCode,
|
|
3123
|
-
$metadata: deserializeMetadata(output),
|
|
3124
|
-
};
|
|
3125
|
-
break;
|
|
3126
|
-
default:
|
|
3127
|
-
const parsedBody = parsedOutput.body;
|
|
3128
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3129
|
-
response = {
|
|
3130
|
-
...parsedBody,
|
|
3131
|
-
name: `${errorCode}`,
|
|
3132
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3133
|
-
$fault: "client",
|
|
3134
|
-
$metadata: deserializeMetadata(output),
|
|
3135
|
-
} as any;
|
|
3136
|
-
}
|
|
3137
|
-
const message = response.message || response.Message || errorCode;
|
|
3138
|
-
response.message = message;
|
|
3139
|
-
delete response.Message;
|
|
3140
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3141
|
-
};
|
|
3142
|
-
|
|
3143
|
-
export const deserializeAws_json1_1UpdateFlowTemplateCommand = async (
|
|
3144
|
-
output: __HttpResponse,
|
|
3145
|
-
context: __SerdeContext
|
|
3146
|
-
): Promise<UpdateFlowTemplateCommandOutput> => {
|
|
3147
|
-
if (output.statusCode >= 300) {
|
|
3148
|
-
return deserializeAws_json1_1UpdateFlowTemplateCommandError(output, context);
|
|
3149
|
-
}
|
|
3150
|
-
const data: any = await parseBody(output.body, context);
|
|
3151
|
-
let contents: any = {};
|
|
3152
|
-
contents = deserializeAws_json1_1UpdateFlowTemplateResponse(data, context);
|
|
3153
|
-
const response: UpdateFlowTemplateCommandOutput = {
|
|
3154
|
-
$metadata: deserializeMetadata(output),
|
|
3155
|
-
...contents,
|
|
3156
|
-
};
|
|
3157
|
-
return Promise.resolve(response);
|
|
3158
|
-
};
|
|
3159
|
-
|
|
3160
|
-
const deserializeAws_json1_1UpdateFlowTemplateCommandError = async (
|
|
3161
|
-
output: __HttpResponse,
|
|
3162
|
-
context: __SerdeContext
|
|
3163
|
-
): Promise<UpdateFlowTemplateCommandOutput> => {
|
|
3164
|
-
const parsedOutput: any = {
|
|
3165
|
-
...output,
|
|
3166
|
-
body: await parseBody(output.body, context),
|
|
3167
|
-
};
|
|
3168
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
3169
|
-
let errorCode = "UnknownError";
|
|
3170
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3171
|
-
switch (errorCode) {
|
|
3172
|
-
case "InternalFailureException":
|
|
3173
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
3174
|
-
response = {
|
|
3175
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
3176
|
-
name: errorCode,
|
|
3177
|
-
$metadata: deserializeMetadata(output),
|
|
3178
|
-
};
|
|
3179
|
-
break;
|
|
3180
|
-
case "InvalidRequestException":
|
|
3181
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
3182
|
-
response = {
|
|
3183
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
3184
|
-
name: errorCode,
|
|
3185
|
-
$metadata: deserializeMetadata(output),
|
|
3186
|
-
};
|
|
3187
|
-
break;
|
|
3188
|
-
case "ResourceNotFoundException":
|
|
3189
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
3190
|
-
response = {
|
|
3191
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3192
|
-
name: errorCode,
|
|
3193
|
-
$metadata: deserializeMetadata(output),
|
|
3194
|
-
};
|
|
3195
|
-
break;
|
|
3196
|
-
case "ThrottlingException":
|
|
3197
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
3198
|
-
response = {
|
|
3199
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3200
|
-
name: errorCode,
|
|
3201
|
-
$metadata: deserializeMetadata(output),
|
|
3202
|
-
};
|
|
3203
|
-
break;
|
|
3204
|
-
default:
|
|
3205
|
-
const parsedBody = parsedOutput.body;
|
|
3206
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3207
|
-
response = {
|
|
3208
|
-
...parsedBody,
|
|
3209
|
-
name: `${errorCode}`,
|
|
3210
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3211
|
-
$fault: "client",
|
|
3212
|
-
$metadata: deserializeMetadata(output),
|
|
3213
|
-
} as any;
|
|
3214
|
-
}
|
|
3215
|
-
const message = response.message || response.Message || errorCode;
|
|
3216
|
-
response.message = message;
|
|
3217
|
-
delete response.Message;
|
|
3218
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3219
|
-
};
|
|
3220
|
-
|
|
3221
|
-
export const deserializeAws_json1_1UpdateSystemTemplateCommand = async (
|
|
3222
|
-
output: __HttpResponse,
|
|
3223
|
-
context: __SerdeContext
|
|
3224
|
-
): Promise<UpdateSystemTemplateCommandOutput> => {
|
|
3225
|
-
if (output.statusCode >= 300) {
|
|
3226
|
-
return deserializeAws_json1_1UpdateSystemTemplateCommandError(output, context);
|
|
3227
|
-
}
|
|
3228
|
-
const data: any = await parseBody(output.body, context);
|
|
3229
|
-
let contents: any = {};
|
|
3230
|
-
contents = deserializeAws_json1_1UpdateSystemTemplateResponse(data, context);
|
|
3231
|
-
const response: UpdateSystemTemplateCommandOutput = {
|
|
3232
|
-
$metadata: deserializeMetadata(output),
|
|
3233
|
-
...contents,
|
|
3234
|
-
};
|
|
3235
|
-
return Promise.resolve(response);
|
|
3236
|
-
};
|
|
3237
|
-
|
|
3238
|
-
const deserializeAws_json1_1UpdateSystemTemplateCommandError = async (
|
|
3239
|
-
output: __HttpResponse,
|
|
3240
|
-
context: __SerdeContext
|
|
3241
|
-
): Promise<UpdateSystemTemplateCommandOutput> => {
|
|
3242
|
-
const parsedOutput: any = {
|
|
3243
|
-
...output,
|
|
3244
|
-
body: await parseBody(output.body, context),
|
|
3245
|
-
};
|
|
3246
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
3247
|
-
let errorCode = "UnknownError";
|
|
3248
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3249
|
-
switch (errorCode) {
|
|
3250
|
-
case "InternalFailureException":
|
|
3251
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
3252
|
-
response = {
|
|
3253
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
3254
|
-
name: errorCode,
|
|
3255
|
-
$metadata: deserializeMetadata(output),
|
|
3256
|
-
};
|
|
3257
|
-
break;
|
|
3258
|
-
case "InvalidRequestException":
|
|
3259
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
3260
|
-
response = {
|
|
3261
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
3262
|
-
name: errorCode,
|
|
3263
|
-
$metadata: deserializeMetadata(output),
|
|
3264
|
-
};
|
|
3265
|
-
break;
|
|
3266
|
-
case "ResourceNotFoundException":
|
|
3267
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
3268
|
-
response = {
|
|
3269
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3270
|
-
name: errorCode,
|
|
3271
|
-
$metadata: deserializeMetadata(output),
|
|
3272
|
-
};
|
|
3273
|
-
break;
|
|
3274
|
-
case "ThrottlingException":
|
|
3275
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
3276
|
-
response = {
|
|
3277
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3278
|
-
name: errorCode,
|
|
3279
|
-
$metadata: deserializeMetadata(output),
|
|
3280
|
-
};
|
|
3281
|
-
break;
|
|
3282
|
-
default:
|
|
3283
|
-
const parsedBody = parsedOutput.body;
|
|
3284
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3285
|
-
response = {
|
|
3286
|
-
...parsedBody,
|
|
3287
|
-
name: `${errorCode}`,
|
|
3288
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3289
|
-
$fault: "client",
|
|
3290
|
-
$metadata: deserializeMetadata(output),
|
|
3291
|
-
} as any;
|
|
3292
|
-
}
|
|
3293
|
-
const message = response.message || response.Message || errorCode;
|
|
3294
|
-
response.message = message;
|
|
3295
|
-
delete response.Message;
|
|
3296
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3297
|
-
};
|
|
3298
|
-
|
|
3299
|
-
export const deserializeAws_json1_1UploadEntityDefinitionsCommand = async (
|
|
3300
|
-
output: __HttpResponse,
|
|
3301
|
-
context: __SerdeContext
|
|
3302
|
-
): Promise<UploadEntityDefinitionsCommandOutput> => {
|
|
3303
|
-
if (output.statusCode >= 300) {
|
|
3304
|
-
return deserializeAws_json1_1UploadEntityDefinitionsCommandError(output, context);
|
|
3305
|
-
}
|
|
3306
|
-
const data: any = await parseBody(output.body, context);
|
|
3307
|
-
let contents: any = {};
|
|
3308
|
-
contents = deserializeAws_json1_1UploadEntityDefinitionsResponse(data, context);
|
|
3309
|
-
const response: UploadEntityDefinitionsCommandOutput = {
|
|
3310
|
-
$metadata: deserializeMetadata(output),
|
|
3311
|
-
...contents,
|
|
3312
|
-
};
|
|
3313
|
-
return Promise.resolve(response);
|
|
3314
|
-
};
|
|
3315
|
-
|
|
3316
|
-
const deserializeAws_json1_1UploadEntityDefinitionsCommandError = async (
|
|
3317
|
-
output: __HttpResponse,
|
|
3318
|
-
context: __SerdeContext
|
|
3319
|
-
): Promise<UploadEntityDefinitionsCommandOutput> => {
|
|
3320
|
-
const parsedOutput: any = {
|
|
3321
|
-
...output,
|
|
3322
|
-
body: await parseBody(output.body, context),
|
|
3323
|
-
};
|
|
3324
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
3325
|
-
let errorCode = "UnknownError";
|
|
3326
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3327
|
-
switch (errorCode) {
|
|
3328
|
-
case "InternalFailureException":
|
|
3329
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
3330
|
-
response = {
|
|
3331
|
-
...(await deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)),
|
|
3332
|
-
name: errorCode,
|
|
3333
|
-
$metadata: deserializeMetadata(output),
|
|
3334
|
-
};
|
|
3335
|
-
break;
|
|
3336
|
-
case "InvalidRequestException":
|
|
3337
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
3338
|
-
response = {
|
|
3339
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
3340
|
-
name: errorCode,
|
|
3341
|
-
$metadata: deserializeMetadata(output),
|
|
3342
|
-
};
|
|
3343
|
-
break;
|
|
3344
|
-
case "ThrottlingException":
|
|
3345
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
3346
|
-
response = {
|
|
3347
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3348
|
-
name: errorCode,
|
|
3349
|
-
$metadata: deserializeMetadata(output),
|
|
3350
|
-
};
|
|
3351
|
-
break;
|
|
3352
|
-
default:
|
|
3353
|
-
const parsedBody = parsedOutput.body;
|
|
3354
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3355
|
-
response = {
|
|
3356
|
-
...parsedBody,
|
|
3357
|
-
name: `${errorCode}`,
|
|
3358
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3359
|
-
$fault: "client",
|
|
3360
|
-
$metadata: deserializeMetadata(output),
|
|
3361
|
-
} as any;
|
|
3362
|
-
}
|
|
3363
|
-
const message = response.message || response.Message || errorCode;
|
|
3364
|
-
response.message = message;
|
|
3365
|
-
delete response.Message;
|
|
3366
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3367
|
-
};
|
|
3368
|
-
|
|
3369
|
-
const deserializeAws_json1_1InternalFailureExceptionResponse = async (
|
|
3370
|
-
parsedOutput: any,
|
|
3371
|
-
context: __SerdeContext
|
|
3372
|
-
): Promise<InternalFailureException> => {
|
|
3373
|
-
const body = parsedOutput.body;
|
|
3374
|
-
const deserialized: any = deserializeAws_json1_1InternalFailureException(body, context);
|
|
3375
|
-
const contents: InternalFailureException = {
|
|
3376
|
-
name: "InternalFailureException",
|
|
3377
|
-
$fault: "server",
|
|
3378
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3379
|
-
...deserialized,
|
|
3380
|
-
};
|
|
3381
|
-
return contents;
|
|
3382
|
-
};
|
|
3383
|
-
|
|
3384
|
-
const deserializeAws_json1_1InvalidRequestExceptionResponse = async (
|
|
3385
|
-
parsedOutput: any,
|
|
3386
|
-
context: __SerdeContext
|
|
3387
|
-
): Promise<InvalidRequestException> => {
|
|
3388
|
-
const body = parsedOutput.body;
|
|
3389
|
-
const deserialized: any = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
3390
|
-
const contents: InvalidRequestException = {
|
|
3391
|
-
name: "InvalidRequestException",
|
|
3392
|
-
$fault: "client",
|
|
3393
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3394
|
-
...deserialized,
|
|
3395
|
-
};
|
|
3396
|
-
return contents;
|
|
3397
|
-
};
|
|
3398
|
-
|
|
3399
|
-
const deserializeAws_json1_1LimitExceededExceptionResponse = async (
|
|
3400
|
-
parsedOutput: any,
|
|
3401
|
-
context: __SerdeContext
|
|
3402
|
-
): Promise<LimitExceededException> => {
|
|
3403
|
-
const body = parsedOutput.body;
|
|
3404
|
-
const deserialized: any = deserializeAws_json1_1LimitExceededException(body, context);
|
|
3405
|
-
const contents: LimitExceededException = {
|
|
3406
|
-
name: "LimitExceededException",
|
|
3407
|
-
$fault: "client",
|
|
3408
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3409
|
-
...deserialized,
|
|
3410
|
-
};
|
|
3411
|
-
return contents;
|
|
3412
|
-
};
|
|
3413
|
-
|
|
3414
|
-
const deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse = async (
|
|
3415
|
-
parsedOutput: any,
|
|
3416
|
-
context: __SerdeContext
|
|
3417
|
-
): Promise<ResourceAlreadyExistsException> => {
|
|
3418
|
-
const body = parsedOutput.body;
|
|
3419
|
-
const deserialized: any = deserializeAws_json1_1ResourceAlreadyExistsException(body, context);
|
|
3420
|
-
const contents: ResourceAlreadyExistsException = {
|
|
3421
|
-
name: "ResourceAlreadyExistsException",
|
|
3422
|
-
$fault: "client",
|
|
3423
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3424
|
-
...deserialized,
|
|
3425
|
-
};
|
|
3426
|
-
return contents;
|
|
3427
|
-
};
|
|
3428
|
-
|
|
3429
|
-
const deserializeAws_json1_1ResourceInUseExceptionResponse = async (
|
|
3430
|
-
parsedOutput: any,
|
|
3431
|
-
context: __SerdeContext
|
|
3432
|
-
): Promise<ResourceInUseException> => {
|
|
3433
|
-
const body = parsedOutput.body;
|
|
3434
|
-
const deserialized: any = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
3435
|
-
const contents: ResourceInUseException = {
|
|
3436
|
-
name: "ResourceInUseException",
|
|
3437
|
-
$fault: "client",
|
|
3438
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3439
|
-
...deserialized,
|
|
3440
|
-
};
|
|
3441
|
-
return contents;
|
|
3442
|
-
};
|
|
3443
|
-
|
|
3444
|
-
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (
|
|
3445
|
-
parsedOutput: any,
|
|
3446
|
-
context: __SerdeContext
|
|
3447
|
-
): Promise<ResourceNotFoundException> => {
|
|
3448
|
-
const body = parsedOutput.body;
|
|
3449
|
-
const deserialized: any = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
3450
|
-
const contents: ResourceNotFoundException = {
|
|
3451
|
-
name: "ResourceNotFoundException",
|
|
3452
|
-
$fault: "client",
|
|
3453
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3454
|
-
...deserialized,
|
|
3455
|
-
};
|
|
3456
|
-
return contents;
|
|
3457
|
-
};
|
|
3458
|
-
|
|
3459
|
-
const deserializeAws_json1_1ThrottlingExceptionResponse = async (
|
|
3460
|
-
parsedOutput: any,
|
|
3461
|
-
context: __SerdeContext
|
|
3462
|
-
): Promise<ThrottlingException> => {
|
|
3463
|
-
const body = parsedOutput.body;
|
|
3464
|
-
const deserialized: any = deserializeAws_json1_1ThrottlingException(body, context);
|
|
3465
|
-
const contents: ThrottlingException = {
|
|
3466
|
-
name: "ThrottlingException",
|
|
3467
|
-
$fault: "client",
|
|
3468
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3469
|
-
...deserialized,
|
|
3470
|
-
};
|
|
3471
|
-
return contents;
|
|
3472
|
-
};
|
|
3473
|
-
|
|
3474
|
-
const serializeAws_json1_1AssociateEntityToThingRequest = (
|
|
3475
|
-
input: AssociateEntityToThingRequest,
|
|
3476
|
-
context: __SerdeContext
|
|
3477
|
-
): any => {
|
|
3478
|
-
return {
|
|
3479
|
-
...(input.entityId !== undefined && input.entityId !== null && { entityId: input.entityId }),
|
|
3480
|
-
...(input.namespaceVersion !== undefined &&
|
|
3481
|
-
input.namespaceVersion !== null && { namespaceVersion: input.namespaceVersion }),
|
|
3482
|
-
...(input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }),
|
|
3483
|
-
};
|
|
3484
|
-
};
|
|
3485
|
-
|
|
3486
|
-
const serializeAws_json1_1CreateFlowTemplateRequest = (
|
|
3487
|
-
input: CreateFlowTemplateRequest,
|
|
3488
|
-
context: __SerdeContext
|
|
3489
|
-
): any => {
|
|
3490
|
-
return {
|
|
3491
|
-
...(input.compatibleNamespaceVersion !== undefined &&
|
|
3492
|
-
input.compatibleNamespaceVersion !== null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
3493
|
-
...(input.definition !== undefined &&
|
|
3494
|
-
input.definition !== null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
3495
|
-
};
|
|
3496
|
-
};
|
|
3497
|
-
|
|
3498
|
-
const serializeAws_json1_1CreateSystemInstanceRequest = (
|
|
3499
|
-
input: CreateSystemInstanceRequest,
|
|
3500
|
-
context: __SerdeContext
|
|
3501
|
-
): any => {
|
|
3502
|
-
return {
|
|
3503
|
-
...(input.definition !== undefined &&
|
|
3504
|
-
input.definition !== null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
3505
|
-
...(input.flowActionsRoleArn !== undefined &&
|
|
3506
|
-
input.flowActionsRoleArn !== null && { flowActionsRoleArn: input.flowActionsRoleArn }),
|
|
3507
|
-
...(input.greengrassGroupName !== undefined &&
|
|
3508
|
-
input.greengrassGroupName !== null && { greengrassGroupName: input.greengrassGroupName }),
|
|
3509
|
-
...(input.metricsConfiguration !== undefined &&
|
|
3510
|
-
input.metricsConfiguration !== null && {
|
|
3511
|
-
metricsConfiguration: serializeAws_json1_1MetricsConfiguration(input.metricsConfiguration, context),
|
|
3512
|
-
}),
|
|
3513
|
-
...(input.s3BucketName !== undefined && input.s3BucketName !== null && { s3BucketName: input.s3BucketName }),
|
|
3514
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3515
|
-
...(input.target !== undefined && input.target !== null && { target: input.target }),
|
|
3516
|
-
};
|
|
3517
|
-
};
|
|
3518
|
-
|
|
3519
|
-
const serializeAws_json1_1CreateSystemTemplateRequest = (
|
|
3520
|
-
input: CreateSystemTemplateRequest,
|
|
3521
|
-
context: __SerdeContext
|
|
3522
|
-
): any => {
|
|
3523
|
-
return {
|
|
3524
|
-
...(input.compatibleNamespaceVersion !== undefined &&
|
|
3525
|
-
input.compatibleNamespaceVersion !== null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
3526
|
-
...(input.definition !== undefined &&
|
|
3527
|
-
input.definition !== null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
3528
|
-
};
|
|
3529
|
-
};
|
|
3530
|
-
|
|
3531
|
-
const serializeAws_json1_1DefinitionDocument = (input: DefinitionDocument, context: __SerdeContext): any => {
|
|
3532
|
-
return {
|
|
3533
|
-
...(input.language !== undefined && input.language !== null && { language: input.language }),
|
|
3534
|
-
...(input.text !== undefined && input.text !== null && { text: input.text }),
|
|
3535
|
-
};
|
|
3536
|
-
};
|
|
3537
|
-
|
|
3538
|
-
const serializeAws_json1_1DeleteFlowTemplateRequest = (
|
|
3539
|
-
input: DeleteFlowTemplateRequest,
|
|
3540
|
-
context: __SerdeContext
|
|
3541
|
-
): any => {
|
|
3542
|
-
return {
|
|
3543
|
-
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
3544
|
-
};
|
|
3545
|
-
};
|
|
3546
|
-
|
|
3547
|
-
const serializeAws_json1_1DeleteNamespaceRequest = (input: DeleteNamespaceRequest, context: __SerdeContext): any => {
|
|
3548
|
-
return {};
|
|
3549
|
-
};
|
|
3550
|
-
|
|
3551
|
-
const serializeAws_json1_1DeleteSystemInstanceRequest = (
|
|
3552
|
-
input: DeleteSystemInstanceRequest,
|
|
3553
|
-
context: __SerdeContext
|
|
3554
|
-
): any => {
|
|
3555
|
-
return {
|
|
3556
|
-
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
3557
|
-
};
|
|
3558
|
-
};
|
|
3559
|
-
|
|
3560
|
-
const serializeAws_json1_1DeleteSystemTemplateRequest = (
|
|
3561
|
-
input: DeleteSystemTemplateRequest,
|
|
3562
|
-
context: __SerdeContext
|
|
3563
|
-
): any => {
|
|
3564
|
-
return {
|
|
3565
|
-
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
3566
|
-
};
|
|
3567
|
-
};
|
|
3568
|
-
|
|
3569
|
-
const serializeAws_json1_1DeploySystemInstanceRequest = (
|
|
3570
|
-
input: DeploySystemInstanceRequest,
|
|
3571
|
-
context: __SerdeContext
|
|
3572
|
-
): any => {
|
|
3573
|
-
return {
|
|
3574
|
-
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
3575
|
-
};
|
|
3576
|
-
};
|
|
3577
|
-
|
|
3578
|
-
const serializeAws_json1_1DeprecateFlowTemplateRequest = (
|
|
3579
|
-
input: DeprecateFlowTemplateRequest,
|
|
3580
|
-
context: __SerdeContext
|
|
3581
|
-
): any => {
|
|
3582
|
-
return {
|
|
3583
|
-
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
3584
|
-
};
|
|
3585
|
-
};
|
|
3586
|
-
|
|
3587
|
-
const serializeAws_json1_1DeprecateSystemTemplateRequest = (
|
|
3588
|
-
input: DeprecateSystemTemplateRequest,
|
|
3589
|
-
context: __SerdeContext
|
|
3590
|
-
): any => {
|
|
3591
|
-
return {
|
|
3592
|
-
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
3593
|
-
};
|
|
3594
|
-
};
|
|
3595
|
-
|
|
3596
|
-
const serializeAws_json1_1DescribeNamespaceRequest = (
|
|
3597
|
-
input: DescribeNamespaceRequest,
|
|
3598
|
-
context: __SerdeContext
|
|
3599
|
-
): any => {
|
|
3600
|
-
return {
|
|
3601
|
-
...(input.namespaceName !== undefined && input.namespaceName !== null && { namespaceName: input.namespaceName }),
|
|
3602
|
-
};
|
|
3603
|
-
};
|
|
3604
|
-
|
|
3605
|
-
const serializeAws_json1_1DissociateEntityFromThingRequest = (
|
|
3606
|
-
input: DissociateEntityFromThingRequest,
|
|
3607
|
-
context: __SerdeContext
|
|
3608
|
-
): any => {
|
|
3609
|
-
return {
|
|
3610
|
-
...(input.entityType !== undefined && input.entityType !== null && { entityType: input.entityType }),
|
|
3611
|
-
...(input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }),
|
|
3612
|
-
};
|
|
3613
|
-
};
|
|
3614
|
-
|
|
3615
|
-
const serializeAws_json1_1EntityFilter = (input: EntityFilter, context: __SerdeContext): any => {
|
|
3616
|
-
return {
|
|
3617
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3618
|
-
...(input.value !== undefined &&
|
|
3619
|
-
input.value !== null && { value: serializeAws_json1_1EntityFilterValues(input.value, context) }),
|
|
3620
|
-
};
|
|
3621
|
-
};
|
|
3622
|
-
|
|
3623
|
-
const serializeAws_json1_1EntityFilters = (input: EntityFilter[], context: __SerdeContext): any => {
|
|
3624
|
-
return input
|
|
3625
|
-
.filter((e: any) => e != null)
|
|
3626
|
-
.map((entry) => {
|
|
3627
|
-
if (entry === null) {
|
|
3628
|
-
return null as any;
|
|
3629
|
-
}
|
|
3630
|
-
return serializeAws_json1_1EntityFilter(entry, context);
|
|
3631
|
-
});
|
|
3632
|
-
};
|
|
3633
|
-
|
|
3634
|
-
const serializeAws_json1_1EntityFilterValues = (input: string[], context: __SerdeContext): any => {
|
|
3635
|
-
return input
|
|
3636
|
-
.filter((e: any) => e != null)
|
|
3637
|
-
.map((entry) => {
|
|
3638
|
-
if (entry === null) {
|
|
3639
|
-
return null as any;
|
|
3640
|
-
}
|
|
3641
|
-
return entry;
|
|
3642
|
-
});
|
|
3643
|
-
};
|
|
3644
|
-
|
|
3645
|
-
const serializeAws_json1_1EntityTypes = (input: (EntityType | string)[], context: __SerdeContext): any => {
|
|
3646
|
-
return input
|
|
3647
|
-
.filter((e: any) => e != null)
|
|
3648
|
-
.map((entry) => {
|
|
3649
|
-
if (entry === null) {
|
|
3650
|
-
return null as any;
|
|
3651
|
-
}
|
|
3652
|
-
return entry;
|
|
3653
|
-
});
|
|
3654
|
-
};
|
|
3655
|
-
|
|
3656
|
-
const serializeAws_json1_1FlowTemplateFilter = (input: FlowTemplateFilter, context: __SerdeContext): any => {
|
|
3657
|
-
return {
|
|
3658
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3659
|
-
...(input.value !== undefined &&
|
|
3660
|
-
input.value !== null && { value: serializeAws_json1_1FlowTemplateFilterValues(input.value, context) }),
|
|
3661
|
-
};
|
|
3662
|
-
};
|
|
3663
|
-
|
|
3664
|
-
const serializeAws_json1_1FlowTemplateFilters = (input: FlowTemplateFilter[], context: __SerdeContext): any => {
|
|
3665
|
-
return input
|
|
3666
|
-
.filter((e: any) => e != null)
|
|
3667
|
-
.map((entry) => {
|
|
3668
|
-
if (entry === null) {
|
|
3669
|
-
return null as any;
|
|
3670
|
-
}
|
|
3671
|
-
return serializeAws_json1_1FlowTemplateFilter(entry, context);
|
|
3672
|
-
});
|
|
3673
|
-
};
|
|
3674
|
-
|
|
3675
|
-
const serializeAws_json1_1FlowTemplateFilterValues = (input: string[], context: __SerdeContext): any => {
|
|
3676
|
-
return input
|
|
3677
|
-
.filter((e: any) => e != null)
|
|
3678
|
-
.map((entry) => {
|
|
3679
|
-
if (entry === null) {
|
|
3680
|
-
return null as any;
|
|
3681
|
-
}
|
|
3682
|
-
return entry;
|
|
3683
|
-
});
|
|
3684
|
-
};
|
|
3685
|
-
|
|
3686
|
-
const serializeAws_json1_1GetEntitiesRequest = (input: GetEntitiesRequest, context: __SerdeContext): any => {
|
|
3687
|
-
return {
|
|
3688
|
-
...(input.ids !== undefined && input.ids !== null && { ids: serializeAws_json1_1Urns(input.ids, context) }),
|
|
3689
|
-
...(input.namespaceVersion !== undefined &&
|
|
3690
|
-
input.namespaceVersion !== null && { namespaceVersion: input.namespaceVersion }),
|
|
3691
|
-
};
|
|
3692
|
-
};
|
|
3693
|
-
|
|
3694
|
-
const serializeAws_json1_1GetFlowTemplateRequest = (input: GetFlowTemplateRequest, context: __SerdeContext): any => {
|
|
3695
|
-
return {
|
|
3696
|
-
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
3697
|
-
...(input.revisionNumber !== undefined &&
|
|
3698
|
-
input.revisionNumber !== null && { revisionNumber: input.revisionNumber }),
|
|
3699
|
-
};
|
|
3700
|
-
};
|
|
3701
|
-
|
|
3702
|
-
const serializeAws_json1_1GetFlowTemplateRevisionsRequest = (
|
|
3703
|
-
input: GetFlowTemplateRevisionsRequest,
|
|
3704
|
-
context: __SerdeContext
|
|
3705
|
-
): any => {
|
|
3706
|
-
return {
|
|
3707
|
-
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
3708
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3709
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3710
|
-
};
|
|
3711
|
-
};
|
|
3712
|
-
|
|
3713
|
-
const serializeAws_json1_1GetNamespaceDeletionStatusRequest = (
|
|
3714
|
-
input: GetNamespaceDeletionStatusRequest,
|
|
3715
|
-
context: __SerdeContext
|
|
3716
|
-
): any => {
|
|
3717
|
-
return {};
|
|
3718
|
-
};
|
|
3719
|
-
|
|
3720
|
-
const serializeAws_json1_1GetSystemInstanceRequest = (
|
|
3721
|
-
input: GetSystemInstanceRequest,
|
|
3722
|
-
context: __SerdeContext
|
|
3723
|
-
): any => {
|
|
3724
|
-
return {
|
|
3725
|
-
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
3726
|
-
};
|
|
3727
|
-
};
|
|
3728
|
-
|
|
3729
|
-
const serializeAws_json1_1GetSystemTemplateRequest = (
|
|
3730
|
-
input: GetSystemTemplateRequest,
|
|
3731
|
-
context: __SerdeContext
|
|
3732
|
-
): any => {
|
|
3733
|
-
return {
|
|
3734
|
-
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
3735
|
-
...(input.revisionNumber !== undefined &&
|
|
3736
|
-
input.revisionNumber !== null && { revisionNumber: input.revisionNumber }),
|
|
3737
|
-
};
|
|
3738
|
-
};
|
|
3739
|
-
|
|
3740
|
-
const serializeAws_json1_1GetSystemTemplateRevisionsRequest = (
|
|
3741
|
-
input: GetSystemTemplateRevisionsRequest,
|
|
3742
|
-
context: __SerdeContext
|
|
3743
|
-
): any => {
|
|
3744
|
-
return {
|
|
3745
|
-
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
3746
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3747
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3748
|
-
};
|
|
3749
|
-
};
|
|
3750
|
-
|
|
3751
|
-
const serializeAws_json1_1GetUploadStatusRequest = (input: GetUploadStatusRequest, context: __SerdeContext): any => {
|
|
3752
|
-
return {
|
|
3753
|
-
...(input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }),
|
|
3754
|
-
};
|
|
3755
|
-
};
|
|
3756
|
-
|
|
3757
|
-
const serializeAws_json1_1ListFlowExecutionMessagesRequest = (
|
|
3758
|
-
input: ListFlowExecutionMessagesRequest,
|
|
3759
|
-
context: __SerdeContext
|
|
3760
|
-
): any => {
|
|
3761
|
-
return {
|
|
3762
|
-
...(input.flowExecutionId !== undefined &&
|
|
3763
|
-
input.flowExecutionId !== null && { flowExecutionId: input.flowExecutionId }),
|
|
3764
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3765
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3766
|
-
};
|
|
3767
|
-
};
|
|
3768
|
-
|
|
3769
|
-
const serializeAws_json1_1ListTagsForResourceRequest = (
|
|
3770
|
-
input: ListTagsForResourceRequest,
|
|
3771
|
-
context: __SerdeContext
|
|
3772
|
-
): any => {
|
|
3773
|
-
return {
|
|
3774
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3775
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3776
|
-
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
3777
|
-
};
|
|
3778
|
-
};
|
|
3779
|
-
|
|
3780
|
-
const serializeAws_json1_1MetricsConfiguration = (input: MetricsConfiguration, context: __SerdeContext): any => {
|
|
3781
|
-
return {
|
|
3782
|
-
...(input.cloudMetricEnabled !== undefined &&
|
|
3783
|
-
input.cloudMetricEnabled !== null && { cloudMetricEnabled: input.cloudMetricEnabled }),
|
|
3784
|
-
...(input.metricRuleRoleArn !== undefined &&
|
|
3785
|
-
input.metricRuleRoleArn !== null && { metricRuleRoleArn: input.metricRuleRoleArn }),
|
|
3786
|
-
};
|
|
3787
|
-
};
|
|
3788
|
-
|
|
3789
|
-
const serializeAws_json1_1SearchEntitiesRequest = (input: SearchEntitiesRequest, context: __SerdeContext): any => {
|
|
3790
|
-
return {
|
|
3791
|
-
...(input.entityTypes !== undefined &&
|
|
3792
|
-
input.entityTypes !== null && { entityTypes: serializeAws_json1_1EntityTypes(input.entityTypes, context) }),
|
|
3793
|
-
...(input.filters !== undefined &&
|
|
3794
|
-
input.filters !== null && { filters: serializeAws_json1_1EntityFilters(input.filters, context) }),
|
|
3795
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3796
|
-
...(input.namespaceVersion !== undefined &&
|
|
3797
|
-
input.namespaceVersion !== null && { namespaceVersion: input.namespaceVersion }),
|
|
3798
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3799
|
-
};
|
|
3800
|
-
};
|
|
3801
|
-
|
|
3802
|
-
const serializeAws_json1_1SearchFlowExecutionsRequest = (
|
|
3803
|
-
input: SearchFlowExecutionsRequest,
|
|
3804
|
-
context: __SerdeContext
|
|
3805
|
-
): any => {
|
|
3806
|
-
return {
|
|
3807
|
-
...(input.endTime !== undefined &&
|
|
3808
|
-
input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
3809
|
-
...(input.flowExecutionId !== undefined &&
|
|
3810
|
-
input.flowExecutionId !== null && { flowExecutionId: input.flowExecutionId }),
|
|
3811
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3812
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3813
|
-
...(input.startTime !== undefined &&
|
|
3814
|
-
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
3815
|
-
...(input.systemInstanceId !== undefined &&
|
|
3816
|
-
input.systemInstanceId !== null && { systemInstanceId: input.systemInstanceId }),
|
|
3817
|
-
};
|
|
3818
|
-
};
|
|
3819
|
-
|
|
3820
|
-
const serializeAws_json1_1SearchFlowTemplatesRequest = (
|
|
3821
|
-
input: SearchFlowTemplatesRequest,
|
|
3822
|
-
context: __SerdeContext
|
|
3823
|
-
): any => {
|
|
3824
|
-
return {
|
|
3825
|
-
...(input.filters !== undefined &&
|
|
3826
|
-
input.filters !== null && { filters: serializeAws_json1_1FlowTemplateFilters(input.filters, context) }),
|
|
3827
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3828
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3829
|
-
};
|
|
3830
|
-
};
|
|
3831
|
-
|
|
3832
|
-
const serializeAws_json1_1SearchSystemInstancesRequest = (
|
|
3833
|
-
input: SearchSystemInstancesRequest,
|
|
3834
|
-
context: __SerdeContext
|
|
3835
|
-
): any => {
|
|
3836
|
-
return {
|
|
3837
|
-
...(input.filters !== undefined &&
|
|
3838
|
-
input.filters !== null && { filters: serializeAws_json1_1SystemInstanceFilters(input.filters, context) }),
|
|
3839
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3840
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3841
|
-
};
|
|
3842
|
-
};
|
|
3843
|
-
|
|
3844
|
-
const serializeAws_json1_1SearchSystemTemplatesRequest = (
|
|
3845
|
-
input: SearchSystemTemplatesRequest,
|
|
3846
|
-
context: __SerdeContext
|
|
3847
|
-
): any => {
|
|
3848
|
-
return {
|
|
3849
|
-
...(input.filters !== undefined &&
|
|
3850
|
-
input.filters !== null && { filters: serializeAws_json1_1SystemTemplateFilters(input.filters, context) }),
|
|
3851
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3852
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3853
|
-
};
|
|
3854
|
-
};
|
|
3855
|
-
|
|
3856
|
-
const serializeAws_json1_1SearchThingsRequest = (input: SearchThingsRequest, context: __SerdeContext): any => {
|
|
3857
|
-
return {
|
|
3858
|
-
...(input.entityId !== undefined && input.entityId !== null && { entityId: input.entityId }),
|
|
3859
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3860
|
-
...(input.namespaceVersion !== undefined &&
|
|
3861
|
-
input.namespaceVersion !== null && { namespaceVersion: input.namespaceVersion }),
|
|
3862
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3863
|
-
};
|
|
3864
|
-
};
|
|
3865
|
-
|
|
3866
|
-
const serializeAws_json1_1SystemInstanceFilter = (input: SystemInstanceFilter, context: __SerdeContext): any => {
|
|
3867
|
-
return {
|
|
3868
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3869
|
-
...(input.value !== undefined &&
|
|
3870
|
-
input.value !== null && { value: serializeAws_json1_1SystemInstanceFilterValues(input.value, context) }),
|
|
3871
|
-
};
|
|
3872
|
-
};
|
|
3873
|
-
|
|
3874
|
-
const serializeAws_json1_1SystemInstanceFilters = (input: SystemInstanceFilter[], context: __SerdeContext): any => {
|
|
3875
|
-
return input
|
|
3876
|
-
.filter((e: any) => e != null)
|
|
3877
|
-
.map((entry) => {
|
|
3878
|
-
if (entry === null) {
|
|
3879
|
-
return null as any;
|
|
3880
|
-
}
|
|
3881
|
-
return serializeAws_json1_1SystemInstanceFilter(entry, context);
|
|
3882
|
-
});
|
|
3883
|
-
};
|
|
3884
|
-
|
|
3885
|
-
const serializeAws_json1_1SystemInstanceFilterValues = (input: string[], context: __SerdeContext): any => {
|
|
3886
|
-
return input
|
|
3887
|
-
.filter((e: any) => e != null)
|
|
3888
|
-
.map((entry) => {
|
|
3889
|
-
if (entry === null) {
|
|
3890
|
-
return null as any;
|
|
3891
|
-
}
|
|
3892
|
-
return entry;
|
|
3893
|
-
});
|
|
3894
|
-
};
|
|
3895
|
-
|
|
3896
|
-
const serializeAws_json1_1SystemTemplateFilter = (input: SystemTemplateFilter, context: __SerdeContext): any => {
|
|
3897
|
-
return {
|
|
3898
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3899
|
-
...(input.value !== undefined &&
|
|
3900
|
-
input.value !== null && { value: serializeAws_json1_1SystemTemplateFilterValues(input.value, context) }),
|
|
3901
|
-
};
|
|
3902
|
-
};
|
|
3903
|
-
|
|
3904
|
-
const serializeAws_json1_1SystemTemplateFilters = (input: SystemTemplateFilter[], context: __SerdeContext): any => {
|
|
3905
|
-
return input
|
|
3906
|
-
.filter((e: any) => e != null)
|
|
3907
|
-
.map((entry) => {
|
|
3908
|
-
if (entry === null) {
|
|
3909
|
-
return null as any;
|
|
3910
|
-
}
|
|
3911
|
-
return serializeAws_json1_1SystemTemplateFilter(entry, context);
|
|
3912
|
-
});
|
|
3913
|
-
};
|
|
3914
|
-
|
|
3915
|
-
const serializeAws_json1_1SystemTemplateFilterValues = (input: string[], context: __SerdeContext): any => {
|
|
3916
|
-
return input
|
|
3917
|
-
.filter((e: any) => e != null)
|
|
3918
|
-
.map((entry) => {
|
|
3919
|
-
if (entry === null) {
|
|
3920
|
-
return null as any;
|
|
3921
|
-
}
|
|
3922
|
-
return entry;
|
|
3923
|
-
});
|
|
3924
|
-
};
|
|
3925
|
-
|
|
3926
|
-
const serializeAws_json1_1Tag = (input: Tag, context: __SerdeContext): any => {
|
|
3927
|
-
return {
|
|
3928
|
-
...(input.key !== undefined && input.key !== null && { key: input.key }),
|
|
3929
|
-
...(input.value !== undefined && input.value !== null && { value: input.value }),
|
|
3930
|
-
};
|
|
3931
|
-
};
|
|
3932
|
-
|
|
3933
|
-
const serializeAws_json1_1TagKeyList = (input: string[], context: __SerdeContext): any => {
|
|
3934
|
-
return input
|
|
3935
|
-
.filter((e: any) => e != null)
|
|
3936
|
-
.map((entry) => {
|
|
3937
|
-
if (entry === null) {
|
|
3938
|
-
return null as any;
|
|
3939
|
-
}
|
|
3940
|
-
return entry;
|
|
3941
|
-
});
|
|
3942
|
-
};
|
|
3943
|
-
|
|
3944
|
-
const serializeAws_json1_1TagList = (input: Tag[], context: __SerdeContext): any => {
|
|
3945
|
-
return input
|
|
3946
|
-
.filter((e: any) => e != null)
|
|
3947
|
-
.map((entry) => {
|
|
3948
|
-
if (entry === null) {
|
|
3949
|
-
return null as any;
|
|
3950
|
-
}
|
|
3951
|
-
return serializeAws_json1_1Tag(entry, context);
|
|
3952
|
-
});
|
|
3953
|
-
};
|
|
3954
|
-
|
|
3955
|
-
const serializeAws_json1_1TagResourceRequest = (input: TagResourceRequest, context: __SerdeContext): any => {
|
|
3956
|
-
return {
|
|
3957
|
-
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
3958
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3959
|
-
};
|
|
3960
|
-
};
|
|
3961
|
-
|
|
3962
|
-
const serializeAws_json1_1UndeploySystemInstanceRequest = (
|
|
3963
|
-
input: UndeploySystemInstanceRequest,
|
|
3964
|
-
context: __SerdeContext
|
|
3965
|
-
): any => {
|
|
3966
|
-
return {
|
|
3967
|
-
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
3968
|
-
};
|
|
3969
|
-
};
|
|
3970
|
-
|
|
3971
|
-
const serializeAws_json1_1UntagResourceRequest = (input: UntagResourceRequest, context: __SerdeContext): any => {
|
|
3972
|
-
return {
|
|
3973
|
-
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
3974
|
-
...(input.tagKeys !== undefined &&
|
|
3975
|
-
input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
3976
|
-
};
|
|
3977
|
-
};
|
|
3978
|
-
|
|
3979
|
-
const serializeAws_json1_1UpdateFlowTemplateRequest = (
|
|
3980
|
-
input: UpdateFlowTemplateRequest,
|
|
3981
|
-
context: __SerdeContext
|
|
3982
|
-
): any => {
|
|
3983
|
-
return {
|
|
3984
|
-
...(input.compatibleNamespaceVersion !== undefined &&
|
|
3985
|
-
input.compatibleNamespaceVersion !== null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
3986
|
-
...(input.definition !== undefined &&
|
|
3987
|
-
input.definition !== null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
3988
|
-
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
3989
|
-
};
|
|
3990
|
-
};
|
|
3991
|
-
|
|
3992
|
-
const serializeAws_json1_1UpdateSystemTemplateRequest = (
|
|
3993
|
-
input: UpdateSystemTemplateRequest,
|
|
3994
|
-
context: __SerdeContext
|
|
3995
|
-
): any => {
|
|
3996
|
-
return {
|
|
3997
|
-
...(input.compatibleNamespaceVersion !== undefined &&
|
|
3998
|
-
input.compatibleNamespaceVersion !== null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
3999
|
-
...(input.definition !== undefined &&
|
|
4000
|
-
input.definition !== null && { definition: serializeAws_json1_1DefinitionDocument(input.definition, context) }),
|
|
4001
|
-
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
4002
|
-
};
|
|
4003
|
-
};
|
|
4004
|
-
|
|
4005
|
-
const serializeAws_json1_1UploadEntityDefinitionsRequest = (
|
|
4006
|
-
input: UploadEntityDefinitionsRequest,
|
|
4007
|
-
context: __SerdeContext
|
|
4008
|
-
): any => {
|
|
4009
|
-
return {
|
|
4010
|
-
...(input.deprecateExistingEntities !== undefined &&
|
|
4011
|
-
input.deprecateExistingEntities !== null && { deprecateExistingEntities: input.deprecateExistingEntities }),
|
|
4012
|
-
...(input.document !== undefined &&
|
|
4013
|
-
input.document !== null && { document: serializeAws_json1_1DefinitionDocument(input.document, context) }),
|
|
4014
|
-
...(input.syncWithPublicNamespace !== undefined &&
|
|
4015
|
-
input.syncWithPublicNamespace !== null && { syncWithPublicNamespace: input.syncWithPublicNamespace }),
|
|
4016
|
-
};
|
|
4017
|
-
};
|
|
4018
|
-
|
|
4019
|
-
const serializeAws_json1_1Urns = (input: string[], context: __SerdeContext): any => {
|
|
4020
|
-
return input
|
|
4021
|
-
.filter((e: any) => e != null)
|
|
4022
|
-
.map((entry) => {
|
|
4023
|
-
if (entry === null) {
|
|
4024
|
-
return null as any;
|
|
4025
|
-
}
|
|
4026
|
-
return entry;
|
|
4027
|
-
});
|
|
4028
|
-
};
|
|
4029
|
-
|
|
4030
|
-
const deserializeAws_json1_1AssociateEntityToThingResponse = (
|
|
4031
|
-
output: any,
|
|
4032
|
-
context: __SerdeContext
|
|
4033
|
-
): AssociateEntityToThingResponse => {
|
|
4034
|
-
return {} as any;
|
|
4035
|
-
};
|
|
4036
|
-
|
|
4037
|
-
const deserializeAws_json1_1CreateFlowTemplateResponse = (
|
|
4038
|
-
output: any,
|
|
4039
|
-
context: __SerdeContext
|
|
4040
|
-
): CreateFlowTemplateResponse => {
|
|
4041
|
-
return {
|
|
4042
|
-
summary:
|
|
4043
|
-
output.summary !== undefined && output.summary !== null
|
|
4044
|
-
? deserializeAws_json1_1FlowTemplateSummary(output.summary, context)
|
|
4045
|
-
: undefined,
|
|
4046
|
-
} as any;
|
|
4047
|
-
};
|
|
4048
|
-
|
|
4049
|
-
const deserializeAws_json1_1CreateSystemInstanceResponse = (
|
|
4050
|
-
output: any,
|
|
4051
|
-
context: __SerdeContext
|
|
4052
|
-
): CreateSystemInstanceResponse => {
|
|
4053
|
-
return {
|
|
4054
|
-
summary:
|
|
4055
|
-
output.summary !== undefined && output.summary !== null
|
|
4056
|
-
? deserializeAws_json1_1SystemInstanceSummary(output.summary, context)
|
|
4057
|
-
: undefined,
|
|
4058
|
-
} as any;
|
|
4059
|
-
};
|
|
4060
|
-
|
|
4061
|
-
const deserializeAws_json1_1CreateSystemTemplateResponse = (
|
|
4062
|
-
output: any,
|
|
4063
|
-
context: __SerdeContext
|
|
4064
|
-
): CreateSystemTemplateResponse => {
|
|
4065
|
-
return {
|
|
4066
|
-
summary:
|
|
4067
|
-
output.summary !== undefined && output.summary !== null
|
|
4068
|
-
? deserializeAws_json1_1SystemTemplateSummary(output.summary, context)
|
|
4069
|
-
: undefined,
|
|
4070
|
-
} as any;
|
|
4071
|
-
};
|
|
4072
|
-
|
|
4073
|
-
const deserializeAws_json1_1DefinitionDocument = (output: any, context: __SerdeContext): DefinitionDocument => {
|
|
4074
|
-
return {
|
|
4075
|
-
language: __expectString(output.language),
|
|
4076
|
-
text: __expectString(output.text),
|
|
4077
|
-
} as any;
|
|
4078
|
-
};
|
|
4079
|
-
|
|
4080
|
-
const deserializeAws_json1_1DeleteFlowTemplateResponse = (
|
|
4081
|
-
output: any,
|
|
4082
|
-
context: __SerdeContext
|
|
4083
|
-
): DeleteFlowTemplateResponse => {
|
|
4084
|
-
return {} as any;
|
|
4085
|
-
};
|
|
4086
|
-
|
|
4087
|
-
const deserializeAws_json1_1DeleteNamespaceResponse = (
|
|
4088
|
-
output: any,
|
|
4089
|
-
context: __SerdeContext
|
|
4090
|
-
): DeleteNamespaceResponse => {
|
|
4091
|
-
return {
|
|
4092
|
-
namespaceArn: __expectString(output.namespaceArn),
|
|
4093
|
-
namespaceName: __expectString(output.namespaceName),
|
|
4094
|
-
} as any;
|
|
4095
|
-
};
|
|
4096
|
-
|
|
4097
|
-
const deserializeAws_json1_1DeleteSystemInstanceResponse = (
|
|
4098
|
-
output: any,
|
|
4099
|
-
context: __SerdeContext
|
|
4100
|
-
): DeleteSystemInstanceResponse => {
|
|
4101
|
-
return {} as any;
|
|
4102
|
-
};
|
|
4103
|
-
|
|
4104
|
-
const deserializeAws_json1_1DeleteSystemTemplateResponse = (
|
|
4105
|
-
output: any,
|
|
4106
|
-
context: __SerdeContext
|
|
4107
|
-
): DeleteSystemTemplateResponse => {
|
|
4108
|
-
return {} as any;
|
|
4109
|
-
};
|
|
4110
|
-
|
|
4111
|
-
const deserializeAws_json1_1DependencyRevision = (output: any, context: __SerdeContext): DependencyRevision => {
|
|
4112
|
-
return {
|
|
4113
|
-
id: __expectString(output.id),
|
|
4114
|
-
revisionNumber: __expectLong(output.revisionNumber),
|
|
4115
|
-
} as any;
|
|
4116
|
-
};
|
|
4117
|
-
|
|
4118
|
-
const deserializeAws_json1_1DependencyRevisions = (output: any, context: __SerdeContext): DependencyRevision[] => {
|
|
4119
|
-
return (output || [])
|
|
4120
|
-
.filter((e: any) => e != null)
|
|
4121
|
-
.map((entry: any) => {
|
|
4122
|
-
if (entry === null) {
|
|
4123
|
-
return null as any;
|
|
4124
|
-
}
|
|
4125
|
-
return deserializeAws_json1_1DependencyRevision(entry, context);
|
|
4126
|
-
});
|
|
4127
|
-
};
|
|
4128
|
-
|
|
4129
|
-
const deserializeAws_json1_1DeploySystemInstanceResponse = (
|
|
4130
|
-
output: any,
|
|
4131
|
-
context: __SerdeContext
|
|
4132
|
-
): DeploySystemInstanceResponse => {
|
|
4133
|
-
return {
|
|
4134
|
-
greengrassDeploymentId: __expectString(output.greengrassDeploymentId),
|
|
4135
|
-
summary:
|
|
4136
|
-
output.summary !== undefined && output.summary !== null
|
|
4137
|
-
? deserializeAws_json1_1SystemInstanceSummary(output.summary, context)
|
|
4138
|
-
: undefined,
|
|
4139
|
-
} as any;
|
|
4140
|
-
};
|
|
4141
|
-
|
|
4142
|
-
const deserializeAws_json1_1DeprecateFlowTemplateResponse = (
|
|
4143
|
-
output: any,
|
|
4144
|
-
context: __SerdeContext
|
|
4145
|
-
): DeprecateFlowTemplateResponse => {
|
|
4146
|
-
return {} as any;
|
|
4147
|
-
};
|
|
4148
|
-
|
|
4149
|
-
const deserializeAws_json1_1DeprecateSystemTemplateResponse = (
|
|
4150
|
-
output: any,
|
|
4151
|
-
context: __SerdeContext
|
|
4152
|
-
): DeprecateSystemTemplateResponse => {
|
|
4153
|
-
return {} as any;
|
|
4154
|
-
};
|
|
4155
|
-
|
|
4156
|
-
const deserializeAws_json1_1DescribeNamespaceResponse = (
|
|
4157
|
-
output: any,
|
|
4158
|
-
context: __SerdeContext
|
|
4159
|
-
): DescribeNamespaceResponse => {
|
|
4160
|
-
return {
|
|
4161
|
-
namespaceArn: __expectString(output.namespaceArn),
|
|
4162
|
-
namespaceName: __expectString(output.namespaceName),
|
|
4163
|
-
namespaceVersion: __expectLong(output.namespaceVersion),
|
|
4164
|
-
trackingNamespaceName: __expectString(output.trackingNamespaceName),
|
|
4165
|
-
trackingNamespaceVersion: __expectLong(output.trackingNamespaceVersion),
|
|
4166
|
-
} as any;
|
|
4167
|
-
};
|
|
4168
|
-
|
|
4169
|
-
const deserializeAws_json1_1DissociateEntityFromThingResponse = (
|
|
4170
|
-
output: any,
|
|
4171
|
-
context: __SerdeContext
|
|
4172
|
-
): DissociateEntityFromThingResponse => {
|
|
4173
|
-
return {} as any;
|
|
4174
|
-
};
|
|
4175
|
-
|
|
4176
|
-
const deserializeAws_json1_1EntityDescription = (output: any, context: __SerdeContext): EntityDescription => {
|
|
4177
|
-
return {
|
|
4178
|
-
arn: __expectString(output.arn),
|
|
4179
|
-
createdAt:
|
|
4180
|
-
output.createdAt !== undefined && output.createdAt !== null
|
|
4181
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
4182
|
-
: undefined,
|
|
4183
|
-
definition:
|
|
4184
|
-
output.definition !== undefined && output.definition !== null
|
|
4185
|
-
? deserializeAws_json1_1DefinitionDocument(output.definition, context)
|
|
4186
|
-
: undefined,
|
|
4187
|
-
id: __expectString(output.id),
|
|
4188
|
-
type: __expectString(output.type),
|
|
4189
|
-
} as any;
|
|
4190
|
-
};
|
|
4191
|
-
|
|
4192
|
-
const deserializeAws_json1_1EntityDescriptions = (output: any, context: __SerdeContext): EntityDescription[] => {
|
|
4193
|
-
return (output || [])
|
|
4194
|
-
.filter((e: any) => e != null)
|
|
4195
|
-
.map((entry: any) => {
|
|
4196
|
-
if (entry === null) {
|
|
4197
|
-
return null as any;
|
|
4198
|
-
}
|
|
4199
|
-
return deserializeAws_json1_1EntityDescription(entry, context);
|
|
4200
|
-
});
|
|
4201
|
-
};
|
|
4202
|
-
|
|
4203
|
-
const deserializeAws_json1_1FlowExecutionMessage = (output: any, context: __SerdeContext): FlowExecutionMessage => {
|
|
4204
|
-
return {
|
|
4205
|
-
eventType: __expectString(output.eventType),
|
|
4206
|
-
messageId: __expectString(output.messageId),
|
|
4207
|
-
payload: __expectString(output.payload),
|
|
4208
|
-
timestamp:
|
|
4209
|
-
output.timestamp !== undefined && output.timestamp !== null
|
|
4210
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timestamp)))
|
|
4211
|
-
: undefined,
|
|
4212
|
-
} as any;
|
|
4213
|
-
};
|
|
4214
|
-
|
|
4215
|
-
const deserializeAws_json1_1FlowExecutionMessages = (output: any, context: __SerdeContext): FlowExecutionMessage[] => {
|
|
4216
|
-
return (output || [])
|
|
4217
|
-
.filter((e: any) => e != null)
|
|
4218
|
-
.map((entry: any) => {
|
|
4219
|
-
if (entry === null) {
|
|
4220
|
-
return null as any;
|
|
4221
|
-
}
|
|
4222
|
-
return deserializeAws_json1_1FlowExecutionMessage(entry, context);
|
|
4223
|
-
});
|
|
4224
|
-
};
|
|
4225
|
-
|
|
4226
|
-
const deserializeAws_json1_1FlowExecutionSummaries = (output: any, context: __SerdeContext): FlowExecutionSummary[] => {
|
|
4227
|
-
return (output || [])
|
|
4228
|
-
.filter((e: any) => e != null)
|
|
4229
|
-
.map((entry: any) => {
|
|
4230
|
-
if (entry === null) {
|
|
4231
|
-
return null as any;
|
|
4232
|
-
}
|
|
4233
|
-
return deserializeAws_json1_1FlowExecutionSummary(entry, context);
|
|
4234
|
-
});
|
|
4235
|
-
};
|
|
4236
|
-
|
|
4237
|
-
const deserializeAws_json1_1FlowExecutionSummary = (output: any, context: __SerdeContext): FlowExecutionSummary => {
|
|
4238
|
-
return {
|
|
4239
|
-
createdAt:
|
|
4240
|
-
output.createdAt !== undefined && output.createdAt !== null
|
|
4241
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
4242
|
-
: undefined,
|
|
4243
|
-
flowExecutionId: __expectString(output.flowExecutionId),
|
|
4244
|
-
flowTemplateId: __expectString(output.flowTemplateId),
|
|
4245
|
-
status: __expectString(output.status),
|
|
4246
|
-
systemInstanceId: __expectString(output.systemInstanceId),
|
|
4247
|
-
updatedAt:
|
|
4248
|
-
output.updatedAt !== undefined && output.updatedAt !== null
|
|
4249
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
|
|
4250
|
-
: undefined,
|
|
4251
|
-
} as any;
|
|
4252
|
-
};
|
|
4253
|
-
|
|
4254
|
-
const deserializeAws_json1_1FlowTemplateDescription = (
|
|
4255
|
-
output: any,
|
|
4256
|
-
context: __SerdeContext
|
|
4257
|
-
): FlowTemplateDescription => {
|
|
4258
|
-
return {
|
|
4259
|
-
definition:
|
|
4260
|
-
output.definition !== undefined && output.definition !== null
|
|
4261
|
-
? deserializeAws_json1_1DefinitionDocument(output.definition, context)
|
|
4262
|
-
: undefined,
|
|
4263
|
-
summary:
|
|
4264
|
-
output.summary !== undefined && output.summary !== null
|
|
4265
|
-
? deserializeAws_json1_1FlowTemplateSummary(output.summary, context)
|
|
4266
|
-
: undefined,
|
|
4267
|
-
validatedNamespaceVersion: __expectLong(output.validatedNamespaceVersion),
|
|
4268
|
-
} as any;
|
|
4269
|
-
};
|
|
4270
|
-
|
|
4271
|
-
const deserializeAws_json1_1FlowTemplateSummaries = (output: any, context: __SerdeContext): FlowTemplateSummary[] => {
|
|
4272
|
-
return (output || [])
|
|
4273
|
-
.filter((e: any) => e != null)
|
|
4274
|
-
.map((entry: any) => {
|
|
4275
|
-
if (entry === null) {
|
|
4276
|
-
return null as any;
|
|
4277
|
-
}
|
|
4278
|
-
return deserializeAws_json1_1FlowTemplateSummary(entry, context);
|
|
4279
|
-
});
|
|
4280
|
-
};
|
|
4281
|
-
|
|
4282
|
-
const deserializeAws_json1_1FlowTemplateSummary = (output: any, context: __SerdeContext): FlowTemplateSummary => {
|
|
4283
|
-
return {
|
|
4284
|
-
arn: __expectString(output.arn),
|
|
4285
|
-
createdAt:
|
|
4286
|
-
output.createdAt !== undefined && output.createdAt !== null
|
|
4287
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
4288
|
-
: undefined,
|
|
4289
|
-
id: __expectString(output.id),
|
|
4290
|
-
revisionNumber: __expectLong(output.revisionNumber),
|
|
4291
|
-
} as any;
|
|
4292
|
-
};
|
|
4293
|
-
|
|
4294
|
-
const deserializeAws_json1_1GetEntitiesResponse = (output: any, context: __SerdeContext): GetEntitiesResponse => {
|
|
4295
|
-
return {
|
|
4296
|
-
descriptions:
|
|
4297
|
-
output.descriptions !== undefined && output.descriptions !== null
|
|
4298
|
-
? deserializeAws_json1_1EntityDescriptions(output.descriptions, context)
|
|
4299
|
-
: undefined,
|
|
4300
|
-
} as any;
|
|
4301
|
-
};
|
|
4302
|
-
|
|
4303
|
-
const deserializeAws_json1_1GetFlowTemplateResponse = (
|
|
4304
|
-
output: any,
|
|
4305
|
-
context: __SerdeContext
|
|
4306
|
-
): GetFlowTemplateResponse => {
|
|
4307
|
-
return {
|
|
4308
|
-
description:
|
|
4309
|
-
output.description !== undefined && output.description !== null
|
|
4310
|
-
? deserializeAws_json1_1FlowTemplateDescription(output.description, context)
|
|
4311
|
-
: undefined,
|
|
4312
|
-
} as any;
|
|
4313
|
-
};
|
|
4314
|
-
|
|
4315
|
-
const deserializeAws_json1_1GetFlowTemplateRevisionsResponse = (
|
|
4316
|
-
output: any,
|
|
4317
|
-
context: __SerdeContext
|
|
4318
|
-
): GetFlowTemplateRevisionsResponse => {
|
|
4319
|
-
return {
|
|
4320
|
-
nextToken: __expectString(output.nextToken),
|
|
4321
|
-
summaries:
|
|
4322
|
-
output.summaries !== undefined && output.summaries !== null
|
|
4323
|
-
? deserializeAws_json1_1FlowTemplateSummaries(output.summaries, context)
|
|
4324
|
-
: undefined,
|
|
4325
|
-
} as any;
|
|
4326
|
-
};
|
|
4327
|
-
|
|
4328
|
-
const deserializeAws_json1_1GetNamespaceDeletionStatusResponse = (
|
|
4329
|
-
output: any,
|
|
4330
|
-
context: __SerdeContext
|
|
4331
|
-
): GetNamespaceDeletionStatusResponse => {
|
|
4332
|
-
return {
|
|
4333
|
-
errorCode: __expectString(output.errorCode),
|
|
4334
|
-
errorMessage: __expectString(output.errorMessage),
|
|
4335
|
-
namespaceArn: __expectString(output.namespaceArn),
|
|
4336
|
-
namespaceName: __expectString(output.namespaceName),
|
|
4337
|
-
status: __expectString(output.status),
|
|
4338
|
-
} as any;
|
|
4339
|
-
};
|
|
4340
|
-
|
|
4341
|
-
const deserializeAws_json1_1GetSystemInstanceResponse = (
|
|
4342
|
-
output: any,
|
|
4343
|
-
context: __SerdeContext
|
|
4344
|
-
): GetSystemInstanceResponse => {
|
|
4345
|
-
return {
|
|
4346
|
-
description:
|
|
4347
|
-
output.description !== undefined && output.description !== null
|
|
4348
|
-
? deserializeAws_json1_1SystemInstanceDescription(output.description, context)
|
|
4349
|
-
: undefined,
|
|
4350
|
-
} as any;
|
|
4351
|
-
};
|
|
4352
|
-
|
|
4353
|
-
const deserializeAws_json1_1GetSystemTemplateResponse = (
|
|
4354
|
-
output: any,
|
|
4355
|
-
context: __SerdeContext
|
|
4356
|
-
): GetSystemTemplateResponse => {
|
|
4357
|
-
return {
|
|
4358
|
-
description:
|
|
4359
|
-
output.description !== undefined && output.description !== null
|
|
4360
|
-
? deserializeAws_json1_1SystemTemplateDescription(output.description, context)
|
|
4361
|
-
: undefined,
|
|
4362
|
-
} as any;
|
|
4363
|
-
};
|
|
4364
|
-
|
|
4365
|
-
const deserializeAws_json1_1GetSystemTemplateRevisionsResponse = (
|
|
4366
|
-
output: any,
|
|
4367
|
-
context: __SerdeContext
|
|
4368
|
-
): GetSystemTemplateRevisionsResponse => {
|
|
4369
|
-
return {
|
|
4370
|
-
nextToken: __expectString(output.nextToken),
|
|
4371
|
-
summaries:
|
|
4372
|
-
output.summaries !== undefined && output.summaries !== null
|
|
4373
|
-
? deserializeAws_json1_1SystemTemplateSummaries(output.summaries, context)
|
|
4374
|
-
: undefined,
|
|
4375
|
-
} as any;
|
|
4376
|
-
};
|
|
4377
|
-
|
|
4378
|
-
const deserializeAws_json1_1GetUploadStatusResponse = (
|
|
4379
|
-
output: any,
|
|
4380
|
-
context: __SerdeContext
|
|
4381
|
-
): GetUploadStatusResponse => {
|
|
4382
|
-
return {
|
|
4383
|
-
createdDate:
|
|
4384
|
-
output.createdDate !== undefined && output.createdDate !== null
|
|
4385
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdDate)))
|
|
4386
|
-
: undefined,
|
|
4387
|
-
failureReason:
|
|
4388
|
-
output.failureReason !== undefined && output.failureReason !== null
|
|
4389
|
-
? deserializeAws_json1_1StringList(output.failureReason, context)
|
|
4390
|
-
: undefined,
|
|
4391
|
-
namespaceArn: __expectString(output.namespaceArn),
|
|
4392
|
-
namespaceName: __expectString(output.namespaceName),
|
|
4393
|
-
namespaceVersion: __expectLong(output.namespaceVersion),
|
|
4394
|
-
uploadId: __expectString(output.uploadId),
|
|
4395
|
-
uploadStatus: __expectString(output.uploadStatus),
|
|
4396
|
-
} as any;
|
|
4397
|
-
};
|
|
4398
|
-
|
|
4399
|
-
const deserializeAws_json1_1InternalFailureException = (
|
|
4400
|
-
output: any,
|
|
4401
|
-
context: __SerdeContext
|
|
4402
|
-
): InternalFailureException => {
|
|
4403
|
-
return {
|
|
4404
|
-
message: __expectString(output.message),
|
|
4405
|
-
} as any;
|
|
4406
|
-
};
|
|
4407
|
-
|
|
4408
|
-
const deserializeAws_json1_1InvalidRequestException = (
|
|
4409
|
-
output: any,
|
|
4410
|
-
context: __SerdeContext
|
|
4411
|
-
): InvalidRequestException => {
|
|
4412
|
-
return {
|
|
4413
|
-
message: __expectString(output.message),
|
|
4414
|
-
} as any;
|
|
4415
|
-
};
|
|
4416
|
-
|
|
4417
|
-
const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => {
|
|
4418
|
-
return {
|
|
4419
|
-
message: __expectString(output.message),
|
|
4420
|
-
} as any;
|
|
4421
|
-
};
|
|
4422
|
-
|
|
4423
|
-
const deserializeAws_json1_1ListFlowExecutionMessagesResponse = (
|
|
4424
|
-
output: any,
|
|
4425
|
-
context: __SerdeContext
|
|
4426
|
-
): ListFlowExecutionMessagesResponse => {
|
|
4427
|
-
return {
|
|
4428
|
-
messages:
|
|
4429
|
-
output.messages !== undefined && output.messages !== null
|
|
4430
|
-
? deserializeAws_json1_1FlowExecutionMessages(output.messages, context)
|
|
4431
|
-
: undefined,
|
|
4432
|
-
nextToken: __expectString(output.nextToken),
|
|
4433
|
-
} as any;
|
|
4434
|
-
};
|
|
4435
|
-
|
|
4436
|
-
const deserializeAws_json1_1ListTagsForResourceResponse = (
|
|
4437
|
-
output: any,
|
|
4438
|
-
context: __SerdeContext
|
|
4439
|
-
): ListTagsForResourceResponse => {
|
|
4440
|
-
return {
|
|
4441
|
-
nextToken: __expectString(output.nextToken),
|
|
4442
|
-
tags:
|
|
4443
|
-
output.tags !== undefined && output.tags !== null
|
|
4444
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
4445
|
-
: undefined,
|
|
4446
|
-
} as any;
|
|
4447
|
-
};
|
|
4448
|
-
|
|
4449
|
-
const deserializeAws_json1_1MetricsConfiguration = (output: any, context: __SerdeContext): MetricsConfiguration => {
|
|
4450
|
-
return {
|
|
4451
|
-
cloudMetricEnabled: __expectBoolean(output.cloudMetricEnabled),
|
|
4452
|
-
metricRuleRoleArn: __expectString(output.metricRuleRoleArn),
|
|
4453
|
-
} as any;
|
|
4454
|
-
};
|
|
4455
|
-
|
|
4456
|
-
const deserializeAws_json1_1ResourceAlreadyExistsException = (
|
|
4457
|
-
output: any,
|
|
4458
|
-
context: __SerdeContext
|
|
4459
|
-
): ResourceAlreadyExistsException => {
|
|
4460
|
-
return {
|
|
4461
|
-
message: __expectString(output.message),
|
|
4462
|
-
} as any;
|
|
4463
|
-
};
|
|
4464
|
-
|
|
4465
|
-
const deserializeAws_json1_1ResourceInUseException = (output: any, context: __SerdeContext): ResourceInUseException => {
|
|
4466
|
-
return {
|
|
4467
|
-
message: __expectString(output.message),
|
|
4468
|
-
} as any;
|
|
4469
|
-
};
|
|
4470
|
-
|
|
4471
|
-
const deserializeAws_json1_1ResourceNotFoundException = (
|
|
4472
|
-
output: any,
|
|
4473
|
-
context: __SerdeContext
|
|
4474
|
-
): ResourceNotFoundException => {
|
|
4475
|
-
return {
|
|
4476
|
-
message: __expectString(output.message),
|
|
4477
|
-
} as any;
|
|
4478
|
-
};
|
|
4479
|
-
|
|
4480
|
-
const deserializeAws_json1_1SearchEntitiesResponse = (output: any, context: __SerdeContext): SearchEntitiesResponse => {
|
|
4481
|
-
return {
|
|
4482
|
-
descriptions:
|
|
4483
|
-
output.descriptions !== undefined && output.descriptions !== null
|
|
4484
|
-
? deserializeAws_json1_1EntityDescriptions(output.descriptions, context)
|
|
4485
|
-
: undefined,
|
|
4486
|
-
nextToken: __expectString(output.nextToken),
|
|
4487
|
-
} as any;
|
|
4488
|
-
};
|
|
4489
|
-
|
|
4490
|
-
const deserializeAws_json1_1SearchFlowExecutionsResponse = (
|
|
4491
|
-
output: any,
|
|
4492
|
-
context: __SerdeContext
|
|
4493
|
-
): SearchFlowExecutionsResponse => {
|
|
4494
|
-
return {
|
|
4495
|
-
nextToken: __expectString(output.nextToken),
|
|
4496
|
-
summaries:
|
|
4497
|
-
output.summaries !== undefined && output.summaries !== null
|
|
4498
|
-
? deserializeAws_json1_1FlowExecutionSummaries(output.summaries, context)
|
|
4499
|
-
: undefined,
|
|
4500
|
-
} as any;
|
|
4501
|
-
};
|
|
4502
|
-
|
|
4503
|
-
const deserializeAws_json1_1SearchFlowTemplatesResponse = (
|
|
4504
|
-
output: any,
|
|
4505
|
-
context: __SerdeContext
|
|
4506
|
-
): SearchFlowTemplatesResponse => {
|
|
4507
|
-
return {
|
|
4508
|
-
nextToken: __expectString(output.nextToken),
|
|
4509
|
-
summaries:
|
|
4510
|
-
output.summaries !== undefined && output.summaries !== null
|
|
4511
|
-
? deserializeAws_json1_1FlowTemplateSummaries(output.summaries, context)
|
|
4512
|
-
: undefined,
|
|
4513
|
-
} as any;
|
|
4514
|
-
};
|
|
4515
|
-
|
|
4516
|
-
const deserializeAws_json1_1SearchSystemInstancesResponse = (
|
|
4517
|
-
output: any,
|
|
4518
|
-
context: __SerdeContext
|
|
4519
|
-
): SearchSystemInstancesResponse => {
|
|
4520
|
-
return {
|
|
4521
|
-
nextToken: __expectString(output.nextToken),
|
|
4522
|
-
summaries:
|
|
4523
|
-
output.summaries !== undefined && output.summaries !== null
|
|
4524
|
-
? deserializeAws_json1_1SystemInstanceSummaries(output.summaries, context)
|
|
4525
|
-
: undefined,
|
|
4526
|
-
} as any;
|
|
4527
|
-
};
|
|
4528
|
-
|
|
4529
|
-
const deserializeAws_json1_1SearchSystemTemplatesResponse = (
|
|
4530
|
-
output: any,
|
|
4531
|
-
context: __SerdeContext
|
|
4532
|
-
): SearchSystemTemplatesResponse => {
|
|
4533
|
-
return {
|
|
4534
|
-
nextToken: __expectString(output.nextToken),
|
|
4535
|
-
summaries:
|
|
4536
|
-
output.summaries !== undefined && output.summaries !== null
|
|
4537
|
-
? deserializeAws_json1_1SystemTemplateSummaries(output.summaries, context)
|
|
4538
|
-
: undefined,
|
|
4539
|
-
} as any;
|
|
4540
|
-
};
|
|
4541
|
-
|
|
4542
|
-
const deserializeAws_json1_1SearchThingsResponse = (output: any, context: __SerdeContext): SearchThingsResponse => {
|
|
4543
|
-
return {
|
|
4544
|
-
nextToken: __expectString(output.nextToken),
|
|
4545
|
-
things:
|
|
4546
|
-
output.things !== undefined && output.things !== null
|
|
4547
|
-
? deserializeAws_json1_1Things(output.things, context)
|
|
4548
|
-
: undefined,
|
|
4549
|
-
} as any;
|
|
4550
|
-
};
|
|
4551
|
-
|
|
4552
|
-
const deserializeAws_json1_1StringList = (output: any, context: __SerdeContext): string[] => {
|
|
4553
|
-
return (output || [])
|
|
4554
|
-
.filter((e: any) => e != null)
|
|
4555
|
-
.map((entry: any) => {
|
|
4556
|
-
if (entry === null) {
|
|
4557
|
-
return null as any;
|
|
4558
|
-
}
|
|
4559
|
-
return __expectString(entry) as any;
|
|
4560
|
-
});
|
|
4561
|
-
};
|
|
4562
|
-
|
|
4563
|
-
const deserializeAws_json1_1SystemInstanceDescription = (
|
|
4564
|
-
output: any,
|
|
4565
|
-
context: __SerdeContext
|
|
4566
|
-
): SystemInstanceDescription => {
|
|
4567
|
-
return {
|
|
4568
|
-
definition:
|
|
4569
|
-
output.definition !== undefined && output.definition !== null
|
|
4570
|
-
? deserializeAws_json1_1DefinitionDocument(output.definition, context)
|
|
4571
|
-
: undefined,
|
|
4572
|
-
flowActionsRoleArn: __expectString(output.flowActionsRoleArn),
|
|
4573
|
-
metricsConfiguration:
|
|
4574
|
-
output.metricsConfiguration !== undefined && output.metricsConfiguration !== null
|
|
4575
|
-
? deserializeAws_json1_1MetricsConfiguration(output.metricsConfiguration, context)
|
|
4576
|
-
: undefined,
|
|
4577
|
-
s3BucketName: __expectString(output.s3BucketName),
|
|
4578
|
-
summary:
|
|
4579
|
-
output.summary !== undefined && output.summary !== null
|
|
4580
|
-
? deserializeAws_json1_1SystemInstanceSummary(output.summary, context)
|
|
4581
|
-
: undefined,
|
|
4582
|
-
validatedDependencyRevisions:
|
|
4583
|
-
output.validatedDependencyRevisions !== undefined && output.validatedDependencyRevisions !== null
|
|
4584
|
-
? deserializeAws_json1_1DependencyRevisions(output.validatedDependencyRevisions, context)
|
|
4585
|
-
: undefined,
|
|
4586
|
-
validatedNamespaceVersion: __expectLong(output.validatedNamespaceVersion),
|
|
4587
|
-
} as any;
|
|
4588
|
-
};
|
|
4589
|
-
|
|
4590
|
-
const deserializeAws_json1_1SystemInstanceSummaries = (
|
|
4591
|
-
output: any,
|
|
4592
|
-
context: __SerdeContext
|
|
4593
|
-
): SystemInstanceSummary[] => {
|
|
4594
|
-
return (output || [])
|
|
4595
|
-
.filter((e: any) => e != null)
|
|
4596
|
-
.map((entry: any) => {
|
|
4597
|
-
if (entry === null) {
|
|
4598
|
-
return null as any;
|
|
4599
|
-
}
|
|
4600
|
-
return deserializeAws_json1_1SystemInstanceSummary(entry, context);
|
|
4601
|
-
});
|
|
4602
|
-
};
|
|
4603
|
-
|
|
4604
|
-
const deserializeAws_json1_1SystemInstanceSummary = (output: any, context: __SerdeContext): SystemInstanceSummary => {
|
|
4605
|
-
return {
|
|
4606
|
-
arn: __expectString(output.arn),
|
|
4607
|
-
createdAt:
|
|
4608
|
-
output.createdAt !== undefined && output.createdAt !== null
|
|
4609
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
4610
|
-
: undefined,
|
|
4611
|
-
greengrassGroupId: __expectString(output.greengrassGroupId),
|
|
4612
|
-
greengrassGroupName: __expectString(output.greengrassGroupName),
|
|
4613
|
-
greengrassGroupVersionId: __expectString(output.greengrassGroupVersionId),
|
|
4614
|
-
id: __expectString(output.id),
|
|
4615
|
-
status: __expectString(output.status),
|
|
4616
|
-
target: __expectString(output.target),
|
|
4617
|
-
updatedAt:
|
|
4618
|
-
output.updatedAt !== undefined && output.updatedAt !== null
|
|
4619
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt)))
|
|
4620
|
-
: undefined,
|
|
4621
|
-
} as any;
|
|
4622
|
-
};
|
|
4623
|
-
|
|
4624
|
-
const deserializeAws_json1_1SystemTemplateDescription = (
|
|
4625
|
-
output: any,
|
|
4626
|
-
context: __SerdeContext
|
|
4627
|
-
): SystemTemplateDescription => {
|
|
4628
|
-
return {
|
|
4629
|
-
definition:
|
|
4630
|
-
output.definition !== undefined && output.definition !== null
|
|
4631
|
-
? deserializeAws_json1_1DefinitionDocument(output.definition, context)
|
|
4632
|
-
: undefined,
|
|
4633
|
-
summary:
|
|
4634
|
-
output.summary !== undefined && output.summary !== null
|
|
4635
|
-
? deserializeAws_json1_1SystemTemplateSummary(output.summary, context)
|
|
4636
|
-
: undefined,
|
|
4637
|
-
validatedNamespaceVersion: __expectLong(output.validatedNamespaceVersion),
|
|
4638
|
-
} as any;
|
|
4639
|
-
};
|
|
4640
|
-
|
|
4641
|
-
const deserializeAws_json1_1SystemTemplateSummaries = (
|
|
4642
|
-
output: any,
|
|
4643
|
-
context: __SerdeContext
|
|
4644
|
-
): SystemTemplateSummary[] => {
|
|
4645
|
-
return (output || [])
|
|
4646
|
-
.filter((e: any) => e != null)
|
|
4647
|
-
.map((entry: any) => {
|
|
4648
|
-
if (entry === null) {
|
|
4649
|
-
return null as any;
|
|
4650
|
-
}
|
|
4651
|
-
return deserializeAws_json1_1SystemTemplateSummary(entry, context);
|
|
4652
|
-
});
|
|
4653
|
-
};
|
|
4654
|
-
|
|
4655
|
-
const deserializeAws_json1_1SystemTemplateSummary = (output: any, context: __SerdeContext): SystemTemplateSummary => {
|
|
4656
|
-
return {
|
|
4657
|
-
arn: __expectString(output.arn),
|
|
4658
|
-
createdAt:
|
|
4659
|
-
output.createdAt !== undefined && output.createdAt !== null
|
|
4660
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
4661
|
-
: undefined,
|
|
4662
|
-
id: __expectString(output.id),
|
|
4663
|
-
revisionNumber: __expectLong(output.revisionNumber),
|
|
4664
|
-
} as any;
|
|
4665
|
-
};
|
|
4666
|
-
|
|
4667
|
-
const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => {
|
|
4668
|
-
return {
|
|
4669
|
-
key: __expectString(output.key),
|
|
4670
|
-
value: __expectString(output.value),
|
|
4671
|
-
} as any;
|
|
4672
|
-
};
|
|
4673
|
-
|
|
4674
|
-
const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => {
|
|
4675
|
-
return (output || [])
|
|
4676
|
-
.filter((e: any) => e != null)
|
|
4677
|
-
.map((entry: any) => {
|
|
4678
|
-
if (entry === null) {
|
|
4679
|
-
return null as any;
|
|
4680
|
-
}
|
|
4681
|
-
return deserializeAws_json1_1Tag(entry, context);
|
|
4682
|
-
});
|
|
4683
|
-
};
|
|
4684
|
-
|
|
4685
|
-
const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => {
|
|
4686
|
-
return {} as any;
|
|
4687
|
-
};
|
|
4688
|
-
|
|
4689
|
-
const deserializeAws_json1_1Thing = (output: any, context: __SerdeContext): Thing => {
|
|
4690
|
-
return {
|
|
4691
|
-
thingArn: __expectString(output.thingArn),
|
|
4692
|
-
thingName: __expectString(output.thingName),
|
|
4693
|
-
} as any;
|
|
4694
|
-
};
|
|
4695
|
-
|
|
4696
|
-
const deserializeAws_json1_1Things = (output: any, context: __SerdeContext): Thing[] => {
|
|
4697
|
-
return (output || [])
|
|
4698
|
-
.filter((e: any) => e != null)
|
|
4699
|
-
.map((entry: any) => {
|
|
4700
|
-
if (entry === null) {
|
|
4701
|
-
return null as any;
|
|
4702
|
-
}
|
|
4703
|
-
return deserializeAws_json1_1Thing(entry, context);
|
|
4704
|
-
});
|
|
4705
|
-
};
|
|
4706
|
-
|
|
4707
|
-
const deserializeAws_json1_1ThrottlingException = (output: any, context: __SerdeContext): ThrottlingException => {
|
|
4708
|
-
return {
|
|
4709
|
-
message: __expectString(output.message),
|
|
4710
|
-
} as any;
|
|
4711
|
-
};
|
|
4712
|
-
|
|
4713
|
-
const deserializeAws_json1_1UndeploySystemInstanceResponse = (
|
|
4714
|
-
output: any,
|
|
4715
|
-
context: __SerdeContext
|
|
4716
|
-
): UndeploySystemInstanceResponse => {
|
|
4717
|
-
return {
|
|
4718
|
-
summary:
|
|
4719
|
-
output.summary !== undefined && output.summary !== null
|
|
4720
|
-
? deserializeAws_json1_1SystemInstanceSummary(output.summary, context)
|
|
4721
|
-
: undefined,
|
|
4722
|
-
} as any;
|
|
4723
|
-
};
|
|
4724
|
-
|
|
4725
|
-
const deserializeAws_json1_1UntagResourceResponse = (output: any, context: __SerdeContext): UntagResourceResponse => {
|
|
4726
|
-
return {} as any;
|
|
4727
|
-
};
|
|
4728
|
-
|
|
4729
|
-
const deserializeAws_json1_1UpdateFlowTemplateResponse = (
|
|
4730
|
-
output: any,
|
|
4731
|
-
context: __SerdeContext
|
|
4732
|
-
): UpdateFlowTemplateResponse => {
|
|
4733
|
-
return {
|
|
4734
|
-
summary:
|
|
4735
|
-
output.summary !== undefined && output.summary !== null
|
|
4736
|
-
? deserializeAws_json1_1FlowTemplateSummary(output.summary, context)
|
|
4737
|
-
: undefined,
|
|
4738
|
-
} as any;
|
|
4739
|
-
};
|
|
4740
|
-
|
|
4741
|
-
const deserializeAws_json1_1UpdateSystemTemplateResponse = (
|
|
4742
|
-
output: any,
|
|
4743
|
-
context: __SerdeContext
|
|
4744
|
-
): UpdateSystemTemplateResponse => {
|
|
4745
|
-
return {
|
|
4746
|
-
summary:
|
|
4747
|
-
output.summary !== undefined && output.summary !== null
|
|
4748
|
-
? deserializeAws_json1_1SystemTemplateSummary(output.summary, context)
|
|
4749
|
-
: undefined,
|
|
4750
|
-
} as any;
|
|
4751
|
-
};
|
|
4752
|
-
|
|
4753
|
-
const deserializeAws_json1_1UploadEntityDefinitionsResponse = (
|
|
4754
|
-
output: any,
|
|
4755
|
-
context: __SerdeContext
|
|
4756
|
-
): UploadEntityDefinitionsResponse => {
|
|
4757
|
-
return {
|
|
4758
|
-
uploadId: __expectString(output.uploadId),
|
|
4759
|
-
} as any;
|
|
4760
|
-
};
|
|
4761
|
-
|
|
4762
|
-
const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
|
|
4763
|
-
httpStatusCode: output.statusCode,
|
|
4764
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
4765
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4766
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4767
|
-
});
|
|
4768
|
-
|
|
4769
|
-
// Collect low-level response body stream to Uint8Array.
|
|
4770
|
-
const collectBody = (streamBody: any = new Uint8Array(), context: __SerdeContext): Promise<Uint8Array> => {
|
|
4771
|
-
if (streamBody instanceof Uint8Array) {
|
|
4772
|
-
return Promise.resolve(streamBody);
|
|
4773
|
-
}
|
|
4774
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4775
|
-
};
|
|
4776
|
-
|
|
4777
|
-
// Encode Uint8Array data into string with utf-8.
|
|
4778
|
-
const collectBodyString = (streamBody: any, context: __SerdeContext): Promise<string> =>
|
|
4779
|
-
collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4780
|
-
|
|
4781
|
-
const buildHttpRpcRequest = async (
|
|
4782
|
-
context: __SerdeContext,
|
|
4783
|
-
headers: __HeaderBag,
|
|
4784
|
-
path: string,
|
|
4785
|
-
resolvedHostname: string | undefined,
|
|
4786
|
-
body: any
|
|
4787
|
-
): Promise<__HttpRequest> => {
|
|
4788
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4789
|
-
const contents: any = {
|
|
4790
|
-
protocol,
|
|
4791
|
-
hostname,
|
|
4792
|
-
port,
|
|
4793
|
-
method: "POST",
|
|
4794
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
4795
|
-
headers,
|
|
4796
|
-
};
|
|
4797
|
-
if (resolvedHostname !== undefined) {
|
|
4798
|
-
contents.hostname = resolvedHostname;
|
|
4799
|
-
}
|
|
4800
|
-
if (body !== undefined) {
|
|
4801
|
-
contents.body = body;
|
|
4802
|
-
}
|
|
4803
|
-
return new __HttpRequest(contents);
|
|
4804
|
-
};
|
|
4805
|
-
|
|
4806
|
-
const parseBody = (streamBody: any, context: __SerdeContext): any =>
|
|
4807
|
-
collectBodyString(streamBody, context).then((encoded) => {
|
|
4808
|
-
if (encoded.length) {
|
|
4809
|
-
return JSON.parse(encoded);
|
|
4810
|
-
}
|
|
4811
|
-
return {};
|
|
4812
|
-
});
|
|
4813
|
-
|
|
4814
|
-
/**
|
|
4815
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
4816
|
-
*/
|
|
4817
|
-
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string => {
|
|
4818
|
-
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4819
|
-
|
|
4820
|
-
const sanitizeErrorCode = (rawValue: string): string => {
|
|
4821
|
-
let cleanValue = rawValue;
|
|
4822
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4823
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4824
|
-
}
|
|
4825
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4826
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4827
|
-
}
|
|
4828
|
-
return cleanValue;
|
|
4829
|
-
};
|
|
4830
|
-
|
|
4831
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4832
|
-
if (headerKey !== undefined) {
|
|
4833
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4834
|
-
}
|
|
4835
|
-
|
|
4836
|
-
if (data.code !== undefined) {
|
|
4837
|
-
return sanitizeErrorCode(data.code);
|
|
4838
|
-
}
|
|
4839
|
-
|
|
4840
|
-
if (data["__type"] !== undefined) {
|
|
4841
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4842
|
-
}
|
|
4843
|
-
|
|
4844
|
-
return "";
|
|
4845
|
-
};
|