@aws-sdk/client-mediatailor 3.33.0 → 3.34.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.
Files changed (135) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/MediaTailor.ts +39 -0
  3. package/MediaTailorClient.ts +6 -0
  4. package/README.md +7 -7
  5. package/commands/ConfigureLogsForPlaybackConfigurationCommand.ts +106 -0
  6. package/dist/cjs/MediaTailor.js +15 -0
  7. package/dist/cjs/MediaTailor.js.map +1 -1
  8. package/dist/cjs/MediaTailorClient.js.map +1 -1
  9. package/dist/cjs/commands/ConfigureLogsForPlaybackConfigurationCommand.js +61 -0
  10. package/dist/cjs/commands/ConfigureLogsForPlaybackConfigurationCommand.js.map +1 -0
  11. package/dist/cjs/index.js +1 -0
  12. package/dist/cjs/index.js.map +1 -1
  13. package/dist/cjs/models/models_0.js +30 -3
  14. package/dist/cjs/models/models_0.js.map +1 -1
  15. package/dist/cjs/package.json +38 -38
  16. package/dist/cjs/protocols/Aws_restJson1.js +86 -2
  17. package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
  18. package/dist/es/MediaTailor.js +16 -4
  19. package/dist/es/MediaTailor.js.map +1 -1
  20. package/dist/es/MediaTailorClient.js +1 -9
  21. package/dist/es/MediaTailorClient.js.map +1 -1
  22. package/dist/es/commands/ConfigureLogsForPlaybackConfigurationCommand.js +40 -0
  23. package/dist/es/commands/ConfigureLogsForPlaybackConfigurationCommand.js.map +1 -0
  24. package/dist/es/commands/CreateChannelCommand.js +2 -27
  25. package/dist/es/commands/CreateChannelCommand.js.map +1 -1
  26. package/dist/es/commands/CreateProgramCommand.js +2 -27
  27. package/dist/es/commands/CreateProgramCommand.js.map +1 -1
  28. package/dist/es/commands/CreateSourceLocationCommand.js +2 -27
  29. package/dist/es/commands/CreateSourceLocationCommand.js.map +1 -1
  30. package/dist/es/commands/CreateVodSourceCommand.js +2 -27
  31. package/dist/es/commands/CreateVodSourceCommand.js.map +1 -1
  32. package/dist/es/commands/DeleteChannelCommand.js +2 -27
  33. package/dist/es/commands/DeleteChannelCommand.js.map +1 -1
  34. package/dist/es/commands/DeleteChannelPolicyCommand.js +2 -27
  35. package/dist/es/commands/DeleteChannelPolicyCommand.js.map +1 -1
  36. package/dist/es/commands/DeletePlaybackConfigurationCommand.js +2 -27
  37. package/dist/es/commands/DeletePlaybackConfigurationCommand.js.map +1 -1
  38. package/dist/es/commands/DeleteProgramCommand.js +2 -27
  39. package/dist/es/commands/DeleteProgramCommand.js.map +1 -1
  40. package/dist/es/commands/DeleteSourceLocationCommand.js +2 -27
  41. package/dist/es/commands/DeleteSourceLocationCommand.js.map +1 -1
  42. package/dist/es/commands/DeleteVodSourceCommand.js +2 -27
  43. package/dist/es/commands/DeleteVodSourceCommand.js.map +1 -1
  44. package/dist/es/commands/DescribeChannelCommand.js +2 -27
  45. package/dist/es/commands/DescribeChannelCommand.js.map +1 -1
  46. package/dist/es/commands/DescribeProgramCommand.js +2 -27
  47. package/dist/es/commands/DescribeProgramCommand.js.map +1 -1
  48. package/dist/es/commands/DescribeSourceLocationCommand.js +2 -27
  49. package/dist/es/commands/DescribeSourceLocationCommand.js.map +1 -1
  50. package/dist/es/commands/DescribeVodSourceCommand.js +2 -27
  51. package/dist/es/commands/DescribeVodSourceCommand.js.map +1 -1
  52. package/dist/es/commands/GetChannelPolicyCommand.js +2 -27
  53. package/dist/es/commands/GetChannelPolicyCommand.js.map +1 -1
  54. package/dist/es/commands/GetChannelScheduleCommand.js +2 -27
  55. package/dist/es/commands/GetChannelScheduleCommand.js.map +1 -1
  56. package/dist/es/commands/GetPlaybackConfigurationCommand.js +2 -27
  57. package/dist/es/commands/GetPlaybackConfigurationCommand.js.map +1 -1
  58. package/dist/es/commands/ListAlertsCommand.js +2 -27
  59. package/dist/es/commands/ListAlertsCommand.js.map +1 -1
  60. package/dist/es/commands/ListChannelsCommand.js +2 -27
  61. package/dist/es/commands/ListChannelsCommand.js.map +1 -1
  62. package/dist/es/commands/ListPlaybackConfigurationsCommand.js +2 -27
  63. package/dist/es/commands/ListPlaybackConfigurationsCommand.js.map +1 -1
  64. package/dist/es/commands/ListSourceLocationsCommand.js +2 -27
  65. package/dist/es/commands/ListSourceLocationsCommand.js.map +1 -1
  66. package/dist/es/commands/ListTagsForResourceCommand.js +2 -27
  67. package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
  68. package/dist/es/commands/ListVodSourcesCommand.js +2 -27
  69. package/dist/es/commands/ListVodSourcesCommand.js.map +1 -1
  70. package/dist/es/commands/PutChannelPolicyCommand.js +2 -27
  71. package/dist/es/commands/PutChannelPolicyCommand.js.map +1 -1
  72. package/dist/es/commands/PutPlaybackConfigurationCommand.js +2 -27
  73. package/dist/es/commands/PutPlaybackConfigurationCommand.js.map +1 -1
  74. package/dist/es/commands/StartChannelCommand.js +2 -27
  75. package/dist/es/commands/StartChannelCommand.js.map +1 -1
  76. package/dist/es/commands/StopChannelCommand.js +2 -27
  77. package/dist/es/commands/StopChannelCommand.js.map +1 -1
  78. package/dist/es/commands/TagResourceCommand.js +2 -27
  79. package/dist/es/commands/TagResourceCommand.js.map +1 -1
  80. package/dist/es/commands/UntagResourceCommand.js +2 -27
  81. package/dist/es/commands/UntagResourceCommand.js.map +1 -1
  82. package/dist/es/commands/UpdateChannelCommand.js +2 -27
  83. package/dist/es/commands/UpdateChannelCommand.js.map +1 -1
  84. package/dist/es/commands/UpdateSourceLocationCommand.js +2 -27
  85. package/dist/es/commands/UpdateSourceLocationCommand.js.map +1 -1
  86. package/dist/es/commands/UpdateVodSourceCommand.js +2 -27
  87. package/dist/es/commands/UpdateVodSourceCommand.js.map +1 -1
  88. package/dist/es/endpoints.js +1 -1
  89. package/dist/es/endpoints.js.map +1 -1
  90. package/dist/es/index.js +1 -0
  91. package/dist/es/index.js.map +1 -1
  92. package/dist/es/models/models_0.js +12 -279
  93. package/dist/es/models/models_0.js.map +1 -1
  94. package/dist/es/package.json +38 -38
  95. package/dist/es/pagination/GetChannelSchedulePaginator.js +16 -28
  96. package/dist/es/pagination/GetChannelSchedulePaginator.js.map +1 -1
  97. package/dist/es/pagination/ListAlertsPaginator.js +16 -28
  98. package/dist/es/pagination/ListAlertsPaginator.js.map +1 -1
  99. package/dist/es/pagination/ListChannelsPaginator.js +16 -28
  100. package/dist/es/pagination/ListChannelsPaginator.js.map +1 -1
  101. package/dist/es/pagination/ListPlaybackConfigurationsPaginator.js +16 -28
  102. package/dist/es/pagination/ListPlaybackConfigurationsPaginator.js.map +1 -1
  103. package/dist/es/pagination/ListSourceLocationsPaginator.js +16 -28
  104. package/dist/es/pagination/ListSourceLocationsPaginator.js.map +1 -1
  105. package/dist/es/pagination/ListVodSourcesPaginator.js +16 -28
  106. package/dist/es/pagination/ListVodSourcesPaginator.js.map +1 -1
  107. package/dist/es/protocols/Aws_restJson1.js +336 -245
  108. package/dist/es/protocols/Aws_restJson1.js.map +1 -1
  109. package/dist/es/runtimeConfig.browser.js +0 -3
  110. package/dist/es/runtimeConfig.browser.js.map +1 -1
  111. package/dist/es/runtimeConfig.js +0 -3
  112. package/dist/es/runtimeConfig.js.map +1 -1
  113. package/dist/es/runtimeConfig.native.js +0 -3
  114. package/dist/es/runtimeConfig.native.js.map +1 -1
  115. package/dist/es/runtimeConfig.shared.js +0 -3
  116. package/dist/es/runtimeConfig.shared.js.map +1 -1
  117. package/dist/types/MediaTailor.d.ts +7 -0
  118. package/dist/types/MediaTailorClient.d.ts +3 -2
  119. package/dist/types/commands/ConfigureLogsForPlaybackConfigurationCommand.d.ts +35 -0
  120. package/dist/types/index.d.ts +1 -0
  121. package/dist/types/models/models_0.d.ts +63 -1
  122. package/dist/types/protocols/Aws_restJson1.d.ts +3 -0
  123. package/dist/types/ts3.4/MediaTailor.d.ts +7 -0
  124. package/dist/types/ts3.4/MediaTailorClient.d.ts +3 -2
  125. package/dist/types/ts3.4/commands/ConfigureLogsForPlaybackConfigurationCommand.d.ts +35 -0
  126. package/dist/types/ts3.4/index.d.ts +1 -0
  127. package/dist/types/ts3.4/models/models_0.d.ts +63 -1
  128. package/dist/types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  129. package/index.ts +1 -0
  130. package/models/models_0.ts +80 -1
  131. package/package.json +38 -38
  132. package/protocols/Aws_restJson1.ts +102 -0
  133. package/tsconfig.es.json +0 -2
  134. package/tsconfig.json +4 -5
  135. package/tsconfig.types.json +8 -0
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mediatailor",
3
3
  "description": "AWS SDK for JavaScript Mediatailor Client for Node.js, Browser and React Native",
4
- "version": "3.33.0",
4
+ "version": "3.34.0",
5
5
  "scripts": {
6
- "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
- "build-documentation": "yarn remove-documentation && typedoc ./",
8
- "remove-definitions": "rimraf ./types",
9
- "remove-dist": "rimraf ./dist",
10
- "remove-documentation": "rimraf ./docs",
11
- "test": "exit 0",
6
+ "build": "yarn build:cjs && yarn build:es && yarn build:types",
12
7
  "build:cjs": "tsc -p tsconfig.json",
8
+ "build:docs": "yarn clean:docs && typedoc ./",
13
9
  "build:es": "tsc -p tsconfig.es.json",
14
- "build": "yarn build:cjs && yarn build:es",
15
- "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
10
+ "build:types": "tsc -p tsconfig.types.json",
11
+ "clean": "yarn clean:dist && yarn clean:docs",
12
+ "clean:dist": "rimraf ./dist",
13
+ "clean:docs": "rimraf ./docs",
14
+ "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
15
+ "test": "exit 0"
16
16
  },
17
17
  "main": "./dist/cjs/index.js",
18
18
  "types": "./dist/types/index.d.ts",
@@ -27,38 +27,38 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "^1.0.0",
29
29
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.33.0",
31
- "@aws-sdk/config-resolver": "3.33.0",
32
- "@aws-sdk/credential-provider-node": "3.33.0",
33
- "@aws-sdk/fetch-http-handler": "3.32.0",
34
- "@aws-sdk/hash-node": "3.32.0",
35
- "@aws-sdk/invalid-dependency": "3.32.0",
36
- "@aws-sdk/middleware-content-length": "3.32.0",
37
- "@aws-sdk/middleware-host-header": "3.32.0",
38
- "@aws-sdk/middleware-logger": "3.32.0",
39
- "@aws-sdk/middleware-retry": "3.32.0",
40
- "@aws-sdk/middleware-serde": "3.32.0",
41
- "@aws-sdk/middleware-signing": "3.33.0",
42
- "@aws-sdk/middleware-stack": "3.32.0",
43
- "@aws-sdk/middleware-user-agent": "3.32.0",
44
- "@aws-sdk/node-config-provider": "3.32.0",
45
- "@aws-sdk/node-http-handler": "3.32.0",
46
- "@aws-sdk/protocol-http": "3.32.0",
47
- "@aws-sdk/smithy-client": "3.32.0",
48
- "@aws-sdk/types": "3.32.0",
49
- "@aws-sdk/url-parser": "3.32.0",
50
- "@aws-sdk/util-base64-browser": "3.32.0",
51
- "@aws-sdk/util-base64-node": "3.32.0",
52
- "@aws-sdk/util-body-length-browser": "3.32.0",
53
- "@aws-sdk/util-body-length-node": "3.32.0",
54
- "@aws-sdk/util-user-agent-browser": "3.32.0",
55
- "@aws-sdk/util-user-agent-node": "3.33.0",
56
- "@aws-sdk/util-utf8-browser": "3.32.0",
57
- "@aws-sdk/util-utf8-node": "3.32.0",
30
+ "@aws-sdk/client-sts": "3.34.0",
31
+ "@aws-sdk/config-resolver": "3.34.0",
32
+ "@aws-sdk/credential-provider-node": "3.34.0",
33
+ "@aws-sdk/fetch-http-handler": "3.34.0",
34
+ "@aws-sdk/hash-node": "3.34.0",
35
+ "@aws-sdk/invalid-dependency": "3.34.0",
36
+ "@aws-sdk/middleware-content-length": "3.34.0",
37
+ "@aws-sdk/middleware-host-header": "3.34.0",
38
+ "@aws-sdk/middleware-logger": "3.34.0",
39
+ "@aws-sdk/middleware-retry": "3.34.0",
40
+ "@aws-sdk/middleware-serde": "3.34.0",
41
+ "@aws-sdk/middleware-signing": "3.34.0",
42
+ "@aws-sdk/middleware-stack": "3.34.0",
43
+ "@aws-sdk/middleware-user-agent": "3.34.0",
44
+ "@aws-sdk/node-config-provider": "3.34.0",
45
+ "@aws-sdk/node-http-handler": "3.34.0",
46
+ "@aws-sdk/protocol-http": "3.34.0",
47
+ "@aws-sdk/smithy-client": "3.34.0",
48
+ "@aws-sdk/types": "3.34.0",
49
+ "@aws-sdk/url-parser": "3.34.0",
50
+ "@aws-sdk/util-base64-browser": "3.34.0",
51
+ "@aws-sdk/util-base64-node": "3.34.0",
52
+ "@aws-sdk/util-body-length-browser": "3.34.0",
53
+ "@aws-sdk/util-body-length-node": "3.34.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.34.0",
55
+ "@aws-sdk/util-user-agent-node": "3.34.0",
56
+ "@aws-sdk/util-utf8-browser": "3.34.0",
57
+ "@aws-sdk/util-utf8-node": "3.34.0",
58
58
  "tslib": "^2.3.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-sdk/client-documentation-generator": "3.32.0",
61
+ "@aws-sdk/client-documentation-generator": "3.34.0",
62
62
  "@types/node": "^12.7.5",
63
63
  "downlevel-dts": "0.7.0",
64
64
  "jest": "^26.1.0",
@@ -1,9 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1ListAlertsCommand = exports.deserializeAws_restJson1GetPlaybackConfigurationCommand = exports.deserializeAws_restJson1GetChannelScheduleCommand = exports.deserializeAws_restJson1GetChannelPolicyCommand = exports.deserializeAws_restJson1DescribeVodSourceCommand = exports.deserializeAws_restJson1DescribeSourceLocationCommand = exports.deserializeAws_restJson1DescribeProgramCommand = exports.deserializeAws_restJson1DescribeChannelCommand = exports.deserializeAws_restJson1DeleteVodSourceCommand = exports.deserializeAws_restJson1DeleteSourceLocationCommand = exports.deserializeAws_restJson1DeleteProgramCommand = exports.deserializeAws_restJson1DeletePlaybackConfigurationCommand = exports.deserializeAws_restJson1DeleteChannelPolicyCommand = exports.deserializeAws_restJson1DeleteChannelCommand = exports.deserializeAws_restJson1CreateVodSourceCommand = exports.deserializeAws_restJson1CreateSourceLocationCommand = exports.deserializeAws_restJson1CreateProgramCommand = exports.deserializeAws_restJson1CreateChannelCommand = exports.serializeAws_restJson1UpdateVodSourceCommand = exports.serializeAws_restJson1UpdateSourceLocationCommand = exports.serializeAws_restJson1UpdateChannelCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopChannelCommand = exports.serializeAws_restJson1StartChannelCommand = exports.serializeAws_restJson1PutPlaybackConfigurationCommand = exports.serializeAws_restJson1PutChannelPolicyCommand = exports.serializeAws_restJson1ListVodSourcesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSourceLocationsCommand = exports.serializeAws_restJson1ListPlaybackConfigurationsCommand = exports.serializeAws_restJson1ListChannelsCommand = exports.serializeAws_restJson1ListAlertsCommand = exports.serializeAws_restJson1GetPlaybackConfigurationCommand = exports.serializeAws_restJson1GetChannelScheduleCommand = exports.serializeAws_restJson1GetChannelPolicyCommand = exports.serializeAws_restJson1DescribeVodSourceCommand = exports.serializeAws_restJson1DescribeSourceLocationCommand = exports.serializeAws_restJson1DescribeProgramCommand = exports.serializeAws_restJson1DescribeChannelCommand = exports.serializeAws_restJson1DeleteVodSourceCommand = exports.serializeAws_restJson1DeleteSourceLocationCommand = exports.serializeAws_restJson1DeleteProgramCommand = exports.serializeAws_restJson1DeletePlaybackConfigurationCommand = exports.serializeAws_restJson1DeleteChannelPolicyCommand = exports.serializeAws_restJson1DeleteChannelCommand = exports.serializeAws_restJson1CreateVodSourceCommand = exports.serializeAws_restJson1CreateSourceLocationCommand = exports.serializeAws_restJson1CreateProgramCommand = exports.serializeAws_restJson1CreateChannelCommand = void 0;
4
- exports.deserializeAws_restJson1UpdateVodSourceCommand = exports.deserializeAws_restJson1UpdateSourceLocationCommand = exports.deserializeAws_restJson1UpdateChannelCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopChannelCommand = exports.deserializeAws_restJson1StartChannelCommand = exports.deserializeAws_restJson1PutPlaybackConfigurationCommand = exports.deserializeAws_restJson1PutChannelPolicyCommand = exports.deserializeAws_restJson1ListVodSourcesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSourceLocationsCommand = exports.deserializeAws_restJson1ListPlaybackConfigurationsCommand = exports.deserializeAws_restJson1ListChannelsCommand = void 0;
3
+ exports.deserializeAws_restJson1GetChannelScheduleCommand = exports.deserializeAws_restJson1GetChannelPolicyCommand = exports.deserializeAws_restJson1DescribeVodSourceCommand = exports.deserializeAws_restJson1DescribeSourceLocationCommand = exports.deserializeAws_restJson1DescribeProgramCommand = exports.deserializeAws_restJson1DescribeChannelCommand = exports.deserializeAws_restJson1DeleteVodSourceCommand = exports.deserializeAws_restJson1DeleteSourceLocationCommand = exports.deserializeAws_restJson1DeleteProgramCommand = exports.deserializeAws_restJson1DeletePlaybackConfigurationCommand = exports.deserializeAws_restJson1DeleteChannelPolicyCommand = exports.deserializeAws_restJson1DeleteChannelCommand = exports.deserializeAws_restJson1CreateVodSourceCommand = exports.deserializeAws_restJson1CreateSourceLocationCommand = exports.deserializeAws_restJson1CreateProgramCommand = exports.deserializeAws_restJson1CreateChannelCommand = exports.deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = exports.serializeAws_restJson1UpdateVodSourceCommand = exports.serializeAws_restJson1UpdateSourceLocationCommand = exports.serializeAws_restJson1UpdateChannelCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopChannelCommand = exports.serializeAws_restJson1StartChannelCommand = exports.serializeAws_restJson1PutPlaybackConfigurationCommand = exports.serializeAws_restJson1PutChannelPolicyCommand = exports.serializeAws_restJson1ListVodSourcesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSourceLocationsCommand = exports.serializeAws_restJson1ListPlaybackConfigurationsCommand = exports.serializeAws_restJson1ListChannelsCommand = exports.serializeAws_restJson1ListAlertsCommand = exports.serializeAws_restJson1GetPlaybackConfigurationCommand = exports.serializeAws_restJson1GetChannelScheduleCommand = exports.serializeAws_restJson1GetChannelPolicyCommand = exports.serializeAws_restJson1DescribeVodSourceCommand = exports.serializeAws_restJson1DescribeSourceLocationCommand = exports.serializeAws_restJson1DescribeProgramCommand = exports.serializeAws_restJson1DescribeChannelCommand = exports.serializeAws_restJson1DeleteVodSourceCommand = exports.serializeAws_restJson1DeleteSourceLocationCommand = exports.serializeAws_restJson1DeleteProgramCommand = exports.serializeAws_restJson1DeletePlaybackConfigurationCommand = exports.serializeAws_restJson1DeleteChannelPolicyCommand = exports.serializeAws_restJson1DeleteChannelCommand = exports.serializeAws_restJson1CreateVodSourceCommand = exports.serializeAws_restJson1CreateSourceLocationCommand = exports.serializeAws_restJson1CreateProgramCommand = exports.serializeAws_restJson1CreateChannelCommand = exports.serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateVodSourceCommand = exports.deserializeAws_restJson1UpdateSourceLocationCommand = exports.deserializeAws_restJson1UpdateChannelCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopChannelCommand = exports.deserializeAws_restJson1StartChannelCommand = exports.deserializeAws_restJson1PutPlaybackConfigurationCommand = exports.deserializeAws_restJson1PutChannelPolicyCommand = exports.deserializeAws_restJson1ListVodSourcesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSourceLocationsCommand = exports.deserializeAws_restJson1ListPlaybackConfigurationsCommand = exports.deserializeAws_restJson1ListChannelsCommand = exports.deserializeAws_restJson1ListAlertsCommand = exports.deserializeAws_restJson1GetPlaybackConfigurationCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = async (input, context) => {
8
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
9
+ const headers = {
10
+ "content-type": "application/json",
11
+ };
12
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/configureLogs/playbackConfiguration";
13
+ let body;
14
+ body = JSON.stringify({
15
+ ...(input.PercentEnabled !== undefined &&
16
+ input.PercentEnabled !== null && { PercentEnabled: input.PercentEnabled }),
17
+ ...(input.PlaybackConfigurationName !== undefined &&
18
+ input.PlaybackConfigurationName !== null && { PlaybackConfigurationName: input.PlaybackConfigurationName }),
19
+ });
20
+ return new protocol_http_1.HttpRequest({
21
+ protocol,
22
+ hostname,
23
+ port,
24
+ method: "PUT",
25
+ headers,
26
+ path: resolvedPath,
27
+ body,
28
+ });
29
+ };
30
+ exports.serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand;
7
31
  const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
8
32
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
9
33
  const headers = {
@@ -1037,6 +1061,50 @@ const serializeAws_restJson1UpdateVodSourceCommand = async (input, context) => {
1037
1061
  });
1038
1062
  };
1039
1063
  exports.serializeAws_restJson1UpdateVodSourceCommand = serializeAws_restJson1UpdateVodSourceCommand;
1064
+ const deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = async (output, context) => {
1065
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1066
+ return deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommandError(output, context);
1067
+ }
1068
+ const contents = {
1069
+ $metadata: deserializeMetadata(output),
1070
+ PercentEnabled: undefined,
1071
+ PlaybackConfigurationName: undefined,
1072
+ };
1073
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1074
+ if (data.PercentEnabled !== undefined && data.PercentEnabled !== null) {
1075
+ contents.PercentEnabled = smithy_client_1.expectInt32(data.PercentEnabled);
1076
+ }
1077
+ if (data.PlaybackConfigurationName !== undefined && data.PlaybackConfigurationName !== null) {
1078
+ contents.PlaybackConfigurationName = smithy_client_1.expectString(data.PlaybackConfigurationName);
1079
+ }
1080
+ return Promise.resolve(contents);
1081
+ };
1082
+ exports.deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand;
1083
+ const deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommandError = async (output, context) => {
1084
+ const parsedOutput = {
1085
+ ...output,
1086
+ body: await parseBody(output.body, context),
1087
+ };
1088
+ let response;
1089
+ let errorCode = "UnknownError";
1090
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1091
+ switch (errorCode) {
1092
+ default:
1093
+ const parsedBody = parsedOutput.body;
1094
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1095
+ response = {
1096
+ ...parsedBody,
1097
+ name: `${errorCode}`,
1098
+ message: parsedBody.message || parsedBody.Message || errorCode,
1099
+ $fault: "client",
1100
+ $metadata: deserializeMetadata(output),
1101
+ };
1102
+ }
1103
+ const message = response.message || response.Message || errorCode;
1104
+ response.message = message;
1105
+ delete response.Message;
1106
+ return Promise.reject(Object.assign(new Error(message), response));
1107
+ };
1040
1108
  const deserializeAws_restJson1CreateChannelCommand = async (output, context) => {
1041
1109
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1042
1110
  return deserializeAws_restJson1CreateChannelCommandError(output, context);
@@ -1895,6 +1963,7 @@ const deserializeAws_restJson1GetPlaybackConfigurationCommand = async (output, c
1895
1963
  DashConfiguration: undefined,
1896
1964
  HlsConfiguration: undefined,
1897
1965
  LivePreRollConfiguration: undefined,
1966
+ LogConfiguration: undefined,
1898
1967
  ManifestProcessingRules: undefined,
1899
1968
  Name: undefined,
1900
1969
  PersonalizationThresholdSeconds: undefined,
@@ -1931,6 +2000,9 @@ const deserializeAws_restJson1GetPlaybackConfigurationCommand = async (output, c
1931
2000
  if (data.LivePreRollConfiguration !== undefined && data.LivePreRollConfiguration !== null) {
1932
2001
  contents.LivePreRollConfiguration = deserializeAws_restJson1LivePreRollConfiguration(data.LivePreRollConfiguration, context);
1933
2002
  }
2003
+ if (data.LogConfiguration !== undefined && data.LogConfiguration !== null) {
2004
+ contents.LogConfiguration = deserializeAws_restJson1LogConfiguration(data.LogConfiguration, context);
2005
+ }
1934
2006
  if (data.ManifestProcessingRules !== undefined && data.ManifestProcessingRules !== null) {
1935
2007
  contents.ManifestProcessingRules = deserializeAws_restJson1ManifestProcessingRules(data.ManifestProcessingRules, context);
1936
2008
  }
@@ -2307,6 +2379,7 @@ const deserializeAws_restJson1PutPlaybackConfigurationCommand = async (output, c
2307
2379
  DashConfiguration: undefined,
2308
2380
  HlsConfiguration: undefined,
2309
2381
  LivePreRollConfiguration: undefined,
2382
+ LogConfiguration: undefined,
2310
2383
  ManifestProcessingRules: undefined,
2311
2384
  Name: undefined,
2312
2385
  PersonalizationThresholdSeconds: undefined,
@@ -2343,6 +2416,9 @@ const deserializeAws_restJson1PutPlaybackConfigurationCommand = async (output, c
2343
2416
  if (data.LivePreRollConfiguration !== undefined && data.LivePreRollConfiguration !== null) {
2344
2417
  contents.LivePreRollConfiguration = deserializeAws_restJson1LivePreRollConfiguration(data.LivePreRollConfiguration, context);
2345
2418
  }
2419
+ if (data.LogConfiguration !== undefined && data.LogConfiguration !== null) {
2420
+ contents.LogConfiguration = deserializeAws_restJson1LogConfiguration(data.LogConfiguration, context);
2421
+ }
2346
2422
  if (data.ManifestProcessingRules !== undefined && data.ManifestProcessingRules !== null) {
2347
2423
  contents.ManifestProcessingRules = deserializeAws_restJson1ManifestProcessingRules(data.ManifestProcessingRules, context);
2348
2424
  }
@@ -3242,6 +3318,11 @@ const deserializeAws_restJson1LivePreRollConfiguration = (output, context) => {
3242
3318
  MaxDurationSeconds: smithy_client_1.expectInt32(output.MaxDurationSeconds),
3243
3319
  };
3244
3320
  };
3321
+ const deserializeAws_restJson1LogConfiguration = (output, context) => {
3322
+ return {
3323
+ PercentEnabled: smithy_client_1.expectInt32(output.PercentEnabled),
3324
+ };
3325
+ };
3245
3326
  const deserializeAws_restJson1ManifestProcessingRules = (output, context) => {
3246
3327
  return {
3247
3328
  AdMarkerPassthrough: output.AdMarkerPassthrough !== undefined && output.AdMarkerPassthrough !== null
@@ -3273,6 +3354,9 @@ const deserializeAws_restJson1PlaybackConfiguration = (output, context) => {
3273
3354
  LivePreRollConfiguration: output.LivePreRollConfiguration !== undefined && output.LivePreRollConfiguration !== null
3274
3355
  ? deserializeAws_restJson1LivePreRollConfiguration(output.LivePreRollConfiguration, context)
3275
3356
  : undefined,
3357
+ LogConfiguration: output.LogConfiguration !== undefined && output.LogConfiguration !== null
3358
+ ? deserializeAws_restJson1LogConfiguration(output.LogConfiguration, context)
3359
+ : undefined,
3276
3360
  ManifestProcessingRules: output.ManifestProcessingRules !== undefined && output.ManifestProcessingRules !== null
3277
3361
  ? deserializeAws_restJson1ManifestProcessingRules(output.ManifestProcessingRules, context)
3278
3362
  : undefined,