@aws-sdk/client-groundstation 3.32.0 → 3.36.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 +44 -0
- package/{dist/cjs → dist-cjs}/GroundStation.js +1 -2
- package/{dist/cjs → dist-cjs}/GroundStationClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/CancelContactCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateConfigCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateDataflowEndpointGroupCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateMissionProfileCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteConfigCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteDataflowEndpointGroupCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteMissionProfileCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeContactCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetConfigCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetDataflowEndpointGroupCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetMinuteUsageCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetMissionProfileCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetSatelliteCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListConfigsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListContactsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListDataflowEndpointGroupsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListGroundStationsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListMissionProfilesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListSatellitesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ReserveContactCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateConfigCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateMissionProfileCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListConfigsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListContactsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListDataflowEndpointGroupsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListGroundStationsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListMissionProfilesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListSatellitesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +12 -13
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/GroundStation.js +2 -9
- package/{dist/es → dist-es}/GroundStationClient.js +2 -14
- package/{dist/es → dist-es}/commands/CancelContactCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateConfigCommand.js +4 -31
- package/{dist/es → dist-es}/commands/CreateDataflowEndpointGroupCommand.js +4 -34
- package/{dist/es → dist-es}/commands/CreateMissionProfileCommand.js +4 -33
- package/{dist/es → dist-es}/commands/DeleteConfigCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteDataflowEndpointGroupCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteMissionProfileCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeContactCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetConfigCommand.js +4 -31
- package/{dist/es → dist-es}/commands/GetDataflowEndpointGroupCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetMinuteUsageCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetMissionProfileCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetSatelliteCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListConfigsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListContactsCommand.js +4 -33
- package/{dist/es → dist-es}/commands/ListDataflowEndpointGroupsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListGroundStationsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListMissionProfilesCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListSatellitesCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ReserveContactCommand.js +4 -30
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UpdateConfigCommand.js +4 -32
- package/{dist/es → dist-es}/commands/UpdateMissionProfileCommand.js +4 -32
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -241
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListConfigsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListContactsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListDataflowEndpointGroupsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListGroundStationsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListMissionProfilesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListSatellitesPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +534 -540
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/GroundStation.d.ts +2 -2
- package/{dist/types → dist-types}/GroundStationClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/CancelContactCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateConfigCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateDataflowEndpointGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateMissionProfileCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteConfigCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteDataflowEndpointGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteMissionProfileCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeContactCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetConfigCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetDataflowEndpointGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetMinuteUsageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetMissionProfileCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetSatelliteCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListConfigsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListContactsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListDataflowEndpointGroupsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListGroundStationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListMissionProfilesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListSatellitesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ReserveContactCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateConfigCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateMissionProfileCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListConfigsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListContactsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListDataflowEndpointGroupsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListGroundStationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListMissionProfilesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListSatellitesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/GroundStation.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/GroundStationClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/CancelContactCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateConfigCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateDataflowEndpointGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateMissionProfileCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteConfigCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteDataflowEndpointGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteMissionProfileCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeContactCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetConfigCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetDataflowEndpointGroupCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetMinuteUsageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetMissionProfileCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetSatelliteCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListConfigsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListContactsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListDataflowEndpointGroupsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListGroundStationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListMissionProfilesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListSatellitesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ReserveContactCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateConfigCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateMissionProfileCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListConfigsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListContactsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListDataflowEndpointGroupsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListGroundStationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListMissionProfilesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListSatellitesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/GroundStation.ts +0 -906
- package/GroundStationClient.ts +0 -340
- package/commands/CancelContactCommand.ts +0 -94
- package/commands/CreateConfigCommand.ts +0 -95
- package/commands/CreateDataflowEndpointGroupCommand.ts +0 -101
- package/commands/CreateMissionProfileCommand.ts +0 -97
- package/commands/DeleteConfigCommand.ts +0 -94
- package/commands/DeleteDataflowEndpointGroupCommand.ts +0 -97
- package/commands/DeleteMissionProfileCommand.ts +0 -94
- package/commands/DescribeContactCommand.ts +0 -94
- package/commands/GetConfigCommand.ts +0 -95
- package/commands/GetDataflowEndpointGroupCommand.ts +0 -94
- package/commands/GetMinuteUsageCommand.ts +0 -94
- package/commands/GetMissionProfileCommand.ts +0 -94
- package/commands/GetSatelliteCommand.ts +0 -94
- package/commands/ListConfigsCommand.ts +0 -94
- package/commands/ListContactsCommand.ts +0 -97
- package/commands/ListDataflowEndpointGroupsCommand.ts +0 -97
- package/commands/ListGroundStationsCommand.ts +0 -94
- package/commands/ListMissionProfilesCommand.ts +0 -94
- package/commands/ListSatellitesCommand.ts +0 -94
- package/commands/ListTagsForResourceCommand.ts +0 -94
- package/commands/ReserveContactCommand.ts +0 -94
- package/commands/TagResourceCommand.ts +0 -94
- package/commands/UntagResourceCommand.ts +0 -94
- package/commands/UpdateConfigCommand.ts +0 -96
- package/commands/UpdateMissionProfileCommand.ts +0 -96
- package/dist/cjs/GroundStation.js.map +0 -1
- package/dist/cjs/GroundStationClient.js.map +0 -1
- package/dist/cjs/commands/CancelContactCommand.js.map +0 -1
- package/dist/cjs/commands/CreateConfigCommand.js.map +0 -1
- package/dist/cjs/commands/CreateDataflowEndpointGroupCommand.js.map +0 -1
- package/dist/cjs/commands/CreateMissionProfileCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteConfigCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteDataflowEndpointGroupCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteMissionProfileCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeContactCommand.js.map +0 -1
- package/dist/cjs/commands/GetConfigCommand.js.map +0 -1
- package/dist/cjs/commands/GetDataflowEndpointGroupCommand.js.map +0 -1
- package/dist/cjs/commands/GetMinuteUsageCommand.js.map +0 -1
- package/dist/cjs/commands/GetMissionProfileCommand.js.map +0 -1
- package/dist/cjs/commands/GetSatelliteCommand.js.map +0 -1
- package/dist/cjs/commands/ListConfigsCommand.js.map +0 -1
- package/dist/cjs/commands/ListContactsCommand.js.map +0 -1
- package/dist/cjs/commands/ListDataflowEndpointGroupsCommand.js.map +0 -1
- package/dist/cjs/commands/ListGroundStationsCommand.js.map +0 -1
- package/dist/cjs/commands/ListMissionProfilesCommand.js.map +0 -1
- package/dist/cjs/commands/ListSatellitesCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/ReserveContactCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateConfigCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateMissionProfileCommand.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/package.json +0 -91
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListConfigsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListContactsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListDataflowEndpointGroupsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListGroundStationsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListMissionProfilesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListSatellitesPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.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/GroundStation.js.map +0 -1
- package/dist/es/GroundStationClient.js.map +0 -1
- package/dist/es/commands/CancelContactCommand.js.map +0 -1
- package/dist/es/commands/CreateConfigCommand.js.map +0 -1
- package/dist/es/commands/CreateDataflowEndpointGroupCommand.js.map +0 -1
- package/dist/es/commands/CreateMissionProfileCommand.js.map +0 -1
- package/dist/es/commands/DeleteConfigCommand.js.map +0 -1
- package/dist/es/commands/DeleteDataflowEndpointGroupCommand.js.map +0 -1
- package/dist/es/commands/DeleteMissionProfileCommand.js.map +0 -1
- package/dist/es/commands/DescribeContactCommand.js.map +0 -1
- package/dist/es/commands/GetConfigCommand.js.map +0 -1
- package/dist/es/commands/GetDataflowEndpointGroupCommand.js.map +0 -1
- package/dist/es/commands/GetMinuteUsageCommand.js.map +0 -1
- package/dist/es/commands/GetMissionProfileCommand.js.map +0 -1
- package/dist/es/commands/GetSatelliteCommand.js.map +0 -1
- package/dist/es/commands/ListConfigsCommand.js.map +0 -1
- package/dist/es/commands/ListContactsCommand.js.map +0 -1
- package/dist/es/commands/ListDataflowEndpointGroupsCommand.js.map +0 -1
- package/dist/es/commands/ListGroundStationsCommand.js.map +0 -1
- package/dist/es/commands/ListMissionProfilesCommand.js.map +0 -1
- package/dist/es/commands/ListSatellitesCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/ReserveContactCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateConfigCommand.js.map +0 -1
- package/dist/es/commands/UpdateMissionProfileCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -36
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListConfigsPaginator.js.map +0 -1
- package/dist/es/pagination/ListContactsPaginator.js.map +0 -1
- package/dist/es/pagination/ListDataflowEndpointGroupsPaginator.js.map +0 -1
- package/dist/es/pagination/ListGroundStationsPaginator.js.map +0 -1
- package/dist/es/pagination/ListMissionProfilesPaginator.js.map +0 -1
- package/dist/es/pagination/ListSatellitesPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.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/endpoints.ts +0 -73
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -2545
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListConfigsPaginator.ts +0 -54
- package/pagination/ListContactsPaginator.ts +0 -58
- package/pagination/ListDataflowEndpointGroupsPaginator.ts +0 -58
- package/pagination/ListGroundStationsPaginator.ts +0 -58
- package/pagination/ListMissionProfilesPaginator.ts +0 -58
- package/pagination/ListSatellitesPaginator.ts +0 -58
- package/protocols/Aws_restJson1.ts +0 -3831
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
|
-
import { ConfigTypeData, } from "../models/models_0";
|
|
3
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
4
3
|
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ConfigTypeData, } from "../models/models_0";
|
|
5
5
|
export var serializeAws_restJson1CancelContactCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
6
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
7
7
|
return __generator(this, function (_c) {
|
|
8
8
|
switch (_c.label) {
|
|
9
|
-
case 0: return [4
|
|
9
|
+
case 0: return [4, context.endpoint()];
|
|
10
10
|
case 1:
|
|
11
11
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
12
12
|
headers = {};
|
|
@@ -21,7 +21,7 @@ export var serializeAws_restJson1CancelContactCommand = function (input, context
|
|
|
21
21
|
else {
|
|
22
22
|
throw new Error("No value provided for input HTTP label: contactId.");
|
|
23
23
|
}
|
|
24
|
-
return [2
|
|
24
|
+
return [2, new __HttpRequest({
|
|
25
25
|
protocol: protocol,
|
|
26
26
|
hostname: hostname,
|
|
27
27
|
port: port,
|
|
@@ -37,7 +37,7 @@ export var serializeAws_restJson1CreateConfigCommand = function (input, context)
|
|
|
37
37
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
38
38
|
return __generator(this, function (_c) {
|
|
39
39
|
switch (_c.label) {
|
|
40
|
-
case 0: return [4
|
|
40
|
+
case 0: return [4, context.endpoint()];
|
|
41
41
|
case 1:
|
|
42
42
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
43
43
|
headers = {
|
|
@@ -47,7 +47,7 @@ export var serializeAws_restJson1CreateConfigCommand = function (input, context)
|
|
|
47
47
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.configData !== undefined &&
|
|
48
48
|
input.configData !== null && { configData: serializeAws_restJson1ConfigTypeData(input.configData, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined &&
|
|
49
49
|
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
50
|
-
return [2
|
|
50
|
+
return [2, new __HttpRequest({
|
|
51
51
|
protocol: protocol,
|
|
52
52
|
hostname: hostname,
|
|
53
53
|
port: port,
|
|
@@ -63,7 +63,7 @@ export var serializeAws_restJson1CreateDataflowEndpointGroupCommand = function (
|
|
|
63
63
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
64
64
|
return __generator(this, function (_c) {
|
|
65
65
|
switch (_c.label) {
|
|
66
|
-
case 0: return [4
|
|
66
|
+
case 0: return [4, context.endpoint()];
|
|
67
67
|
case 1:
|
|
68
68
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
69
69
|
headers = {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_restJson1CreateDataflowEndpointGroupCommand = function (
|
|
|
75
75
|
endpointDetails: serializeAws_restJson1EndpointDetailsList(input.endpointDetails, context),
|
|
76
76
|
})), (input.tags !== undefined &&
|
|
77
77
|
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, new __HttpRequest({
|
|
79
79
|
protocol: protocol,
|
|
80
80
|
hostname: hostname,
|
|
81
81
|
port: port,
|
|
@@ -91,7 +91,7 @@ export var serializeAws_restJson1CreateMissionProfileCommand = function (input,
|
|
|
91
91
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
92
92
|
return __generator(this, function (_c) {
|
|
93
93
|
switch (_c.label) {
|
|
94
|
-
case 0: return [4
|
|
94
|
+
case 0: return [4, context.endpoint()];
|
|
95
95
|
case 1:
|
|
96
96
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
97
97
|
headers = {
|
|
@@ -113,7 +113,7 @@ export var serializeAws_restJson1CreateMissionProfileCommand = function (input,
|
|
|
113
113
|
})), (input.name !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined &&
|
|
114
114
|
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })), (input.trackingConfigArn !== undefined &&
|
|
115
115
|
input.trackingConfigArn !== null && { trackingConfigArn: input.trackingConfigArn })));
|
|
116
|
-
return [2
|
|
116
|
+
return [2, new __HttpRequest({
|
|
117
117
|
protocol: protocol,
|
|
118
118
|
hostname: hostname,
|
|
119
119
|
port: port,
|
|
@@ -129,7 +129,7 @@ export var serializeAws_restJson1DeleteConfigCommand = function (input, context)
|
|
|
129
129
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
130
130
|
return __generator(this, function (_c) {
|
|
131
131
|
switch (_c.label) {
|
|
132
|
-
case 0: return [4
|
|
132
|
+
case 0: return [4, context.endpoint()];
|
|
133
133
|
case 1:
|
|
134
134
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
135
135
|
headers = {};
|
|
@@ -154,7 +154,7 @@ export var serializeAws_restJson1DeleteConfigCommand = function (input, context)
|
|
|
154
154
|
else {
|
|
155
155
|
throw new Error("No value provided for input HTTP label: configType.");
|
|
156
156
|
}
|
|
157
|
-
return [2
|
|
157
|
+
return [2, new __HttpRequest({
|
|
158
158
|
protocol: protocol,
|
|
159
159
|
hostname: hostname,
|
|
160
160
|
port: port,
|
|
@@ -170,7 +170,7 @@ export var serializeAws_restJson1DeleteDataflowEndpointGroupCommand = function (
|
|
|
170
170
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
171
171
|
return __generator(this, function (_c) {
|
|
172
172
|
switch (_c.label) {
|
|
173
|
-
case 0: return [4
|
|
173
|
+
case 0: return [4, context.endpoint()];
|
|
174
174
|
case 1:
|
|
175
175
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
176
176
|
headers = {};
|
|
@@ -186,7 +186,7 @@ export var serializeAws_restJson1DeleteDataflowEndpointGroupCommand = function (
|
|
|
186
186
|
else {
|
|
187
187
|
throw new Error("No value provided for input HTTP label: dataflowEndpointGroupId.");
|
|
188
188
|
}
|
|
189
|
-
return [2
|
|
189
|
+
return [2, new __HttpRequest({
|
|
190
190
|
protocol: protocol,
|
|
191
191
|
hostname: hostname,
|
|
192
192
|
port: port,
|
|
@@ -202,7 +202,7 @@ export var serializeAws_restJson1DeleteMissionProfileCommand = function (input,
|
|
|
202
202
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
203
203
|
return __generator(this, function (_c) {
|
|
204
204
|
switch (_c.label) {
|
|
205
|
-
case 0: return [4
|
|
205
|
+
case 0: return [4, context.endpoint()];
|
|
206
206
|
case 1:
|
|
207
207
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
208
208
|
headers = {};
|
|
@@ -217,7 +217,7 @@ export var serializeAws_restJson1DeleteMissionProfileCommand = function (input,
|
|
|
217
217
|
else {
|
|
218
218
|
throw new Error("No value provided for input HTTP label: missionProfileId.");
|
|
219
219
|
}
|
|
220
|
-
return [2
|
|
220
|
+
return [2, new __HttpRequest({
|
|
221
221
|
protocol: protocol,
|
|
222
222
|
hostname: hostname,
|
|
223
223
|
port: port,
|
|
@@ -233,7 +233,7 @@ export var serializeAws_restJson1DescribeContactCommand = function (input, conte
|
|
|
233
233
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
234
234
|
return __generator(this, function (_c) {
|
|
235
235
|
switch (_c.label) {
|
|
236
|
-
case 0: return [4
|
|
236
|
+
case 0: return [4, context.endpoint()];
|
|
237
237
|
case 1:
|
|
238
238
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
239
239
|
headers = {};
|
|
@@ -248,7 +248,7 @@ export var serializeAws_restJson1DescribeContactCommand = function (input, conte
|
|
|
248
248
|
else {
|
|
249
249
|
throw new Error("No value provided for input HTTP label: contactId.");
|
|
250
250
|
}
|
|
251
|
-
return [2
|
|
251
|
+
return [2, new __HttpRequest({
|
|
252
252
|
protocol: protocol,
|
|
253
253
|
hostname: hostname,
|
|
254
254
|
port: port,
|
|
@@ -264,7 +264,7 @@ export var serializeAws_restJson1GetConfigCommand = function (input, context) {
|
|
|
264
264
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
265
265
|
return __generator(this, function (_c) {
|
|
266
266
|
switch (_c.label) {
|
|
267
|
-
case 0: return [4
|
|
267
|
+
case 0: return [4, context.endpoint()];
|
|
268
268
|
case 1:
|
|
269
269
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
270
270
|
headers = {};
|
|
@@ -289,7 +289,7 @@ export var serializeAws_restJson1GetConfigCommand = function (input, context) {
|
|
|
289
289
|
else {
|
|
290
290
|
throw new Error("No value provided for input HTTP label: configType.");
|
|
291
291
|
}
|
|
292
|
-
return [2
|
|
292
|
+
return [2, new __HttpRequest({
|
|
293
293
|
protocol: protocol,
|
|
294
294
|
hostname: hostname,
|
|
295
295
|
port: port,
|
|
@@ -305,7 +305,7 @@ export var serializeAws_restJson1GetDataflowEndpointGroupCommand = function (inp
|
|
|
305
305
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
306
306
|
return __generator(this, function (_c) {
|
|
307
307
|
switch (_c.label) {
|
|
308
|
-
case 0: return [4
|
|
308
|
+
case 0: return [4, context.endpoint()];
|
|
309
309
|
case 1:
|
|
310
310
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
311
311
|
headers = {};
|
|
@@ -321,7 +321,7 @@ export var serializeAws_restJson1GetDataflowEndpointGroupCommand = function (inp
|
|
|
321
321
|
else {
|
|
322
322
|
throw new Error("No value provided for input HTTP label: dataflowEndpointGroupId.");
|
|
323
323
|
}
|
|
324
|
-
return [2
|
|
324
|
+
return [2, new __HttpRequest({
|
|
325
325
|
protocol: protocol,
|
|
326
326
|
hostname: hostname,
|
|
327
327
|
port: port,
|
|
@@ -337,7 +337,7 @@ export var serializeAws_restJson1GetMinuteUsageCommand = function (input, contex
|
|
|
337
337
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
338
338
|
return __generator(this, function (_c) {
|
|
339
339
|
switch (_c.label) {
|
|
340
|
-
case 0: return [4
|
|
340
|
+
case 0: return [4, context.endpoint()];
|
|
341
341
|
case 1:
|
|
342
342
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
343
343
|
headers = {
|
|
@@ -345,7 +345,7 @@ export var serializeAws_restJson1GetMinuteUsageCommand = function (input, contex
|
|
|
345
345
|
};
|
|
346
346
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/minute-usage";
|
|
347
347
|
body = JSON.stringify(__assign(__assign({}, (input.month !== undefined && input.month !== null && { month: input.month })), (input.year !== undefined && input.year !== null && { year: input.year })));
|
|
348
|
-
return [2
|
|
348
|
+
return [2, new __HttpRequest({
|
|
349
349
|
protocol: protocol,
|
|
350
350
|
hostname: hostname,
|
|
351
351
|
port: port,
|
|
@@ -361,7 +361,7 @@ export var serializeAws_restJson1GetMissionProfileCommand = function (input, con
|
|
|
361
361
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
362
362
|
return __generator(this, function (_c) {
|
|
363
363
|
switch (_c.label) {
|
|
364
|
-
case 0: return [4
|
|
364
|
+
case 0: return [4, context.endpoint()];
|
|
365
365
|
case 1:
|
|
366
366
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
367
367
|
headers = {};
|
|
@@ -376,7 +376,7 @@ export var serializeAws_restJson1GetMissionProfileCommand = function (input, con
|
|
|
376
376
|
else {
|
|
377
377
|
throw new Error("No value provided for input HTTP label: missionProfileId.");
|
|
378
378
|
}
|
|
379
|
-
return [2
|
|
379
|
+
return [2, new __HttpRequest({
|
|
380
380
|
protocol: protocol,
|
|
381
381
|
hostname: hostname,
|
|
382
382
|
port: port,
|
|
@@ -392,7 +392,7 @@ export var serializeAws_restJson1GetSatelliteCommand = function (input, context)
|
|
|
392
392
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
393
393
|
return __generator(this, function (_c) {
|
|
394
394
|
switch (_c.label) {
|
|
395
|
-
case 0: return [4
|
|
395
|
+
case 0: return [4, context.endpoint()];
|
|
396
396
|
case 1:
|
|
397
397
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
398
398
|
headers = {};
|
|
@@ -407,7 +407,7 @@ export var serializeAws_restJson1GetSatelliteCommand = function (input, context)
|
|
|
407
407
|
else {
|
|
408
408
|
throw new Error("No value provided for input HTTP label: satelliteId.");
|
|
409
409
|
}
|
|
410
|
-
return [2
|
|
410
|
+
return [2, new __HttpRequest({
|
|
411
411
|
protocol: protocol,
|
|
412
412
|
hostname: hostname,
|
|
413
413
|
port: port,
|
|
@@ -423,13 +423,13 @@ export var serializeAws_restJson1ListConfigsCommand = function (input, context)
|
|
|
423
423
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
424
424
|
return __generator(this, function (_c) {
|
|
425
425
|
switch (_c.label) {
|
|
426
|
-
case 0: return [4
|
|
426
|
+
case 0: return [4, context.endpoint()];
|
|
427
427
|
case 1:
|
|
428
428
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
429
429
|
headers = {};
|
|
430
430
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/config";
|
|
431
431
|
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
432
|
-
return [2
|
|
432
|
+
return [2, new __HttpRequest({
|
|
433
433
|
protocol: protocol,
|
|
434
434
|
hostname: hostname,
|
|
435
435
|
port: port,
|
|
@@ -446,7 +446,7 @@ export var serializeAws_restJson1ListContactsCommand = function (input, context)
|
|
|
446
446
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
447
447
|
return __generator(this, function (_c) {
|
|
448
448
|
switch (_c.label) {
|
|
449
|
-
case 0: return [4
|
|
449
|
+
case 0: return [4, context.endpoint()];
|
|
450
450
|
case 1:
|
|
451
451
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
452
452
|
headers = {
|
|
@@ -458,7 +458,7 @@ export var serializeAws_restJson1ListContactsCommand = function (input, context)
|
|
|
458
458
|
input.missionProfileArn !== null && { missionProfileArn: input.missionProfileArn })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.satelliteArn !== undefined && input.satelliteArn !== null && { satelliteArn: input.satelliteArn })), (input.startTime !== undefined &&
|
|
459
459
|
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) })), (input.statusList !== undefined &&
|
|
460
460
|
input.statusList !== null && { statusList: serializeAws_restJson1StatusList(input.statusList, context) })));
|
|
461
|
-
return [2
|
|
461
|
+
return [2, new __HttpRequest({
|
|
462
462
|
protocol: protocol,
|
|
463
463
|
hostname: hostname,
|
|
464
464
|
port: port,
|
|
@@ -474,13 +474,13 @@ export var serializeAws_restJson1ListDataflowEndpointGroupsCommand = function (i
|
|
|
474
474
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
475
475
|
return __generator(this, function (_c) {
|
|
476
476
|
switch (_c.label) {
|
|
477
|
-
case 0: return [4
|
|
477
|
+
case 0: return [4, context.endpoint()];
|
|
478
478
|
case 1:
|
|
479
479
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
480
480
|
headers = {};
|
|
481
481
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dataflowEndpointGroup";
|
|
482
482
|
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
483
|
-
return [2
|
|
483
|
+
return [2, new __HttpRequest({
|
|
484
484
|
protocol: protocol,
|
|
485
485
|
hostname: hostname,
|
|
486
486
|
port: port,
|
|
@@ -497,13 +497,13 @@ export var serializeAws_restJson1ListGroundStationsCommand = function (input, co
|
|
|
497
497
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
498
498
|
return __generator(this, function (_c) {
|
|
499
499
|
switch (_c.label) {
|
|
500
|
-
case 0: return [4
|
|
500
|
+
case 0: return [4, context.endpoint()];
|
|
501
501
|
case 1:
|
|
502
502
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
503
503
|
headers = {};
|
|
504
504
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/groundstation";
|
|
505
505
|
query = __assign(__assign(__assign({}, (input.satelliteId !== undefined && { satelliteId: input.satelliteId })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
506
|
-
return [2
|
|
506
|
+
return [2, new __HttpRequest({
|
|
507
507
|
protocol: protocol,
|
|
508
508
|
hostname: hostname,
|
|
509
509
|
port: port,
|
|
@@ -520,13 +520,13 @@ export var serializeAws_restJson1ListMissionProfilesCommand = function (input, c
|
|
|
520
520
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
521
521
|
return __generator(this, function (_c) {
|
|
522
522
|
switch (_c.label) {
|
|
523
|
-
case 0: return [4
|
|
523
|
+
case 0: return [4, context.endpoint()];
|
|
524
524
|
case 1:
|
|
525
525
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
526
526
|
headers = {};
|
|
527
527
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/missionprofile";
|
|
528
528
|
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
529
|
-
return [2
|
|
529
|
+
return [2, new __HttpRequest({
|
|
530
530
|
protocol: protocol,
|
|
531
531
|
hostname: hostname,
|
|
532
532
|
port: port,
|
|
@@ -543,13 +543,13 @@ export var serializeAws_restJson1ListSatellitesCommand = function (input, contex
|
|
|
543
543
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
544
544
|
return __generator(this, function (_c) {
|
|
545
545
|
switch (_c.label) {
|
|
546
|
-
case 0: return [4
|
|
546
|
+
case 0: return [4, context.endpoint()];
|
|
547
547
|
case 1:
|
|
548
548
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
549
549
|
headers = {};
|
|
550
550
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/satellite";
|
|
551
551
|
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
552
|
-
return [2
|
|
552
|
+
return [2, new __HttpRequest({
|
|
553
553
|
protocol: protocol,
|
|
554
554
|
hostname: hostname,
|
|
555
555
|
port: port,
|
|
@@ -566,7 +566,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
566
566
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
567
567
|
return __generator(this, function (_c) {
|
|
568
568
|
switch (_c.label) {
|
|
569
|
-
case 0: return [4
|
|
569
|
+
case 0: return [4, context.endpoint()];
|
|
570
570
|
case 1:
|
|
571
571
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
572
572
|
headers = {};
|
|
@@ -581,7 +581,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
581
581
|
else {
|
|
582
582
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
583
583
|
}
|
|
584
|
-
return [2
|
|
584
|
+
return [2, new __HttpRequest({
|
|
585
585
|
protocol: protocol,
|
|
586
586
|
hostname: hostname,
|
|
587
587
|
port: port,
|
|
@@ -597,7 +597,7 @@ export var serializeAws_restJson1ReserveContactCommand = function (input, contex
|
|
|
597
597
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
598
598
|
return __generator(this, function (_c) {
|
|
599
599
|
switch (_c.label) {
|
|
600
|
-
case 0: return [4
|
|
600
|
+
case 0: return [4, context.endpoint()];
|
|
601
601
|
case 1:
|
|
602
602
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
603
603
|
headers = {
|
|
@@ -609,7 +609,7 @@ export var serializeAws_restJson1ReserveContactCommand = function (input, contex
|
|
|
609
609
|
input.missionProfileArn !== null && { missionProfileArn: input.missionProfileArn })), (input.satelliteArn !== undefined && input.satelliteArn !== null && { satelliteArn: input.satelliteArn })), (input.startTime !== undefined &&
|
|
610
610
|
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) })), (input.tags !== undefined &&
|
|
611
611
|
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
612
|
-
return [2
|
|
612
|
+
return [2, new __HttpRequest({
|
|
613
613
|
protocol: protocol,
|
|
614
614
|
hostname: hostname,
|
|
615
615
|
port: port,
|
|
@@ -625,7 +625,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
625
625
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
626
626
|
return __generator(this, function (_c) {
|
|
627
627
|
switch (_c.label) {
|
|
628
|
-
case 0: return [4
|
|
628
|
+
case 0: return [4, context.endpoint()];
|
|
629
629
|
case 1:
|
|
630
630
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
631
631
|
headers = {
|
|
@@ -644,7 +644,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
644
644
|
}
|
|
645
645
|
body = JSON.stringify(__assign({}, (input.tags !== undefined &&
|
|
646
646
|
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
|
|
647
|
-
return [2
|
|
647
|
+
return [2, new __HttpRequest({
|
|
648
648
|
protocol: protocol,
|
|
649
649
|
hostname: hostname,
|
|
650
650
|
port: port,
|
|
@@ -660,7 +660,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
660
660
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
661
661
|
return __generator(this, function (_c) {
|
|
662
662
|
switch (_c.label) {
|
|
663
|
-
case 0: return [4
|
|
663
|
+
case 0: return [4, context.endpoint()];
|
|
664
664
|
case 1:
|
|
665
665
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
666
666
|
headers = {};
|
|
@@ -676,7 +676,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
676
676
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
677
677
|
}
|
|
678
678
|
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
679
|
-
return [2
|
|
679
|
+
return [2, new __HttpRequest({
|
|
680
680
|
protocol: protocol,
|
|
681
681
|
hostname: hostname,
|
|
682
682
|
port: port,
|
|
@@ -693,7 +693,7 @@ export var serializeAws_restJson1UpdateConfigCommand = function (input, context)
|
|
|
693
693
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
694
694
|
return __generator(this, function (_c) {
|
|
695
695
|
switch (_c.label) {
|
|
696
|
-
case 0: return [4
|
|
696
|
+
case 0: return [4, context.endpoint()];
|
|
697
697
|
case 1:
|
|
698
698
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
699
699
|
headers = {
|
|
@@ -722,7 +722,7 @@ export var serializeAws_restJson1UpdateConfigCommand = function (input, context)
|
|
|
722
722
|
}
|
|
723
723
|
body = JSON.stringify(__assign(__assign({}, (input.configData !== undefined &&
|
|
724
724
|
input.configData !== null && { configData: serializeAws_restJson1ConfigTypeData(input.configData, context) })), (input.name !== undefined && input.name !== null && { name: input.name })));
|
|
725
|
-
return [2
|
|
725
|
+
return [2, new __HttpRequest({
|
|
726
726
|
protocol: protocol,
|
|
727
727
|
hostname: hostname,
|
|
728
728
|
port: port,
|
|
@@ -738,7 +738,7 @@ export var serializeAws_restJson1UpdateMissionProfileCommand = function (input,
|
|
|
738
738
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
739
739
|
return __generator(this, function (_c) {
|
|
740
740
|
switch (_c.label) {
|
|
741
|
-
case 0: return [4
|
|
741
|
+
case 0: return [4, context.endpoint()];
|
|
742
742
|
case 1:
|
|
743
743
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
744
744
|
headers = {
|
|
@@ -769,7 +769,7 @@ export var serializeAws_restJson1UpdateMissionProfileCommand = function (input,
|
|
|
769
769
|
minimumViableContactDurationSeconds: input.minimumViableContactDurationSeconds,
|
|
770
770
|
})), (input.name !== undefined && input.name !== null && { name: input.name })), (input.trackingConfigArn !== undefined &&
|
|
771
771
|
input.trackingConfigArn !== null && { trackingConfigArn: input.trackingConfigArn })));
|
|
772
|
-
return [2
|
|
772
|
+
return [2, new __HttpRequest({
|
|
773
773
|
protocol: protocol,
|
|
774
774
|
hostname: hostname,
|
|
775
775
|
port: port,
|
|
@@ -787,7 +787,7 @@ export var deserializeAws_restJson1CancelContactCommand = function (output, cont
|
|
|
787
787
|
switch (_c.label) {
|
|
788
788
|
case 0:
|
|
789
789
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
790
|
-
return [2
|
|
790
|
+
return [2, deserializeAws_restJson1CancelContactCommandError(output, context)];
|
|
791
791
|
}
|
|
792
792
|
contents = {
|
|
793
793
|
$metadata: deserializeMetadata(output),
|
|
@@ -795,13 +795,13 @@ export var deserializeAws_restJson1CancelContactCommand = function (output, cont
|
|
|
795
795
|
};
|
|
796
796
|
_a = __expectNonNull;
|
|
797
797
|
_b = __expectObject;
|
|
798
|
-
return [4
|
|
798
|
+
return [4, parseBody(output.body, context)];
|
|
799
799
|
case 1:
|
|
800
800
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
801
801
|
if (data.contactId !== undefined && data.contactId !== null) {
|
|
802
802
|
contents.contactId = __expectString(data.contactId);
|
|
803
803
|
}
|
|
804
|
-
return [2
|
|
804
|
+
return [2, Promise.resolve(contents)];
|
|
805
805
|
}
|
|
806
806
|
});
|
|
807
807
|
}); };
|
|
@@ -813,39 +813,39 @@ var deserializeAws_restJson1CancelContactCommandError = function (output, contex
|
|
|
813
813
|
case 0:
|
|
814
814
|
_a = [__assign({}, output)];
|
|
815
815
|
_f = {};
|
|
816
|
-
return [4
|
|
816
|
+
return [4, parseBody(output.body, context)];
|
|
817
817
|
case 1:
|
|
818
818
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
819
819
|
errorCode = "UnknownError";
|
|
820
820
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
821
821
|
_b = errorCode;
|
|
822
822
|
switch (_b) {
|
|
823
|
-
case "DependencyException": return [3
|
|
824
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
825
|
-
case "InvalidParameterException": return [3
|
|
826
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
827
|
-
case "ResourceNotFoundException": return [3
|
|
828
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
829
|
-
}
|
|
830
|
-
return [3
|
|
823
|
+
case "DependencyException": return [3, 2];
|
|
824
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
825
|
+
case "InvalidParameterException": return [3, 4];
|
|
826
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
827
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
828
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
829
|
+
}
|
|
830
|
+
return [3, 8];
|
|
831
831
|
case 2:
|
|
832
832
|
_c = [{}];
|
|
833
|
-
return [4
|
|
833
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
834
834
|
case 3:
|
|
835
835
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
836
|
-
return [3
|
|
836
|
+
return [3, 9];
|
|
837
837
|
case 4:
|
|
838
838
|
_d = [{}];
|
|
839
|
-
return [4
|
|
839
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
840
840
|
case 5:
|
|
841
841
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
842
|
-
return [3
|
|
842
|
+
return [3, 9];
|
|
843
843
|
case 6:
|
|
844
844
|
_e = [{}];
|
|
845
|
-
return [4
|
|
845
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
846
846
|
case 7:
|
|
847
847
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
848
|
-
return [3
|
|
848
|
+
return [3, 9];
|
|
849
849
|
case 8:
|
|
850
850
|
parsedBody = parsedOutput.body;
|
|
851
851
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -855,7 +855,7 @@ var deserializeAws_restJson1CancelContactCommandError = function (output, contex
|
|
|
855
855
|
message = response.message || response.Message || errorCode;
|
|
856
856
|
response.message = message;
|
|
857
857
|
delete response.Message;
|
|
858
|
-
return [2
|
|
858
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
859
859
|
}
|
|
860
860
|
});
|
|
861
861
|
}); };
|
|
@@ -865,7 +865,7 @@ export var deserializeAws_restJson1CreateConfigCommand = function (output, conte
|
|
|
865
865
|
switch (_c.label) {
|
|
866
866
|
case 0:
|
|
867
867
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
868
|
-
return [2
|
|
868
|
+
return [2, deserializeAws_restJson1CreateConfigCommandError(output, context)];
|
|
869
869
|
}
|
|
870
870
|
contents = {
|
|
871
871
|
$metadata: deserializeMetadata(output),
|
|
@@ -875,7 +875,7 @@ export var deserializeAws_restJson1CreateConfigCommand = function (output, conte
|
|
|
875
875
|
};
|
|
876
876
|
_a = __expectNonNull;
|
|
877
877
|
_b = __expectObject;
|
|
878
|
-
return [4
|
|
878
|
+
return [4, parseBody(output.body, context)];
|
|
879
879
|
case 1:
|
|
880
880
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
881
881
|
if (data.configArn !== undefined && data.configArn !== null) {
|
|
@@ -887,7 +887,7 @@ export var deserializeAws_restJson1CreateConfigCommand = function (output, conte
|
|
|
887
887
|
if (data.configType !== undefined && data.configType !== null) {
|
|
888
888
|
contents.configType = __expectString(data.configType);
|
|
889
889
|
}
|
|
890
|
-
return [2
|
|
890
|
+
return [2, Promise.resolve(contents)];
|
|
891
891
|
}
|
|
892
892
|
});
|
|
893
893
|
}); };
|
|
@@ -899,47 +899,47 @@ var deserializeAws_restJson1CreateConfigCommandError = function (output, context
|
|
|
899
899
|
case 0:
|
|
900
900
|
_a = [__assign({}, output)];
|
|
901
901
|
_g = {};
|
|
902
|
-
return [4
|
|
902
|
+
return [4, parseBody(output.body, context)];
|
|
903
903
|
case 1:
|
|
904
904
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
905
905
|
errorCode = "UnknownError";
|
|
906
906
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
907
907
|
_b = errorCode;
|
|
908
908
|
switch (_b) {
|
|
909
|
-
case "DependencyException": return [3
|
|
910
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
911
|
-
case "InvalidParameterException": return [3
|
|
912
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
913
|
-
case "ResourceLimitExceededException": return [3
|
|
914
|
-
case "com.amazonaws.groundstation#ResourceLimitExceededException": return [3
|
|
915
|
-
case "ResourceNotFoundException": return [3
|
|
916
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
917
|
-
}
|
|
918
|
-
return [3
|
|
909
|
+
case "DependencyException": return [3, 2];
|
|
910
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
911
|
+
case "InvalidParameterException": return [3, 4];
|
|
912
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
913
|
+
case "ResourceLimitExceededException": return [3, 6];
|
|
914
|
+
case "com.amazonaws.groundstation#ResourceLimitExceededException": return [3, 6];
|
|
915
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
916
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 8];
|
|
917
|
+
}
|
|
918
|
+
return [3, 10];
|
|
919
919
|
case 2:
|
|
920
920
|
_c = [{}];
|
|
921
|
-
return [4
|
|
921
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
922
922
|
case 3:
|
|
923
923
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
924
|
-
return [3
|
|
924
|
+
return [3, 11];
|
|
925
925
|
case 4:
|
|
926
926
|
_d = [{}];
|
|
927
|
-
return [4
|
|
927
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
928
928
|
case 5:
|
|
929
929
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
930
|
-
return [3
|
|
930
|
+
return [3, 11];
|
|
931
931
|
case 6:
|
|
932
932
|
_e = [{}];
|
|
933
|
-
return [4
|
|
933
|
+
return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
934
934
|
case 7:
|
|
935
935
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
936
|
-
return [3
|
|
936
|
+
return [3, 11];
|
|
937
937
|
case 8:
|
|
938
938
|
_f = [{}];
|
|
939
|
-
return [4
|
|
939
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
940
940
|
case 9:
|
|
941
941
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
942
|
-
return [3
|
|
942
|
+
return [3, 11];
|
|
943
943
|
case 10:
|
|
944
944
|
parsedBody = parsedOutput.body;
|
|
945
945
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -949,7 +949,7 @@ var deserializeAws_restJson1CreateConfigCommandError = function (output, context
|
|
|
949
949
|
message = response.message || response.Message || errorCode;
|
|
950
950
|
response.message = message;
|
|
951
951
|
delete response.Message;
|
|
952
|
-
return [2
|
|
952
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
953
953
|
}
|
|
954
954
|
});
|
|
955
955
|
}); };
|
|
@@ -959,7 +959,7 @@ export var deserializeAws_restJson1CreateDataflowEndpointGroupCommand = function
|
|
|
959
959
|
switch (_c.label) {
|
|
960
960
|
case 0:
|
|
961
961
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
962
|
-
return [2
|
|
962
|
+
return [2, deserializeAws_restJson1CreateDataflowEndpointGroupCommandError(output, context)];
|
|
963
963
|
}
|
|
964
964
|
contents = {
|
|
965
965
|
$metadata: deserializeMetadata(output),
|
|
@@ -967,13 +967,13 @@ export var deserializeAws_restJson1CreateDataflowEndpointGroupCommand = function
|
|
|
967
967
|
};
|
|
968
968
|
_a = __expectNonNull;
|
|
969
969
|
_b = __expectObject;
|
|
970
|
-
return [4
|
|
970
|
+
return [4, parseBody(output.body, context)];
|
|
971
971
|
case 1:
|
|
972
972
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
973
973
|
if (data.dataflowEndpointGroupId !== undefined && data.dataflowEndpointGroupId !== null) {
|
|
974
974
|
contents.dataflowEndpointGroupId = __expectString(data.dataflowEndpointGroupId);
|
|
975
975
|
}
|
|
976
|
-
return [2
|
|
976
|
+
return [2, Promise.resolve(contents)];
|
|
977
977
|
}
|
|
978
978
|
});
|
|
979
979
|
}); };
|
|
@@ -985,39 +985,39 @@ var deserializeAws_restJson1CreateDataflowEndpointGroupCommandError = function (
|
|
|
985
985
|
case 0:
|
|
986
986
|
_a = [__assign({}, output)];
|
|
987
987
|
_f = {};
|
|
988
|
-
return [4
|
|
988
|
+
return [4, parseBody(output.body, context)];
|
|
989
989
|
case 1:
|
|
990
990
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
991
991
|
errorCode = "UnknownError";
|
|
992
992
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
993
993
|
_b = errorCode;
|
|
994
994
|
switch (_b) {
|
|
995
|
-
case "DependencyException": return [3
|
|
996
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
997
|
-
case "InvalidParameterException": return [3
|
|
998
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
999
|
-
case "ResourceNotFoundException": return [3
|
|
1000
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
1001
|
-
}
|
|
1002
|
-
return [3
|
|
995
|
+
case "DependencyException": return [3, 2];
|
|
996
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
997
|
+
case "InvalidParameterException": return [3, 4];
|
|
998
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
999
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1000
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
1001
|
+
}
|
|
1002
|
+
return [3, 8];
|
|
1003
1003
|
case 2:
|
|
1004
1004
|
_c = [{}];
|
|
1005
|
-
return [4
|
|
1005
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
1006
1006
|
case 3:
|
|
1007
1007
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1008
|
-
return [3
|
|
1008
|
+
return [3, 9];
|
|
1009
1009
|
case 4:
|
|
1010
1010
|
_d = [{}];
|
|
1011
|
-
return [4
|
|
1011
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1012
1012
|
case 5:
|
|
1013
1013
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1014
|
-
return [3
|
|
1014
|
+
return [3, 9];
|
|
1015
1015
|
case 6:
|
|
1016
1016
|
_e = [{}];
|
|
1017
|
-
return [4
|
|
1017
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1018
1018
|
case 7:
|
|
1019
1019
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1020
|
-
return [3
|
|
1020
|
+
return [3, 9];
|
|
1021
1021
|
case 8:
|
|
1022
1022
|
parsedBody = parsedOutput.body;
|
|
1023
1023
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1027,7 +1027,7 @@ var deserializeAws_restJson1CreateDataflowEndpointGroupCommandError = function (
|
|
|
1027
1027
|
message = response.message || response.Message || errorCode;
|
|
1028
1028
|
response.message = message;
|
|
1029
1029
|
delete response.Message;
|
|
1030
|
-
return [2
|
|
1030
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1031
1031
|
}
|
|
1032
1032
|
});
|
|
1033
1033
|
}); };
|
|
@@ -1037,7 +1037,7 @@ export var deserializeAws_restJson1CreateMissionProfileCommand = function (outpu
|
|
|
1037
1037
|
switch (_c.label) {
|
|
1038
1038
|
case 0:
|
|
1039
1039
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1040
|
-
return [2
|
|
1040
|
+
return [2, deserializeAws_restJson1CreateMissionProfileCommandError(output, context)];
|
|
1041
1041
|
}
|
|
1042
1042
|
contents = {
|
|
1043
1043
|
$metadata: deserializeMetadata(output),
|
|
@@ -1045,13 +1045,13 @@ export var deserializeAws_restJson1CreateMissionProfileCommand = function (outpu
|
|
|
1045
1045
|
};
|
|
1046
1046
|
_a = __expectNonNull;
|
|
1047
1047
|
_b = __expectObject;
|
|
1048
|
-
return [4
|
|
1048
|
+
return [4, parseBody(output.body, context)];
|
|
1049
1049
|
case 1:
|
|
1050
1050
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1051
1051
|
if (data.missionProfileId !== undefined && data.missionProfileId !== null) {
|
|
1052
1052
|
contents.missionProfileId = __expectString(data.missionProfileId);
|
|
1053
1053
|
}
|
|
1054
|
-
return [2
|
|
1054
|
+
return [2, Promise.resolve(contents)];
|
|
1055
1055
|
}
|
|
1056
1056
|
});
|
|
1057
1057
|
}); };
|
|
@@ -1063,39 +1063,39 @@ var deserializeAws_restJson1CreateMissionProfileCommandError = function (output,
|
|
|
1063
1063
|
case 0:
|
|
1064
1064
|
_a = [__assign({}, output)];
|
|
1065
1065
|
_f = {};
|
|
1066
|
-
return [4
|
|
1066
|
+
return [4, parseBody(output.body, context)];
|
|
1067
1067
|
case 1:
|
|
1068
1068
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1069
1069
|
errorCode = "UnknownError";
|
|
1070
1070
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1071
1071
|
_b = errorCode;
|
|
1072
1072
|
switch (_b) {
|
|
1073
|
-
case "DependencyException": return [3
|
|
1074
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
1075
|
-
case "InvalidParameterException": return [3
|
|
1076
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
1077
|
-
case "ResourceNotFoundException": return [3
|
|
1078
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
1079
|
-
}
|
|
1080
|
-
return [3
|
|
1073
|
+
case "DependencyException": return [3, 2];
|
|
1074
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
1075
|
+
case "InvalidParameterException": return [3, 4];
|
|
1076
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
1077
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1078
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
1079
|
+
}
|
|
1080
|
+
return [3, 8];
|
|
1081
1081
|
case 2:
|
|
1082
1082
|
_c = [{}];
|
|
1083
|
-
return [4
|
|
1083
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
1084
1084
|
case 3:
|
|
1085
1085
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1086
|
-
return [3
|
|
1086
|
+
return [3, 9];
|
|
1087
1087
|
case 4:
|
|
1088
1088
|
_d = [{}];
|
|
1089
|
-
return [4
|
|
1089
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1090
1090
|
case 5:
|
|
1091
1091
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1092
|
-
return [3
|
|
1092
|
+
return [3, 9];
|
|
1093
1093
|
case 6:
|
|
1094
1094
|
_e = [{}];
|
|
1095
|
-
return [4
|
|
1095
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1096
1096
|
case 7:
|
|
1097
1097
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1098
|
-
return [3
|
|
1098
|
+
return [3, 9];
|
|
1099
1099
|
case 8:
|
|
1100
1100
|
parsedBody = parsedOutput.body;
|
|
1101
1101
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1105,7 +1105,7 @@ var deserializeAws_restJson1CreateMissionProfileCommandError = function (output,
|
|
|
1105
1105
|
message = response.message || response.Message || errorCode;
|
|
1106
1106
|
response.message = message;
|
|
1107
1107
|
delete response.Message;
|
|
1108
|
-
return [2
|
|
1108
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1109
1109
|
}
|
|
1110
1110
|
});
|
|
1111
1111
|
}); };
|
|
@@ -1115,7 +1115,7 @@ export var deserializeAws_restJson1DeleteConfigCommand = function (output, conte
|
|
|
1115
1115
|
switch (_c.label) {
|
|
1116
1116
|
case 0:
|
|
1117
1117
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1118
|
-
return [2
|
|
1118
|
+
return [2, deserializeAws_restJson1DeleteConfigCommandError(output, context)];
|
|
1119
1119
|
}
|
|
1120
1120
|
contents = {
|
|
1121
1121
|
$metadata: deserializeMetadata(output),
|
|
@@ -1125,7 +1125,7 @@ export var deserializeAws_restJson1DeleteConfigCommand = function (output, conte
|
|
|
1125
1125
|
};
|
|
1126
1126
|
_a = __expectNonNull;
|
|
1127
1127
|
_b = __expectObject;
|
|
1128
|
-
return [4
|
|
1128
|
+
return [4, parseBody(output.body, context)];
|
|
1129
1129
|
case 1:
|
|
1130
1130
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1131
1131
|
if (data.configArn !== undefined && data.configArn !== null) {
|
|
@@ -1137,7 +1137,7 @@ export var deserializeAws_restJson1DeleteConfigCommand = function (output, conte
|
|
|
1137
1137
|
if (data.configType !== undefined && data.configType !== null) {
|
|
1138
1138
|
contents.configType = __expectString(data.configType);
|
|
1139
1139
|
}
|
|
1140
|
-
return [2
|
|
1140
|
+
return [2, Promise.resolve(contents)];
|
|
1141
1141
|
}
|
|
1142
1142
|
});
|
|
1143
1143
|
}); };
|
|
@@ -1149,39 +1149,39 @@ var deserializeAws_restJson1DeleteConfigCommandError = function (output, context
|
|
|
1149
1149
|
case 0:
|
|
1150
1150
|
_a = [__assign({}, output)];
|
|
1151
1151
|
_f = {};
|
|
1152
|
-
return [4
|
|
1152
|
+
return [4, parseBody(output.body, context)];
|
|
1153
1153
|
case 1:
|
|
1154
1154
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1155
1155
|
errorCode = "UnknownError";
|
|
1156
1156
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
1157
|
_b = errorCode;
|
|
1158
1158
|
switch (_b) {
|
|
1159
|
-
case "DependencyException": return [3
|
|
1160
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
1161
|
-
case "InvalidParameterException": return [3
|
|
1162
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
1163
|
-
case "ResourceNotFoundException": return [3
|
|
1164
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
1165
|
-
}
|
|
1166
|
-
return [3
|
|
1159
|
+
case "DependencyException": return [3, 2];
|
|
1160
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
1161
|
+
case "InvalidParameterException": return [3, 4];
|
|
1162
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
1163
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1164
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
1165
|
+
}
|
|
1166
|
+
return [3, 8];
|
|
1167
1167
|
case 2:
|
|
1168
1168
|
_c = [{}];
|
|
1169
|
-
return [4
|
|
1169
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
1170
1170
|
case 3:
|
|
1171
1171
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1172
|
-
return [3
|
|
1172
|
+
return [3, 9];
|
|
1173
1173
|
case 4:
|
|
1174
1174
|
_d = [{}];
|
|
1175
|
-
return [4
|
|
1175
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1176
1176
|
case 5:
|
|
1177
1177
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1178
|
-
return [3
|
|
1178
|
+
return [3, 9];
|
|
1179
1179
|
case 6:
|
|
1180
1180
|
_e = [{}];
|
|
1181
|
-
return [4
|
|
1181
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1182
1182
|
case 7:
|
|
1183
1183
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1184
|
-
return [3
|
|
1184
|
+
return [3, 9];
|
|
1185
1185
|
case 8:
|
|
1186
1186
|
parsedBody = parsedOutput.body;
|
|
1187
1187
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1191,7 +1191,7 @@ var deserializeAws_restJson1DeleteConfigCommandError = function (output, context
|
|
|
1191
1191
|
message = response.message || response.Message || errorCode;
|
|
1192
1192
|
response.message = message;
|
|
1193
1193
|
delete response.Message;
|
|
1194
|
-
return [2
|
|
1194
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1195
1195
|
}
|
|
1196
1196
|
});
|
|
1197
1197
|
}); };
|
|
@@ -1201,7 +1201,7 @@ export var deserializeAws_restJson1DeleteDataflowEndpointGroupCommand = function
|
|
|
1201
1201
|
switch (_c.label) {
|
|
1202
1202
|
case 0:
|
|
1203
1203
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1204
|
-
return [2
|
|
1204
|
+
return [2, deserializeAws_restJson1DeleteDataflowEndpointGroupCommandError(output, context)];
|
|
1205
1205
|
}
|
|
1206
1206
|
contents = {
|
|
1207
1207
|
$metadata: deserializeMetadata(output),
|
|
@@ -1209,13 +1209,13 @@ export var deserializeAws_restJson1DeleteDataflowEndpointGroupCommand = function
|
|
|
1209
1209
|
};
|
|
1210
1210
|
_a = __expectNonNull;
|
|
1211
1211
|
_b = __expectObject;
|
|
1212
|
-
return [4
|
|
1212
|
+
return [4, parseBody(output.body, context)];
|
|
1213
1213
|
case 1:
|
|
1214
1214
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1215
1215
|
if (data.dataflowEndpointGroupId !== undefined && data.dataflowEndpointGroupId !== null) {
|
|
1216
1216
|
contents.dataflowEndpointGroupId = __expectString(data.dataflowEndpointGroupId);
|
|
1217
1217
|
}
|
|
1218
|
-
return [2
|
|
1218
|
+
return [2, Promise.resolve(contents)];
|
|
1219
1219
|
}
|
|
1220
1220
|
});
|
|
1221
1221
|
}); };
|
|
@@ -1227,39 +1227,39 @@ var deserializeAws_restJson1DeleteDataflowEndpointGroupCommandError = function (
|
|
|
1227
1227
|
case 0:
|
|
1228
1228
|
_a = [__assign({}, output)];
|
|
1229
1229
|
_f = {};
|
|
1230
|
-
return [4
|
|
1230
|
+
return [4, parseBody(output.body, context)];
|
|
1231
1231
|
case 1:
|
|
1232
1232
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1233
1233
|
errorCode = "UnknownError";
|
|
1234
1234
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1235
1235
|
_b = errorCode;
|
|
1236
1236
|
switch (_b) {
|
|
1237
|
-
case "DependencyException": return [3
|
|
1238
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
1239
|
-
case "InvalidParameterException": return [3
|
|
1240
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
1241
|
-
case "ResourceNotFoundException": return [3
|
|
1242
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
1243
|
-
}
|
|
1244
|
-
return [3
|
|
1237
|
+
case "DependencyException": return [3, 2];
|
|
1238
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
1239
|
+
case "InvalidParameterException": return [3, 4];
|
|
1240
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
1241
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1242
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
1243
|
+
}
|
|
1244
|
+
return [3, 8];
|
|
1245
1245
|
case 2:
|
|
1246
1246
|
_c = [{}];
|
|
1247
|
-
return [4
|
|
1247
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
1248
1248
|
case 3:
|
|
1249
1249
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1250
|
-
return [3
|
|
1250
|
+
return [3, 9];
|
|
1251
1251
|
case 4:
|
|
1252
1252
|
_d = [{}];
|
|
1253
|
-
return [4
|
|
1253
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1254
1254
|
case 5:
|
|
1255
1255
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1256
|
-
return [3
|
|
1256
|
+
return [3, 9];
|
|
1257
1257
|
case 6:
|
|
1258
1258
|
_e = [{}];
|
|
1259
|
-
return [4
|
|
1259
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1260
1260
|
case 7:
|
|
1261
1261
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1262
|
-
return [3
|
|
1262
|
+
return [3, 9];
|
|
1263
1263
|
case 8:
|
|
1264
1264
|
parsedBody = parsedOutput.body;
|
|
1265
1265
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1269,7 +1269,7 @@ var deserializeAws_restJson1DeleteDataflowEndpointGroupCommandError = function (
|
|
|
1269
1269
|
message = response.message || response.Message || errorCode;
|
|
1270
1270
|
response.message = message;
|
|
1271
1271
|
delete response.Message;
|
|
1272
|
-
return [2
|
|
1272
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1273
1273
|
}
|
|
1274
1274
|
});
|
|
1275
1275
|
}); };
|
|
@@ -1279,7 +1279,7 @@ export var deserializeAws_restJson1DeleteMissionProfileCommand = function (outpu
|
|
|
1279
1279
|
switch (_c.label) {
|
|
1280
1280
|
case 0:
|
|
1281
1281
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1282
|
-
return [2
|
|
1282
|
+
return [2, deserializeAws_restJson1DeleteMissionProfileCommandError(output, context)];
|
|
1283
1283
|
}
|
|
1284
1284
|
contents = {
|
|
1285
1285
|
$metadata: deserializeMetadata(output),
|
|
@@ -1287,13 +1287,13 @@ export var deserializeAws_restJson1DeleteMissionProfileCommand = function (outpu
|
|
|
1287
1287
|
};
|
|
1288
1288
|
_a = __expectNonNull;
|
|
1289
1289
|
_b = __expectObject;
|
|
1290
|
-
return [4
|
|
1290
|
+
return [4, parseBody(output.body, context)];
|
|
1291
1291
|
case 1:
|
|
1292
1292
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1293
1293
|
if (data.missionProfileId !== undefined && data.missionProfileId !== null) {
|
|
1294
1294
|
contents.missionProfileId = __expectString(data.missionProfileId);
|
|
1295
1295
|
}
|
|
1296
|
-
return [2
|
|
1296
|
+
return [2, Promise.resolve(contents)];
|
|
1297
1297
|
}
|
|
1298
1298
|
});
|
|
1299
1299
|
}); };
|
|
@@ -1305,39 +1305,39 @@ var deserializeAws_restJson1DeleteMissionProfileCommandError = function (output,
|
|
|
1305
1305
|
case 0:
|
|
1306
1306
|
_a = [__assign({}, output)];
|
|
1307
1307
|
_f = {};
|
|
1308
|
-
return [4
|
|
1308
|
+
return [4, parseBody(output.body, context)];
|
|
1309
1309
|
case 1:
|
|
1310
1310
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1311
1311
|
errorCode = "UnknownError";
|
|
1312
1312
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1313
1313
|
_b = errorCode;
|
|
1314
1314
|
switch (_b) {
|
|
1315
|
-
case "DependencyException": return [3
|
|
1316
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
1317
|
-
case "InvalidParameterException": return [3
|
|
1318
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
1319
|
-
case "ResourceNotFoundException": return [3
|
|
1320
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
1321
|
-
}
|
|
1322
|
-
return [3
|
|
1315
|
+
case "DependencyException": return [3, 2];
|
|
1316
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
1317
|
+
case "InvalidParameterException": return [3, 4];
|
|
1318
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
1319
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1320
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
1321
|
+
}
|
|
1322
|
+
return [3, 8];
|
|
1323
1323
|
case 2:
|
|
1324
1324
|
_c = [{}];
|
|
1325
|
-
return [4
|
|
1325
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
1326
1326
|
case 3:
|
|
1327
1327
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1328
|
-
return [3
|
|
1328
|
+
return [3, 9];
|
|
1329
1329
|
case 4:
|
|
1330
1330
|
_d = [{}];
|
|
1331
|
-
return [4
|
|
1331
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1332
1332
|
case 5:
|
|
1333
1333
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1334
|
-
return [3
|
|
1334
|
+
return [3, 9];
|
|
1335
1335
|
case 6:
|
|
1336
1336
|
_e = [{}];
|
|
1337
|
-
return [4
|
|
1337
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1338
1338
|
case 7:
|
|
1339
1339
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1340
|
-
return [3
|
|
1340
|
+
return [3, 9];
|
|
1341
1341
|
case 8:
|
|
1342
1342
|
parsedBody = parsedOutput.body;
|
|
1343
1343
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1347,7 +1347,7 @@ var deserializeAws_restJson1DeleteMissionProfileCommandError = function (output,
|
|
|
1347
1347
|
message = response.message || response.Message || errorCode;
|
|
1348
1348
|
response.message = message;
|
|
1349
1349
|
delete response.Message;
|
|
1350
|
-
return [2
|
|
1350
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1351
1351
|
}
|
|
1352
1352
|
});
|
|
1353
1353
|
}); };
|
|
@@ -1357,7 +1357,7 @@ export var deserializeAws_restJson1DescribeContactCommand = function (output, co
|
|
|
1357
1357
|
switch (_c.label) {
|
|
1358
1358
|
case 0:
|
|
1359
1359
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1360
|
-
return [2
|
|
1360
|
+
return [2, deserializeAws_restJson1DescribeContactCommandError(output, context)];
|
|
1361
1361
|
}
|
|
1362
1362
|
contents = {
|
|
1363
1363
|
$metadata: deserializeMetadata(output),
|
|
@@ -1378,7 +1378,7 @@ export var deserializeAws_restJson1DescribeContactCommand = function (output, co
|
|
|
1378
1378
|
};
|
|
1379
1379
|
_a = __expectNonNull;
|
|
1380
1380
|
_b = __expectObject;
|
|
1381
|
-
return [4
|
|
1381
|
+
return [4, parseBody(output.body, context)];
|
|
1382
1382
|
case 1:
|
|
1383
1383
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1384
1384
|
if (data.contactId !== undefined && data.contactId !== null) {
|
|
@@ -1423,7 +1423,7 @@ export var deserializeAws_restJson1DescribeContactCommand = function (output, co
|
|
|
1423
1423
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1424
1424
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1425
1425
|
}
|
|
1426
|
-
return [2
|
|
1426
|
+
return [2, Promise.resolve(contents)];
|
|
1427
1427
|
}
|
|
1428
1428
|
});
|
|
1429
1429
|
}); };
|
|
@@ -1435,39 +1435,39 @@ var deserializeAws_restJson1DescribeContactCommandError = function (output, cont
|
|
|
1435
1435
|
case 0:
|
|
1436
1436
|
_a = [__assign({}, output)];
|
|
1437
1437
|
_f = {};
|
|
1438
|
-
return [4
|
|
1438
|
+
return [4, parseBody(output.body, context)];
|
|
1439
1439
|
case 1:
|
|
1440
1440
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1441
1441
|
errorCode = "UnknownError";
|
|
1442
1442
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
1443
|
_b = errorCode;
|
|
1444
1444
|
switch (_b) {
|
|
1445
|
-
case "DependencyException": return [3
|
|
1446
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
1447
|
-
case "InvalidParameterException": return [3
|
|
1448
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
1449
|
-
case "ResourceNotFoundException": return [3
|
|
1450
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
1451
|
-
}
|
|
1452
|
-
return [3
|
|
1445
|
+
case "DependencyException": return [3, 2];
|
|
1446
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
1447
|
+
case "InvalidParameterException": return [3, 4];
|
|
1448
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
1449
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1450
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
1451
|
+
}
|
|
1452
|
+
return [3, 8];
|
|
1453
1453
|
case 2:
|
|
1454
1454
|
_c = [{}];
|
|
1455
|
-
return [4
|
|
1455
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
1456
1456
|
case 3:
|
|
1457
1457
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1458
|
-
return [3
|
|
1458
|
+
return [3, 9];
|
|
1459
1459
|
case 4:
|
|
1460
1460
|
_d = [{}];
|
|
1461
|
-
return [4
|
|
1461
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1462
1462
|
case 5:
|
|
1463
1463
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1464
|
-
return [3
|
|
1464
|
+
return [3, 9];
|
|
1465
1465
|
case 6:
|
|
1466
1466
|
_e = [{}];
|
|
1467
|
-
return [4
|
|
1467
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1468
1468
|
case 7:
|
|
1469
1469
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1470
|
-
return [3
|
|
1470
|
+
return [3, 9];
|
|
1471
1471
|
case 8:
|
|
1472
1472
|
parsedBody = parsedOutput.body;
|
|
1473
1473
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1477,7 +1477,7 @@ var deserializeAws_restJson1DescribeContactCommandError = function (output, cont
|
|
|
1477
1477
|
message = response.message || response.Message || errorCode;
|
|
1478
1478
|
response.message = message;
|
|
1479
1479
|
delete response.Message;
|
|
1480
|
-
return [2
|
|
1480
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1481
1481
|
}
|
|
1482
1482
|
});
|
|
1483
1483
|
}); };
|
|
@@ -1487,7 +1487,7 @@ export var deserializeAws_restJson1GetConfigCommand = function (output, context)
|
|
|
1487
1487
|
switch (_c.label) {
|
|
1488
1488
|
case 0:
|
|
1489
1489
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1490
|
-
return [2
|
|
1490
|
+
return [2, deserializeAws_restJson1GetConfigCommandError(output, context)];
|
|
1491
1491
|
}
|
|
1492
1492
|
contents = {
|
|
1493
1493
|
$metadata: deserializeMetadata(output),
|
|
@@ -1500,7 +1500,7 @@ export var deserializeAws_restJson1GetConfigCommand = function (output, context)
|
|
|
1500
1500
|
};
|
|
1501
1501
|
_a = __expectNonNull;
|
|
1502
1502
|
_b = __expectObject;
|
|
1503
|
-
return [4
|
|
1503
|
+
return [4, parseBody(output.body, context)];
|
|
1504
1504
|
case 1:
|
|
1505
1505
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1506
1506
|
if (data.configArn !== undefined && data.configArn !== null) {
|
|
@@ -1521,7 +1521,7 @@ export var deserializeAws_restJson1GetConfigCommand = function (output, context)
|
|
|
1521
1521
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1522
1522
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1523
1523
|
}
|
|
1524
|
-
return [2
|
|
1524
|
+
return [2, Promise.resolve(contents)];
|
|
1525
1525
|
}
|
|
1526
1526
|
});
|
|
1527
1527
|
}); };
|
|
@@ -1533,39 +1533,39 @@ var deserializeAws_restJson1GetConfigCommandError = function (output, context) {
|
|
|
1533
1533
|
case 0:
|
|
1534
1534
|
_a = [__assign({}, output)];
|
|
1535
1535
|
_f = {};
|
|
1536
|
-
return [4
|
|
1536
|
+
return [4, parseBody(output.body, context)];
|
|
1537
1537
|
case 1:
|
|
1538
1538
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1539
1539
|
errorCode = "UnknownError";
|
|
1540
1540
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1541
1541
|
_b = errorCode;
|
|
1542
1542
|
switch (_b) {
|
|
1543
|
-
case "DependencyException": return [3
|
|
1544
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
1545
|
-
case "InvalidParameterException": return [3
|
|
1546
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
1547
|
-
case "ResourceNotFoundException": return [3
|
|
1548
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
1549
|
-
}
|
|
1550
|
-
return [3
|
|
1543
|
+
case "DependencyException": return [3, 2];
|
|
1544
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
1545
|
+
case "InvalidParameterException": return [3, 4];
|
|
1546
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
1547
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1548
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
1549
|
+
}
|
|
1550
|
+
return [3, 8];
|
|
1551
1551
|
case 2:
|
|
1552
1552
|
_c = [{}];
|
|
1553
|
-
return [4
|
|
1553
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
1554
1554
|
case 3:
|
|
1555
1555
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1556
|
-
return [3
|
|
1556
|
+
return [3, 9];
|
|
1557
1557
|
case 4:
|
|
1558
1558
|
_d = [{}];
|
|
1559
|
-
return [4
|
|
1559
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1560
1560
|
case 5:
|
|
1561
1561
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1562
|
-
return [3
|
|
1562
|
+
return [3, 9];
|
|
1563
1563
|
case 6:
|
|
1564
1564
|
_e = [{}];
|
|
1565
|
-
return [4
|
|
1565
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1566
1566
|
case 7:
|
|
1567
1567
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1568
|
-
return [3
|
|
1568
|
+
return [3, 9];
|
|
1569
1569
|
case 8:
|
|
1570
1570
|
parsedBody = parsedOutput.body;
|
|
1571
1571
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1575,7 +1575,7 @@ var deserializeAws_restJson1GetConfigCommandError = function (output, context) {
|
|
|
1575
1575
|
message = response.message || response.Message || errorCode;
|
|
1576
1576
|
response.message = message;
|
|
1577
1577
|
delete response.Message;
|
|
1578
|
-
return [2
|
|
1578
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1579
1579
|
}
|
|
1580
1580
|
});
|
|
1581
1581
|
}); };
|
|
@@ -1585,7 +1585,7 @@ export var deserializeAws_restJson1GetDataflowEndpointGroupCommand = function (o
|
|
|
1585
1585
|
switch (_c.label) {
|
|
1586
1586
|
case 0:
|
|
1587
1587
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1588
|
-
return [2
|
|
1588
|
+
return [2, deserializeAws_restJson1GetDataflowEndpointGroupCommandError(output, context)];
|
|
1589
1589
|
}
|
|
1590
1590
|
contents = {
|
|
1591
1591
|
$metadata: deserializeMetadata(output),
|
|
@@ -1596,7 +1596,7 @@ export var deserializeAws_restJson1GetDataflowEndpointGroupCommand = function (o
|
|
|
1596
1596
|
};
|
|
1597
1597
|
_a = __expectNonNull;
|
|
1598
1598
|
_b = __expectObject;
|
|
1599
|
-
return [4
|
|
1599
|
+
return [4, parseBody(output.body, context)];
|
|
1600
1600
|
case 1:
|
|
1601
1601
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1602
1602
|
if (data.dataflowEndpointGroupArn !== undefined && data.dataflowEndpointGroupArn !== null) {
|
|
@@ -1611,7 +1611,7 @@ export var deserializeAws_restJson1GetDataflowEndpointGroupCommand = function (o
|
|
|
1611
1611
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1612
1612
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1613
1613
|
}
|
|
1614
|
-
return [2
|
|
1614
|
+
return [2, Promise.resolve(contents)];
|
|
1615
1615
|
}
|
|
1616
1616
|
});
|
|
1617
1617
|
}); };
|
|
@@ -1623,39 +1623,39 @@ var deserializeAws_restJson1GetDataflowEndpointGroupCommandError = function (out
|
|
|
1623
1623
|
case 0:
|
|
1624
1624
|
_a = [__assign({}, output)];
|
|
1625
1625
|
_f = {};
|
|
1626
|
-
return [4
|
|
1626
|
+
return [4, parseBody(output.body, context)];
|
|
1627
1627
|
case 1:
|
|
1628
1628
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1629
1629
|
errorCode = "UnknownError";
|
|
1630
1630
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1631
1631
|
_b = errorCode;
|
|
1632
1632
|
switch (_b) {
|
|
1633
|
-
case "DependencyException": return [3
|
|
1634
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
1635
|
-
case "InvalidParameterException": return [3
|
|
1636
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
1637
|
-
case "ResourceNotFoundException": return [3
|
|
1638
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
1639
|
-
}
|
|
1640
|
-
return [3
|
|
1633
|
+
case "DependencyException": return [3, 2];
|
|
1634
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
1635
|
+
case "InvalidParameterException": return [3, 4];
|
|
1636
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
1637
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1638
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
1639
|
+
}
|
|
1640
|
+
return [3, 8];
|
|
1641
1641
|
case 2:
|
|
1642
1642
|
_c = [{}];
|
|
1643
|
-
return [4
|
|
1643
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
1644
1644
|
case 3:
|
|
1645
1645
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1646
|
-
return [3
|
|
1646
|
+
return [3, 9];
|
|
1647
1647
|
case 4:
|
|
1648
1648
|
_d = [{}];
|
|
1649
|
-
return [4
|
|
1649
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1650
1650
|
case 5:
|
|
1651
1651
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1652
|
-
return [3
|
|
1652
|
+
return [3, 9];
|
|
1653
1653
|
case 6:
|
|
1654
1654
|
_e = [{}];
|
|
1655
|
-
return [4
|
|
1655
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1656
1656
|
case 7:
|
|
1657
1657
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1658
|
-
return [3
|
|
1658
|
+
return [3, 9];
|
|
1659
1659
|
case 8:
|
|
1660
1660
|
parsedBody = parsedOutput.body;
|
|
1661
1661
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1665,7 +1665,7 @@ var deserializeAws_restJson1GetDataflowEndpointGroupCommandError = function (out
|
|
|
1665
1665
|
message = response.message || response.Message || errorCode;
|
|
1666
1666
|
response.message = message;
|
|
1667
1667
|
delete response.Message;
|
|
1668
|
-
return [2
|
|
1668
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1669
1669
|
}
|
|
1670
1670
|
});
|
|
1671
1671
|
}); };
|
|
@@ -1675,7 +1675,7 @@ export var deserializeAws_restJson1GetMinuteUsageCommand = function (output, con
|
|
|
1675
1675
|
switch (_c.label) {
|
|
1676
1676
|
case 0:
|
|
1677
1677
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1678
|
-
return [2
|
|
1678
|
+
return [2, deserializeAws_restJson1GetMinuteUsageCommandError(output, context)];
|
|
1679
1679
|
}
|
|
1680
1680
|
contents = {
|
|
1681
1681
|
$metadata: deserializeMetadata(output),
|
|
@@ -1687,7 +1687,7 @@ export var deserializeAws_restJson1GetMinuteUsageCommand = function (output, con
|
|
|
1687
1687
|
};
|
|
1688
1688
|
_a = __expectNonNull;
|
|
1689
1689
|
_b = __expectObject;
|
|
1690
|
-
return [4
|
|
1690
|
+
return [4, parseBody(output.body, context)];
|
|
1691
1691
|
case 1:
|
|
1692
1692
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1693
1693
|
if (data.estimatedMinutesRemaining !== undefined && data.estimatedMinutesRemaining !== null) {
|
|
@@ -1705,7 +1705,7 @@ export var deserializeAws_restJson1GetMinuteUsageCommand = function (output, con
|
|
|
1705
1705
|
if (data.upcomingMinutesScheduled !== undefined && data.upcomingMinutesScheduled !== null) {
|
|
1706
1706
|
contents.upcomingMinutesScheduled = __expectInt32(data.upcomingMinutesScheduled);
|
|
1707
1707
|
}
|
|
1708
|
-
return [2
|
|
1708
|
+
return [2, Promise.resolve(contents)];
|
|
1709
1709
|
}
|
|
1710
1710
|
});
|
|
1711
1711
|
}); };
|
|
@@ -1717,39 +1717,39 @@ var deserializeAws_restJson1GetMinuteUsageCommandError = function (output, conte
|
|
|
1717
1717
|
case 0:
|
|
1718
1718
|
_a = [__assign({}, output)];
|
|
1719
1719
|
_f = {};
|
|
1720
|
-
return [4
|
|
1720
|
+
return [4, parseBody(output.body, context)];
|
|
1721
1721
|
case 1:
|
|
1722
1722
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1723
1723
|
errorCode = "UnknownError";
|
|
1724
1724
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1725
1725
|
_b = errorCode;
|
|
1726
1726
|
switch (_b) {
|
|
1727
|
-
case "DependencyException": return [3
|
|
1728
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
1729
|
-
case "InvalidParameterException": return [3
|
|
1730
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
1731
|
-
case "ResourceNotFoundException": return [3
|
|
1732
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
1733
|
-
}
|
|
1734
|
-
return [3
|
|
1727
|
+
case "DependencyException": return [3, 2];
|
|
1728
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
1729
|
+
case "InvalidParameterException": return [3, 4];
|
|
1730
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
1731
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1732
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
1733
|
+
}
|
|
1734
|
+
return [3, 8];
|
|
1735
1735
|
case 2:
|
|
1736
1736
|
_c = [{}];
|
|
1737
|
-
return [4
|
|
1737
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
1738
1738
|
case 3:
|
|
1739
1739
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1740
|
-
return [3
|
|
1740
|
+
return [3, 9];
|
|
1741
1741
|
case 4:
|
|
1742
1742
|
_d = [{}];
|
|
1743
|
-
return [4
|
|
1743
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1744
1744
|
case 5:
|
|
1745
1745
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1746
|
-
return [3
|
|
1746
|
+
return [3, 9];
|
|
1747
1747
|
case 6:
|
|
1748
1748
|
_e = [{}];
|
|
1749
|
-
return [4
|
|
1749
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1750
1750
|
case 7:
|
|
1751
1751
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1752
|
-
return [3
|
|
1752
|
+
return [3, 9];
|
|
1753
1753
|
case 8:
|
|
1754
1754
|
parsedBody = parsedOutput.body;
|
|
1755
1755
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1759,7 +1759,7 @@ var deserializeAws_restJson1GetMinuteUsageCommandError = function (output, conte
|
|
|
1759
1759
|
message = response.message || response.Message || errorCode;
|
|
1760
1760
|
response.message = message;
|
|
1761
1761
|
delete response.Message;
|
|
1762
|
-
return [2
|
|
1762
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1763
1763
|
}
|
|
1764
1764
|
});
|
|
1765
1765
|
}); };
|
|
@@ -1769,7 +1769,7 @@ export var deserializeAws_restJson1GetMissionProfileCommand = function (output,
|
|
|
1769
1769
|
switch (_c.label) {
|
|
1770
1770
|
case 0:
|
|
1771
1771
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1772
|
-
return [2
|
|
1772
|
+
return [2, deserializeAws_restJson1GetMissionProfileCommandError(output, context)];
|
|
1773
1773
|
}
|
|
1774
1774
|
contents = {
|
|
1775
1775
|
$metadata: deserializeMetadata(output),
|
|
@@ -1786,7 +1786,7 @@ export var deserializeAws_restJson1GetMissionProfileCommand = function (output,
|
|
|
1786
1786
|
};
|
|
1787
1787
|
_a = __expectNonNull;
|
|
1788
1788
|
_b = __expectObject;
|
|
1789
|
-
return [4
|
|
1789
|
+
return [4, parseBody(output.body, context)];
|
|
1790
1790
|
case 1:
|
|
1791
1791
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1792
1792
|
if (data.contactPostPassDurationSeconds !== undefined && data.contactPostPassDurationSeconds !== null) {
|
|
@@ -1819,7 +1819,7 @@ export var deserializeAws_restJson1GetMissionProfileCommand = function (output,
|
|
|
1819
1819
|
if (data.trackingConfigArn !== undefined && data.trackingConfigArn !== null) {
|
|
1820
1820
|
contents.trackingConfigArn = __expectString(data.trackingConfigArn);
|
|
1821
1821
|
}
|
|
1822
|
-
return [2
|
|
1822
|
+
return [2, Promise.resolve(contents)];
|
|
1823
1823
|
}
|
|
1824
1824
|
});
|
|
1825
1825
|
}); };
|
|
@@ -1831,39 +1831,39 @@ var deserializeAws_restJson1GetMissionProfileCommandError = function (output, co
|
|
|
1831
1831
|
case 0:
|
|
1832
1832
|
_a = [__assign({}, output)];
|
|
1833
1833
|
_f = {};
|
|
1834
|
-
return [4
|
|
1834
|
+
return [4, parseBody(output.body, context)];
|
|
1835
1835
|
case 1:
|
|
1836
1836
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1837
1837
|
errorCode = "UnknownError";
|
|
1838
1838
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
1839
|
_b = errorCode;
|
|
1840
1840
|
switch (_b) {
|
|
1841
|
-
case "DependencyException": return [3
|
|
1842
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
1843
|
-
case "InvalidParameterException": return [3
|
|
1844
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
1845
|
-
case "ResourceNotFoundException": return [3
|
|
1846
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
1847
|
-
}
|
|
1848
|
-
return [3
|
|
1841
|
+
case "DependencyException": return [3, 2];
|
|
1842
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
1843
|
+
case "InvalidParameterException": return [3, 4];
|
|
1844
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
1845
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1846
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
1847
|
+
}
|
|
1848
|
+
return [3, 8];
|
|
1849
1849
|
case 2:
|
|
1850
1850
|
_c = [{}];
|
|
1851
|
-
return [4
|
|
1851
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
1852
1852
|
case 3:
|
|
1853
1853
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1854
|
-
return [3
|
|
1854
|
+
return [3, 9];
|
|
1855
1855
|
case 4:
|
|
1856
1856
|
_d = [{}];
|
|
1857
|
-
return [4
|
|
1857
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1858
1858
|
case 5:
|
|
1859
1859
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1860
|
-
return [3
|
|
1860
|
+
return [3, 9];
|
|
1861
1861
|
case 6:
|
|
1862
1862
|
_e = [{}];
|
|
1863
|
-
return [4
|
|
1863
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1864
1864
|
case 7:
|
|
1865
1865
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1866
|
-
return [3
|
|
1866
|
+
return [3, 9];
|
|
1867
1867
|
case 8:
|
|
1868
1868
|
parsedBody = parsedOutput.body;
|
|
1869
1869
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1873,7 +1873,7 @@ var deserializeAws_restJson1GetMissionProfileCommandError = function (output, co
|
|
|
1873
1873
|
message = response.message || response.Message || errorCode;
|
|
1874
1874
|
response.message = message;
|
|
1875
1875
|
delete response.Message;
|
|
1876
|
-
return [2
|
|
1876
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1877
1877
|
}
|
|
1878
1878
|
});
|
|
1879
1879
|
}); };
|
|
@@ -1883,7 +1883,7 @@ export var deserializeAws_restJson1GetSatelliteCommand = function (output, conte
|
|
|
1883
1883
|
switch (_c.label) {
|
|
1884
1884
|
case 0:
|
|
1885
1885
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1886
|
-
return [2
|
|
1886
|
+
return [2, deserializeAws_restJson1GetSatelliteCommandError(output, context)];
|
|
1887
1887
|
}
|
|
1888
1888
|
contents = {
|
|
1889
1889
|
$metadata: deserializeMetadata(output),
|
|
@@ -1894,7 +1894,7 @@ export var deserializeAws_restJson1GetSatelliteCommand = function (output, conte
|
|
|
1894
1894
|
};
|
|
1895
1895
|
_a = __expectNonNull;
|
|
1896
1896
|
_b = __expectObject;
|
|
1897
|
-
return [4
|
|
1897
|
+
return [4, parseBody(output.body, context)];
|
|
1898
1898
|
case 1:
|
|
1899
1899
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1900
1900
|
if (data.groundStations !== undefined && data.groundStations !== null) {
|
|
@@ -1909,7 +1909,7 @@ export var deserializeAws_restJson1GetSatelliteCommand = function (output, conte
|
|
|
1909
1909
|
if (data.satelliteId !== undefined && data.satelliteId !== null) {
|
|
1910
1910
|
contents.satelliteId = __expectString(data.satelliteId);
|
|
1911
1911
|
}
|
|
1912
|
-
return [2
|
|
1912
|
+
return [2, Promise.resolve(contents)];
|
|
1913
1913
|
}
|
|
1914
1914
|
});
|
|
1915
1915
|
}); };
|
|
@@ -1921,39 +1921,39 @@ var deserializeAws_restJson1GetSatelliteCommandError = function (output, context
|
|
|
1921
1921
|
case 0:
|
|
1922
1922
|
_a = [__assign({}, output)];
|
|
1923
1923
|
_f = {};
|
|
1924
|
-
return [4
|
|
1924
|
+
return [4, parseBody(output.body, context)];
|
|
1925
1925
|
case 1:
|
|
1926
1926
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1927
1927
|
errorCode = "UnknownError";
|
|
1928
1928
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1929
1929
|
_b = errorCode;
|
|
1930
1930
|
switch (_b) {
|
|
1931
|
-
case "DependencyException": return [3
|
|
1932
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
1933
|
-
case "InvalidParameterException": return [3
|
|
1934
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
1935
|
-
case "ResourceNotFoundException": return [3
|
|
1936
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
1937
|
-
}
|
|
1938
|
-
return [3
|
|
1931
|
+
case "DependencyException": return [3, 2];
|
|
1932
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
1933
|
+
case "InvalidParameterException": return [3, 4];
|
|
1934
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
1935
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1936
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
1937
|
+
}
|
|
1938
|
+
return [3, 8];
|
|
1939
1939
|
case 2:
|
|
1940
1940
|
_c = [{}];
|
|
1941
|
-
return [4
|
|
1941
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
1942
1942
|
case 3:
|
|
1943
1943
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1944
|
-
return [3
|
|
1944
|
+
return [3, 9];
|
|
1945
1945
|
case 4:
|
|
1946
1946
|
_d = [{}];
|
|
1947
|
-
return [4
|
|
1947
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1948
1948
|
case 5:
|
|
1949
1949
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1950
|
-
return [3
|
|
1950
|
+
return [3, 9];
|
|
1951
1951
|
case 6:
|
|
1952
1952
|
_e = [{}];
|
|
1953
|
-
return [4
|
|
1953
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1954
1954
|
case 7:
|
|
1955
1955
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1956
|
-
return [3
|
|
1956
|
+
return [3, 9];
|
|
1957
1957
|
case 8:
|
|
1958
1958
|
parsedBody = parsedOutput.body;
|
|
1959
1959
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1963,7 +1963,7 @@ var deserializeAws_restJson1GetSatelliteCommandError = function (output, context
|
|
|
1963
1963
|
message = response.message || response.Message || errorCode;
|
|
1964
1964
|
response.message = message;
|
|
1965
1965
|
delete response.Message;
|
|
1966
|
-
return [2
|
|
1966
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1967
1967
|
}
|
|
1968
1968
|
});
|
|
1969
1969
|
}); };
|
|
@@ -1973,7 +1973,7 @@ export var deserializeAws_restJson1ListConfigsCommand = function (output, contex
|
|
|
1973
1973
|
switch (_c.label) {
|
|
1974
1974
|
case 0:
|
|
1975
1975
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1976
|
-
return [2
|
|
1976
|
+
return [2, deserializeAws_restJson1ListConfigsCommandError(output, context)];
|
|
1977
1977
|
}
|
|
1978
1978
|
contents = {
|
|
1979
1979
|
$metadata: deserializeMetadata(output),
|
|
@@ -1982,7 +1982,7 @@ export var deserializeAws_restJson1ListConfigsCommand = function (output, contex
|
|
|
1982
1982
|
};
|
|
1983
1983
|
_a = __expectNonNull;
|
|
1984
1984
|
_b = __expectObject;
|
|
1985
|
-
return [4
|
|
1985
|
+
return [4, parseBody(output.body, context)];
|
|
1986
1986
|
case 1:
|
|
1987
1987
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1988
1988
|
if (data.configList !== undefined && data.configList !== null) {
|
|
@@ -1991,7 +1991,7 @@ export var deserializeAws_restJson1ListConfigsCommand = function (output, contex
|
|
|
1991
1991
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1992
1992
|
contents.nextToken = __expectString(data.nextToken);
|
|
1993
1993
|
}
|
|
1994
|
-
return [2
|
|
1994
|
+
return [2, Promise.resolve(contents)];
|
|
1995
1995
|
}
|
|
1996
1996
|
});
|
|
1997
1997
|
}); };
|
|
@@ -2003,39 +2003,39 @@ var deserializeAws_restJson1ListConfigsCommandError = function (output, context)
|
|
|
2003
2003
|
case 0:
|
|
2004
2004
|
_a = [__assign({}, output)];
|
|
2005
2005
|
_f = {};
|
|
2006
|
-
return [4
|
|
2006
|
+
return [4, parseBody(output.body, context)];
|
|
2007
2007
|
case 1:
|
|
2008
2008
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2009
2009
|
errorCode = "UnknownError";
|
|
2010
2010
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2011
2011
|
_b = errorCode;
|
|
2012
2012
|
switch (_b) {
|
|
2013
|
-
case "DependencyException": return [3
|
|
2014
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
2015
|
-
case "InvalidParameterException": return [3
|
|
2016
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
2017
|
-
case "ResourceNotFoundException": return [3
|
|
2018
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
2019
|
-
}
|
|
2020
|
-
return [3
|
|
2013
|
+
case "DependencyException": return [3, 2];
|
|
2014
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
2015
|
+
case "InvalidParameterException": return [3, 4];
|
|
2016
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
2017
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2018
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
2019
|
+
}
|
|
2020
|
+
return [3, 8];
|
|
2021
2021
|
case 2:
|
|
2022
2022
|
_c = [{}];
|
|
2023
|
-
return [4
|
|
2023
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
2024
2024
|
case 3:
|
|
2025
2025
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2026
|
-
return [3
|
|
2026
|
+
return [3, 9];
|
|
2027
2027
|
case 4:
|
|
2028
2028
|
_d = [{}];
|
|
2029
|
-
return [4
|
|
2029
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2030
2030
|
case 5:
|
|
2031
2031
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2032
|
-
return [3
|
|
2032
|
+
return [3, 9];
|
|
2033
2033
|
case 6:
|
|
2034
2034
|
_e = [{}];
|
|
2035
|
-
return [4
|
|
2035
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2036
2036
|
case 7:
|
|
2037
2037
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2038
|
-
return [3
|
|
2038
|
+
return [3, 9];
|
|
2039
2039
|
case 8:
|
|
2040
2040
|
parsedBody = parsedOutput.body;
|
|
2041
2041
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2045,7 +2045,7 @@ var deserializeAws_restJson1ListConfigsCommandError = function (output, context)
|
|
|
2045
2045
|
message = response.message || response.Message || errorCode;
|
|
2046
2046
|
response.message = message;
|
|
2047
2047
|
delete response.Message;
|
|
2048
|
-
return [2
|
|
2048
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2049
2049
|
}
|
|
2050
2050
|
});
|
|
2051
2051
|
}); };
|
|
@@ -2055,7 +2055,7 @@ export var deserializeAws_restJson1ListContactsCommand = function (output, conte
|
|
|
2055
2055
|
switch (_c.label) {
|
|
2056
2056
|
case 0:
|
|
2057
2057
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2058
|
-
return [2
|
|
2058
|
+
return [2, deserializeAws_restJson1ListContactsCommandError(output, context)];
|
|
2059
2059
|
}
|
|
2060
2060
|
contents = {
|
|
2061
2061
|
$metadata: deserializeMetadata(output),
|
|
@@ -2064,7 +2064,7 @@ export var deserializeAws_restJson1ListContactsCommand = function (output, conte
|
|
|
2064
2064
|
};
|
|
2065
2065
|
_a = __expectNonNull;
|
|
2066
2066
|
_b = __expectObject;
|
|
2067
|
-
return [4
|
|
2067
|
+
return [4, parseBody(output.body, context)];
|
|
2068
2068
|
case 1:
|
|
2069
2069
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2070
2070
|
if (data.contactList !== undefined && data.contactList !== null) {
|
|
@@ -2073,7 +2073,7 @@ export var deserializeAws_restJson1ListContactsCommand = function (output, conte
|
|
|
2073
2073
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2074
2074
|
contents.nextToken = __expectString(data.nextToken);
|
|
2075
2075
|
}
|
|
2076
|
-
return [2
|
|
2076
|
+
return [2, Promise.resolve(contents)];
|
|
2077
2077
|
}
|
|
2078
2078
|
});
|
|
2079
2079
|
}); };
|
|
@@ -2085,39 +2085,39 @@ var deserializeAws_restJson1ListContactsCommandError = function (output, context
|
|
|
2085
2085
|
case 0:
|
|
2086
2086
|
_a = [__assign({}, output)];
|
|
2087
2087
|
_f = {};
|
|
2088
|
-
return [4
|
|
2088
|
+
return [4, parseBody(output.body, context)];
|
|
2089
2089
|
case 1:
|
|
2090
2090
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2091
2091
|
errorCode = "UnknownError";
|
|
2092
2092
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2093
2093
|
_b = errorCode;
|
|
2094
2094
|
switch (_b) {
|
|
2095
|
-
case "DependencyException": return [3
|
|
2096
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
2097
|
-
case "InvalidParameterException": return [3
|
|
2098
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
2099
|
-
case "ResourceNotFoundException": return [3
|
|
2100
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
2101
|
-
}
|
|
2102
|
-
return [3
|
|
2095
|
+
case "DependencyException": return [3, 2];
|
|
2096
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
2097
|
+
case "InvalidParameterException": return [3, 4];
|
|
2098
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
2099
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2100
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
2101
|
+
}
|
|
2102
|
+
return [3, 8];
|
|
2103
2103
|
case 2:
|
|
2104
2104
|
_c = [{}];
|
|
2105
|
-
return [4
|
|
2105
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
2106
2106
|
case 3:
|
|
2107
2107
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2108
|
-
return [3
|
|
2108
|
+
return [3, 9];
|
|
2109
2109
|
case 4:
|
|
2110
2110
|
_d = [{}];
|
|
2111
|
-
return [4
|
|
2111
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2112
2112
|
case 5:
|
|
2113
2113
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2114
|
-
return [3
|
|
2114
|
+
return [3, 9];
|
|
2115
2115
|
case 6:
|
|
2116
2116
|
_e = [{}];
|
|
2117
|
-
return [4
|
|
2117
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2118
2118
|
case 7:
|
|
2119
2119
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2120
|
-
return [3
|
|
2120
|
+
return [3, 9];
|
|
2121
2121
|
case 8:
|
|
2122
2122
|
parsedBody = parsedOutput.body;
|
|
2123
2123
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2127,7 +2127,7 @@ var deserializeAws_restJson1ListContactsCommandError = function (output, context
|
|
|
2127
2127
|
message = response.message || response.Message || errorCode;
|
|
2128
2128
|
response.message = message;
|
|
2129
2129
|
delete response.Message;
|
|
2130
|
-
return [2
|
|
2130
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2131
2131
|
}
|
|
2132
2132
|
});
|
|
2133
2133
|
}); };
|
|
@@ -2137,7 +2137,7 @@ export var deserializeAws_restJson1ListDataflowEndpointGroupsCommand = function
|
|
|
2137
2137
|
switch (_c.label) {
|
|
2138
2138
|
case 0:
|
|
2139
2139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2140
|
-
return [2
|
|
2140
|
+
return [2, deserializeAws_restJson1ListDataflowEndpointGroupsCommandError(output, context)];
|
|
2141
2141
|
}
|
|
2142
2142
|
contents = {
|
|
2143
2143
|
$metadata: deserializeMetadata(output),
|
|
@@ -2146,7 +2146,7 @@ export var deserializeAws_restJson1ListDataflowEndpointGroupsCommand = function
|
|
|
2146
2146
|
};
|
|
2147
2147
|
_a = __expectNonNull;
|
|
2148
2148
|
_b = __expectObject;
|
|
2149
|
-
return [4
|
|
2149
|
+
return [4, parseBody(output.body, context)];
|
|
2150
2150
|
case 1:
|
|
2151
2151
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2152
2152
|
if (data.dataflowEndpointGroupList !== undefined && data.dataflowEndpointGroupList !== null) {
|
|
@@ -2155,7 +2155,7 @@ export var deserializeAws_restJson1ListDataflowEndpointGroupsCommand = function
|
|
|
2155
2155
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2156
2156
|
contents.nextToken = __expectString(data.nextToken);
|
|
2157
2157
|
}
|
|
2158
|
-
return [2
|
|
2158
|
+
return [2, Promise.resolve(contents)];
|
|
2159
2159
|
}
|
|
2160
2160
|
});
|
|
2161
2161
|
}); };
|
|
@@ -2167,39 +2167,39 @@ var deserializeAws_restJson1ListDataflowEndpointGroupsCommandError = function (o
|
|
|
2167
2167
|
case 0:
|
|
2168
2168
|
_a = [__assign({}, output)];
|
|
2169
2169
|
_f = {};
|
|
2170
|
-
return [4
|
|
2170
|
+
return [4, parseBody(output.body, context)];
|
|
2171
2171
|
case 1:
|
|
2172
2172
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2173
2173
|
errorCode = "UnknownError";
|
|
2174
2174
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2175
2175
|
_b = errorCode;
|
|
2176
2176
|
switch (_b) {
|
|
2177
|
-
case "DependencyException": return [3
|
|
2178
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
2179
|
-
case "InvalidParameterException": return [3
|
|
2180
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
2181
|
-
case "ResourceNotFoundException": return [3
|
|
2182
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
2183
|
-
}
|
|
2184
|
-
return [3
|
|
2177
|
+
case "DependencyException": return [3, 2];
|
|
2178
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
2179
|
+
case "InvalidParameterException": return [3, 4];
|
|
2180
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
2181
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2182
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
2183
|
+
}
|
|
2184
|
+
return [3, 8];
|
|
2185
2185
|
case 2:
|
|
2186
2186
|
_c = [{}];
|
|
2187
|
-
return [4
|
|
2187
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
2188
2188
|
case 3:
|
|
2189
2189
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2190
|
-
return [3
|
|
2190
|
+
return [3, 9];
|
|
2191
2191
|
case 4:
|
|
2192
2192
|
_d = [{}];
|
|
2193
|
-
return [4
|
|
2193
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2194
2194
|
case 5:
|
|
2195
2195
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2196
|
-
return [3
|
|
2196
|
+
return [3, 9];
|
|
2197
2197
|
case 6:
|
|
2198
2198
|
_e = [{}];
|
|
2199
|
-
return [4
|
|
2199
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2200
2200
|
case 7:
|
|
2201
2201
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2202
|
-
return [3
|
|
2202
|
+
return [3, 9];
|
|
2203
2203
|
case 8:
|
|
2204
2204
|
parsedBody = parsedOutput.body;
|
|
2205
2205
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2209,7 +2209,7 @@ var deserializeAws_restJson1ListDataflowEndpointGroupsCommandError = function (o
|
|
|
2209
2209
|
message = response.message || response.Message || errorCode;
|
|
2210
2210
|
response.message = message;
|
|
2211
2211
|
delete response.Message;
|
|
2212
|
-
return [2
|
|
2212
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2213
2213
|
}
|
|
2214
2214
|
});
|
|
2215
2215
|
}); };
|
|
@@ -2219,7 +2219,7 @@ export var deserializeAws_restJson1ListGroundStationsCommand = function (output,
|
|
|
2219
2219
|
switch (_c.label) {
|
|
2220
2220
|
case 0:
|
|
2221
2221
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2222
|
-
return [2
|
|
2222
|
+
return [2, deserializeAws_restJson1ListGroundStationsCommandError(output, context)];
|
|
2223
2223
|
}
|
|
2224
2224
|
contents = {
|
|
2225
2225
|
$metadata: deserializeMetadata(output),
|
|
@@ -2228,7 +2228,7 @@ export var deserializeAws_restJson1ListGroundStationsCommand = function (output,
|
|
|
2228
2228
|
};
|
|
2229
2229
|
_a = __expectNonNull;
|
|
2230
2230
|
_b = __expectObject;
|
|
2231
|
-
return [4
|
|
2231
|
+
return [4, parseBody(output.body, context)];
|
|
2232
2232
|
case 1:
|
|
2233
2233
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2234
2234
|
if (data.groundStationList !== undefined && data.groundStationList !== null) {
|
|
@@ -2237,7 +2237,7 @@ export var deserializeAws_restJson1ListGroundStationsCommand = function (output,
|
|
|
2237
2237
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2238
2238
|
contents.nextToken = __expectString(data.nextToken);
|
|
2239
2239
|
}
|
|
2240
|
-
return [2
|
|
2240
|
+
return [2, Promise.resolve(contents)];
|
|
2241
2241
|
}
|
|
2242
2242
|
});
|
|
2243
2243
|
}); };
|
|
@@ -2249,39 +2249,39 @@ var deserializeAws_restJson1ListGroundStationsCommandError = function (output, c
|
|
|
2249
2249
|
case 0:
|
|
2250
2250
|
_a = [__assign({}, output)];
|
|
2251
2251
|
_f = {};
|
|
2252
|
-
return [4
|
|
2252
|
+
return [4, parseBody(output.body, context)];
|
|
2253
2253
|
case 1:
|
|
2254
2254
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2255
2255
|
errorCode = "UnknownError";
|
|
2256
2256
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2257
2257
|
_b = errorCode;
|
|
2258
2258
|
switch (_b) {
|
|
2259
|
-
case "DependencyException": return [3
|
|
2260
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
2261
|
-
case "InvalidParameterException": return [3
|
|
2262
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
2263
|
-
case "ResourceNotFoundException": return [3
|
|
2264
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
2265
|
-
}
|
|
2266
|
-
return [3
|
|
2259
|
+
case "DependencyException": return [3, 2];
|
|
2260
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
2261
|
+
case "InvalidParameterException": return [3, 4];
|
|
2262
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
2263
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2264
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
2265
|
+
}
|
|
2266
|
+
return [3, 8];
|
|
2267
2267
|
case 2:
|
|
2268
2268
|
_c = [{}];
|
|
2269
|
-
return [4
|
|
2269
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
2270
2270
|
case 3:
|
|
2271
2271
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2272
|
-
return [3
|
|
2272
|
+
return [3, 9];
|
|
2273
2273
|
case 4:
|
|
2274
2274
|
_d = [{}];
|
|
2275
|
-
return [4
|
|
2275
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2276
2276
|
case 5:
|
|
2277
2277
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2278
|
-
return [3
|
|
2278
|
+
return [3, 9];
|
|
2279
2279
|
case 6:
|
|
2280
2280
|
_e = [{}];
|
|
2281
|
-
return [4
|
|
2281
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2282
2282
|
case 7:
|
|
2283
2283
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2284
|
-
return [3
|
|
2284
|
+
return [3, 9];
|
|
2285
2285
|
case 8:
|
|
2286
2286
|
parsedBody = parsedOutput.body;
|
|
2287
2287
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2291,7 +2291,7 @@ var deserializeAws_restJson1ListGroundStationsCommandError = function (output, c
|
|
|
2291
2291
|
message = response.message || response.Message || errorCode;
|
|
2292
2292
|
response.message = message;
|
|
2293
2293
|
delete response.Message;
|
|
2294
|
-
return [2
|
|
2294
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2295
2295
|
}
|
|
2296
2296
|
});
|
|
2297
2297
|
}); };
|
|
@@ -2301,7 +2301,7 @@ export var deserializeAws_restJson1ListMissionProfilesCommand = function (output
|
|
|
2301
2301
|
switch (_c.label) {
|
|
2302
2302
|
case 0:
|
|
2303
2303
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2304
|
-
return [2
|
|
2304
|
+
return [2, deserializeAws_restJson1ListMissionProfilesCommandError(output, context)];
|
|
2305
2305
|
}
|
|
2306
2306
|
contents = {
|
|
2307
2307
|
$metadata: deserializeMetadata(output),
|
|
@@ -2310,7 +2310,7 @@ export var deserializeAws_restJson1ListMissionProfilesCommand = function (output
|
|
|
2310
2310
|
};
|
|
2311
2311
|
_a = __expectNonNull;
|
|
2312
2312
|
_b = __expectObject;
|
|
2313
|
-
return [4
|
|
2313
|
+
return [4, parseBody(output.body, context)];
|
|
2314
2314
|
case 1:
|
|
2315
2315
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2316
2316
|
if (data.missionProfileList !== undefined && data.missionProfileList !== null) {
|
|
@@ -2319,7 +2319,7 @@ export var deserializeAws_restJson1ListMissionProfilesCommand = function (output
|
|
|
2319
2319
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2320
2320
|
contents.nextToken = __expectString(data.nextToken);
|
|
2321
2321
|
}
|
|
2322
|
-
return [2
|
|
2322
|
+
return [2, Promise.resolve(contents)];
|
|
2323
2323
|
}
|
|
2324
2324
|
});
|
|
2325
2325
|
}); };
|
|
@@ -2331,39 +2331,39 @@ var deserializeAws_restJson1ListMissionProfilesCommandError = function (output,
|
|
|
2331
2331
|
case 0:
|
|
2332
2332
|
_a = [__assign({}, output)];
|
|
2333
2333
|
_f = {};
|
|
2334
|
-
return [4
|
|
2334
|
+
return [4, parseBody(output.body, context)];
|
|
2335
2335
|
case 1:
|
|
2336
2336
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2337
2337
|
errorCode = "UnknownError";
|
|
2338
2338
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2339
2339
|
_b = errorCode;
|
|
2340
2340
|
switch (_b) {
|
|
2341
|
-
case "DependencyException": return [3
|
|
2342
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
2343
|
-
case "InvalidParameterException": return [3
|
|
2344
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
2345
|
-
case "ResourceNotFoundException": return [3
|
|
2346
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
2347
|
-
}
|
|
2348
|
-
return [3
|
|
2341
|
+
case "DependencyException": return [3, 2];
|
|
2342
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
2343
|
+
case "InvalidParameterException": return [3, 4];
|
|
2344
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
2345
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2346
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
2347
|
+
}
|
|
2348
|
+
return [3, 8];
|
|
2349
2349
|
case 2:
|
|
2350
2350
|
_c = [{}];
|
|
2351
|
-
return [4
|
|
2351
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
2352
2352
|
case 3:
|
|
2353
2353
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2354
|
-
return [3
|
|
2354
|
+
return [3, 9];
|
|
2355
2355
|
case 4:
|
|
2356
2356
|
_d = [{}];
|
|
2357
|
-
return [4
|
|
2357
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2358
2358
|
case 5:
|
|
2359
2359
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2360
|
-
return [3
|
|
2360
|
+
return [3, 9];
|
|
2361
2361
|
case 6:
|
|
2362
2362
|
_e = [{}];
|
|
2363
|
-
return [4
|
|
2363
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2364
2364
|
case 7:
|
|
2365
2365
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2366
|
-
return [3
|
|
2366
|
+
return [3, 9];
|
|
2367
2367
|
case 8:
|
|
2368
2368
|
parsedBody = parsedOutput.body;
|
|
2369
2369
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2373,7 +2373,7 @@ var deserializeAws_restJson1ListMissionProfilesCommandError = function (output,
|
|
|
2373
2373
|
message = response.message || response.Message || errorCode;
|
|
2374
2374
|
response.message = message;
|
|
2375
2375
|
delete response.Message;
|
|
2376
|
-
return [2
|
|
2376
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2377
2377
|
}
|
|
2378
2378
|
});
|
|
2379
2379
|
}); };
|
|
@@ -2383,7 +2383,7 @@ export var deserializeAws_restJson1ListSatellitesCommand = function (output, con
|
|
|
2383
2383
|
switch (_c.label) {
|
|
2384
2384
|
case 0:
|
|
2385
2385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2386
|
-
return [2
|
|
2386
|
+
return [2, deserializeAws_restJson1ListSatellitesCommandError(output, context)];
|
|
2387
2387
|
}
|
|
2388
2388
|
contents = {
|
|
2389
2389
|
$metadata: deserializeMetadata(output),
|
|
@@ -2392,7 +2392,7 @@ export var deserializeAws_restJson1ListSatellitesCommand = function (output, con
|
|
|
2392
2392
|
};
|
|
2393
2393
|
_a = __expectNonNull;
|
|
2394
2394
|
_b = __expectObject;
|
|
2395
|
-
return [4
|
|
2395
|
+
return [4, parseBody(output.body, context)];
|
|
2396
2396
|
case 1:
|
|
2397
2397
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2398
2398
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -2401,7 +2401,7 @@ export var deserializeAws_restJson1ListSatellitesCommand = function (output, con
|
|
|
2401
2401
|
if (data.satellites !== undefined && data.satellites !== null) {
|
|
2402
2402
|
contents.satellites = deserializeAws_restJson1SatelliteList(data.satellites, context);
|
|
2403
2403
|
}
|
|
2404
|
-
return [2
|
|
2404
|
+
return [2, Promise.resolve(contents)];
|
|
2405
2405
|
}
|
|
2406
2406
|
});
|
|
2407
2407
|
}); };
|
|
@@ -2413,39 +2413,39 @@ var deserializeAws_restJson1ListSatellitesCommandError = function (output, conte
|
|
|
2413
2413
|
case 0:
|
|
2414
2414
|
_a = [__assign({}, output)];
|
|
2415
2415
|
_f = {};
|
|
2416
|
-
return [4
|
|
2416
|
+
return [4, parseBody(output.body, context)];
|
|
2417
2417
|
case 1:
|
|
2418
2418
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2419
2419
|
errorCode = "UnknownError";
|
|
2420
2420
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2421
2421
|
_b = errorCode;
|
|
2422
2422
|
switch (_b) {
|
|
2423
|
-
case "DependencyException": return [3
|
|
2424
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
2425
|
-
case "InvalidParameterException": return [3
|
|
2426
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
2427
|
-
case "ResourceNotFoundException": return [3
|
|
2428
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
2429
|
-
}
|
|
2430
|
-
return [3
|
|
2423
|
+
case "DependencyException": return [3, 2];
|
|
2424
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
2425
|
+
case "InvalidParameterException": return [3, 4];
|
|
2426
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
2427
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2428
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
2429
|
+
}
|
|
2430
|
+
return [3, 8];
|
|
2431
2431
|
case 2:
|
|
2432
2432
|
_c = [{}];
|
|
2433
|
-
return [4
|
|
2433
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
2434
2434
|
case 3:
|
|
2435
2435
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2436
|
-
return [3
|
|
2436
|
+
return [3, 9];
|
|
2437
2437
|
case 4:
|
|
2438
2438
|
_d = [{}];
|
|
2439
|
-
return [4
|
|
2439
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2440
2440
|
case 5:
|
|
2441
2441
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2442
|
-
return [3
|
|
2442
|
+
return [3, 9];
|
|
2443
2443
|
case 6:
|
|
2444
2444
|
_e = [{}];
|
|
2445
|
-
return [4
|
|
2445
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2446
2446
|
case 7:
|
|
2447
2447
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2448
|
-
return [3
|
|
2448
|
+
return [3, 9];
|
|
2449
2449
|
case 8:
|
|
2450
2450
|
parsedBody = parsedOutput.body;
|
|
2451
2451
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2455,7 +2455,7 @@ var deserializeAws_restJson1ListSatellitesCommandError = function (output, conte
|
|
|
2455
2455
|
message = response.message || response.Message || errorCode;
|
|
2456
2456
|
response.message = message;
|
|
2457
2457
|
delete response.Message;
|
|
2458
|
-
return [2
|
|
2458
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2459
2459
|
}
|
|
2460
2460
|
});
|
|
2461
2461
|
}); };
|
|
@@ -2465,7 +2465,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2465
2465
|
switch (_c.label) {
|
|
2466
2466
|
case 0:
|
|
2467
2467
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2468
|
-
return [2
|
|
2468
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
2469
2469
|
}
|
|
2470
2470
|
contents = {
|
|
2471
2471
|
$metadata: deserializeMetadata(output),
|
|
@@ -2473,13 +2473,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2473
2473
|
};
|
|
2474
2474
|
_a = __expectNonNull;
|
|
2475
2475
|
_b = __expectObject;
|
|
2476
|
-
return [4
|
|
2476
|
+
return [4, parseBody(output.body, context)];
|
|
2477
2477
|
case 1:
|
|
2478
2478
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2479
2479
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2480
2480
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2481
2481
|
}
|
|
2482
|
-
return [2
|
|
2482
|
+
return [2, Promise.resolve(contents)];
|
|
2483
2483
|
}
|
|
2484
2484
|
});
|
|
2485
2485
|
}); };
|
|
@@ -2491,39 +2491,39 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2491
2491
|
case 0:
|
|
2492
2492
|
_a = [__assign({}, output)];
|
|
2493
2493
|
_f = {};
|
|
2494
|
-
return [4
|
|
2494
|
+
return [4, parseBody(output.body, context)];
|
|
2495
2495
|
case 1:
|
|
2496
2496
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2497
2497
|
errorCode = "UnknownError";
|
|
2498
2498
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2499
2499
|
_b = errorCode;
|
|
2500
2500
|
switch (_b) {
|
|
2501
|
-
case "DependencyException": return [3
|
|
2502
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
2503
|
-
case "InvalidParameterException": return [3
|
|
2504
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
2505
|
-
case "ResourceNotFoundException": return [3
|
|
2506
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
2507
|
-
}
|
|
2508
|
-
return [3
|
|
2501
|
+
case "DependencyException": return [3, 2];
|
|
2502
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
2503
|
+
case "InvalidParameterException": return [3, 4];
|
|
2504
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
2505
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2506
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
2507
|
+
}
|
|
2508
|
+
return [3, 8];
|
|
2509
2509
|
case 2:
|
|
2510
2510
|
_c = [{}];
|
|
2511
|
-
return [4
|
|
2511
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
2512
2512
|
case 3:
|
|
2513
2513
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2514
|
-
return [3
|
|
2514
|
+
return [3, 9];
|
|
2515
2515
|
case 4:
|
|
2516
2516
|
_d = [{}];
|
|
2517
|
-
return [4
|
|
2517
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2518
2518
|
case 5:
|
|
2519
2519
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2520
|
-
return [3
|
|
2520
|
+
return [3, 9];
|
|
2521
2521
|
case 6:
|
|
2522
2522
|
_e = [{}];
|
|
2523
|
-
return [4
|
|
2523
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2524
2524
|
case 7:
|
|
2525
2525
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2526
|
-
return [3
|
|
2526
|
+
return [3, 9];
|
|
2527
2527
|
case 8:
|
|
2528
2528
|
parsedBody = parsedOutput.body;
|
|
2529
2529
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2533,7 +2533,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2533
2533
|
message = response.message || response.Message || errorCode;
|
|
2534
2534
|
response.message = message;
|
|
2535
2535
|
delete response.Message;
|
|
2536
|
-
return [2
|
|
2536
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2537
2537
|
}
|
|
2538
2538
|
});
|
|
2539
2539
|
}); };
|
|
@@ -2543,7 +2543,7 @@ export var deserializeAws_restJson1ReserveContactCommand = function (output, con
|
|
|
2543
2543
|
switch (_c.label) {
|
|
2544
2544
|
case 0:
|
|
2545
2545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2546
|
-
return [2
|
|
2546
|
+
return [2, deserializeAws_restJson1ReserveContactCommandError(output, context)];
|
|
2547
2547
|
}
|
|
2548
2548
|
contents = {
|
|
2549
2549
|
$metadata: deserializeMetadata(output),
|
|
@@ -2551,13 +2551,13 @@ export var deserializeAws_restJson1ReserveContactCommand = function (output, con
|
|
|
2551
2551
|
};
|
|
2552
2552
|
_a = __expectNonNull;
|
|
2553
2553
|
_b = __expectObject;
|
|
2554
|
-
return [4
|
|
2554
|
+
return [4, parseBody(output.body, context)];
|
|
2555
2555
|
case 1:
|
|
2556
2556
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2557
2557
|
if (data.contactId !== undefined && data.contactId !== null) {
|
|
2558
2558
|
contents.contactId = __expectString(data.contactId);
|
|
2559
2559
|
}
|
|
2560
|
-
return [2
|
|
2560
|
+
return [2, Promise.resolve(contents)];
|
|
2561
2561
|
}
|
|
2562
2562
|
});
|
|
2563
2563
|
}); };
|
|
@@ -2569,39 +2569,39 @@ var deserializeAws_restJson1ReserveContactCommandError = function (output, conte
|
|
|
2569
2569
|
case 0:
|
|
2570
2570
|
_a = [__assign({}, output)];
|
|
2571
2571
|
_f = {};
|
|
2572
|
-
return [4
|
|
2572
|
+
return [4, parseBody(output.body, context)];
|
|
2573
2573
|
case 1:
|
|
2574
2574
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2575
2575
|
errorCode = "UnknownError";
|
|
2576
2576
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2577
2577
|
_b = errorCode;
|
|
2578
2578
|
switch (_b) {
|
|
2579
|
-
case "DependencyException": return [3
|
|
2580
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
2581
|
-
case "InvalidParameterException": return [3
|
|
2582
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
2583
|
-
case "ResourceNotFoundException": return [3
|
|
2584
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
2585
|
-
}
|
|
2586
|
-
return [3
|
|
2579
|
+
case "DependencyException": return [3, 2];
|
|
2580
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
2581
|
+
case "InvalidParameterException": return [3, 4];
|
|
2582
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
2583
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2584
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
2585
|
+
}
|
|
2586
|
+
return [3, 8];
|
|
2587
2587
|
case 2:
|
|
2588
2588
|
_c = [{}];
|
|
2589
|
-
return [4
|
|
2589
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
2590
2590
|
case 3:
|
|
2591
2591
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2592
|
-
return [3
|
|
2592
|
+
return [3, 9];
|
|
2593
2593
|
case 4:
|
|
2594
2594
|
_d = [{}];
|
|
2595
|
-
return [4
|
|
2595
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2596
2596
|
case 5:
|
|
2597
2597
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2598
|
-
return [3
|
|
2598
|
+
return [3, 9];
|
|
2599
2599
|
case 6:
|
|
2600
2600
|
_e = [{}];
|
|
2601
|
-
return [4
|
|
2601
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2602
2602
|
case 7:
|
|
2603
2603
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2604
|
-
return [3
|
|
2604
|
+
return [3, 9];
|
|
2605
2605
|
case 8:
|
|
2606
2606
|
parsedBody = parsedOutput.body;
|
|
2607
2607
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2611,7 +2611,7 @@ var deserializeAws_restJson1ReserveContactCommandError = function (output, conte
|
|
|
2611
2611
|
message = response.message || response.Message || errorCode;
|
|
2612
2612
|
response.message = message;
|
|
2613
2613
|
delete response.Message;
|
|
2614
|
-
return [2
|
|
2614
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2615
2615
|
}
|
|
2616
2616
|
});
|
|
2617
2617
|
}); };
|
|
@@ -2621,15 +2621,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2621
2621
|
switch (_a.label) {
|
|
2622
2622
|
case 0:
|
|
2623
2623
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2624
|
-
return [2
|
|
2624
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
2625
2625
|
}
|
|
2626
2626
|
contents = {
|
|
2627
2627
|
$metadata: deserializeMetadata(output),
|
|
2628
2628
|
};
|
|
2629
|
-
return [4
|
|
2629
|
+
return [4, collectBody(output.body, context)];
|
|
2630
2630
|
case 1:
|
|
2631
2631
|
_a.sent();
|
|
2632
|
-
return [2
|
|
2632
|
+
return [2, Promise.resolve(contents)];
|
|
2633
2633
|
}
|
|
2634
2634
|
});
|
|
2635
2635
|
}); };
|
|
@@ -2641,39 +2641,39 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2641
2641
|
case 0:
|
|
2642
2642
|
_a = [__assign({}, output)];
|
|
2643
2643
|
_f = {};
|
|
2644
|
-
return [4
|
|
2644
|
+
return [4, parseBody(output.body, context)];
|
|
2645
2645
|
case 1:
|
|
2646
2646
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2647
2647
|
errorCode = "UnknownError";
|
|
2648
2648
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2649
2649
|
_b = errorCode;
|
|
2650
2650
|
switch (_b) {
|
|
2651
|
-
case "DependencyException": return [3
|
|
2652
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
2653
|
-
case "InvalidParameterException": return [3
|
|
2654
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
2655
|
-
case "ResourceNotFoundException": return [3
|
|
2656
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
2657
|
-
}
|
|
2658
|
-
return [3
|
|
2651
|
+
case "DependencyException": return [3, 2];
|
|
2652
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
2653
|
+
case "InvalidParameterException": return [3, 4];
|
|
2654
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
2655
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2656
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
2657
|
+
}
|
|
2658
|
+
return [3, 8];
|
|
2659
2659
|
case 2:
|
|
2660
2660
|
_c = [{}];
|
|
2661
|
-
return [4
|
|
2661
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
2662
2662
|
case 3:
|
|
2663
2663
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2664
|
-
return [3
|
|
2664
|
+
return [3, 9];
|
|
2665
2665
|
case 4:
|
|
2666
2666
|
_d = [{}];
|
|
2667
|
-
return [4
|
|
2667
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2668
2668
|
case 5:
|
|
2669
2669
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2670
|
-
return [3
|
|
2670
|
+
return [3, 9];
|
|
2671
2671
|
case 6:
|
|
2672
2672
|
_e = [{}];
|
|
2673
|
-
return [4
|
|
2673
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2674
2674
|
case 7:
|
|
2675
2675
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2676
|
-
return [3
|
|
2676
|
+
return [3, 9];
|
|
2677
2677
|
case 8:
|
|
2678
2678
|
parsedBody = parsedOutput.body;
|
|
2679
2679
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2683,7 +2683,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2683
2683
|
message = response.message || response.Message || errorCode;
|
|
2684
2684
|
response.message = message;
|
|
2685
2685
|
delete response.Message;
|
|
2686
|
-
return [2
|
|
2686
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2687
2687
|
}
|
|
2688
2688
|
});
|
|
2689
2689
|
}); };
|
|
@@ -2693,15 +2693,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2693
2693
|
switch (_a.label) {
|
|
2694
2694
|
case 0:
|
|
2695
2695
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2696
|
-
return [2
|
|
2696
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
2697
2697
|
}
|
|
2698
2698
|
contents = {
|
|
2699
2699
|
$metadata: deserializeMetadata(output),
|
|
2700
2700
|
};
|
|
2701
|
-
return [4
|
|
2701
|
+
return [4, collectBody(output.body, context)];
|
|
2702
2702
|
case 1:
|
|
2703
2703
|
_a.sent();
|
|
2704
|
-
return [2
|
|
2704
|
+
return [2, Promise.resolve(contents)];
|
|
2705
2705
|
}
|
|
2706
2706
|
});
|
|
2707
2707
|
}); };
|
|
@@ -2713,39 +2713,39 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2713
2713
|
case 0:
|
|
2714
2714
|
_a = [__assign({}, output)];
|
|
2715
2715
|
_f = {};
|
|
2716
|
-
return [4
|
|
2716
|
+
return [4, parseBody(output.body, context)];
|
|
2717
2717
|
case 1:
|
|
2718
2718
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2719
2719
|
errorCode = "UnknownError";
|
|
2720
2720
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2721
2721
|
_b = errorCode;
|
|
2722
2722
|
switch (_b) {
|
|
2723
|
-
case "DependencyException": return [3
|
|
2724
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
2725
|
-
case "InvalidParameterException": return [3
|
|
2726
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
2727
|
-
case "ResourceNotFoundException": return [3
|
|
2728
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
2729
|
-
}
|
|
2730
|
-
return [3
|
|
2723
|
+
case "DependencyException": return [3, 2];
|
|
2724
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
2725
|
+
case "InvalidParameterException": return [3, 4];
|
|
2726
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
2727
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2728
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
2729
|
+
}
|
|
2730
|
+
return [3, 8];
|
|
2731
2731
|
case 2:
|
|
2732
2732
|
_c = [{}];
|
|
2733
|
-
return [4
|
|
2733
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
2734
2734
|
case 3:
|
|
2735
2735
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2736
|
-
return [3
|
|
2736
|
+
return [3, 9];
|
|
2737
2737
|
case 4:
|
|
2738
2738
|
_d = [{}];
|
|
2739
|
-
return [4
|
|
2739
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2740
2740
|
case 5:
|
|
2741
2741
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2742
|
-
return [3
|
|
2742
|
+
return [3, 9];
|
|
2743
2743
|
case 6:
|
|
2744
2744
|
_e = [{}];
|
|
2745
|
-
return [4
|
|
2745
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2746
2746
|
case 7:
|
|
2747
2747
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2748
|
-
return [3
|
|
2748
|
+
return [3, 9];
|
|
2749
2749
|
case 8:
|
|
2750
2750
|
parsedBody = parsedOutput.body;
|
|
2751
2751
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2755,7 +2755,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2755
2755
|
message = response.message || response.Message || errorCode;
|
|
2756
2756
|
response.message = message;
|
|
2757
2757
|
delete response.Message;
|
|
2758
|
-
return [2
|
|
2758
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2759
2759
|
}
|
|
2760
2760
|
});
|
|
2761
2761
|
}); };
|
|
@@ -2765,7 +2765,7 @@ export var deserializeAws_restJson1UpdateConfigCommand = function (output, conte
|
|
|
2765
2765
|
switch (_c.label) {
|
|
2766
2766
|
case 0:
|
|
2767
2767
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2768
|
-
return [2
|
|
2768
|
+
return [2, deserializeAws_restJson1UpdateConfigCommandError(output, context)];
|
|
2769
2769
|
}
|
|
2770
2770
|
contents = {
|
|
2771
2771
|
$metadata: deserializeMetadata(output),
|
|
@@ -2775,7 +2775,7 @@ export var deserializeAws_restJson1UpdateConfigCommand = function (output, conte
|
|
|
2775
2775
|
};
|
|
2776
2776
|
_a = __expectNonNull;
|
|
2777
2777
|
_b = __expectObject;
|
|
2778
|
-
return [4
|
|
2778
|
+
return [4, parseBody(output.body, context)];
|
|
2779
2779
|
case 1:
|
|
2780
2780
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2781
2781
|
if (data.configArn !== undefined && data.configArn !== null) {
|
|
@@ -2787,7 +2787,7 @@ export var deserializeAws_restJson1UpdateConfigCommand = function (output, conte
|
|
|
2787
2787
|
if (data.configType !== undefined && data.configType !== null) {
|
|
2788
2788
|
contents.configType = __expectString(data.configType);
|
|
2789
2789
|
}
|
|
2790
|
-
return [2
|
|
2790
|
+
return [2, Promise.resolve(contents)];
|
|
2791
2791
|
}
|
|
2792
2792
|
});
|
|
2793
2793
|
}); };
|
|
@@ -2799,39 +2799,39 @@ var deserializeAws_restJson1UpdateConfigCommandError = function (output, context
|
|
|
2799
2799
|
case 0:
|
|
2800
2800
|
_a = [__assign({}, output)];
|
|
2801
2801
|
_f = {};
|
|
2802
|
-
return [4
|
|
2802
|
+
return [4, parseBody(output.body, context)];
|
|
2803
2803
|
case 1:
|
|
2804
2804
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2805
2805
|
errorCode = "UnknownError";
|
|
2806
2806
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2807
2807
|
_b = errorCode;
|
|
2808
2808
|
switch (_b) {
|
|
2809
|
-
case "DependencyException": return [3
|
|
2810
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
2811
|
-
case "InvalidParameterException": return [3
|
|
2812
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
2813
|
-
case "ResourceNotFoundException": return [3
|
|
2814
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
2815
|
-
}
|
|
2816
|
-
return [3
|
|
2809
|
+
case "DependencyException": return [3, 2];
|
|
2810
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
2811
|
+
case "InvalidParameterException": return [3, 4];
|
|
2812
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
2813
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2814
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
2815
|
+
}
|
|
2816
|
+
return [3, 8];
|
|
2817
2817
|
case 2:
|
|
2818
2818
|
_c = [{}];
|
|
2819
|
-
return [4
|
|
2819
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
2820
2820
|
case 3:
|
|
2821
2821
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2822
|
-
return [3
|
|
2822
|
+
return [3, 9];
|
|
2823
2823
|
case 4:
|
|
2824
2824
|
_d = [{}];
|
|
2825
|
-
return [4
|
|
2825
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2826
2826
|
case 5:
|
|
2827
2827
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2828
|
-
return [3
|
|
2828
|
+
return [3, 9];
|
|
2829
2829
|
case 6:
|
|
2830
2830
|
_e = [{}];
|
|
2831
|
-
return [4
|
|
2831
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2832
2832
|
case 7:
|
|
2833
2833
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2834
|
-
return [3
|
|
2834
|
+
return [3, 9];
|
|
2835
2835
|
case 8:
|
|
2836
2836
|
parsedBody = parsedOutput.body;
|
|
2837
2837
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2841,7 +2841,7 @@ var deserializeAws_restJson1UpdateConfigCommandError = function (output, context
|
|
|
2841
2841
|
message = response.message || response.Message || errorCode;
|
|
2842
2842
|
response.message = message;
|
|
2843
2843
|
delete response.Message;
|
|
2844
|
-
return [2
|
|
2844
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2845
2845
|
}
|
|
2846
2846
|
});
|
|
2847
2847
|
}); };
|
|
@@ -2851,7 +2851,7 @@ export var deserializeAws_restJson1UpdateMissionProfileCommand = function (outpu
|
|
|
2851
2851
|
switch (_c.label) {
|
|
2852
2852
|
case 0:
|
|
2853
2853
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2854
|
-
return [2
|
|
2854
|
+
return [2, deserializeAws_restJson1UpdateMissionProfileCommandError(output, context)];
|
|
2855
2855
|
}
|
|
2856
2856
|
contents = {
|
|
2857
2857
|
$metadata: deserializeMetadata(output),
|
|
@@ -2859,13 +2859,13 @@ export var deserializeAws_restJson1UpdateMissionProfileCommand = function (outpu
|
|
|
2859
2859
|
};
|
|
2860
2860
|
_a = __expectNonNull;
|
|
2861
2861
|
_b = __expectObject;
|
|
2862
|
-
return [4
|
|
2862
|
+
return [4, parseBody(output.body, context)];
|
|
2863
2863
|
case 1:
|
|
2864
2864
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2865
2865
|
if (data.missionProfileId !== undefined && data.missionProfileId !== null) {
|
|
2866
2866
|
contents.missionProfileId = __expectString(data.missionProfileId);
|
|
2867
2867
|
}
|
|
2868
|
-
return [2
|
|
2868
|
+
return [2, Promise.resolve(contents)];
|
|
2869
2869
|
}
|
|
2870
2870
|
});
|
|
2871
2871
|
}); };
|
|
@@ -2877,39 +2877,39 @@ var deserializeAws_restJson1UpdateMissionProfileCommandError = function (output,
|
|
|
2877
2877
|
case 0:
|
|
2878
2878
|
_a = [__assign({}, output)];
|
|
2879
2879
|
_f = {};
|
|
2880
|
-
return [4
|
|
2880
|
+
return [4, parseBody(output.body, context)];
|
|
2881
2881
|
case 1:
|
|
2882
2882
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2883
2883
|
errorCode = "UnknownError";
|
|
2884
2884
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2885
2885
|
_b = errorCode;
|
|
2886
2886
|
switch (_b) {
|
|
2887
|
-
case "DependencyException": return [3
|
|
2888
|
-
case "com.amazonaws.groundstation#DependencyException": return [3
|
|
2889
|
-
case "InvalidParameterException": return [3
|
|
2890
|
-
case "com.amazonaws.groundstation#InvalidParameterException": return [3
|
|
2891
|
-
case "ResourceNotFoundException": return [3
|
|
2892
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3
|
|
2893
|
-
}
|
|
2894
|
-
return [3
|
|
2887
|
+
case "DependencyException": return [3, 2];
|
|
2888
|
+
case "com.amazonaws.groundstation#DependencyException": return [3, 2];
|
|
2889
|
+
case "InvalidParameterException": return [3, 4];
|
|
2890
|
+
case "com.amazonaws.groundstation#InvalidParameterException": return [3, 4];
|
|
2891
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2892
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException": return [3, 6];
|
|
2893
|
+
}
|
|
2894
|
+
return [3, 8];
|
|
2895
2895
|
case 2:
|
|
2896
2896
|
_c = [{}];
|
|
2897
|
-
return [4
|
|
2897
|
+
return [4, deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)];
|
|
2898
2898
|
case 3:
|
|
2899
2899
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2900
|
-
return [3
|
|
2900
|
+
return [3, 9];
|
|
2901
2901
|
case 4:
|
|
2902
2902
|
_d = [{}];
|
|
2903
|
-
return [4
|
|
2903
|
+
return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2904
2904
|
case 5:
|
|
2905
2905
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2906
|
-
return [3
|
|
2906
|
+
return [3, 9];
|
|
2907
2907
|
case 6:
|
|
2908
2908
|
_e = [{}];
|
|
2909
|
-
return [4
|
|
2909
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2910
2910
|
case 7:
|
|
2911
2911
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2912
|
-
return [3
|
|
2912
|
+
return [3, 9];
|
|
2913
2913
|
case 8:
|
|
2914
2914
|
parsedBody = parsedOutput.body;
|
|
2915
2915
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2919,7 +2919,7 @@ var deserializeAws_restJson1UpdateMissionProfileCommandError = function (output,
|
|
|
2919
2919
|
message = response.message || response.Message || errorCode;
|
|
2920
2920
|
response.message = message;
|
|
2921
2921
|
delete response.Message;
|
|
2922
|
-
return [2
|
|
2922
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2923
2923
|
}
|
|
2924
2924
|
});
|
|
2925
2925
|
}); };
|
|
@@ -2940,7 +2940,7 @@ var deserializeAws_restJson1DependencyExceptionResponse = function (parsedOutput
|
|
|
2940
2940
|
if (data.parameterName !== undefined && data.parameterName !== null) {
|
|
2941
2941
|
contents.parameterName = __expectString(data.parameterName);
|
|
2942
2942
|
}
|
|
2943
|
-
return [2
|
|
2943
|
+
return [2, contents];
|
|
2944
2944
|
});
|
|
2945
2945
|
}); };
|
|
2946
2946
|
var deserializeAws_restJson1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2960,7 +2960,7 @@ var deserializeAws_restJson1InvalidParameterExceptionResponse = function (parsed
|
|
|
2960
2960
|
if (data.parameterName !== undefined && data.parameterName !== null) {
|
|
2961
2961
|
contents.parameterName = __expectString(data.parameterName);
|
|
2962
2962
|
}
|
|
2963
|
-
return [2
|
|
2963
|
+
return [2, contents];
|
|
2964
2964
|
});
|
|
2965
2965
|
}); };
|
|
2966
2966
|
var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2980,7 +2980,7 @@ var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (p
|
|
|
2980
2980
|
if (data.parameterName !== undefined && data.parameterName !== null) {
|
|
2981
2981
|
contents.parameterName = __expectString(data.parameterName);
|
|
2982
2982
|
}
|
|
2983
|
-
return [2
|
|
2983
|
+
return [2, contents];
|
|
2984
2984
|
});
|
|
2985
2985
|
}); };
|
|
2986
2986
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2996,7 +2996,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
2996
2996
|
if (data.message !== undefined && data.message !== null) {
|
|
2997
2997
|
contents.message = __expectString(data.message);
|
|
2998
2998
|
}
|
|
2999
|
-
return [2
|
|
2999
|
+
return [2, contents];
|
|
3000
3000
|
});
|
|
3001
3001
|
}); };
|
|
3002
3002
|
var serializeAws_restJson1AntennaDownlinkConfig = function (input, context) {
|
|
@@ -3639,7 +3639,6 @@ var deserializeMetadata = function (output) {
|
|
|
3639
3639
|
cfId: output.headers["x-amz-cf-id"],
|
|
3640
3640
|
});
|
|
3641
3641
|
};
|
|
3642
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3643
3642
|
var collectBody = function (streamBody, context) {
|
|
3644
3643
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
3645
3644
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -3647,7 +3646,6 @@ var collectBody = function (streamBody, context) {
|
|
|
3647
3646
|
}
|
|
3648
3647
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3649
3648
|
};
|
|
3650
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3651
3649
|
var collectBodyString = function (streamBody, context) {
|
|
3652
3650
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
3653
3651
|
};
|
|
@@ -3666,9 +3664,6 @@ var parseBody = function (streamBody, context) {
|
|
|
3666
3664
|
return {};
|
|
3667
3665
|
});
|
|
3668
3666
|
};
|
|
3669
|
-
/**
|
|
3670
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3671
|
-
*/
|
|
3672
3667
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3673
3668
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3674
3669
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -3693,4 +3688,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
3693
3688
|
}
|
|
3694
3689
|
return "";
|
|
3695
3690
|
};
|
|
3696
|
-
//# sourceMappingURL=Aws_restJson1.js.map
|