@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,3831 +0,0 @@
|
|
|
1
|
-
import { CancelContactCommandInput, CancelContactCommandOutput } from "../commands/CancelContactCommand";
|
|
2
|
-
import { CreateConfigCommandInput, CreateConfigCommandOutput } from "../commands/CreateConfigCommand";
|
|
3
|
-
import {
|
|
4
|
-
CreateDataflowEndpointGroupCommandInput,
|
|
5
|
-
CreateDataflowEndpointGroupCommandOutput,
|
|
6
|
-
} from "../commands/CreateDataflowEndpointGroupCommand";
|
|
7
|
-
import {
|
|
8
|
-
CreateMissionProfileCommandInput,
|
|
9
|
-
CreateMissionProfileCommandOutput,
|
|
10
|
-
} from "../commands/CreateMissionProfileCommand";
|
|
11
|
-
import { DeleteConfigCommandInput, DeleteConfigCommandOutput } from "../commands/DeleteConfigCommand";
|
|
12
|
-
import {
|
|
13
|
-
DeleteDataflowEndpointGroupCommandInput,
|
|
14
|
-
DeleteDataflowEndpointGroupCommandOutput,
|
|
15
|
-
} from "../commands/DeleteDataflowEndpointGroupCommand";
|
|
16
|
-
import {
|
|
17
|
-
DeleteMissionProfileCommandInput,
|
|
18
|
-
DeleteMissionProfileCommandOutput,
|
|
19
|
-
} from "../commands/DeleteMissionProfileCommand";
|
|
20
|
-
import { DescribeContactCommandInput, DescribeContactCommandOutput } from "../commands/DescribeContactCommand";
|
|
21
|
-
import { GetConfigCommandInput, GetConfigCommandOutput } from "../commands/GetConfigCommand";
|
|
22
|
-
import {
|
|
23
|
-
GetDataflowEndpointGroupCommandInput,
|
|
24
|
-
GetDataflowEndpointGroupCommandOutput,
|
|
25
|
-
} from "../commands/GetDataflowEndpointGroupCommand";
|
|
26
|
-
import { GetMinuteUsageCommandInput, GetMinuteUsageCommandOutput } from "../commands/GetMinuteUsageCommand";
|
|
27
|
-
import { GetMissionProfileCommandInput, GetMissionProfileCommandOutput } from "../commands/GetMissionProfileCommand";
|
|
28
|
-
import { GetSatelliteCommandInput, GetSatelliteCommandOutput } from "../commands/GetSatelliteCommand";
|
|
29
|
-
import { ListConfigsCommandInput, ListConfigsCommandOutput } from "../commands/ListConfigsCommand";
|
|
30
|
-
import { ListContactsCommandInput, ListContactsCommandOutput } from "../commands/ListContactsCommand";
|
|
31
|
-
import {
|
|
32
|
-
ListDataflowEndpointGroupsCommandInput,
|
|
33
|
-
ListDataflowEndpointGroupsCommandOutput,
|
|
34
|
-
} from "../commands/ListDataflowEndpointGroupsCommand";
|
|
35
|
-
import { ListGroundStationsCommandInput, ListGroundStationsCommandOutput } from "../commands/ListGroundStationsCommand";
|
|
36
|
-
import {
|
|
37
|
-
ListMissionProfilesCommandInput,
|
|
38
|
-
ListMissionProfilesCommandOutput,
|
|
39
|
-
} from "../commands/ListMissionProfilesCommand";
|
|
40
|
-
import { ListSatellitesCommandInput, ListSatellitesCommandOutput } from "../commands/ListSatellitesCommand";
|
|
41
|
-
import {
|
|
42
|
-
ListTagsForResourceCommandInput,
|
|
43
|
-
ListTagsForResourceCommandOutput,
|
|
44
|
-
} from "../commands/ListTagsForResourceCommand";
|
|
45
|
-
import { ReserveContactCommandInput, ReserveContactCommandOutput } from "../commands/ReserveContactCommand";
|
|
46
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
47
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
48
|
-
import { UpdateConfigCommandInput, UpdateConfigCommandOutput } from "../commands/UpdateConfigCommand";
|
|
49
|
-
import {
|
|
50
|
-
UpdateMissionProfileCommandInput,
|
|
51
|
-
UpdateMissionProfileCommandOutput,
|
|
52
|
-
} from "../commands/UpdateMissionProfileCommand";
|
|
53
|
-
import {
|
|
54
|
-
AntennaDemodDecodeDetails,
|
|
55
|
-
AntennaDownlinkConfig,
|
|
56
|
-
AntennaDownlinkDemodDecodeConfig,
|
|
57
|
-
AntennaUplinkConfig,
|
|
58
|
-
ConfigDetails,
|
|
59
|
-
ConfigListItem,
|
|
60
|
-
ConfigTypeData,
|
|
61
|
-
ContactData,
|
|
62
|
-
ContactStatus,
|
|
63
|
-
DataflowDetail,
|
|
64
|
-
DataflowEndpoint,
|
|
65
|
-
DataflowEndpointConfig,
|
|
66
|
-
DataflowEndpointListItem,
|
|
67
|
-
DecodeConfig,
|
|
68
|
-
DemodulationConfig,
|
|
69
|
-
DependencyException,
|
|
70
|
-
Destination,
|
|
71
|
-
Eirp,
|
|
72
|
-
Elevation,
|
|
73
|
-
EndpointDetails,
|
|
74
|
-
Frequency,
|
|
75
|
-
FrequencyBandwidth,
|
|
76
|
-
GroundStationData,
|
|
77
|
-
InvalidParameterException,
|
|
78
|
-
MissionProfileListItem,
|
|
79
|
-
ResourceLimitExceededException,
|
|
80
|
-
ResourceNotFoundException,
|
|
81
|
-
S3RecordingConfig,
|
|
82
|
-
S3RecordingDetails,
|
|
83
|
-
SatelliteListItem,
|
|
84
|
-
SecurityDetails,
|
|
85
|
-
SocketAddress,
|
|
86
|
-
Source,
|
|
87
|
-
SpectrumConfig,
|
|
88
|
-
TrackingConfig,
|
|
89
|
-
UplinkEchoConfig,
|
|
90
|
-
UplinkSpectrumConfig,
|
|
91
|
-
} from "../models/models_0";
|
|
92
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
93
|
-
import {
|
|
94
|
-
expectBoolean as __expectBoolean,
|
|
95
|
-
expectInt32 as __expectInt32,
|
|
96
|
-
expectNonNull as __expectNonNull,
|
|
97
|
-
expectNumber as __expectNumber,
|
|
98
|
-
expectObject as __expectObject,
|
|
99
|
-
expectString as __expectString,
|
|
100
|
-
expectUnion as __expectUnion,
|
|
101
|
-
extendedEncodeURIComponent as __extendedEncodeURIComponent,
|
|
102
|
-
limitedParseDouble as __limitedParseDouble,
|
|
103
|
-
parseEpochTimestamp as __parseEpochTimestamp,
|
|
104
|
-
serializeFloat as __serializeFloat,
|
|
105
|
-
} from "@aws-sdk/smithy-client";
|
|
106
|
-
import {
|
|
107
|
-
Endpoint as __Endpoint,
|
|
108
|
-
MetadataBearer as __MetadataBearer,
|
|
109
|
-
ResponseMetadata as __ResponseMetadata,
|
|
110
|
-
SerdeContext as __SerdeContext,
|
|
111
|
-
SmithyException as __SmithyException,
|
|
112
|
-
} from "@aws-sdk/types";
|
|
113
|
-
|
|
114
|
-
export const serializeAws_restJson1CancelContactCommand = async (
|
|
115
|
-
input: CancelContactCommandInput,
|
|
116
|
-
context: __SerdeContext
|
|
117
|
-
): Promise<__HttpRequest> => {
|
|
118
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
119
|
-
const headers: any = {};
|
|
120
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/{contactId}";
|
|
121
|
-
if (input.contactId !== undefined) {
|
|
122
|
-
const labelValue: string = input.contactId;
|
|
123
|
-
if (labelValue.length <= 0) {
|
|
124
|
-
throw new Error("Empty value provided for input HTTP label: contactId.");
|
|
125
|
-
}
|
|
126
|
-
resolvedPath = resolvedPath.replace("{contactId}", __extendedEncodeURIComponent(labelValue));
|
|
127
|
-
} else {
|
|
128
|
-
throw new Error("No value provided for input HTTP label: contactId.");
|
|
129
|
-
}
|
|
130
|
-
let body: any;
|
|
131
|
-
return new __HttpRequest({
|
|
132
|
-
protocol,
|
|
133
|
-
hostname,
|
|
134
|
-
port,
|
|
135
|
-
method: "DELETE",
|
|
136
|
-
headers,
|
|
137
|
-
path: resolvedPath,
|
|
138
|
-
body,
|
|
139
|
-
});
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
export const serializeAws_restJson1CreateConfigCommand = async (
|
|
143
|
-
input: CreateConfigCommandInput,
|
|
144
|
-
context: __SerdeContext
|
|
145
|
-
): Promise<__HttpRequest> => {
|
|
146
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
147
|
-
const headers: any = {
|
|
148
|
-
"content-type": "application/json",
|
|
149
|
-
};
|
|
150
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/config";
|
|
151
|
-
let body: any;
|
|
152
|
-
body = JSON.stringify({
|
|
153
|
-
...(input.configData !== undefined &&
|
|
154
|
-
input.configData !== null && { configData: serializeAws_restJson1ConfigTypeData(input.configData, context) }),
|
|
155
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
156
|
-
...(input.tags !== undefined &&
|
|
157
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
158
|
-
});
|
|
159
|
-
return new __HttpRequest({
|
|
160
|
-
protocol,
|
|
161
|
-
hostname,
|
|
162
|
-
port,
|
|
163
|
-
method: "POST",
|
|
164
|
-
headers,
|
|
165
|
-
path: resolvedPath,
|
|
166
|
-
body,
|
|
167
|
-
});
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
export const serializeAws_restJson1CreateDataflowEndpointGroupCommand = async (
|
|
171
|
-
input: CreateDataflowEndpointGroupCommandInput,
|
|
172
|
-
context: __SerdeContext
|
|
173
|
-
): Promise<__HttpRequest> => {
|
|
174
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
175
|
-
const headers: any = {
|
|
176
|
-
"content-type": "application/json",
|
|
177
|
-
};
|
|
178
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataflowEndpointGroup";
|
|
179
|
-
let body: any;
|
|
180
|
-
body = JSON.stringify({
|
|
181
|
-
...(input.endpointDetails !== undefined &&
|
|
182
|
-
input.endpointDetails !== null && {
|
|
183
|
-
endpointDetails: serializeAws_restJson1EndpointDetailsList(input.endpointDetails, context),
|
|
184
|
-
}),
|
|
185
|
-
...(input.tags !== undefined &&
|
|
186
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
187
|
-
});
|
|
188
|
-
return new __HttpRequest({
|
|
189
|
-
protocol,
|
|
190
|
-
hostname,
|
|
191
|
-
port,
|
|
192
|
-
method: "POST",
|
|
193
|
-
headers,
|
|
194
|
-
path: resolvedPath,
|
|
195
|
-
body,
|
|
196
|
-
});
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
export const serializeAws_restJson1CreateMissionProfileCommand = async (
|
|
200
|
-
input: CreateMissionProfileCommandInput,
|
|
201
|
-
context: __SerdeContext
|
|
202
|
-
): Promise<__HttpRequest> => {
|
|
203
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
204
|
-
const headers: any = {
|
|
205
|
-
"content-type": "application/json",
|
|
206
|
-
};
|
|
207
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile";
|
|
208
|
-
let body: any;
|
|
209
|
-
body = JSON.stringify({
|
|
210
|
-
...(input.contactPostPassDurationSeconds !== undefined &&
|
|
211
|
-
input.contactPostPassDurationSeconds !== null && {
|
|
212
|
-
contactPostPassDurationSeconds: input.contactPostPassDurationSeconds,
|
|
213
|
-
}),
|
|
214
|
-
...(input.contactPrePassDurationSeconds !== undefined &&
|
|
215
|
-
input.contactPrePassDurationSeconds !== null && {
|
|
216
|
-
contactPrePassDurationSeconds: input.contactPrePassDurationSeconds,
|
|
217
|
-
}),
|
|
218
|
-
...(input.dataflowEdges !== undefined &&
|
|
219
|
-
input.dataflowEdges !== null && {
|
|
220
|
-
dataflowEdges: serializeAws_restJson1DataflowEdgeList(input.dataflowEdges, context),
|
|
221
|
-
}),
|
|
222
|
-
...(input.minimumViableContactDurationSeconds !== undefined &&
|
|
223
|
-
input.minimumViableContactDurationSeconds !== null && {
|
|
224
|
-
minimumViableContactDurationSeconds: input.minimumViableContactDurationSeconds,
|
|
225
|
-
}),
|
|
226
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
227
|
-
...(input.tags !== undefined &&
|
|
228
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
229
|
-
...(input.trackingConfigArn !== undefined &&
|
|
230
|
-
input.trackingConfigArn !== null && { trackingConfigArn: input.trackingConfigArn }),
|
|
231
|
-
});
|
|
232
|
-
return new __HttpRequest({
|
|
233
|
-
protocol,
|
|
234
|
-
hostname,
|
|
235
|
-
port,
|
|
236
|
-
method: "POST",
|
|
237
|
-
headers,
|
|
238
|
-
path: resolvedPath,
|
|
239
|
-
body,
|
|
240
|
-
});
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
export const serializeAws_restJson1DeleteConfigCommand = async (
|
|
244
|
-
input: DeleteConfigCommandInput,
|
|
245
|
-
context: __SerdeContext
|
|
246
|
-
): Promise<__HttpRequest> => {
|
|
247
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
248
|
-
const headers: any = {};
|
|
249
|
-
let resolvedPath =
|
|
250
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/config/{configType}/{configId}";
|
|
251
|
-
if (input.configId !== undefined) {
|
|
252
|
-
const labelValue: string = input.configId;
|
|
253
|
-
if (labelValue.length <= 0) {
|
|
254
|
-
throw new Error("Empty value provided for input HTTP label: configId.");
|
|
255
|
-
}
|
|
256
|
-
resolvedPath = resolvedPath.replace("{configId}", __extendedEncodeURIComponent(labelValue));
|
|
257
|
-
} else {
|
|
258
|
-
throw new Error("No value provided for input HTTP label: configId.");
|
|
259
|
-
}
|
|
260
|
-
if (input.configType !== undefined) {
|
|
261
|
-
const labelValue: string = input.configType;
|
|
262
|
-
if (labelValue.length <= 0) {
|
|
263
|
-
throw new Error("Empty value provided for input HTTP label: configType.");
|
|
264
|
-
}
|
|
265
|
-
resolvedPath = resolvedPath.replace("{configType}", __extendedEncodeURIComponent(labelValue));
|
|
266
|
-
} else {
|
|
267
|
-
throw new Error("No value provided for input HTTP label: configType.");
|
|
268
|
-
}
|
|
269
|
-
let body: any;
|
|
270
|
-
return new __HttpRequest({
|
|
271
|
-
protocol,
|
|
272
|
-
hostname,
|
|
273
|
-
port,
|
|
274
|
-
method: "DELETE",
|
|
275
|
-
headers,
|
|
276
|
-
path: resolvedPath,
|
|
277
|
-
body,
|
|
278
|
-
});
|
|
279
|
-
};
|
|
280
|
-
|
|
281
|
-
export const serializeAws_restJson1DeleteDataflowEndpointGroupCommand = async (
|
|
282
|
-
input: DeleteDataflowEndpointGroupCommandInput,
|
|
283
|
-
context: __SerdeContext
|
|
284
|
-
): Promise<__HttpRequest> => {
|
|
285
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
286
|
-
const headers: any = {};
|
|
287
|
-
let resolvedPath =
|
|
288
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
289
|
-
"/dataflowEndpointGroup/{dataflowEndpointGroupId}";
|
|
290
|
-
if (input.dataflowEndpointGroupId !== undefined) {
|
|
291
|
-
const labelValue: string = input.dataflowEndpointGroupId;
|
|
292
|
-
if (labelValue.length <= 0) {
|
|
293
|
-
throw new Error("Empty value provided for input HTTP label: dataflowEndpointGroupId.");
|
|
294
|
-
}
|
|
295
|
-
resolvedPath = resolvedPath.replace("{dataflowEndpointGroupId}", __extendedEncodeURIComponent(labelValue));
|
|
296
|
-
} else {
|
|
297
|
-
throw new Error("No value provided for input HTTP label: dataflowEndpointGroupId.");
|
|
298
|
-
}
|
|
299
|
-
let body: any;
|
|
300
|
-
return new __HttpRequest({
|
|
301
|
-
protocol,
|
|
302
|
-
hostname,
|
|
303
|
-
port,
|
|
304
|
-
method: "DELETE",
|
|
305
|
-
headers,
|
|
306
|
-
path: resolvedPath,
|
|
307
|
-
body,
|
|
308
|
-
});
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
export const serializeAws_restJson1DeleteMissionProfileCommand = async (
|
|
312
|
-
input: DeleteMissionProfileCommandInput,
|
|
313
|
-
context: __SerdeContext
|
|
314
|
-
): Promise<__HttpRequest> => {
|
|
315
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
316
|
-
const headers: any = {};
|
|
317
|
-
let resolvedPath =
|
|
318
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile/{missionProfileId}";
|
|
319
|
-
if (input.missionProfileId !== undefined) {
|
|
320
|
-
const labelValue: string = input.missionProfileId;
|
|
321
|
-
if (labelValue.length <= 0) {
|
|
322
|
-
throw new Error("Empty value provided for input HTTP label: missionProfileId.");
|
|
323
|
-
}
|
|
324
|
-
resolvedPath = resolvedPath.replace("{missionProfileId}", __extendedEncodeURIComponent(labelValue));
|
|
325
|
-
} else {
|
|
326
|
-
throw new Error("No value provided for input HTTP label: missionProfileId.");
|
|
327
|
-
}
|
|
328
|
-
let body: any;
|
|
329
|
-
return new __HttpRequest({
|
|
330
|
-
protocol,
|
|
331
|
-
hostname,
|
|
332
|
-
port,
|
|
333
|
-
method: "DELETE",
|
|
334
|
-
headers,
|
|
335
|
-
path: resolvedPath,
|
|
336
|
-
body,
|
|
337
|
-
});
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
export const serializeAws_restJson1DescribeContactCommand = async (
|
|
341
|
-
input: DescribeContactCommandInput,
|
|
342
|
-
context: __SerdeContext
|
|
343
|
-
): Promise<__HttpRequest> => {
|
|
344
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
345
|
-
const headers: any = {};
|
|
346
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact/{contactId}";
|
|
347
|
-
if (input.contactId !== undefined) {
|
|
348
|
-
const labelValue: string = input.contactId;
|
|
349
|
-
if (labelValue.length <= 0) {
|
|
350
|
-
throw new Error("Empty value provided for input HTTP label: contactId.");
|
|
351
|
-
}
|
|
352
|
-
resolvedPath = resolvedPath.replace("{contactId}", __extendedEncodeURIComponent(labelValue));
|
|
353
|
-
} else {
|
|
354
|
-
throw new Error("No value provided for input HTTP label: contactId.");
|
|
355
|
-
}
|
|
356
|
-
let body: any;
|
|
357
|
-
return new __HttpRequest({
|
|
358
|
-
protocol,
|
|
359
|
-
hostname,
|
|
360
|
-
port,
|
|
361
|
-
method: "GET",
|
|
362
|
-
headers,
|
|
363
|
-
path: resolvedPath,
|
|
364
|
-
body,
|
|
365
|
-
});
|
|
366
|
-
};
|
|
367
|
-
|
|
368
|
-
export const serializeAws_restJson1GetConfigCommand = async (
|
|
369
|
-
input: GetConfigCommandInput,
|
|
370
|
-
context: __SerdeContext
|
|
371
|
-
): Promise<__HttpRequest> => {
|
|
372
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
373
|
-
const headers: any = {};
|
|
374
|
-
let resolvedPath =
|
|
375
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/config/{configType}/{configId}";
|
|
376
|
-
if (input.configId !== undefined) {
|
|
377
|
-
const labelValue: string = input.configId;
|
|
378
|
-
if (labelValue.length <= 0) {
|
|
379
|
-
throw new Error("Empty value provided for input HTTP label: configId.");
|
|
380
|
-
}
|
|
381
|
-
resolvedPath = resolvedPath.replace("{configId}", __extendedEncodeURIComponent(labelValue));
|
|
382
|
-
} else {
|
|
383
|
-
throw new Error("No value provided for input HTTP label: configId.");
|
|
384
|
-
}
|
|
385
|
-
if (input.configType !== undefined) {
|
|
386
|
-
const labelValue: string = input.configType;
|
|
387
|
-
if (labelValue.length <= 0) {
|
|
388
|
-
throw new Error("Empty value provided for input HTTP label: configType.");
|
|
389
|
-
}
|
|
390
|
-
resolvedPath = resolvedPath.replace("{configType}", __extendedEncodeURIComponent(labelValue));
|
|
391
|
-
} else {
|
|
392
|
-
throw new Error("No value provided for input HTTP label: configType.");
|
|
393
|
-
}
|
|
394
|
-
let body: any;
|
|
395
|
-
return new __HttpRequest({
|
|
396
|
-
protocol,
|
|
397
|
-
hostname,
|
|
398
|
-
port,
|
|
399
|
-
method: "GET",
|
|
400
|
-
headers,
|
|
401
|
-
path: resolvedPath,
|
|
402
|
-
body,
|
|
403
|
-
});
|
|
404
|
-
};
|
|
405
|
-
|
|
406
|
-
export const serializeAws_restJson1GetDataflowEndpointGroupCommand = async (
|
|
407
|
-
input: GetDataflowEndpointGroupCommandInput,
|
|
408
|
-
context: __SerdeContext
|
|
409
|
-
): Promise<__HttpRequest> => {
|
|
410
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
411
|
-
const headers: any = {};
|
|
412
|
-
let resolvedPath =
|
|
413
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
414
|
-
"/dataflowEndpointGroup/{dataflowEndpointGroupId}";
|
|
415
|
-
if (input.dataflowEndpointGroupId !== undefined) {
|
|
416
|
-
const labelValue: string = input.dataflowEndpointGroupId;
|
|
417
|
-
if (labelValue.length <= 0) {
|
|
418
|
-
throw new Error("Empty value provided for input HTTP label: dataflowEndpointGroupId.");
|
|
419
|
-
}
|
|
420
|
-
resolvedPath = resolvedPath.replace("{dataflowEndpointGroupId}", __extendedEncodeURIComponent(labelValue));
|
|
421
|
-
} else {
|
|
422
|
-
throw new Error("No value provided for input HTTP label: dataflowEndpointGroupId.");
|
|
423
|
-
}
|
|
424
|
-
let body: any;
|
|
425
|
-
return new __HttpRequest({
|
|
426
|
-
protocol,
|
|
427
|
-
hostname,
|
|
428
|
-
port,
|
|
429
|
-
method: "GET",
|
|
430
|
-
headers,
|
|
431
|
-
path: resolvedPath,
|
|
432
|
-
body,
|
|
433
|
-
});
|
|
434
|
-
};
|
|
435
|
-
|
|
436
|
-
export const serializeAws_restJson1GetMinuteUsageCommand = async (
|
|
437
|
-
input: GetMinuteUsageCommandInput,
|
|
438
|
-
context: __SerdeContext
|
|
439
|
-
): Promise<__HttpRequest> => {
|
|
440
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
441
|
-
const headers: any = {
|
|
442
|
-
"content-type": "application/json",
|
|
443
|
-
};
|
|
444
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/minute-usage";
|
|
445
|
-
let body: any;
|
|
446
|
-
body = JSON.stringify({
|
|
447
|
-
...(input.month !== undefined && input.month !== null && { month: input.month }),
|
|
448
|
-
...(input.year !== undefined && input.year !== null && { year: input.year }),
|
|
449
|
-
});
|
|
450
|
-
return new __HttpRequest({
|
|
451
|
-
protocol,
|
|
452
|
-
hostname,
|
|
453
|
-
port,
|
|
454
|
-
method: "POST",
|
|
455
|
-
headers,
|
|
456
|
-
path: resolvedPath,
|
|
457
|
-
body,
|
|
458
|
-
});
|
|
459
|
-
};
|
|
460
|
-
|
|
461
|
-
export const serializeAws_restJson1GetMissionProfileCommand = async (
|
|
462
|
-
input: GetMissionProfileCommandInput,
|
|
463
|
-
context: __SerdeContext
|
|
464
|
-
): Promise<__HttpRequest> => {
|
|
465
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
466
|
-
const headers: any = {};
|
|
467
|
-
let resolvedPath =
|
|
468
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile/{missionProfileId}";
|
|
469
|
-
if (input.missionProfileId !== undefined) {
|
|
470
|
-
const labelValue: string = input.missionProfileId;
|
|
471
|
-
if (labelValue.length <= 0) {
|
|
472
|
-
throw new Error("Empty value provided for input HTTP label: missionProfileId.");
|
|
473
|
-
}
|
|
474
|
-
resolvedPath = resolvedPath.replace("{missionProfileId}", __extendedEncodeURIComponent(labelValue));
|
|
475
|
-
} else {
|
|
476
|
-
throw new Error("No value provided for input HTTP label: missionProfileId.");
|
|
477
|
-
}
|
|
478
|
-
let body: any;
|
|
479
|
-
return new __HttpRequest({
|
|
480
|
-
protocol,
|
|
481
|
-
hostname,
|
|
482
|
-
port,
|
|
483
|
-
method: "GET",
|
|
484
|
-
headers,
|
|
485
|
-
path: resolvedPath,
|
|
486
|
-
body,
|
|
487
|
-
});
|
|
488
|
-
};
|
|
489
|
-
|
|
490
|
-
export const serializeAws_restJson1GetSatelliteCommand = async (
|
|
491
|
-
input: GetSatelliteCommandInput,
|
|
492
|
-
context: __SerdeContext
|
|
493
|
-
): Promise<__HttpRequest> => {
|
|
494
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
495
|
-
const headers: any = {};
|
|
496
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/satellite/{satelliteId}";
|
|
497
|
-
if (input.satelliteId !== undefined) {
|
|
498
|
-
const labelValue: string = input.satelliteId;
|
|
499
|
-
if (labelValue.length <= 0) {
|
|
500
|
-
throw new Error("Empty value provided for input HTTP label: satelliteId.");
|
|
501
|
-
}
|
|
502
|
-
resolvedPath = resolvedPath.replace("{satelliteId}", __extendedEncodeURIComponent(labelValue));
|
|
503
|
-
} else {
|
|
504
|
-
throw new Error("No value provided for input HTTP label: satelliteId.");
|
|
505
|
-
}
|
|
506
|
-
let body: any;
|
|
507
|
-
return new __HttpRequest({
|
|
508
|
-
protocol,
|
|
509
|
-
hostname,
|
|
510
|
-
port,
|
|
511
|
-
method: "GET",
|
|
512
|
-
headers,
|
|
513
|
-
path: resolvedPath,
|
|
514
|
-
body,
|
|
515
|
-
});
|
|
516
|
-
};
|
|
517
|
-
|
|
518
|
-
export const serializeAws_restJson1ListConfigsCommand = async (
|
|
519
|
-
input: ListConfigsCommandInput,
|
|
520
|
-
context: __SerdeContext
|
|
521
|
-
): Promise<__HttpRequest> => {
|
|
522
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
523
|
-
const headers: any = {};
|
|
524
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/config";
|
|
525
|
-
const query: any = {
|
|
526
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
527
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
528
|
-
};
|
|
529
|
-
let body: any;
|
|
530
|
-
return new __HttpRequest({
|
|
531
|
-
protocol,
|
|
532
|
-
hostname,
|
|
533
|
-
port,
|
|
534
|
-
method: "GET",
|
|
535
|
-
headers,
|
|
536
|
-
path: resolvedPath,
|
|
537
|
-
query,
|
|
538
|
-
body,
|
|
539
|
-
});
|
|
540
|
-
};
|
|
541
|
-
|
|
542
|
-
export const serializeAws_restJson1ListContactsCommand = async (
|
|
543
|
-
input: ListContactsCommandInput,
|
|
544
|
-
context: __SerdeContext
|
|
545
|
-
): Promise<__HttpRequest> => {
|
|
546
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
547
|
-
const headers: any = {
|
|
548
|
-
"content-type": "application/json",
|
|
549
|
-
};
|
|
550
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contacts";
|
|
551
|
-
let body: any;
|
|
552
|
-
body = JSON.stringify({
|
|
553
|
-
...(input.endTime !== undefined &&
|
|
554
|
-
input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
555
|
-
...(input.groundStation !== undefined && input.groundStation !== null && { groundStation: input.groundStation }),
|
|
556
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
557
|
-
...(input.missionProfileArn !== undefined &&
|
|
558
|
-
input.missionProfileArn !== null && { missionProfileArn: input.missionProfileArn }),
|
|
559
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
560
|
-
...(input.satelliteArn !== undefined && input.satelliteArn !== null && { satelliteArn: input.satelliteArn }),
|
|
561
|
-
...(input.startTime !== undefined &&
|
|
562
|
-
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
563
|
-
...(input.statusList !== undefined &&
|
|
564
|
-
input.statusList !== null && { statusList: serializeAws_restJson1StatusList(input.statusList, context) }),
|
|
565
|
-
});
|
|
566
|
-
return new __HttpRequest({
|
|
567
|
-
protocol,
|
|
568
|
-
hostname,
|
|
569
|
-
port,
|
|
570
|
-
method: "POST",
|
|
571
|
-
headers,
|
|
572
|
-
path: resolvedPath,
|
|
573
|
-
body,
|
|
574
|
-
});
|
|
575
|
-
};
|
|
576
|
-
|
|
577
|
-
export const serializeAws_restJson1ListDataflowEndpointGroupsCommand = async (
|
|
578
|
-
input: ListDataflowEndpointGroupsCommandInput,
|
|
579
|
-
context: __SerdeContext
|
|
580
|
-
): Promise<__HttpRequest> => {
|
|
581
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
582
|
-
const headers: any = {};
|
|
583
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataflowEndpointGroup";
|
|
584
|
-
const query: any = {
|
|
585
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
586
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
587
|
-
};
|
|
588
|
-
let body: any;
|
|
589
|
-
return new __HttpRequest({
|
|
590
|
-
protocol,
|
|
591
|
-
hostname,
|
|
592
|
-
port,
|
|
593
|
-
method: "GET",
|
|
594
|
-
headers,
|
|
595
|
-
path: resolvedPath,
|
|
596
|
-
query,
|
|
597
|
-
body,
|
|
598
|
-
});
|
|
599
|
-
};
|
|
600
|
-
|
|
601
|
-
export const serializeAws_restJson1ListGroundStationsCommand = async (
|
|
602
|
-
input: ListGroundStationsCommandInput,
|
|
603
|
-
context: __SerdeContext
|
|
604
|
-
): Promise<__HttpRequest> => {
|
|
605
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
606
|
-
const headers: any = {};
|
|
607
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/groundstation";
|
|
608
|
-
const query: any = {
|
|
609
|
-
...(input.satelliteId !== undefined && { satelliteId: input.satelliteId }),
|
|
610
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
611
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
612
|
-
};
|
|
613
|
-
let body: any;
|
|
614
|
-
return new __HttpRequest({
|
|
615
|
-
protocol,
|
|
616
|
-
hostname,
|
|
617
|
-
port,
|
|
618
|
-
method: "GET",
|
|
619
|
-
headers,
|
|
620
|
-
path: resolvedPath,
|
|
621
|
-
query,
|
|
622
|
-
body,
|
|
623
|
-
});
|
|
624
|
-
};
|
|
625
|
-
|
|
626
|
-
export const serializeAws_restJson1ListMissionProfilesCommand = async (
|
|
627
|
-
input: ListMissionProfilesCommandInput,
|
|
628
|
-
context: __SerdeContext
|
|
629
|
-
): Promise<__HttpRequest> => {
|
|
630
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
631
|
-
const headers: any = {};
|
|
632
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile";
|
|
633
|
-
const query: any = {
|
|
634
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
635
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
636
|
-
};
|
|
637
|
-
let body: any;
|
|
638
|
-
return new __HttpRequest({
|
|
639
|
-
protocol,
|
|
640
|
-
hostname,
|
|
641
|
-
port,
|
|
642
|
-
method: "GET",
|
|
643
|
-
headers,
|
|
644
|
-
path: resolvedPath,
|
|
645
|
-
query,
|
|
646
|
-
body,
|
|
647
|
-
});
|
|
648
|
-
};
|
|
649
|
-
|
|
650
|
-
export const serializeAws_restJson1ListSatellitesCommand = async (
|
|
651
|
-
input: ListSatellitesCommandInput,
|
|
652
|
-
context: __SerdeContext
|
|
653
|
-
): Promise<__HttpRequest> => {
|
|
654
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
655
|
-
const headers: any = {};
|
|
656
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/satellite";
|
|
657
|
-
const query: any = {
|
|
658
|
-
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
659
|
-
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
660
|
-
};
|
|
661
|
-
let body: any;
|
|
662
|
-
return new __HttpRequest({
|
|
663
|
-
protocol,
|
|
664
|
-
hostname,
|
|
665
|
-
port,
|
|
666
|
-
method: "GET",
|
|
667
|
-
headers,
|
|
668
|
-
path: resolvedPath,
|
|
669
|
-
query,
|
|
670
|
-
body,
|
|
671
|
-
});
|
|
672
|
-
};
|
|
673
|
-
|
|
674
|
-
export const serializeAws_restJson1ListTagsForResourceCommand = async (
|
|
675
|
-
input: ListTagsForResourceCommandInput,
|
|
676
|
-
context: __SerdeContext
|
|
677
|
-
): Promise<__HttpRequest> => {
|
|
678
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
679
|
-
const headers: any = {};
|
|
680
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
681
|
-
if (input.resourceArn !== undefined) {
|
|
682
|
-
const labelValue: string = input.resourceArn;
|
|
683
|
-
if (labelValue.length <= 0) {
|
|
684
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
685
|
-
}
|
|
686
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
687
|
-
} else {
|
|
688
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
689
|
-
}
|
|
690
|
-
let body: any;
|
|
691
|
-
return new __HttpRequest({
|
|
692
|
-
protocol,
|
|
693
|
-
hostname,
|
|
694
|
-
port,
|
|
695
|
-
method: "GET",
|
|
696
|
-
headers,
|
|
697
|
-
path: resolvedPath,
|
|
698
|
-
body,
|
|
699
|
-
});
|
|
700
|
-
};
|
|
701
|
-
|
|
702
|
-
export const serializeAws_restJson1ReserveContactCommand = async (
|
|
703
|
-
input: ReserveContactCommandInput,
|
|
704
|
-
context: __SerdeContext
|
|
705
|
-
): Promise<__HttpRequest> => {
|
|
706
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
707
|
-
const headers: any = {
|
|
708
|
-
"content-type": "application/json",
|
|
709
|
-
};
|
|
710
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact";
|
|
711
|
-
let body: any;
|
|
712
|
-
body = JSON.stringify({
|
|
713
|
-
...(input.endTime !== undefined &&
|
|
714
|
-
input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
715
|
-
...(input.groundStation !== undefined && input.groundStation !== null && { groundStation: input.groundStation }),
|
|
716
|
-
...(input.missionProfileArn !== undefined &&
|
|
717
|
-
input.missionProfileArn !== null && { missionProfileArn: input.missionProfileArn }),
|
|
718
|
-
...(input.satelliteArn !== undefined && input.satelliteArn !== null && { satelliteArn: input.satelliteArn }),
|
|
719
|
-
...(input.startTime !== undefined &&
|
|
720
|
-
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
721
|
-
...(input.tags !== undefined &&
|
|
722
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
723
|
-
});
|
|
724
|
-
return new __HttpRequest({
|
|
725
|
-
protocol,
|
|
726
|
-
hostname,
|
|
727
|
-
port,
|
|
728
|
-
method: "POST",
|
|
729
|
-
headers,
|
|
730
|
-
path: resolvedPath,
|
|
731
|
-
body,
|
|
732
|
-
});
|
|
733
|
-
};
|
|
734
|
-
|
|
735
|
-
export const serializeAws_restJson1TagResourceCommand = async (
|
|
736
|
-
input: TagResourceCommandInput,
|
|
737
|
-
context: __SerdeContext
|
|
738
|
-
): Promise<__HttpRequest> => {
|
|
739
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
740
|
-
const headers: any = {
|
|
741
|
-
"content-type": "application/json",
|
|
742
|
-
};
|
|
743
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
744
|
-
if (input.resourceArn !== undefined) {
|
|
745
|
-
const labelValue: string = input.resourceArn;
|
|
746
|
-
if (labelValue.length <= 0) {
|
|
747
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
748
|
-
}
|
|
749
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
750
|
-
} else {
|
|
751
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
752
|
-
}
|
|
753
|
-
let body: any;
|
|
754
|
-
body = JSON.stringify({
|
|
755
|
-
...(input.tags !== undefined &&
|
|
756
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
757
|
-
});
|
|
758
|
-
return new __HttpRequest({
|
|
759
|
-
protocol,
|
|
760
|
-
hostname,
|
|
761
|
-
port,
|
|
762
|
-
method: "POST",
|
|
763
|
-
headers,
|
|
764
|
-
path: resolvedPath,
|
|
765
|
-
body,
|
|
766
|
-
});
|
|
767
|
-
};
|
|
768
|
-
|
|
769
|
-
export const serializeAws_restJson1UntagResourceCommand = async (
|
|
770
|
-
input: UntagResourceCommandInput,
|
|
771
|
-
context: __SerdeContext
|
|
772
|
-
): Promise<__HttpRequest> => {
|
|
773
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
774
|
-
const headers: any = {};
|
|
775
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
776
|
-
if (input.resourceArn !== undefined) {
|
|
777
|
-
const labelValue: string = input.resourceArn;
|
|
778
|
-
if (labelValue.length <= 0) {
|
|
779
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
780
|
-
}
|
|
781
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
782
|
-
} else {
|
|
783
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
784
|
-
}
|
|
785
|
-
const query: any = {
|
|
786
|
-
...(input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map((_entry) => _entry as any) }),
|
|
787
|
-
};
|
|
788
|
-
let body: any;
|
|
789
|
-
return new __HttpRequest({
|
|
790
|
-
protocol,
|
|
791
|
-
hostname,
|
|
792
|
-
port,
|
|
793
|
-
method: "DELETE",
|
|
794
|
-
headers,
|
|
795
|
-
path: resolvedPath,
|
|
796
|
-
query,
|
|
797
|
-
body,
|
|
798
|
-
});
|
|
799
|
-
};
|
|
800
|
-
|
|
801
|
-
export const serializeAws_restJson1UpdateConfigCommand = async (
|
|
802
|
-
input: UpdateConfigCommandInput,
|
|
803
|
-
context: __SerdeContext
|
|
804
|
-
): Promise<__HttpRequest> => {
|
|
805
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
806
|
-
const headers: any = {
|
|
807
|
-
"content-type": "application/json",
|
|
808
|
-
};
|
|
809
|
-
let resolvedPath =
|
|
810
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/config/{configType}/{configId}";
|
|
811
|
-
if (input.configId !== undefined) {
|
|
812
|
-
const labelValue: string = input.configId;
|
|
813
|
-
if (labelValue.length <= 0) {
|
|
814
|
-
throw new Error("Empty value provided for input HTTP label: configId.");
|
|
815
|
-
}
|
|
816
|
-
resolvedPath = resolvedPath.replace("{configId}", __extendedEncodeURIComponent(labelValue));
|
|
817
|
-
} else {
|
|
818
|
-
throw new Error("No value provided for input HTTP label: configId.");
|
|
819
|
-
}
|
|
820
|
-
if (input.configType !== undefined) {
|
|
821
|
-
const labelValue: string = input.configType;
|
|
822
|
-
if (labelValue.length <= 0) {
|
|
823
|
-
throw new Error("Empty value provided for input HTTP label: configType.");
|
|
824
|
-
}
|
|
825
|
-
resolvedPath = resolvedPath.replace("{configType}", __extendedEncodeURIComponent(labelValue));
|
|
826
|
-
} else {
|
|
827
|
-
throw new Error("No value provided for input HTTP label: configType.");
|
|
828
|
-
}
|
|
829
|
-
let body: any;
|
|
830
|
-
body = JSON.stringify({
|
|
831
|
-
...(input.configData !== undefined &&
|
|
832
|
-
input.configData !== null && { configData: serializeAws_restJson1ConfigTypeData(input.configData, context) }),
|
|
833
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
834
|
-
});
|
|
835
|
-
return new __HttpRequest({
|
|
836
|
-
protocol,
|
|
837
|
-
hostname,
|
|
838
|
-
port,
|
|
839
|
-
method: "PUT",
|
|
840
|
-
headers,
|
|
841
|
-
path: resolvedPath,
|
|
842
|
-
body,
|
|
843
|
-
});
|
|
844
|
-
};
|
|
845
|
-
|
|
846
|
-
export const serializeAws_restJson1UpdateMissionProfileCommand = async (
|
|
847
|
-
input: UpdateMissionProfileCommandInput,
|
|
848
|
-
context: __SerdeContext
|
|
849
|
-
): Promise<__HttpRequest> => {
|
|
850
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
851
|
-
const headers: any = {
|
|
852
|
-
"content-type": "application/json",
|
|
853
|
-
};
|
|
854
|
-
let resolvedPath =
|
|
855
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile/{missionProfileId}";
|
|
856
|
-
if (input.missionProfileId !== undefined) {
|
|
857
|
-
const labelValue: string = input.missionProfileId;
|
|
858
|
-
if (labelValue.length <= 0) {
|
|
859
|
-
throw new Error("Empty value provided for input HTTP label: missionProfileId.");
|
|
860
|
-
}
|
|
861
|
-
resolvedPath = resolvedPath.replace("{missionProfileId}", __extendedEncodeURIComponent(labelValue));
|
|
862
|
-
} else {
|
|
863
|
-
throw new Error("No value provided for input HTTP label: missionProfileId.");
|
|
864
|
-
}
|
|
865
|
-
let body: any;
|
|
866
|
-
body = JSON.stringify({
|
|
867
|
-
...(input.contactPostPassDurationSeconds !== undefined &&
|
|
868
|
-
input.contactPostPassDurationSeconds !== null && {
|
|
869
|
-
contactPostPassDurationSeconds: input.contactPostPassDurationSeconds,
|
|
870
|
-
}),
|
|
871
|
-
...(input.contactPrePassDurationSeconds !== undefined &&
|
|
872
|
-
input.contactPrePassDurationSeconds !== null && {
|
|
873
|
-
contactPrePassDurationSeconds: input.contactPrePassDurationSeconds,
|
|
874
|
-
}),
|
|
875
|
-
...(input.dataflowEdges !== undefined &&
|
|
876
|
-
input.dataflowEdges !== null && {
|
|
877
|
-
dataflowEdges: serializeAws_restJson1DataflowEdgeList(input.dataflowEdges, context),
|
|
878
|
-
}),
|
|
879
|
-
...(input.minimumViableContactDurationSeconds !== undefined &&
|
|
880
|
-
input.minimumViableContactDurationSeconds !== null && {
|
|
881
|
-
minimumViableContactDurationSeconds: input.minimumViableContactDurationSeconds,
|
|
882
|
-
}),
|
|
883
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
884
|
-
...(input.trackingConfigArn !== undefined &&
|
|
885
|
-
input.trackingConfigArn !== null && { trackingConfigArn: input.trackingConfigArn }),
|
|
886
|
-
});
|
|
887
|
-
return new __HttpRequest({
|
|
888
|
-
protocol,
|
|
889
|
-
hostname,
|
|
890
|
-
port,
|
|
891
|
-
method: "PUT",
|
|
892
|
-
headers,
|
|
893
|
-
path: resolvedPath,
|
|
894
|
-
body,
|
|
895
|
-
});
|
|
896
|
-
};
|
|
897
|
-
|
|
898
|
-
export const deserializeAws_restJson1CancelContactCommand = async (
|
|
899
|
-
output: __HttpResponse,
|
|
900
|
-
context: __SerdeContext
|
|
901
|
-
): Promise<CancelContactCommandOutput> => {
|
|
902
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
903
|
-
return deserializeAws_restJson1CancelContactCommandError(output, context);
|
|
904
|
-
}
|
|
905
|
-
const contents: CancelContactCommandOutput = {
|
|
906
|
-
$metadata: deserializeMetadata(output),
|
|
907
|
-
contactId: undefined,
|
|
908
|
-
};
|
|
909
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
910
|
-
if (data.contactId !== undefined && data.contactId !== null) {
|
|
911
|
-
contents.contactId = __expectString(data.contactId);
|
|
912
|
-
}
|
|
913
|
-
return Promise.resolve(contents);
|
|
914
|
-
};
|
|
915
|
-
|
|
916
|
-
const deserializeAws_restJson1CancelContactCommandError = async (
|
|
917
|
-
output: __HttpResponse,
|
|
918
|
-
context: __SerdeContext
|
|
919
|
-
): Promise<CancelContactCommandOutput> => {
|
|
920
|
-
const parsedOutput: any = {
|
|
921
|
-
...output,
|
|
922
|
-
body: await parseBody(output.body, context),
|
|
923
|
-
};
|
|
924
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
925
|
-
let errorCode: string = "UnknownError";
|
|
926
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
927
|
-
switch (errorCode) {
|
|
928
|
-
case "DependencyException":
|
|
929
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
930
|
-
response = {
|
|
931
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
932
|
-
name: errorCode,
|
|
933
|
-
$metadata: deserializeMetadata(output),
|
|
934
|
-
};
|
|
935
|
-
break;
|
|
936
|
-
case "InvalidParameterException":
|
|
937
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
938
|
-
response = {
|
|
939
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
940
|
-
name: errorCode,
|
|
941
|
-
$metadata: deserializeMetadata(output),
|
|
942
|
-
};
|
|
943
|
-
break;
|
|
944
|
-
case "ResourceNotFoundException":
|
|
945
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
946
|
-
response = {
|
|
947
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
948
|
-
name: errorCode,
|
|
949
|
-
$metadata: deserializeMetadata(output),
|
|
950
|
-
};
|
|
951
|
-
break;
|
|
952
|
-
default:
|
|
953
|
-
const parsedBody = parsedOutput.body;
|
|
954
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
955
|
-
response = {
|
|
956
|
-
...parsedBody,
|
|
957
|
-
name: `${errorCode}`,
|
|
958
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
959
|
-
$fault: "client",
|
|
960
|
-
$metadata: deserializeMetadata(output),
|
|
961
|
-
} as any;
|
|
962
|
-
}
|
|
963
|
-
const message = response.message || response.Message || errorCode;
|
|
964
|
-
response.message = message;
|
|
965
|
-
delete response.Message;
|
|
966
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
967
|
-
};
|
|
968
|
-
|
|
969
|
-
export const deserializeAws_restJson1CreateConfigCommand = async (
|
|
970
|
-
output: __HttpResponse,
|
|
971
|
-
context: __SerdeContext
|
|
972
|
-
): Promise<CreateConfigCommandOutput> => {
|
|
973
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
974
|
-
return deserializeAws_restJson1CreateConfigCommandError(output, context);
|
|
975
|
-
}
|
|
976
|
-
const contents: CreateConfigCommandOutput = {
|
|
977
|
-
$metadata: deserializeMetadata(output),
|
|
978
|
-
configArn: undefined,
|
|
979
|
-
configId: undefined,
|
|
980
|
-
configType: undefined,
|
|
981
|
-
};
|
|
982
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
983
|
-
if (data.configArn !== undefined && data.configArn !== null) {
|
|
984
|
-
contents.configArn = __expectString(data.configArn);
|
|
985
|
-
}
|
|
986
|
-
if (data.configId !== undefined && data.configId !== null) {
|
|
987
|
-
contents.configId = __expectString(data.configId);
|
|
988
|
-
}
|
|
989
|
-
if (data.configType !== undefined && data.configType !== null) {
|
|
990
|
-
contents.configType = __expectString(data.configType);
|
|
991
|
-
}
|
|
992
|
-
return Promise.resolve(contents);
|
|
993
|
-
};
|
|
994
|
-
|
|
995
|
-
const deserializeAws_restJson1CreateConfigCommandError = async (
|
|
996
|
-
output: __HttpResponse,
|
|
997
|
-
context: __SerdeContext
|
|
998
|
-
): Promise<CreateConfigCommandOutput> => {
|
|
999
|
-
const parsedOutput: any = {
|
|
1000
|
-
...output,
|
|
1001
|
-
body: await parseBody(output.body, context),
|
|
1002
|
-
};
|
|
1003
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1004
|
-
let errorCode: string = "UnknownError";
|
|
1005
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
|
-
switch (errorCode) {
|
|
1007
|
-
case "DependencyException":
|
|
1008
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
1009
|
-
response = {
|
|
1010
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
1011
|
-
name: errorCode,
|
|
1012
|
-
$metadata: deserializeMetadata(output),
|
|
1013
|
-
};
|
|
1014
|
-
break;
|
|
1015
|
-
case "InvalidParameterException":
|
|
1016
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
1017
|
-
response = {
|
|
1018
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1019
|
-
name: errorCode,
|
|
1020
|
-
$metadata: deserializeMetadata(output),
|
|
1021
|
-
};
|
|
1022
|
-
break;
|
|
1023
|
-
case "ResourceLimitExceededException":
|
|
1024
|
-
case "com.amazonaws.groundstation#ResourceLimitExceededException":
|
|
1025
|
-
response = {
|
|
1026
|
-
...(await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1027
|
-
name: errorCode,
|
|
1028
|
-
$metadata: deserializeMetadata(output),
|
|
1029
|
-
};
|
|
1030
|
-
break;
|
|
1031
|
-
case "ResourceNotFoundException":
|
|
1032
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
1033
|
-
response = {
|
|
1034
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1035
|
-
name: errorCode,
|
|
1036
|
-
$metadata: deserializeMetadata(output),
|
|
1037
|
-
};
|
|
1038
|
-
break;
|
|
1039
|
-
default:
|
|
1040
|
-
const parsedBody = parsedOutput.body;
|
|
1041
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1042
|
-
response = {
|
|
1043
|
-
...parsedBody,
|
|
1044
|
-
name: `${errorCode}`,
|
|
1045
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1046
|
-
$fault: "client",
|
|
1047
|
-
$metadata: deserializeMetadata(output),
|
|
1048
|
-
} as any;
|
|
1049
|
-
}
|
|
1050
|
-
const message = response.message || response.Message || errorCode;
|
|
1051
|
-
response.message = message;
|
|
1052
|
-
delete response.Message;
|
|
1053
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1054
|
-
};
|
|
1055
|
-
|
|
1056
|
-
export const deserializeAws_restJson1CreateDataflowEndpointGroupCommand = async (
|
|
1057
|
-
output: __HttpResponse,
|
|
1058
|
-
context: __SerdeContext
|
|
1059
|
-
): Promise<CreateDataflowEndpointGroupCommandOutput> => {
|
|
1060
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1061
|
-
return deserializeAws_restJson1CreateDataflowEndpointGroupCommandError(output, context);
|
|
1062
|
-
}
|
|
1063
|
-
const contents: CreateDataflowEndpointGroupCommandOutput = {
|
|
1064
|
-
$metadata: deserializeMetadata(output),
|
|
1065
|
-
dataflowEndpointGroupId: undefined,
|
|
1066
|
-
};
|
|
1067
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1068
|
-
if (data.dataflowEndpointGroupId !== undefined && data.dataflowEndpointGroupId !== null) {
|
|
1069
|
-
contents.dataflowEndpointGroupId = __expectString(data.dataflowEndpointGroupId);
|
|
1070
|
-
}
|
|
1071
|
-
return Promise.resolve(contents);
|
|
1072
|
-
};
|
|
1073
|
-
|
|
1074
|
-
const deserializeAws_restJson1CreateDataflowEndpointGroupCommandError = async (
|
|
1075
|
-
output: __HttpResponse,
|
|
1076
|
-
context: __SerdeContext
|
|
1077
|
-
): Promise<CreateDataflowEndpointGroupCommandOutput> => {
|
|
1078
|
-
const parsedOutput: any = {
|
|
1079
|
-
...output,
|
|
1080
|
-
body: await parseBody(output.body, context),
|
|
1081
|
-
};
|
|
1082
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1083
|
-
let errorCode: string = "UnknownError";
|
|
1084
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1085
|
-
switch (errorCode) {
|
|
1086
|
-
case "DependencyException":
|
|
1087
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
1088
|
-
response = {
|
|
1089
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
1090
|
-
name: errorCode,
|
|
1091
|
-
$metadata: deserializeMetadata(output),
|
|
1092
|
-
};
|
|
1093
|
-
break;
|
|
1094
|
-
case "InvalidParameterException":
|
|
1095
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
1096
|
-
response = {
|
|
1097
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1098
|
-
name: errorCode,
|
|
1099
|
-
$metadata: deserializeMetadata(output),
|
|
1100
|
-
};
|
|
1101
|
-
break;
|
|
1102
|
-
case "ResourceNotFoundException":
|
|
1103
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
1104
|
-
response = {
|
|
1105
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1106
|
-
name: errorCode,
|
|
1107
|
-
$metadata: deserializeMetadata(output),
|
|
1108
|
-
};
|
|
1109
|
-
break;
|
|
1110
|
-
default:
|
|
1111
|
-
const parsedBody = parsedOutput.body;
|
|
1112
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1113
|
-
response = {
|
|
1114
|
-
...parsedBody,
|
|
1115
|
-
name: `${errorCode}`,
|
|
1116
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1117
|
-
$fault: "client",
|
|
1118
|
-
$metadata: deserializeMetadata(output),
|
|
1119
|
-
} as any;
|
|
1120
|
-
}
|
|
1121
|
-
const message = response.message || response.Message || errorCode;
|
|
1122
|
-
response.message = message;
|
|
1123
|
-
delete response.Message;
|
|
1124
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1125
|
-
};
|
|
1126
|
-
|
|
1127
|
-
export const deserializeAws_restJson1CreateMissionProfileCommand = async (
|
|
1128
|
-
output: __HttpResponse,
|
|
1129
|
-
context: __SerdeContext
|
|
1130
|
-
): Promise<CreateMissionProfileCommandOutput> => {
|
|
1131
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1132
|
-
return deserializeAws_restJson1CreateMissionProfileCommandError(output, context);
|
|
1133
|
-
}
|
|
1134
|
-
const contents: CreateMissionProfileCommandOutput = {
|
|
1135
|
-
$metadata: deserializeMetadata(output),
|
|
1136
|
-
missionProfileId: undefined,
|
|
1137
|
-
};
|
|
1138
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1139
|
-
if (data.missionProfileId !== undefined && data.missionProfileId !== null) {
|
|
1140
|
-
contents.missionProfileId = __expectString(data.missionProfileId);
|
|
1141
|
-
}
|
|
1142
|
-
return Promise.resolve(contents);
|
|
1143
|
-
};
|
|
1144
|
-
|
|
1145
|
-
const deserializeAws_restJson1CreateMissionProfileCommandError = async (
|
|
1146
|
-
output: __HttpResponse,
|
|
1147
|
-
context: __SerdeContext
|
|
1148
|
-
): Promise<CreateMissionProfileCommandOutput> => {
|
|
1149
|
-
const parsedOutput: any = {
|
|
1150
|
-
...output,
|
|
1151
|
-
body: await parseBody(output.body, context),
|
|
1152
|
-
};
|
|
1153
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1154
|
-
let errorCode: string = "UnknownError";
|
|
1155
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1156
|
-
switch (errorCode) {
|
|
1157
|
-
case "DependencyException":
|
|
1158
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
1159
|
-
response = {
|
|
1160
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
1161
|
-
name: errorCode,
|
|
1162
|
-
$metadata: deserializeMetadata(output),
|
|
1163
|
-
};
|
|
1164
|
-
break;
|
|
1165
|
-
case "InvalidParameterException":
|
|
1166
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
1167
|
-
response = {
|
|
1168
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1169
|
-
name: errorCode,
|
|
1170
|
-
$metadata: deserializeMetadata(output),
|
|
1171
|
-
};
|
|
1172
|
-
break;
|
|
1173
|
-
case "ResourceNotFoundException":
|
|
1174
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
1175
|
-
response = {
|
|
1176
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1177
|
-
name: errorCode,
|
|
1178
|
-
$metadata: deserializeMetadata(output),
|
|
1179
|
-
};
|
|
1180
|
-
break;
|
|
1181
|
-
default:
|
|
1182
|
-
const parsedBody = parsedOutput.body;
|
|
1183
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1184
|
-
response = {
|
|
1185
|
-
...parsedBody,
|
|
1186
|
-
name: `${errorCode}`,
|
|
1187
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1188
|
-
$fault: "client",
|
|
1189
|
-
$metadata: deserializeMetadata(output),
|
|
1190
|
-
} as any;
|
|
1191
|
-
}
|
|
1192
|
-
const message = response.message || response.Message || errorCode;
|
|
1193
|
-
response.message = message;
|
|
1194
|
-
delete response.Message;
|
|
1195
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1196
|
-
};
|
|
1197
|
-
|
|
1198
|
-
export const deserializeAws_restJson1DeleteConfigCommand = async (
|
|
1199
|
-
output: __HttpResponse,
|
|
1200
|
-
context: __SerdeContext
|
|
1201
|
-
): Promise<DeleteConfigCommandOutput> => {
|
|
1202
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1203
|
-
return deserializeAws_restJson1DeleteConfigCommandError(output, context);
|
|
1204
|
-
}
|
|
1205
|
-
const contents: DeleteConfigCommandOutput = {
|
|
1206
|
-
$metadata: deserializeMetadata(output),
|
|
1207
|
-
configArn: undefined,
|
|
1208
|
-
configId: undefined,
|
|
1209
|
-
configType: undefined,
|
|
1210
|
-
};
|
|
1211
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1212
|
-
if (data.configArn !== undefined && data.configArn !== null) {
|
|
1213
|
-
contents.configArn = __expectString(data.configArn);
|
|
1214
|
-
}
|
|
1215
|
-
if (data.configId !== undefined && data.configId !== null) {
|
|
1216
|
-
contents.configId = __expectString(data.configId);
|
|
1217
|
-
}
|
|
1218
|
-
if (data.configType !== undefined && data.configType !== null) {
|
|
1219
|
-
contents.configType = __expectString(data.configType);
|
|
1220
|
-
}
|
|
1221
|
-
return Promise.resolve(contents);
|
|
1222
|
-
};
|
|
1223
|
-
|
|
1224
|
-
const deserializeAws_restJson1DeleteConfigCommandError = async (
|
|
1225
|
-
output: __HttpResponse,
|
|
1226
|
-
context: __SerdeContext
|
|
1227
|
-
): Promise<DeleteConfigCommandOutput> => {
|
|
1228
|
-
const parsedOutput: any = {
|
|
1229
|
-
...output,
|
|
1230
|
-
body: await parseBody(output.body, context),
|
|
1231
|
-
};
|
|
1232
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1233
|
-
let errorCode: string = "UnknownError";
|
|
1234
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1235
|
-
switch (errorCode) {
|
|
1236
|
-
case "DependencyException":
|
|
1237
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
1238
|
-
response = {
|
|
1239
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
1240
|
-
name: errorCode,
|
|
1241
|
-
$metadata: deserializeMetadata(output),
|
|
1242
|
-
};
|
|
1243
|
-
break;
|
|
1244
|
-
case "InvalidParameterException":
|
|
1245
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
1246
|
-
response = {
|
|
1247
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1248
|
-
name: errorCode,
|
|
1249
|
-
$metadata: deserializeMetadata(output),
|
|
1250
|
-
};
|
|
1251
|
-
break;
|
|
1252
|
-
case "ResourceNotFoundException":
|
|
1253
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
1254
|
-
response = {
|
|
1255
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1256
|
-
name: errorCode,
|
|
1257
|
-
$metadata: deserializeMetadata(output),
|
|
1258
|
-
};
|
|
1259
|
-
break;
|
|
1260
|
-
default:
|
|
1261
|
-
const parsedBody = parsedOutput.body;
|
|
1262
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1263
|
-
response = {
|
|
1264
|
-
...parsedBody,
|
|
1265
|
-
name: `${errorCode}`,
|
|
1266
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1267
|
-
$fault: "client",
|
|
1268
|
-
$metadata: deserializeMetadata(output),
|
|
1269
|
-
} as any;
|
|
1270
|
-
}
|
|
1271
|
-
const message = response.message || response.Message || errorCode;
|
|
1272
|
-
response.message = message;
|
|
1273
|
-
delete response.Message;
|
|
1274
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1275
|
-
};
|
|
1276
|
-
|
|
1277
|
-
export const deserializeAws_restJson1DeleteDataflowEndpointGroupCommand = async (
|
|
1278
|
-
output: __HttpResponse,
|
|
1279
|
-
context: __SerdeContext
|
|
1280
|
-
): Promise<DeleteDataflowEndpointGroupCommandOutput> => {
|
|
1281
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1282
|
-
return deserializeAws_restJson1DeleteDataflowEndpointGroupCommandError(output, context);
|
|
1283
|
-
}
|
|
1284
|
-
const contents: DeleteDataflowEndpointGroupCommandOutput = {
|
|
1285
|
-
$metadata: deserializeMetadata(output),
|
|
1286
|
-
dataflowEndpointGroupId: undefined,
|
|
1287
|
-
};
|
|
1288
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1289
|
-
if (data.dataflowEndpointGroupId !== undefined && data.dataflowEndpointGroupId !== null) {
|
|
1290
|
-
contents.dataflowEndpointGroupId = __expectString(data.dataflowEndpointGroupId);
|
|
1291
|
-
}
|
|
1292
|
-
return Promise.resolve(contents);
|
|
1293
|
-
};
|
|
1294
|
-
|
|
1295
|
-
const deserializeAws_restJson1DeleteDataflowEndpointGroupCommandError = async (
|
|
1296
|
-
output: __HttpResponse,
|
|
1297
|
-
context: __SerdeContext
|
|
1298
|
-
): Promise<DeleteDataflowEndpointGroupCommandOutput> => {
|
|
1299
|
-
const parsedOutput: any = {
|
|
1300
|
-
...output,
|
|
1301
|
-
body: await parseBody(output.body, context),
|
|
1302
|
-
};
|
|
1303
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1304
|
-
let errorCode: string = "UnknownError";
|
|
1305
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1306
|
-
switch (errorCode) {
|
|
1307
|
-
case "DependencyException":
|
|
1308
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
1309
|
-
response = {
|
|
1310
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
1311
|
-
name: errorCode,
|
|
1312
|
-
$metadata: deserializeMetadata(output),
|
|
1313
|
-
};
|
|
1314
|
-
break;
|
|
1315
|
-
case "InvalidParameterException":
|
|
1316
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
1317
|
-
response = {
|
|
1318
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1319
|
-
name: errorCode,
|
|
1320
|
-
$metadata: deserializeMetadata(output),
|
|
1321
|
-
};
|
|
1322
|
-
break;
|
|
1323
|
-
case "ResourceNotFoundException":
|
|
1324
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
1325
|
-
response = {
|
|
1326
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1327
|
-
name: errorCode,
|
|
1328
|
-
$metadata: deserializeMetadata(output),
|
|
1329
|
-
};
|
|
1330
|
-
break;
|
|
1331
|
-
default:
|
|
1332
|
-
const parsedBody = parsedOutput.body;
|
|
1333
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1334
|
-
response = {
|
|
1335
|
-
...parsedBody,
|
|
1336
|
-
name: `${errorCode}`,
|
|
1337
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1338
|
-
$fault: "client",
|
|
1339
|
-
$metadata: deserializeMetadata(output),
|
|
1340
|
-
} as any;
|
|
1341
|
-
}
|
|
1342
|
-
const message = response.message || response.Message || errorCode;
|
|
1343
|
-
response.message = message;
|
|
1344
|
-
delete response.Message;
|
|
1345
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1346
|
-
};
|
|
1347
|
-
|
|
1348
|
-
export const deserializeAws_restJson1DeleteMissionProfileCommand = async (
|
|
1349
|
-
output: __HttpResponse,
|
|
1350
|
-
context: __SerdeContext
|
|
1351
|
-
): Promise<DeleteMissionProfileCommandOutput> => {
|
|
1352
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1353
|
-
return deserializeAws_restJson1DeleteMissionProfileCommandError(output, context);
|
|
1354
|
-
}
|
|
1355
|
-
const contents: DeleteMissionProfileCommandOutput = {
|
|
1356
|
-
$metadata: deserializeMetadata(output),
|
|
1357
|
-
missionProfileId: undefined,
|
|
1358
|
-
};
|
|
1359
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1360
|
-
if (data.missionProfileId !== undefined && data.missionProfileId !== null) {
|
|
1361
|
-
contents.missionProfileId = __expectString(data.missionProfileId);
|
|
1362
|
-
}
|
|
1363
|
-
return Promise.resolve(contents);
|
|
1364
|
-
};
|
|
1365
|
-
|
|
1366
|
-
const deserializeAws_restJson1DeleteMissionProfileCommandError = async (
|
|
1367
|
-
output: __HttpResponse,
|
|
1368
|
-
context: __SerdeContext
|
|
1369
|
-
): Promise<DeleteMissionProfileCommandOutput> => {
|
|
1370
|
-
const parsedOutput: any = {
|
|
1371
|
-
...output,
|
|
1372
|
-
body: await parseBody(output.body, context),
|
|
1373
|
-
};
|
|
1374
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1375
|
-
let errorCode: string = "UnknownError";
|
|
1376
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1377
|
-
switch (errorCode) {
|
|
1378
|
-
case "DependencyException":
|
|
1379
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
1380
|
-
response = {
|
|
1381
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
1382
|
-
name: errorCode,
|
|
1383
|
-
$metadata: deserializeMetadata(output),
|
|
1384
|
-
};
|
|
1385
|
-
break;
|
|
1386
|
-
case "InvalidParameterException":
|
|
1387
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
1388
|
-
response = {
|
|
1389
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1390
|
-
name: errorCode,
|
|
1391
|
-
$metadata: deserializeMetadata(output),
|
|
1392
|
-
};
|
|
1393
|
-
break;
|
|
1394
|
-
case "ResourceNotFoundException":
|
|
1395
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
1396
|
-
response = {
|
|
1397
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1398
|
-
name: errorCode,
|
|
1399
|
-
$metadata: deserializeMetadata(output),
|
|
1400
|
-
};
|
|
1401
|
-
break;
|
|
1402
|
-
default:
|
|
1403
|
-
const parsedBody = parsedOutput.body;
|
|
1404
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1405
|
-
response = {
|
|
1406
|
-
...parsedBody,
|
|
1407
|
-
name: `${errorCode}`,
|
|
1408
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1409
|
-
$fault: "client",
|
|
1410
|
-
$metadata: deserializeMetadata(output),
|
|
1411
|
-
} as any;
|
|
1412
|
-
}
|
|
1413
|
-
const message = response.message || response.Message || errorCode;
|
|
1414
|
-
response.message = message;
|
|
1415
|
-
delete response.Message;
|
|
1416
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1417
|
-
};
|
|
1418
|
-
|
|
1419
|
-
export const deserializeAws_restJson1DescribeContactCommand = async (
|
|
1420
|
-
output: __HttpResponse,
|
|
1421
|
-
context: __SerdeContext
|
|
1422
|
-
): Promise<DescribeContactCommandOutput> => {
|
|
1423
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1424
|
-
return deserializeAws_restJson1DescribeContactCommandError(output, context);
|
|
1425
|
-
}
|
|
1426
|
-
const contents: DescribeContactCommandOutput = {
|
|
1427
|
-
$metadata: deserializeMetadata(output),
|
|
1428
|
-
contactId: undefined,
|
|
1429
|
-
contactStatus: undefined,
|
|
1430
|
-
dataflowList: undefined,
|
|
1431
|
-
endTime: undefined,
|
|
1432
|
-
errorMessage: undefined,
|
|
1433
|
-
groundStation: undefined,
|
|
1434
|
-
maximumElevation: undefined,
|
|
1435
|
-
missionProfileArn: undefined,
|
|
1436
|
-
postPassEndTime: undefined,
|
|
1437
|
-
prePassStartTime: undefined,
|
|
1438
|
-
region: undefined,
|
|
1439
|
-
satelliteArn: undefined,
|
|
1440
|
-
startTime: undefined,
|
|
1441
|
-
tags: undefined,
|
|
1442
|
-
};
|
|
1443
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1444
|
-
if (data.contactId !== undefined && data.contactId !== null) {
|
|
1445
|
-
contents.contactId = __expectString(data.contactId);
|
|
1446
|
-
}
|
|
1447
|
-
if (data.contactStatus !== undefined && data.contactStatus !== null) {
|
|
1448
|
-
contents.contactStatus = __expectString(data.contactStatus);
|
|
1449
|
-
}
|
|
1450
|
-
if (data.dataflowList !== undefined && data.dataflowList !== null) {
|
|
1451
|
-
contents.dataflowList = deserializeAws_restJson1DataflowList(data.dataflowList, context);
|
|
1452
|
-
}
|
|
1453
|
-
if (data.endTime !== undefined && data.endTime !== null) {
|
|
1454
|
-
contents.endTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.endTime)));
|
|
1455
|
-
}
|
|
1456
|
-
if (data.errorMessage !== undefined && data.errorMessage !== null) {
|
|
1457
|
-
contents.errorMessage = __expectString(data.errorMessage);
|
|
1458
|
-
}
|
|
1459
|
-
if (data.groundStation !== undefined && data.groundStation !== null) {
|
|
1460
|
-
contents.groundStation = __expectString(data.groundStation);
|
|
1461
|
-
}
|
|
1462
|
-
if (data.maximumElevation !== undefined && data.maximumElevation !== null) {
|
|
1463
|
-
contents.maximumElevation = deserializeAws_restJson1Elevation(data.maximumElevation, context);
|
|
1464
|
-
}
|
|
1465
|
-
if (data.missionProfileArn !== undefined && data.missionProfileArn !== null) {
|
|
1466
|
-
contents.missionProfileArn = __expectString(data.missionProfileArn);
|
|
1467
|
-
}
|
|
1468
|
-
if (data.postPassEndTime !== undefined && data.postPassEndTime !== null) {
|
|
1469
|
-
contents.postPassEndTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.postPassEndTime)));
|
|
1470
|
-
}
|
|
1471
|
-
if (data.prePassStartTime !== undefined && data.prePassStartTime !== null) {
|
|
1472
|
-
contents.prePassStartTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.prePassStartTime)));
|
|
1473
|
-
}
|
|
1474
|
-
if (data.region !== undefined && data.region !== null) {
|
|
1475
|
-
contents.region = __expectString(data.region);
|
|
1476
|
-
}
|
|
1477
|
-
if (data.satelliteArn !== undefined && data.satelliteArn !== null) {
|
|
1478
|
-
contents.satelliteArn = __expectString(data.satelliteArn);
|
|
1479
|
-
}
|
|
1480
|
-
if (data.startTime !== undefined && data.startTime !== null) {
|
|
1481
|
-
contents.startTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.startTime)));
|
|
1482
|
-
}
|
|
1483
|
-
if (data.tags !== undefined && data.tags !== null) {
|
|
1484
|
-
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1485
|
-
}
|
|
1486
|
-
return Promise.resolve(contents);
|
|
1487
|
-
};
|
|
1488
|
-
|
|
1489
|
-
const deserializeAws_restJson1DescribeContactCommandError = async (
|
|
1490
|
-
output: __HttpResponse,
|
|
1491
|
-
context: __SerdeContext
|
|
1492
|
-
): Promise<DescribeContactCommandOutput> => {
|
|
1493
|
-
const parsedOutput: any = {
|
|
1494
|
-
...output,
|
|
1495
|
-
body: await parseBody(output.body, context),
|
|
1496
|
-
};
|
|
1497
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1498
|
-
let errorCode: string = "UnknownError";
|
|
1499
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1500
|
-
switch (errorCode) {
|
|
1501
|
-
case "DependencyException":
|
|
1502
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
1503
|
-
response = {
|
|
1504
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
1505
|
-
name: errorCode,
|
|
1506
|
-
$metadata: deserializeMetadata(output),
|
|
1507
|
-
};
|
|
1508
|
-
break;
|
|
1509
|
-
case "InvalidParameterException":
|
|
1510
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
1511
|
-
response = {
|
|
1512
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1513
|
-
name: errorCode,
|
|
1514
|
-
$metadata: deserializeMetadata(output),
|
|
1515
|
-
};
|
|
1516
|
-
break;
|
|
1517
|
-
case "ResourceNotFoundException":
|
|
1518
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
1519
|
-
response = {
|
|
1520
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1521
|
-
name: errorCode,
|
|
1522
|
-
$metadata: deserializeMetadata(output),
|
|
1523
|
-
};
|
|
1524
|
-
break;
|
|
1525
|
-
default:
|
|
1526
|
-
const parsedBody = parsedOutput.body;
|
|
1527
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1528
|
-
response = {
|
|
1529
|
-
...parsedBody,
|
|
1530
|
-
name: `${errorCode}`,
|
|
1531
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1532
|
-
$fault: "client",
|
|
1533
|
-
$metadata: deserializeMetadata(output),
|
|
1534
|
-
} as any;
|
|
1535
|
-
}
|
|
1536
|
-
const message = response.message || response.Message || errorCode;
|
|
1537
|
-
response.message = message;
|
|
1538
|
-
delete response.Message;
|
|
1539
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1540
|
-
};
|
|
1541
|
-
|
|
1542
|
-
export const deserializeAws_restJson1GetConfigCommand = async (
|
|
1543
|
-
output: __HttpResponse,
|
|
1544
|
-
context: __SerdeContext
|
|
1545
|
-
): Promise<GetConfigCommandOutput> => {
|
|
1546
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1547
|
-
return deserializeAws_restJson1GetConfigCommandError(output, context);
|
|
1548
|
-
}
|
|
1549
|
-
const contents: GetConfigCommandOutput = {
|
|
1550
|
-
$metadata: deserializeMetadata(output),
|
|
1551
|
-
configArn: undefined,
|
|
1552
|
-
configData: undefined,
|
|
1553
|
-
configId: undefined,
|
|
1554
|
-
configType: undefined,
|
|
1555
|
-
name: undefined,
|
|
1556
|
-
tags: undefined,
|
|
1557
|
-
};
|
|
1558
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1559
|
-
if (data.configArn !== undefined && data.configArn !== null) {
|
|
1560
|
-
contents.configArn = __expectString(data.configArn);
|
|
1561
|
-
}
|
|
1562
|
-
if (data.configData !== undefined && data.configData !== null) {
|
|
1563
|
-
contents.configData = deserializeAws_restJson1ConfigTypeData(__expectUnion(data.configData), context);
|
|
1564
|
-
}
|
|
1565
|
-
if (data.configId !== undefined && data.configId !== null) {
|
|
1566
|
-
contents.configId = __expectString(data.configId);
|
|
1567
|
-
}
|
|
1568
|
-
if (data.configType !== undefined && data.configType !== null) {
|
|
1569
|
-
contents.configType = __expectString(data.configType);
|
|
1570
|
-
}
|
|
1571
|
-
if (data.name !== undefined && data.name !== null) {
|
|
1572
|
-
contents.name = __expectString(data.name);
|
|
1573
|
-
}
|
|
1574
|
-
if (data.tags !== undefined && data.tags !== null) {
|
|
1575
|
-
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1576
|
-
}
|
|
1577
|
-
return Promise.resolve(contents);
|
|
1578
|
-
};
|
|
1579
|
-
|
|
1580
|
-
const deserializeAws_restJson1GetConfigCommandError = async (
|
|
1581
|
-
output: __HttpResponse,
|
|
1582
|
-
context: __SerdeContext
|
|
1583
|
-
): Promise<GetConfigCommandOutput> => {
|
|
1584
|
-
const parsedOutput: any = {
|
|
1585
|
-
...output,
|
|
1586
|
-
body: await parseBody(output.body, context),
|
|
1587
|
-
};
|
|
1588
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1589
|
-
let errorCode: string = "UnknownError";
|
|
1590
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1591
|
-
switch (errorCode) {
|
|
1592
|
-
case "DependencyException":
|
|
1593
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
1594
|
-
response = {
|
|
1595
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
1596
|
-
name: errorCode,
|
|
1597
|
-
$metadata: deserializeMetadata(output),
|
|
1598
|
-
};
|
|
1599
|
-
break;
|
|
1600
|
-
case "InvalidParameterException":
|
|
1601
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
1602
|
-
response = {
|
|
1603
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1604
|
-
name: errorCode,
|
|
1605
|
-
$metadata: deserializeMetadata(output),
|
|
1606
|
-
};
|
|
1607
|
-
break;
|
|
1608
|
-
case "ResourceNotFoundException":
|
|
1609
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
1610
|
-
response = {
|
|
1611
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1612
|
-
name: errorCode,
|
|
1613
|
-
$metadata: deserializeMetadata(output),
|
|
1614
|
-
};
|
|
1615
|
-
break;
|
|
1616
|
-
default:
|
|
1617
|
-
const parsedBody = parsedOutput.body;
|
|
1618
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1619
|
-
response = {
|
|
1620
|
-
...parsedBody,
|
|
1621
|
-
name: `${errorCode}`,
|
|
1622
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1623
|
-
$fault: "client",
|
|
1624
|
-
$metadata: deserializeMetadata(output),
|
|
1625
|
-
} as any;
|
|
1626
|
-
}
|
|
1627
|
-
const message = response.message || response.Message || errorCode;
|
|
1628
|
-
response.message = message;
|
|
1629
|
-
delete response.Message;
|
|
1630
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1631
|
-
};
|
|
1632
|
-
|
|
1633
|
-
export const deserializeAws_restJson1GetDataflowEndpointGroupCommand = async (
|
|
1634
|
-
output: __HttpResponse,
|
|
1635
|
-
context: __SerdeContext
|
|
1636
|
-
): Promise<GetDataflowEndpointGroupCommandOutput> => {
|
|
1637
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1638
|
-
return deserializeAws_restJson1GetDataflowEndpointGroupCommandError(output, context);
|
|
1639
|
-
}
|
|
1640
|
-
const contents: GetDataflowEndpointGroupCommandOutput = {
|
|
1641
|
-
$metadata: deserializeMetadata(output),
|
|
1642
|
-
dataflowEndpointGroupArn: undefined,
|
|
1643
|
-
dataflowEndpointGroupId: undefined,
|
|
1644
|
-
endpointsDetails: undefined,
|
|
1645
|
-
tags: undefined,
|
|
1646
|
-
};
|
|
1647
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1648
|
-
if (data.dataflowEndpointGroupArn !== undefined && data.dataflowEndpointGroupArn !== null) {
|
|
1649
|
-
contents.dataflowEndpointGroupArn = __expectString(data.dataflowEndpointGroupArn);
|
|
1650
|
-
}
|
|
1651
|
-
if (data.dataflowEndpointGroupId !== undefined && data.dataflowEndpointGroupId !== null) {
|
|
1652
|
-
contents.dataflowEndpointGroupId = __expectString(data.dataflowEndpointGroupId);
|
|
1653
|
-
}
|
|
1654
|
-
if (data.endpointsDetails !== undefined && data.endpointsDetails !== null) {
|
|
1655
|
-
contents.endpointsDetails = deserializeAws_restJson1EndpointDetailsList(data.endpointsDetails, context);
|
|
1656
|
-
}
|
|
1657
|
-
if (data.tags !== undefined && data.tags !== null) {
|
|
1658
|
-
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1659
|
-
}
|
|
1660
|
-
return Promise.resolve(contents);
|
|
1661
|
-
};
|
|
1662
|
-
|
|
1663
|
-
const deserializeAws_restJson1GetDataflowEndpointGroupCommandError = async (
|
|
1664
|
-
output: __HttpResponse,
|
|
1665
|
-
context: __SerdeContext
|
|
1666
|
-
): Promise<GetDataflowEndpointGroupCommandOutput> => {
|
|
1667
|
-
const parsedOutput: any = {
|
|
1668
|
-
...output,
|
|
1669
|
-
body: await parseBody(output.body, context),
|
|
1670
|
-
};
|
|
1671
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1672
|
-
let errorCode: string = "UnknownError";
|
|
1673
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
|
-
switch (errorCode) {
|
|
1675
|
-
case "DependencyException":
|
|
1676
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
1677
|
-
response = {
|
|
1678
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
1679
|
-
name: errorCode,
|
|
1680
|
-
$metadata: deserializeMetadata(output),
|
|
1681
|
-
};
|
|
1682
|
-
break;
|
|
1683
|
-
case "InvalidParameterException":
|
|
1684
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
1685
|
-
response = {
|
|
1686
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1687
|
-
name: errorCode,
|
|
1688
|
-
$metadata: deserializeMetadata(output),
|
|
1689
|
-
};
|
|
1690
|
-
break;
|
|
1691
|
-
case "ResourceNotFoundException":
|
|
1692
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
1693
|
-
response = {
|
|
1694
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1695
|
-
name: errorCode,
|
|
1696
|
-
$metadata: deserializeMetadata(output),
|
|
1697
|
-
};
|
|
1698
|
-
break;
|
|
1699
|
-
default:
|
|
1700
|
-
const parsedBody = parsedOutput.body;
|
|
1701
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1702
|
-
response = {
|
|
1703
|
-
...parsedBody,
|
|
1704
|
-
name: `${errorCode}`,
|
|
1705
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1706
|
-
$fault: "client",
|
|
1707
|
-
$metadata: deserializeMetadata(output),
|
|
1708
|
-
} as any;
|
|
1709
|
-
}
|
|
1710
|
-
const message = response.message || response.Message || errorCode;
|
|
1711
|
-
response.message = message;
|
|
1712
|
-
delete response.Message;
|
|
1713
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1714
|
-
};
|
|
1715
|
-
|
|
1716
|
-
export const deserializeAws_restJson1GetMinuteUsageCommand = async (
|
|
1717
|
-
output: __HttpResponse,
|
|
1718
|
-
context: __SerdeContext
|
|
1719
|
-
): Promise<GetMinuteUsageCommandOutput> => {
|
|
1720
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1721
|
-
return deserializeAws_restJson1GetMinuteUsageCommandError(output, context);
|
|
1722
|
-
}
|
|
1723
|
-
const contents: GetMinuteUsageCommandOutput = {
|
|
1724
|
-
$metadata: deserializeMetadata(output),
|
|
1725
|
-
estimatedMinutesRemaining: undefined,
|
|
1726
|
-
isReservedMinutesCustomer: undefined,
|
|
1727
|
-
totalReservedMinuteAllocation: undefined,
|
|
1728
|
-
totalScheduledMinutes: undefined,
|
|
1729
|
-
upcomingMinutesScheduled: undefined,
|
|
1730
|
-
};
|
|
1731
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1732
|
-
if (data.estimatedMinutesRemaining !== undefined && data.estimatedMinutesRemaining !== null) {
|
|
1733
|
-
contents.estimatedMinutesRemaining = __expectInt32(data.estimatedMinutesRemaining);
|
|
1734
|
-
}
|
|
1735
|
-
if (data.isReservedMinutesCustomer !== undefined && data.isReservedMinutesCustomer !== null) {
|
|
1736
|
-
contents.isReservedMinutesCustomer = __expectBoolean(data.isReservedMinutesCustomer);
|
|
1737
|
-
}
|
|
1738
|
-
if (data.totalReservedMinuteAllocation !== undefined && data.totalReservedMinuteAllocation !== null) {
|
|
1739
|
-
contents.totalReservedMinuteAllocation = __expectInt32(data.totalReservedMinuteAllocation);
|
|
1740
|
-
}
|
|
1741
|
-
if (data.totalScheduledMinutes !== undefined && data.totalScheduledMinutes !== null) {
|
|
1742
|
-
contents.totalScheduledMinutes = __expectInt32(data.totalScheduledMinutes);
|
|
1743
|
-
}
|
|
1744
|
-
if (data.upcomingMinutesScheduled !== undefined && data.upcomingMinutesScheduled !== null) {
|
|
1745
|
-
contents.upcomingMinutesScheduled = __expectInt32(data.upcomingMinutesScheduled);
|
|
1746
|
-
}
|
|
1747
|
-
return Promise.resolve(contents);
|
|
1748
|
-
};
|
|
1749
|
-
|
|
1750
|
-
const deserializeAws_restJson1GetMinuteUsageCommandError = async (
|
|
1751
|
-
output: __HttpResponse,
|
|
1752
|
-
context: __SerdeContext
|
|
1753
|
-
): Promise<GetMinuteUsageCommandOutput> => {
|
|
1754
|
-
const parsedOutput: any = {
|
|
1755
|
-
...output,
|
|
1756
|
-
body: await parseBody(output.body, context),
|
|
1757
|
-
};
|
|
1758
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1759
|
-
let errorCode: string = "UnknownError";
|
|
1760
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1761
|
-
switch (errorCode) {
|
|
1762
|
-
case "DependencyException":
|
|
1763
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
1764
|
-
response = {
|
|
1765
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
1766
|
-
name: errorCode,
|
|
1767
|
-
$metadata: deserializeMetadata(output),
|
|
1768
|
-
};
|
|
1769
|
-
break;
|
|
1770
|
-
case "InvalidParameterException":
|
|
1771
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
1772
|
-
response = {
|
|
1773
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1774
|
-
name: errorCode,
|
|
1775
|
-
$metadata: deserializeMetadata(output),
|
|
1776
|
-
};
|
|
1777
|
-
break;
|
|
1778
|
-
case "ResourceNotFoundException":
|
|
1779
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
1780
|
-
response = {
|
|
1781
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1782
|
-
name: errorCode,
|
|
1783
|
-
$metadata: deserializeMetadata(output),
|
|
1784
|
-
};
|
|
1785
|
-
break;
|
|
1786
|
-
default:
|
|
1787
|
-
const parsedBody = parsedOutput.body;
|
|
1788
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1789
|
-
response = {
|
|
1790
|
-
...parsedBody,
|
|
1791
|
-
name: `${errorCode}`,
|
|
1792
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1793
|
-
$fault: "client",
|
|
1794
|
-
$metadata: deserializeMetadata(output),
|
|
1795
|
-
} as any;
|
|
1796
|
-
}
|
|
1797
|
-
const message = response.message || response.Message || errorCode;
|
|
1798
|
-
response.message = message;
|
|
1799
|
-
delete response.Message;
|
|
1800
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1801
|
-
};
|
|
1802
|
-
|
|
1803
|
-
export const deserializeAws_restJson1GetMissionProfileCommand = async (
|
|
1804
|
-
output: __HttpResponse,
|
|
1805
|
-
context: __SerdeContext
|
|
1806
|
-
): Promise<GetMissionProfileCommandOutput> => {
|
|
1807
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1808
|
-
return deserializeAws_restJson1GetMissionProfileCommandError(output, context);
|
|
1809
|
-
}
|
|
1810
|
-
const contents: GetMissionProfileCommandOutput = {
|
|
1811
|
-
$metadata: deserializeMetadata(output),
|
|
1812
|
-
contactPostPassDurationSeconds: undefined,
|
|
1813
|
-
contactPrePassDurationSeconds: undefined,
|
|
1814
|
-
dataflowEdges: undefined,
|
|
1815
|
-
minimumViableContactDurationSeconds: undefined,
|
|
1816
|
-
missionProfileArn: undefined,
|
|
1817
|
-
missionProfileId: undefined,
|
|
1818
|
-
name: undefined,
|
|
1819
|
-
region: undefined,
|
|
1820
|
-
tags: undefined,
|
|
1821
|
-
trackingConfigArn: undefined,
|
|
1822
|
-
};
|
|
1823
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1824
|
-
if (data.contactPostPassDurationSeconds !== undefined && data.contactPostPassDurationSeconds !== null) {
|
|
1825
|
-
contents.contactPostPassDurationSeconds = __expectInt32(data.contactPostPassDurationSeconds);
|
|
1826
|
-
}
|
|
1827
|
-
if (data.contactPrePassDurationSeconds !== undefined && data.contactPrePassDurationSeconds !== null) {
|
|
1828
|
-
contents.contactPrePassDurationSeconds = __expectInt32(data.contactPrePassDurationSeconds);
|
|
1829
|
-
}
|
|
1830
|
-
if (data.dataflowEdges !== undefined && data.dataflowEdges !== null) {
|
|
1831
|
-
contents.dataflowEdges = deserializeAws_restJson1DataflowEdgeList(data.dataflowEdges, context);
|
|
1832
|
-
}
|
|
1833
|
-
if (data.minimumViableContactDurationSeconds !== undefined && data.minimumViableContactDurationSeconds !== null) {
|
|
1834
|
-
contents.minimumViableContactDurationSeconds = __expectInt32(data.minimumViableContactDurationSeconds);
|
|
1835
|
-
}
|
|
1836
|
-
if (data.missionProfileArn !== undefined && data.missionProfileArn !== null) {
|
|
1837
|
-
contents.missionProfileArn = __expectString(data.missionProfileArn);
|
|
1838
|
-
}
|
|
1839
|
-
if (data.missionProfileId !== undefined && data.missionProfileId !== null) {
|
|
1840
|
-
contents.missionProfileId = __expectString(data.missionProfileId);
|
|
1841
|
-
}
|
|
1842
|
-
if (data.name !== undefined && data.name !== null) {
|
|
1843
|
-
contents.name = __expectString(data.name);
|
|
1844
|
-
}
|
|
1845
|
-
if (data.region !== undefined && data.region !== null) {
|
|
1846
|
-
contents.region = __expectString(data.region);
|
|
1847
|
-
}
|
|
1848
|
-
if (data.tags !== undefined && data.tags !== null) {
|
|
1849
|
-
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1850
|
-
}
|
|
1851
|
-
if (data.trackingConfigArn !== undefined && data.trackingConfigArn !== null) {
|
|
1852
|
-
contents.trackingConfigArn = __expectString(data.trackingConfigArn);
|
|
1853
|
-
}
|
|
1854
|
-
return Promise.resolve(contents);
|
|
1855
|
-
};
|
|
1856
|
-
|
|
1857
|
-
const deserializeAws_restJson1GetMissionProfileCommandError = async (
|
|
1858
|
-
output: __HttpResponse,
|
|
1859
|
-
context: __SerdeContext
|
|
1860
|
-
): Promise<GetMissionProfileCommandOutput> => {
|
|
1861
|
-
const parsedOutput: any = {
|
|
1862
|
-
...output,
|
|
1863
|
-
body: await parseBody(output.body, context),
|
|
1864
|
-
};
|
|
1865
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1866
|
-
let errorCode: string = "UnknownError";
|
|
1867
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1868
|
-
switch (errorCode) {
|
|
1869
|
-
case "DependencyException":
|
|
1870
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
1871
|
-
response = {
|
|
1872
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
1873
|
-
name: errorCode,
|
|
1874
|
-
$metadata: deserializeMetadata(output),
|
|
1875
|
-
};
|
|
1876
|
-
break;
|
|
1877
|
-
case "InvalidParameterException":
|
|
1878
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
1879
|
-
response = {
|
|
1880
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1881
|
-
name: errorCode,
|
|
1882
|
-
$metadata: deserializeMetadata(output),
|
|
1883
|
-
};
|
|
1884
|
-
break;
|
|
1885
|
-
case "ResourceNotFoundException":
|
|
1886
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
1887
|
-
response = {
|
|
1888
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1889
|
-
name: errorCode,
|
|
1890
|
-
$metadata: deserializeMetadata(output),
|
|
1891
|
-
};
|
|
1892
|
-
break;
|
|
1893
|
-
default:
|
|
1894
|
-
const parsedBody = parsedOutput.body;
|
|
1895
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1896
|
-
response = {
|
|
1897
|
-
...parsedBody,
|
|
1898
|
-
name: `${errorCode}`,
|
|
1899
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1900
|
-
$fault: "client",
|
|
1901
|
-
$metadata: deserializeMetadata(output),
|
|
1902
|
-
} as any;
|
|
1903
|
-
}
|
|
1904
|
-
const message = response.message || response.Message || errorCode;
|
|
1905
|
-
response.message = message;
|
|
1906
|
-
delete response.Message;
|
|
1907
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1908
|
-
};
|
|
1909
|
-
|
|
1910
|
-
export const deserializeAws_restJson1GetSatelliteCommand = async (
|
|
1911
|
-
output: __HttpResponse,
|
|
1912
|
-
context: __SerdeContext
|
|
1913
|
-
): Promise<GetSatelliteCommandOutput> => {
|
|
1914
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1915
|
-
return deserializeAws_restJson1GetSatelliteCommandError(output, context);
|
|
1916
|
-
}
|
|
1917
|
-
const contents: GetSatelliteCommandOutput = {
|
|
1918
|
-
$metadata: deserializeMetadata(output),
|
|
1919
|
-
groundStations: undefined,
|
|
1920
|
-
noradSatelliteID: undefined,
|
|
1921
|
-
satelliteArn: undefined,
|
|
1922
|
-
satelliteId: undefined,
|
|
1923
|
-
};
|
|
1924
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1925
|
-
if (data.groundStations !== undefined && data.groundStations !== null) {
|
|
1926
|
-
contents.groundStations = deserializeAws_restJson1GroundStationIdList(data.groundStations, context);
|
|
1927
|
-
}
|
|
1928
|
-
if (data.noradSatelliteID !== undefined && data.noradSatelliteID !== null) {
|
|
1929
|
-
contents.noradSatelliteID = __expectInt32(data.noradSatelliteID);
|
|
1930
|
-
}
|
|
1931
|
-
if (data.satelliteArn !== undefined && data.satelliteArn !== null) {
|
|
1932
|
-
contents.satelliteArn = __expectString(data.satelliteArn);
|
|
1933
|
-
}
|
|
1934
|
-
if (data.satelliteId !== undefined && data.satelliteId !== null) {
|
|
1935
|
-
contents.satelliteId = __expectString(data.satelliteId);
|
|
1936
|
-
}
|
|
1937
|
-
return Promise.resolve(contents);
|
|
1938
|
-
};
|
|
1939
|
-
|
|
1940
|
-
const deserializeAws_restJson1GetSatelliteCommandError = async (
|
|
1941
|
-
output: __HttpResponse,
|
|
1942
|
-
context: __SerdeContext
|
|
1943
|
-
): Promise<GetSatelliteCommandOutput> => {
|
|
1944
|
-
const parsedOutput: any = {
|
|
1945
|
-
...output,
|
|
1946
|
-
body: await parseBody(output.body, context),
|
|
1947
|
-
};
|
|
1948
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1949
|
-
let errorCode: string = "UnknownError";
|
|
1950
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1951
|
-
switch (errorCode) {
|
|
1952
|
-
case "DependencyException":
|
|
1953
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
1954
|
-
response = {
|
|
1955
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
1956
|
-
name: errorCode,
|
|
1957
|
-
$metadata: deserializeMetadata(output),
|
|
1958
|
-
};
|
|
1959
|
-
break;
|
|
1960
|
-
case "InvalidParameterException":
|
|
1961
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
1962
|
-
response = {
|
|
1963
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1964
|
-
name: errorCode,
|
|
1965
|
-
$metadata: deserializeMetadata(output),
|
|
1966
|
-
};
|
|
1967
|
-
break;
|
|
1968
|
-
case "ResourceNotFoundException":
|
|
1969
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
1970
|
-
response = {
|
|
1971
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1972
|
-
name: errorCode,
|
|
1973
|
-
$metadata: deserializeMetadata(output),
|
|
1974
|
-
};
|
|
1975
|
-
break;
|
|
1976
|
-
default:
|
|
1977
|
-
const parsedBody = parsedOutput.body;
|
|
1978
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1979
|
-
response = {
|
|
1980
|
-
...parsedBody,
|
|
1981
|
-
name: `${errorCode}`,
|
|
1982
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1983
|
-
$fault: "client",
|
|
1984
|
-
$metadata: deserializeMetadata(output),
|
|
1985
|
-
} as any;
|
|
1986
|
-
}
|
|
1987
|
-
const message = response.message || response.Message || errorCode;
|
|
1988
|
-
response.message = message;
|
|
1989
|
-
delete response.Message;
|
|
1990
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1991
|
-
};
|
|
1992
|
-
|
|
1993
|
-
export const deserializeAws_restJson1ListConfigsCommand = async (
|
|
1994
|
-
output: __HttpResponse,
|
|
1995
|
-
context: __SerdeContext
|
|
1996
|
-
): Promise<ListConfigsCommandOutput> => {
|
|
1997
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1998
|
-
return deserializeAws_restJson1ListConfigsCommandError(output, context);
|
|
1999
|
-
}
|
|
2000
|
-
const contents: ListConfigsCommandOutput = {
|
|
2001
|
-
$metadata: deserializeMetadata(output),
|
|
2002
|
-
configList: undefined,
|
|
2003
|
-
nextToken: undefined,
|
|
2004
|
-
};
|
|
2005
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2006
|
-
if (data.configList !== undefined && data.configList !== null) {
|
|
2007
|
-
contents.configList = deserializeAws_restJson1ConfigList(data.configList, context);
|
|
2008
|
-
}
|
|
2009
|
-
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2010
|
-
contents.nextToken = __expectString(data.nextToken);
|
|
2011
|
-
}
|
|
2012
|
-
return Promise.resolve(contents);
|
|
2013
|
-
};
|
|
2014
|
-
|
|
2015
|
-
const deserializeAws_restJson1ListConfigsCommandError = async (
|
|
2016
|
-
output: __HttpResponse,
|
|
2017
|
-
context: __SerdeContext
|
|
2018
|
-
): Promise<ListConfigsCommandOutput> => {
|
|
2019
|
-
const parsedOutput: any = {
|
|
2020
|
-
...output,
|
|
2021
|
-
body: await parseBody(output.body, context),
|
|
2022
|
-
};
|
|
2023
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2024
|
-
let errorCode: string = "UnknownError";
|
|
2025
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2026
|
-
switch (errorCode) {
|
|
2027
|
-
case "DependencyException":
|
|
2028
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
2029
|
-
response = {
|
|
2030
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
2031
|
-
name: errorCode,
|
|
2032
|
-
$metadata: deserializeMetadata(output),
|
|
2033
|
-
};
|
|
2034
|
-
break;
|
|
2035
|
-
case "InvalidParameterException":
|
|
2036
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
2037
|
-
response = {
|
|
2038
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2039
|
-
name: errorCode,
|
|
2040
|
-
$metadata: deserializeMetadata(output),
|
|
2041
|
-
};
|
|
2042
|
-
break;
|
|
2043
|
-
case "ResourceNotFoundException":
|
|
2044
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
2045
|
-
response = {
|
|
2046
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2047
|
-
name: errorCode,
|
|
2048
|
-
$metadata: deserializeMetadata(output),
|
|
2049
|
-
};
|
|
2050
|
-
break;
|
|
2051
|
-
default:
|
|
2052
|
-
const parsedBody = parsedOutput.body;
|
|
2053
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2054
|
-
response = {
|
|
2055
|
-
...parsedBody,
|
|
2056
|
-
name: `${errorCode}`,
|
|
2057
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2058
|
-
$fault: "client",
|
|
2059
|
-
$metadata: deserializeMetadata(output),
|
|
2060
|
-
} as any;
|
|
2061
|
-
}
|
|
2062
|
-
const message = response.message || response.Message || errorCode;
|
|
2063
|
-
response.message = message;
|
|
2064
|
-
delete response.Message;
|
|
2065
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2066
|
-
};
|
|
2067
|
-
|
|
2068
|
-
export const deserializeAws_restJson1ListContactsCommand = async (
|
|
2069
|
-
output: __HttpResponse,
|
|
2070
|
-
context: __SerdeContext
|
|
2071
|
-
): Promise<ListContactsCommandOutput> => {
|
|
2072
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2073
|
-
return deserializeAws_restJson1ListContactsCommandError(output, context);
|
|
2074
|
-
}
|
|
2075
|
-
const contents: ListContactsCommandOutput = {
|
|
2076
|
-
$metadata: deserializeMetadata(output),
|
|
2077
|
-
contactList: undefined,
|
|
2078
|
-
nextToken: undefined,
|
|
2079
|
-
};
|
|
2080
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2081
|
-
if (data.contactList !== undefined && data.contactList !== null) {
|
|
2082
|
-
contents.contactList = deserializeAws_restJson1ContactList(data.contactList, context);
|
|
2083
|
-
}
|
|
2084
|
-
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2085
|
-
contents.nextToken = __expectString(data.nextToken);
|
|
2086
|
-
}
|
|
2087
|
-
return Promise.resolve(contents);
|
|
2088
|
-
};
|
|
2089
|
-
|
|
2090
|
-
const deserializeAws_restJson1ListContactsCommandError = async (
|
|
2091
|
-
output: __HttpResponse,
|
|
2092
|
-
context: __SerdeContext
|
|
2093
|
-
): Promise<ListContactsCommandOutput> => {
|
|
2094
|
-
const parsedOutput: any = {
|
|
2095
|
-
...output,
|
|
2096
|
-
body: await parseBody(output.body, context),
|
|
2097
|
-
};
|
|
2098
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2099
|
-
let errorCode: string = "UnknownError";
|
|
2100
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2101
|
-
switch (errorCode) {
|
|
2102
|
-
case "DependencyException":
|
|
2103
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
2104
|
-
response = {
|
|
2105
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
2106
|
-
name: errorCode,
|
|
2107
|
-
$metadata: deserializeMetadata(output),
|
|
2108
|
-
};
|
|
2109
|
-
break;
|
|
2110
|
-
case "InvalidParameterException":
|
|
2111
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
2112
|
-
response = {
|
|
2113
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2114
|
-
name: errorCode,
|
|
2115
|
-
$metadata: deserializeMetadata(output),
|
|
2116
|
-
};
|
|
2117
|
-
break;
|
|
2118
|
-
case "ResourceNotFoundException":
|
|
2119
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
2120
|
-
response = {
|
|
2121
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2122
|
-
name: errorCode,
|
|
2123
|
-
$metadata: deserializeMetadata(output),
|
|
2124
|
-
};
|
|
2125
|
-
break;
|
|
2126
|
-
default:
|
|
2127
|
-
const parsedBody = parsedOutput.body;
|
|
2128
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2129
|
-
response = {
|
|
2130
|
-
...parsedBody,
|
|
2131
|
-
name: `${errorCode}`,
|
|
2132
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2133
|
-
$fault: "client",
|
|
2134
|
-
$metadata: deserializeMetadata(output),
|
|
2135
|
-
} as any;
|
|
2136
|
-
}
|
|
2137
|
-
const message = response.message || response.Message || errorCode;
|
|
2138
|
-
response.message = message;
|
|
2139
|
-
delete response.Message;
|
|
2140
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2141
|
-
};
|
|
2142
|
-
|
|
2143
|
-
export const deserializeAws_restJson1ListDataflowEndpointGroupsCommand = async (
|
|
2144
|
-
output: __HttpResponse,
|
|
2145
|
-
context: __SerdeContext
|
|
2146
|
-
): Promise<ListDataflowEndpointGroupsCommandOutput> => {
|
|
2147
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2148
|
-
return deserializeAws_restJson1ListDataflowEndpointGroupsCommandError(output, context);
|
|
2149
|
-
}
|
|
2150
|
-
const contents: ListDataflowEndpointGroupsCommandOutput = {
|
|
2151
|
-
$metadata: deserializeMetadata(output),
|
|
2152
|
-
dataflowEndpointGroupList: undefined,
|
|
2153
|
-
nextToken: undefined,
|
|
2154
|
-
};
|
|
2155
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2156
|
-
if (data.dataflowEndpointGroupList !== undefined && data.dataflowEndpointGroupList !== null) {
|
|
2157
|
-
contents.dataflowEndpointGroupList = deserializeAws_restJson1DataflowEndpointGroupList(
|
|
2158
|
-
data.dataflowEndpointGroupList,
|
|
2159
|
-
context
|
|
2160
|
-
);
|
|
2161
|
-
}
|
|
2162
|
-
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2163
|
-
contents.nextToken = __expectString(data.nextToken);
|
|
2164
|
-
}
|
|
2165
|
-
return Promise.resolve(contents);
|
|
2166
|
-
};
|
|
2167
|
-
|
|
2168
|
-
const deserializeAws_restJson1ListDataflowEndpointGroupsCommandError = async (
|
|
2169
|
-
output: __HttpResponse,
|
|
2170
|
-
context: __SerdeContext
|
|
2171
|
-
): Promise<ListDataflowEndpointGroupsCommandOutput> => {
|
|
2172
|
-
const parsedOutput: any = {
|
|
2173
|
-
...output,
|
|
2174
|
-
body: await parseBody(output.body, context),
|
|
2175
|
-
};
|
|
2176
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2177
|
-
let errorCode: string = "UnknownError";
|
|
2178
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2179
|
-
switch (errorCode) {
|
|
2180
|
-
case "DependencyException":
|
|
2181
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
2182
|
-
response = {
|
|
2183
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
2184
|
-
name: errorCode,
|
|
2185
|
-
$metadata: deserializeMetadata(output),
|
|
2186
|
-
};
|
|
2187
|
-
break;
|
|
2188
|
-
case "InvalidParameterException":
|
|
2189
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
2190
|
-
response = {
|
|
2191
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2192
|
-
name: errorCode,
|
|
2193
|
-
$metadata: deserializeMetadata(output),
|
|
2194
|
-
};
|
|
2195
|
-
break;
|
|
2196
|
-
case "ResourceNotFoundException":
|
|
2197
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
2198
|
-
response = {
|
|
2199
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2200
|
-
name: errorCode,
|
|
2201
|
-
$metadata: deserializeMetadata(output),
|
|
2202
|
-
};
|
|
2203
|
-
break;
|
|
2204
|
-
default:
|
|
2205
|
-
const parsedBody = parsedOutput.body;
|
|
2206
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2207
|
-
response = {
|
|
2208
|
-
...parsedBody,
|
|
2209
|
-
name: `${errorCode}`,
|
|
2210
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2211
|
-
$fault: "client",
|
|
2212
|
-
$metadata: deserializeMetadata(output),
|
|
2213
|
-
} as any;
|
|
2214
|
-
}
|
|
2215
|
-
const message = response.message || response.Message || errorCode;
|
|
2216
|
-
response.message = message;
|
|
2217
|
-
delete response.Message;
|
|
2218
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2219
|
-
};
|
|
2220
|
-
|
|
2221
|
-
export const deserializeAws_restJson1ListGroundStationsCommand = async (
|
|
2222
|
-
output: __HttpResponse,
|
|
2223
|
-
context: __SerdeContext
|
|
2224
|
-
): Promise<ListGroundStationsCommandOutput> => {
|
|
2225
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2226
|
-
return deserializeAws_restJson1ListGroundStationsCommandError(output, context);
|
|
2227
|
-
}
|
|
2228
|
-
const contents: ListGroundStationsCommandOutput = {
|
|
2229
|
-
$metadata: deserializeMetadata(output),
|
|
2230
|
-
groundStationList: undefined,
|
|
2231
|
-
nextToken: undefined,
|
|
2232
|
-
};
|
|
2233
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2234
|
-
if (data.groundStationList !== undefined && data.groundStationList !== null) {
|
|
2235
|
-
contents.groundStationList = deserializeAws_restJson1GroundStationList(data.groundStationList, context);
|
|
2236
|
-
}
|
|
2237
|
-
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2238
|
-
contents.nextToken = __expectString(data.nextToken);
|
|
2239
|
-
}
|
|
2240
|
-
return Promise.resolve(contents);
|
|
2241
|
-
};
|
|
2242
|
-
|
|
2243
|
-
const deserializeAws_restJson1ListGroundStationsCommandError = async (
|
|
2244
|
-
output: __HttpResponse,
|
|
2245
|
-
context: __SerdeContext
|
|
2246
|
-
): Promise<ListGroundStationsCommandOutput> => {
|
|
2247
|
-
const parsedOutput: any = {
|
|
2248
|
-
...output,
|
|
2249
|
-
body: await parseBody(output.body, context),
|
|
2250
|
-
};
|
|
2251
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2252
|
-
let errorCode: string = "UnknownError";
|
|
2253
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2254
|
-
switch (errorCode) {
|
|
2255
|
-
case "DependencyException":
|
|
2256
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
2257
|
-
response = {
|
|
2258
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
2259
|
-
name: errorCode,
|
|
2260
|
-
$metadata: deserializeMetadata(output),
|
|
2261
|
-
};
|
|
2262
|
-
break;
|
|
2263
|
-
case "InvalidParameterException":
|
|
2264
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
2265
|
-
response = {
|
|
2266
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2267
|
-
name: errorCode,
|
|
2268
|
-
$metadata: deserializeMetadata(output),
|
|
2269
|
-
};
|
|
2270
|
-
break;
|
|
2271
|
-
case "ResourceNotFoundException":
|
|
2272
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
2273
|
-
response = {
|
|
2274
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2275
|
-
name: errorCode,
|
|
2276
|
-
$metadata: deserializeMetadata(output),
|
|
2277
|
-
};
|
|
2278
|
-
break;
|
|
2279
|
-
default:
|
|
2280
|
-
const parsedBody = parsedOutput.body;
|
|
2281
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2282
|
-
response = {
|
|
2283
|
-
...parsedBody,
|
|
2284
|
-
name: `${errorCode}`,
|
|
2285
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2286
|
-
$fault: "client",
|
|
2287
|
-
$metadata: deserializeMetadata(output),
|
|
2288
|
-
} as any;
|
|
2289
|
-
}
|
|
2290
|
-
const message = response.message || response.Message || errorCode;
|
|
2291
|
-
response.message = message;
|
|
2292
|
-
delete response.Message;
|
|
2293
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2294
|
-
};
|
|
2295
|
-
|
|
2296
|
-
export const deserializeAws_restJson1ListMissionProfilesCommand = async (
|
|
2297
|
-
output: __HttpResponse,
|
|
2298
|
-
context: __SerdeContext
|
|
2299
|
-
): Promise<ListMissionProfilesCommandOutput> => {
|
|
2300
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2301
|
-
return deserializeAws_restJson1ListMissionProfilesCommandError(output, context);
|
|
2302
|
-
}
|
|
2303
|
-
const contents: ListMissionProfilesCommandOutput = {
|
|
2304
|
-
$metadata: deserializeMetadata(output),
|
|
2305
|
-
missionProfileList: undefined,
|
|
2306
|
-
nextToken: undefined,
|
|
2307
|
-
};
|
|
2308
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2309
|
-
if (data.missionProfileList !== undefined && data.missionProfileList !== null) {
|
|
2310
|
-
contents.missionProfileList = deserializeAws_restJson1MissionProfileList(data.missionProfileList, context);
|
|
2311
|
-
}
|
|
2312
|
-
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2313
|
-
contents.nextToken = __expectString(data.nextToken);
|
|
2314
|
-
}
|
|
2315
|
-
return Promise.resolve(contents);
|
|
2316
|
-
};
|
|
2317
|
-
|
|
2318
|
-
const deserializeAws_restJson1ListMissionProfilesCommandError = async (
|
|
2319
|
-
output: __HttpResponse,
|
|
2320
|
-
context: __SerdeContext
|
|
2321
|
-
): Promise<ListMissionProfilesCommandOutput> => {
|
|
2322
|
-
const parsedOutput: any = {
|
|
2323
|
-
...output,
|
|
2324
|
-
body: await parseBody(output.body, context),
|
|
2325
|
-
};
|
|
2326
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2327
|
-
let errorCode: string = "UnknownError";
|
|
2328
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2329
|
-
switch (errorCode) {
|
|
2330
|
-
case "DependencyException":
|
|
2331
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
2332
|
-
response = {
|
|
2333
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
2334
|
-
name: errorCode,
|
|
2335
|
-
$metadata: deserializeMetadata(output),
|
|
2336
|
-
};
|
|
2337
|
-
break;
|
|
2338
|
-
case "InvalidParameterException":
|
|
2339
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
2340
|
-
response = {
|
|
2341
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2342
|
-
name: errorCode,
|
|
2343
|
-
$metadata: deserializeMetadata(output),
|
|
2344
|
-
};
|
|
2345
|
-
break;
|
|
2346
|
-
case "ResourceNotFoundException":
|
|
2347
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
2348
|
-
response = {
|
|
2349
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2350
|
-
name: errorCode,
|
|
2351
|
-
$metadata: deserializeMetadata(output),
|
|
2352
|
-
};
|
|
2353
|
-
break;
|
|
2354
|
-
default:
|
|
2355
|
-
const parsedBody = parsedOutput.body;
|
|
2356
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2357
|
-
response = {
|
|
2358
|
-
...parsedBody,
|
|
2359
|
-
name: `${errorCode}`,
|
|
2360
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2361
|
-
$fault: "client",
|
|
2362
|
-
$metadata: deserializeMetadata(output),
|
|
2363
|
-
} as any;
|
|
2364
|
-
}
|
|
2365
|
-
const message = response.message || response.Message || errorCode;
|
|
2366
|
-
response.message = message;
|
|
2367
|
-
delete response.Message;
|
|
2368
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2369
|
-
};
|
|
2370
|
-
|
|
2371
|
-
export const deserializeAws_restJson1ListSatellitesCommand = async (
|
|
2372
|
-
output: __HttpResponse,
|
|
2373
|
-
context: __SerdeContext
|
|
2374
|
-
): Promise<ListSatellitesCommandOutput> => {
|
|
2375
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2376
|
-
return deserializeAws_restJson1ListSatellitesCommandError(output, context);
|
|
2377
|
-
}
|
|
2378
|
-
const contents: ListSatellitesCommandOutput = {
|
|
2379
|
-
$metadata: deserializeMetadata(output),
|
|
2380
|
-
nextToken: undefined,
|
|
2381
|
-
satellites: undefined,
|
|
2382
|
-
};
|
|
2383
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2384
|
-
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2385
|
-
contents.nextToken = __expectString(data.nextToken);
|
|
2386
|
-
}
|
|
2387
|
-
if (data.satellites !== undefined && data.satellites !== null) {
|
|
2388
|
-
contents.satellites = deserializeAws_restJson1SatelliteList(data.satellites, context);
|
|
2389
|
-
}
|
|
2390
|
-
return Promise.resolve(contents);
|
|
2391
|
-
};
|
|
2392
|
-
|
|
2393
|
-
const deserializeAws_restJson1ListSatellitesCommandError = async (
|
|
2394
|
-
output: __HttpResponse,
|
|
2395
|
-
context: __SerdeContext
|
|
2396
|
-
): Promise<ListSatellitesCommandOutput> => {
|
|
2397
|
-
const parsedOutput: any = {
|
|
2398
|
-
...output,
|
|
2399
|
-
body: await parseBody(output.body, context),
|
|
2400
|
-
};
|
|
2401
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2402
|
-
let errorCode: string = "UnknownError";
|
|
2403
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2404
|
-
switch (errorCode) {
|
|
2405
|
-
case "DependencyException":
|
|
2406
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
2407
|
-
response = {
|
|
2408
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
2409
|
-
name: errorCode,
|
|
2410
|
-
$metadata: deserializeMetadata(output),
|
|
2411
|
-
};
|
|
2412
|
-
break;
|
|
2413
|
-
case "InvalidParameterException":
|
|
2414
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
2415
|
-
response = {
|
|
2416
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2417
|
-
name: errorCode,
|
|
2418
|
-
$metadata: deserializeMetadata(output),
|
|
2419
|
-
};
|
|
2420
|
-
break;
|
|
2421
|
-
case "ResourceNotFoundException":
|
|
2422
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
2423
|
-
response = {
|
|
2424
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2425
|
-
name: errorCode,
|
|
2426
|
-
$metadata: deserializeMetadata(output),
|
|
2427
|
-
};
|
|
2428
|
-
break;
|
|
2429
|
-
default:
|
|
2430
|
-
const parsedBody = parsedOutput.body;
|
|
2431
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2432
|
-
response = {
|
|
2433
|
-
...parsedBody,
|
|
2434
|
-
name: `${errorCode}`,
|
|
2435
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2436
|
-
$fault: "client",
|
|
2437
|
-
$metadata: deserializeMetadata(output),
|
|
2438
|
-
} as any;
|
|
2439
|
-
}
|
|
2440
|
-
const message = response.message || response.Message || errorCode;
|
|
2441
|
-
response.message = message;
|
|
2442
|
-
delete response.Message;
|
|
2443
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2444
|
-
};
|
|
2445
|
-
|
|
2446
|
-
export const deserializeAws_restJson1ListTagsForResourceCommand = async (
|
|
2447
|
-
output: __HttpResponse,
|
|
2448
|
-
context: __SerdeContext
|
|
2449
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
2450
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2451
|
-
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
2452
|
-
}
|
|
2453
|
-
const contents: ListTagsForResourceCommandOutput = {
|
|
2454
|
-
$metadata: deserializeMetadata(output),
|
|
2455
|
-
tags: undefined,
|
|
2456
|
-
};
|
|
2457
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2458
|
-
if (data.tags !== undefined && data.tags !== null) {
|
|
2459
|
-
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2460
|
-
}
|
|
2461
|
-
return Promise.resolve(contents);
|
|
2462
|
-
};
|
|
2463
|
-
|
|
2464
|
-
const deserializeAws_restJson1ListTagsForResourceCommandError = async (
|
|
2465
|
-
output: __HttpResponse,
|
|
2466
|
-
context: __SerdeContext
|
|
2467
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
2468
|
-
const parsedOutput: any = {
|
|
2469
|
-
...output,
|
|
2470
|
-
body: await parseBody(output.body, context),
|
|
2471
|
-
};
|
|
2472
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2473
|
-
let errorCode: string = "UnknownError";
|
|
2474
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2475
|
-
switch (errorCode) {
|
|
2476
|
-
case "DependencyException":
|
|
2477
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
2478
|
-
response = {
|
|
2479
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
2480
|
-
name: errorCode,
|
|
2481
|
-
$metadata: deserializeMetadata(output),
|
|
2482
|
-
};
|
|
2483
|
-
break;
|
|
2484
|
-
case "InvalidParameterException":
|
|
2485
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
2486
|
-
response = {
|
|
2487
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2488
|
-
name: errorCode,
|
|
2489
|
-
$metadata: deserializeMetadata(output),
|
|
2490
|
-
};
|
|
2491
|
-
break;
|
|
2492
|
-
case "ResourceNotFoundException":
|
|
2493
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
2494
|
-
response = {
|
|
2495
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2496
|
-
name: errorCode,
|
|
2497
|
-
$metadata: deserializeMetadata(output),
|
|
2498
|
-
};
|
|
2499
|
-
break;
|
|
2500
|
-
default:
|
|
2501
|
-
const parsedBody = parsedOutput.body;
|
|
2502
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2503
|
-
response = {
|
|
2504
|
-
...parsedBody,
|
|
2505
|
-
name: `${errorCode}`,
|
|
2506
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2507
|
-
$fault: "client",
|
|
2508
|
-
$metadata: deserializeMetadata(output),
|
|
2509
|
-
} as any;
|
|
2510
|
-
}
|
|
2511
|
-
const message = response.message || response.Message || errorCode;
|
|
2512
|
-
response.message = message;
|
|
2513
|
-
delete response.Message;
|
|
2514
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2515
|
-
};
|
|
2516
|
-
|
|
2517
|
-
export const deserializeAws_restJson1ReserveContactCommand = async (
|
|
2518
|
-
output: __HttpResponse,
|
|
2519
|
-
context: __SerdeContext
|
|
2520
|
-
): Promise<ReserveContactCommandOutput> => {
|
|
2521
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2522
|
-
return deserializeAws_restJson1ReserveContactCommandError(output, context);
|
|
2523
|
-
}
|
|
2524
|
-
const contents: ReserveContactCommandOutput = {
|
|
2525
|
-
$metadata: deserializeMetadata(output),
|
|
2526
|
-
contactId: undefined,
|
|
2527
|
-
};
|
|
2528
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2529
|
-
if (data.contactId !== undefined && data.contactId !== null) {
|
|
2530
|
-
contents.contactId = __expectString(data.contactId);
|
|
2531
|
-
}
|
|
2532
|
-
return Promise.resolve(contents);
|
|
2533
|
-
};
|
|
2534
|
-
|
|
2535
|
-
const deserializeAws_restJson1ReserveContactCommandError = async (
|
|
2536
|
-
output: __HttpResponse,
|
|
2537
|
-
context: __SerdeContext
|
|
2538
|
-
): Promise<ReserveContactCommandOutput> => {
|
|
2539
|
-
const parsedOutput: any = {
|
|
2540
|
-
...output,
|
|
2541
|
-
body: await parseBody(output.body, context),
|
|
2542
|
-
};
|
|
2543
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2544
|
-
let errorCode: string = "UnknownError";
|
|
2545
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2546
|
-
switch (errorCode) {
|
|
2547
|
-
case "DependencyException":
|
|
2548
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
2549
|
-
response = {
|
|
2550
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
2551
|
-
name: errorCode,
|
|
2552
|
-
$metadata: deserializeMetadata(output),
|
|
2553
|
-
};
|
|
2554
|
-
break;
|
|
2555
|
-
case "InvalidParameterException":
|
|
2556
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
2557
|
-
response = {
|
|
2558
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2559
|
-
name: errorCode,
|
|
2560
|
-
$metadata: deserializeMetadata(output),
|
|
2561
|
-
};
|
|
2562
|
-
break;
|
|
2563
|
-
case "ResourceNotFoundException":
|
|
2564
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
2565
|
-
response = {
|
|
2566
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2567
|
-
name: errorCode,
|
|
2568
|
-
$metadata: deserializeMetadata(output),
|
|
2569
|
-
};
|
|
2570
|
-
break;
|
|
2571
|
-
default:
|
|
2572
|
-
const parsedBody = parsedOutput.body;
|
|
2573
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2574
|
-
response = {
|
|
2575
|
-
...parsedBody,
|
|
2576
|
-
name: `${errorCode}`,
|
|
2577
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2578
|
-
$fault: "client",
|
|
2579
|
-
$metadata: deserializeMetadata(output),
|
|
2580
|
-
} as any;
|
|
2581
|
-
}
|
|
2582
|
-
const message = response.message || response.Message || errorCode;
|
|
2583
|
-
response.message = message;
|
|
2584
|
-
delete response.Message;
|
|
2585
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2586
|
-
};
|
|
2587
|
-
|
|
2588
|
-
export const deserializeAws_restJson1TagResourceCommand = async (
|
|
2589
|
-
output: __HttpResponse,
|
|
2590
|
-
context: __SerdeContext
|
|
2591
|
-
): Promise<TagResourceCommandOutput> => {
|
|
2592
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2593
|
-
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
2594
|
-
}
|
|
2595
|
-
const contents: TagResourceCommandOutput = {
|
|
2596
|
-
$metadata: deserializeMetadata(output),
|
|
2597
|
-
};
|
|
2598
|
-
await collectBody(output.body, context);
|
|
2599
|
-
return Promise.resolve(contents);
|
|
2600
|
-
};
|
|
2601
|
-
|
|
2602
|
-
const deserializeAws_restJson1TagResourceCommandError = async (
|
|
2603
|
-
output: __HttpResponse,
|
|
2604
|
-
context: __SerdeContext
|
|
2605
|
-
): Promise<TagResourceCommandOutput> => {
|
|
2606
|
-
const parsedOutput: any = {
|
|
2607
|
-
...output,
|
|
2608
|
-
body: await parseBody(output.body, context),
|
|
2609
|
-
};
|
|
2610
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2611
|
-
let errorCode: string = "UnknownError";
|
|
2612
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2613
|
-
switch (errorCode) {
|
|
2614
|
-
case "DependencyException":
|
|
2615
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
2616
|
-
response = {
|
|
2617
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
2618
|
-
name: errorCode,
|
|
2619
|
-
$metadata: deserializeMetadata(output),
|
|
2620
|
-
};
|
|
2621
|
-
break;
|
|
2622
|
-
case "InvalidParameterException":
|
|
2623
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
2624
|
-
response = {
|
|
2625
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2626
|
-
name: errorCode,
|
|
2627
|
-
$metadata: deserializeMetadata(output),
|
|
2628
|
-
};
|
|
2629
|
-
break;
|
|
2630
|
-
case "ResourceNotFoundException":
|
|
2631
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
2632
|
-
response = {
|
|
2633
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2634
|
-
name: errorCode,
|
|
2635
|
-
$metadata: deserializeMetadata(output),
|
|
2636
|
-
};
|
|
2637
|
-
break;
|
|
2638
|
-
default:
|
|
2639
|
-
const parsedBody = parsedOutput.body;
|
|
2640
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2641
|
-
response = {
|
|
2642
|
-
...parsedBody,
|
|
2643
|
-
name: `${errorCode}`,
|
|
2644
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2645
|
-
$fault: "client",
|
|
2646
|
-
$metadata: deserializeMetadata(output),
|
|
2647
|
-
} as any;
|
|
2648
|
-
}
|
|
2649
|
-
const message = response.message || response.Message || errorCode;
|
|
2650
|
-
response.message = message;
|
|
2651
|
-
delete response.Message;
|
|
2652
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2653
|
-
};
|
|
2654
|
-
|
|
2655
|
-
export const deserializeAws_restJson1UntagResourceCommand = async (
|
|
2656
|
-
output: __HttpResponse,
|
|
2657
|
-
context: __SerdeContext
|
|
2658
|
-
): Promise<UntagResourceCommandOutput> => {
|
|
2659
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2660
|
-
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
2661
|
-
}
|
|
2662
|
-
const contents: UntagResourceCommandOutput = {
|
|
2663
|
-
$metadata: deserializeMetadata(output),
|
|
2664
|
-
};
|
|
2665
|
-
await collectBody(output.body, context);
|
|
2666
|
-
return Promise.resolve(contents);
|
|
2667
|
-
};
|
|
2668
|
-
|
|
2669
|
-
const deserializeAws_restJson1UntagResourceCommandError = async (
|
|
2670
|
-
output: __HttpResponse,
|
|
2671
|
-
context: __SerdeContext
|
|
2672
|
-
): Promise<UntagResourceCommandOutput> => {
|
|
2673
|
-
const parsedOutput: any = {
|
|
2674
|
-
...output,
|
|
2675
|
-
body: await parseBody(output.body, context),
|
|
2676
|
-
};
|
|
2677
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2678
|
-
let errorCode: string = "UnknownError";
|
|
2679
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2680
|
-
switch (errorCode) {
|
|
2681
|
-
case "DependencyException":
|
|
2682
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
2683
|
-
response = {
|
|
2684
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
2685
|
-
name: errorCode,
|
|
2686
|
-
$metadata: deserializeMetadata(output),
|
|
2687
|
-
};
|
|
2688
|
-
break;
|
|
2689
|
-
case "InvalidParameterException":
|
|
2690
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
2691
|
-
response = {
|
|
2692
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2693
|
-
name: errorCode,
|
|
2694
|
-
$metadata: deserializeMetadata(output),
|
|
2695
|
-
};
|
|
2696
|
-
break;
|
|
2697
|
-
case "ResourceNotFoundException":
|
|
2698
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
2699
|
-
response = {
|
|
2700
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2701
|
-
name: errorCode,
|
|
2702
|
-
$metadata: deserializeMetadata(output),
|
|
2703
|
-
};
|
|
2704
|
-
break;
|
|
2705
|
-
default:
|
|
2706
|
-
const parsedBody = parsedOutput.body;
|
|
2707
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2708
|
-
response = {
|
|
2709
|
-
...parsedBody,
|
|
2710
|
-
name: `${errorCode}`,
|
|
2711
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2712
|
-
$fault: "client",
|
|
2713
|
-
$metadata: deserializeMetadata(output),
|
|
2714
|
-
} as any;
|
|
2715
|
-
}
|
|
2716
|
-
const message = response.message || response.Message || errorCode;
|
|
2717
|
-
response.message = message;
|
|
2718
|
-
delete response.Message;
|
|
2719
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2720
|
-
};
|
|
2721
|
-
|
|
2722
|
-
export const deserializeAws_restJson1UpdateConfigCommand = async (
|
|
2723
|
-
output: __HttpResponse,
|
|
2724
|
-
context: __SerdeContext
|
|
2725
|
-
): Promise<UpdateConfigCommandOutput> => {
|
|
2726
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2727
|
-
return deserializeAws_restJson1UpdateConfigCommandError(output, context);
|
|
2728
|
-
}
|
|
2729
|
-
const contents: UpdateConfigCommandOutput = {
|
|
2730
|
-
$metadata: deserializeMetadata(output),
|
|
2731
|
-
configArn: undefined,
|
|
2732
|
-
configId: undefined,
|
|
2733
|
-
configType: undefined,
|
|
2734
|
-
};
|
|
2735
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2736
|
-
if (data.configArn !== undefined && data.configArn !== null) {
|
|
2737
|
-
contents.configArn = __expectString(data.configArn);
|
|
2738
|
-
}
|
|
2739
|
-
if (data.configId !== undefined && data.configId !== null) {
|
|
2740
|
-
contents.configId = __expectString(data.configId);
|
|
2741
|
-
}
|
|
2742
|
-
if (data.configType !== undefined && data.configType !== null) {
|
|
2743
|
-
contents.configType = __expectString(data.configType);
|
|
2744
|
-
}
|
|
2745
|
-
return Promise.resolve(contents);
|
|
2746
|
-
};
|
|
2747
|
-
|
|
2748
|
-
const deserializeAws_restJson1UpdateConfigCommandError = async (
|
|
2749
|
-
output: __HttpResponse,
|
|
2750
|
-
context: __SerdeContext
|
|
2751
|
-
): Promise<UpdateConfigCommandOutput> => {
|
|
2752
|
-
const parsedOutput: any = {
|
|
2753
|
-
...output,
|
|
2754
|
-
body: await parseBody(output.body, context),
|
|
2755
|
-
};
|
|
2756
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2757
|
-
let errorCode: string = "UnknownError";
|
|
2758
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2759
|
-
switch (errorCode) {
|
|
2760
|
-
case "DependencyException":
|
|
2761
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
2762
|
-
response = {
|
|
2763
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
2764
|
-
name: errorCode,
|
|
2765
|
-
$metadata: deserializeMetadata(output),
|
|
2766
|
-
};
|
|
2767
|
-
break;
|
|
2768
|
-
case "InvalidParameterException":
|
|
2769
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
2770
|
-
response = {
|
|
2771
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2772
|
-
name: errorCode,
|
|
2773
|
-
$metadata: deserializeMetadata(output),
|
|
2774
|
-
};
|
|
2775
|
-
break;
|
|
2776
|
-
case "ResourceNotFoundException":
|
|
2777
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
2778
|
-
response = {
|
|
2779
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2780
|
-
name: errorCode,
|
|
2781
|
-
$metadata: deserializeMetadata(output),
|
|
2782
|
-
};
|
|
2783
|
-
break;
|
|
2784
|
-
default:
|
|
2785
|
-
const parsedBody = parsedOutput.body;
|
|
2786
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2787
|
-
response = {
|
|
2788
|
-
...parsedBody,
|
|
2789
|
-
name: `${errorCode}`,
|
|
2790
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2791
|
-
$fault: "client",
|
|
2792
|
-
$metadata: deserializeMetadata(output),
|
|
2793
|
-
} as any;
|
|
2794
|
-
}
|
|
2795
|
-
const message = response.message || response.Message || errorCode;
|
|
2796
|
-
response.message = message;
|
|
2797
|
-
delete response.Message;
|
|
2798
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2799
|
-
};
|
|
2800
|
-
|
|
2801
|
-
export const deserializeAws_restJson1UpdateMissionProfileCommand = async (
|
|
2802
|
-
output: __HttpResponse,
|
|
2803
|
-
context: __SerdeContext
|
|
2804
|
-
): Promise<UpdateMissionProfileCommandOutput> => {
|
|
2805
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2806
|
-
return deserializeAws_restJson1UpdateMissionProfileCommandError(output, context);
|
|
2807
|
-
}
|
|
2808
|
-
const contents: UpdateMissionProfileCommandOutput = {
|
|
2809
|
-
$metadata: deserializeMetadata(output),
|
|
2810
|
-
missionProfileId: undefined,
|
|
2811
|
-
};
|
|
2812
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2813
|
-
if (data.missionProfileId !== undefined && data.missionProfileId !== null) {
|
|
2814
|
-
contents.missionProfileId = __expectString(data.missionProfileId);
|
|
2815
|
-
}
|
|
2816
|
-
return Promise.resolve(contents);
|
|
2817
|
-
};
|
|
2818
|
-
|
|
2819
|
-
const deserializeAws_restJson1UpdateMissionProfileCommandError = async (
|
|
2820
|
-
output: __HttpResponse,
|
|
2821
|
-
context: __SerdeContext
|
|
2822
|
-
): Promise<UpdateMissionProfileCommandOutput> => {
|
|
2823
|
-
const parsedOutput: any = {
|
|
2824
|
-
...output,
|
|
2825
|
-
body: await parseBody(output.body, context),
|
|
2826
|
-
};
|
|
2827
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2828
|
-
let errorCode: string = "UnknownError";
|
|
2829
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2830
|
-
switch (errorCode) {
|
|
2831
|
-
case "DependencyException":
|
|
2832
|
-
case "com.amazonaws.groundstation#DependencyException":
|
|
2833
|
-
response = {
|
|
2834
|
-
...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
|
|
2835
|
-
name: errorCode,
|
|
2836
|
-
$metadata: deserializeMetadata(output),
|
|
2837
|
-
};
|
|
2838
|
-
break;
|
|
2839
|
-
case "InvalidParameterException":
|
|
2840
|
-
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
2841
|
-
response = {
|
|
2842
|
-
...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2843
|
-
name: errorCode,
|
|
2844
|
-
$metadata: deserializeMetadata(output),
|
|
2845
|
-
};
|
|
2846
|
-
break;
|
|
2847
|
-
case "ResourceNotFoundException":
|
|
2848
|
-
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
2849
|
-
response = {
|
|
2850
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2851
|
-
name: errorCode,
|
|
2852
|
-
$metadata: deserializeMetadata(output),
|
|
2853
|
-
};
|
|
2854
|
-
break;
|
|
2855
|
-
default:
|
|
2856
|
-
const parsedBody = parsedOutput.body;
|
|
2857
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2858
|
-
response = {
|
|
2859
|
-
...parsedBody,
|
|
2860
|
-
name: `${errorCode}`,
|
|
2861
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2862
|
-
$fault: "client",
|
|
2863
|
-
$metadata: deserializeMetadata(output),
|
|
2864
|
-
} as any;
|
|
2865
|
-
}
|
|
2866
|
-
const message = response.message || response.Message || errorCode;
|
|
2867
|
-
response.message = message;
|
|
2868
|
-
delete response.Message;
|
|
2869
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2870
|
-
};
|
|
2871
|
-
|
|
2872
|
-
const deserializeAws_restJson1DependencyExceptionResponse = async (
|
|
2873
|
-
parsedOutput: any,
|
|
2874
|
-
context: __SerdeContext
|
|
2875
|
-
): Promise<DependencyException> => {
|
|
2876
|
-
const contents: DependencyException = {
|
|
2877
|
-
name: "DependencyException",
|
|
2878
|
-
$fault: "server",
|
|
2879
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2880
|
-
message: undefined,
|
|
2881
|
-
parameterName: undefined,
|
|
2882
|
-
};
|
|
2883
|
-
const data: any = parsedOutput.body;
|
|
2884
|
-
if (data.message !== undefined && data.message !== null) {
|
|
2885
|
-
contents.message = __expectString(data.message);
|
|
2886
|
-
}
|
|
2887
|
-
if (data.parameterName !== undefined && data.parameterName !== null) {
|
|
2888
|
-
contents.parameterName = __expectString(data.parameterName);
|
|
2889
|
-
}
|
|
2890
|
-
return contents;
|
|
2891
|
-
};
|
|
2892
|
-
|
|
2893
|
-
const deserializeAws_restJson1InvalidParameterExceptionResponse = async (
|
|
2894
|
-
parsedOutput: any,
|
|
2895
|
-
context: __SerdeContext
|
|
2896
|
-
): Promise<InvalidParameterException> => {
|
|
2897
|
-
const contents: InvalidParameterException = {
|
|
2898
|
-
name: "InvalidParameterException",
|
|
2899
|
-
$fault: "client",
|
|
2900
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2901
|
-
message: undefined,
|
|
2902
|
-
parameterName: undefined,
|
|
2903
|
-
};
|
|
2904
|
-
const data: any = parsedOutput.body;
|
|
2905
|
-
if (data.message !== undefined && data.message !== null) {
|
|
2906
|
-
contents.message = __expectString(data.message);
|
|
2907
|
-
}
|
|
2908
|
-
if (data.parameterName !== undefined && data.parameterName !== null) {
|
|
2909
|
-
contents.parameterName = __expectString(data.parameterName);
|
|
2910
|
-
}
|
|
2911
|
-
return contents;
|
|
2912
|
-
};
|
|
2913
|
-
|
|
2914
|
-
const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (
|
|
2915
|
-
parsedOutput: any,
|
|
2916
|
-
context: __SerdeContext
|
|
2917
|
-
): Promise<ResourceLimitExceededException> => {
|
|
2918
|
-
const contents: ResourceLimitExceededException = {
|
|
2919
|
-
name: "ResourceLimitExceededException",
|
|
2920
|
-
$fault: "client",
|
|
2921
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2922
|
-
message: undefined,
|
|
2923
|
-
parameterName: undefined,
|
|
2924
|
-
};
|
|
2925
|
-
const data: any = parsedOutput.body;
|
|
2926
|
-
if (data.message !== undefined && data.message !== null) {
|
|
2927
|
-
contents.message = __expectString(data.message);
|
|
2928
|
-
}
|
|
2929
|
-
if (data.parameterName !== undefined && data.parameterName !== null) {
|
|
2930
|
-
contents.parameterName = __expectString(data.parameterName);
|
|
2931
|
-
}
|
|
2932
|
-
return contents;
|
|
2933
|
-
};
|
|
2934
|
-
|
|
2935
|
-
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (
|
|
2936
|
-
parsedOutput: any,
|
|
2937
|
-
context: __SerdeContext
|
|
2938
|
-
): Promise<ResourceNotFoundException> => {
|
|
2939
|
-
const contents: ResourceNotFoundException = {
|
|
2940
|
-
name: "ResourceNotFoundException",
|
|
2941
|
-
$fault: "client",
|
|
2942
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2943
|
-
message: undefined,
|
|
2944
|
-
};
|
|
2945
|
-
const data: any = parsedOutput.body;
|
|
2946
|
-
if (data.message !== undefined && data.message !== null) {
|
|
2947
|
-
contents.message = __expectString(data.message);
|
|
2948
|
-
}
|
|
2949
|
-
return contents;
|
|
2950
|
-
};
|
|
2951
|
-
|
|
2952
|
-
const serializeAws_restJson1AntennaDownlinkConfig = (input: AntennaDownlinkConfig, context: __SerdeContext): any => {
|
|
2953
|
-
return {
|
|
2954
|
-
...(input.spectrumConfig !== undefined &&
|
|
2955
|
-
input.spectrumConfig !== null && {
|
|
2956
|
-
spectrumConfig: serializeAws_restJson1SpectrumConfig(input.spectrumConfig, context),
|
|
2957
|
-
}),
|
|
2958
|
-
};
|
|
2959
|
-
};
|
|
2960
|
-
|
|
2961
|
-
const serializeAws_restJson1AntennaDownlinkDemodDecodeConfig = (
|
|
2962
|
-
input: AntennaDownlinkDemodDecodeConfig,
|
|
2963
|
-
context: __SerdeContext
|
|
2964
|
-
): any => {
|
|
2965
|
-
return {
|
|
2966
|
-
...(input.decodeConfig !== undefined &&
|
|
2967
|
-
input.decodeConfig !== null && { decodeConfig: serializeAws_restJson1DecodeConfig(input.decodeConfig, context) }),
|
|
2968
|
-
...(input.demodulationConfig !== undefined &&
|
|
2969
|
-
input.demodulationConfig !== null && {
|
|
2970
|
-
demodulationConfig: serializeAws_restJson1DemodulationConfig(input.demodulationConfig, context),
|
|
2971
|
-
}),
|
|
2972
|
-
...(input.spectrumConfig !== undefined &&
|
|
2973
|
-
input.spectrumConfig !== null && {
|
|
2974
|
-
spectrumConfig: serializeAws_restJson1SpectrumConfig(input.spectrumConfig, context),
|
|
2975
|
-
}),
|
|
2976
|
-
};
|
|
2977
|
-
};
|
|
2978
|
-
|
|
2979
|
-
const serializeAws_restJson1AntennaUplinkConfig = (input: AntennaUplinkConfig, context: __SerdeContext): any => {
|
|
2980
|
-
return {
|
|
2981
|
-
...(input.spectrumConfig !== undefined &&
|
|
2982
|
-
input.spectrumConfig !== null && {
|
|
2983
|
-
spectrumConfig: serializeAws_restJson1UplinkSpectrumConfig(input.spectrumConfig, context),
|
|
2984
|
-
}),
|
|
2985
|
-
...(input.targetEirp !== undefined &&
|
|
2986
|
-
input.targetEirp !== null && { targetEirp: serializeAws_restJson1Eirp(input.targetEirp, context) }),
|
|
2987
|
-
...(input.transmitDisabled !== undefined &&
|
|
2988
|
-
input.transmitDisabled !== null && { transmitDisabled: input.transmitDisabled }),
|
|
2989
|
-
};
|
|
2990
|
-
};
|
|
2991
|
-
|
|
2992
|
-
const serializeAws_restJson1ConfigTypeData = (input: ConfigTypeData, context: __SerdeContext): any => {
|
|
2993
|
-
return ConfigTypeData.visit(input, {
|
|
2994
|
-
antennaDownlinkConfig: (value) => ({
|
|
2995
|
-
antennaDownlinkConfig: serializeAws_restJson1AntennaDownlinkConfig(value, context),
|
|
2996
|
-
}),
|
|
2997
|
-
antennaDownlinkDemodDecodeConfig: (value) => ({
|
|
2998
|
-
antennaDownlinkDemodDecodeConfig: serializeAws_restJson1AntennaDownlinkDemodDecodeConfig(value, context),
|
|
2999
|
-
}),
|
|
3000
|
-
antennaUplinkConfig: (value) => ({
|
|
3001
|
-
antennaUplinkConfig: serializeAws_restJson1AntennaUplinkConfig(value, context),
|
|
3002
|
-
}),
|
|
3003
|
-
dataflowEndpointConfig: (value) => ({
|
|
3004
|
-
dataflowEndpointConfig: serializeAws_restJson1DataflowEndpointConfig(value, context),
|
|
3005
|
-
}),
|
|
3006
|
-
s3RecordingConfig: (value) => ({ s3RecordingConfig: serializeAws_restJson1S3RecordingConfig(value, context) }),
|
|
3007
|
-
trackingConfig: (value) => ({ trackingConfig: serializeAws_restJson1TrackingConfig(value, context) }),
|
|
3008
|
-
uplinkEchoConfig: (value) => ({ uplinkEchoConfig: serializeAws_restJson1UplinkEchoConfig(value, context) }),
|
|
3009
|
-
_: (name, value) => ({ name: value } as any),
|
|
3010
|
-
});
|
|
3011
|
-
};
|
|
3012
|
-
|
|
3013
|
-
const serializeAws_restJson1DataflowEdge = (input: string[], context: __SerdeContext): any => {
|
|
3014
|
-
return input
|
|
3015
|
-
.filter((e: any) => e != null)
|
|
3016
|
-
.map((entry) => {
|
|
3017
|
-
if (entry === null) {
|
|
3018
|
-
return null as any;
|
|
3019
|
-
}
|
|
3020
|
-
return entry;
|
|
3021
|
-
});
|
|
3022
|
-
};
|
|
3023
|
-
|
|
3024
|
-
const serializeAws_restJson1DataflowEdgeList = (input: string[][], context: __SerdeContext): any => {
|
|
3025
|
-
return input
|
|
3026
|
-
.filter((e: any) => e != null)
|
|
3027
|
-
.map((entry) => {
|
|
3028
|
-
if (entry === null) {
|
|
3029
|
-
return null as any;
|
|
3030
|
-
}
|
|
3031
|
-
return serializeAws_restJson1DataflowEdge(entry, context);
|
|
3032
|
-
});
|
|
3033
|
-
};
|
|
3034
|
-
|
|
3035
|
-
const serializeAws_restJson1DataflowEndpoint = (input: DataflowEndpoint, context: __SerdeContext): any => {
|
|
3036
|
-
return {
|
|
3037
|
-
...(input.address !== undefined &&
|
|
3038
|
-
input.address !== null && { address: serializeAws_restJson1SocketAddress(input.address, context) }),
|
|
3039
|
-
...(input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu }),
|
|
3040
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3041
|
-
...(input.status !== undefined && input.status !== null && { status: input.status }),
|
|
3042
|
-
};
|
|
3043
|
-
};
|
|
3044
|
-
|
|
3045
|
-
const serializeAws_restJson1DataflowEndpointConfig = (input: DataflowEndpointConfig, context: __SerdeContext): any => {
|
|
3046
|
-
return {
|
|
3047
|
-
...(input.dataflowEndpointName !== undefined &&
|
|
3048
|
-
input.dataflowEndpointName !== null && { dataflowEndpointName: input.dataflowEndpointName }),
|
|
3049
|
-
...(input.dataflowEndpointRegion !== undefined &&
|
|
3050
|
-
input.dataflowEndpointRegion !== null && { dataflowEndpointRegion: input.dataflowEndpointRegion }),
|
|
3051
|
-
};
|
|
3052
|
-
};
|
|
3053
|
-
|
|
3054
|
-
const serializeAws_restJson1DecodeConfig = (input: DecodeConfig, context: __SerdeContext): any => {
|
|
3055
|
-
return {
|
|
3056
|
-
...(input.unvalidatedJSON !== undefined &&
|
|
3057
|
-
input.unvalidatedJSON !== null && { unvalidatedJSON: input.unvalidatedJSON }),
|
|
3058
|
-
};
|
|
3059
|
-
};
|
|
3060
|
-
|
|
3061
|
-
const serializeAws_restJson1DemodulationConfig = (input: DemodulationConfig, context: __SerdeContext): any => {
|
|
3062
|
-
return {
|
|
3063
|
-
...(input.unvalidatedJSON !== undefined &&
|
|
3064
|
-
input.unvalidatedJSON !== null && { unvalidatedJSON: input.unvalidatedJSON }),
|
|
3065
|
-
};
|
|
3066
|
-
};
|
|
3067
|
-
|
|
3068
|
-
const serializeAws_restJson1Eirp = (input: Eirp, context: __SerdeContext): any => {
|
|
3069
|
-
return {
|
|
3070
|
-
...(input.units !== undefined && input.units !== null && { units: input.units }),
|
|
3071
|
-
...(input.value !== undefined && input.value !== null && { value: __serializeFloat(input.value) }),
|
|
3072
|
-
};
|
|
3073
|
-
};
|
|
3074
|
-
|
|
3075
|
-
const serializeAws_restJson1EndpointDetails = (input: EndpointDetails, context: __SerdeContext): any => {
|
|
3076
|
-
return {
|
|
3077
|
-
...(input.endpoint !== undefined &&
|
|
3078
|
-
input.endpoint !== null && { endpoint: serializeAws_restJson1DataflowEndpoint(input.endpoint, context) }),
|
|
3079
|
-
...(input.securityDetails !== undefined &&
|
|
3080
|
-
input.securityDetails !== null && {
|
|
3081
|
-
securityDetails: serializeAws_restJson1SecurityDetails(input.securityDetails, context),
|
|
3082
|
-
}),
|
|
3083
|
-
};
|
|
3084
|
-
};
|
|
3085
|
-
|
|
3086
|
-
const serializeAws_restJson1EndpointDetailsList = (input: EndpointDetails[], context: __SerdeContext): any => {
|
|
3087
|
-
return input
|
|
3088
|
-
.filter((e: any) => e != null)
|
|
3089
|
-
.map((entry) => {
|
|
3090
|
-
if (entry === null) {
|
|
3091
|
-
return null as any;
|
|
3092
|
-
}
|
|
3093
|
-
return serializeAws_restJson1EndpointDetails(entry, context);
|
|
3094
|
-
});
|
|
3095
|
-
};
|
|
3096
|
-
|
|
3097
|
-
const serializeAws_restJson1Frequency = (input: Frequency, context: __SerdeContext): any => {
|
|
3098
|
-
return {
|
|
3099
|
-
...(input.units !== undefined && input.units !== null && { units: input.units }),
|
|
3100
|
-
...(input.value !== undefined && input.value !== null && { value: __serializeFloat(input.value) }),
|
|
3101
|
-
};
|
|
3102
|
-
};
|
|
3103
|
-
|
|
3104
|
-
const serializeAws_restJson1FrequencyBandwidth = (input: FrequencyBandwidth, context: __SerdeContext): any => {
|
|
3105
|
-
return {
|
|
3106
|
-
...(input.units !== undefined && input.units !== null && { units: input.units }),
|
|
3107
|
-
...(input.value !== undefined && input.value !== null && { value: __serializeFloat(input.value) }),
|
|
3108
|
-
};
|
|
3109
|
-
};
|
|
3110
|
-
|
|
3111
|
-
const serializeAws_restJson1S3RecordingConfig = (input: S3RecordingConfig, context: __SerdeContext): any => {
|
|
3112
|
-
return {
|
|
3113
|
-
...(input.bucketArn !== undefined && input.bucketArn !== null && { bucketArn: input.bucketArn }),
|
|
3114
|
-
...(input.prefix !== undefined && input.prefix !== null && { prefix: input.prefix }),
|
|
3115
|
-
...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
|
|
3116
|
-
};
|
|
3117
|
-
};
|
|
3118
|
-
|
|
3119
|
-
const serializeAws_restJson1SecurityDetails = (input: SecurityDetails, context: __SerdeContext): any => {
|
|
3120
|
-
return {
|
|
3121
|
-
...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
|
|
3122
|
-
...(input.securityGroupIds !== undefined &&
|
|
3123
|
-
input.securityGroupIds !== null && {
|
|
3124
|
-
securityGroupIds: serializeAws_restJson1SecurityGroupIdList(input.securityGroupIds, context),
|
|
3125
|
-
}),
|
|
3126
|
-
...(input.subnetIds !== undefined &&
|
|
3127
|
-
input.subnetIds !== null && { subnetIds: serializeAws_restJson1SubnetList(input.subnetIds, context) }),
|
|
3128
|
-
};
|
|
3129
|
-
};
|
|
3130
|
-
|
|
3131
|
-
const serializeAws_restJson1SecurityGroupIdList = (input: string[], context: __SerdeContext): any => {
|
|
3132
|
-
return input
|
|
3133
|
-
.filter((e: any) => e != null)
|
|
3134
|
-
.map((entry) => {
|
|
3135
|
-
if (entry === null) {
|
|
3136
|
-
return null as any;
|
|
3137
|
-
}
|
|
3138
|
-
return entry;
|
|
3139
|
-
});
|
|
3140
|
-
};
|
|
3141
|
-
|
|
3142
|
-
const serializeAws_restJson1SocketAddress = (input: SocketAddress, context: __SerdeContext): any => {
|
|
3143
|
-
return {
|
|
3144
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3145
|
-
...(input.port !== undefined && input.port !== null && { port: input.port }),
|
|
3146
|
-
};
|
|
3147
|
-
};
|
|
3148
|
-
|
|
3149
|
-
const serializeAws_restJson1SpectrumConfig = (input: SpectrumConfig, context: __SerdeContext): any => {
|
|
3150
|
-
return {
|
|
3151
|
-
...(input.bandwidth !== undefined &&
|
|
3152
|
-
input.bandwidth !== null && { bandwidth: serializeAws_restJson1FrequencyBandwidth(input.bandwidth, context) }),
|
|
3153
|
-
...(input.centerFrequency !== undefined &&
|
|
3154
|
-
input.centerFrequency !== null && {
|
|
3155
|
-
centerFrequency: serializeAws_restJson1Frequency(input.centerFrequency, context),
|
|
3156
|
-
}),
|
|
3157
|
-
...(input.polarization !== undefined && input.polarization !== null && { polarization: input.polarization }),
|
|
3158
|
-
};
|
|
3159
|
-
};
|
|
3160
|
-
|
|
3161
|
-
const serializeAws_restJson1StatusList = (input: (ContactStatus | string)[], context: __SerdeContext): any => {
|
|
3162
|
-
return input
|
|
3163
|
-
.filter((e: any) => e != null)
|
|
3164
|
-
.map((entry) => {
|
|
3165
|
-
if (entry === null) {
|
|
3166
|
-
return null as any;
|
|
3167
|
-
}
|
|
3168
|
-
return entry;
|
|
3169
|
-
});
|
|
3170
|
-
};
|
|
3171
|
-
|
|
3172
|
-
const serializeAws_restJson1SubnetList = (input: string[], context: __SerdeContext): any => {
|
|
3173
|
-
return input
|
|
3174
|
-
.filter((e: any) => e != null)
|
|
3175
|
-
.map((entry) => {
|
|
3176
|
-
if (entry === null) {
|
|
3177
|
-
return null as any;
|
|
3178
|
-
}
|
|
3179
|
-
return entry;
|
|
3180
|
-
});
|
|
3181
|
-
};
|
|
3182
|
-
|
|
3183
|
-
const serializeAws_restJson1TagsMap = (input: { [key: string]: string }, context: __SerdeContext): any => {
|
|
3184
|
-
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
|
|
3185
|
-
if (value === null) {
|
|
3186
|
-
return acc;
|
|
3187
|
-
}
|
|
3188
|
-
return {
|
|
3189
|
-
...acc,
|
|
3190
|
-
[key]: value,
|
|
3191
|
-
};
|
|
3192
|
-
}, {});
|
|
3193
|
-
};
|
|
3194
|
-
|
|
3195
|
-
const serializeAws_restJson1TrackingConfig = (input: TrackingConfig, context: __SerdeContext): any => {
|
|
3196
|
-
return {
|
|
3197
|
-
...(input.autotrack !== undefined && input.autotrack !== null && { autotrack: input.autotrack }),
|
|
3198
|
-
};
|
|
3199
|
-
};
|
|
3200
|
-
|
|
3201
|
-
const serializeAws_restJson1UplinkEchoConfig = (input: UplinkEchoConfig, context: __SerdeContext): any => {
|
|
3202
|
-
return {
|
|
3203
|
-
...(input.antennaUplinkConfigArn !== undefined &&
|
|
3204
|
-
input.antennaUplinkConfigArn !== null && { antennaUplinkConfigArn: input.antennaUplinkConfigArn }),
|
|
3205
|
-
...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
|
|
3206
|
-
};
|
|
3207
|
-
};
|
|
3208
|
-
|
|
3209
|
-
const serializeAws_restJson1UplinkSpectrumConfig = (input: UplinkSpectrumConfig, context: __SerdeContext): any => {
|
|
3210
|
-
return {
|
|
3211
|
-
...(input.centerFrequency !== undefined &&
|
|
3212
|
-
input.centerFrequency !== null && {
|
|
3213
|
-
centerFrequency: serializeAws_restJson1Frequency(input.centerFrequency, context),
|
|
3214
|
-
}),
|
|
3215
|
-
...(input.polarization !== undefined && input.polarization !== null && { polarization: input.polarization }),
|
|
3216
|
-
};
|
|
3217
|
-
};
|
|
3218
|
-
|
|
3219
|
-
const deserializeAws_restJson1AntennaDemodDecodeDetails = (
|
|
3220
|
-
output: any,
|
|
3221
|
-
context: __SerdeContext
|
|
3222
|
-
): AntennaDemodDecodeDetails => {
|
|
3223
|
-
return {
|
|
3224
|
-
outputNode: __expectString(output.outputNode),
|
|
3225
|
-
} as any;
|
|
3226
|
-
};
|
|
3227
|
-
|
|
3228
|
-
const deserializeAws_restJson1AntennaDownlinkConfig = (output: any, context: __SerdeContext): AntennaDownlinkConfig => {
|
|
3229
|
-
return {
|
|
3230
|
-
spectrumConfig:
|
|
3231
|
-
output.spectrumConfig !== undefined && output.spectrumConfig !== null
|
|
3232
|
-
? deserializeAws_restJson1SpectrumConfig(output.spectrumConfig, context)
|
|
3233
|
-
: undefined,
|
|
3234
|
-
} as any;
|
|
3235
|
-
};
|
|
3236
|
-
|
|
3237
|
-
const deserializeAws_restJson1AntennaDownlinkDemodDecodeConfig = (
|
|
3238
|
-
output: any,
|
|
3239
|
-
context: __SerdeContext
|
|
3240
|
-
): AntennaDownlinkDemodDecodeConfig => {
|
|
3241
|
-
return {
|
|
3242
|
-
decodeConfig:
|
|
3243
|
-
output.decodeConfig !== undefined && output.decodeConfig !== null
|
|
3244
|
-
? deserializeAws_restJson1DecodeConfig(output.decodeConfig, context)
|
|
3245
|
-
: undefined,
|
|
3246
|
-
demodulationConfig:
|
|
3247
|
-
output.demodulationConfig !== undefined && output.demodulationConfig !== null
|
|
3248
|
-
? deserializeAws_restJson1DemodulationConfig(output.demodulationConfig, context)
|
|
3249
|
-
: undefined,
|
|
3250
|
-
spectrumConfig:
|
|
3251
|
-
output.spectrumConfig !== undefined && output.spectrumConfig !== null
|
|
3252
|
-
? deserializeAws_restJson1SpectrumConfig(output.spectrumConfig, context)
|
|
3253
|
-
: undefined,
|
|
3254
|
-
} as any;
|
|
3255
|
-
};
|
|
3256
|
-
|
|
3257
|
-
const deserializeAws_restJson1AntennaUplinkConfig = (output: any, context: __SerdeContext): AntennaUplinkConfig => {
|
|
3258
|
-
return {
|
|
3259
|
-
spectrumConfig:
|
|
3260
|
-
output.spectrumConfig !== undefined && output.spectrumConfig !== null
|
|
3261
|
-
? deserializeAws_restJson1UplinkSpectrumConfig(output.spectrumConfig, context)
|
|
3262
|
-
: undefined,
|
|
3263
|
-
targetEirp:
|
|
3264
|
-
output.targetEirp !== undefined && output.targetEirp !== null
|
|
3265
|
-
? deserializeAws_restJson1Eirp(output.targetEirp, context)
|
|
3266
|
-
: undefined,
|
|
3267
|
-
transmitDisabled: __expectBoolean(output.transmitDisabled),
|
|
3268
|
-
} as any;
|
|
3269
|
-
};
|
|
3270
|
-
|
|
3271
|
-
const deserializeAws_restJson1ConfigDetails = (output: any, context: __SerdeContext): ConfigDetails => {
|
|
3272
|
-
if (output.antennaDemodDecodeDetails !== undefined && output.antennaDemodDecodeDetails !== null) {
|
|
3273
|
-
return {
|
|
3274
|
-
antennaDemodDecodeDetails: deserializeAws_restJson1AntennaDemodDecodeDetails(
|
|
3275
|
-
output.antennaDemodDecodeDetails,
|
|
3276
|
-
context
|
|
3277
|
-
),
|
|
3278
|
-
};
|
|
3279
|
-
}
|
|
3280
|
-
if (output.endpointDetails !== undefined && output.endpointDetails !== null) {
|
|
3281
|
-
return {
|
|
3282
|
-
endpointDetails: deserializeAws_restJson1EndpointDetails(output.endpointDetails, context),
|
|
3283
|
-
};
|
|
3284
|
-
}
|
|
3285
|
-
if (output.s3RecordingDetails !== undefined && output.s3RecordingDetails !== null) {
|
|
3286
|
-
return {
|
|
3287
|
-
s3RecordingDetails: deserializeAws_restJson1S3RecordingDetails(output.s3RecordingDetails, context),
|
|
3288
|
-
};
|
|
3289
|
-
}
|
|
3290
|
-
return { $unknown: Object.entries(output)[0] };
|
|
3291
|
-
};
|
|
3292
|
-
|
|
3293
|
-
const deserializeAws_restJson1ConfigList = (output: any, context: __SerdeContext): ConfigListItem[] => {
|
|
3294
|
-
return (output || [])
|
|
3295
|
-
.filter((e: any) => e != null)
|
|
3296
|
-
.map((entry: any) => {
|
|
3297
|
-
if (entry === null) {
|
|
3298
|
-
return null as any;
|
|
3299
|
-
}
|
|
3300
|
-
return deserializeAws_restJson1ConfigListItem(entry, context);
|
|
3301
|
-
});
|
|
3302
|
-
};
|
|
3303
|
-
|
|
3304
|
-
const deserializeAws_restJson1ConfigListItem = (output: any, context: __SerdeContext): ConfigListItem => {
|
|
3305
|
-
return {
|
|
3306
|
-
configArn: __expectString(output.configArn),
|
|
3307
|
-
configId: __expectString(output.configId),
|
|
3308
|
-
configType: __expectString(output.configType),
|
|
3309
|
-
name: __expectString(output.name),
|
|
3310
|
-
} as any;
|
|
3311
|
-
};
|
|
3312
|
-
|
|
3313
|
-
const deserializeAws_restJson1ConfigTypeData = (output: any, context: __SerdeContext): ConfigTypeData => {
|
|
3314
|
-
if (output.antennaDownlinkConfig !== undefined && output.antennaDownlinkConfig !== null) {
|
|
3315
|
-
return {
|
|
3316
|
-
antennaDownlinkConfig: deserializeAws_restJson1AntennaDownlinkConfig(output.antennaDownlinkConfig, context),
|
|
3317
|
-
};
|
|
3318
|
-
}
|
|
3319
|
-
if (output.antennaDownlinkDemodDecodeConfig !== undefined && output.antennaDownlinkDemodDecodeConfig !== null) {
|
|
3320
|
-
return {
|
|
3321
|
-
antennaDownlinkDemodDecodeConfig: deserializeAws_restJson1AntennaDownlinkDemodDecodeConfig(
|
|
3322
|
-
output.antennaDownlinkDemodDecodeConfig,
|
|
3323
|
-
context
|
|
3324
|
-
),
|
|
3325
|
-
};
|
|
3326
|
-
}
|
|
3327
|
-
if (output.antennaUplinkConfig !== undefined && output.antennaUplinkConfig !== null) {
|
|
3328
|
-
return {
|
|
3329
|
-
antennaUplinkConfig: deserializeAws_restJson1AntennaUplinkConfig(output.antennaUplinkConfig, context),
|
|
3330
|
-
};
|
|
3331
|
-
}
|
|
3332
|
-
if (output.dataflowEndpointConfig !== undefined && output.dataflowEndpointConfig !== null) {
|
|
3333
|
-
return {
|
|
3334
|
-
dataflowEndpointConfig: deserializeAws_restJson1DataflowEndpointConfig(output.dataflowEndpointConfig, context),
|
|
3335
|
-
};
|
|
3336
|
-
}
|
|
3337
|
-
if (output.s3RecordingConfig !== undefined && output.s3RecordingConfig !== null) {
|
|
3338
|
-
return {
|
|
3339
|
-
s3RecordingConfig: deserializeAws_restJson1S3RecordingConfig(output.s3RecordingConfig, context),
|
|
3340
|
-
};
|
|
3341
|
-
}
|
|
3342
|
-
if (output.trackingConfig !== undefined && output.trackingConfig !== null) {
|
|
3343
|
-
return {
|
|
3344
|
-
trackingConfig: deserializeAws_restJson1TrackingConfig(output.trackingConfig, context),
|
|
3345
|
-
};
|
|
3346
|
-
}
|
|
3347
|
-
if (output.uplinkEchoConfig !== undefined && output.uplinkEchoConfig !== null) {
|
|
3348
|
-
return {
|
|
3349
|
-
uplinkEchoConfig: deserializeAws_restJson1UplinkEchoConfig(output.uplinkEchoConfig, context),
|
|
3350
|
-
};
|
|
3351
|
-
}
|
|
3352
|
-
return { $unknown: Object.entries(output)[0] };
|
|
3353
|
-
};
|
|
3354
|
-
|
|
3355
|
-
const deserializeAws_restJson1ContactData = (output: any, context: __SerdeContext): ContactData => {
|
|
3356
|
-
return {
|
|
3357
|
-
contactId: __expectString(output.contactId),
|
|
3358
|
-
contactStatus: __expectString(output.contactStatus),
|
|
3359
|
-
endTime:
|
|
3360
|
-
output.endTime !== undefined && output.endTime !== null
|
|
3361
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
|
|
3362
|
-
: undefined,
|
|
3363
|
-
errorMessage: __expectString(output.errorMessage),
|
|
3364
|
-
groundStation: __expectString(output.groundStation),
|
|
3365
|
-
maximumElevation:
|
|
3366
|
-
output.maximumElevation !== undefined && output.maximumElevation !== null
|
|
3367
|
-
? deserializeAws_restJson1Elevation(output.maximumElevation, context)
|
|
3368
|
-
: undefined,
|
|
3369
|
-
missionProfileArn: __expectString(output.missionProfileArn),
|
|
3370
|
-
postPassEndTime:
|
|
3371
|
-
output.postPassEndTime !== undefined && output.postPassEndTime !== null
|
|
3372
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.postPassEndTime)))
|
|
3373
|
-
: undefined,
|
|
3374
|
-
prePassStartTime:
|
|
3375
|
-
output.prePassStartTime !== undefined && output.prePassStartTime !== null
|
|
3376
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.prePassStartTime)))
|
|
3377
|
-
: undefined,
|
|
3378
|
-
region: __expectString(output.region),
|
|
3379
|
-
satelliteArn: __expectString(output.satelliteArn),
|
|
3380
|
-
startTime:
|
|
3381
|
-
output.startTime !== undefined && output.startTime !== null
|
|
3382
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
3383
|
-
: undefined,
|
|
3384
|
-
tags:
|
|
3385
|
-
output.tags !== undefined && output.tags !== null
|
|
3386
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3387
|
-
: undefined,
|
|
3388
|
-
} as any;
|
|
3389
|
-
};
|
|
3390
|
-
|
|
3391
|
-
const deserializeAws_restJson1ContactList = (output: any, context: __SerdeContext): ContactData[] => {
|
|
3392
|
-
return (output || [])
|
|
3393
|
-
.filter((e: any) => e != null)
|
|
3394
|
-
.map((entry: any) => {
|
|
3395
|
-
if (entry === null) {
|
|
3396
|
-
return null as any;
|
|
3397
|
-
}
|
|
3398
|
-
return deserializeAws_restJson1ContactData(entry, context);
|
|
3399
|
-
});
|
|
3400
|
-
};
|
|
3401
|
-
|
|
3402
|
-
const deserializeAws_restJson1DataflowDetail = (output: any, context: __SerdeContext): DataflowDetail => {
|
|
3403
|
-
return {
|
|
3404
|
-
destination:
|
|
3405
|
-
output.destination !== undefined && output.destination !== null
|
|
3406
|
-
? deserializeAws_restJson1Destination(output.destination, context)
|
|
3407
|
-
: undefined,
|
|
3408
|
-
errorMessage: __expectString(output.errorMessage),
|
|
3409
|
-
source:
|
|
3410
|
-
output.source !== undefined && output.source !== null
|
|
3411
|
-
? deserializeAws_restJson1Source(output.source, context)
|
|
3412
|
-
: undefined,
|
|
3413
|
-
} as any;
|
|
3414
|
-
};
|
|
3415
|
-
|
|
3416
|
-
const deserializeAws_restJson1DataflowEdge = (output: any, context: __SerdeContext): string[] => {
|
|
3417
|
-
return (output || [])
|
|
3418
|
-
.filter((e: any) => e != null)
|
|
3419
|
-
.map((entry: any) => {
|
|
3420
|
-
if (entry === null) {
|
|
3421
|
-
return null as any;
|
|
3422
|
-
}
|
|
3423
|
-
return __expectString(entry) as any;
|
|
3424
|
-
});
|
|
3425
|
-
};
|
|
3426
|
-
|
|
3427
|
-
const deserializeAws_restJson1DataflowEdgeList = (output: any, context: __SerdeContext): string[][] => {
|
|
3428
|
-
return (output || [])
|
|
3429
|
-
.filter((e: any) => e != null)
|
|
3430
|
-
.map((entry: any) => {
|
|
3431
|
-
if (entry === null) {
|
|
3432
|
-
return null as any;
|
|
3433
|
-
}
|
|
3434
|
-
return deserializeAws_restJson1DataflowEdge(entry, context);
|
|
3435
|
-
});
|
|
3436
|
-
};
|
|
3437
|
-
|
|
3438
|
-
const deserializeAws_restJson1DataflowEndpoint = (output: any, context: __SerdeContext): DataflowEndpoint => {
|
|
3439
|
-
return {
|
|
3440
|
-
address:
|
|
3441
|
-
output.address !== undefined && output.address !== null
|
|
3442
|
-
? deserializeAws_restJson1SocketAddress(output.address, context)
|
|
3443
|
-
: undefined,
|
|
3444
|
-
mtu: __expectInt32(output.mtu),
|
|
3445
|
-
name: __expectString(output.name),
|
|
3446
|
-
status: __expectString(output.status),
|
|
3447
|
-
} as any;
|
|
3448
|
-
};
|
|
3449
|
-
|
|
3450
|
-
const deserializeAws_restJson1DataflowEndpointConfig = (
|
|
3451
|
-
output: any,
|
|
3452
|
-
context: __SerdeContext
|
|
3453
|
-
): DataflowEndpointConfig => {
|
|
3454
|
-
return {
|
|
3455
|
-
dataflowEndpointName: __expectString(output.dataflowEndpointName),
|
|
3456
|
-
dataflowEndpointRegion: __expectString(output.dataflowEndpointRegion),
|
|
3457
|
-
} as any;
|
|
3458
|
-
};
|
|
3459
|
-
|
|
3460
|
-
const deserializeAws_restJson1DataflowEndpointGroupList = (
|
|
3461
|
-
output: any,
|
|
3462
|
-
context: __SerdeContext
|
|
3463
|
-
): DataflowEndpointListItem[] => {
|
|
3464
|
-
return (output || [])
|
|
3465
|
-
.filter((e: any) => e != null)
|
|
3466
|
-
.map((entry: any) => {
|
|
3467
|
-
if (entry === null) {
|
|
3468
|
-
return null as any;
|
|
3469
|
-
}
|
|
3470
|
-
return deserializeAws_restJson1DataflowEndpointListItem(entry, context);
|
|
3471
|
-
});
|
|
3472
|
-
};
|
|
3473
|
-
|
|
3474
|
-
const deserializeAws_restJson1DataflowEndpointListItem = (
|
|
3475
|
-
output: any,
|
|
3476
|
-
context: __SerdeContext
|
|
3477
|
-
): DataflowEndpointListItem => {
|
|
3478
|
-
return {
|
|
3479
|
-
dataflowEndpointGroupArn: __expectString(output.dataflowEndpointGroupArn),
|
|
3480
|
-
dataflowEndpointGroupId: __expectString(output.dataflowEndpointGroupId),
|
|
3481
|
-
} as any;
|
|
3482
|
-
};
|
|
3483
|
-
|
|
3484
|
-
const deserializeAws_restJson1DataflowList = (output: any, context: __SerdeContext): DataflowDetail[] => {
|
|
3485
|
-
return (output || [])
|
|
3486
|
-
.filter((e: any) => e != null)
|
|
3487
|
-
.map((entry: any) => {
|
|
3488
|
-
if (entry === null) {
|
|
3489
|
-
return null as any;
|
|
3490
|
-
}
|
|
3491
|
-
return deserializeAws_restJson1DataflowDetail(entry, context);
|
|
3492
|
-
});
|
|
3493
|
-
};
|
|
3494
|
-
|
|
3495
|
-
const deserializeAws_restJson1DecodeConfig = (output: any, context: __SerdeContext): DecodeConfig => {
|
|
3496
|
-
return {
|
|
3497
|
-
unvalidatedJSON: __expectString(output.unvalidatedJSON),
|
|
3498
|
-
} as any;
|
|
3499
|
-
};
|
|
3500
|
-
|
|
3501
|
-
const deserializeAws_restJson1DemodulationConfig = (output: any, context: __SerdeContext): DemodulationConfig => {
|
|
3502
|
-
return {
|
|
3503
|
-
unvalidatedJSON: __expectString(output.unvalidatedJSON),
|
|
3504
|
-
} as any;
|
|
3505
|
-
};
|
|
3506
|
-
|
|
3507
|
-
const deserializeAws_restJson1Destination = (output: any, context: __SerdeContext): Destination => {
|
|
3508
|
-
return {
|
|
3509
|
-
configDetails:
|
|
3510
|
-
output.configDetails !== undefined && output.configDetails !== null
|
|
3511
|
-
? deserializeAws_restJson1ConfigDetails(__expectUnion(output.configDetails), context)
|
|
3512
|
-
: undefined,
|
|
3513
|
-
configId: __expectString(output.configId),
|
|
3514
|
-
configType: __expectString(output.configType),
|
|
3515
|
-
dataflowDestinationRegion: __expectString(output.dataflowDestinationRegion),
|
|
3516
|
-
} as any;
|
|
3517
|
-
};
|
|
3518
|
-
|
|
3519
|
-
const deserializeAws_restJson1Eirp = (output: any, context: __SerdeContext): Eirp => {
|
|
3520
|
-
return {
|
|
3521
|
-
units: __expectString(output.units),
|
|
3522
|
-
value: __limitedParseDouble(output.value),
|
|
3523
|
-
} as any;
|
|
3524
|
-
};
|
|
3525
|
-
|
|
3526
|
-
const deserializeAws_restJson1Elevation = (output: any, context: __SerdeContext): Elevation => {
|
|
3527
|
-
return {
|
|
3528
|
-
unit: __expectString(output.unit),
|
|
3529
|
-
value: __limitedParseDouble(output.value),
|
|
3530
|
-
} as any;
|
|
3531
|
-
};
|
|
3532
|
-
|
|
3533
|
-
const deserializeAws_restJson1EndpointDetails = (output: any, context: __SerdeContext): EndpointDetails => {
|
|
3534
|
-
return {
|
|
3535
|
-
endpoint:
|
|
3536
|
-
output.endpoint !== undefined && output.endpoint !== null
|
|
3537
|
-
? deserializeAws_restJson1DataflowEndpoint(output.endpoint, context)
|
|
3538
|
-
: undefined,
|
|
3539
|
-
securityDetails:
|
|
3540
|
-
output.securityDetails !== undefined && output.securityDetails !== null
|
|
3541
|
-
? deserializeAws_restJson1SecurityDetails(output.securityDetails, context)
|
|
3542
|
-
: undefined,
|
|
3543
|
-
} as any;
|
|
3544
|
-
};
|
|
3545
|
-
|
|
3546
|
-
const deserializeAws_restJson1EndpointDetailsList = (output: any, context: __SerdeContext): EndpointDetails[] => {
|
|
3547
|
-
return (output || [])
|
|
3548
|
-
.filter((e: any) => e != null)
|
|
3549
|
-
.map((entry: any) => {
|
|
3550
|
-
if (entry === null) {
|
|
3551
|
-
return null as any;
|
|
3552
|
-
}
|
|
3553
|
-
return deserializeAws_restJson1EndpointDetails(entry, context);
|
|
3554
|
-
});
|
|
3555
|
-
};
|
|
3556
|
-
|
|
3557
|
-
const deserializeAws_restJson1Frequency = (output: any, context: __SerdeContext): Frequency => {
|
|
3558
|
-
return {
|
|
3559
|
-
units: __expectString(output.units),
|
|
3560
|
-
value: __limitedParseDouble(output.value),
|
|
3561
|
-
} as any;
|
|
3562
|
-
};
|
|
3563
|
-
|
|
3564
|
-
const deserializeAws_restJson1FrequencyBandwidth = (output: any, context: __SerdeContext): FrequencyBandwidth => {
|
|
3565
|
-
return {
|
|
3566
|
-
units: __expectString(output.units),
|
|
3567
|
-
value: __limitedParseDouble(output.value),
|
|
3568
|
-
} as any;
|
|
3569
|
-
};
|
|
3570
|
-
|
|
3571
|
-
const deserializeAws_restJson1GroundStationData = (output: any, context: __SerdeContext): GroundStationData => {
|
|
3572
|
-
return {
|
|
3573
|
-
groundStationId: __expectString(output.groundStationId),
|
|
3574
|
-
groundStationName: __expectString(output.groundStationName),
|
|
3575
|
-
region: __expectString(output.region),
|
|
3576
|
-
} as any;
|
|
3577
|
-
};
|
|
3578
|
-
|
|
3579
|
-
const deserializeAws_restJson1GroundStationIdList = (output: any, context: __SerdeContext): string[] => {
|
|
3580
|
-
return (output || [])
|
|
3581
|
-
.filter((e: any) => e != null)
|
|
3582
|
-
.map((entry: any) => {
|
|
3583
|
-
if (entry === null) {
|
|
3584
|
-
return null as any;
|
|
3585
|
-
}
|
|
3586
|
-
return __expectString(entry) as any;
|
|
3587
|
-
});
|
|
3588
|
-
};
|
|
3589
|
-
|
|
3590
|
-
const deserializeAws_restJson1GroundStationList = (output: any, context: __SerdeContext): GroundStationData[] => {
|
|
3591
|
-
return (output || [])
|
|
3592
|
-
.filter((e: any) => e != null)
|
|
3593
|
-
.map((entry: any) => {
|
|
3594
|
-
if (entry === null) {
|
|
3595
|
-
return null as any;
|
|
3596
|
-
}
|
|
3597
|
-
return deserializeAws_restJson1GroundStationData(entry, context);
|
|
3598
|
-
});
|
|
3599
|
-
};
|
|
3600
|
-
|
|
3601
|
-
const deserializeAws_restJson1MissionProfileList = (output: any, context: __SerdeContext): MissionProfileListItem[] => {
|
|
3602
|
-
return (output || [])
|
|
3603
|
-
.filter((e: any) => e != null)
|
|
3604
|
-
.map((entry: any) => {
|
|
3605
|
-
if (entry === null) {
|
|
3606
|
-
return null as any;
|
|
3607
|
-
}
|
|
3608
|
-
return deserializeAws_restJson1MissionProfileListItem(entry, context);
|
|
3609
|
-
});
|
|
3610
|
-
};
|
|
3611
|
-
|
|
3612
|
-
const deserializeAws_restJson1MissionProfileListItem = (
|
|
3613
|
-
output: any,
|
|
3614
|
-
context: __SerdeContext
|
|
3615
|
-
): MissionProfileListItem => {
|
|
3616
|
-
return {
|
|
3617
|
-
missionProfileArn: __expectString(output.missionProfileArn),
|
|
3618
|
-
missionProfileId: __expectString(output.missionProfileId),
|
|
3619
|
-
name: __expectString(output.name),
|
|
3620
|
-
region: __expectString(output.region),
|
|
3621
|
-
} as any;
|
|
3622
|
-
};
|
|
3623
|
-
|
|
3624
|
-
const deserializeAws_restJson1S3RecordingConfig = (output: any, context: __SerdeContext): S3RecordingConfig => {
|
|
3625
|
-
return {
|
|
3626
|
-
bucketArn: __expectString(output.bucketArn),
|
|
3627
|
-
prefix: __expectString(output.prefix),
|
|
3628
|
-
roleArn: __expectString(output.roleArn),
|
|
3629
|
-
} as any;
|
|
3630
|
-
};
|
|
3631
|
-
|
|
3632
|
-
const deserializeAws_restJson1S3RecordingDetails = (output: any, context: __SerdeContext): S3RecordingDetails => {
|
|
3633
|
-
return {
|
|
3634
|
-
bucketArn: __expectString(output.bucketArn),
|
|
3635
|
-
keyTemplate: __expectString(output.keyTemplate),
|
|
3636
|
-
} as any;
|
|
3637
|
-
};
|
|
3638
|
-
|
|
3639
|
-
const deserializeAws_restJson1SatelliteList = (output: any, context: __SerdeContext): SatelliteListItem[] => {
|
|
3640
|
-
return (output || [])
|
|
3641
|
-
.filter((e: any) => e != null)
|
|
3642
|
-
.map((entry: any) => {
|
|
3643
|
-
if (entry === null) {
|
|
3644
|
-
return null as any;
|
|
3645
|
-
}
|
|
3646
|
-
return deserializeAws_restJson1SatelliteListItem(entry, context);
|
|
3647
|
-
});
|
|
3648
|
-
};
|
|
3649
|
-
|
|
3650
|
-
const deserializeAws_restJson1SatelliteListItem = (output: any, context: __SerdeContext): SatelliteListItem => {
|
|
3651
|
-
return {
|
|
3652
|
-
groundStations:
|
|
3653
|
-
output.groundStations !== undefined && output.groundStations !== null
|
|
3654
|
-
? deserializeAws_restJson1GroundStationIdList(output.groundStations, context)
|
|
3655
|
-
: undefined,
|
|
3656
|
-
noradSatelliteID: __expectInt32(output.noradSatelliteID),
|
|
3657
|
-
satelliteArn: __expectString(output.satelliteArn),
|
|
3658
|
-
satelliteId: __expectString(output.satelliteId),
|
|
3659
|
-
} as any;
|
|
3660
|
-
};
|
|
3661
|
-
|
|
3662
|
-
const deserializeAws_restJson1SecurityDetails = (output: any, context: __SerdeContext): SecurityDetails => {
|
|
3663
|
-
return {
|
|
3664
|
-
roleArn: __expectString(output.roleArn),
|
|
3665
|
-
securityGroupIds:
|
|
3666
|
-
output.securityGroupIds !== undefined && output.securityGroupIds !== null
|
|
3667
|
-
? deserializeAws_restJson1SecurityGroupIdList(output.securityGroupIds, context)
|
|
3668
|
-
: undefined,
|
|
3669
|
-
subnetIds:
|
|
3670
|
-
output.subnetIds !== undefined && output.subnetIds !== null
|
|
3671
|
-
? deserializeAws_restJson1SubnetList(output.subnetIds, context)
|
|
3672
|
-
: undefined,
|
|
3673
|
-
} as any;
|
|
3674
|
-
};
|
|
3675
|
-
|
|
3676
|
-
const deserializeAws_restJson1SecurityGroupIdList = (output: any, context: __SerdeContext): string[] => {
|
|
3677
|
-
return (output || [])
|
|
3678
|
-
.filter((e: any) => e != null)
|
|
3679
|
-
.map((entry: any) => {
|
|
3680
|
-
if (entry === null) {
|
|
3681
|
-
return null as any;
|
|
3682
|
-
}
|
|
3683
|
-
return __expectString(entry) as any;
|
|
3684
|
-
});
|
|
3685
|
-
};
|
|
3686
|
-
|
|
3687
|
-
const deserializeAws_restJson1SocketAddress = (output: any, context: __SerdeContext): SocketAddress => {
|
|
3688
|
-
return {
|
|
3689
|
-
name: __expectString(output.name),
|
|
3690
|
-
port: __expectInt32(output.port),
|
|
3691
|
-
} as any;
|
|
3692
|
-
};
|
|
3693
|
-
|
|
3694
|
-
const deserializeAws_restJson1Source = (output: any, context: __SerdeContext): Source => {
|
|
3695
|
-
return {
|
|
3696
|
-
configDetails:
|
|
3697
|
-
output.configDetails !== undefined && output.configDetails !== null
|
|
3698
|
-
? deserializeAws_restJson1ConfigDetails(__expectUnion(output.configDetails), context)
|
|
3699
|
-
: undefined,
|
|
3700
|
-
configId: __expectString(output.configId),
|
|
3701
|
-
configType: __expectString(output.configType),
|
|
3702
|
-
dataflowSourceRegion: __expectString(output.dataflowSourceRegion),
|
|
3703
|
-
} as any;
|
|
3704
|
-
};
|
|
3705
|
-
|
|
3706
|
-
const deserializeAws_restJson1SpectrumConfig = (output: any, context: __SerdeContext): SpectrumConfig => {
|
|
3707
|
-
return {
|
|
3708
|
-
bandwidth:
|
|
3709
|
-
output.bandwidth !== undefined && output.bandwidth !== null
|
|
3710
|
-
? deserializeAws_restJson1FrequencyBandwidth(output.bandwidth, context)
|
|
3711
|
-
: undefined,
|
|
3712
|
-
centerFrequency:
|
|
3713
|
-
output.centerFrequency !== undefined && output.centerFrequency !== null
|
|
3714
|
-
? deserializeAws_restJson1Frequency(output.centerFrequency, context)
|
|
3715
|
-
: undefined,
|
|
3716
|
-
polarization: __expectString(output.polarization),
|
|
3717
|
-
} as any;
|
|
3718
|
-
};
|
|
3719
|
-
|
|
3720
|
-
const deserializeAws_restJson1SubnetList = (output: any, context: __SerdeContext): string[] => {
|
|
3721
|
-
return (output || [])
|
|
3722
|
-
.filter((e: any) => e != null)
|
|
3723
|
-
.map((entry: any) => {
|
|
3724
|
-
if (entry === null) {
|
|
3725
|
-
return null as any;
|
|
3726
|
-
}
|
|
3727
|
-
return __expectString(entry) as any;
|
|
3728
|
-
});
|
|
3729
|
-
};
|
|
3730
|
-
|
|
3731
|
-
const deserializeAws_restJson1TagsMap = (output: any, context: __SerdeContext): { [key: string]: string } => {
|
|
3732
|
-
return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
|
|
3733
|
-
if (value === null) {
|
|
3734
|
-
return acc;
|
|
3735
|
-
}
|
|
3736
|
-
return {
|
|
3737
|
-
...acc,
|
|
3738
|
-
[key]: __expectString(value) as any,
|
|
3739
|
-
};
|
|
3740
|
-
}, {});
|
|
3741
|
-
};
|
|
3742
|
-
|
|
3743
|
-
const deserializeAws_restJson1TrackingConfig = (output: any, context: __SerdeContext): TrackingConfig => {
|
|
3744
|
-
return {
|
|
3745
|
-
autotrack: __expectString(output.autotrack),
|
|
3746
|
-
} as any;
|
|
3747
|
-
};
|
|
3748
|
-
|
|
3749
|
-
const deserializeAws_restJson1UplinkEchoConfig = (output: any, context: __SerdeContext): UplinkEchoConfig => {
|
|
3750
|
-
return {
|
|
3751
|
-
antennaUplinkConfigArn: __expectString(output.antennaUplinkConfigArn),
|
|
3752
|
-
enabled: __expectBoolean(output.enabled),
|
|
3753
|
-
} as any;
|
|
3754
|
-
};
|
|
3755
|
-
|
|
3756
|
-
const deserializeAws_restJson1UplinkSpectrumConfig = (output: any, context: __SerdeContext): UplinkSpectrumConfig => {
|
|
3757
|
-
return {
|
|
3758
|
-
centerFrequency:
|
|
3759
|
-
output.centerFrequency !== undefined && output.centerFrequency !== null
|
|
3760
|
-
? deserializeAws_restJson1Frequency(output.centerFrequency, context)
|
|
3761
|
-
: undefined,
|
|
3762
|
-
polarization: __expectString(output.polarization),
|
|
3763
|
-
} as any;
|
|
3764
|
-
};
|
|
3765
|
-
|
|
3766
|
-
const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
|
|
3767
|
-
httpStatusCode: output.statusCode,
|
|
3768
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
3769
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3770
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3771
|
-
});
|
|
3772
|
-
|
|
3773
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3774
|
-
const collectBody = (streamBody: any = new Uint8Array(), context: __SerdeContext): Promise<Uint8Array> => {
|
|
3775
|
-
if (streamBody instanceof Uint8Array) {
|
|
3776
|
-
return Promise.resolve(streamBody);
|
|
3777
|
-
}
|
|
3778
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3779
|
-
};
|
|
3780
|
-
|
|
3781
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3782
|
-
const collectBodyString = (streamBody: any, context: __SerdeContext): Promise<string> =>
|
|
3783
|
-
collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3784
|
-
|
|
3785
|
-
const isSerializableHeaderValue = (value: any): boolean =>
|
|
3786
|
-
value !== undefined &&
|
|
3787
|
-
value !== null &&
|
|
3788
|
-
value !== "" &&
|
|
3789
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
3790
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
3791
|
-
|
|
3792
|
-
const parseBody = (streamBody: any, context: __SerdeContext): any =>
|
|
3793
|
-
collectBodyString(streamBody, context).then((encoded) => {
|
|
3794
|
-
if (encoded.length) {
|
|
3795
|
-
return JSON.parse(encoded);
|
|
3796
|
-
}
|
|
3797
|
-
return {};
|
|
3798
|
-
});
|
|
3799
|
-
|
|
3800
|
-
/**
|
|
3801
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3802
|
-
*/
|
|
3803
|
-
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string => {
|
|
3804
|
-
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3805
|
-
|
|
3806
|
-
const sanitizeErrorCode = (rawValue: string): string => {
|
|
3807
|
-
let cleanValue = rawValue;
|
|
3808
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3809
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3810
|
-
}
|
|
3811
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3812
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3813
|
-
}
|
|
3814
|
-
return cleanValue;
|
|
3815
|
-
};
|
|
3816
|
-
|
|
3817
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3818
|
-
if (headerKey !== undefined) {
|
|
3819
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3820
|
-
}
|
|
3821
|
-
|
|
3822
|
-
if (data.code !== undefined) {
|
|
3823
|
-
return sanitizeErrorCode(data.code);
|
|
3824
|
-
}
|
|
3825
|
-
|
|
3826
|
-
if (data["__type"] !== undefined) {
|
|
3827
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3828
|
-
}
|
|
3829
|
-
|
|
3830
|
-
return "";
|
|
3831
|
-
};
|