@aws-sdk/client-mediatailor 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 +45 -0
- package/README.md +7 -7
- package/{dist/cjs → dist-cjs}/MediaTailor.js +16 -2
- package/{dist/cjs → dist-cjs}/MediaTailorClient.js +8 -9
- package/dist-cjs/commands/ConfigureLogsForPlaybackConfigurationCommand.js +60 -0
- package/{dist/cjs → dist-cjs}/commands/CreateChannelCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateProgramCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateSourceLocationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateVodSourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteChannelCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteChannelPolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeletePlaybackConfigurationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteProgramCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteSourceLocationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteVodSourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeChannelCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeProgramCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeSourceLocationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeVodSourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetChannelPolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetChannelScheduleCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetPlaybackConfigurationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListAlertsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListChannelsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListPlaybackConfigurationsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListSourceLocationsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListVodSourcesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PutChannelPolicyCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PutPlaybackConfigurationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/StartChannelCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/StopChannelCommand.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/UpdateChannelCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateSourceLocationCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateVodSourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +1 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +30 -4
- package/{dist/cjs → dist-cjs}/pagination/GetChannelSchedulePaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListAlertsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListChannelsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListPlaybackConfigurationsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListSourceLocationsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/pagination/ListVodSourcesPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +91 -8
- 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}/MediaTailor.js +17 -6
- package/{dist/es → dist-es}/MediaTailorClient.js +2 -11
- package/dist-es/commands/ConfigureLogsForPlaybackConfigurationCommand.js +39 -0
- package/{dist/es → dist-es}/commands/CreateChannelCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateProgramCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateSourceLocationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateVodSourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteChannelCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteChannelPolicyCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeletePlaybackConfigurationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteProgramCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteSourceLocationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteVodSourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeChannelCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeProgramCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeSourceLocationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeVodSourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetChannelPolicyCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetChannelScheduleCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetPlaybackConfigurationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListAlertsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListChannelsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListPlaybackConfigurationsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListSourceLocationsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListVodSourcesCommand.js +4 -30
- package/{dist/es → dist-es}/commands/PutChannelPolicyCommand.js +4 -30
- package/{dist/es → dist-es}/commands/PutPlaybackConfigurationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/StartChannelCommand.js +4 -30
- package/{dist/es → dist-es}/commands/StopChannelCommand.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/UpdateChannelCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UpdateSourceLocationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UpdateVodSourceCommand.js +4 -30
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/es → dist-es}/index.js +1 -1
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +12 -280
- package/{dist/es → dist-es}/pagination/GetChannelSchedulePaginator.js +17 -30
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListAlertsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListChannelsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListPlaybackConfigurationsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListSourceLocationsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListVodSourcesPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +336 -246
- 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}/MediaTailor.d.ts +9 -2
- package/{dist/types/ts3.4 → dist-types}/MediaTailorClient.d.ts +165 -164
- package/dist-types/commands/ConfigureLogsForPlaybackConfigurationCommand.d.ts +35 -0
- package/{dist/types → dist-types}/commands/CreateChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateProgramCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateSourceLocationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateVodSourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteChannelPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeletePlaybackConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteProgramCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteSourceLocationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteVodSourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeProgramCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeSourceLocationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeVodSourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetChannelPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetChannelScheduleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetPlaybackConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListAlertsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListChannelsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListPlaybackConfigurationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListSourceLocationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListVodSourcesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutChannelPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutPlaybackConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StopChannelCommand.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/UpdateChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateSourceLocationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateVodSourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{dist/types/ts3.4 → dist-types}/index.d.ts +43 -42
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +63 -1
- package/{dist/types → dist-types}/pagination/GetChannelSchedulePaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListAlertsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListChannelsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListPlaybackConfigurationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListSourceLocationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListVodSourcesPaginator.d.ts +1 -1
- package/{dist/types/ts3.4 → dist-types}/protocols/Aws_restJson1.d.ts +101 -98
- 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/MediaTailor.d.ts +9 -2
- package/{dist/types → dist-types/ts3.4}/MediaTailorClient.d.ts +165 -164
- package/dist-types/ts3.4/commands/ConfigureLogsForPlaybackConfigurationCommand.d.ts +35 -0
- package/{dist/types → dist-types}/ts3.4/commands/CreateChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateProgramCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateSourceLocationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateVodSourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteChannelPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeletePlaybackConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteProgramCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteSourceLocationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteVodSourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeProgramCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeSourceLocationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeVodSourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetChannelPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetChannelScheduleCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetPlaybackConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListAlertsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListChannelsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListPlaybackConfigurationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListSourceLocationsCommand.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/ListVodSourcesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutChannelPolicyCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/PutPlaybackConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StartChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StopChannelCommand.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/UpdateChannelCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateSourceLocationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateVodSourceCommand.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 +43 -42
- 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 +63 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetChannelSchedulePaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListAlertsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListChannelsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListPlaybackConfigurationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListSourceLocationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListVodSourcesPaginator.d.ts +1 -1
- package/{dist/types → dist-types/ts3.4}/protocols/Aws_restJson1.d.ts +101 -98
- 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/MediaTailor.ts +0 -1155
- package/MediaTailorClient.ts +0 -364
- package/commands/CreateChannelCommand.ts +0 -94
- package/commands/CreateProgramCommand.ts +0 -94
- package/commands/CreateSourceLocationCommand.ts +0 -94
- package/commands/CreateVodSourceCommand.ts +0 -94
- package/commands/DeleteChannelCommand.ts +0 -94
- package/commands/DeleteChannelPolicyCommand.ts +0 -94
- package/commands/DeletePlaybackConfigurationCommand.ts +0 -99
- package/commands/DeleteProgramCommand.ts +0 -94
- package/commands/DeleteSourceLocationCommand.ts +0 -94
- package/commands/DeleteVodSourceCommand.ts +0 -94
- package/commands/DescribeChannelCommand.ts +0 -94
- package/commands/DescribeProgramCommand.ts +0 -94
- package/commands/DescribeSourceLocationCommand.ts +0 -94
- package/commands/DescribeVodSourceCommand.ts +0 -94
- package/commands/GetChannelPolicyCommand.ts +0 -94
- package/commands/GetChannelScheduleCommand.ts +0 -94
- package/commands/GetPlaybackConfigurationCommand.ts +0 -94
- package/commands/ListAlertsCommand.ts +0 -94
- package/commands/ListChannelsCommand.ts +0 -94
- package/commands/ListPlaybackConfigurationsCommand.ts +0 -97
- package/commands/ListSourceLocationsCommand.ts +0 -94
- package/commands/ListTagsForResourceCommand.ts +0 -94
- package/commands/ListVodSourcesCommand.ts +0 -94
- package/commands/PutChannelPolicyCommand.ts +0 -94
- package/commands/PutPlaybackConfigurationCommand.ts +0 -94
- package/commands/StartChannelCommand.ts +0 -94
- package/commands/StopChannelCommand.ts +0 -94
- package/commands/TagResourceCommand.ts +0 -94
- package/commands/UntagResourceCommand.ts +0 -94
- package/commands/UpdateChannelCommand.ts +0 -94
- package/commands/UpdateSourceLocationCommand.ts +0 -94
- package/commands/UpdateVodSourceCommand.ts +0 -94
- package/dist/cjs/MediaTailor.js.map +0 -1
- package/dist/cjs/MediaTailorClient.js.map +0 -1
- package/dist/cjs/commands/CreateChannelCommand.js.map +0 -1
- package/dist/cjs/commands/CreateProgramCommand.js.map +0 -1
- package/dist/cjs/commands/CreateSourceLocationCommand.js.map +0 -1
- package/dist/cjs/commands/CreateVodSourceCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteChannelCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteChannelPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/DeletePlaybackConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteProgramCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteSourceLocationCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteVodSourceCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeChannelCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeProgramCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeSourceLocationCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeVodSourceCommand.js.map +0 -1
- package/dist/cjs/commands/GetChannelPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/GetChannelScheduleCommand.js.map +0 -1
- package/dist/cjs/commands/GetPlaybackConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/ListAlertsCommand.js.map +0 -1
- package/dist/cjs/commands/ListChannelsCommand.js.map +0 -1
- package/dist/cjs/commands/ListPlaybackConfigurationsCommand.js.map +0 -1
- package/dist/cjs/commands/ListSourceLocationsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/ListVodSourcesCommand.js.map +0 -1
- package/dist/cjs/commands/PutChannelPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/PutPlaybackConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/StartChannelCommand.js.map +0 -1
- package/dist/cjs/commands/StopChannelCommand.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/UpdateChannelCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateSourceLocationCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateVodSourceCommand.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/GetChannelSchedulePaginator.js.map +0 -1
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListAlertsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListChannelsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListPlaybackConfigurationsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListSourceLocationsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListVodSourcesPaginator.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/MediaTailor.js.map +0 -1
- package/dist/es/MediaTailorClient.js.map +0 -1
- package/dist/es/commands/CreateChannelCommand.js.map +0 -1
- package/dist/es/commands/CreateProgramCommand.js.map +0 -1
- package/dist/es/commands/CreateSourceLocationCommand.js.map +0 -1
- package/dist/es/commands/CreateVodSourceCommand.js.map +0 -1
- package/dist/es/commands/DeleteChannelCommand.js.map +0 -1
- package/dist/es/commands/DeleteChannelPolicyCommand.js.map +0 -1
- package/dist/es/commands/DeletePlaybackConfigurationCommand.js.map +0 -1
- package/dist/es/commands/DeleteProgramCommand.js.map +0 -1
- package/dist/es/commands/DeleteSourceLocationCommand.js.map +0 -1
- package/dist/es/commands/DeleteVodSourceCommand.js.map +0 -1
- package/dist/es/commands/DescribeChannelCommand.js.map +0 -1
- package/dist/es/commands/DescribeProgramCommand.js.map +0 -1
- package/dist/es/commands/DescribeSourceLocationCommand.js.map +0 -1
- package/dist/es/commands/DescribeVodSourceCommand.js.map +0 -1
- package/dist/es/commands/GetChannelPolicyCommand.js.map +0 -1
- package/dist/es/commands/GetChannelScheduleCommand.js.map +0 -1
- package/dist/es/commands/GetPlaybackConfigurationCommand.js.map +0 -1
- package/dist/es/commands/ListAlertsCommand.js.map +0 -1
- package/dist/es/commands/ListChannelsCommand.js.map +0 -1
- package/dist/es/commands/ListPlaybackConfigurationsCommand.js.map +0 -1
- package/dist/es/commands/ListSourceLocationsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/ListVodSourcesCommand.js.map +0 -1
- package/dist/es/commands/PutChannelPolicyCommand.js.map +0 -1
- package/dist/es/commands/PutPlaybackConfigurationCommand.js.map +0 -1
- package/dist/es/commands/StartChannelCommand.js.map +0 -1
- package/dist/es/commands/StopChannelCommand.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/UpdateChannelCommand.js.map +0 -1
- package/dist/es/commands/UpdateSourceLocationCommand.js.map +0 -1
- package/dist/es/commands/UpdateVodSourceCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +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/GetChannelSchedulePaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListAlertsPaginator.js.map +0 -1
- package/dist/es/pagination/ListChannelsPaginator.js.map +0 -1
- package/dist/es/pagination/ListPlaybackConfigurationsPaginator.js.map +0 -1
- package/dist/es/pagination/ListSourceLocationsPaginator.js.map +0 -1
- package/dist/es/pagination/ListVodSourcesPaginator.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 -57
- package/index.ts +0 -42
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -2850
- package/pagination/GetChannelSchedulePaginator.ts +0 -58
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListAlertsPaginator.ts +0 -54
- package/pagination/ListChannelsPaginator.ts +0 -58
- package/pagination/ListPlaybackConfigurationsPaginator.ts +0 -58
- package/pagination/ListSourceLocationsPaginator.ts +0 -58
- package/pagination/ListVodSourcesPaginator.ts +0 -58
- package/protocols/Aws_restJson1.ts +0 -4103
- 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,4103 +0,0 @@
|
|
|
1
|
-
import { CreateChannelCommandInput, CreateChannelCommandOutput } from "../commands/CreateChannelCommand";
|
|
2
|
-
import { CreateProgramCommandInput, CreateProgramCommandOutput } from "../commands/CreateProgramCommand";
|
|
3
|
-
import {
|
|
4
|
-
CreateSourceLocationCommandInput,
|
|
5
|
-
CreateSourceLocationCommandOutput,
|
|
6
|
-
} from "../commands/CreateSourceLocationCommand";
|
|
7
|
-
import { CreateVodSourceCommandInput, CreateVodSourceCommandOutput } from "../commands/CreateVodSourceCommand";
|
|
8
|
-
import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "../commands/DeleteChannelCommand";
|
|
9
|
-
import {
|
|
10
|
-
DeleteChannelPolicyCommandInput,
|
|
11
|
-
DeleteChannelPolicyCommandOutput,
|
|
12
|
-
} from "../commands/DeleteChannelPolicyCommand";
|
|
13
|
-
import {
|
|
14
|
-
DeletePlaybackConfigurationCommandInput,
|
|
15
|
-
DeletePlaybackConfigurationCommandOutput,
|
|
16
|
-
} from "../commands/DeletePlaybackConfigurationCommand";
|
|
17
|
-
import { DeleteProgramCommandInput, DeleteProgramCommandOutput } from "../commands/DeleteProgramCommand";
|
|
18
|
-
import {
|
|
19
|
-
DeleteSourceLocationCommandInput,
|
|
20
|
-
DeleteSourceLocationCommandOutput,
|
|
21
|
-
} from "../commands/DeleteSourceLocationCommand";
|
|
22
|
-
import { DeleteVodSourceCommandInput, DeleteVodSourceCommandOutput } from "../commands/DeleteVodSourceCommand";
|
|
23
|
-
import { DescribeChannelCommandInput, DescribeChannelCommandOutput } from "../commands/DescribeChannelCommand";
|
|
24
|
-
import { DescribeProgramCommandInput, DescribeProgramCommandOutput } from "../commands/DescribeProgramCommand";
|
|
25
|
-
import {
|
|
26
|
-
DescribeSourceLocationCommandInput,
|
|
27
|
-
DescribeSourceLocationCommandOutput,
|
|
28
|
-
} from "../commands/DescribeSourceLocationCommand";
|
|
29
|
-
import { DescribeVodSourceCommandInput, DescribeVodSourceCommandOutput } from "../commands/DescribeVodSourceCommand";
|
|
30
|
-
import { GetChannelPolicyCommandInput, GetChannelPolicyCommandOutput } from "../commands/GetChannelPolicyCommand";
|
|
31
|
-
import { GetChannelScheduleCommandInput, GetChannelScheduleCommandOutput } from "../commands/GetChannelScheduleCommand";
|
|
32
|
-
import {
|
|
33
|
-
GetPlaybackConfigurationCommandInput,
|
|
34
|
-
GetPlaybackConfigurationCommandOutput,
|
|
35
|
-
} from "../commands/GetPlaybackConfigurationCommand";
|
|
36
|
-
import { ListAlertsCommandInput, ListAlertsCommandOutput } from "../commands/ListAlertsCommand";
|
|
37
|
-
import { ListChannelsCommandInput, ListChannelsCommandOutput } from "../commands/ListChannelsCommand";
|
|
38
|
-
import {
|
|
39
|
-
ListPlaybackConfigurationsCommandInput,
|
|
40
|
-
ListPlaybackConfigurationsCommandOutput,
|
|
41
|
-
} from "../commands/ListPlaybackConfigurationsCommand";
|
|
42
|
-
import {
|
|
43
|
-
ListSourceLocationsCommandInput,
|
|
44
|
-
ListSourceLocationsCommandOutput,
|
|
45
|
-
} from "../commands/ListSourceLocationsCommand";
|
|
46
|
-
import {
|
|
47
|
-
ListTagsForResourceCommandInput,
|
|
48
|
-
ListTagsForResourceCommandOutput,
|
|
49
|
-
} from "../commands/ListTagsForResourceCommand";
|
|
50
|
-
import { ListVodSourcesCommandInput, ListVodSourcesCommandOutput } from "../commands/ListVodSourcesCommand";
|
|
51
|
-
import { PutChannelPolicyCommandInput, PutChannelPolicyCommandOutput } from "../commands/PutChannelPolicyCommand";
|
|
52
|
-
import {
|
|
53
|
-
PutPlaybackConfigurationCommandInput,
|
|
54
|
-
PutPlaybackConfigurationCommandOutput,
|
|
55
|
-
} from "../commands/PutPlaybackConfigurationCommand";
|
|
56
|
-
import { StartChannelCommandInput, StartChannelCommandOutput } from "../commands/StartChannelCommand";
|
|
57
|
-
import { StopChannelCommandInput, StopChannelCommandOutput } from "../commands/StopChannelCommand";
|
|
58
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
59
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
60
|
-
import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "../commands/UpdateChannelCommand";
|
|
61
|
-
import {
|
|
62
|
-
UpdateSourceLocationCommandInput,
|
|
63
|
-
UpdateSourceLocationCommandOutput,
|
|
64
|
-
} from "../commands/UpdateSourceLocationCommand";
|
|
65
|
-
import { UpdateVodSourceCommandInput, UpdateVodSourceCommandOutput } from "../commands/UpdateVodSourceCommand";
|
|
66
|
-
import {
|
|
67
|
-
AccessConfiguration,
|
|
68
|
-
AdBreak,
|
|
69
|
-
AdMarkerPassthrough,
|
|
70
|
-
Alert,
|
|
71
|
-
AvailSuppression,
|
|
72
|
-
BadRequestException,
|
|
73
|
-
Bumper,
|
|
74
|
-
CdnConfiguration,
|
|
75
|
-
Channel,
|
|
76
|
-
DashConfiguration,
|
|
77
|
-
DashConfigurationForPut,
|
|
78
|
-
DashPlaylistSettings,
|
|
79
|
-
DefaultSegmentDeliveryConfiguration,
|
|
80
|
-
HlsConfiguration,
|
|
81
|
-
HlsPlaylistSettings,
|
|
82
|
-
HttpConfiguration,
|
|
83
|
-
HttpPackageConfiguration,
|
|
84
|
-
LivePreRollConfiguration,
|
|
85
|
-
ManifestProcessingRules,
|
|
86
|
-
PlaybackConfiguration,
|
|
87
|
-
RequestOutputItem,
|
|
88
|
-
ResponseOutputItem,
|
|
89
|
-
ScheduleAdBreak,
|
|
90
|
-
ScheduleConfiguration,
|
|
91
|
-
ScheduleEntry,
|
|
92
|
-
SecretsManagerAccessTokenConfiguration,
|
|
93
|
-
SlateSource,
|
|
94
|
-
SourceLocation,
|
|
95
|
-
SpliceInsertMessage,
|
|
96
|
-
Transition,
|
|
97
|
-
VodSource,
|
|
98
|
-
} from "../models/models_0";
|
|
99
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
100
|
-
import {
|
|
101
|
-
expectBoolean as __expectBoolean,
|
|
102
|
-
expectInt32 as __expectInt32,
|
|
103
|
-
expectLong as __expectLong,
|
|
104
|
-
expectNonNull as __expectNonNull,
|
|
105
|
-
expectNumber as __expectNumber,
|
|
106
|
-
expectObject as __expectObject,
|
|
107
|
-
expectString as __expectString,
|
|
108
|
-
extendedEncodeURIComponent as __extendedEncodeURIComponent,
|
|
109
|
-
parseEpochTimestamp as __parseEpochTimestamp,
|
|
110
|
-
} from "@aws-sdk/smithy-client";
|
|
111
|
-
import {
|
|
112
|
-
Endpoint as __Endpoint,
|
|
113
|
-
MetadataBearer as __MetadataBearer,
|
|
114
|
-
ResponseMetadata as __ResponseMetadata,
|
|
115
|
-
SerdeContext as __SerdeContext,
|
|
116
|
-
SmithyException as __SmithyException,
|
|
117
|
-
} from "@aws-sdk/types";
|
|
118
|
-
|
|
119
|
-
export const serializeAws_restJson1CreateChannelCommand = async (
|
|
120
|
-
input: CreateChannelCommandInput,
|
|
121
|
-
context: __SerdeContext
|
|
122
|
-
): Promise<__HttpRequest> => {
|
|
123
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
124
|
-
const headers: any = {
|
|
125
|
-
"content-type": "application/json",
|
|
126
|
-
};
|
|
127
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
|
|
128
|
-
if (input.ChannelName !== undefined) {
|
|
129
|
-
const labelValue: string = input.ChannelName;
|
|
130
|
-
if (labelValue.length <= 0) {
|
|
131
|
-
throw new Error("Empty value provided for input HTTP label: ChannelName.");
|
|
132
|
-
}
|
|
133
|
-
resolvedPath = resolvedPath.replace("{ChannelName}", __extendedEncodeURIComponent(labelValue));
|
|
134
|
-
} else {
|
|
135
|
-
throw new Error("No value provided for input HTTP label: ChannelName.");
|
|
136
|
-
}
|
|
137
|
-
let body: any;
|
|
138
|
-
body = JSON.stringify({
|
|
139
|
-
...(input.FillerSlate !== undefined &&
|
|
140
|
-
input.FillerSlate !== null && { FillerSlate: serializeAws_restJson1SlateSource(input.FillerSlate, context) }),
|
|
141
|
-
...(input.Outputs !== undefined &&
|
|
142
|
-
input.Outputs !== null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) }),
|
|
143
|
-
...(input.PlaybackMode !== undefined && input.PlaybackMode !== null && { PlaybackMode: input.PlaybackMode }),
|
|
144
|
-
...(input.Tags !== undefined &&
|
|
145
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
146
|
-
});
|
|
147
|
-
return new __HttpRequest({
|
|
148
|
-
protocol,
|
|
149
|
-
hostname,
|
|
150
|
-
port,
|
|
151
|
-
method: "POST",
|
|
152
|
-
headers,
|
|
153
|
-
path: resolvedPath,
|
|
154
|
-
body,
|
|
155
|
-
});
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
export const serializeAws_restJson1CreateProgramCommand = async (
|
|
159
|
-
input: CreateProgramCommandInput,
|
|
160
|
-
context: __SerdeContext
|
|
161
|
-
): Promise<__HttpRequest> => {
|
|
162
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
163
|
-
const headers: any = {
|
|
164
|
-
"content-type": "application/json",
|
|
165
|
-
};
|
|
166
|
-
let resolvedPath =
|
|
167
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
168
|
-
"/channel/{ChannelName}/program/{ProgramName}";
|
|
169
|
-
if (input.ChannelName !== undefined) {
|
|
170
|
-
const labelValue: string = input.ChannelName;
|
|
171
|
-
if (labelValue.length <= 0) {
|
|
172
|
-
throw new Error("Empty value provided for input HTTP label: ChannelName.");
|
|
173
|
-
}
|
|
174
|
-
resolvedPath = resolvedPath.replace("{ChannelName}", __extendedEncodeURIComponent(labelValue));
|
|
175
|
-
} else {
|
|
176
|
-
throw new Error("No value provided for input HTTP label: ChannelName.");
|
|
177
|
-
}
|
|
178
|
-
if (input.ProgramName !== undefined) {
|
|
179
|
-
const labelValue: string = input.ProgramName;
|
|
180
|
-
if (labelValue.length <= 0) {
|
|
181
|
-
throw new Error("Empty value provided for input HTTP label: ProgramName.");
|
|
182
|
-
}
|
|
183
|
-
resolvedPath = resolvedPath.replace("{ProgramName}", __extendedEncodeURIComponent(labelValue));
|
|
184
|
-
} else {
|
|
185
|
-
throw new Error("No value provided for input HTTP label: ProgramName.");
|
|
186
|
-
}
|
|
187
|
-
let body: any;
|
|
188
|
-
body = JSON.stringify({
|
|
189
|
-
...(input.AdBreaks !== undefined &&
|
|
190
|
-
input.AdBreaks !== null && { AdBreaks: serializeAws_restJson1__listOfAdBreak(input.AdBreaks, context) }),
|
|
191
|
-
...(input.ScheduleConfiguration !== undefined &&
|
|
192
|
-
input.ScheduleConfiguration !== null && {
|
|
193
|
-
ScheduleConfiguration: serializeAws_restJson1ScheduleConfiguration(input.ScheduleConfiguration, context),
|
|
194
|
-
}),
|
|
195
|
-
...(input.SourceLocationName !== undefined &&
|
|
196
|
-
input.SourceLocationName !== null && { SourceLocationName: input.SourceLocationName }),
|
|
197
|
-
...(input.VodSourceName !== undefined && input.VodSourceName !== null && { VodSourceName: input.VodSourceName }),
|
|
198
|
-
});
|
|
199
|
-
return new __HttpRequest({
|
|
200
|
-
protocol,
|
|
201
|
-
hostname,
|
|
202
|
-
port,
|
|
203
|
-
method: "POST",
|
|
204
|
-
headers,
|
|
205
|
-
path: resolvedPath,
|
|
206
|
-
body,
|
|
207
|
-
});
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
export const serializeAws_restJson1CreateSourceLocationCommand = async (
|
|
211
|
-
input: CreateSourceLocationCommandInput,
|
|
212
|
-
context: __SerdeContext
|
|
213
|
-
): Promise<__HttpRequest> => {
|
|
214
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
215
|
-
const headers: any = {
|
|
216
|
-
"content-type": "application/json",
|
|
217
|
-
};
|
|
218
|
-
let resolvedPath =
|
|
219
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
|
|
220
|
-
if (input.SourceLocationName !== undefined) {
|
|
221
|
-
const labelValue: string = input.SourceLocationName;
|
|
222
|
-
if (labelValue.length <= 0) {
|
|
223
|
-
throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
|
|
224
|
-
}
|
|
225
|
-
resolvedPath = resolvedPath.replace("{SourceLocationName}", __extendedEncodeURIComponent(labelValue));
|
|
226
|
-
} else {
|
|
227
|
-
throw new Error("No value provided for input HTTP label: SourceLocationName.");
|
|
228
|
-
}
|
|
229
|
-
let body: any;
|
|
230
|
-
body = JSON.stringify({
|
|
231
|
-
...(input.AccessConfiguration !== undefined &&
|
|
232
|
-
input.AccessConfiguration !== null && {
|
|
233
|
-
AccessConfiguration: serializeAws_restJson1AccessConfiguration(input.AccessConfiguration, context),
|
|
234
|
-
}),
|
|
235
|
-
...(input.DefaultSegmentDeliveryConfiguration !== undefined &&
|
|
236
|
-
input.DefaultSegmentDeliveryConfiguration !== null && {
|
|
237
|
-
DefaultSegmentDeliveryConfiguration: serializeAws_restJson1DefaultSegmentDeliveryConfiguration(
|
|
238
|
-
input.DefaultSegmentDeliveryConfiguration,
|
|
239
|
-
context
|
|
240
|
-
),
|
|
241
|
-
}),
|
|
242
|
-
...(input.HttpConfiguration !== undefined &&
|
|
243
|
-
input.HttpConfiguration !== null && {
|
|
244
|
-
HttpConfiguration: serializeAws_restJson1HttpConfiguration(input.HttpConfiguration, context),
|
|
245
|
-
}),
|
|
246
|
-
...(input.Tags !== undefined &&
|
|
247
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
248
|
-
});
|
|
249
|
-
return new __HttpRequest({
|
|
250
|
-
protocol,
|
|
251
|
-
hostname,
|
|
252
|
-
port,
|
|
253
|
-
method: "POST",
|
|
254
|
-
headers,
|
|
255
|
-
path: resolvedPath,
|
|
256
|
-
body,
|
|
257
|
-
});
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
export const serializeAws_restJson1CreateVodSourceCommand = async (
|
|
261
|
-
input: CreateVodSourceCommandInput,
|
|
262
|
-
context: __SerdeContext
|
|
263
|
-
): Promise<__HttpRequest> => {
|
|
264
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
265
|
-
const headers: any = {
|
|
266
|
-
"content-type": "application/json",
|
|
267
|
-
};
|
|
268
|
-
let resolvedPath =
|
|
269
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
270
|
-
"/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}";
|
|
271
|
-
if (input.SourceLocationName !== undefined) {
|
|
272
|
-
const labelValue: string = input.SourceLocationName;
|
|
273
|
-
if (labelValue.length <= 0) {
|
|
274
|
-
throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
|
|
275
|
-
}
|
|
276
|
-
resolvedPath = resolvedPath.replace("{SourceLocationName}", __extendedEncodeURIComponent(labelValue));
|
|
277
|
-
} else {
|
|
278
|
-
throw new Error("No value provided for input HTTP label: SourceLocationName.");
|
|
279
|
-
}
|
|
280
|
-
if (input.VodSourceName !== undefined) {
|
|
281
|
-
const labelValue: string = input.VodSourceName;
|
|
282
|
-
if (labelValue.length <= 0) {
|
|
283
|
-
throw new Error("Empty value provided for input HTTP label: VodSourceName.");
|
|
284
|
-
}
|
|
285
|
-
resolvedPath = resolvedPath.replace("{VodSourceName}", __extendedEncodeURIComponent(labelValue));
|
|
286
|
-
} else {
|
|
287
|
-
throw new Error("No value provided for input HTTP label: VodSourceName.");
|
|
288
|
-
}
|
|
289
|
-
let body: any;
|
|
290
|
-
body = JSON.stringify({
|
|
291
|
-
...(input.HttpPackageConfigurations !== undefined &&
|
|
292
|
-
input.HttpPackageConfigurations !== null && {
|
|
293
|
-
HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(
|
|
294
|
-
input.HttpPackageConfigurations,
|
|
295
|
-
context
|
|
296
|
-
),
|
|
297
|
-
}),
|
|
298
|
-
...(input.Tags !== undefined &&
|
|
299
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
300
|
-
});
|
|
301
|
-
return new __HttpRequest({
|
|
302
|
-
protocol,
|
|
303
|
-
hostname,
|
|
304
|
-
port,
|
|
305
|
-
method: "POST",
|
|
306
|
-
headers,
|
|
307
|
-
path: resolvedPath,
|
|
308
|
-
body,
|
|
309
|
-
});
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
export const serializeAws_restJson1DeleteChannelCommand = async (
|
|
313
|
-
input: DeleteChannelCommandInput,
|
|
314
|
-
context: __SerdeContext
|
|
315
|
-
): Promise<__HttpRequest> => {
|
|
316
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
317
|
-
const headers: any = {};
|
|
318
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
|
|
319
|
-
if (input.ChannelName !== undefined) {
|
|
320
|
-
const labelValue: string = input.ChannelName;
|
|
321
|
-
if (labelValue.length <= 0) {
|
|
322
|
-
throw new Error("Empty value provided for input HTTP label: ChannelName.");
|
|
323
|
-
}
|
|
324
|
-
resolvedPath = resolvedPath.replace("{ChannelName}", __extendedEncodeURIComponent(labelValue));
|
|
325
|
-
} else {
|
|
326
|
-
throw new Error("No value provided for input HTTP label: ChannelName.");
|
|
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_restJson1DeleteChannelPolicyCommand = async (
|
|
341
|
-
input: DeleteChannelPolicyCommandInput,
|
|
342
|
-
context: __SerdeContext
|
|
343
|
-
): Promise<__HttpRequest> => {
|
|
344
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
345
|
-
const headers: any = {};
|
|
346
|
-
let resolvedPath =
|
|
347
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy";
|
|
348
|
-
if (input.ChannelName !== undefined) {
|
|
349
|
-
const labelValue: string = input.ChannelName;
|
|
350
|
-
if (labelValue.length <= 0) {
|
|
351
|
-
throw new Error("Empty value provided for input HTTP label: ChannelName.");
|
|
352
|
-
}
|
|
353
|
-
resolvedPath = resolvedPath.replace("{ChannelName}", __extendedEncodeURIComponent(labelValue));
|
|
354
|
-
} else {
|
|
355
|
-
throw new Error("No value provided for input HTTP label: ChannelName.");
|
|
356
|
-
}
|
|
357
|
-
let body: any;
|
|
358
|
-
return new __HttpRequest({
|
|
359
|
-
protocol,
|
|
360
|
-
hostname,
|
|
361
|
-
port,
|
|
362
|
-
method: "DELETE",
|
|
363
|
-
headers,
|
|
364
|
-
path: resolvedPath,
|
|
365
|
-
body,
|
|
366
|
-
});
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
export const serializeAws_restJson1DeletePlaybackConfigurationCommand = async (
|
|
370
|
-
input: DeletePlaybackConfigurationCommandInput,
|
|
371
|
-
context: __SerdeContext
|
|
372
|
-
): Promise<__HttpRequest> => {
|
|
373
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
374
|
-
const headers: any = {};
|
|
375
|
-
let resolvedPath =
|
|
376
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration/{Name}";
|
|
377
|
-
if (input.Name !== undefined) {
|
|
378
|
-
const labelValue: string = input.Name;
|
|
379
|
-
if (labelValue.length <= 0) {
|
|
380
|
-
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
381
|
-
}
|
|
382
|
-
resolvedPath = resolvedPath.replace("{Name}", __extendedEncodeURIComponent(labelValue));
|
|
383
|
-
} else {
|
|
384
|
-
throw new Error("No value provided for input HTTP label: Name.");
|
|
385
|
-
}
|
|
386
|
-
let body: any;
|
|
387
|
-
return new __HttpRequest({
|
|
388
|
-
protocol,
|
|
389
|
-
hostname,
|
|
390
|
-
port,
|
|
391
|
-
method: "DELETE",
|
|
392
|
-
headers,
|
|
393
|
-
path: resolvedPath,
|
|
394
|
-
body,
|
|
395
|
-
});
|
|
396
|
-
};
|
|
397
|
-
|
|
398
|
-
export const serializeAws_restJson1DeleteProgramCommand = async (
|
|
399
|
-
input: DeleteProgramCommandInput,
|
|
400
|
-
context: __SerdeContext
|
|
401
|
-
): Promise<__HttpRequest> => {
|
|
402
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
403
|
-
const headers: any = {};
|
|
404
|
-
let resolvedPath =
|
|
405
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
406
|
-
"/channel/{ChannelName}/program/{ProgramName}";
|
|
407
|
-
if (input.ChannelName !== undefined) {
|
|
408
|
-
const labelValue: string = input.ChannelName;
|
|
409
|
-
if (labelValue.length <= 0) {
|
|
410
|
-
throw new Error("Empty value provided for input HTTP label: ChannelName.");
|
|
411
|
-
}
|
|
412
|
-
resolvedPath = resolvedPath.replace("{ChannelName}", __extendedEncodeURIComponent(labelValue));
|
|
413
|
-
} else {
|
|
414
|
-
throw new Error("No value provided for input HTTP label: ChannelName.");
|
|
415
|
-
}
|
|
416
|
-
if (input.ProgramName !== undefined) {
|
|
417
|
-
const labelValue: string = input.ProgramName;
|
|
418
|
-
if (labelValue.length <= 0) {
|
|
419
|
-
throw new Error("Empty value provided for input HTTP label: ProgramName.");
|
|
420
|
-
}
|
|
421
|
-
resolvedPath = resolvedPath.replace("{ProgramName}", __extendedEncodeURIComponent(labelValue));
|
|
422
|
-
} else {
|
|
423
|
-
throw new Error("No value provided for input HTTP label: ProgramName.");
|
|
424
|
-
}
|
|
425
|
-
let body: any;
|
|
426
|
-
return new __HttpRequest({
|
|
427
|
-
protocol,
|
|
428
|
-
hostname,
|
|
429
|
-
port,
|
|
430
|
-
method: "DELETE",
|
|
431
|
-
headers,
|
|
432
|
-
path: resolvedPath,
|
|
433
|
-
body,
|
|
434
|
-
});
|
|
435
|
-
};
|
|
436
|
-
|
|
437
|
-
export const serializeAws_restJson1DeleteSourceLocationCommand = async (
|
|
438
|
-
input: DeleteSourceLocationCommandInput,
|
|
439
|
-
context: __SerdeContext
|
|
440
|
-
): Promise<__HttpRequest> => {
|
|
441
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
442
|
-
const headers: any = {};
|
|
443
|
-
let resolvedPath =
|
|
444
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
|
|
445
|
-
if (input.SourceLocationName !== undefined) {
|
|
446
|
-
const labelValue: string = input.SourceLocationName;
|
|
447
|
-
if (labelValue.length <= 0) {
|
|
448
|
-
throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
|
|
449
|
-
}
|
|
450
|
-
resolvedPath = resolvedPath.replace("{SourceLocationName}", __extendedEncodeURIComponent(labelValue));
|
|
451
|
-
} else {
|
|
452
|
-
throw new Error("No value provided for input HTTP label: SourceLocationName.");
|
|
453
|
-
}
|
|
454
|
-
let body: any;
|
|
455
|
-
return new __HttpRequest({
|
|
456
|
-
protocol,
|
|
457
|
-
hostname,
|
|
458
|
-
port,
|
|
459
|
-
method: "DELETE",
|
|
460
|
-
headers,
|
|
461
|
-
path: resolvedPath,
|
|
462
|
-
body,
|
|
463
|
-
});
|
|
464
|
-
};
|
|
465
|
-
|
|
466
|
-
export const serializeAws_restJson1DeleteVodSourceCommand = async (
|
|
467
|
-
input: DeleteVodSourceCommandInput,
|
|
468
|
-
context: __SerdeContext
|
|
469
|
-
): Promise<__HttpRequest> => {
|
|
470
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
471
|
-
const headers: any = {};
|
|
472
|
-
let resolvedPath =
|
|
473
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
474
|
-
"/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}";
|
|
475
|
-
if (input.SourceLocationName !== undefined) {
|
|
476
|
-
const labelValue: string = input.SourceLocationName;
|
|
477
|
-
if (labelValue.length <= 0) {
|
|
478
|
-
throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
|
|
479
|
-
}
|
|
480
|
-
resolvedPath = resolvedPath.replace("{SourceLocationName}", __extendedEncodeURIComponent(labelValue));
|
|
481
|
-
} else {
|
|
482
|
-
throw new Error("No value provided for input HTTP label: SourceLocationName.");
|
|
483
|
-
}
|
|
484
|
-
if (input.VodSourceName !== undefined) {
|
|
485
|
-
const labelValue: string = input.VodSourceName;
|
|
486
|
-
if (labelValue.length <= 0) {
|
|
487
|
-
throw new Error("Empty value provided for input HTTP label: VodSourceName.");
|
|
488
|
-
}
|
|
489
|
-
resolvedPath = resolvedPath.replace("{VodSourceName}", __extendedEncodeURIComponent(labelValue));
|
|
490
|
-
} else {
|
|
491
|
-
throw new Error("No value provided for input HTTP label: VodSourceName.");
|
|
492
|
-
}
|
|
493
|
-
let body: any;
|
|
494
|
-
return new __HttpRequest({
|
|
495
|
-
protocol,
|
|
496
|
-
hostname,
|
|
497
|
-
port,
|
|
498
|
-
method: "DELETE",
|
|
499
|
-
headers,
|
|
500
|
-
path: resolvedPath,
|
|
501
|
-
body,
|
|
502
|
-
});
|
|
503
|
-
};
|
|
504
|
-
|
|
505
|
-
export const serializeAws_restJson1DescribeChannelCommand = async (
|
|
506
|
-
input: DescribeChannelCommandInput,
|
|
507
|
-
context: __SerdeContext
|
|
508
|
-
): Promise<__HttpRequest> => {
|
|
509
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
510
|
-
const headers: any = {};
|
|
511
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
|
|
512
|
-
if (input.ChannelName !== undefined) {
|
|
513
|
-
const labelValue: string = input.ChannelName;
|
|
514
|
-
if (labelValue.length <= 0) {
|
|
515
|
-
throw new Error("Empty value provided for input HTTP label: ChannelName.");
|
|
516
|
-
}
|
|
517
|
-
resolvedPath = resolvedPath.replace("{ChannelName}", __extendedEncodeURIComponent(labelValue));
|
|
518
|
-
} else {
|
|
519
|
-
throw new Error("No value provided for input HTTP label: ChannelName.");
|
|
520
|
-
}
|
|
521
|
-
let body: any;
|
|
522
|
-
return new __HttpRequest({
|
|
523
|
-
protocol,
|
|
524
|
-
hostname,
|
|
525
|
-
port,
|
|
526
|
-
method: "GET",
|
|
527
|
-
headers,
|
|
528
|
-
path: resolvedPath,
|
|
529
|
-
body,
|
|
530
|
-
});
|
|
531
|
-
};
|
|
532
|
-
|
|
533
|
-
export const serializeAws_restJson1DescribeProgramCommand = async (
|
|
534
|
-
input: DescribeProgramCommandInput,
|
|
535
|
-
context: __SerdeContext
|
|
536
|
-
): Promise<__HttpRequest> => {
|
|
537
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
538
|
-
const headers: any = {};
|
|
539
|
-
let resolvedPath =
|
|
540
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
541
|
-
"/channel/{ChannelName}/program/{ProgramName}";
|
|
542
|
-
if (input.ChannelName !== undefined) {
|
|
543
|
-
const labelValue: string = input.ChannelName;
|
|
544
|
-
if (labelValue.length <= 0) {
|
|
545
|
-
throw new Error("Empty value provided for input HTTP label: ChannelName.");
|
|
546
|
-
}
|
|
547
|
-
resolvedPath = resolvedPath.replace("{ChannelName}", __extendedEncodeURIComponent(labelValue));
|
|
548
|
-
} else {
|
|
549
|
-
throw new Error("No value provided for input HTTP label: ChannelName.");
|
|
550
|
-
}
|
|
551
|
-
if (input.ProgramName !== undefined) {
|
|
552
|
-
const labelValue: string = input.ProgramName;
|
|
553
|
-
if (labelValue.length <= 0) {
|
|
554
|
-
throw new Error("Empty value provided for input HTTP label: ProgramName.");
|
|
555
|
-
}
|
|
556
|
-
resolvedPath = resolvedPath.replace("{ProgramName}", __extendedEncodeURIComponent(labelValue));
|
|
557
|
-
} else {
|
|
558
|
-
throw new Error("No value provided for input HTTP label: ProgramName.");
|
|
559
|
-
}
|
|
560
|
-
let body: any;
|
|
561
|
-
return new __HttpRequest({
|
|
562
|
-
protocol,
|
|
563
|
-
hostname,
|
|
564
|
-
port,
|
|
565
|
-
method: "GET",
|
|
566
|
-
headers,
|
|
567
|
-
path: resolvedPath,
|
|
568
|
-
body,
|
|
569
|
-
});
|
|
570
|
-
};
|
|
571
|
-
|
|
572
|
-
export const serializeAws_restJson1DescribeSourceLocationCommand = async (
|
|
573
|
-
input: DescribeSourceLocationCommandInput,
|
|
574
|
-
context: __SerdeContext
|
|
575
|
-
): Promise<__HttpRequest> => {
|
|
576
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
577
|
-
const headers: any = {};
|
|
578
|
-
let resolvedPath =
|
|
579
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
|
|
580
|
-
if (input.SourceLocationName !== undefined) {
|
|
581
|
-
const labelValue: string = input.SourceLocationName;
|
|
582
|
-
if (labelValue.length <= 0) {
|
|
583
|
-
throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
|
|
584
|
-
}
|
|
585
|
-
resolvedPath = resolvedPath.replace("{SourceLocationName}", __extendedEncodeURIComponent(labelValue));
|
|
586
|
-
} else {
|
|
587
|
-
throw new Error("No value provided for input HTTP label: SourceLocationName.");
|
|
588
|
-
}
|
|
589
|
-
let body: any;
|
|
590
|
-
return new __HttpRequest({
|
|
591
|
-
protocol,
|
|
592
|
-
hostname,
|
|
593
|
-
port,
|
|
594
|
-
method: "GET",
|
|
595
|
-
headers,
|
|
596
|
-
path: resolvedPath,
|
|
597
|
-
body,
|
|
598
|
-
});
|
|
599
|
-
};
|
|
600
|
-
|
|
601
|
-
export const serializeAws_restJson1DescribeVodSourceCommand = async (
|
|
602
|
-
input: DescribeVodSourceCommandInput,
|
|
603
|
-
context: __SerdeContext
|
|
604
|
-
): Promise<__HttpRequest> => {
|
|
605
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
606
|
-
const headers: any = {};
|
|
607
|
-
let resolvedPath =
|
|
608
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
609
|
-
"/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}";
|
|
610
|
-
if (input.SourceLocationName !== undefined) {
|
|
611
|
-
const labelValue: string = input.SourceLocationName;
|
|
612
|
-
if (labelValue.length <= 0) {
|
|
613
|
-
throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
|
|
614
|
-
}
|
|
615
|
-
resolvedPath = resolvedPath.replace("{SourceLocationName}", __extendedEncodeURIComponent(labelValue));
|
|
616
|
-
} else {
|
|
617
|
-
throw new Error("No value provided for input HTTP label: SourceLocationName.");
|
|
618
|
-
}
|
|
619
|
-
if (input.VodSourceName !== undefined) {
|
|
620
|
-
const labelValue: string = input.VodSourceName;
|
|
621
|
-
if (labelValue.length <= 0) {
|
|
622
|
-
throw new Error("Empty value provided for input HTTP label: VodSourceName.");
|
|
623
|
-
}
|
|
624
|
-
resolvedPath = resolvedPath.replace("{VodSourceName}", __extendedEncodeURIComponent(labelValue));
|
|
625
|
-
} else {
|
|
626
|
-
throw new Error("No value provided for input HTTP label: VodSourceName.");
|
|
627
|
-
}
|
|
628
|
-
let body: any;
|
|
629
|
-
return new __HttpRequest({
|
|
630
|
-
protocol,
|
|
631
|
-
hostname,
|
|
632
|
-
port,
|
|
633
|
-
method: "GET",
|
|
634
|
-
headers,
|
|
635
|
-
path: resolvedPath,
|
|
636
|
-
body,
|
|
637
|
-
});
|
|
638
|
-
};
|
|
639
|
-
|
|
640
|
-
export const serializeAws_restJson1GetChannelPolicyCommand = async (
|
|
641
|
-
input: GetChannelPolicyCommandInput,
|
|
642
|
-
context: __SerdeContext
|
|
643
|
-
): Promise<__HttpRequest> => {
|
|
644
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
645
|
-
const headers: any = {};
|
|
646
|
-
let resolvedPath =
|
|
647
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy";
|
|
648
|
-
if (input.ChannelName !== undefined) {
|
|
649
|
-
const labelValue: string = input.ChannelName;
|
|
650
|
-
if (labelValue.length <= 0) {
|
|
651
|
-
throw new Error("Empty value provided for input HTTP label: ChannelName.");
|
|
652
|
-
}
|
|
653
|
-
resolvedPath = resolvedPath.replace("{ChannelName}", __extendedEncodeURIComponent(labelValue));
|
|
654
|
-
} else {
|
|
655
|
-
throw new Error("No value provided for input HTTP label: ChannelName.");
|
|
656
|
-
}
|
|
657
|
-
let body: any;
|
|
658
|
-
return new __HttpRequest({
|
|
659
|
-
protocol,
|
|
660
|
-
hostname,
|
|
661
|
-
port,
|
|
662
|
-
method: "GET",
|
|
663
|
-
headers,
|
|
664
|
-
path: resolvedPath,
|
|
665
|
-
body,
|
|
666
|
-
});
|
|
667
|
-
};
|
|
668
|
-
|
|
669
|
-
export const serializeAws_restJson1GetChannelScheduleCommand = async (
|
|
670
|
-
input: GetChannelScheduleCommandInput,
|
|
671
|
-
context: __SerdeContext
|
|
672
|
-
): Promise<__HttpRequest> => {
|
|
673
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
674
|
-
const headers: any = {};
|
|
675
|
-
let resolvedPath =
|
|
676
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/schedule";
|
|
677
|
-
if (input.ChannelName !== undefined) {
|
|
678
|
-
const labelValue: string = input.ChannelName;
|
|
679
|
-
if (labelValue.length <= 0) {
|
|
680
|
-
throw new Error("Empty value provided for input HTTP label: ChannelName.");
|
|
681
|
-
}
|
|
682
|
-
resolvedPath = resolvedPath.replace("{ChannelName}", __extendedEncodeURIComponent(labelValue));
|
|
683
|
-
} else {
|
|
684
|
-
throw new Error("No value provided for input HTTP label: ChannelName.");
|
|
685
|
-
}
|
|
686
|
-
const query: any = {
|
|
687
|
-
...(input.DurationMinutes !== undefined && { durationMinutes: input.DurationMinutes }),
|
|
688
|
-
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
689
|
-
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
690
|
-
};
|
|
691
|
-
let body: any;
|
|
692
|
-
return new __HttpRequest({
|
|
693
|
-
protocol,
|
|
694
|
-
hostname,
|
|
695
|
-
port,
|
|
696
|
-
method: "GET",
|
|
697
|
-
headers,
|
|
698
|
-
path: resolvedPath,
|
|
699
|
-
query,
|
|
700
|
-
body,
|
|
701
|
-
});
|
|
702
|
-
};
|
|
703
|
-
|
|
704
|
-
export const serializeAws_restJson1GetPlaybackConfigurationCommand = async (
|
|
705
|
-
input: GetPlaybackConfigurationCommandInput,
|
|
706
|
-
context: __SerdeContext
|
|
707
|
-
): Promise<__HttpRequest> => {
|
|
708
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
709
|
-
const headers: any = {};
|
|
710
|
-
let resolvedPath =
|
|
711
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration/{Name}";
|
|
712
|
-
if (input.Name !== undefined) {
|
|
713
|
-
const labelValue: string = input.Name;
|
|
714
|
-
if (labelValue.length <= 0) {
|
|
715
|
-
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
716
|
-
}
|
|
717
|
-
resolvedPath = resolvedPath.replace("{Name}", __extendedEncodeURIComponent(labelValue));
|
|
718
|
-
} else {
|
|
719
|
-
throw new Error("No value provided for input HTTP label: Name.");
|
|
720
|
-
}
|
|
721
|
-
let body: any;
|
|
722
|
-
return new __HttpRequest({
|
|
723
|
-
protocol,
|
|
724
|
-
hostname,
|
|
725
|
-
port,
|
|
726
|
-
method: "GET",
|
|
727
|
-
headers,
|
|
728
|
-
path: resolvedPath,
|
|
729
|
-
body,
|
|
730
|
-
});
|
|
731
|
-
};
|
|
732
|
-
|
|
733
|
-
export const serializeAws_restJson1ListAlertsCommand = async (
|
|
734
|
-
input: ListAlertsCommandInput,
|
|
735
|
-
context: __SerdeContext
|
|
736
|
-
): Promise<__HttpRequest> => {
|
|
737
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
738
|
-
const headers: any = {};
|
|
739
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alerts";
|
|
740
|
-
const query: any = {
|
|
741
|
-
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
742
|
-
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
743
|
-
...(input.ResourceArn !== undefined && { resourceArn: input.ResourceArn }),
|
|
744
|
-
};
|
|
745
|
-
let body: any;
|
|
746
|
-
return new __HttpRequest({
|
|
747
|
-
protocol,
|
|
748
|
-
hostname,
|
|
749
|
-
port,
|
|
750
|
-
method: "GET",
|
|
751
|
-
headers,
|
|
752
|
-
path: resolvedPath,
|
|
753
|
-
query,
|
|
754
|
-
body,
|
|
755
|
-
});
|
|
756
|
-
};
|
|
757
|
-
|
|
758
|
-
export const serializeAws_restJson1ListChannelsCommand = async (
|
|
759
|
-
input: ListChannelsCommandInput,
|
|
760
|
-
context: __SerdeContext
|
|
761
|
-
): Promise<__HttpRequest> => {
|
|
762
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
763
|
-
const headers: any = {};
|
|
764
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
|
|
765
|
-
const query: any = {
|
|
766
|
-
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
767
|
-
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
768
|
-
};
|
|
769
|
-
let body: any;
|
|
770
|
-
return new __HttpRequest({
|
|
771
|
-
protocol,
|
|
772
|
-
hostname,
|
|
773
|
-
port,
|
|
774
|
-
method: "GET",
|
|
775
|
-
headers,
|
|
776
|
-
path: resolvedPath,
|
|
777
|
-
query,
|
|
778
|
-
body,
|
|
779
|
-
});
|
|
780
|
-
};
|
|
781
|
-
|
|
782
|
-
export const serializeAws_restJson1ListPlaybackConfigurationsCommand = async (
|
|
783
|
-
input: ListPlaybackConfigurationsCommandInput,
|
|
784
|
-
context: __SerdeContext
|
|
785
|
-
): Promise<__HttpRequest> => {
|
|
786
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
787
|
-
const headers: any = {};
|
|
788
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfigurations";
|
|
789
|
-
const query: any = {
|
|
790
|
-
...(input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }),
|
|
791
|
-
...(input.NextToken !== undefined && { NextToken: input.NextToken }),
|
|
792
|
-
};
|
|
793
|
-
let body: any;
|
|
794
|
-
return new __HttpRequest({
|
|
795
|
-
protocol,
|
|
796
|
-
hostname,
|
|
797
|
-
port,
|
|
798
|
-
method: "GET",
|
|
799
|
-
headers,
|
|
800
|
-
path: resolvedPath,
|
|
801
|
-
query,
|
|
802
|
-
body,
|
|
803
|
-
});
|
|
804
|
-
};
|
|
805
|
-
|
|
806
|
-
export const serializeAws_restJson1ListSourceLocationsCommand = async (
|
|
807
|
-
input: ListSourceLocationsCommandInput,
|
|
808
|
-
context: __SerdeContext
|
|
809
|
-
): Promise<__HttpRequest> => {
|
|
810
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
811
|
-
const headers: any = {};
|
|
812
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocations";
|
|
813
|
-
const query: any = {
|
|
814
|
-
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
815
|
-
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
816
|
-
};
|
|
817
|
-
let body: any;
|
|
818
|
-
return new __HttpRequest({
|
|
819
|
-
protocol,
|
|
820
|
-
hostname,
|
|
821
|
-
port,
|
|
822
|
-
method: "GET",
|
|
823
|
-
headers,
|
|
824
|
-
path: resolvedPath,
|
|
825
|
-
query,
|
|
826
|
-
body,
|
|
827
|
-
});
|
|
828
|
-
};
|
|
829
|
-
|
|
830
|
-
export const serializeAws_restJson1ListTagsForResourceCommand = async (
|
|
831
|
-
input: ListTagsForResourceCommandInput,
|
|
832
|
-
context: __SerdeContext
|
|
833
|
-
): Promise<__HttpRequest> => {
|
|
834
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
835
|
-
const headers: any = {};
|
|
836
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
837
|
-
if (input.ResourceArn !== undefined) {
|
|
838
|
-
const labelValue: string = input.ResourceArn;
|
|
839
|
-
if (labelValue.length <= 0) {
|
|
840
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
841
|
-
}
|
|
842
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
843
|
-
} else {
|
|
844
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
845
|
-
}
|
|
846
|
-
let body: any;
|
|
847
|
-
return new __HttpRequest({
|
|
848
|
-
protocol,
|
|
849
|
-
hostname,
|
|
850
|
-
port,
|
|
851
|
-
method: "GET",
|
|
852
|
-
headers,
|
|
853
|
-
path: resolvedPath,
|
|
854
|
-
body,
|
|
855
|
-
});
|
|
856
|
-
};
|
|
857
|
-
|
|
858
|
-
export const serializeAws_restJson1ListVodSourcesCommand = async (
|
|
859
|
-
input: ListVodSourcesCommandInput,
|
|
860
|
-
context: __SerdeContext
|
|
861
|
-
): Promise<__HttpRequest> => {
|
|
862
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
863
|
-
const headers: any = {};
|
|
864
|
-
let resolvedPath =
|
|
865
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
866
|
-
"/sourceLocation/{SourceLocationName}/vodSources";
|
|
867
|
-
if (input.SourceLocationName !== undefined) {
|
|
868
|
-
const labelValue: string = input.SourceLocationName;
|
|
869
|
-
if (labelValue.length <= 0) {
|
|
870
|
-
throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
|
|
871
|
-
}
|
|
872
|
-
resolvedPath = resolvedPath.replace("{SourceLocationName}", __extendedEncodeURIComponent(labelValue));
|
|
873
|
-
} else {
|
|
874
|
-
throw new Error("No value provided for input HTTP label: SourceLocationName.");
|
|
875
|
-
}
|
|
876
|
-
const query: any = {
|
|
877
|
-
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
878
|
-
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
879
|
-
};
|
|
880
|
-
let body: any;
|
|
881
|
-
return new __HttpRequest({
|
|
882
|
-
protocol,
|
|
883
|
-
hostname,
|
|
884
|
-
port,
|
|
885
|
-
method: "GET",
|
|
886
|
-
headers,
|
|
887
|
-
path: resolvedPath,
|
|
888
|
-
query,
|
|
889
|
-
body,
|
|
890
|
-
});
|
|
891
|
-
};
|
|
892
|
-
|
|
893
|
-
export const serializeAws_restJson1PutChannelPolicyCommand = async (
|
|
894
|
-
input: PutChannelPolicyCommandInput,
|
|
895
|
-
context: __SerdeContext
|
|
896
|
-
): Promise<__HttpRequest> => {
|
|
897
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
898
|
-
const headers: any = {
|
|
899
|
-
"content-type": "application/json",
|
|
900
|
-
};
|
|
901
|
-
let resolvedPath =
|
|
902
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy";
|
|
903
|
-
if (input.ChannelName !== undefined) {
|
|
904
|
-
const labelValue: string = input.ChannelName;
|
|
905
|
-
if (labelValue.length <= 0) {
|
|
906
|
-
throw new Error("Empty value provided for input HTTP label: ChannelName.");
|
|
907
|
-
}
|
|
908
|
-
resolvedPath = resolvedPath.replace("{ChannelName}", __extendedEncodeURIComponent(labelValue));
|
|
909
|
-
} else {
|
|
910
|
-
throw new Error("No value provided for input HTTP label: ChannelName.");
|
|
911
|
-
}
|
|
912
|
-
let body: any;
|
|
913
|
-
body = JSON.stringify({
|
|
914
|
-
...(input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy }),
|
|
915
|
-
});
|
|
916
|
-
return new __HttpRequest({
|
|
917
|
-
protocol,
|
|
918
|
-
hostname,
|
|
919
|
-
port,
|
|
920
|
-
method: "PUT",
|
|
921
|
-
headers,
|
|
922
|
-
path: resolvedPath,
|
|
923
|
-
body,
|
|
924
|
-
});
|
|
925
|
-
};
|
|
926
|
-
|
|
927
|
-
export const serializeAws_restJson1PutPlaybackConfigurationCommand = async (
|
|
928
|
-
input: PutPlaybackConfigurationCommandInput,
|
|
929
|
-
context: __SerdeContext
|
|
930
|
-
): Promise<__HttpRequest> => {
|
|
931
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
932
|
-
const headers: any = {
|
|
933
|
-
"content-type": "application/json",
|
|
934
|
-
};
|
|
935
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration";
|
|
936
|
-
let body: any;
|
|
937
|
-
body = JSON.stringify({
|
|
938
|
-
...(input.AdDecisionServerUrl !== undefined &&
|
|
939
|
-
input.AdDecisionServerUrl !== null && { AdDecisionServerUrl: input.AdDecisionServerUrl }),
|
|
940
|
-
...(input.AvailSuppression !== undefined &&
|
|
941
|
-
input.AvailSuppression !== null && {
|
|
942
|
-
AvailSuppression: serializeAws_restJson1AvailSuppression(input.AvailSuppression, context),
|
|
943
|
-
}),
|
|
944
|
-
...(input.Bumper !== undefined &&
|
|
945
|
-
input.Bumper !== null && { Bumper: serializeAws_restJson1Bumper(input.Bumper, context) }),
|
|
946
|
-
...(input.CdnConfiguration !== undefined &&
|
|
947
|
-
input.CdnConfiguration !== null && {
|
|
948
|
-
CdnConfiguration: serializeAws_restJson1CdnConfiguration(input.CdnConfiguration, context),
|
|
949
|
-
}),
|
|
950
|
-
...(input.ConfigurationAliases !== undefined &&
|
|
951
|
-
input.ConfigurationAliases !== null && {
|
|
952
|
-
ConfigurationAliases: serializeAws_restJson1ConfigurationAliasesRequest(input.ConfigurationAliases, context),
|
|
953
|
-
}),
|
|
954
|
-
...(input.DashConfiguration !== undefined &&
|
|
955
|
-
input.DashConfiguration !== null && {
|
|
956
|
-
DashConfiguration: serializeAws_restJson1DashConfigurationForPut(input.DashConfiguration, context),
|
|
957
|
-
}),
|
|
958
|
-
...(input.LivePreRollConfiguration !== undefined &&
|
|
959
|
-
input.LivePreRollConfiguration !== null && {
|
|
960
|
-
LivePreRollConfiguration: serializeAws_restJson1LivePreRollConfiguration(
|
|
961
|
-
input.LivePreRollConfiguration,
|
|
962
|
-
context
|
|
963
|
-
),
|
|
964
|
-
}),
|
|
965
|
-
...(input.ManifestProcessingRules !== undefined &&
|
|
966
|
-
input.ManifestProcessingRules !== null && {
|
|
967
|
-
ManifestProcessingRules: serializeAws_restJson1ManifestProcessingRules(input.ManifestProcessingRules, context),
|
|
968
|
-
}),
|
|
969
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
970
|
-
...(input.PersonalizationThresholdSeconds !== undefined &&
|
|
971
|
-
input.PersonalizationThresholdSeconds !== null && {
|
|
972
|
-
PersonalizationThresholdSeconds: input.PersonalizationThresholdSeconds,
|
|
973
|
-
}),
|
|
974
|
-
...(input.SlateAdUrl !== undefined && input.SlateAdUrl !== null && { SlateAdUrl: input.SlateAdUrl }),
|
|
975
|
-
...(input.Tags !== undefined &&
|
|
976
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
977
|
-
...(input.TranscodeProfileName !== undefined &&
|
|
978
|
-
input.TranscodeProfileName !== null && { TranscodeProfileName: input.TranscodeProfileName }),
|
|
979
|
-
...(input.VideoContentSourceUrl !== undefined &&
|
|
980
|
-
input.VideoContentSourceUrl !== null && { VideoContentSourceUrl: input.VideoContentSourceUrl }),
|
|
981
|
-
});
|
|
982
|
-
return new __HttpRequest({
|
|
983
|
-
protocol,
|
|
984
|
-
hostname,
|
|
985
|
-
port,
|
|
986
|
-
method: "PUT",
|
|
987
|
-
headers,
|
|
988
|
-
path: resolvedPath,
|
|
989
|
-
body,
|
|
990
|
-
});
|
|
991
|
-
};
|
|
992
|
-
|
|
993
|
-
export const serializeAws_restJson1StartChannelCommand = async (
|
|
994
|
-
input: StartChannelCommandInput,
|
|
995
|
-
context: __SerdeContext
|
|
996
|
-
): Promise<__HttpRequest> => {
|
|
997
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
998
|
-
const headers: any = {};
|
|
999
|
-
let resolvedPath =
|
|
1000
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/start";
|
|
1001
|
-
if (input.ChannelName !== undefined) {
|
|
1002
|
-
const labelValue: string = input.ChannelName;
|
|
1003
|
-
if (labelValue.length <= 0) {
|
|
1004
|
-
throw new Error("Empty value provided for input HTTP label: ChannelName.");
|
|
1005
|
-
}
|
|
1006
|
-
resolvedPath = resolvedPath.replace("{ChannelName}", __extendedEncodeURIComponent(labelValue));
|
|
1007
|
-
} else {
|
|
1008
|
-
throw new Error("No value provided for input HTTP label: ChannelName.");
|
|
1009
|
-
}
|
|
1010
|
-
let body: any;
|
|
1011
|
-
return new __HttpRequest({
|
|
1012
|
-
protocol,
|
|
1013
|
-
hostname,
|
|
1014
|
-
port,
|
|
1015
|
-
method: "PUT",
|
|
1016
|
-
headers,
|
|
1017
|
-
path: resolvedPath,
|
|
1018
|
-
body,
|
|
1019
|
-
});
|
|
1020
|
-
};
|
|
1021
|
-
|
|
1022
|
-
export const serializeAws_restJson1StopChannelCommand = async (
|
|
1023
|
-
input: StopChannelCommandInput,
|
|
1024
|
-
context: __SerdeContext
|
|
1025
|
-
): Promise<__HttpRequest> => {
|
|
1026
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1027
|
-
const headers: any = {};
|
|
1028
|
-
let resolvedPath =
|
|
1029
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/stop";
|
|
1030
|
-
if (input.ChannelName !== undefined) {
|
|
1031
|
-
const labelValue: string = input.ChannelName;
|
|
1032
|
-
if (labelValue.length <= 0) {
|
|
1033
|
-
throw new Error("Empty value provided for input HTTP label: ChannelName.");
|
|
1034
|
-
}
|
|
1035
|
-
resolvedPath = resolvedPath.replace("{ChannelName}", __extendedEncodeURIComponent(labelValue));
|
|
1036
|
-
} else {
|
|
1037
|
-
throw new Error("No value provided for input HTTP label: ChannelName.");
|
|
1038
|
-
}
|
|
1039
|
-
let body: any;
|
|
1040
|
-
return new __HttpRequest({
|
|
1041
|
-
protocol,
|
|
1042
|
-
hostname,
|
|
1043
|
-
port,
|
|
1044
|
-
method: "PUT",
|
|
1045
|
-
headers,
|
|
1046
|
-
path: resolvedPath,
|
|
1047
|
-
body,
|
|
1048
|
-
});
|
|
1049
|
-
};
|
|
1050
|
-
|
|
1051
|
-
export const serializeAws_restJson1TagResourceCommand = async (
|
|
1052
|
-
input: TagResourceCommandInput,
|
|
1053
|
-
context: __SerdeContext
|
|
1054
|
-
): Promise<__HttpRequest> => {
|
|
1055
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1056
|
-
const headers: any = {
|
|
1057
|
-
"content-type": "application/json",
|
|
1058
|
-
};
|
|
1059
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
1060
|
-
if (input.ResourceArn !== undefined) {
|
|
1061
|
-
const labelValue: string = input.ResourceArn;
|
|
1062
|
-
if (labelValue.length <= 0) {
|
|
1063
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
1064
|
-
}
|
|
1065
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1066
|
-
} else {
|
|
1067
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
1068
|
-
}
|
|
1069
|
-
let body: any;
|
|
1070
|
-
body = JSON.stringify({
|
|
1071
|
-
...(input.Tags !== undefined &&
|
|
1072
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
1073
|
-
});
|
|
1074
|
-
return new __HttpRequest({
|
|
1075
|
-
protocol,
|
|
1076
|
-
hostname,
|
|
1077
|
-
port,
|
|
1078
|
-
method: "POST",
|
|
1079
|
-
headers,
|
|
1080
|
-
path: resolvedPath,
|
|
1081
|
-
body,
|
|
1082
|
-
});
|
|
1083
|
-
};
|
|
1084
|
-
|
|
1085
|
-
export const serializeAws_restJson1UntagResourceCommand = async (
|
|
1086
|
-
input: UntagResourceCommandInput,
|
|
1087
|
-
context: __SerdeContext
|
|
1088
|
-
): Promise<__HttpRequest> => {
|
|
1089
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1090
|
-
const headers: any = {};
|
|
1091
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
1092
|
-
if (input.ResourceArn !== undefined) {
|
|
1093
|
-
const labelValue: string = input.ResourceArn;
|
|
1094
|
-
if (labelValue.length <= 0) {
|
|
1095
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
1096
|
-
}
|
|
1097
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1098
|
-
} else {
|
|
1099
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
1100
|
-
}
|
|
1101
|
-
const query: any = {
|
|
1102
|
-
...(input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map((_entry) => _entry as any) }),
|
|
1103
|
-
};
|
|
1104
|
-
let body: any;
|
|
1105
|
-
return new __HttpRequest({
|
|
1106
|
-
protocol,
|
|
1107
|
-
hostname,
|
|
1108
|
-
port,
|
|
1109
|
-
method: "DELETE",
|
|
1110
|
-
headers,
|
|
1111
|
-
path: resolvedPath,
|
|
1112
|
-
query,
|
|
1113
|
-
body,
|
|
1114
|
-
});
|
|
1115
|
-
};
|
|
1116
|
-
|
|
1117
|
-
export const serializeAws_restJson1UpdateChannelCommand = async (
|
|
1118
|
-
input: UpdateChannelCommandInput,
|
|
1119
|
-
context: __SerdeContext
|
|
1120
|
-
): Promise<__HttpRequest> => {
|
|
1121
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1122
|
-
const headers: any = {
|
|
1123
|
-
"content-type": "application/json",
|
|
1124
|
-
};
|
|
1125
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
|
|
1126
|
-
if (input.ChannelName !== undefined) {
|
|
1127
|
-
const labelValue: string = input.ChannelName;
|
|
1128
|
-
if (labelValue.length <= 0) {
|
|
1129
|
-
throw new Error("Empty value provided for input HTTP label: ChannelName.");
|
|
1130
|
-
}
|
|
1131
|
-
resolvedPath = resolvedPath.replace("{ChannelName}", __extendedEncodeURIComponent(labelValue));
|
|
1132
|
-
} else {
|
|
1133
|
-
throw new Error("No value provided for input HTTP label: ChannelName.");
|
|
1134
|
-
}
|
|
1135
|
-
let body: any;
|
|
1136
|
-
body = JSON.stringify({
|
|
1137
|
-
...(input.Outputs !== undefined &&
|
|
1138
|
-
input.Outputs !== null && { Outputs: serializeAws_restJson1RequestOutputs(input.Outputs, context) }),
|
|
1139
|
-
});
|
|
1140
|
-
return new __HttpRequest({
|
|
1141
|
-
protocol,
|
|
1142
|
-
hostname,
|
|
1143
|
-
port,
|
|
1144
|
-
method: "PUT",
|
|
1145
|
-
headers,
|
|
1146
|
-
path: resolvedPath,
|
|
1147
|
-
body,
|
|
1148
|
-
});
|
|
1149
|
-
};
|
|
1150
|
-
|
|
1151
|
-
export const serializeAws_restJson1UpdateSourceLocationCommand = async (
|
|
1152
|
-
input: UpdateSourceLocationCommandInput,
|
|
1153
|
-
context: __SerdeContext
|
|
1154
|
-
): Promise<__HttpRequest> => {
|
|
1155
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1156
|
-
const headers: any = {
|
|
1157
|
-
"content-type": "application/json",
|
|
1158
|
-
};
|
|
1159
|
-
let resolvedPath =
|
|
1160
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
|
|
1161
|
-
if (input.SourceLocationName !== undefined) {
|
|
1162
|
-
const labelValue: string = input.SourceLocationName;
|
|
1163
|
-
if (labelValue.length <= 0) {
|
|
1164
|
-
throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
|
|
1165
|
-
}
|
|
1166
|
-
resolvedPath = resolvedPath.replace("{SourceLocationName}", __extendedEncodeURIComponent(labelValue));
|
|
1167
|
-
} else {
|
|
1168
|
-
throw new Error("No value provided for input HTTP label: SourceLocationName.");
|
|
1169
|
-
}
|
|
1170
|
-
let body: any;
|
|
1171
|
-
body = JSON.stringify({
|
|
1172
|
-
...(input.AccessConfiguration !== undefined &&
|
|
1173
|
-
input.AccessConfiguration !== null && {
|
|
1174
|
-
AccessConfiguration: serializeAws_restJson1AccessConfiguration(input.AccessConfiguration, context),
|
|
1175
|
-
}),
|
|
1176
|
-
...(input.DefaultSegmentDeliveryConfiguration !== undefined &&
|
|
1177
|
-
input.DefaultSegmentDeliveryConfiguration !== null && {
|
|
1178
|
-
DefaultSegmentDeliveryConfiguration: serializeAws_restJson1DefaultSegmentDeliveryConfiguration(
|
|
1179
|
-
input.DefaultSegmentDeliveryConfiguration,
|
|
1180
|
-
context
|
|
1181
|
-
),
|
|
1182
|
-
}),
|
|
1183
|
-
...(input.HttpConfiguration !== undefined &&
|
|
1184
|
-
input.HttpConfiguration !== null && {
|
|
1185
|
-
HttpConfiguration: serializeAws_restJson1HttpConfiguration(input.HttpConfiguration, context),
|
|
1186
|
-
}),
|
|
1187
|
-
});
|
|
1188
|
-
return new __HttpRequest({
|
|
1189
|
-
protocol,
|
|
1190
|
-
hostname,
|
|
1191
|
-
port,
|
|
1192
|
-
method: "PUT",
|
|
1193
|
-
headers,
|
|
1194
|
-
path: resolvedPath,
|
|
1195
|
-
body,
|
|
1196
|
-
});
|
|
1197
|
-
};
|
|
1198
|
-
|
|
1199
|
-
export const serializeAws_restJson1UpdateVodSourceCommand = async (
|
|
1200
|
-
input: UpdateVodSourceCommandInput,
|
|
1201
|
-
context: __SerdeContext
|
|
1202
|
-
): Promise<__HttpRequest> => {
|
|
1203
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1204
|
-
const headers: any = {
|
|
1205
|
-
"content-type": "application/json",
|
|
1206
|
-
};
|
|
1207
|
-
let resolvedPath =
|
|
1208
|
-
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1209
|
-
"/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}";
|
|
1210
|
-
if (input.SourceLocationName !== undefined) {
|
|
1211
|
-
const labelValue: string = input.SourceLocationName;
|
|
1212
|
-
if (labelValue.length <= 0) {
|
|
1213
|
-
throw new Error("Empty value provided for input HTTP label: SourceLocationName.");
|
|
1214
|
-
}
|
|
1215
|
-
resolvedPath = resolvedPath.replace("{SourceLocationName}", __extendedEncodeURIComponent(labelValue));
|
|
1216
|
-
} else {
|
|
1217
|
-
throw new Error("No value provided for input HTTP label: SourceLocationName.");
|
|
1218
|
-
}
|
|
1219
|
-
if (input.VodSourceName !== undefined) {
|
|
1220
|
-
const labelValue: string = input.VodSourceName;
|
|
1221
|
-
if (labelValue.length <= 0) {
|
|
1222
|
-
throw new Error("Empty value provided for input HTTP label: VodSourceName.");
|
|
1223
|
-
}
|
|
1224
|
-
resolvedPath = resolvedPath.replace("{VodSourceName}", __extendedEncodeURIComponent(labelValue));
|
|
1225
|
-
} else {
|
|
1226
|
-
throw new Error("No value provided for input HTTP label: VodSourceName.");
|
|
1227
|
-
}
|
|
1228
|
-
let body: any;
|
|
1229
|
-
body = JSON.stringify({
|
|
1230
|
-
...(input.HttpPackageConfigurations !== undefined &&
|
|
1231
|
-
input.HttpPackageConfigurations !== null && {
|
|
1232
|
-
HttpPackageConfigurations: serializeAws_restJson1HttpPackageConfigurations(
|
|
1233
|
-
input.HttpPackageConfigurations,
|
|
1234
|
-
context
|
|
1235
|
-
),
|
|
1236
|
-
}),
|
|
1237
|
-
});
|
|
1238
|
-
return new __HttpRequest({
|
|
1239
|
-
protocol,
|
|
1240
|
-
hostname,
|
|
1241
|
-
port,
|
|
1242
|
-
method: "PUT",
|
|
1243
|
-
headers,
|
|
1244
|
-
path: resolvedPath,
|
|
1245
|
-
body,
|
|
1246
|
-
});
|
|
1247
|
-
};
|
|
1248
|
-
|
|
1249
|
-
export const deserializeAws_restJson1CreateChannelCommand = async (
|
|
1250
|
-
output: __HttpResponse,
|
|
1251
|
-
context: __SerdeContext
|
|
1252
|
-
): Promise<CreateChannelCommandOutput> => {
|
|
1253
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1254
|
-
return deserializeAws_restJson1CreateChannelCommandError(output, context);
|
|
1255
|
-
}
|
|
1256
|
-
const contents: CreateChannelCommandOutput = {
|
|
1257
|
-
$metadata: deserializeMetadata(output),
|
|
1258
|
-
Arn: undefined,
|
|
1259
|
-
ChannelName: undefined,
|
|
1260
|
-
ChannelState: undefined,
|
|
1261
|
-
CreationTime: undefined,
|
|
1262
|
-
FillerSlate: undefined,
|
|
1263
|
-
LastModifiedTime: undefined,
|
|
1264
|
-
Outputs: undefined,
|
|
1265
|
-
PlaybackMode: undefined,
|
|
1266
|
-
Tags: undefined,
|
|
1267
|
-
};
|
|
1268
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1269
|
-
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1270
|
-
contents.Arn = __expectString(data.Arn);
|
|
1271
|
-
}
|
|
1272
|
-
if (data.ChannelName !== undefined && data.ChannelName !== null) {
|
|
1273
|
-
contents.ChannelName = __expectString(data.ChannelName);
|
|
1274
|
-
}
|
|
1275
|
-
if (data.ChannelState !== undefined && data.ChannelState !== null) {
|
|
1276
|
-
contents.ChannelState = __expectString(data.ChannelState);
|
|
1277
|
-
}
|
|
1278
|
-
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
1279
|
-
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
1280
|
-
}
|
|
1281
|
-
if (data.FillerSlate !== undefined && data.FillerSlate !== null) {
|
|
1282
|
-
contents.FillerSlate = deserializeAws_restJson1SlateSource(data.FillerSlate, context);
|
|
1283
|
-
}
|
|
1284
|
-
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
1285
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
1286
|
-
}
|
|
1287
|
-
if (data.Outputs !== undefined && data.Outputs !== null) {
|
|
1288
|
-
contents.Outputs = deserializeAws_restJson1ResponseOutputs(data.Outputs, context);
|
|
1289
|
-
}
|
|
1290
|
-
if (data.PlaybackMode !== undefined && data.PlaybackMode !== null) {
|
|
1291
|
-
contents.PlaybackMode = __expectString(data.PlaybackMode);
|
|
1292
|
-
}
|
|
1293
|
-
if (data.tags !== undefined && data.tags !== null) {
|
|
1294
|
-
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
1295
|
-
}
|
|
1296
|
-
return Promise.resolve(contents);
|
|
1297
|
-
};
|
|
1298
|
-
|
|
1299
|
-
const deserializeAws_restJson1CreateChannelCommandError = async (
|
|
1300
|
-
output: __HttpResponse,
|
|
1301
|
-
context: __SerdeContext
|
|
1302
|
-
): Promise<CreateChannelCommandOutput> => {
|
|
1303
|
-
const parsedOutput: any = {
|
|
1304
|
-
...output,
|
|
1305
|
-
body: await parseBody(output.body, context),
|
|
1306
|
-
};
|
|
1307
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1308
|
-
let errorCode: string = "UnknownError";
|
|
1309
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1310
|
-
switch (errorCode) {
|
|
1311
|
-
default:
|
|
1312
|
-
const parsedBody = parsedOutput.body;
|
|
1313
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1314
|
-
response = {
|
|
1315
|
-
...parsedBody,
|
|
1316
|
-
name: `${errorCode}`,
|
|
1317
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1318
|
-
$fault: "client",
|
|
1319
|
-
$metadata: deserializeMetadata(output),
|
|
1320
|
-
} as any;
|
|
1321
|
-
}
|
|
1322
|
-
const message = response.message || response.Message || errorCode;
|
|
1323
|
-
response.message = message;
|
|
1324
|
-
delete response.Message;
|
|
1325
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1326
|
-
};
|
|
1327
|
-
|
|
1328
|
-
export const deserializeAws_restJson1CreateProgramCommand = async (
|
|
1329
|
-
output: __HttpResponse,
|
|
1330
|
-
context: __SerdeContext
|
|
1331
|
-
): Promise<CreateProgramCommandOutput> => {
|
|
1332
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1333
|
-
return deserializeAws_restJson1CreateProgramCommandError(output, context);
|
|
1334
|
-
}
|
|
1335
|
-
const contents: CreateProgramCommandOutput = {
|
|
1336
|
-
$metadata: deserializeMetadata(output),
|
|
1337
|
-
AdBreaks: undefined,
|
|
1338
|
-
Arn: undefined,
|
|
1339
|
-
ChannelName: undefined,
|
|
1340
|
-
CreationTime: undefined,
|
|
1341
|
-
ProgramName: undefined,
|
|
1342
|
-
ScheduledStartTime: undefined,
|
|
1343
|
-
SourceLocationName: undefined,
|
|
1344
|
-
VodSourceName: undefined,
|
|
1345
|
-
};
|
|
1346
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1347
|
-
if (data.AdBreaks !== undefined && data.AdBreaks !== null) {
|
|
1348
|
-
contents.AdBreaks = deserializeAws_restJson1__listOfAdBreak(data.AdBreaks, context);
|
|
1349
|
-
}
|
|
1350
|
-
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1351
|
-
contents.Arn = __expectString(data.Arn);
|
|
1352
|
-
}
|
|
1353
|
-
if (data.ChannelName !== undefined && data.ChannelName !== null) {
|
|
1354
|
-
contents.ChannelName = __expectString(data.ChannelName);
|
|
1355
|
-
}
|
|
1356
|
-
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
1357
|
-
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
1358
|
-
}
|
|
1359
|
-
if (data.ProgramName !== undefined && data.ProgramName !== null) {
|
|
1360
|
-
contents.ProgramName = __expectString(data.ProgramName);
|
|
1361
|
-
}
|
|
1362
|
-
if (data.ScheduledStartTime !== undefined && data.ScheduledStartTime !== null) {
|
|
1363
|
-
contents.ScheduledStartTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.ScheduledStartTime)));
|
|
1364
|
-
}
|
|
1365
|
-
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
1366
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
1367
|
-
}
|
|
1368
|
-
if (data.VodSourceName !== undefined && data.VodSourceName !== null) {
|
|
1369
|
-
contents.VodSourceName = __expectString(data.VodSourceName);
|
|
1370
|
-
}
|
|
1371
|
-
return Promise.resolve(contents);
|
|
1372
|
-
};
|
|
1373
|
-
|
|
1374
|
-
const deserializeAws_restJson1CreateProgramCommandError = async (
|
|
1375
|
-
output: __HttpResponse,
|
|
1376
|
-
context: __SerdeContext
|
|
1377
|
-
): Promise<CreateProgramCommandOutput> => {
|
|
1378
|
-
const parsedOutput: any = {
|
|
1379
|
-
...output,
|
|
1380
|
-
body: await parseBody(output.body, context),
|
|
1381
|
-
};
|
|
1382
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1383
|
-
let errorCode: string = "UnknownError";
|
|
1384
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1385
|
-
switch (errorCode) {
|
|
1386
|
-
default:
|
|
1387
|
-
const parsedBody = parsedOutput.body;
|
|
1388
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1389
|
-
response = {
|
|
1390
|
-
...parsedBody,
|
|
1391
|
-
name: `${errorCode}`,
|
|
1392
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1393
|
-
$fault: "client",
|
|
1394
|
-
$metadata: deserializeMetadata(output),
|
|
1395
|
-
} as any;
|
|
1396
|
-
}
|
|
1397
|
-
const message = response.message || response.Message || errorCode;
|
|
1398
|
-
response.message = message;
|
|
1399
|
-
delete response.Message;
|
|
1400
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1401
|
-
};
|
|
1402
|
-
|
|
1403
|
-
export const deserializeAws_restJson1CreateSourceLocationCommand = async (
|
|
1404
|
-
output: __HttpResponse,
|
|
1405
|
-
context: __SerdeContext
|
|
1406
|
-
): Promise<CreateSourceLocationCommandOutput> => {
|
|
1407
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1408
|
-
return deserializeAws_restJson1CreateSourceLocationCommandError(output, context);
|
|
1409
|
-
}
|
|
1410
|
-
const contents: CreateSourceLocationCommandOutput = {
|
|
1411
|
-
$metadata: deserializeMetadata(output),
|
|
1412
|
-
AccessConfiguration: undefined,
|
|
1413
|
-
Arn: undefined,
|
|
1414
|
-
CreationTime: undefined,
|
|
1415
|
-
DefaultSegmentDeliveryConfiguration: undefined,
|
|
1416
|
-
HttpConfiguration: undefined,
|
|
1417
|
-
LastModifiedTime: undefined,
|
|
1418
|
-
SourceLocationName: undefined,
|
|
1419
|
-
Tags: undefined,
|
|
1420
|
-
};
|
|
1421
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1422
|
-
if (data.AccessConfiguration !== undefined && data.AccessConfiguration !== null) {
|
|
1423
|
-
contents.AccessConfiguration = deserializeAws_restJson1AccessConfiguration(data.AccessConfiguration, context);
|
|
1424
|
-
}
|
|
1425
|
-
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1426
|
-
contents.Arn = __expectString(data.Arn);
|
|
1427
|
-
}
|
|
1428
|
-
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
1429
|
-
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
1430
|
-
}
|
|
1431
|
-
if (data.DefaultSegmentDeliveryConfiguration !== undefined && data.DefaultSegmentDeliveryConfiguration !== null) {
|
|
1432
|
-
contents.DefaultSegmentDeliveryConfiguration = deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(
|
|
1433
|
-
data.DefaultSegmentDeliveryConfiguration,
|
|
1434
|
-
context
|
|
1435
|
-
);
|
|
1436
|
-
}
|
|
1437
|
-
if (data.HttpConfiguration !== undefined && data.HttpConfiguration !== null) {
|
|
1438
|
-
contents.HttpConfiguration = deserializeAws_restJson1HttpConfiguration(data.HttpConfiguration, context);
|
|
1439
|
-
}
|
|
1440
|
-
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
1441
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
1442
|
-
}
|
|
1443
|
-
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
1444
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
1445
|
-
}
|
|
1446
|
-
if (data.tags !== undefined && data.tags !== null) {
|
|
1447
|
-
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
1448
|
-
}
|
|
1449
|
-
return Promise.resolve(contents);
|
|
1450
|
-
};
|
|
1451
|
-
|
|
1452
|
-
const deserializeAws_restJson1CreateSourceLocationCommandError = async (
|
|
1453
|
-
output: __HttpResponse,
|
|
1454
|
-
context: __SerdeContext
|
|
1455
|
-
): Promise<CreateSourceLocationCommandOutput> => {
|
|
1456
|
-
const parsedOutput: any = {
|
|
1457
|
-
...output,
|
|
1458
|
-
body: await parseBody(output.body, context),
|
|
1459
|
-
};
|
|
1460
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1461
|
-
let errorCode: string = "UnknownError";
|
|
1462
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1463
|
-
switch (errorCode) {
|
|
1464
|
-
default:
|
|
1465
|
-
const parsedBody = parsedOutput.body;
|
|
1466
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1467
|
-
response = {
|
|
1468
|
-
...parsedBody,
|
|
1469
|
-
name: `${errorCode}`,
|
|
1470
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1471
|
-
$fault: "client",
|
|
1472
|
-
$metadata: deserializeMetadata(output),
|
|
1473
|
-
} as any;
|
|
1474
|
-
}
|
|
1475
|
-
const message = response.message || response.Message || errorCode;
|
|
1476
|
-
response.message = message;
|
|
1477
|
-
delete response.Message;
|
|
1478
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1479
|
-
};
|
|
1480
|
-
|
|
1481
|
-
export const deserializeAws_restJson1CreateVodSourceCommand = async (
|
|
1482
|
-
output: __HttpResponse,
|
|
1483
|
-
context: __SerdeContext
|
|
1484
|
-
): Promise<CreateVodSourceCommandOutput> => {
|
|
1485
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1486
|
-
return deserializeAws_restJson1CreateVodSourceCommandError(output, context);
|
|
1487
|
-
}
|
|
1488
|
-
const contents: CreateVodSourceCommandOutput = {
|
|
1489
|
-
$metadata: deserializeMetadata(output),
|
|
1490
|
-
Arn: undefined,
|
|
1491
|
-
CreationTime: undefined,
|
|
1492
|
-
HttpPackageConfigurations: undefined,
|
|
1493
|
-
LastModifiedTime: undefined,
|
|
1494
|
-
SourceLocationName: undefined,
|
|
1495
|
-
Tags: undefined,
|
|
1496
|
-
VodSourceName: undefined,
|
|
1497
|
-
};
|
|
1498
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1499
|
-
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1500
|
-
contents.Arn = __expectString(data.Arn);
|
|
1501
|
-
}
|
|
1502
|
-
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
1503
|
-
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
1504
|
-
}
|
|
1505
|
-
if (data.HttpPackageConfigurations !== undefined && data.HttpPackageConfigurations !== null) {
|
|
1506
|
-
contents.HttpPackageConfigurations = deserializeAws_restJson1HttpPackageConfigurations(
|
|
1507
|
-
data.HttpPackageConfigurations,
|
|
1508
|
-
context
|
|
1509
|
-
);
|
|
1510
|
-
}
|
|
1511
|
-
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
1512
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
1513
|
-
}
|
|
1514
|
-
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
1515
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
1516
|
-
}
|
|
1517
|
-
if (data.tags !== undefined && data.tags !== null) {
|
|
1518
|
-
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
1519
|
-
}
|
|
1520
|
-
if (data.VodSourceName !== undefined && data.VodSourceName !== null) {
|
|
1521
|
-
contents.VodSourceName = __expectString(data.VodSourceName);
|
|
1522
|
-
}
|
|
1523
|
-
return Promise.resolve(contents);
|
|
1524
|
-
};
|
|
1525
|
-
|
|
1526
|
-
const deserializeAws_restJson1CreateVodSourceCommandError = async (
|
|
1527
|
-
output: __HttpResponse,
|
|
1528
|
-
context: __SerdeContext
|
|
1529
|
-
): Promise<CreateVodSourceCommandOutput> => {
|
|
1530
|
-
const parsedOutput: any = {
|
|
1531
|
-
...output,
|
|
1532
|
-
body: await parseBody(output.body, context),
|
|
1533
|
-
};
|
|
1534
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1535
|
-
let errorCode: string = "UnknownError";
|
|
1536
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1537
|
-
switch (errorCode) {
|
|
1538
|
-
default:
|
|
1539
|
-
const parsedBody = parsedOutput.body;
|
|
1540
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1541
|
-
response = {
|
|
1542
|
-
...parsedBody,
|
|
1543
|
-
name: `${errorCode}`,
|
|
1544
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1545
|
-
$fault: "client",
|
|
1546
|
-
$metadata: deserializeMetadata(output),
|
|
1547
|
-
} as any;
|
|
1548
|
-
}
|
|
1549
|
-
const message = response.message || response.Message || errorCode;
|
|
1550
|
-
response.message = message;
|
|
1551
|
-
delete response.Message;
|
|
1552
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1553
|
-
};
|
|
1554
|
-
|
|
1555
|
-
export const deserializeAws_restJson1DeleteChannelCommand = async (
|
|
1556
|
-
output: __HttpResponse,
|
|
1557
|
-
context: __SerdeContext
|
|
1558
|
-
): Promise<DeleteChannelCommandOutput> => {
|
|
1559
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1560
|
-
return deserializeAws_restJson1DeleteChannelCommandError(output, context);
|
|
1561
|
-
}
|
|
1562
|
-
const contents: DeleteChannelCommandOutput = {
|
|
1563
|
-
$metadata: deserializeMetadata(output),
|
|
1564
|
-
};
|
|
1565
|
-
await collectBody(output.body, context);
|
|
1566
|
-
return Promise.resolve(contents);
|
|
1567
|
-
};
|
|
1568
|
-
|
|
1569
|
-
const deserializeAws_restJson1DeleteChannelCommandError = async (
|
|
1570
|
-
output: __HttpResponse,
|
|
1571
|
-
context: __SerdeContext
|
|
1572
|
-
): Promise<DeleteChannelCommandOutput> => {
|
|
1573
|
-
const parsedOutput: any = {
|
|
1574
|
-
...output,
|
|
1575
|
-
body: await parseBody(output.body, context),
|
|
1576
|
-
};
|
|
1577
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1578
|
-
let errorCode: string = "UnknownError";
|
|
1579
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1580
|
-
switch (errorCode) {
|
|
1581
|
-
default:
|
|
1582
|
-
const parsedBody = parsedOutput.body;
|
|
1583
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1584
|
-
response = {
|
|
1585
|
-
...parsedBody,
|
|
1586
|
-
name: `${errorCode}`,
|
|
1587
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1588
|
-
$fault: "client",
|
|
1589
|
-
$metadata: deserializeMetadata(output),
|
|
1590
|
-
} as any;
|
|
1591
|
-
}
|
|
1592
|
-
const message = response.message || response.Message || errorCode;
|
|
1593
|
-
response.message = message;
|
|
1594
|
-
delete response.Message;
|
|
1595
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1596
|
-
};
|
|
1597
|
-
|
|
1598
|
-
export const deserializeAws_restJson1DeleteChannelPolicyCommand = async (
|
|
1599
|
-
output: __HttpResponse,
|
|
1600
|
-
context: __SerdeContext
|
|
1601
|
-
): Promise<DeleteChannelPolicyCommandOutput> => {
|
|
1602
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1603
|
-
return deserializeAws_restJson1DeleteChannelPolicyCommandError(output, context);
|
|
1604
|
-
}
|
|
1605
|
-
const contents: DeleteChannelPolicyCommandOutput = {
|
|
1606
|
-
$metadata: deserializeMetadata(output),
|
|
1607
|
-
};
|
|
1608
|
-
await collectBody(output.body, context);
|
|
1609
|
-
return Promise.resolve(contents);
|
|
1610
|
-
};
|
|
1611
|
-
|
|
1612
|
-
const deserializeAws_restJson1DeleteChannelPolicyCommandError = async (
|
|
1613
|
-
output: __HttpResponse,
|
|
1614
|
-
context: __SerdeContext
|
|
1615
|
-
): Promise<DeleteChannelPolicyCommandOutput> => {
|
|
1616
|
-
const parsedOutput: any = {
|
|
1617
|
-
...output,
|
|
1618
|
-
body: await parseBody(output.body, context),
|
|
1619
|
-
};
|
|
1620
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1621
|
-
let errorCode: string = "UnknownError";
|
|
1622
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
|
-
switch (errorCode) {
|
|
1624
|
-
default:
|
|
1625
|
-
const parsedBody = parsedOutput.body;
|
|
1626
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1627
|
-
response = {
|
|
1628
|
-
...parsedBody,
|
|
1629
|
-
name: `${errorCode}`,
|
|
1630
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1631
|
-
$fault: "client",
|
|
1632
|
-
$metadata: deserializeMetadata(output),
|
|
1633
|
-
} as any;
|
|
1634
|
-
}
|
|
1635
|
-
const message = response.message || response.Message || errorCode;
|
|
1636
|
-
response.message = message;
|
|
1637
|
-
delete response.Message;
|
|
1638
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1639
|
-
};
|
|
1640
|
-
|
|
1641
|
-
export const deserializeAws_restJson1DeletePlaybackConfigurationCommand = async (
|
|
1642
|
-
output: __HttpResponse,
|
|
1643
|
-
context: __SerdeContext
|
|
1644
|
-
): Promise<DeletePlaybackConfigurationCommandOutput> => {
|
|
1645
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1646
|
-
return deserializeAws_restJson1DeletePlaybackConfigurationCommandError(output, context);
|
|
1647
|
-
}
|
|
1648
|
-
const contents: DeletePlaybackConfigurationCommandOutput = {
|
|
1649
|
-
$metadata: deserializeMetadata(output),
|
|
1650
|
-
};
|
|
1651
|
-
await collectBody(output.body, context);
|
|
1652
|
-
return Promise.resolve(contents);
|
|
1653
|
-
};
|
|
1654
|
-
|
|
1655
|
-
const deserializeAws_restJson1DeletePlaybackConfigurationCommandError = async (
|
|
1656
|
-
output: __HttpResponse,
|
|
1657
|
-
context: __SerdeContext
|
|
1658
|
-
): Promise<DeletePlaybackConfigurationCommandOutput> => {
|
|
1659
|
-
const parsedOutput: any = {
|
|
1660
|
-
...output,
|
|
1661
|
-
body: await parseBody(output.body, context),
|
|
1662
|
-
};
|
|
1663
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1664
|
-
let errorCode: string = "UnknownError";
|
|
1665
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1666
|
-
switch (errorCode) {
|
|
1667
|
-
default:
|
|
1668
|
-
const parsedBody = parsedOutput.body;
|
|
1669
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1670
|
-
response = {
|
|
1671
|
-
...parsedBody,
|
|
1672
|
-
name: `${errorCode}`,
|
|
1673
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1674
|
-
$fault: "client",
|
|
1675
|
-
$metadata: deserializeMetadata(output),
|
|
1676
|
-
} as any;
|
|
1677
|
-
}
|
|
1678
|
-
const message = response.message || response.Message || errorCode;
|
|
1679
|
-
response.message = message;
|
|
1680
|
-
delete response.Message;
|
|
1681
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1682
|
-
};
|
|
1683
|
-
|
|
1684
|
-
export const deserializeAws_restJson1DeleteProgramCommand = async (
|
|
1685
|
-
output: __HttpResponse,
|
|
1686
|
-
context: __SerdeContext
|
|
1687
|
-
): Promise<DeleteProgramCommandOutput> => {
|
|
1688
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1689
|
-
return deserializeAws_restJson1DeleteProgramCommandError(output, context);
|
|
1690
|
-
}
|
|
1691
|
-
const contents: DeleteProgramCommandOutput = {
|
|
1692
|
-
$metadata: deserializeMetadata(output),
|
|
1693
|
-
};
|
|
1694
|
-
await collectBody(output.body, context);
|
|
1695
|
-
return Promise.resolve(contents);
|
|
1696
|
-
};
|
|
1697
|
-
|
|
1698
|
-
const deserializeAws_restJson1DeleteProgramCommandError = async (
|
|
1699
|
-
output: __HttpResponse,
|
|
1700
|
-
context: __SerdeContext
|
|
1701
|
-
): Promise<DeleteProgramCommandOutput> => {
|
|
1702
|
-
const parsedOutput: any = {
|
|
1703
|
-
...output,
|
|
1704
|
-
body: await parseBody(output.body, context),
|
|
1705
|
-
};
|
|
1706
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1707
|
-
let errorCode: string = "UnknownError";
|
|
1708
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1709
|
-
switch (errorCode) {
|
|
1710
|
-
default:
|
|
1711
|
-
const parsedBody = parsedOutput.body;
|
|
1712
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1713
|
-
response = {
|
|
1714
|
-
...parsedBody,
|
|
1715
|
-
name: `${errorCode}`,
|
|
1716
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1717
|
-
$fault: "client",
|
|
1718
|
-
$metadata: deserializeMetadata(output),
|
|
1719
|
-
} as any;
|
|
1720
|
-
}
|
|
1721
|
-
const message = response.message || response.Message || errorCode;
|
|
1722
|
-
response.message = message;
|
|
1723
|
-
delete response.Message;
|
|
1724
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1725
|
-
};
|
|
1726
|
-
|
|
1727
|
-
export const deserializeAws_restJson1DeleteSourceLocationCommand = async (
|
|
1728
|
-
output: __HttpResponse,
|
|
1729
|
-
context: __SerdeContext
|
|
1730
|
-
): Promise<DeleteSourceLocationCommandOutput> => {
|
|
1731
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1732
|
-
return deserializeAws_restJson1DeleteSourceLocationCommandError(output, context);
|
|
1733
|
-
}
|
|
1734
|
-
const contents: DeleteSourceLocationCommandOutput = {
|
|
1735
|
-
$metadata: deserializeMetadata(output),
|
|
1736
|
-
};
|
|
1737
|
-
await collectBody(output.body, context);
|
|
1738
|
-
return Promise.resolve(contents);
|
|
1739
|
-
};
|
|
1740
|
-
|
|
1741
|
-
const deserializeAws_restJson1DeleteSourceLocationCommandError = async (
|
|
1742
|
-
output: __HttpResponse,
|
|
1743
|
-
context: __SerdeContext
|
|
1744
|
-
): Promise<DeleteSourceLocationCommandOutput> => {
|
|
1745
|
-
const parsedOutput: any = {
|
|
1746
|
-
...output,
|
|
1747
|
-
body: await parseBody(output.body, context),
|
|
1748
|
-
};
|
|
1749
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1750
|
-
let errorCode: string = "UnknownError";
|
|
1751
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1752
|
-
switch (errorCode) {
|
|
1753
|
-
default:
|
|
1754
|
-
const parsedBody = parsedOutput.body;
|
|
1755
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1756
|
-
response = {
|
|
1757
|
-
...parsedBody,
|
|
1758
|
-
name: `${errorCode}`,
|
|
1759
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1760
|
-
$fault: "client",
|
|
1761
|
-
$metadata: deserializeMetadata(output),
|
|
1762
|
-
} as any;
|
|
1763
|
-
}
|
|
1764
|
-
const message = response.message || response.Message || errorCode;
|
|
1765
|
-
response.message = message;
|
|
1766
|
-
delete response.Message;
|
|
1767
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1768
|
-
};
|
|
1769
|
-
|
|
1770
|
-
export const deserializeAws_restJson1DeleteVodSourceCommand = async (
|
|
1771
|
-
output: __HttpResponse,
|
|
1772
|
-
context: __SerdeContext
|
|
1773
|
-
): Promise<DeleteVodSourceCommandOutput> => {
|
|
1774
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1775
|
-
return deserializeAws_restJson1DeleteVodSourceCommandError(output, context);
|
|
1776
|
-
}
|
|
1777
|
-
const contents: DeleteVodSourceCommandOutput = {
|
|
1778
|
-
$metadata: deserializeMetadata(output),
|
|
1779
|
-
};
|
|
1780
|
-
await collectBody(output.body, context);
|
|
1781
|
-
return Promise.resolve(contents);
|
|
1782
|
-
};
|
|
1783
|
-
|
|
1784
|
-
const deserializeAws_restJson1DeleteVodSourceCommandError = async (
|
|
1785
|
-
output: __HttpResponse,
|
|
1786
|
-
context: __SerdeContext
|
|
1787
|
-
): Promise<DeleteVodSourceCommandOutput> => {
|
|
1788
|
-
const parsedOutput: any = {
|
|
1789
|
-
...output,
|
|
1790
|
-
body: await parseBody(output.body, context),
|
|
1791
|
-
};
|
|
1792
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1793
|
-
let errorCode: string = "UnknownError";
|
|
1794
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1795
|
-
switch (errorCode) {
|
|
1796
|
-
default:
|
|
1797
|
-
const parsedBody = parsedOutput.body;
|
|
1798
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1799
|
-
response = {
|
|
1800
|
-
...parsedBody,
|
|
1801
|
-
name: `${errorCode}`,
|
|
1802
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1803
|
-
$fault: "client",
|
|
1804
|
-
$metadata: deserializeMetadata(output),
|
|
1805
|
-
} as any;
|
|
1806
|
-
}
|
|
1807
|
-
const message = response.message || response.Message || errorCode;
|
|
1808
|
-
response.message = message;
|
|
1809
|
-
delete response.Message;
|
|
1810
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1811
|
-
};
|
|
1812
|
-
|
|
1813
|
-
export const deserializeAws_restJson1DescribeChannelCommand = async (
|
|
1814
|
-
output: __HttpResponse,
|
|
1815
|
-
context: __SerdeContext
|
|
1816
|
-
): Promise<DescribeChannelCommandOutput> => {
|
|
1817
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1818
|
-
return deserializeAws_restJson1DescribeChannelCommandError(output, context);
|
|
1819
|
-
}
|
|
1820
|
-
const contents: DescribeChannelCommandOutput = {
|
|
1821
|
-
$metadata: deserializeMetadata(output),
|
|
1822
|
-
Arn: undefined,
|
|
1823
|
-
ChannelName: undefined,
|
|
1824
|
-
ChannelState: undefined,
|
|
1825
|
-
CreationTime: undefined,
|
|
1826
|
-
FillerSlate: undefined,
|
|
1827
|
-
LastModifiedTime: undefined,
|
|
1828
|
-
Outputs: undefined,
|
|
1829
|
-
PlaybackMode: undefined,
|
|
1830
|
-
Tags: undefined,
|
|
1831
|
-
};
|
|
1832
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1833
|
-
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1834
|
-
contents.Arn = __expectString(data.Arn);
|
|
1835
|
-
}
|
|
1836
|
-
if (data.ChannelName !== undefined && data.ChannelName !== null) {
|
|
1837
|
-
contents.ChannelName = __expectString(data.ChannelName);
|
|
1838
|
-
}
|
|
1839
|
-
if (data.ChannelState !== undefined && data.ChannelState !== null) {
|
|
1840
|
-
contents.ChannelState = __expectString(data.ChannelState);
|
|
1841
|
-
}
|
|
1842
|
-
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
1843
|
-
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
1844
|
-
}
|
|
1845
|
-
if (data.FillerSlate !== undefined && data.FillerSlate !== null) {
|
|
1846
|
-
contents.FillerSlate = deserializeAws_restJson1SlateSource(data.FillerSlate, context);
|
|
1847
|
-
}
|
|
1848
|
-
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
1849
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
1850
|
-
}
|
|
1851
|
-
if (data.Outputs !== undefined && data.Outputs !== null) {
|
|
1852
|
-
contents.Outputs = deserializeAws_restJson1ResponseOutputs(data.Outputs, context);
|
|
1853
|
-
}
|
|
1854
|
-
if (data.PlaybackMode !== undefined && data.PlaybackMode !== null) {
|
|
1855
|
-
contents.PlaybackMode = __expectString(data.PlaybackMode);
|
|
1856
|
-
}
|
|
1857
|
-
if (data.tags !== undefined && data.tags !== null) {
|
|
1858
|
-
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
1859
|
-
}
|
|
1860
|
-
return Promise.resolve(contents);
|
|
1861
|
-
};
|
|
1862
|
-
|
|
1863
|
-
const deserializeAws_restJson1DescribeChannelCommandError = async (
|
|
1864
|
-
output: __HttpResponse,
|
|
1865
|
-
context: __SerdeContext
|
|
1866
|
-
): Promise<DescribeChannelCommandOutput> => {
|
|
1867
|
-
const parsedOutput: any = {
|
|
1868
|
-
...output,
|
|
1869
|
-
body: await parseBody(output.body, context),
|
|
1870
|
-
};
|
|
1871
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1872
|
-
let errorCode: string = "UnknownError";
|
|
1873
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1874
|
-
switch (errorCode) {
|
|
1875
|
-
default:
|
|
1876
|
-
const parsedBody = parsedOutput.body;
|
|
1877
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1878
|
-
response = {
|
|
1879
|
-
...parsedBody,
|
|
1880
|
-
name: `${errorCode}`,
|
|
1881
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1882
|
-
$fault: "client",
|
|
1883
|
-
$metadata: deserializeMetadata(output),
|
|
1884
|
-
} as any;
|
|
1885
|
-
}
|
|
1886
|
-
const message = response.message || response.Message || errorCode;
|
|
1887
|
-
response.message = message;
|
|
1888
|
-
delete response.Message;
|
|
1889
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1890
|
-
};
|
|
1891
|
-
|
|
1892
|
-
export const deserializeAws_restJson1DescribeProgramCommand = async (
|
|
1893
|
-
output: __HttpResponse,
|
|
1894
|
-
context: __SerdeContext
|
|
1895
|
-
): Promise<DescribeProgramCommandOutput> => {
|
|
1896
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1897
|
-
return deserializeAws_restJson1DescribeProgramCommandError(output, context);
|
|
1898
|
-
}
|
|
1899
|
-
const contents: DescribeProgramCommandOutput = {
|
|
1900
|
-
$metadata: deserializeMetadata(output),
|
|
1901
|
-
AdBreaks: undefined,
|
|
1902
|
-
Arn: undefined,
|
|
1903
|
-
ChannelName: undefined,
|
|
1904
|
-
CreationTime: undefined,
|
|
1905
|
-
ProgramName: undefined,
|
|
1906
|
-
ScheduledStartTime: undefined,
|
|
1907
|
-
SourceLocationName: undefined,
|
|
1908
|
-
VodSourceName: undefined,
|
|
1909
|
-
};
|
|
1910
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1911
|
-
if (data.AdBreaks !== undefined && data.AdBreaks !== null) {
|
|
1912
|
-
contents.AdBreaks = deserializeAws_restJson1__listOfAdBreak(data.AdBreaks, context);
|
|
1913
|
-
}
|
|
1914
|
-
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1915
|
-
contents.Arn = __expectString(data.Arn);
|
|
1916
|
-
}
|
|
1917
|
-
if (data.ChannelName !== undefined && data.ChannelName !== null) {
|
|
1918
|
-
contents.ChannelName = __expectString(data.ChannelName);
|
|
1919
|
-
}
|
|
1920
|
-
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
1921
|
-
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
1922
|
-
}
|
|
1923
|
-
if (data.ProgramName !== undefined && data.ProgramName !== null) {
|
|
1924
|
-
contents.ProgramName = __expectString(data.ProgramName);
|
|
1925
|
-
}
|
|
1926
|
-
if (data.ScheduledStartTime !== undefined && data.ScheduledStartTime !== null) {
|
|
1927
|
-
contents.ScheduledStartTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.ScheduledStartTime)));
|
|
1928
|
-
}
|
|
1929
|
-
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
1930
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
1931
|
-
}
|
|
1932
|
-
if (data.VodSourceName !== undefined && data.VodSourceName !== null) {
|
|
1933
|
-
contents.VodSourceName = __expectString(data.VodSourceName);
|
|
1934
|
-
}
|
|
1935
|
-
return Promise.resolve(contents);
|
|
1936
|
-
};
|
|
1937
|
-
|
|
1938
|
-
const deserializeAws_restJson1DescribeProgramCommandError = async (
|
|
1939
|
-
output: __HttpResponse,
|
|
1940
|
-
context: __SerdeContext
|
|
1941
|
-
): Promise<DescribeProgramCommandOutput> => {
|
|
1942
|
-
const parsedOutput: any = {
|
|
1943
|
-
...output,
|
|
1944
|
-
body: await parseBody(output.body, context),
|
|
1945
|
-
};
|
|
1946
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1947
|
-
let errorCode: string = "UnknownError";
|
|
1948
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1949
|
-
switch (errorCode) {
|
|
1950
|
-
default:
|
|
1951
|
-
const parsedBody = parsedOutput.body;
|
|
1952
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1953
|
-
response = {
|
|
1954
|
-
...parsedBody,
|
|
1955
|
-
name: `${errorCode}`,
|
|
1956
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1957
|
-
$fault: "client",
|
|
1958
|
-
$metadata: deserializeMetadata(output),
|
|
1959
|
-
} as any;
|
|
1960
|
-
}
|
|
1961
|
-
const message = response.message || response.Message || errorCode;
|
|
1962
|
-
response.message = message;
|
|
1963
|
-
delete response.Message;
|
|
1964
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1965
|
-
};
|
|
1966
|
-
|
|
1967
|
-
export const deserializeAws_restJson1DescribeSourceLocationCommand = async (
|
|
1968
|
-
output: __HttpResponse,
|
|
1969
|
-
context: __SerdeContext
|
|
1970
|
-
): Promise<DescribeSourceLocationCommandOutput> => {
|
|
1971
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1972
|
-
return deserializeAws_restJson1DescribeSourceLocationCommandError(output, context);
|
|
1973
|
-
}
|
|
1974
|
-
const contents: DescribeSourceLocationCommandOutput = {
|
|
1975
|
-
$metadata: deserializeMetadata(output),
|
|
1976
|
-
AccessConfiguration: undefined,
|
|
1977
|
-
Arn: undefined,
|
|
1978
|
-
CreationTime: undefined,
|
|
1979
|
-
DefaultSegmentDeliveryConfiguration: undefined,
|
|
1980
|
-
HttpConfiguration: undefined,
|
|
1981
|
-
LastModifiedTime: undefined,
|
|
1982
|
-
SourceLocationName: undefined,
|
|
1983
|
-
Tags: undefined,
|
|
1984
|
-
};
|
|
1985
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1986
|
-
if (data.AccessConfiguration !== undefined && data.AccessConfiguration !== null) {
|
|
1987
|
-
contents.AccessConfiguration = deserializeAws_restJson1AccessConfiguration(data.AccessConfiguration, context);
|
|
1988
|
-
}
|
|
1989
|
-
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1990
|
-
contents.Arn = __expectString(data.Arn);
|
|
1991
|
-
}
|
|
1992
|
-
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
1993
|
-
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
1994
|
-
}
|
|
1995
|
-
if (data.DefaultSegmentDeliveryConfiguration !== undefined && data.DefaultSegmentDeliveryConfiguration !== null) {
|
|
1996
|
-
contents.DefaultSegmentDeliveryConfiguration = deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(
|
|
1997
|
-
data.DefaultSegmentDeliveryConfiguration,
|
|
1998
|
-
context
|
|
1999
|
-
);
|
|
2000
|
-
}
|
|
2001
|
-
if (data.HttpConfiguration !== undefined && data.HttpConfiguration !== null) {
|
|
2002
|
-
contents.HttpConfiguration = deserializeAws_restJson1HttpConfiguration(data.HttpConfiguration, context);
|
|
2003
|
-
}
|
|
2004
|
-
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
2005
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
2006
|
-
}
|
|
2007
|
-
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
2008
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
2009
|
-
}
|
|
2010
|
-
if (data.tags !== undefined && data.tags !== null) {
|
|
2011
|
-
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
2012
|
-
}
|
|
2013
|
-
return Promise.resolve(contents);
|
|
2014
|
-
};
|
|
2015
|
-
|
|
2016
|
-
const deserializeAws_restJson1DescribeSourceLocationCommandError = async (
|
|
2017
|
-
output: __HttpResponse,
|
|
2018
|
-
context: __SerdeContext
|
|
2019
|
-
): Promise<DescribeSourceLocationCommandOutput> => {
|
|
2020
|
-
const parsedOutput: any = {
|
|
2021
|
-
...output,
|
|
2022
|
-
body: await parseBody(output.body, context),
|
|
2023
|
-
};
|
|
2024
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2025
|
-
let errorCode: string = "UnknownError";
|
|
2026
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2027
|
-
switch (errorCode) {
|
|
2028
|
-
default:
|
|
2029
|
-
const parsedBody = parsedOutput.body;
|
|
2030
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2031
|
-
response = {
|
|
2032
|
-
...parsedBody,
|
|
2033
|
-
name: `${errorCode}`,
|
|
2034
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2035
|
-
$fault: "client",
|
|
2036
|
-
$metadata: deserializeMetadata(output),
|
|
2037
|
-
} as any;
|
|
2038
|
-
}
|
|
2039
|
-
const message = response.message || response.Message || errorCode;
|
|
2040
|
-
response.message = message;
|
|
2041
|
-
delete response.Message;
|
|
2042
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2043
|
-
};
|
|
2044
|
-
|
|
2045
|
-
export const deserializeAws_restJson1DescribeVodSourceCommand = async (
|
|
2046
|
-
output: __HttpResponse,
|
|
2047
|
-
context: __SerdeContext
|
|
2048
|
-
): Promise<DescribeVodSourceCommandOutput> => {
|
|
2049
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2050
|
-
return deserializeAws_restJson1DescribeVodSourceCommandError(output, context);
|
|
2051
|
-
}
|
|
2052
|
-
const contents: DescribeVodSourceCommandOutput = {
|
|
2053
|
-
$metadata: deserializeMetadata(output),
|
|
2054
|
-
Arn: undefined,
|
|
2055
|
-
CreationTime: undefined,
|
|
2056
|
-
HttpPackageConfigurations: undefined,
|
|
2057
|
-
LastModifiedTime: undefined,
|
|
2058
|
-
SourceLocationName: undefined,
|
|
2059
|
-
Tags: undefined,
|
|
2060
|
-
VodSourceName: undefined,
|
|
2061
|
-
};
|
|
2062
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2063
|
-
if (data.Arn !== undefined && data.Arn !== null) {
|
|
2064
|
-
contents.Arn = __expectString(data.Arn);
|
|
2065
|
-
}
|
|
2066
|
-
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
2067
|
-
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
2068
|
-
}
|
|
2069
|
-
if (data.HttpPackageConfigurations !== undefined && data.HttpPackageConfigurations !== null) {
|
|
2070
|
-
contents.HttpPackageConfigurations = deserializeAws_restJson1HttpPackageConfigurations(
|
|
2071
|
-
data.HttpPackageConfigurations,
|
|
2072
|
-
context
|
|
2073
|
-
);
|
|
2074
|
-
}
|
|
2075
|
-
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
2076
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
2077
|
-
}
|
|
2078
|
-
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
2079
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
2080
|
-
}
|
|
2081
|
-
if (data.tags !== undefined && data.tags !== null) {
|
|
2082
|
-
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
2083
|
-
}
|
|
2084
|
-
if (data.VodSourceName !== undefined && data.VodSourceName !== null) {
|
|
2085
|
-
contents.VodSourceName = __expectString(data.VodSourceName);
|
|
2086
|
-
}
|
|
2087
|
-
return Promise.resolve(contents);
|
|
2088
|
-
};
|
|
2089
|
-
|
|
2090
|
-
const deserializeAws_restJson1DescribeVodSourceCommandError = async (
|
|
2091
|
-
output: __HttpResponse,
|
|
2092
|
-
context: __SerdeContext
|
|
2093
|
-
): Promise<DescribeVodSourceCommandOutput> => {
|
|
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
|
-
default:
|
|
2103
|
-
const parsedBody = parsedOutput.body;
|
|
2104
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2105
|
-
response = {
|
|
2106
|
-
...parsedBody,
|
|
2107
|
-
name: `${errorCode}`,
|
|
2108
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2109
|
-
$fault: "client",
|
|
2110
|
-
$metadata: deserializeMetadata(output),
|
|
2111
|
-
} as any;
|
|
2112
|
-
}
|
|
2113
|
-
const message = response.message || response.Message || errorCode;
|
|
2114
|
-
response.message = message;
|
|
2115
|
-
delete response.Message;
|
|
2116
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2117
|
-
};
|
|
2118
|
-
|
|
2119
|
-
export const deserializeAws_restJson1GetChannelPolicyCommand = async (
|
|
2120
|
-
output: __HttpResponse,
|
|
2121
|
-
context: __SerdeContext
|
|
2122
|
-
): Promise<GetChannelPolicyCommandOutput> => {
|
|
2123
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2124
|
-
return deserializeAws_restJson1GetChannelPolicyCommandError(output, context);
|
|
2125
|
-
}
|
|
2126
|
-
const contents: GetChannelPolicyCommandOutput = {
|
|
2127
|
-
$metadata: deserializeMetadata(output),
|
|
2128
|
-
Policy: undefined,
|
|
2129
|
-
};
|
|
2130
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2131
|
-
if (data.Policy !== undefined && data.Policy !== null) {
|
|
2132
|
-
contents.Policy = __expectString(data.Policy);
|
|
2133
|
-
}
|
|
2134
|
-
return Promise.resolve(contents);
|
|
2135
|
-
};
|
|
2136
|
-
|
|
2137
|
-
const deserializeAws_restJson1GetChannelPolicyCommandError = async (
|
|
2138
|
-
output: __HttpResponse,
|
|
2139
|
-
context: __SerdeContext
|
|
2140
|
-
): Promise<GetChannelPolicyCommandOutput> => {
|
|
2141
|
-
const parsedOutput: any = {
|
|
2142
|
-
...output,
|
|
2143
|
-
body: await parseBody(output.body, context),
|
|
2144
|
-
};
|
|
2145
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2146
|
-
let errorCode: string = "UnknownError";
|
|
2147
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2148
|
-
switch (errorCode) {
|
|
2149
|
-
default:
|
|
2150
|
-
const parsedBody = parsedOutput.body;
|
|
2151
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2152
|
-
response = {
|
|
2153
|
-
...parsedBody,
|
|
2154
|
-
name: `${errorCode}`,
|
|
2155
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2156
|
-
$fault: "client",
|
|
2157
|
-
$metadata: deserializeMetadata(output),
|
|
2158
|
-
} as any;
|
|
2159
|
-
}
|
|
2160
|
-
const message = response.message || response.Message || errorCode;
|
|
2161
|
-
response.message = message;
|
|
2162
|
-
delete response.Message;
|
|
2163
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2164
|
-
};
|
|
2165
|
-
|
|
2166
|
-
export const deserializeAws_restJson1GetChannelScheduleCommand = async (
|
|
2167
|
-
output: __HttpResponse,
|
|
2168
|
-
context: __SerdeContext
|
|
2169
|
-
): Promise<GetChannelScheduleCommandOutput> => {
|
|
2170
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2171
|
-
return deserializeAws_restJson1GetChannelScheduleCommandError(output, context);
|
|
2172
|
-
}
|
|
2173
|
-
const contents: GetChannelScheduleCommandOutput = {
|
|
2174
|
-
$metadata: deserializeMetadata(output),
|
|
2175
|
-
Items: undefined,
|
|
2176
|
-
NextToken: undefined,
|
|
2177
|
-
};
|
|
2178
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2179
|
-
if (data.Items !== undefined && data.Items !== null) {
|
|
2180
|
-
contents.Items = deserializeAws_restJson1__listOfScheduleEntry(data.Items, context);
|
|
2181
|
-
}
|
|
2182
|
-
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2183
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
2184
|
-
}
|
|
2185
|
-
return Promise.resolve(contents);
|
|
2186
|
-
};
|
|
2187
|
-
|
|
2188
|
-
const deserializeAws_restJson1GetChannelScheduleCommandError = async (
|
|
2189
|
-
output: __HttpResponse,
|
|
2190
|
-
context: __SerdeContext
|
|
2191
|
-
): Promise<GetChannelScheduleCommandOutput> => {
|
|
2192
|
-
const parsedOutput: any = {
|
|
2193
|
-
...output,
|
|
2194
|
-
body: await parseBody(output.body, context),
|
|
2195
|
-
};
|
|
2196
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2197
|
-
let errorCode: string = "UnknownError";
|
|
2198
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2199
|
-
switch (errorCode) {
|
|
2200
|
-
default:
|
|
2201
|
-
const parsedBody = parsedOutput.body;
|
|
2202
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2203
|
-
response = {
|
|
2204
|
-
...parsedBody,
|
|
2205
|
-
name: `${errorCode}`,
|
|
2206
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2207
|
-
$fault: "client",
|
|
2208
|
-
$metadata: deserializeMetadata(output),
|
|
2209
|
-
} as any;
|
|
2210
|
-
}
|
|
2211
|
-
const message = response.message || response.Message || errorCode;
|
|
2212
|
-
response.message = message;
|
|
2213
|
-
delete response.Message;
|
|
2214
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2215
|
-
};
|
|
2216
|
-
|
|
2217
|
-
export const deserializeAws_restJson1GetPlaybackConfigurationCommand = async (
|
|
2218
|
-
output: __HttpResponse,
|
|
2219
|
-
context: __SerdeContext
|
|
2220
|
-
): Promise<GetPlaybackConfigurationCommandOutput> => {
|
|
2221
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2222
|
-
return deserializeAws_restJson1GetPlaybackConfigurationCommandError(output, context);
|
|
2223
|
-
}
|
|
2224
|
-
const contents: GetPlaybackConfigurationCommandOutput = {
|
|
2225
|
-
$metadata: deserializeMetadata(output),
|
|
2226
|
-
AdDecisionServerUrl: undefined,
|
|
2227
|
-
AvailSuppression: undefined,
|
|
2228
|
-
Bumper: undefined,
|
|
2229
|
-
CdnConfiguration: undefined,
|
|
2230
|
-
ConfigurationAliases: undefined,
|
|
2231
|
-
DashConfiguration: undefined,
|
|
2232
|
-
HlsConfiguration: undefined,
|
|
2233
|
-
LivePreRollConfiguration: undefined,
|
|
2234
|
-
ManifestProcessingRules: undefined,
|
|
2235
|
-
Name: undefined,
|
|
2236
|
-
PersonalizationThresholdSeconds: undefined,
|
|
2237
|
-
PlaybackConfigurationArn: undefined,
|
|
2238
|
-
PlaybackEndpointPrefix: undefined,
|
|
2239
|
-
SessionInitializationEndpointPrefix: undefined,
|
|
2240
|
-
SlateAdUrl: undefined,
|
|
2241
|
-
Tags: undefined,
|
|
2242
|
-
TranscodeProfileName: undefined,
|
|
2243
|
-
VideoContentSourceUrl: undefined,
|
|
2244
|
-
};
|
|
2245
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2246
|
-
if (data.AdDecisionServerUrl !== undefined && data.AdDecisionServerUrl !== null) {
|
|
2247
|
-
contents.AdDecisionServerUrl = __expectString(data.AdDecisionServerUrl);
|
|
2248
|
-
}
|
|
2249
|
-
if (data.AvailSuppression !== undefined && data.AvailSuppression !== null) {
|
|
2250
|
-
contents.AvailSuppression = deserializeAws_restJson1AvailSuppression(data.AvailSuppression, context);
|
|
2251
|
-
}
|
|
2252
|
-
if (data.Bumper !== undefined && data.Bumper !== null) {
|
|
2253
|
-
contents.Bumper = deserializeAws_restJson1Bumper(data.Bumper, context);
|
|
2254
|
-
}
|
|
2255
|
-
if (data.CdnConfiguration !== undefined && data.CdnConfiguration !== null) {
|
|
2256
|
-
contents.CdnConfiguration = deserializeAws_restJson1CdnConfiguration(data.CdnConfiguration, context);
|
|
2257
|
-
}
|
|
2258
|
-
if (data.ConfigurationAliases !== undefined && data.ConfigurationAliases !== null) {
|
|
2259
|
-
contents.ConfigurationAliases = deserializeAws_restJson1ConfigurationAliasesResponse(
|
|
2260
|
-
data.ConfigurationAliases,
|
|
2261
|
-
context
|
|
2262
|
-
);
|
|
2263
|
-
}
|
|
2264
|
-
if (data.DashConfiguration !== undefined && data.DashConfiguration !== null) {
|
|
2265
|
-
contents.DashConfiguration = deserializeAws_restJson1DashConfiguration(data.DashConfiguration, context);
|
|
2266
|
-
}
|
|
2267
|
-
if (data.HlsConfiguration !== undefined && data.HlsConfiguration !== null) {
|
|
2268
|
-
contents.HlsConfiguration = deserializeAws_restJson1HlsConfiguration(data.HlsConfiguration, context);
|
|
2269
|
-
}
|
|
2270
|
-
if (data.LivePreRollConfiguration !== undefined && data.LivePreRollConfiguration !== null) {
|
|
2271
|
-
contents.LivePreRollConfiguration = deserializeAws_restJson1LivePreRollConfiguration(
|
|
2272
|
-
data.LivePreRollConfiguration,
|
|
2273
|
-
context
|
|
2274
|
-
);
|
|
2275
|
-
}
|
|
2276
|
-
if (data.ManifestProcessingRules !== undefined && data.ManifestProcessingRules !== null) {
|
|
2277
|
-
contents.ManifestProcessingRules = deserializeAws_restJson1ManifestProcessingRules(
|
|
2278
|
-
data.ManifestProcessingRules,
|
|
2279
|
-
context
|
|
2280
|
-
);
|
|
2281
|
-
}
|
|
2282
|
-
if (data.Name !== undefined && data.Name !== null) {
|
|
2283
|
-
contents.Name = __expectString(data.Name);
|
|
2284
|
-
}
|
|
2285
|
-
if (data.PersonalizationThresholdSeconds !== undefined && data.PersonalizationThresholdSeconds !== null) {
|
|
2286
|
-
contents.PersonalizationThresholdSeconds = __expectInt32(data.PersonalizationThresholdSeconds);
|
|
2287
|
-
}
|
|
2288
|
-
if (data.PlaybackConfigurationArn !== undefined && data.PlaybackConfigurationArn !== null) {
|
|
2289
|
-
contents.PlaybackConfigurationArn = __expectString(data.PlaybackConfigurationArn);
|
|
2290
|
-
}
|
|
2291
|
-
if (data.PlaybackEndpointPrefix !== undefined && data.PlaybackEndpointPrefix !== null) {
|
|
2292
|
-
contents.PlaybackEndpointPrefix = __expectString(data.PlaybackEndpointPrefix);
|
|
2293
|
-
}
|
|
2294
|
-
if (data.SessionInitializationEndpointPrefix !== undefined && data.SessionInitializationEndpointPrefix !== null) {
|
|
2295
|
-
contents.SessionInitializationEndpointPrefix = __expectString(data.SessionInitializationEndpointPrefix);
|
|
2296
|
-
}
|
|
2297
|
-
if (data.SlateAdUrl !== undefined && data.SlateAdUrl !== null) {
|
|
2298
|
-
contents.SlateAdUrl = __expectString(data.SlateAdUrl);
|
|
2299
|
-
}
|
|
2300
|
-
if (data.tags !== undefined && data.tags !== null) {
|
|
2301
|
-
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
2302
|
-
}
|
|
2303
|
-
if (data.TranscodeProfileName !== undefined && data.TranscodeProfileName !== null) {
|
|
2304
|
-
contents.TranscodeProfileName = __expectString(data.TranscodeProfileName);
|
|
2305
|
-
}
|
|
2306
|
-
if (data.VideoContentSourceUrl !== undefined && data.VideoContentSourceUrl !== null) {
|
|
2307
|
-
contents.VideoContentSourceUrl = __expectString(data.VideoContentSourceUrl);
|
|
2308
|
-
}
|
|
2309
|
-
return Promise.resolve(contents);
|
|
2310
|
-
};
|
|
2311
|
-
|
|
2312
|
-
const deserializeAws_restJson1GetPlaybackConfigurationCommandError = async (
|
|
2313
|
-
output: __HttpResponse,
|
|
2314
|
-
context: __SerdeContext
|
|
2315
|
-
): Promise<GetPlaybackConfigurationCommandOutput> => {
|
|
2316
|
-
const parsedOutput: any = {
|
|
2317
|
-
...output,
|
|
2318
|
-
body: await parseBody(output.body, context),
|
|
2319
|
-
};
|
|
2320
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2321
|
-
let errorCode: string = "UnknownError";
|
|
2322
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2323
|
-
switch (errorCode) {
|
|
2324
|
-
default:
|
|
2325
|
-
const parsedBody = parsedOutput.body;
|
|
2326
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2327
|
-
response = {
|
|
2328
|
-
...parsedBody,
|
|
2329
|
-
name: `${errorCode}`,
|
|
2330
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2331
|
-
$fault: "client",
|
|
2332
|
-
$metadata: deserializeMetadata(output),
|
|
2333
|
-
} as any;
|
|
2334
|
-
}
|
|
2335
|
-
const message = response.message || response.Message || errorCode;
|
|
2336
|
-
response.message = message;
|
|
2337
|
-
delete response.Message;
|
|
2338
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2339
|
-
};
|
|
2340
|
-
|
|
2341
|
-
export const deserializeAws_restJson1ListAlertsCommand = async (
|
|
2342
|
-
output: __HttpResponse,
|
|
2343
|
-
context: __SerdeContext
|
|
2344
|
-
): Promise<ListAlertsCommandOutput> => {
|
|
2345
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2346
|
-
return deserializeAws_restJson1ListAlertsCommandError(output, context);
|
|
2347
|
-
}
|
|
2348
|
-
const contents: ListAlertsCommandOutput = {
|
|
2349
|
-
$metadata: deserializeMetadata(output),
|
|
2350
|
-
Items: undefined,
|
|
2351
|
-
NextToken: undefined,
|
|
2352
|
-
};
|
|
2353
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2354
|
-
if (data.Items !== undefined && data.Items !== null) {
|
|
2355
|
-
contents.Items = deserializeAws_restJson1__listOfAlert(data.Items, context);
|
|
2356
|
-
}
|
|
2357
|
-
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2358
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
2359
|
-
}
|
|
2360
|
-
return Promise.resolve(contents);
|
|
2361
|
-
};
|
|
2362
|
-
|
|
2363
|
-
const deserializeAws_restJson1ListAlertsCommandError = async (
|
|
2364
|
-
output: __HttpResponse,
|
|
2365
|
-
context: __SerdeContext
|
|
2366
|
-
): Promise<ListAlertsCommandOutput> => {
|
|
2367
|
-
const parsedOutput: any = {
|
|
2368
|
-
...output,
|
|
2369
|
-
body: await parseBody(output.body, context),
|
|
2370
|
-
};
|
|
2371
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2372
|
-
let errorCode: string = "UnknownError";
|
|
2373
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2374
|
-
switch (errorCode) {
|
|
2375
|
-
default:
|
|
2376
|
-
const parsedBody = parsedOutput.body;
|
|
2377
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2378
|
-
response = {
|
|
2379
|
-
...parsedBody,
|
|
2380
|
-
name: `${errorCode}`,
|
|
2381
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2382
|
-
$fault: "client",
|
|
2383
|
-
$metadata: deserializeMetadata(output),
|
|
2384
|
-
} as any;
|
|
2385
|
-
}
|
|
2386
|
-
const message = response.message || response.Message || errorCode;
|
|
2387
|
-
response.message = message;
|
|
2388
|
-
delete response.Message;
|
|
2389
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2390
|
-
};
|
|
2391
|
-
|
|
2392
|
-
export const deserializeAws_restJson1ListChannelsCommand = async (
|
|
2393
|
-
output: __HttpResponse,
|
|
2394
|
-
context: __SerdeContext
|
|
2395
|
-
): Promise<ListChannelsCommandOutput> => {
|
|
2396
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2397
|
-
return deserializeAws_restJson1ListChannelsCommandError(output, context);
|
|
2398
|
-
}
|
|
2399
|
-
const contents: ListChannelsCommandOutput = {
|
|
2400
|
-
$metadata: deserializeMetadata(output),
|
|
2401
|
-
Items: undefined,
|
|
2402
|
-
NextToken: undefined,
|
|
2403
|
-
};
|
|
2404
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2405
|
-
if (data.Items !== undefined && data.Items !== null) {
|
|
2406
|
-
contents.Items = deserializeAws_restJson1__listOfChannel(data.Items, context);
|
|
2407
|
-
}
|
|
2408
|
-
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2409
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
2410
|
-
}
|
|
2411
|
-
return Promise.resolve(contents);
|
|
2412
|
-
};
|
|
2413
|
-
|
|
2414
|
-
const deserializeAws_restJson1ListChannelsCommandError = async (
|
|
2415
|
-
output: __HttpResponse,
|
|
2416
|
-
context: __SerdeContext
|
|
2417
|
-
): Promise<ListChannelsCommandOutput> => {
|
|
2418
|
-
const parsedOutput: any = {
|
|
2419
|
-
...output,
|
|
2420
|
-
body: await parseBody(output.body, context),
|
|
2421
|
-
};
|
|
2422
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2423
|
-
let errorCode: string = "UnknownError";
|
|
2424
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2425
|
-
switch (errorCode) {
|
|
2426
|
-
default:
|
|
2427
|
-
const parsedBody = parsedOutput.body;
|
|
2428
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2429
|
-
response = {
|
|
2430
|
-
...parsedBody,
|
|
2431
|
-
name: `${errorCode}`,
|
|
2432
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2433
|
-
$fault: "client",
|
|
2434
|
-
$metadata: deserializeMetadata(output),
|
|
2435
|
-
} as any;
|
|
2436
|
-
}
|
|
2437
|
-
const message = response.message || response.Message || errorCode;
|
|
2438
|
-
response.message = message;
|
|
2439
|
-
delete response.Message;
|
|
2440
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2441
|
-
};
|
|
2442
|
-
|
|
2443
|
-
export const deserializeAws_restJson1ListPlaybackConfigurationsCommand = async (
|
|
2444
|
-
output: __HttpResponse,
|
|
2445
|
-
context: __SerdeContext
|
|
2446
|
-
): Promise<ListPlaybackConfigurationsCommandOutput> => {
|
|
2447
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2448
|
-
return deserializeAws_restJson1ListPlaybackConfigurationsCommandError(output, context);
|
|
2449
|
-
}
|
|
2450
|
-
const contents: ListPlaybackConfigurationsCommandOutput = {
|
|
2451
|
-
$metadata: deserializeMetadata(output),
|
|
2452
|
-
Items: undefined,
|
|
2453
|
-
NextToken: undefined,
|
|
2454
|
-
};
|
|
2455
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2456
|
-
if (data.Items !== undefined && data.Items !== null) {
|
|
2457
|
-
contents.Items = deserializeAws_restJson1__listOfPlaybackConfiguration(data.Items, context);
|
|
2458
|
-
}
|
|
2459
|
-
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2460
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
2461
|
-
}
|
|
2462
|
-
return Promise.resolve(contents);
|
|
2463
|
-
};
|
|
2464
|
-
|
|
2465
|
-
const deserializeAws_restJson1ListPlaybackConfigurationsCommandError = async (
|
|
2466
|
-
output: __HttpResponse,
|
|
2467
|
-
context: __SerdeContext
|
|
2468
|
-
): Promise<ListPlaybackConfigurationsCommandOutput> => {
|
|
2469
|
-
const parsedOutput: any = {
|
|
2470
|
-
...output,
|
|
2471
|
-
body: await parseBody(output.body, context),
|
|
2472
|
-
};
|
|
2473
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2474
|
-
let errorCode: string = "UnknownError";
|
|
2475
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2476
|
-
switch (errorCode) {
|
|
2477
|
-
default:
|
|
2478
|
-
const parsedBody = parsedOutput.body;
|
|
2479
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2480
|
-
response = {
|
|
2481
|
-
...parsedBody,
|
|
2482
|
-
name: `${errorCode}`,
|
|
2483
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2484
|
-
$fault: "client",
|
|
2485
|
-
$metadata: deserializeMetadata(output),
|
|
2486
|
-
} as any;
|
|
2487
|
-
}
|
|
2488
|
-
const message = response.message || response.Message || errorCode;
|
|
2489
|
-
response.message = message;
|
|
2490
|
-
delete response.Message;
|
|
2491
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2492
|
-
};
|
|
2493
|
-
|
|
2494
|
-
export const deserializeAws_restJson1ListSourceLocationsCommand = async (
|
|
2495
|
-
output: __HttpResponse,
|
|
2496
|
-
context: __SerdeContext
|
|
2497
|
-
): Promise<ListSourceLocationsCommandOutput> => {
|
|
2498
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2499
|
-
return deserializeAws_restJson1ListSourceLocationsCommandError(output, context);
|
|
2500
|
-
}
|
|
2501
|
-
const contents: ListSourceLocationsCommandOutput = {
|
|
2502
|
-
$metadata: deserializeMetadata(output),
|
|
2503
|
-
Items: undefined,
|
|
2504
|
-
NextToken: undefined,
|
|
2505
|
-
};
|
|
2506
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2507
|
-
if (data.Items !== undefined && data.Items !== null) {
|
|
2508
|
-
contents.Items = deserializeAws_restJson1__listOfSourceLocation(data.Items, context);
|
|
2509
|
-
}
|
|
2510
|
-
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2511
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
2512
|
-
}
|
|
2513
|
-
return Promise.resolve(contents);
|
|
2514
|
-
};
|
|
2515
|
-
|
|
2516
|
-
const deserializeAws_restJson1ListSourceLocationsCommandError = async (
|
|
2517
|
-
output: __HttpResponse,
|
|
2518
|
-
context: __SerdeContext
|
|
2519
|
-
): Promise<ListSourceLocationsCommandOutput> => {
|
|
2520
|
-
const parsedOutput: any = {
|
|
2521
|
-
...output,
|
|
2522
|
-
body: await parseBody(output.body, context),
|
|
2523
|
-
};
|
|
2524
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2525
|
-
let errorCode: string = "UnknownError";
|
|
2526
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2527
|
-
switch (errorCode) {
|
|
2528
|
-
default:
|
|
2529
|
-
const parsedBody = parsedOutput.body;
|
|
2530
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2531
|
-
response = {
|
|
2532
|
-
...parsedBody,
|
|
2533
|
-
name: `${errorCode}`,
|
|
2534
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2535
|
-
$fault: "client",
|
|
2536
|
-
$metadata: deserializeMetadata(output),
|
|
2537
|
-
} as any;
|
|
2538
|
-
}
|
|
2539
|
-
const message = response.message || response.Message || errorCode;
|
|
2540
|
-
response.message = message;
|
|
2541
|
-
delete response.Message;
|
|
2542
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2543
|
-
};
|
|
2544
|
-
|
|
2545
|
-
export const deserializeAws_restJson1ListTagsForResourceCommand = async (
|
|
2546
|
-
output: __HttpResponse,
|
|
2547
|
-
context: __SerdeContext
|
|
2548
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
2549
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2550
|
-
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
2551
|
-
}
|
|
2552
|
-
const contents: ListTagsForResourceCommandOutput = {
|
|
2553
|
-
$metadata: deserializeMetadata(output),
|
|
2554
|
-
Tags: undefined,
|
|
2555
|
-
};
|
|
2556
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2557
|
-
if (data.tags !== undefined && data.tags !== null) {
|
|
2558
|
-
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
2559
|
-
}
|
|
2560
|
-
return Promise.resolve(contents);
|
|
2561
|
-
};
|
|
2562
|
-
|
|
2563
|
-
const deserializeAws_restJson1ListTagsForResourceCommandError = async (
|
|
2564
|
-
output: __HttpResponse,
|
|
2565
|
-
context: __SerdeContext
|
|
2566
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
2567
|
-
const parsedOutput: any = {
|
|
2568
|
-
...output,
|
|
2569
|
-
body: await parseBody(output.body, context),
|
|
2570
|
-
};
|
|
2571
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2572
|
-
let errorCode: string = "UnknownError";
|
|
2573
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2574
|
-
switch (errorCode) {
|
|
2575
|
-
case "BadRequestException":
|
|
2576
|
-
case "com.amazonaws.mediatailor#BadRequestException":
|
|
2577
|
-
response = {
|
|
2578
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2579
|
-
name: errorCode,
|
|
2580
|
-
$metadata: deserializeMetadata(output),
|
|
2581
|
-
};
|
|
2582
|
-
break;
|
|
2583
|
-
default:
|
|
2584
|
-
const parsedBody = parsedOutput.body;
|
|
2585
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2586
|
-
response = {
|
|
2587
|
-
...parsedBody,
|
|
2588
|
-
name: `${errorCode}`,
|
|
2589
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2590
|
-
$fault: "client",
|
|
2591
|
-
$metadata: deserializeMetadata(output),
|
|
2592
|
-
} as any;
|
|
2593
|
-
}
|
|
2594
|
-
const message = response.message || response.Message || errorCode;
|
|
2595
|
-
response.message = message;
|
|
2596
|
-
delete response.Message;
|
|
2597
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2598
|
-
};
|
|
2599
|
-
|
|
2600
|
-
export const deserializeAws_restJson1ListVodSourcesCommand = async (
|
|
2601
|
-
output: __HttpResponse,
|
|
2602
|
-
context: __SerdeContext
|
|
2603
|
-
): Promise<ListVodSourcesCommandOutput> => {
|
|
2604
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2605
|
-
return deserializeAws_restJson1ListVodSourcesCommandError(output, context);
|
|
2606
|
-
}
|
|
2607
|
-
const contents: ListVodSourcesCommandOutput = {
|
|
2608
|
-
$metadata: deserializeMetadata(output),
|
|
2609
|
-
Items: undefined,
|
|
2610
|
-
NextToken: undefined,
|
|
2611
|
-
};
|
|
2612
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2613
|
-
if (data.Items !== undefined && data.Items !== null) {
|
|
2614
|
-
contents.Items = deserializeAws_restJson1__listOfVodSource(data.Items, context);
|
|
2615
|
-
}
|
|
2616
|
-
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2617
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
2618
|
-
}
|
|
2619
|
-
return Promise.resolve(contents);
|
|
2620
|
-
};
|
|
2621
|
-
|
|
2622
|
-
const deserializeAws_restJson1ListVodSourcesCommandError = async (
|
|
2623
|
-
output: __HttpResponse,
|
|
2624
|
-
context: __SerdeContext
|
|
2625
|
-
): Promise<ListVodSourcesCommandOutput> => {
|
|
2626
|
-
const parsedOutput: any = {
|
|
2627
|
-
...output,
|
|
2628
|
-
body: await parseBody(output.body, context),
|
|
2629
|
-
};
|
|
2630
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2631
|
-
let errorCode: string = "UnknownError";
|
|
2632
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2633
|
-
switch (errorCode) {
|
|
2634
|
-
default:
|
|
2635
|
-
const parsedBody = parsedOutput.body;
|
|
2636
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2637
|
-
response = {
|
|
2638
|
-
...parsedBody,
|
|
2639
|
-
name: `${errorCode}`,
|
|
2640
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2641
|
-
$fault: "client",
|
|
2642
|
-
$metadata: deserializeMetadata(output),
|
|
2643
|
-
} as any;
|
|
2644
|
-
}
|
|
2645
|
-
const message = response.message || response.Message || errorCode;
|
|
2646
|
-
response.message = message;
|
|
2647
|
-
delete response.Message;
|
|
2648
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2649
|
-
};
|
|
2650
|
-
|
|
2651
|
-
export const deserializeAws_restJson1PutChannelPolicyCommand = async (
|
|
2652
|
-
output: __HttpResponse,
|
|
2653
|
-
context: __SerdeContext
|
|
2654
|
-
): Promise<PutChannelPolicyCommandOutput> => {
|
|
2655
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2656
|
-
return deserializeAws_restJson1PutChannelPolicyCommandError(output, context);
|
|
2657
|
-
}
|
|
2658
|
-
const contents: PutChannelPolicyCommandOutput = {
|
|
2659
|
-
$metadata: deserializeMetadata(output),
|
|
2660
|
-
};
|
|
2661
|
-
await collectBody(output.body, context);
|
|
2662
|
-
return Promise.resolve(contents);
|
|
2663
|
-
};
|
|
2664
|
-
|
|
2665
|
-
const deserializeAws_restJson1PutChannelPolicyCommandError = async (
|
|
2666
|
-
output: __HttpResponse,
|
|
2667
|
-
context: __SerdeContext
|
|
2668
|
-
): Promise<PutChannelPolicyCommandOutput> => {
|
|
2669
|
-
const parsedOutput: any = {
|
|
2670
|
-
...output,
|
|
2671
|
-
body: await parseBody(output.body, context),
|
|
2672
|
-
};
|
|
2673
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2674
|
-
let errorCode: string = "UnknownError";
|
|
2675
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2676
|
-
switch (errorCode) {
|
|
2677
|
-
default:
|
|
2678
|
-
const parsedBody = parsedOutput.body;
|
|
2679
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2680
|
-
response = {
|
|
2681
|
-
...parsedBody,
|
|
2682
|
-
name: `${errorCode}`,
|
|
2683
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2684
|
-
$fault: "client",
|
|
2685
|
-
$metadata: deserializeMetadata(output),
|
|
2686
|
-
} as any;
|
|
2687
|
-
}
|
|
2688
|
-
const message = response.message || response.Message || errorCode;
|
|
2689
|
-
response.message = message;
|
|
2690
|
-
delete response.Message;
|
|
2691
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2692
|
-
};
|
|
2693
|
-
|
|
2694
|
-
export const deserializeAws_restJson1PutPlaybackConfigurationCommand = async (
|
|
2695
|
-
output: __HttpResponse,
|
|
2696
|
-
context: __SerdeContext
|
|
2697
|
-
): Promise<PutPlaybackConfigurationCommandOutput> => {
|
|
2698
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2699
|
-
return deserializeAws_restJson1PutPlaybackConfigurationCommandError(output, context);
|
|
2700
|
-
}
|
|
2701
|
-
const contents: PutPlaybackConfigurationCommandOutput = {
|
|
2702
|
-
$metadata: deserializeMetadata(output),
|
|
2703
|
-
AdDecisionServerUrl: undefined,
|
|
2704
|
-
AvailSuppression: undefined,
|
|
2705
|
-
Bumper: undefined,
|
|
2706
|
-
CdnConfiguration: undefined,
|
|
2707
|
-
ConfigurationAliases: undefined,
|
|
2708
|
-
DashConfiguration: undefined,
|
|
2709
|
-
HlsConfiguration: undefined,
|
|
2710
|
-
LivePreRollConfiguration: undefined,
|
|
2711
|
-
ManifestProcessingRules: undefined,
|
|
2712
|
-
Name: undefined,
|
|
2713
|
-
PersonalizationThresholdSeconds: undefined,
|
|
2714
|
-
PlaybackConfigurationArn: undefined,
|
|
2715
|
-
PlaybackEndpointPrefix: undefined,
|
|
2716
|
-
SessionInitializationEndpointPrefix: undefined,
|
|
2717
|
-
SlateAdUrl: undefined,
|
|
2718
|
-
Tags: undefined,
|
|
2719
|
-
TranscodeProfileName: undefined,
|
|
2720
|
-
VideoContentSourceUrl: undefined,
|
|
2721
|
-
};
|
|
2722
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2723
|
-
if (data.AdDecisionServerUrl !== undefined && data.AdDecisionServerUrl !== null) {
|
|
2724
|
-
contents.AdDecisionServerUrl = __expectString(data.AdDecisionServerUrl);
|
|
2725
|
-
}
|
|
2726
|
-
if (data.AvailSuppression !== undefined && data.AvailSuppression !== null) {
|
|
2727
|
-
contents.AvailSuppression = deserializeAws_restJson1AvailSuppression(data.AvailSuppression, context);
|
|
2728
|
-
}
|
|
2729
|
-
if (data.Bumper !== undefined && data.Bumper !== null) {
|
|
2730
|
-
contents.Bumper = deserializeAws_restJson1Bumper(data.Bumper, context);
|
|
2731
|
-
}
|
|
2732
|
-
if (data.CdnConfiguration !== undefined && data.CdnConfiguration !== null) {
|
|
2733
|
-
contents.CdnConfiguration = deserializeAws_restJson1CdnConfiguration(data.CdnConfiguration, context);
|
|
2734
|
-
}
|
|
2735
|
-
if (data.ConfigurationAliases !== undefined && data.ConfigurationAliases !== null) {
|
|
2736
|
-
contents.ConfigurationAliases = deserializeAws_restJson1ConfigurationAliasesResponse(
|
|
2737
|
-
data.ConfigurationAliases,
|
|
2738
|
-
context
|
|
2739
|
-
);
|
|
2740
|
-
}
|
|
2741
|
-
if (data.DashConfiguration !== undefined && data.DashConfiguration !== null) {
|
|
2742
|
-
contents.DashConfiguration = deserializeAws_restJson1DashConfiguration(data.DashConfiguration, context);
|
|
2743
|
-
}
|
|
2744
|
-
if (data.HlsConfiguration !== undefined && data.HlsConfiguration !== null) {
|
|
2745
|
-
contents.HlsConfiguration = deserializeAws_restJson1HlsConfiguration(data.HlsConfiguration, context);
|
|
2746
|
-
}
|
|
2747
|
-
if (data.LivePreRollConfiguration !== undefined && data.LivePreRollConfiguration !== null) {
|
|
2748
|
-
contents.LivePreRollConfiguration = deserializeAws_restJson1LivePreRollConfiguration(
|
|
2749
|
-
data.LivePreRollConfiguration,
|
|
2750
|
-
context
|
|
2751
|
-
);
|
|
2752
|
-
}
|
|
2753
|
-
if (data.ManifestProcessingRules !== undefined && data.ManifestProcessingRules !== null) {
|
|
2754
|
-
contents.ManifestProcessingRules = deserializeAws_restJson1ManifestProcessingRules(
|
|
2755
|
-
data.ManifestProcessingRules,
|
|
2756
|
-
context
|
|
2757
|
-
);
|
|
2758
|
-
}
|
|
2759
|
-
if (data.Name !== undefined && data.Name !== null) {
|
|
2760
|
-
contents.Name = __expectString(data.Name);
|
|
2761
|
-
}
|
|
2762
|
-
if (data.PersonalizationThresholdSeconds !== undefined && data.PersonalizationThresholdSeconds !== null) {
|
|
2763
|
-
contents.PersonalizationThresholdSeconds = __expectInt32(data.PersonalizationThresholdSeconds);
|
|
2764
|
-
}
|
|
2765
|
-
if (data.PlaybackConfigurationArn !== undefined && data.PlaybackConfigurationArn !== null) {
|
|
2766
|
-
contents.PlaybackConfigurationArn = __expectString(data.PlaybackConfigurationArn);
|
|
2767
|
-
}
|
|
2768
|
-
if (data.PlaybackEndpointPrefix !== undefined && data.PlaybackEndpointPrefix !== null) {
|
|
2769
|
-
contents.PlaybackEndpointPrefix = __expectString(data.PlaybackEndpointPrefix);
|
|
2770
|
-
}
|
|
2771
|
-
if (data.SessionInitializationEndpointPrefix !== undefined && data.SessionInitializationEndpointPrefix !== null) {
|
|
2772
|
-
contents.SessionInitializationEndpointPrefix = __expectString(data.SessionInitializationEndpointPrefix);
|
|
2773
|
-
}
|
|
2774
|
-
if (data.SlateAdUrl !== undefined && data.SlateAdUrl !== null) {
|
|
2775
|
-
contents.SlateAdUrl = __expectString(data.SlateAdUrl);
|
|
2776
|
-
}
|
|
2777
|
-
if (data.tags !== undefined && data.tags !== null) {
|
|
2778
|
-
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
2779
|
-
}
|
|
2780
|
-
if (data.TranscodeProfileName !== undefined && data.TranscodeProfileName !== null) {
|
|
2781
|
-
contents.TranscodeProfileName = __expectString(data.TranscodeProfileName);
|
|
2782
|
-
}
|
|
2783
|
-
if (data.VideoContentSourceUrl !== undefined && data.VideoContentSourceUrl !== null) {
|
|
2784
|
-
contents.VideoContentSourceUrl = __expectString(data.VideoContentSourceUrl);
|
|
2785
|
-
}
|
|
2786
|
-
return Promise.resolve(contents);
|
|
2787
|
-
};
|
|
2788
|
-
|
|
2789
|
-
const deserializeAws_restJson1PutPlaybackConfigurationCommandError = async (
|
|
2790
|
-
output: __HttpResponse,
|
|
2791
|
-
context: __SerdeContext
|
|
2792
|
-
): Promise<PutPlaybackConfigurationCommandOutput> => {
|
|
2793
|
-
const parsedOutput: any = {
|
|
2794
|
-
...output,
|
|
2795
|
-
body: await parseBody(output.body, context),
|
|
2796
|
-
};
|
|
2797
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2798
|
-
let errorCode: string = "UnknownError";
|
|
2799
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2800
|
-
switch (errorCode) {
|
|
2801
|
-
default:
|
|
2802
|
-
const parsedBody = parsedOutput.body;
|
|
2803
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2804
|
-
response = {
|
|
2805
|
-
...parsedBody,
|
|
2806
|
-
name: `${errorCode}`,
|
|
2807
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2808
|
-
$fault: "client",
|
|
2809
|
-
$metadata: deserializeMetadata(output),
|
|
2810
|
-
} as any;
|
|
2811
|
-
}
|
|
2812
|
-
const message = response.message || response.Message || errorCode;
|
|
2813
|
-
response.message = message;
|
|
2814
|
-
delete response.Message;
|
|
2815
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2816
|
-
};
|
|
2817
|
-
|
|
2818
|
-
export const deserializeAws_restJson1StartChannelCommand = async (
|
|
2819
|
-
output: __HttpResponse,
|
|
2820
|
-
context: __SerdeContext
|
|
2821
|
-
): Promise<StartChannelCommandOutput> => {
|
|
2822
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2823
|
-
return deserializeAws_restJson1StartChannelCommandError(output, context);
|
|
2824
|
-
}
|
|
2825
|
-
const contents: StartChannelCommandOutput = {
|
|
2826
|
-
$metadata: deserializeMetadata(output),
|
|
2827
|
-
};
|
|
2828
|
-
await collectBody(output.body, context);
|
|
2829
|
-
return Promise.resolve(contents);
|
|
2830
|
-
};
|
|
2831
|
-
|
|
2832
|
-
const deserializeAws_restJson1StartChannelCommandError = async (
|
|
2833
|
-
output: __HttpResponse,
|
|
2834
|
-
context: __SerdeContext
|
|
2835
|
-
): Promise<StartChannelCommandOutput> => {
|
|
2836
|
-
const parsedOutput: any = {
|
|
2837
|
-
...output,
|
|
2838
|
-
body: await parseBody(output.body, context),
|
|
2839
|
-
};
|
|
2840
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2841
|
-
let errorCode: string = "UnknownError";
|
|
2842
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2843
|
-
switch (errorCode) {
|
|
2844
|
-
default:
|
|
2845
|
-
const parsedBody = parsedOutput.body;
|
|
2846
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2847
|
-
response = {
|
|
2848
|
-
...parsedBody,
|
|
2849
|
-
name: `${errorCode}`,
|
|
2850
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2851
|
-
$fault: "client",
|
|
2852
|
-
$metadata: deserializeMetadata(output),
|
|
2853
|
-
} as any;
|
|
2854
|
-
}
|
|
2855
|
-
const message = response.message || response.Message || errorCode;
|
|
2856
|
-
response.message = message;
|
|
2857
|
-
delete response.Message;
|
|
2858
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2859
|
-
};
|
|
2860
|
-
|
|
2861
|
-
export const deserializeAws_restJson1StopChannelCommand = async (
|
|
2862
|
-
output: __HttpResponse,
|
|
2863
|
-
context: __SerdeContext
|
|
2864
|
-
): Promise<StopChannelCommandOutput> => {
|
|
2865
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2866
|
-
return deserializeAws_restJson1StopChannelCommandError(output, context);
|
|
2867
|
-
}
|
|
2868
|
-
const contents: StopChannelCommandOutput = {
|
|
2869
|
-
$metadata: deserializeMetadata(output),
|
|
2870
|
-
};
|
|
2871
|
-
await collectBody(output.body, context);
|
|
2872
|
-
return Promise.resolve(contents);
|
|
2873
|
-
};
|
|
2874
|
-
|
|
2875
|
-
const deserializeAws_restJson1StopChannelCommandError = async (
|
|
2876
|
-
output: __HttpResponse,
|
|
2877
|
-
context: __SerdeContext
|
|
2878
|
-
): Promise<StopChannelCommandOutput> => {
|
|
2879
|
-
const parsedOutput: any = {
|
|
2880
|
-
...output,
|
|
2881
|
-
body: await parseBody(output.body, context),
|
|
2882
|
-
};
|
|
2883
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2884
|
-
let errorCode: string = "UnknownError";
|
|
2885
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2886
|
-
switch (errorCode) {
|
|
2887
|
-
default:
|
|
2888
|
-
const parsedBody = parsedOutput.body;
|
|
2889
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2890
|
-
response = {
|
|
2891
|
-
...parsedBody,
|
|
2892
|
-
name: `${errorCode}`,
|
|
2893
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2894
|
-
$fault: "client",
|
|
2895
|
-
$metadata: deserializeMetadata(output),
|
|
2896
|
-
} as any;
|
|
2897
|
-
}
|
|
2898
|
-
const message = response.message || response.Message || errorCode;
|
|
2899
|
-
response.message = message;
|
|
2900
|
-
delete response.Message;
|
|
2901
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2902
|
-
};
|
|
2903
|
-
|
|
2904
|
-
export const deserializeAws_restJson1TagResourceCommand = async (
|
|
2905
|
-
output: __HttpResponse,
|
|
2906
|
-
context: __SerdeContext
|
|
2907
|
-
): Promise<TagResourceCommandOutput> => {
|
|
2908
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2909
|
-
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
2910
|
-
}
|
|
2911
|
-
const contents: TagResourceCommandOutput = {
|
|
2912
|
-
$metadata: deserializeMetadata(output),
|
|
2913
|
-
};
|
|
2914
|
-
await collectBody(output.body, context);
|
|
2915
|
-
return Promise.resolve(contents);
|
|
2916
|
-
};
|
|
2917
|
-
|
|
2918
|
-
const deserializeAws_restJson1TagResourceCommandError = async (
|
|
2919
|
-
output: __HttpResponse,
|
|
2920
|
-
context: __SerdeContext
|
|
2921
|
-
): Promise<TagResourceCommandOutput> => {
|
|
2922
|
-
const parsedOutput: any = {
|
|
2923
|
-
...output,
|
|
2924
|
-
body: await parseBody(output.body, context),
|
|
2925
|
-
};
|
|
2926
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2927
|
-
let errorCode: string = "UnknownError";
|
|
2928
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2929
|
-
switch (errorCode) {
|
|
2930
|
-
case "BadRequestException":
|
|
2931
|
-
case "com.amazonaws.mediatailor#BadRequestException":
|
|
2932
|
-
response = {
|
|
2933
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2934
|
-
name: errorCode,
|
|
2935
|
-
$metadata: deserializeMetadata(output),
|
|
2936
|
-
};
|
|
2937
|
-
break;
|
|
2938
|
-
default:
|
|
2939
|
-
const parsedBody = parsedOutput.body;
|
|
2940
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2941
|
-
response = {
|
|
2942
|
-
...parsedBody,
|
|
2943
|
-
name: `${errorCode}`,
|
|
2944
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2945
|
-
$fault: "client",
|
|
2946
|
-
$metadata: deserializeMetadata(output),
|
|
2947
|
-
} as any;
|
|
2948
|
-
}
|
|
2949
|
-
const message = response.message || response.Message || errorCode;
|
|
2950
|
-
response.message = message;
|
|
2951
|
-
delete response.Message;
|
|
2952
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2953
|
-
};
|
|
2954
|
-
|
|
2955
|
-
export const deserializeAws_restJson1UntagResourceCommand = async (
|
|
2956
|
-
output: __HttpResponse,
|
|
2957
|
-
context: __SerdeContext
|
|
2958
|
-
): Promise<UntagResourceCommandOutput> => {
|
|
2959
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2960
|
-
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
2961
|
-
}
|
|
2962
|
-
const contents: UntagResourceCommandOutput = {
|
|
2963
|
-
$metadata: deserializeMetadata(output),
|
|
2964
|
-
};
|
|
2965
|
-
await collectBody(output.body, context);
|
|
2966
|
-
return Promise.resolve(contents);
|
|
2967
|
-
};
|
|
2968
|
-
|
|
2969
|
-
const deserializeAws_restJson1UntagResourceCommandError = async (
|
|
2970
|
-
output: __HttpResponse,
|
|
2971
|
-
context: __SerdeContext
|
|
2972
|
-
): Promise<UntagResourceCommandOutput> => {
|
|
2973
|
-
const parsedOutput: any = {
|
|
2974
|
-
...output,
|
|
2975
|
-
body: await parseBody(output.body, context),
|
|
2976
|
-
};
|
|
2977
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2978
|
-
let errorCode: string = "UnknownError";
|
|
2979
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2980
|
-
switch (errorCode) {
|
|
2981
|
-
case "BadRequestException":
|
|
2982
|
-
case "com.amazonaws.mediatailor#BadRequestException":
|
|
2983
|
-
response = {
|
|
2984
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2985
|
-
name: errorCode,
|
|
2986
|
-
$metadata: deserializeMetadata(output),
|
|
2987
|
-
};
|
|
2988
|
-
break;
|
|
2989
|
-
default:
|
|
2990
|
-
const parsedBody = parsedOutput.body;
|
|
2991
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2992
|
-
response = {
|
|
2993
|
-
...parsedBody,
|
|
2994
|
-
name: `${errorCode}`,
|
|
2995
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2996
|
-
$fault: "client",
|
|
2997
|
-
$metadata: deserializeMetadata(output),
|
|
2998
|
-
} as any;
|
|
2999
|
-
}
|
|
3000
|
-
const message = response.message || response.Message || errorCode;
|
|
3001
|
-
response.message = message;
|
|
3002
|
-
delete response.Message;
|
|
3003
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3004
|
-
};
|
|
3005
|
-
|
|
3006
|
-
export const deserializeAws_restJson1UpdateChannelCommand = async (
|
|
3007
|
-
output: __HttpResponse,
|
|
3008
|
-
context: __SerdeContext
|
|
3009
|
-
): Promise<UpdateChannelCommandOutput> => {
|
|
3010
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3011
|
-
return deserializeAws_restJson1UpdateChannelCommandError(output, context);
|
|
3012
|
-
}
|
|
3013
|
-
const contents: UpdateChannelCommandOutput = {
|
|
3014
|
-
$metadata: deserializeMetadata(output),
|
|
3015
|
-
Arn: undefined,
|
|
3016
|
-
ChannelName: undefined,
|
|
3017
|
-
ChannelState: undefined,
|
|
3018
|
-
CreationTime: undefined,
|
|
3019
|
-
FillerSlate: undefined,
|
|
3020
|
-
LastModifiedTime: undefined,
|
|
3021
|
-
Outputs: undefined,
|
|
3022
|
-
PlaybackMode: undefined,
|
|
3023
|
-
Tags: undefined,
|
|
3024
|
-
};
|
|
3025
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3026
|
-
if (data.Arn !== undefined && data.Arn !== null) {
|
|
3027
|
-
contents.Arn = __expectString(data.Arn);
|
|
3028
|
-
}
|
|
3029
|
-
if (data.ChannelName !== undefined && data.ChannelName !== null) {
|
|
3030
|
-
contents.ChannelName = __expectString(data.ChannelName);
|
|
3031
|
-
}
|
|
3032
|
-
if (data.ChannelState !== undefined && data.ChannelState !== null) {
|
|
3033
|
-
contents.ChannelState = __expectString(data.ChannelState);
|
|
3034
|
-
}
|
|
3035
|
-
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
3036
|
-
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
3037
|
-
}
|
|
3038
|
-
if (data.FillerSlate !== undefined && data.FillerSlate !== null) {
|
|
3039
|
-
contents.FillerSlate = deserializeAws_restJson1SlateSource(data.FillerSlate, context);
|
|
3040
|
-
}
|
|
3041
|
-
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
3042
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
3043
|
-
}
|
|
3044
|
-
if (data.Outputs !== undefined && data.Outputs !== null) {
|
|
3045
|
-
contents.Outputs = deserializeAws_restJson1ResponseOutputs(data.Outputs, context);
|
|
3046
|
-
}
|
|
3047
|
-
if (data.PlaybackMode !== undefined && data.PlaybackMode !== null) {
|
|
3048
|
-
contents.PlaybackMode = __expectString(data.PlaybackMode);
|
|
3049
|
-
}
|
|
3050
|
-
if (data.tags !== undefined && data.tags !== null) {
|
|
3051
|
-
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
3052
|
-
}
|
|
3053
|
-
return Promise.resolve(contents);
|
|
3054
|
-
};
|
|
3055
|
-
|
|
3056
|
-
const deserializeAws_restJson1UpdateChannelCommandError = async (
|
|
3057
|
-
output: __HttpResponse,
|
|
3058
|
-
context: __SerdeContext
|
|
3059
|
-
): Promise<UpdateChannelCommandOutput> => {
|
|
3060
|
-
const parsedOutput: any = {
|
|
3061
|
-
...output,
|
|
3062
|
-
body: await parseBody(output.body, context),
|
|
3063
|
-
};
|
|
3064
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
3065
|
-
let errorCode: string = "UnknownError";
|
|
3066
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3067
|
-
switch (errorCode) {
|
|
3068
|
-
default:
|
|
3069
|
-
const parsedBody = parsedOutput.body;
|
|
3070
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3071
|
-
response = {
|
|
3072
|
-
...parsedBody,
|
|
3073
|
-
name: `${errorCode}`,
|
|
3074
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3075
|
-
$fault: "client",
|
|
3076
|
-
$metadata: deserializeMetadata(output),
|
|
3077
|
-
} as any;
|
|
3078
|
-
}
|
|
3079
|
-
const message = response.message || response.Message || errorCode;
|
|
3080
|
-
response.message = message;
|
|
3081
|
-
delete response.Message;
|
|
3082
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3083
|
-
};
|
|
3084
|
-
|
|
3085
|
-
export const deserializeAws_restJson1UpdateSourceLocationCommand = async (
|
|
3086
|
-
output: __HttpResponse,
|
|
3087
|
-
context: __SerdeContext
|
|
3088
|
-
): Promise<UpdateSourceLocationCommandOutput> => {
|
|
3089
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3090
|
-
return deserializeAws_restJson1UpdateSourceLocationCommandError(output, context);
|
|
3091
|
-
}
|
|
3092
|
-
const contents: UpdateSourceLocationCommandOutput = {
|
|
3093
|
-
$metadata: deserializeMetadata(output),
|
|
3094
|
-
AccessConfiguration: undefined,
|
|
3095
|
-
Arn: undefined,
|
|
3096
|
-
CreationTime: undefined,
|
|
3097
|
-
DefaultSegmentDeliveryConfiguration: undefined,
|
|
3098
|
-
HttpConfiguration: undefined,
|
|
3099
|
-
LastModifiedTime: undefined,
|
|
3100
|
-
SourceLocationName: undefined,
|
|
3101
|
-
Tags: undefined,
|
|
3102
|
-
};
|
|
3103
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3104
|
-
if (data.AccessConfiguration !== undefined && data.AccessConfiguration !== null) {
|
|
3105
|
-
contents.AccessConfiguration = deserializeAws_restJson1AccessConfiguration(data.AccessConfiguration, context);
|
|
3106
|
-
}
|
|
3107
|
-
if (data.Arn !== undefined && data.Arn !== null) {
|
|
3108
|
-
contents.Arn = __expectString(data.Arn);
|
|
3109
|
-
}
|
|
3110
|
-
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
3111
|
-
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
3112
|
-
}
|
|
3113
|
-
if (data.DefaultSegmentDeliveryConfiguration !== undefined && data.DefaultSegmentDeliveryConfiguration !== null) {
|
|
3114
|
-
contents.DefaultSegmentDeliveryConfiguration = deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(
|
|
3115
|
-
data.DefaultSegmentDeliveryConfiguration,
|
|
3116
|
-
context
|
|
3117
|
-
);
|
|
3118
|
-
}
|
|
3119
|
-
if (data.HttpConfiguration !== undefined && data.HttpConfiguration !== null) {
|
|
3120
|
-
contents.HttpConfiguration = deserializeAws_restJson1HttpConfiguration(data.HttpConfiguration, context);
|
|
3121
|
-
}
|
|
3122
|
-
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
3123
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
3124
|
-
}
|
|
3125
|
-
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
3126
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
3127
|
-
}
|
|
3128
|
-
if (data.tags !== undefined && data.tags !== null) {
|
|
3129
|
-
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
3130
|
-
}
|
|
3131
|
-
return Promise.resolve(contents);
|
|
3132
|
-
};
|
|
3133
|
-
|
|
3134
|
-
const deserializeAws_restJson1UpdateSourceLocationCommandError = async (
|
|
3135
|
-
output: __HttpResponse,
|
|
3136
|
-
context: __SerdeContext
|
|
3137
|
-
): Promise<UpdateSourceLocationCommandOutput> => {
|
|
3138
|
-
const parsedOutput: any = {
|
|
3139
|
-
...output,
|
|
3140
|
-
body: await parseBody(output.body, context),
|
|
3141
|
-
};
|
|
3142
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
3143
|
-
let errorCode: string = "UnknownError";
|
|
3144
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3145
|
-
switch (errorCode) {
|
|
3146
|
-
default:
|
|
3147
|
-
const parsedBody = parsedOutput.body;
|
|
3148
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3149
|
-
response = {
|
|
3150
|
-
...parsedBody,
|
|
3151
|
-
name: `${errorCode}`,
|
|
3152
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3153
|
-
$fault: "client",
|
|
3154
|
-
$metadata: deserializeMetadata(output),
|
|
3155
|
-
} as any;
|
|
3156
|
-
}
|
|
3157
|
-
const message = response.message || response.Message || errorCode;
|
|
3158
|
-
response.message = message;
|
|
3159
|
-
delete response.Message;
|
|
3160
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3161
|
-
};
|
|
3162
|
-
|
|
3163
|
-
export const deserializeAws_restJson1UpdateVodSourceCommand = async (
|
|
3164
|
-
output: __HttpResponse,
|
|
3165
|
-
context: __SerdeContext
|
|
3166
|
-
): Promise<UpdateVodSourceCommandOutput> => {
|
|
3167
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3168
|
-
return deserializeAws_restJson1UpdateVodSourceCommandError(output, context);
|
|
3169
|
-
}
|
|
3170
|
-
const contents: UpdateVodSourceCommandOutput = {
|
|
3171
|
-
$metadata: deserializeMetadata(output),
|
|
3172
|
-
Arn: undefined,
|
|
3173
|
-
CreationTime: undefined,
|
|
3174
|
-
HttpPackageConfigurations: undefined,
|
|
3175
|
-
LastModifiedTime: undefined,
|
|
3176
|
-
SourceLocationName: undefined,
|
|
3177
|
-
Tags: undefined,
|
|
3178
|
-
VodSourceName: undefined,
|
|
3179
|
-
};
|
|
3180
|
-
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3181
|
-
if (data.Arn !== undefined && data.Arn !== null) {
|
|
3182
|
-
contents.Arn = __expectString(data.Arn);
|
|
3183
|
-
}
|
|
3184
|
-
if (data.CreationTime !== undefined && data.CreationTime !== null) {
|
|
3185
|
-
contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime)));
|
|
3186
|
-
}
|
|
3187
|
-
if (data.HttpPackageConfigurations !== undefined && data.HttpPackageConfigurations !== null) {
|
|
3188
|
-
contents.HttpPackageConfigurations = deserializeAws_restJson1HttpPackageConfigurations(
|
|
3189
|
-
data.HttpPackageConfigurations,
|
|
3190
|
-
context
|
|
3191
|
-
);
|
|
3192
|
-
}
|
|
3193
|
-
if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
|
|
3194
|
-
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
3195
|
-
}
|
|
3196
|
-
if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
|
|
3197
|
-
contents.SourceLocationName = __expectString(data.SourceLocationName);
|
|
3198
|
-
}
|
|
3199
|
-
if (data.tags !== undefined && data.tags !== null) {
|
|
3200
|
-
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
3201
|
-
}
|
|
3202
|
-
if (data.VodSourceName !== undefined && data.VodSourceName !== null) {
|
|
3203
|
-
contents.VodSourceName = __expectString(data.VodSourceName);
|
|
3204
|
-
}
|
|
3205
|
-
return Promise.resolve(contents);
|
|
3206
|
-
};
|
|
3207
|
-
|
|
3208
|
-
const deserializeAws_restJson1UpdateVodSourceCommandError = async (
|
|
3209
|
-
output: __HttpResponse,
|
|
3210
|
-
context: __SerdeContext
|
|
3211
|
-
): Promise<UpdateVodSourceCommandOutput> => {
|
|
3212
|
-
const parsedOutput: any = {
|
|
3213
|
-
...output,
|
|
3214
|
-
body: await parseBody(output.body, context),
|
|
3215
|
-
};
|
|
3216
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
3217
|
-
let errorCode: string = "UnknownError";
|
|
3218
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3219
|
-
switch (errorCode) {
|
|
3220
|
-
default:
|
|
3221
|
-
const parsedBody = parsedOutput.body;
|
|
3222
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3223
|
-
response = {
|
|
3224
|
-
...parsedBody,
|
|
3225
|
-
name: `${errorCode}`,
|
|
3226
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3227
|
-
$fault: "client",
|
|
3228
|
-
$metadata: deserializeMetadata(output),
|
|
3229
|
-
} as any;
|
|
3230
|
-
}
|
|
3231
|
-
const message = response.message || response.Message || errorCode;
|
|
3232
|
-
response.message = message;
|
|
3233
|
-
delete response.Message;
|
|
3234
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3235
|
-
};
|
|
3236
|
-
|
|
3237
|
-
const deserializeAws_restJson1BadRequestExceptionResponse = async (
|
|
3238
|
-
parsedOutput: any,
|
|
3239
|
-
context: __SerdeContext
|
|
3240
|
-
): Promise<BadRequestException> => {
|
|
3241
|
-
const contents: BadRequestException = {
|
|
3242
|
-
name: "BadRequestException",
|
|
3243
|
-
$fault: "client",
|
|
3244
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3245
|
-
Message: undefined,
|
|
3246
|
-
};
|
|
3247
|
-
const data: any = parsedOutput.body;
|
|
3248
|
-
if (data.Message !== undefined && data.Message !== null) {
|
|
3249
|
-
contents.Message = __expectString(data.Message);
|
|
3250
|
-
}
|
|
3251
|
-
return contents;
|
|
3252
|
-
};
|
|
3253
|
-
|
|
3254
|
-
const serializeAws_restJson1__listOfAdBreak = (input: AdBreak[], context: __SerdeContext): any => {
|
|
3255
|
-
return input
|
|
3256
|
-
.filter((e: any) => e != null)
|
|
3257
|
-
.map((entry) => {
|
|
3258
|
-
if (entry === null) {
|
|
3259
|
-
return null as any;
|
|
3260
|
-
}
|
|
3261
|
-
return serializeAws_restJson1AdBreak(entry, context);
|
|
3262
|
-
});
|
|
3263
|
-
};
|
|
3264
|
-
|
|
3265
|
-
const serializeAws_restJson1__mapOf__string = (input: { [key: string]: string }, context: __SerdeContext): any => {
|
|
3266
|
-
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
|
|
3267
|
-
if (value === null) {
|
|
3268
|
-
return acc;
|
|
3269
|
-
}
|
|
3270
|
-
return {
|
|
3271
|
-
...acc,
|
|
3272
|
-
[key]: value,
|
|
3273
|
-
};
|
|
3274
|
-
}, {});
|
|
3275
|
-
};
|
|
3276
|
-
|
|
3277
|
-
const serializeAws_restJson1AccessConfiguration = (input: AccessConfiguration, context: __SerdeContext): any => {
|
|
3278
|
-
return {
|
|
3279
|
-
...(input.AccessType !== undefined && input.AccessType !== null && { AccessType: input.AccessType }),
|
|
3280
|
-
...(input.SecretsManagerAccessTokenConfiguration !== undefined &&
|
|
3281
|
-
input.SecretsManagerAccessTokenConfiguration !== null && {
|
|
3282
|
-
SecretsManagerAccessTokenConfiguration: serializeAws_restJson1SecretsManagerAccessTokenConfiguration(
|
|
3283
|
-
input.SecretsManagerAccessTokenConfiguration,
|
|
3284
|
-
context
|
|
3285
|
-
),
|
|
3286
|
-
}),
|
|
3287
|
-
};
|
|
3288
|
-
};
|
|
3289
|
-
|
|
3290
|
-
const serializeAws_restJson1AdBreak = (input: AdBreak, context: __SerdeContext): any => {
|
|
3291
|
-
return {
|
|
3292
|
-
...(input.MessageType !== undefined && input.MessageType !== null && { MessageType: input.MessageType }),
|
|
3293
|
-
...(input.OffsetMillis !== undefined && input.OffsetMillis !== null && { OffsetMillis: input.OffsetMillis }),
|
|
3294
|
-
...(input.Slate !== undefined &&
|
|
3295
|
-
input.Slate !== null && { Slate: serializeAws_restJson1SlateSource(input.Slate, context) }),
|
|
3296
|
-
...(input.SpliceInsertMessage !== undefined &&
|
|
3297
|
-
input.SpliceInsertMessage !== null && {
|
|
3298
|
-
SpliceInsertMessage: serializeAws_restJson1SpliceInsertMessage(input.SpliceInsertMessage, context),
|
|
3299
|
-
}),
|
|
3300
|
-
};
|
|
3301
|
-
};
|
|
3302
|
-
|
|
3303
|
-
const serializeAws_restJson1AdMarkerPassthrough = (input: AdMarkerPassthrough, context: __SerdeContext): any => {
|
|
3304
|
-
return {
|
|
3305
|
-
...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
|
|
3306
|
-
};
|
|
3307
|
-
};
|
|
3308
|
-
|
|
3309
|
-
const serializeAws_restJson1AvailSuppression = (input: AvailSuppression, context: __SerdeContext): any => {
|
|
3310
|
-
return {
|
|
3311
|
-
...(input.Mode !== undefined && input.Mode !== null && { Mode: input.Mode }),
|
|
3312
|
-
...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
|
|
3313
|
-
};
|
|
3314
|
-
};
|
|
3315
|
-
|
|
3316
|
-
const serializeAws_restJson1Bumper = (input: Bumper, context: __SerdeContext): any => {
|
|
3317
|
-
return {
|
|
3318
|
-
...(input.EndUrl !== undefined && input.EndUrl !== null && { EndUrl: input.EndUrl }),
|
|
3319
|
-
...(input.StartUrl !== undefined && input.StartUrl !== null && { StartUrl: input.StartUrl }),
|
|
3320
|
-
};
|
|
3321
|
-
};
|
|
3322
|
-
|
|
3323
|
-
const serializeAws_restJson1CdnConfiguration = (input: CdnConfiguration, context: __SerdeContext): any => {
|
|
3324
|
-
return {
|
|
3325
|
-
...(input.AdSegmentUrlPrefix !== undefined &&
|
|
3326
|
-
input.AdSegmentUrlPrefix !== null && { AdSegmentUrlPrefix: input.AdSegmentUrlPrefix }),
|
|
3327
|
-
...(input.ContentSegmentUrlPrefix !== undefined &&
|
|
3328
|
-
input.ContentSegmentUrlPrefix !== null && { ContentSegmentUrlPrefix: input.ContentSegmentUrlPrefix }),
|
|
3329
|
-
};
|
|
3330
|
-
};
|
|
3331
|
-
|
|
3332
|
-
const serializeAws_restJson1ConfigurationAliasesRequest = (
|
|
3333
|
-
input: { [key: string]: { [key: string]: string } },
|
|
3334
|
-
context: __SerdeContext
|
|
3335
|
-
): any => {
|
|
3336
|
-
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
|
|
3337
|
-
if (value === null) {
|
|
3338
|
-
return acc;
|
|
3339
|
-
}
|
|
3340
|
-
return {
|
|
3341
|
-
...acc,
|
|
3342
|
-
[key]: serializeAws_restJson1__mapOf__string(value, context),
|
|
3343
|
-
};
|
|
3344
|
-
}, {});
|
|
3345
|
-
};
|
|
3346
|
-
|
|
3347
|
-
const serializeAws_restJson1DashConfigurationForPut = (
|
|
3348
|
-
input: DashConfigurationForPut,
|
|
3349
|
-
context: __SerdeContext
|
|
3350
|
-
): any => {
|
|
3351
|
-
return {
|
|
3352
|
-
...(input.MpdLocation !== undefined && input.MpdLocation !== null && { MpdLocation: input.MpdLocation }),
|
|
3353
|
-
...(input.OriginManifestType !== undefined &&
|
|
3354
|
-
input.OriginManifestType !== null && { OriginManifestType: input.OriginManifestType }),
|
|
3355
|
-
};
|
|
3356
|
-
};
|
|
3357
|
-
|
|
3358
|
-
const serializeAws_restJson1DashPlaylistSettings = (input: DashPlaylistSettings, context: __SerdeContext): any => {
|
|
3359
|
-
return {
|
|
3360
|
-
...(input.ManifestWindowSeconds !== undefined &&
|
|
3361
|
-
input.ManifestWindowSeconds !== null && { ManifestWindowSeconds: input.ManifestWindowSeconds }),
|
|
3362
|
-
...(input.MinBufferTimeSeconds !== undefined &&
|
|
3363
|
-
input.MinBufferTimeSeconds !== null && { MinBufferTimeSeconds: input.MinBufferTimeSeconds }),
|
|
3364
|
-
...(input.MinUpdatePeriodSeconds !== undefined &&
|
|
3365
|
-
input.MinUpdatePeriodSeconds !== null && { MinUpdatePeriodSeconds: input.MinUpdatePeriodSeconds }),
|
|
3366
|
-
...(input.SuggestedPresentationDelaySeconds !== undefined &&
|
|
3367
|
-
input.SuggestedPresentationDelaySeconds !== null && {
|
|
3368
|
-
SuggestedPresentationDelaySeconds: input.SuggestedPresentationDelaySeconds,
|
|
3369
|
-
}),
|
|
3370
|
-
};
|
|
3371
|
-
};
|
|
3372
|
-
|
|
3373
|
-
const serializeAws_restJson1DefaultSegmentDeliveryConfiguration = (
|
|
3374
|
-
input: DefaultSegmentDeliveryConfiguration,
|
|
3375
|
-
context: __SerdeContext
|
|
3376
|
-
): any => {
|
|
3377
|
-
return {
|
|
3378
|
-
...(input.BaseUrl !== undefined && input.BaseUrl !== null && { BaseUrl: input.BaseUrl }),
|
|
3379
|
-
};
|
|
3380
|
-
};
|
|
3381
|
-
|
|
3382
|
-
const serializeAws_restJson1HlsPlaylistSettings = (input: HlsPlaylistSettings, context: __SerdeContext): any => {
|
|
3383
|
-
return {
|
|
3384
|
-
...(input.ManifestWindowSeconds !== undefined &&
|
|
3385
|
-
input.ManifestWindowSeconds !== null && { ManifestWindowSeconds: input.ManifestWindowSeconds }),
|
|
3386
|
-
};
|
|
3387
|
-
};
|
|
3388
|
-
|
|
3389
|
-
const serializeAws_restJson1HttpConfiguration = (input: HttpConfiguration, context: __SerdeContext): any => {
|
|
3390
|
-
return {
|
|
3391
|
-
...(input.BaseUrl !== undefined && input.BaseUrl !== null && { BaseUrl: input.BaseUrl }),
|
|
3392
|
-
};
|
|
3393
|
-
};
|
|
3394
|
-
|
|
3395
|
-
const serializeAws_restJson1HttpPackageConfiguration = (
|
|
3396
|
-
input: HttpPackageConfiguration,
|
|
3397
|
-
context: __SerdeContext
|
|
3398
|
-
): any => {
|
|
3399
|
-
return {
|
|
3400
|
-
...(input.Path !== undefined && input.Path !== null && { Path: input.Path }),
|
|
3401
|
-
...(input.SourceGroup !== undefined && input.SourceGroup !== null && { SourceGroup: input.SourceGroup }),
|
|
3402
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
3403
|
-
};
|
|
3404
|
-
};
|
|
3405
|
-
|
|
3406
|
-
const serializeAws_restJson1HttpPackageConfigurations = (
|
|
3407
|
-
input: HttpPackageConfiguration[],
|
|
3408
|
-
context: __SerdeContext
|
|
3409
|
-
): any => {
|
|
3410
|
-
return input
|
|
3411
|
-
.filter((e: any) => e != null)
|
|
3412
|
-
.map((entry) => {
|
|
3413
|
-
if (entry === null) {
|
|
3414
|
-
return null as any;
|
|
3415
|
-
}
|
|
3416
|
-
return serializeAws_restJson1HttpPackageConfiguration(entry, context);
|
|
3417
|
-
});
|
|
3418
|
-
};
|
|
3419
|
-
|
|
3420
|
-
const serializeAws_restJson1LivePreRollConfiguration = (
|
|
3421
|
-
input: LivePreRollConfiguration,
|
|
3422
|
-
context: __SerdeContext
|
|
3423
|
-
): any => {
|
|
3424
|
-
return {
|
|
3425
|
-
...(input.AdDecisionServerUrl !== undefined &&
|
|
3426
|
-
input.AdDecisionServerUrl !== null && { AdDecisionServerUrl: input.AdDecisionServerUrl }),
|
|
3427
|
-
...(input.MaxDurationSeconds !== undefined &&
|
|
3428
|
-
input.MaxDurationSeconds !== null && { MaxDurationSeconds: input.MaxDurationSeconds }),
|
|
3429
|
-
};
|
|
3430
|
-
};
|
|
3431
|
-
|
|
3432
|
-
const serializeAws_restJson1ManifestProcessingRules = (
|
|
3433
|
-
input: ManifestProcessingRules,
|
|
3434
|
-
context: __SerdeContext
|
|
3435
|
-
): any => {
|
|
3436
|
-
return {
|
|
3437
|
-
...(input.AdMarkerPassthrough !== undefined &&
|
|
3438
|
-
input.AdMarkerPassthrough !== null && {
|
|
3439
|
-
AdMarkerPassthrough: serializeAws_restJson1AdMarkerPassthrough(input.AdMarkerPassthrough, context),
|
|
3440
|
-
}),
|
|
3441
|
-
};
|
|
3442
|
-
};
|
|
3443
|
-
|
|
3444
|
-
const serializeAws_restJson1RequestOutputItem = (input: RequestOutputItem, context: __SerdeContext): any => {
|
|
3445
|
-
return {
|
|
3446
|
-
...(input.DashPlaylistSettings !== undefined &&
|
|
3447
|
-
input.DashPlaylistSettings !== null && {
|
|
3448
|
-
DashPlaylistSettings: serializeAws_restJson1DashPlaylistSettings(input.DashPlaylistSettings, context),
|
|
3449
|
-
}),
|
|
3450
|
-
...(input.HlsPlaylistSettings !== undefined &&
|
|
3451
|
-
input.HlsPlaylistSettings !== null && {
|
|
3452
|
-
HlsPlaylistSettings: serializeAws_restJson1HlsPlaylistSettings(input.HlsPlaylistSettings, context),
|
|
3453
|
-
}),
|
|
3454
|
-
...(input.ManifestName !== undefined && input.ManifestName !== null && { ManifestName: input.ManifestName }),
|
|
3455
|
-
...(input.SourceGroup !== undefined && input.SourceGroup !== null && { SourceGroup: input.SourceGroup }),
|
|
3456
|
-
};
|
|
3457
|
-
};
|
|
3458
|
-
|
|
3459
|
-
const serializeAws_restJson1RequestOutputs = (input: RequestOutputItem[], context: __SerdeContext): any => {
|
|
3460
|
-
return input
|
|
3461
|
-
.filter((e: any) => e != null)
|
|
3462
|
-
.map((entry) => {
|
|
3463
|
-
if (entry === null) {
|
|
3464
|
-
return null as any;
|
|
3465
|
-
}
|
|
3466
|
-
return serializeAws_restJson1RequestOutputItem(entry, context);
|
|
3467
|
-
});
|
|
3468
|
-
};
|
|
3469
|
-
|
|
3470
|
-
const serializeAws_restJson1ScheduleConfiguration = (input: ScheduleConfiguration, context: __SerdeContext): any => {
|
|
3471
|
-
return {
|
|
3472
|
-
...(input.Transition !== undefined &&
|
|
3473
|
-
input.Transition !== null && { Transition: serializeAws_restJson1Transition(input.Transition, context) }),
|
|
3474
|
-
};
|
|
3475
|
-
};
|
|
3476
|
-
|
|
3477
|
-
const serializeAws_restJson1SecretsManagerAccessTokenConfiguration = (
|
|
3478
|
-
input: SecretsManagerAccessTokenConfiguration,
|
|
3479
|
-
context: __SerdeContext
|
|
3480
|
-
): any => {
|
|
3481
|
-
return {
|
|
3482
|
-
...(input.HeaderName !== undefined && input.HeaderName !== null && { HeaderName: input.HeaderName }),
|
|
3483
|
-
...(input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn }),
|
|
3484
|
-
...(input.SecretStringKey !== undefined &&
|
|
3485
|
-
input.SecretStringKey !== null && { SecretStringKey: input.SecretStringKey }),
|
|
3486
|
-
};
|
|
3487
|
-
};
|
|
3488
|
-
|
|
3489
|
-
const serializeAws_restJson1SlateSource = (input: SlateSource, context: __SerdeContext): any => {
|
|
3490
|
-
return {
|
|
3491
|
-
...(input.SourceLocationName !== undefined &&
|
|
3492
|
-
input.SourceLocationName !== null && { SourceLocationName: input.SourceLocationName }),
|
|
3493
|
-
...(input.VodSourceName !== undefined && input.VodSourceName !== null && { VodSourceName: input.VodSourceName }),
|
|
3494
|
-
};
|
|
3495
|
-
};
|
|
3496
|
-
|
|
3497
|
-
const serializeAws_restJson1SpliceInsertMessage = (input: SpliceInsertMessage, context: __SerdeContext): any => {
|
|
3498
|
-
return {
|
|
3499
|
-
...(input.AvailNum !== undefined && input.AvailNum !== null && { AvailNum: input.AvailNum }),
|
|
3500
|
-
...(input.AvailsExpected !== undefined &&
|
|
3501
|
-
input.AvailsExpected !== null && { AvailsExpected: input.AvailsExpected }),
|
|
3502
|
-
...(input.SpliceEventId !== undefined && input.SpliceEventId !== null && { SpliceEventId: input.SpliceEventId }),
|
|
3503
|
-
...(input.UniqueProgramId !== undefined &&
|
|
3504
|
-
input.UniqueProgramId !== null && { UniqueProgramId: input.UniqueProgramId }),
|
|
3505
|
-
};
|
|
3506
|
-
};
|
|
3507
|
-
|
|
3508
|
-
const serializeAws_restJson1Transition = (input: Transition, context: __SerdeContext): any => {
|
|
3509
|
-
return {
|
|
3510
|
-
...(input.RelativePosition !== undefined &&
|
|
3511
|
-
input.RelativePosition !== null && { RelativePosition: input.RelativePosition }),
|
|
3512
|
-
...(input.RelativeProgram !== undefined &&
|
|
3513
|
-
input.RelativeProgram !== null && { RelativeProgram: input.RelativeProgram }),
|
|
3514
|
-
...(input.ScheduledStartTimeMillis !== undefined &&
|
|
3515
|
-
input.ScheduledStartTimeMillis !== null && { ScheduledStartTimeMillis: input.ScheduledStartTimeMillis }),
|
|
3516
|
-
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
3517
|
-
};
|
|
3518
|
-
};
|
|
3519
|
-
|
|
3520
|
-
const deserializeAws_restJson1__listOf__string = (output: any, context: __SerdeContext): string[] => {
|
|
3521
|
-
return (output || [])
|
|
3522
|
-
.filter((e: any) => e != null)
|
|
3523
|
-
.map((entry: any) => {
|
|
3524
|
-
if (entry === null) {
|
|
3525
|
-
return null as any;
|
|
3526
|
-
}
|
|
3527
|
-
return __expectString(entry) as any;
|
|
3528
|
-
});
|
|
3529
|
-
};
|
|
3530
|
-
|
|
3531
|
-
const deserializeAws_restJson1__listOfAdBreak = (output: any, context: __SerdeContext): AdBreak[] => {
|
|
3532
|
-
return (output || [])
|
|
3533
|
-
.filter((e: any) => e != null)
|
|
3534
|
-
.map((entry: any) => {
|
|
3535
|
-
if (entry === null) {
|
|
3536
|
-
return null as any;
|
|
3537
|
-
}
|
|
3538
|
-
return deserializeAws_restJson1AdBreak(entry, context);
|
|
3539
|
-
});
|
|
3540
|
-
};
|
|
3541
|
-
|
|
3542
|
-
const deserializeAws_restJson1__listOfAlert = (output: any, context: __SerdeContext): Alert[] => {
|
|
3543
|
-
return (output || [])
|
|
3544
|
-
.filter((e: any) => e != null)
|
|
3545
|
-
.map((entry: any) => {
|
|
3546
|
-
if (entry === null) {
|
|
3547
|
-
return null as any;
|
|
3548
|
-
}
|
|
3549
|
-
return deserializeAws_restJson1Alert(entry, context);
|
|
3550
|
-
});
|
|
3551
|
-
};
|
|
3552
|
-
|
|
3553
|
-
const deserializeAws_restJson1__listOfChannel = (output: any, context: __SerdeContext): Channel[] => {
|
|
3554
|
-
return (output || [])
|
|
3555
|
-
.filter((e: any) => e != null)
|
|
3556
|
-
.map((entry: any) => {
|
|
3557
|
-
if (entry === null) {
|
|
3558
|
-
return null as any;
|
|
3559
|
-
}
|
|
3560
|
-
return deserializeAws_restJson1Channel(entry, context);
|
|
3561
|
-
});
|
|
3562
|
-
};
|
|
3563
|
-
|
|
3564
|
-
const deserializeAws_restJson1__listOfPlaybackConfiguration = (
|
|
3565
|
-
output: any,
|
|
3566
|
-
context: __SerdeContext
|
|
3567
|
-
): PlaybackConfiguration[] => {
|
|
3568
|
-
return (output || [])
|
|
3569
|
-
.filter((e: any) => e != null)
|
|
3570
|
-
.map((entry: any) => {
|
|
3571
|
-
if (entry === null) {
|
|
3572
|
-
return null as any;
|
|
3573
|
-
}
|
|
3574
|
-
return deserializeAws_restJson1PlaybackConfiguration(entry, context);
|
|
3575
|
-
});
|
|
3576
|
-
};
|
|
3577
|
-
|
|
3578
|
-
const deserializeAws_restJson1__listOfScheduleAdBreak = (output: any, context: __SerdeContext): ScheduleAdBreak[] => {
|
|
3579
|
-
return (output || [])
|
|
3580
|
-
.filter((e: any) => e != null)
|
|
3581
|
-
.map((entry: any) => {
|
|
3582
|
-
if (entry === null) {
|
|
3583
|
-
return null as any;
|
|
3584
|
-
}
|
|
3585
|
-
return deserializeAws_restJson1ScheduleAdBreak(entry, context);
|
|
3586
|
-
});
|
|
3587
|
-
};
|
|
3588
|
-
|
|
3589
|
-
const deserializeAws_restJson1__listOfScheduleEntry = (output: any, context: __SerdeContext): ScheduleEntry[] => {
|
|
3590
|
-
return (output || [])
|
|
3591
|
-
.filter((e: any) => e != null)
|
|
3592
|
-
.map((entry: any) => {
|
|
3593
|
-
if (entry === null) {
|
|
3594
|
-
return null as any;
|
|
3595
|
-
}
|
|
3596
|
-
return deserializeAws_restJson1ScheduleEntry(entry, context);
|
|
3597
|
-
});
|
|
3598
|
-
};
|
|
3599
|
-
|
|
3600
|
-
const deserializeAws_restJson1__listOfSourceLocation = (output: any, context: __SerdeContext): SourceLocation[] => {
|
|
3601
|
-
return (output || [])
|
|
3602
|
-
.filter((e: any) => e != null)
|
|
3603
|
-
.map((entry: any) => {
|
|
3604
|
-
if (entry === null) {
|
|
3605
|
-
return null as any;
|
|
3606
|
-
}
|
|
3607
|
-
return deserializeAws_restJson1SourceLocation(entry, context);
|
|
3608
|
-
});
|
|
3609
|
-
};
|
|
3610
|
-
|
|
3611
|
-
const deserializeAws_restJson1__listOfVodSource = (output: any, context: __SerdeContext): VodSource[] => {
|
|
3612
|
-
return (output || [])
|
|
3613
|
-
.filter((e: any) => e != null)
|
|
3614
|
-
.map((entry: any) => {
|
|
3615
|
-
if (entry === null) {
|
|
3616
|
-
return null as any;
|
|
3617
|
-
}
|
|
3618
|
-
return deserializeAws_restJson1VodSource(entry, context);
|
|
3619
|
-
});
|
|
3620
|
-
};
|
|
3621
|
-
|
|
3622
|
-
const deserializeAws_restJson1__mapOf__string = (output: any, context: __SerdeContext): { [key: string]: string } => {
|
|
3623
|
-
return Object.entries(output).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
|
|
3624
|
-
if (value === null) {
|
|
3625
|
-
return acc;
|
|
3626
|
-
}
|
|
3627
|
-
return {
|
|
3628
|
-
...acc,
|
|
3629
|
-
[key]: __expectString(value) as any,
|
|
3630
|
-
};
|
|
3631
|
-
}, {});
|
|
3632
|
-
};
|
|
3633
|
-
|
|
3634
|
-
const deserializeAws_restJson1AccessConfiguration = (output: any, context: __SerdeContext): AccessConfiguration => {
|
|
3635
|
-
return {
|
|
3636
|
-
AccessType: __expectString(output.AccessType),
|
|
3637
|
-
SecretsManagerAccessTokenConfiguration:
|
|
3638
|
-
output.SecretsManagerAccessTokenConfiguration !== undefined &&
|
|
3639
|
-
output.SecretsManagerAccessTokenConfiguration !== null
|
|
3640
|
-
? deserializeAws_restJson1SecretsManagerAccessTokenConfiguration(
|
|
3641
|
-
output.SecretsManagerAccessTokenConfiguration,
|
|
3642
|
-
context
|
|
3643
|
-
)
|
|
3644
|
-
: undefined,
|
|
3645
|
-
} as any;
|
|
3646
|
-
};
|
|
3647
|
-
|
|
3648
|
-
const deserializeAws_restJson1AdBreak = (output: any, context: __SerdeContext): AdBreak => {
|
|
3649
|
-
return {
|
|
3650
|
-
MessageType: __expectString(output.MessageType),
|
|
3651
|
-
OffsetMillis: __expectLong(output.OffsetMillis),
|
|
3652
|
-
Slate:
|
|
3653
|
-
output.Slate !== undefined && output.Slate !== null
|
|
3654
|
-
? deserializeAws_restJson1SlateSource(output.Slate, context)
|
|
3655
|
-
: undefined,
|
|
3656
|
-
SpliceInsertMessage:
|
|
3657
|
-
output.SpliceInsertMessage !== undefined && output.SpliceInsertMessage !== null
|
|
3658
|
-
? deserializeAws_restJson1SpliceInsertMessage(output.SpliceInsertMessage, context)
|
|
3659
|
-
: undefined,
|
|
3660
|
-
} as any;
|
|
3661
|
-
};
|
|
3662
|
-
|
|
3663
|
-
const deserializeAws_restJson1AdMarkerPassthrough = (output: any, context: __SerdeContext): AdMarkerPassthrough => {
|
|
3664
|
-
return {
|
|
3665
|
-
Enabled: __expectBoolean(output.Enabled),
|
|
3666
|
-
} as any;
|
|
3667
|
-
};
|
|
3668
|
-
|
|
3669
|
-
const deserializeAws_restJson1Alert = (output: any, context: __SerdeContext): Alert => {
|
|
3670
|
-
return {
|
|
3671
|
-
AlertCode: __expectString(output.AlertCode),
|
|
3672
|
-
AlertMessage: __expectString(output.AlertMessage),
|
|
3673
|
-
LastModifiedTime:
|
|
3674
|
-
output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
3675
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
3676
|
-
: undefined,
|
|
3677
|
-
RelatedResourceArns:
|
|
3678
|
-
output.RelatedResourceArns !== undefined && output.RelatedResourceArns !== null
|
|
3679
|
-
? deserializeAws_restJson1__listOf__string(output.RelatedResourceArns, context)
|
|
3680
|
-
: undefined,
|
|
3681
|
-
ResourceArn: __expectString(output.ResourceArn),
|
|
3682
|
-
} as any;
|
|
3683
|
-
};
|
|
3684
|
-
|
|
3685
|
-
const deserializeAws_restJson1AvailSuppression = (output: any, context: __SerdeContext): AvailSuppression => {
|
|
3686
|
-
return {
|
|
3687
|
-
Mode: __expectString(output.Mode),
|
|
3688
|
-
Value: __expectString(output.Value),
|
|
3689
|
-
} as any;
|
|
3690
|
-
};
|
|
3691
|
-
|
|
3692
|
-
const deserializeAws_restJson1Bumper = (output: any, context: __SerdeContext): Bumper => {
|
|
3693
|
-
return {
|
|
3694
|
-
EndUrl: __expectString(output.EndUrl),
|
|
3695
|
-
StartUrl: __expectString(output.StartUrl),
|
|
3696
|
-
} as any;
|
|
3697
|
-
};
|
|
3698
|
-
|
|
3699
|
-
const deserializeAws_restJson1CdnConfiguration = (output: any, context: __SerdeContext): CdnConfiguration => {
|
|
3700
|
-
return {
|
|
3701
|
-
AdSegmentUrlPrefix: __expectString(output.AdSegmentUrlPrefix),
|
|
3702
|
-
ContentSegmentUrlPrefix: __expectString(output.ContentSegmentUrlPrefix),
|
|
3703
|
-
} as any;
|
|
3704
|
-
};
|
|
3705
|
-
|
|
3706
|
-
const deserializeAws_restJson1Channel = (output: any, context: __SerdeContext): Channel => {
|
|
3707
|
-
return {
|
|
3708
|
-
Arn: __expectString(output.Arn),
|
|
3709
|
-
ChannelName: __expectString(output.ChannelName),
|
|
3710
|
-
ChannelState: __expectString(output.ChannelState),
|
|
3711
|
-
CreationTime:
|
|
3712
|
-
output.CreationTime !== undefined && output.CreationTime !== null
|
|
3713
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3714
|
-
: undefined,
|
|
3715
|
-
FillerSlate:
|
|
3716
|
-
output.FillerSlate !== undefined && output.FillerSlate !== null
|
|
3717
|
-
? deserializeAws_restJson1SlateSource(output.FillerSlate, context)
|
|
3718
|
-
: undefined,
|
|
3719
|
-
LastModifiedTime:
|
|
3720
|
-
output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
3721
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
3722
|
-
: undefined,
|
|
3723
|
-
Outputs:
|
|
3724
|
-
output.Outputs !== undefined && output.Outputs !== null
|
|
3725
|
-
? deserializeAws_restJson1ResponseOutputs(output.Outputs, context)
|
|
3726
|
-
: undefined,
|
|
3727
|
-
PlaybackMode: __expectString(output.PlaybackMode),
|
|
3728
|
-
Tags:
|
|
3729
|
-
output.tags !== undefined && output.tags !== null
|
|
3730
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
3731
|
-
: undefined,
|
|
3732
|
-
} as any;
|
|
3733
|
-
};
|
|
3734
|
-
|
|
3735
|
-
const deserializeAws_restJson1ConfigurationAliasesResponse = (
|
|
3736
|
-
output: any,
|
|
3737
|
-
context: __SerdeContext
|
|
3738
|
-
): { [key: string]: { [key: string]: string } } => {
|
|
3739
|
-
return Object.entries(output).reduce(
|
|
3740
|
-
(acc: { [key: string]: { [key: string]: string } }, [key, value]: [string, any]) => {
|
|
3741
|
-
if (value === null) {
|
|
3742
|
-
return acc;
|
|
3743
|
-
}
|
|
3744
|
-
return {
|
|
3745
|
-
...acc,
|
|
3746
|
-
[key]: deserializeAws_restJson1__mapOf__string(value, context),
|
|
3747
|
-
};
|
|
3748
|
-
},
|
|
3749
|
-
{}
|
|
3750
|
-
);
|
|
3751
|
-
};
|
|
3752
|
-
|
|
3753
|
-
const deserializeAws_restJson1DashConfiguration = (output: any, context: __SerdeContext): DashConfiguration => {
|
|
3754
|
-
return {
|
|
3755
|
-
ManifestEndpointPrefix: __expectString(output.ManifestEndpointPrefix),
|
|
3756
|
-
MpdLocation: __expectString(output.MpdLocation),
|
|
3757
|
-
OriginManifestType: __expectString(output.OriginManifestType),
|
|
3758
|
-
} as any;
|
|
3759
|
-
};
|
|
3760
|
-
|
|
3761
|
-
const deserializeAws_restJson1DashPlaylistSettings = (output: any, context: __SerdeContext): DashPlaylistSettings => {
|
|
3762
|
-
return {
|
|
3763
|
-
ManifestWindowSeconds: __expectInt32(output.ManifestWindowSeconds),
|
|
3764
|
-
MinBufferTimeSeconds: __expectInt32(output.MinBufferTimeSeconds),
|
|
3765
|
-
MinUpdatePeriodSeconds: __expectInt32(output.MinUpdatePeriodSeconds),
|
|
3766
|
-
SuggestedPresentationDelaySeconds: __expectInt32(output.SuggestedPresentationDelaySeconds),
|
|
3767
|
-
} as any;
|
|
3768
|
-
};
|
|
3769
|
-
|
|
3770
|
-
const deserializeAws_restJson1DefaultSegmentDeliveryConfiguration = (
|
|
3771
|
-
output: any,
|
|
3772
|
-
context: __SerdeContext
|
|
3773
|
-
): DefaultSegmentDeliveryConfiguration => {
|
|
3774
|
-
return {
|
|
3775
|
-
BaseUrl: __expectString(output.BaseUrl),
|
|
3776
|
-
} as any;
|
|
3777
|
-
};
|
|
3778
|
-
|
|
3779
|
-
const deserializeAws_restJson1HlsConfiguration = (output: any, context: __SerdeContext): HlsConfiguration => {
|
|
3780
|
-
return {
|
|
3781
|
-
ManifestEndpointPrefix: __expectString(output.ManifestEndpointPrefix),
|
|
3782
|
-
} as any;
|
|
3783
|
-
};
|
|
3784
|
-
|
|
3785
|
-
const deserializeAws_restJson1HlsPlaylistSettings = (output: any, context: __SerdeContext): HlsPlaylistSettings => {
|
|
3786
|
-
return {
|
|
3787
|
-
ManifestWindowSeconds: __expectInt32(output.ManifestWindowSeconds),
|
|
3788
|
-
} as any;
|
|
3789
|
-
};
|
|
3790
|
-
|
|
3791
|
-
const deserializeAws_restJson1HttpConfiguration = (output: any, context: __SerdeContext): HttpConfiguration => {
|
|
3792
|
-
return {
|
|
3793
|
-
BaseUrl: __expectString(output.BaseUrl),
|
|
3794
|
-
} as any;
|
|
3795
|
-
};
|
|
3796
|
-
|
|
3797
|
-
const deserializeAws_restJson1HttpPackageConfiguration = (
|
|
3798
|
-
output: any,
|
|
3799
|
-
context: __SerdeContext
|
|
3800
|
-
): HttpPackageConfiguration => {
|
|
3801
|
-
return {
|
|
3802
|
-
Path: __expectString(output.Path),
|
|
3803
|
-
SourceGroup: __expectString(output.SourceGroup),
|
|
3804
|
-
Type: __expectString(output.Type),
|
|
3805
|
-
} as any;
|
|
3806
|
-
};
|
|
3807
|
-
|
|
3808
|
-
const deserializeAws_restJson1HttpPackageConfigurations = (
|
|
3809
|
-
output: any,
|
|
3810
|
-
context: __SerdeContext
|
|
3811
|
-
): HttpPackageConfiguration[] => {
|
|
3812
|
-
return (output || [])
|
|
3813
|
-
.filter((e: any) => e != null)
|
|
3814
|
-
.map((entry: any) => {
|
|
3815
|
-
if (entry === null) {
|
|
3816
|
-
return null as any;
|
|
3817
|
-
}
|
|
3818
|
-
return deserializeAws_restJson1HttpPackageConfiguration(entry, context);
|
|
3819
|
-
});
|
|
3820
|
-
};
|
|
3821
|
-
|
|
3822
|
-
const deserializeAws_restJson1LivePreRollConfiguration = (
|
|
3823
|
-
output: any,
|
|
3824
|
-
context: __SerdeContext
|
|
3825
|
-
): LivePreRollConfiguration => {
|
|
3826
|
-
return {
|
|
3827
|
-
AdDecisionServerUrl: __expectString(output.AdDecisionServerUrl),
|
|
3828
|
-
MaxDurationSeconds: __expectInt32(output.MaxDurationSeconds),
|
|
3829
|
-
} as any;
|
|
3830
|
-
};
|
|
3831
|
-
|
|
3832
|
-
const deserializeAws_restJson1ManifestProcessingRules = (
|
|
3833
|
-
output: any,
|
|
3834
|
-
context: __SerdeContext
|
|
3835
|
-
): ManifestProcessingRules => {
|
|
3836
|
-
return {
|
|
3837
|
-
AdMarkerPassthrough:
|
|
3838
|
-
output.AdMarkerPassthrough !== undefined && output.AdMarkerPassthrough !== null
|
|
3839
|
-
? deserializeAws_restJson1AdMarkerPassthrough(output.AdMarkerPassthrough, context)
|
|
3840
|
-
: undefined,
|
|
3841
|
-
} as any;
|
|
3842
|
-
};
|
|
3843
|
-
|
|
3844
|
-
const deserializeAws_restJson1PlaybackConfiguration = (output: any, context: __SerdeContext): PlaybackConfiguration => {
|
|
3845
|
-
return {
|
|
3846
|
-
AdDecisionServerUrl: __expectString(output.AdDecisionServerUrl),
|
|
3847
|
-
AvailSuppression:
|
|
3848
|
-
output.AvailSuppression !== undefined && output.AvailSuppression !== null
|
|
3849
|
-
? deserializeAws_restJson1AvailSuppression(output.AvailSuppression, context)
|
|
3850
|
-
: undefined,
|
|
3851
|
-
Bumper:
|
|
3852
|
-
output.Bumper !== undefined && output.Bumper !== null
|
|
3853
|
-
? deserializeAws_restJson1Bumper(output.Bumper, context)
|
|
3854
|
-
: undefined,
|
|
3855
|
-
CdnConfiguration:
|
|
3856
|
-
output.CdnConfiguration !== undefined && output.CdnConfiguration !== null
|
|
3857
|
-
? deserializeAws_restJson1CdnConfiguration(output.CdnConfiguration, context)
|
|
3858
|
-
: undefined,
|
|
3859
|
-
ConfigurationAliases:
|
|
3860
|
-
output.ConfigurationAliases !== undefined && output.ConfigurationAliases !== null
|
|
3861
|
-
? deserializeAws_restJson1ConfigurationAliasesResponse(output.ConfigurationAliases, context)
|
|
3862
|
-
: undefined,
|
|
3863
|
-
DashConfiguration:
|
|
3864
|
-
output.DashConfiguration !== undefined && output.DashConfiguration !== null
|
|
3865
|
-
? deserializeAws_restJson1DashConfiguration(output.DashConfiguration, context)
|
|
3866
|
-
: undefined,
|
|
3867
|
-
HlsConfiguration:
|
|
3868
|
-
output.HlsConfiguration !== undefined && output.HlsConfiguration !== null
|
|
3869
|
-
? deserializeAws_restJson1HlsConfiguration(output.HlsConfiguration, context)
|
|
3870
|
-
: undefined,
|
|
3871
|
-
LivePreRollConfiguration:
|
|
3872
|
-
output.LivePreRollConfiguration !== undefined && output.LivePreRollConfiguration !== null
|
|
3873
|
-
? deserializeAws_restJson1LivePreRollConfiguration(output.LivePreRollConfiguration, context)
|
|
3874
|
-
: undefined,
|
|
3875
|
-
ManifestProcessingRules:
|
|
3876
|
-
output.ManifestProcessingRules !== undefined && output.ManifestProcessingRules !== null
|
|
3877
|
-
? deserializeAws_restJson1ManifestProcessingRules(output.ManifestProcessingRules, context)
|
|
3878
|
-
: undefined,
|
|
3879
|
-
Name: __expectString(output.Name),
|
|
3880
|
-
PersonalizationThresholdSeconds: __expectInt32(output.PersonalizationThresholdSeconds),
|
|
3881
|
-
PlaybackConfigurationArn: __expectString(output.PlaybackConfigurationArn),
|
|
3882
|
-
PlaybackEndpointPrefix: __expectString(output.PlaybackEndpointPrefix),
|
|
3883
|
-
SessionInitializationEndpointPrefix: __expectString(output.SessionInitializationEndpointPrefix),
|
|
3884
|
-
SlateAdUrl: __expectString(output.SlateAdUrl),
|
|
3885
|
-
Tags:
|
|
3886
|
-
output.tags !== undefined && output.tags !== null
|
|
3887
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
3888
|
-
: undefined,
|
|
3889
|
-
TranscodeProfileName: __expectString(output.TranscodeProfileName),
|
|
3890
|
-
VideoContentSourceUrl: __expectString(output.VideoContentSourceUrl),
|
|
3891
|
-
} as any;
|
|
3892
|
-
};
|
|
3893
|
-
|
|
3894
|
-
const deserializeAws_restJson1ResponseOutputItem = (output: any, context: __SerdeContext): ResponseOutputItem => {
|
|
3895
|
-
return {
|
|
3896
|
-
DashPlaylistSettings:
|
|
3897
|
-
output.DashPlaylistSettings !== undefined && output.DashPlaylistSettings !== null
|
|
3898
|
-
? deserializeAws_restJson1DashPlaylistSettings(output.DashPlaylistSettings, context)
|
|
3899
|
-
: undefined,
|
|
3900
|
-
HlsPlaylistSettings:
|
|
3901
|
-
output.HlsPlaylistSettings !== undefined && output.HlsPlaylistSettings !== null
|
|
3902
|
-
? deserializeAws_restJson1HlsPlaylistSettings(output.HlsPlaylistSettings, context)
|
|
3903
|
-
: undefined,
|
|
3904
|
-
ManifestName: __expectString(output.ManifestName),
|
|
3905
|
-
PlaybackUrl: __expectString(output.PlaybackUrl),
|
|
3906
|
-
SourceGroup: __expectString(output.SourceGroup),
|
|
3907
|
-
} as any;
|
|
3908
|
-
};
|
|
3909
|
-
|
|
3910
|
-
const deserializeAws_restJson1ResponseOutputs = (output: any, context: __SerdeContext): ResponseOutputItem[] => {
|
|
3911
|
-
return (output || [])
|
|
3912
|
-
.filter((e: any) => e != null)
|
|
3913
|
-
.map((entry: any) => {
|
|
3914
|
-
if (entry === null) {
|
|
3915
|
-
return null as any;
|
|
3916
|
-
}
|
|
3917
|
-
return deserializeAws_restJson1ResponseOutputItem(entry, context);
|
|
3918
|
-
});
|
|
3919
|
-
};
|
|
3920
|
-
|
|
3921
|
-
const deserializeAws_restJson1ScheduleAdBreak = (output: any, context: __SerdeContext): ScheduleAdBreak => {
|
|
3922
|
-
return {
|
|
3923
|
-
ApproximateDurationSeconds: __expectLong(output.ApproximateDurationSeconds),
|
|
3924
|
-
ApproximateStartTime:
|
|
3925
|
-
output.ApproximateStartTime !== undefined && output.ApproximateStartTime !== null
|
|
3926
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ApproximateStartTime)))
|
|
3927
|
-
: undefined,
|
|
3928
|
-
SourceLocationName: __expectString(output.SourceLocationName),
|
|
3929
|
-
VodSourceName: __expectString(output.VodSourceName),
|
|
3930
|
-
} as any;
|
|
3931
|
-
};
|
|
3932
|
-
|
|
3933
|
-
const deserializeAws_restJson1ScheduleEntry = (output: any, context: __SerdeContext): ScheduleEntry => {
|
|
3934
|
-
return {
|
|
3935
|
-
ApproximateDurationSeconds: __expectLong(output.ApproximateDurationSeconds),
|
|
3936
|
-
ApproximateStartTime:
|
|
3937
|
-
output.ApproximateStartTime !== undefined && output.ApproximateStartTime !== null
|
|
3938
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ApproximateStartTime)))
|
|
3939
|
-
: undefined,
|
|
3940
|
-
Arn: __expectString(output.Arn),
|
|
3941
|
-
ChannelName: __expectString(output.ChannelName),
|
|
3942
|
-
ProgramName: __expectString(output.ProgramName),
|
|
3943
|
-
ScheduleAdBreaks:
|
|
3944
|
-
output.ScheduleAdBreaks !== undefined && output.ScheduleAdBreaks !== null
|
|
3945
|
-
? deserializeAws_restJson1__listOfScheduleAdBreak(output.ScheduleAdBreaks, context)
|
|
3946
|
-
: undefined,
|
|
3947
|
-
ScheduleEntryType: __expectString(output.ScheduleEntryType),
|
|
3948
|
-
SourceLocationName: __expectString(output.SourceLocationName),
|
|
3949
|
-
VodSourceName: __expectString(output.VodSourceName),
|
|
3950
|
-
} as any;
|
|
3951
|
-
};
|
|
3952
|
-
|
|
3953
|
-
const deserializeAws_restJson1SecretsManagerAccessTokenConfiguration = (
|
|
3954
|
-
output: any,
|
|
3955
|
-
context: __SerdeContext
|
|
3956
|
-
): SecretsManagerAccessTokenConfiguration => {
|
|
3957
|
-
return {
|
|
3958
|
-
HeaderName: __expectString(output.HeaderName),
|
|
3959
|
-
SecretArn: __expectString(output.SecretArn),
|
|
3960
|
-
SecretStringKey: __expectString(output.SecretStringKey),
|
|
3961
|
-
} as any;
|
|
3962
|
-
};
|
|
3963
|
-
|
|
3964
|
-
const deserializeAws_restJson1SlateSource = (output: any, context: __SerdeContext): SlateSource => {
|
|
3965
|
-
return {
|
|
3966
|
-
SourceLocationName: __expectString(output.SourceLocationName),
|
|
3967
|
-
VodSourceName: __expectString(output.VodSourceName),
|
|
3968
|
-
} as any;
|
|
3969
|
-
};
|
|
3970
|
-
|
|
3971
|
-
const deserializeAws_restJson1SourceLocation = (output: any, context: __SerdeContext): SourceLocation => {
|
|
3972
|
-
return {
|
|
3973
|
-
AccessConfiguration:
|
|
3974
|
-
output.AccessConfiguration !== undefined && output.AccessConfiguration !== null
|
|
3975
|
-
? deserializeAws_restJson1AccessConfiguration(output.AccessConfiguration, context)
|
|
3976
|
-
: undefined,
|
|
3977
|
-
Arn: __expectString(output.Arn),
|
|
3978
|
-
CreationTime:
|
|
3979
|
-
output.CreationTime !== undefined && output.CreationTime !== null
|
|
3980
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3981
|
-
: undefined,
|
|
3982
|
-
DefaultSegmentDeliveryConfiguration:
|
|
3983
|
-
output.DefaultSegmentDeliveryConfiguration !== undefined && output.DefaultSegmentDeliveryConfiguration !== null
|
|
3984
|
-
? deserializeAws_restJson1DefaultSegmentDeliveryConfiguration(
|
|
3985
|
-
output.DefaultSegmentDeliveryConfiguration,
|
|
3986
|
-
context
|
|
3987
|
-
)
|
|
3988
|
-
: undefined,
|
|
3989
|
-
HttpConfiguration:
|
|
3990
|
-
output.HttpConfiguration !== undefined && output.HttpConfiguration !== null
|
|
3991
|
-
? deserializeAws_restJson1HttpConfiguration(output.HttpConfiguration, context)
|
|
3992
|
-
: undefined,
|
|
3993
|
-
LastModifiedTime:
|
|
3994
|
-
output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
3995
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
3996
|
-
: undefined,
|
|
3997
|
-
SourceLocationName: __expectString(output.SourceLocationName),
|
|
3998
|
-
Tags:
|
|
3999
|
-
output.tags !== undefined && output.tags !== null
|
|
4000
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4001
|
-
: undefined,
|
|
4002
|
-
} as any;
|
|
4003
|
-
};
|
|
4004
|
-
|
|
4005
|
-
const deserializeAws_restJson1SpliceInsertMessage = (output: any, context: __SerdeContext): SpliceInsertMessage => {
|
|
4006
|
-
return {
|
|
4007
|
-
AvailNum: __expectInt32(output.AvailNum),
|
|
4008
|
-
AvailsExpected: __expectInt32(output.AvailsExpected),
|
|
4009
|
-
SpliceEventId: __expectInt32(output.SpliceEventId),
|
|
4010
|
-
UniqueProgramId: __expectInt32(output.UniqueProgramId),
|
|
4011
|
-
} as any;
|
|
4012
|
-
};
|
|
4013
|
-
|
|
4014
|
-
const deserializeAws_restJson1VodSource = (output: any, context: __SerdeContext): VodSource => {
|
|
4015
|
-
return {
|
|
4016
|
-
Arn: __expectString(output.Arn),
|
|
4017
|
-
CreationTime:
|
|
4018
|
-
output.CreationTime !== undefined && output.CreationTime !== null
|
|
4019
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4020
|
-
: undefined,
|
|
4021
|
-
HttpPackageConfigurations:
|
|
4022
|
-
output.HttpPackageConfigurations !== undefined && output.HttpPackageConfigurations !== null
|
|
4023
|
-
? deserializeAws_restJson1HttpPackageConfigurations(output.HttpPackageConfigurations, context)
|
|
4024
|
-
: undefined,
|
|
4025
|
-
LastModifiedTime:
|
|
4026
|
-
output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
4027
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4028
|
-
: undefined,
|
|
4029
|
-
SourceLocationName: __expectString(output.SourceLocationName),
|
|
4030
|
-
Tags:
|
|
4031
|
-
output.tags !== undefined && output.tags !== null
|
|
4032
|
-
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4033
|
-
: undefined,
|
|
4034
|
-
VodSourceName: __expectString(output.VodSourceName),
|
|
4035
|
-
} as any;
|
|
4036
|
-
};
|
|
4037
|
-
|
|
4038
|
-
const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
|
|
4039
|
-
httpStatusCode: output.statusCode,
|
|
4040
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
4041
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4042
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4043
|
-
});
|
|
4044
|
-
|
|
4045
|
-
// Collect low-level response body stream to Uint8Array.
|
|
4046
|
-
const collectBody = (streamBody: any = new Uint8Array(), context: __SerdeContext): Promise<Uint8Array> => {
|
|
4047
|
-
if (streamBody instanceof Uint8Array) {
|
|
4048
|
-
return Promise.resolve(streamBody);
|
|
4049
|
-
}
|
|
4050
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4051
|
-
};
|
|
4052
|
-
|
|
4053
|
-
// Encode Uint8Array data into string with utf-8.
|
|
4054
|
-
const collectBodyString = (streamBody: any, context: __SerdeContext): Promise<string> =>
|
|
4055
|
-
collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4056
|
-
|
|
4057
|
-
const isSerializableHeaderValue = (value: any): boolean =>
|
|
4058
|
-
value !== undefined &&
|
|
4059
|
-
value !== null &&
|
|
4060
|
-
value !== "" &&
|
|
4061
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
4062
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
4063
|
-
|
|
4064
|
-
const parseBody = (streamBody: any, context: __SerdeContext): any =>
|
|
4065
|
-
collectBodyString(streamBody, context).then((encoded) => {
|
|
4066
|
-
if (encoded.length) {
|
|
4067
|
-
return JSON.parse(encoded);
|
|
4068
|
-
}
|
|
4069
|
-
return {};
|
|
4070
|
-
});
|
|
4071
|
-
|
|
4072
|
-
/**
|
|
4073
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
4074
|
-
*/
|
|
4075
|
-
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string => {
|
|
4076
|
-
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4077
|
-
|
|
4078
|
-
const sanitizeErrorCode = (rawValue: string): string => {
|
|
4079
|
-
let cleanValue = rawValue;
|
|
4080
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4081
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4082
|
-
}
|
|
4083
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4084
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4085
|
-
}
|
|
4086
|
-
return cleanValue;
|
|
4087
|
-
};
|
|
4088
|
-
|
|
4089
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4090
|
-
if (headerKey !== undefined) {
|
|
4091
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4092
|
-
}
|
|
4093
|
-
|
|
4094
|
-
if (data.code !== undefined) {
|
|
4095
|
-
return sanitizeErrorCode(data.code);
|
|
4096
|
-
}
|
|
4097
|
-
|
|
4098
|
-
if (data["__type"] !== undefined) {
|
|
4099
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4100
|
-
}
|
|
4101
|
-
|
|
4102
|
-
return "";
|
|
4103
|
-
};
|