@aws-sdk/client-mediapackagev2 3.354.0 → 3.357.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 (111) hide show
  1. package/dist-cjs/MediaPackageV2Client.js +2 -1
  2. package/dist-cjs/commands/CreateChannelCommand.js +2 -1
  3. package/dist-cjs/commands/CreateChannelGroupCommand.js +2 -1
  4. package/dist-cjs/commands/CreateOriginEndpointCommand.js +2 -1
  5. package/dist-cjs/commands/DeleteChannelCommand.js +2 -1
  6. package/dist-cjs/commands/DeleteChannelGroupCommand.js +2 -1
  7. package/dist-cjs/commands/DeleteChannelPolicyCommand.js +2 -1
  8. package/dist-cjs/commands/DeleteOriginEndpointCommand.js +2 -1
  9. package/dist-cjs/commands/DeleteOriginEndpointPolicyCommand.js +2 -1
  10. package/dist-cjs/commands/GetChannelCommand.js +2 -1
  11. package/dist-cjs/commands/GetChannelGroupCommand.js +2 -1
  12. package/dist-cjs/commands/GetChannelPolicyCommand.js +2 -1
  13. package/dist-cjs/commands/GetOriginEndpointCommand.js +2 -1
  14. package/dist-cjs/commands/GetOriginEndpointPolicyCommand.js +2 -1
  15. package/dist-cjs/commands/ListChannelGroupsCommand.js +2 -1
  16. package/dist-cjs/commands/ListChannelsCommand.js +2 -1
  17. package/dist-cjs/commands/ListOriginEndpointsCommand.js +2 -1
  18. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -1
  19. package/dist-cjs/commands/PutChannelPolicyCommand.js +2 -1
  20. package/dist-cjs/commands/PutOriginEndpointPolicyCommand.js +2 -1
  21. package/dist-cjs/commands/TagResourceCommand.js +2 -1
  22. package/dist-cjs/commands/UntagResourceCommand.js +2 -1
  23. package/dist-cjs/commands/UpdateChannelCommand.js +2 -1
  24. package/dist-cjs/commands/UpdateChannelGroupCommand.js +2 -1
  25. package/dist-cjs/commands/UpdateOriginEndpointCommand.js +2 -1
  26. package/dist-cjs/index.js +2 -2
  27. package/dist-cjs/models/MediaPackageV2ServiceException.js +2 -1
  28. package/dist-cjs/protocols/Aws_restJson1.js +10 -16
  29. package/dist-es/MediaPackageV2Client.js +1 -0
  30. package/dist-es/commands/CreateChannelCommand.js +1 -0
  31. package/dist-es/commands/CreateChannelGroupCommand.js +1 -0
  32. package/dist-es/commands/CreateOriginEndpointCommand.js +1 -0
  33. package/dist-es/commands/DeleteChannelCommand.js +1 -0
  34. package/dist-es/commands/DeleteChannelGroupCommand.js +1 -0
  35. package/dist-es/commands/DeleteChannelPolicyCommand.js +1 -0
  36. package/dist-es/commands/DeleteOriginEndpointCommand.js +1 -0
  37. package/dist-es/commands/DeleteOriginEndpointPolicyCommand.js +1 -0
  38. package/dist-es/commands/GetChannelCommand.js +1 -0
  39. package/dist-es/commands/GetChannelGroupCommand.js +1 -0
  40. package/dist-es/commands/GetChannelPolicyCommand.js +1 -0
  41. package/dist-es/commands/GetOriginEndpointCommand.js +1 -0
  42. package/dist-es/commands/GetOriginEndpointPolicyCommand.js +1 -0
  43. package/dist-es/commands/ListChannelGroupsCommand.js +1 -0
  44. package/dist-es/commands/ListChannelsCommand.js +1 -0
  45. package/dist-es/commands/ListOriginEndpointsCommand.js +1 -0
  46. package/dist-es/commands/ListTagsForResourceCommand.js +1 -0
  47. package/dist-es/commands/PutChannelPolicyCommand.js +1 -0
  48. package/dist-es/commands/PutOriginEndpointPolicyCommand.js +1 -0
  49. package/dist-es/commands/TagResourceCommand.js +1 -0
  50. package/dist-es/commands/UntagResourceCommand.js +1 -0
  51. package/dist-es/commands/UpdateChannelCommand.js +1 -0
  52. package/dist-es/commands/UpdateChannelGroupCommand.js +1 -0
  53. package/dist-es/commands/UpdateOriginEndpointCommand.js +1 -0
  54. package/dist-es/index.js +2 -2
  55. package/dist-es/models/MediaPackageV2ServiceException.js +1 -0
  56. package/dist-es/protocols/Aws_restJson1.js +1 -7
  57. package/dist-types/MediaPackageV2Client.d.ts +4 -4
  58. package/dist-types/commands/CreateChannelCommand.d.ts +4 -0
  59. package/dist-types/commands/CreateChannelGroupCommand.d.ts +4 -0
  60. package/dist-types/commands/CreateOriginEndpointCommand.d.ts +4 -0
  61. package/dist-types/commands/DeleteChannelCommand.d.ts +4 -0
  62. package/dist-types/commands/DeleteChannelGroupCommand.d.ts +4 -0
  63. package/dist-types/commands/DeleteChannelPolicyCommand.d.ts +4 -0
  64. package/dist-types/commands/DeleteOriginEndpointCommand.d.ts +4 -0
  65. package/dist-types/commands/DeleteOriginEndpointPolicyCommand.d.ts +4 -0
  66. package/dist-types/commands/GetChannelCommand.d.ts +4 -0
  67. package/dist-types/commands/GetChannelGroupCommand.d.ts +4 -0
  68. package/dist-types/commands/GetChannelPolicyCommand.d.ts +4 -0
  69. package/dist-types/commands/GetOriginEndpointCommand.d.ts +4 -0
  70. package/dist-types/commands/GetOriginEndpointPolicyCommand.d.ts +4 -0
  71. package/dist-types/commands/ListChannelGroupsCommand.d.ts +4 -0
  72. package/dist-types/commands/ListChannelsCommand.d.ts +4 -0
  73. package/dist-types/commands/ListOriginEndpointsCommand.d.ts +4 -0
  74. package/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -0
  75. package/dist-types/commands/PutChannelPolicyCommand.d.ts +4 -0
  76. package/dist-types/commands/PutOriginEndpointPolicyCommand.d.ts +4 -0
  77. package/dist-types/commands/TagResourceCommand.d.ts +4 -0
  78. package/dist-types/commands/UntagResourceCommand.d.ts +4 -0
  79. package/dist-types/commands/UpdateChannelCommand.d.ts +4 -0
  80. package/dist-types/commands/UpdateChannelGroupCommand.d.ts +4 -0
  81. package/dist-types/commands/UpdateOriginEndpointCommand.d.ts +4 -0
  82. package/dist-types/index.d.ts +18 -2
  83. package/dist-types/models/MediaPackageV2ServiceException.d.ts +1 -0
  84. package/dist-types/ts3.4/MediaPackageV2Client.d.ts +3 -3
  85. package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +1 -0
  86. package/dist-types/ts3.4/commands/CreateChannelGroupCommand.d.ts +1 -0
  87. package/dist-types/ts3.4/commands/CreateOriginEndpointCommand.d.ts +1 -0
  88. package/dist-types/ts3.4/commands/DeleteChannelCommand.d.ts +1 -0
  89. package/dist-types/ts3.4/commands/DeleteChannelGroupCommand.d.ts +1 -0
  90. package/dist-types/ts3.4/commands/DeleteChannelPolicyCommand.d.ts +1 -0
  91. package/dist-types/ts3.4/commands/DeleteOriginEndpointCommand.d.ts +1 -0
  92. package/dist-types/ts3.4/commands/DeleteOriginEndpointPolicyCommand.d.ts +1 -0
  93. package/dist-types/ts3.4/commands/GetChannelCommand.d.ts +1 -0
  94. package/dist-types/ts3.4/commands/GetChannelGroupCommand.d.ts +1 -0
  95. package/dist-types/ts3.4/commands/GetChannelPolicyCommand.d.ts +1 -0
  96. package/dist-types/ts3.4/commands/GetOriginEndpointCommand.d.ts +1 -0
  97. package/dist-types/ts3.4/commands/GetOriginEndpointPolicyCommand.d.ts +1 -0
  98. package/dist-types/ts3.4/commands/ListChannelGroupsCommand.d.ts +1 -0
  99. package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +1 -0
  100. package/dist-types/ts3.4/commands/ListOriginEndpointsCommand.d.ts +1 -0
  101. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -0
  102. package/dist-types/ts3.4/commands/PutChannelPolicyCommand.d.ts +1 -0
  103. package/dist-types/ts3.4/commands/PutOriginEndpointPolicyCommand.d.ts +1 -0
  104. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -0
  105. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -0
  106. package/dist-types/ts3.4/commands/UpdateChannelCommand.d.ts +1 -0
  107. package/dist-types/ts3.4/commands/UpdateChannelGroupCommand.d.ts +1 -0
  108. package/dist-types/ts3.4/commands/UpdateOriginEndpointCommand.d.ts +1 -0
  109. package/dist-types/ts3.4/index.d.ts +2 -2
  110. package/dist-types/ts3.4/models/MediaPackageV2ServiceException.d.ts +1 -0
  111. package/package.json +28 -28
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MediaPackageV2Client = void 0;
3
+ exports.MediaPackageV2Client = exports.__Client = void 0;
4
4
  const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
6
6
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
@@ -11,6 +11,7 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
11
  const middleware_signing_1 = require("@aws-sdk/middleware-signing");
12
12
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
13
13
  const smithy_client_1 = require("@aws-sdk/smithy-client");
14
+ Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
14
15
  const EndpointParameters_1 = require("./endpoint/EndpointParameters");
15
16
  const runtimeConfig_1 = require("./runtimeConfig");
16
17
  class MediaPackageV2Client extends smithy_client_1.Client {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateChannelCommand = void 0;
3
+ exports.CreateChannelCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class CreateChannelCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateChannelGroupCommand = void 0;
3
+ exports.CreateChannelGroupCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class CreateChannelGroupCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateOriginEndpointCommand = void 0;
3
+ exports.CreateOriginEndpointCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class CreateOriginEndpointCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteChannelCommand = void 0;
3
+ exports.DeleteChannelCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class DeleteChannelCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteChannelGroupCommand = void 0;
3
+ exports.DeleteChannelGroupCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class DeleteChannelGroupCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteChannelPolicyCommand = void 0;
3
+ exports.DeleteChannelPolicyCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class DeleteChannelPolicyCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteOriginEndpointCommand = void 0;
3
+ exports.DeleteOriginEndpointCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class DeleteOriginEndpointCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteOriginEndpointPolicyCommand = void 0;
3
+ exports.DeleteOriginEndpointPolicyCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class DeleteOriginEndpointPolicyCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetChannelCommand = void 0;
3
+ exports.GetChannelCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class GetChannelCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetChannelGroupCommand = void 0;
3
+ exports.GetChannelGroupCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class GetChannelGroupCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetChannelPolicyCommand = void 0;
3
+ exports.GetChannelPolicyCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class GetChannelPolicyCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetOriginEndpointCommand = void 0;
3
+ exports.GetOriginEndpointCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class GetOriginEndpointCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetOriginEndpointPolicyCommand = void 0;
3
+ exports.GetOriginEndpointPolicyCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class GetOriginEndpointPolicyCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListChannelGroupsCommand = void 0;
3
+ exports.ListChannelGroupsCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class ListChannelGroupsCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListChannelsCommand = void 0;
3
+ exports.ListChannelsCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class ListChannelsCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListOriginEndpointsCommand = void 0;
3
+ exports.ListOriginEndpointsCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class ListOriginEndpointsCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListTagsForResourceCommand = void 0;
3
+ exports.ListTagsForResourceCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class ListTagsForResourceCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PutChannelPolicyCommand = void 0;
3
+ exports.PutChannelPolicyCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class PutChannelPolicyCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PutOriginEndpointPolicyCommand = void 0;
3
+ exports.PutOriginEndpointPolicyCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class PutOriginEndpointPolicyCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TagResourceCommand = void 0;
3
+ exports.TagResourceCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class TagResourceCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UntagResourceCommand = void 0;
3
+ exports.UntagResourceCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class UntagResourceCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateChannelCommand = void 0;
3
+ exports.UpdateChannelCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class UpdateChannelCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateChannelGroupCommand = void 0;
3
+ exports.UpdateChannelGroupCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class UpdateChannelGroupCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateOriginEndpointCommand = void 0;
3
+ exports.UpdateOriginEndpointCommand = exports.$Command = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
7
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
9
  class UpdateOriginEndpointCommand extends smithy_client_1.Command {
9
10
  static getEndpointParameterInstructions() {
package/dist-cjs/index.js CHANGED
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MediaPackageV2ServiceException = void 0;
4
4
  const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./MediaPackageV2"), exports);
6
5
  tslib_1.__exportStar(require("./MediaPackageV2Client"), exports);
6
+ tslib_1.__exportStar(require("./MediaPackageV2"), exports);
7
7
  tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./models"), exports);
9
8
  tslib_1.__exportStar(require("./pagination"), exports);
9
+ tslib_1.__exportStar(require("./models"), exports);
10
10
  var MediaPackageV2ServiceException_1 = require("./models/MediaPackageV2ServiceException");
11
11
  Object.defineProperty(exports, "MediaPackageV2ServiceException", { enumerable: true, get: function () { return MediaPackageV2ServiceException_1.MediaPackageV2ServiceException; } });
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MediaPackageV2ServiceException = void 0;
3
+ exports.MediaPackageV2ServiceException = exports.__ServiceException = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
5
6
  class MediaPackageV2ServiceException extends smithy_client_1.ServiceException {
6
7
  constructor(options) {
7
8
  super(options);
@@ -719,7 +719,7 @@ const de_DeleteChannelCommand = async (output, context) => {
719
719
  const contents = (0, smithy_client_1.map)({
720
720
  $metadata: deserializeMetadata(output),
721
721
  });
722
- await collectBody(output.body, context);
722
+ await (0, smithy_client_1.collectBody)(output.body, context);
723
723
  return contents;
724
724
  };
725
725
  exports.de_DeleteChannelCommand = de_DeleteChannelCommand;
@@ -761,7 +761,7 @@ const de_DeleteChannelGroupCommand = async (output, context) => {
761
761
  const contents = (0, smithy_client_1.map)({
762
762
  $metadata: deserializeMetadata(output),
763
763
  });
764
- await collectBody(output.body, context);
764
+ await (0, smithy_client_1.collectBody)(output.body, context);
765
765
  return contents;
766
766
  };
767
767
  exports.de_DeleteChannelGroupCommand = de_DeleteChannelGroupCommand;
@@ -803,7 +803,7 @@ const de_DeleteChannelPolicyCommand = async (output, context) => {
803
803
  const contents = (0, smithy_client_1.map)({
804
804
  $metadata: deserializeMetadata(output),
805
805
  });
806
- await collectBody(output.body, context);
806
+ await (0, smithy_client_1.collectBody)(output.body, context);
807
807
  return contents;
808
808
  };
809
809
  exports.de_DeleteChannelPolicyCommand = de_DeleteChannelPolicyCommand;
@@ -845,7 +845,7 @@ const de_DeleteOriginEndpointCommand = async (output, context) => {
845
845
  const contents = (0, smithy_client_1.map)({
846
846
  $metadata: deserializeMetadata(output),
847
847
  });
848
- await collectBody(output.body, context);
848
+ await (0, smithy_client_1.collectBody)(output.body, context);
849
849
  return contents;
850
850
  };
851
851
  exports.de_DeleteOriginEndpointCommand = de_DeleteOriginEndpointCommand;
@@ -884,7 +884,7 @@ const de_DeleteOriginEndpointPolicyCommand = async (output, context) => {
884
884
  const contents = (0, smithy_client_1.map)({
885
885
  $metadata: deserializeMetadata(output),
886
886
  });
887
- await collectBody(output.body, context);
887
+ await (0, smithy_client_1.collectBody)(output.body, context);
888
888
  return contents;
889
889
  };
890
890
  exports.de_DeleteOriginEndpointPolicyCommand = de_DeleteOriginEndpointPolicyCommand;
@@ -1355,7 +1355,7 @@ const de_PutChannelPolicyCommand = async (output, context) => {
1355
1355
  const contents = (0, smithy_client_1.map)({
1356
1356
  $metadata: deserializeMetadata(output),
1357
1357
  });
1358
- await collectBody(output.body, context);
1358
+ await (0, smithy_client_1.collectBody)(output.body, context);
1359
1359
  return contents;
1360
1360
  };
1361
1361
  exports.de_PutChannelPolicyCommand = de_PutChannelPolicyCommand;
@@ -1400,7 +1400,7 @@ const de_PutOriginEndpointPolicyCommand = async (output, context) => {
1400
1400
  const contents = (0, smithy_client_1.map)({
1401
1401
  $metadata: deserializeMetadata(output),
1402
1402
  });
1403
- await collectBody(output.body, context);
1403
+ await (0, smithy_client_1.collectBody)(output.body, context);
1404
1404
  return contents;
1405
1405
  };
1406
1406
  exports.de_PutOriginEndpointPolicyCommand = de_PutOriginEndpointPolicyCommand;
@@ -1445,7 +1445,7 @@ const de_TagResourceCommand = async (output, context) => {
1445
1445
  const contents = (0, smithy_client_1.map)({
1446
1446
  $metadata: deserializeMetadata(output),
1447
1447
  });
1448
- await collectBody(output.body, context);
1448
+ await (0, smithy_client_1.collectBody)(output.body, context);
1449
1449
  return contents;
1450
1450
  };
1451
1451
  exports.de_TagResourceCommand = de_TagResourceCommand;
@@ -1475,7 +1475,7 @@ const de_UntagResourceCommand = async (output, context) => {
1475
1475
  const contents = (0, smithy_client_1.map)({
1476
1476
  $metadata: deserializeMetadata(output),
1477
1477
  });
1478
- await collectBody(output.body, context);
1478
+ await (0, smithy_client_1.collectBody)(output.body, context);
1479
1479
  return contents;
1480
1480
  };
1481
1481
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
@@ -1831,13 +1831,7 @@ const deserializeMetadata = (output) => ({
1831
1831
  extendedRequestId: output.headers["x-amz-id-2"],
1832
1832
  cfId: output.headers["x-amz-cf-id"],
1833
1833
  });
1834
- const collectBody = (streamBody = new Uint8Array(), context) => {
1835
- if (streamBody instanceof Uint8Array) {
1836
- return Promise.resolve(streamBody);
1837
- }
1838
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1839
- };
1840
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1834
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
1841
1835
  const isSerializableHeaderValue = (value) => value !== undefined &&
1842
1836
  value !== null &&
1843
1837
  value !== "" &&
@@ -10,6 +10,7 @@ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware
10
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
11
  import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
12
12
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
13
+ export { __Client };
13
14
  export class MediaPackageV2Client extends __Client {
14
15
  constructor(configuration) {
15
16
  const _config_0 = __getRuntimeConfig(configuration);
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_CreateChannelCommand, se_CreateChannelCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class CreateChannelCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_CreateChannelGroupCommand, se_CreateChannelGroupCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class CreateChannelGroupCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_CreateOriginEndpointCommand, se_CreateOriginEndpointCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class CreateOriginEndpointCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_DeleteChannelCommand, se_DeleteChannelCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class DeleteChannelCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_DeleteChannelGroupCommand, se_DeleteChannelGroupCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class DeleteChannelGroupCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_DeleteChannelPolicyCommand, se_DeleteChannelPolicyCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class DeleteChannelPolicyCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_DeleteOriginEndpointCommand, se_DeleteOriginEndpointCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class DeleteOriginEndpointCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_DeleteOriginEndpointPolicyCommand, se_DeleteOriginEndpointPolicyCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class DeleteOriginEndpointPolicyCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_GetChannelCommand, se_GetChannelCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class GetChannelCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_GetChannelGroupCommand, se_GetChannelGroupCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class GetChannelGroupCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_GetChannelPolicyCommand, se_GetChannelPolicyCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class GetChannelPolicyCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_GetOriginEndpointCommand, se_GetOriginEndpointCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class GetOriginEndpointCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_GetOriginEndpointPolicyCommand, se_GetOriginEndpointPolicyCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class GetOriginEndpointPolicyCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_ListChannelGroupsCommand, se_ListChannelGroupsCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class ListChannelGroupsCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_ListChannelsCommand, se_ListChannelsCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class ListChannelsCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_ListOriginEndpointsCommand, se_ListOriginEndpointsCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class ListOriginEndpointsCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
5
6
  export class ListTagsForResourceCommand extends $Command {
6
7
  static getEndpointParameterInstructions() {
7
8
  return {