@aws-sdk/client-mediapackage 3.928.0 → 3.930.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 (43) hide show
  1. package/dist-cjs/index.js +2893 -1330
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/MediaPackageClient.js +2 -0
  4. package/dist-es/commands/ConfigureLogsCommand.js +3 -10
  5. package/dist-es/commands/CreateChannelCommand.js +3 -10
  6. package/dist-es/commands/CreateHarvestJobCommand.js +3 -9
  7. package/dist-es/commands/CreateOriginEndpointCommand.js +3 -9
  8. package/dist-es/commands/DeleteChannelCommand.js +3 -9
  9. package/dist-es/commands/DeleteOriginEndpointCommand.js +3 -9
  10. package/dist-es/commands/DescribeChannelCommand.js +3 -10
  11. package/dist-es/commands/DescribeHarvestJobCommand.js +3 -9
  12. package/dist-es/commands/DescribeOriginEndpointCommand.js +3 -9
  13. package/dist-es/commands/ListChannelsCommand.js +3 -10
  14. package/dist-es/commands/ListHarvestJobsCommand.js +3 -9
  15. package/dist-es/commands/ListOriginEndpointsCommand.js +3 -9
  16. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  17. package/dist-es/commands/RotateChannelCredentialsCommand.js +3 -10
  18. package/dist-es/commands/RotateIngestEndpointCredentialsCommand.js +3 -10
  19. package/dist-es/commands/TagResourceCommand.js +3 -9
  20. package/dist-es/commands/UntagResourceCommand.js +3 -9
  21. package/dist-es/commands/UpdateChannelCommand.js +3 -10
  22. package/dist-es/commands/UpdateOriginEndpointCommand.js +3 -9
  23. package/dist-es/models/models_0.js +0 -43
  24. package/dist-es/runtimeConfig.shared.js +2 -0
  25. package/dist-es/schemas/schemas_0.js +2852 -0
  26. package/dist-types/MediaPackageClient.d.ts +10 -1
  27. package/dist-types/models/models_0.d.ts +0 -40
  28. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  29. package/dist-types/runtimeConfig.d.ts +1 -0
  30. package/dist-types/runtimeConfig.native.d.ts +1 -0
  31. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  32. package/dist-types/schemas/schemas_0.d.ts +99 -0
  33. package/dist-types/ts3.4/MediaPackageClient.d.ts +4 -0
  34. package/dist-types/ts3.4/models/models_0.d.ts +0 -26
  35. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  36. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  37. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  38. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  39. package/dist-types/ts3.4/schemas/schemas_0.d.ts +105 -0
  40. package/package.json +33 -33
  41. package/dist-es/protocols/Aws_restJson1.js +0 -1140
  42. package/dist-types/protocols/Aws_restJson1.d.ts +0 -173
  43. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -233
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
25
26
  },
26
27
  ],
27
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.mediapackage" }),
28
30
  serviceId: config?.serviceId ?? "MediaPackage",
29
31
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
32
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
7
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
9
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
10
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
@@ -28,6 +29,7 @@ export class MediaPackageClient extends __Client {
28
29
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
29
30
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
30
31
  this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
31
33
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
34
  this.middlewareStack.use(getRetryPlugin(this.config));
33
35
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { ConfigureLogsResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_ConfigureLogsCommand, se_ConfigureLogsCommand } from "../protocols/Aws_restJson1";
4
+ import { ConfigureLogs } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class ConfigureLogsCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("MediaPackage", "ConfigureLogs", {})
18
13
  .n("MediaPackageClient", "ConfigureLogsCommand")
19
- .f(void 0, ConfigureLogsResponseFilterSensitiveLog)
20
- .ser(se_ConfigureLogsCommand)
21
- .de(de_ConfigureLogsCommand)
14
+ .sc(ConfigureLogs)
22
15
  .build() {
23
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { CreateChannelResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_CreateChannelCommand, se_CreateChannelCommand } from "../protocols/Aws_restJson1";
4
+ import { CreateChannel } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class CreateChannelCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("MediaPackage", "CreateChannel", {})
18
13
  .n("MediaPackageClient", "CreateChannelCommand")
19
- .f(void 0, CreateChannelResponseFilterSensitiveLog)
20
- .ser(se_CreateChannelCommand)
21
- .de(de_CreateChannelCommand)
14
+ .sc(CreateChannel)
22
15
  .build() {
23
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_CreateHarvestJobCommand, se_CreateHarvestJobCommand } from "../protocols/Aws_restJson1";
4
+ import { CreateHarvestJob } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CreateHarvestJobCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("MediaPackage", "CreateHarvestJob", {})
17
13
  .n("MediaPackageClient", "CreateHarvestJobCommand")
18
- .f(void 0, void 0)
19
- .ser(se_CreateHarvestJobCommand)
20
- .de(de_CreateHarvestJobCommand)
14
+ .sc(CreateHarvestJob)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_CreateOriginEndpointCommand, se_CreateOriginEndpointCommand } from "../protocols/Aws_restJson1";
4
+ import { CreateOriginEndpoint } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CreateOriginEndpointCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("MediaPackage", "CreateOriginEndpoint", {})
17
13
  .n("MediaPackageClient", "CreateOriginEndpointCommand")
18
- .f(void 0, void 0)
19
- .ser(se_CreateOriginEndpointCommand)
20
- .de(de_CreateOriginEndpointCommand)
14
+ .sc(CreateOriginEndpoint)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DeleteChannelCommand, se_DeleteChannelCommand } from "../protocols/Aws_restJson1";
4
+ import { DeleteChannel } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteChannelCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("MediaPackage", "DeleteChannel", {})
17
13
  .n("MediaPackageClient", "DeleteChannelCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteChannelCommand)
20
- .de(de_DeleteChannelCommand)
14
+ .sc(DeleteChannel)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DeleteOriginEndpointCommand, se_DeleteOriginEndpointCommand } from "../protocols/Aws_restJson1";
4
+ import { DeleteOriginEndpoint } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteOriginEndpointCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("MediaPackage", "DeleteOriginEndpoint", {})
17
13
  .n("MediaPackageClient", "DeleteOriginEndpointCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteOriginEndpointCommand)
20
- .de(de_DeleteOriginEndpointCommand)
14
+ .sc(DeleteOriginEndpoint)
21
15
  .build() {
22
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { DescribeChannelResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_DescribeChannelCommand, se_DescribeChannelCommand } from "../protocols/Aws_restJson1";
4
+ import { DescribeChannel } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class DescribeChannelCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("MediaPackage", "DescribeChannel", {})
18
13
  .n("MediaPackageClient", "DescribeChannelCommand")
19
- .f(void 0, DescribeChannelResponseFilterSensitiveLog)
20
- .ser(se_DescribeChannelCommand)
21
- .de(de_DescribeChannelCommand)
14
+ .sc(DescribeChannel)
22
15
  .build() {
23
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DescribeHarvestJobCommand, se_DescribeHarvestJobCommand } from "../protocols/Aws_restJson1";
4
+ import { DescribeHarvestJob } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DescribeHarvestJobCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("MediaPackage", "DescribeHarvestJob", {})
17
13
  .n("MediaPackageClient", "DescribeHarvestJobCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DescribeHarvestJobCommand)
20
- .de(de_DescribeHarvestJobCommand)
14
+ .sc(DescribeHarvestJob)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DescribeOriginEndpointCommand, se_DescribeOriginEndpointCommand } from "../protocols/Aws_restJson1";
4
+ import { DescribeOriginEndpoint } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DescribeOriginEndpointCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("MediaPackage", "DescribeOriginEndpoint", {})
17
13
  .n("MediaPackageClient", "DescribeOriginEndpointCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DescribeOriginEndpointCommand)
20
- .de(de_DescribeOriginEndpointCommand)
14
+ .sc(DescribeOriginEndpoint)
21
15
  .build() {
22
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { ListChannelsResponseFilterSensitiveLog } from "../models/models_0";
6
- import { de_ListChannelsCommand, se_ListChannelsCommand } from "../protocols/Aws_restJson1";
4
+ import { ListChannels } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class ListChannelsCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("MediaPackage", "ListChannels", {})
18
13
  .n("MediaPackageClient", "ListChannelsCommand")
19
- .f(void 0, ListChannelsResponseFilterSensitiveLog)
20
- .ser(se_ListChannelsCommand)
21
- .de(de_ListChannelsCommand)
14
+ .sc(ListChannels)
22
15
  .build() {
23
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListHarvestJobsCommand, se_ListHarvestJobsCommand } from "../protocols/Aws_restJson1";
4
+ import { ListHarvestJobs } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListHarvestJobsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("MediaPackage", "ListHarvestJobs", {})
17
13
  .n("MediaPackageClient", "ListHarvestJobsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListHarvestJobsCommand)
20
- .de(de_ListHarvestJobsCommand)
14
+ .sc(ListHarvestJobs)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListOriginEndpointsCommand, se_ListOriginEndpointsCommand } from "../protocols/Aws_restJson1";
4
+ import { ListOriginEndpoints } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListOriginEndpointsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("MediaPackage", "ListOriginEndpoints", {})
17
13
  .n("MediaPackageClient", "ListOriginEndpointsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListOriginEndpointsCommand)
20
- .de(de_ListOriginEndpointsCommand)
14
+ .sc(ListOriginEndpoints)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { ListTagsForResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTagsForResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("MediaPackage", "ListTagsForResource", {})
17
13
  .n("MediaPackageClient", "ListTagsForResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTagsForResourceCommand)
20
- .de(de_ListTagsForResourceCommand)
14
+ .sc(ListTagsForResource)
21
15
  .build() {
22
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { RotateChannelCredentialsResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_RotateChannelCredentialsCommand, se_RotateChannelCredentialsCommand } from "../protocols/Aws_restJson1";
4
+ import { RotateChannelCredentials } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class RotateChannelCredentialsCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("MediaPackage", "RotateChannelCredentials", {})
18
13
  .n("MediaPackageClient", "RotateChannelCredentialsCommand")
19
- .f(void 0, RotateChannelCredentialsResponseFilterSensitiveLog)
20
- .ser(se_RotateChannelCredentialsCommand)
21
- .de(de_RotateChannelCredentialsCommand)
14
+ .sc(RotateChannelCredentials)
22
15
  .build() {
23
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { RotateIngestEndpointCredentialsResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_RotateIngestEndpointCredentialsCommand, se_RotateIngestEndpointCredentialsCommand, } from "../protocols/Aws_restJson1";
4
+ import { RotateIngestEndpointCredentials } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class RotateIngestEndpointCredentialsCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("MediaPackage", "RotateIngestEndpointCredentials", {})
18
13
  .n("MediaPackageClient", "RotateIngestEndpointCredentialsCommand")
19
- .f(void 0, RotateIngestEndpointCredentialsResponseFilterSensitiveLog)
20
- .ser(se_RotateIngestEndpointCredentialsCommand)
21
- .de(de_RotateIngestEndpointCredentialsCommand)
14
+ .sc(RotateIngestEndpointCredentials)
22
15
  .build() {
23
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { TagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("MediaPackage", "TagResource", {})
17
13
  .n("MediaPackageClient", "TagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TagResourceCommand)
20
- .de(de_TagResourceCommand)
14
+ .sc(TagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("MediaPackage", "UntagResource", {})
17
13
  .n("MediaPackageClient", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
21
15
  .build() {
22
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { UpdateChannelResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_UpdateChannelCommand, se_UpdateChannelCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateChannel } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class UpdateChannelCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("MediaPackage", "UpdateChannel", {})
18
13
  .n("MediaPackageClient", "UpdateChannelCommand")
19
- .f(void 0, UpdateChannelResponseFilterSensitiveLog)
20
- .ser(se_UpdateChannelCommand)
21
- .de(de_UpdateChannelCommand)
14
+ .sc(UpdateChannel)
22
15
  .build() {
23
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateOriginEndpointCommand, se_UpdateOriginEndpointCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateOriginEndpoint } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateOriginEndpointCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("MediaPackage", "UpdateOriginEndpoint", {})
17
13
  .n("MediaPackageClient", "UpdateOriginEndpointCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateOriginEndpointCommand)
20
- .de(de_UpdateOriginEndpointCommand)
14
+ .sc(UpdateOriginEndpoint)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { MediaPackageServiceException as __BaseException } from "./MediaPackageServiceException";
3
2
  export const __AdTriggersElement = {
4
3
  BREAK: "BREAK",
@@ -177,45 +176,3 @@ export class UnprocessableEntityException extends __BaseException {
177
176
  this.Message = opts.Message;
178
177
  }
179
178
  }
180
- export const IngestEndpointFilterSensitiveLog = (obj) => ({
181
- ...obj,
182
- ...(obj.Password && { Password: SENSITIVE_STRING }),
183
- ...(obj.Username && { Username: SENSITIVE_STRING }),
184
- });
185
- export const HlsIngestFilterSensitiveLog = (obj) => ({
186
- ...obj,
187
- ...(obj.IngestEndpoints && {
188
- IngestEndpoints: obj.IngestEndpoints.map((item) => IngestEndpointFilterSensitiveLog(item)),
189
- }),
190
- });
191
- export const ChannelFilterSensitiveLog = (obj) => ({
192
- ...obj,
193
- ...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
194
- });
195
- export const ConfigureLogsResponseFilterSensitiveLog = (obj) => ({
196
- ...obj,
197
- ...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
198
- });
199
- export const CreateChannelResponseFilterSensitiveLog = (obj) => ({
200
- ...obj,
201
- ...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
202
- });
203
- export const DescribeChannelResponseFilterSensitiveLog = (obj) => ({
204
- ...obj,
205
- ...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
206
- });
207
- export const ListChannelsResponseFilterSensitiveLog = (obj) => ({
208
- ...obj,
209
- });
210
- export const RotateChannelCredentialsResponseFilterSensitiveLog = (obj) => ({
211
- ...obj,
212
- ...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
213
- });
214
- export const RotateIngestEndpointCredentialsResponseFilterSensitiveLog = (obj) => ({
215
- ...obj,
216
- ...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
217
- });
218
- export const UpdateChannelResponseFilterSensitiveLog = (obj) => ({
219
- ...obj,
220
- ...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
221
- });
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.mediapackage" }),
25
27
  serviceId: config?.serviceId ?? "MediaPackage",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,