@aws-sdk/client-mediapackage-vod 3.477.0 → 3.481.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 (85) hide show
  1. package/dist-cjs/commands/ConfigureLogsCommand.js +18 -41
  2. package/dist-cjs/commands/CreateAssetCommand.js +18 -41
  3. package/dist-cjs/commands/CreatePackagingConfigurationCommand.js +18 -41
  4. package/dist-cjs/commands/CreatePackagingGroupCommand.js +18 -41
  5. package/dist-cjs/commands/DeleteAssetCommand.js +18 -41
  6. package/dist-cjs/commands/DeletePackagingConfigurationCommand.js +18 -41
  7. package/dist-cjs/commands/DeletePackagingGroupCommand.js +18 -41
  8. package/dist-cjs/commands/DescribeAssetCommand.js +18 -41
  9. package/dist-cjs/commands/DescribePackagingConfigurationCommand.js +18 -41
  10. package/dist-cjs/commands/DescribePackagingGroupCommand.js +18 -41
  11. package/dist-cjs/commands/ListAssetsCommand.js +18 -41
  12. package/dist-cjs/commands/ListPackagingConfigurationsCommand.js +18 -41
  13. package/dist-cjs/commands/ListPackagingGroupsCommand.js +18 -41
  14. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  15. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  16. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  17. package/dist-cjs/commands/UpdatePackagingGroupCommand.js +18 -41
  18. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  19. package/dist-cjs/pagination/ListAssetsPaginator.js +2 -24
  20. package/dist-cjs/pagination/ListPackagingConfigurationsPaginator.js +2 -24
  21. package/dist-cjs/pagination/ListPackagingGroupsPaginator.js +2 -24
  22. package/dist-es/commands/ConfigureLogsCommand.js +18 -41
  23. package/dist-es/commands/CreateAssetCommand.js +18 -41
  24. package/dist-es/commands/CreatePackagingConfigurationCommand.js +18 -41
  25. package/dist-es/commands/CreatePackagingGroupCommand.js +18 -41
  26. package/dist-es/commands/DeleteAssetCommand.js +18 -41
  27. package/dist-es/commands/DeletePackagingConfigurationCommand.js +18 -41
  28. package/dist-es/commands/DeletePackagingGroupCommand.js +18 -41
  29. package/dist-es/commands/DescribeAssetCommand.js +18 -41
  30. package/dist-es/commands/DescribePackagingConfigurationCommand.js +18 -41
  31. package/dist-es/commands/DescribePackagingGroupCommand.js +18 -41
  32. package/dist-es/commands/ListAssetsCommand.js +18 -41
  33. package/dist-es/commands/ListPackagingConfigurationsCommand.js +18 -41
  34. package/dist-es/commands/ListPackagingGroupsCommand.js +18 -41
  35. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  36. package/dist-es/commands/TagResourceCommand.js +18 -41
  37. package/dist-es/commands/UntagResourceCommand.js +18 -41
  38. package/dist-es/commands/UpdatePackagingGroupCommand.js +18 -41
  39. package/dist-es/endpoint/EndpointParameters.js +6 -0
  40. package/dist-es/pagination/ListAssetsPaginator.js +2 -23
  41. package/dist-es/pagination/ListPackagingConfigurationsPaginator.js +2 -23
  42. package/dist-es/pagination/ListPackagingGroupsPaginator.js +2 -23
  43. package/dist-types/commands/ConfigureLogsCommand.d.ts +6 -21
  44. package/dist-types/commands/CreateAssetCommand.d.ts +6 -21
  45. package/dist-types/commands/CreatePackagingConfigurationCommand.d.ts +6 -21
  46. package/dist-types/commands/CreatePackagingGroupCommand.d.ts +6 -21
  47. package/dist-types/commands/DeleteAssetCommand.d.ts +6 -21
  48. package/dist-types/commands/DeletePackagingConfigurationCommand.d.ts +6 -21
  49. package/dist-types/commands/DeletePackagingGroupCommand.d.ts +6 -21
  50. package/dist-types/commands/DescribeAssetCommand.d.ts +6 -21
  51. package/dist-types/commands/DescribePackagingConfigurationCommand.d.ts +6 -21
  52. package/dist-types/commands/DescribePackagingGroupCommand.d.ts +6 -21
  53. package/dist-types/commands/ListAssetsCommand.d.ts +6 -21
  54. package/dist-types/commands/ListPackagingConfigurationsCommand.d.ts +6 -21
  55. package/dist-types/commands/ListPackagingGroupsCommand.d.ts +6 -21
  56. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  57. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  58. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  59. package/dist-types/commands/UpdatePackagingGroupCommand.d.ts +6 -21
  60. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  61. package/dist-types/pagination/ListAssetsPaginator.d.ts +1 -1
  62. package/dist-types/pagination/ListPackagingConfigurationsPaginator.d.ts +1 -1
  63. package/dist-types/pagination/ListPackagingGroupsPaginator.d.ts +1 -1
  64. package/dist-types/ts3.4/commands/ConfigureLogsCommand.d.ts +14 -23
  65. package/dist-types/ts3.4/commands/CreateAssetCommand.d.ts +14 -23
  66. package/dist-types/ts3.4/commands/CreatePackagingConfigurationCommand.d.ts +12 -24
  67. package/dist-types/ts3.4/commands/CreatePackagingGroupCommand.d.ts +12 -24
  68. package/dist-types/ts3.4/commands/DeleteAssetCommand.d.ts +14 -23
  69. package/dist-types/ts3.4/commands/DeletePackagingConfigurationCommand.d.ts +12 -24
  70. package/dist-types/ts3.4/commands/DeletePackagingGroupCommand.d.ts +12 -24
  71. package/dist-types/ts3.4/commands/DescribeAssetCommand.d.ts +14 -23
  72. package/dist-types/ts3.4/commands/DescribePackagingConfigurationCommand.d.ts +12 -24
  73. package/dist-types/ts3.4/commands/DescribePackagingGroupCommand.d.ts +12 -24
  74. package/dist-types/ts3.4/commands/ListAssetsCommand.d.ts +14 -23
  75. package/dist-types/ts3.4/commands/ListPackagingConfigurationsCommand.d.ts +12 -24
  76. package/dist-types/ts3.4/commands/ListPackagingGroupsCommand.d.ts +14 -23
  77. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  78. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  79. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  80. package/dist-types/ts3.4/commands/UpdatePackagingGroupCommand.d.ts +12 -24
  81. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  82. package/dist-types/ts3.4/pagination/ListAssetsPaginator.d.ts +3 -3
  83. package/dist-types/ts3.4/pagination/ListPackagingConfigurationsPaginator.d.ts +3 -3
  84. package/dist-types/ts3.4/pagination/ListPackagingGroupsPaginator.d.ts +3 -3
  85. package/package.json +11 -11
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_DescribePackagingGroupCommand, se_DescribePackagingGroupCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DescribePackagingGroupCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, DescribePackagingGroupCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MediaPackageVodClient";
26
- const commandName = "DescribePackagingGroupCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "MediaPackageVod",
35
- operation: "DescribePackagingGroup",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_DescribePackagingGroupCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DescribePackagingGroupCommand(output, context);
46
- }
7
+ export class DescribePackagingGroupCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("MediaPackageVod", "DescribePackagingGroup", {})
19
+ .n("MediaPackageVodClient", "DescribePackagingGroupCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DescribePackagingGroupCommand)
22
+ .de(de_DescribePackagingGroupCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListAssetsCommand, se_ListAssetsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListAssetsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListAssetsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MediaPackageVodClient";
26
- const commandName = "ListAssetsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "MediaPackageVod",
35
- operation: "ListAssets",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListAssetsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListAssetsCommand(output, context);
46
- }
7
+ export class ListAssetsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("MediaPackageVod", "ListAssets", {})
19
+ .n("MediaPackageVodClient", "ListAssetsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListAssetsCommand)
22
+ .de(de_ListAssetsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListPackagingConfigurationsCommand, se_ListPackagingConfigurationsCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListPackagingConfigurationsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListPackagingConfigurationsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MediaPackageVodClient";
26
- const commandName = "ListPackagingConfigurationsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "MediaPackageVod",
35
- operation: "ListPackagingConfigurations",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListPackagingConfigurationsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListPackagingConfigurationsCommand(output, context);
46
- }
7
+ export class ListPackagingConfigurationsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("MediaPackageVod", "ListPackagingConfigurations", {})
19
+ .n("MediaPackageVodClient", "ListPackagingConfigurationsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListPackagingConfigurationsCommand)
22
+ .de(de_ListPackagingConfigurationsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListPackagingGroupsCommand, se_ListPackagingGroupsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListPackagingGroupsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListPackagingGroupsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MediaPackageVodClient";
26
- const commandName = "ListPackagingGroupsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "MediaPackageVod",
35
- operation: "ListPackagingGroups",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListPackagingGroupsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListPackagingGroupsCommand(output, context);
46
- }
7
+ export class ListPackagingGroupsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("MediaPackageVod", "ListPackagingGroups", {})
19
+ .n("MediaPackageVodClient", "ListPackagingGroupsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListPackagingGroupsCommand)
22
+ .de(de_ListPackagingGroupsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListTagsForResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MediaPackageVodClient";
26
- const commandName = "ListTagsForResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "MediaPackageVod",
35
- operation: "ListTagsForResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListTagsForResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListTagsForResourceCommand(output, context);
46
- }
7
+ export class ListTagsForResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("MediaPackageVod", "ListTagsForResource", {})
19
+ .n("MediaPackageVodClient", "ListTagsForResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListTagsForResourceCommand)
22
+ .de(de_ListTagsForResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class TagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MediaPackageVodClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "MediaPackageVod",
35
- operation: "TagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_TagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_TagResourceCommand(output, context);
46
- }
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("MediaPackageVod", "TagResource", {})
19
+ .n("MediaPackageVodClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UntagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MediaPackageVodClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "MediaPackageVod",
35
- operation: "UntagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UntagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UntagResourceCommand(output, context);
46
- }
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("MediaPackageVod", "UntagResource", {})
19
+ .n("MediaPackageVodClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdatePackagingGroupCommand, se_UpdatePackagingGroupCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdatePackagingGroupCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdatePackagingGroupCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MediaPackageVodClient";
26
- const commandName = "UpdatePackagingGroupCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "MediaPackageVod",
35
- operation: "UpdatePackagingGroup",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdatePackagingGroupCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdatePackagingGroupCommand(output, context);
46
- }
7
+ export class UpdatePackagingGroupCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("MediaPackageVod", "UpdatePackagingGroup", {})
19
+ .n("MediaPackageVodClient", "UpdatePackagingGroupCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdatePackagingGroupCommand)
22
+ .de(de_UpdatePackagingGroupCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "mediapackage-vod",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAssetsCommand } from "../commands/ListAssetsCommand";
2
3
  import { MediaPackageVodClient } from "../MediaPackageVodClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAssetsCommand(input), ...args);
5
- };
6
- export async function* paginateListAssets(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof MediaPackageVodClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MediaPackageVod | MediaPackageVodClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListAssets = createPaginator(MediaPackageVodClient, ListAssetsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListPackagingConfigurationsCommand, } from "../commands/ListPackagingConfigurationsCommand";
2
3
  import { MediaPackageVodClient } from "../MediaPackageVodClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListPackagingConfigurationsCommand(input), ...args);
5
- };
6
- export async function* paginateListPackagingConfigurations(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof MediaPackageVodClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MediaPackageVod | MediaPackageVodClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListPackagingConfigurations = createPaginator(MediaPackageVodClient, ListPackagingConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListPackagingGroupsCommand, } from "../commands/ListPackagingGroupsCommand";
2
3
  import { MediaPackageVodClient } from "../MediaPackageVodClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListPackagingGroupsCommand(input), ...args);
5
- };
6
- export async function* paginateListPackagingGroups(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof MediaPackageVodClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MediaPackageVod | MediaPackageVodClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListPackagingGroups = createPaginator(MediaPackageVodClient, ListPackagingGroupsCommand, "NextToken", "NextToken", "MaxResults");