@aws-sdk/client-mediapackagev2 3.336.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 (179) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +408 -0
  3. package/dist-cjs/MediaPackageV2.js +59 -0
  4. package/dist-cjs/MediaPackageV2Client.js +40 -0
  5. package/dist-cjs/commands/CreateChannelCommand.js +45 -0
  6. package/dist-cjs/commands/CreateChannelGroupCommand.js +45 -0
  7. package/dist-cjs/commands/CreateOriginEndpointCommand.js +45 -0
  8. package/dist-cjs/commands/DeleteChannelCommand.js +45 -0
  9. package/dist-cjs/commands/DeleteChannelGroupCommand.js +45 -0
  10. package/dist-cjs/commands/DeleteChannelPolicyCommand.js +45 -0
  11. package/dist-cjs/commands/DeleteOriginEndpointCommand.js +45 -0
  12. package/dist-cjs/commands/DeleteOriginEndpointPolicyCommand.js +45 -0
  13. package/dist-cjs/commands/GetChannelCommand.js +45 -0
  14. package/dist-cjs/commands/GetChannelGroupCommand.js +45 -0
  15. package/dist-cjs/commands/GetChannelPolicyCommand.js +45 -0
  16. package/dist-cjs/commands/GetOriginEndpointCommand.js +45 -0
  17. package/dist-cjs/commands/GetOriginEndpointPolicyCommand.js +45 -0
  18. package/dist-cjs/commands/ListChannelGroupsCommand.js +45 -0
  19. package/dist-cjs/commands/ListChannelsCommand.js +45 -0
  20. package/dist-cjs/commands/ListOriginEndpointsCommand.js +45 -0
  21. package/dist-cjs/commands/ListTagsForResourceCommand.js +45 -0
  22. package/dist-cjs/commands/PutChannelPolicyCommand.js +45 -0
  23. package/dist-cjs/commands/PutOriginEndpointPolicyCommand.js +45 -0
  24. package/dist-cjs/commands/TagResourceCommand.js +45 -0
  25. package/dist-cjs/commands/UntagResourceCommand.js +45 -0
  26. package/dist-cjs/commands/UpdateChannelCommand.js +45 -0
  27. package/dist-cjs/commands/UpdateChannelGroupCommand.js +45 -0
  28. package/dist-cjs/commands/UpdateOriginEndpointCommand.js +45 -0
  29. package/dist-cjs/commands/index.js +27 -0
  30. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  31. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  32. package/dist-cjs/endpoint/ruleset.js +7 -0
  33. package/dist-cjs/index.js +11 -0
  34. package/dist-cjs/models/MediaPackageV2ServiceException.js +11 -0
  35. package/dist-cjs/models/index.js +4 -0
  36. package/dist-cjs/models/models_0.js +203 -0
  37. package/dist-cjs/pagination/Interfaces.js +2 -0
  38. package/dist-cjs/pagination/ListChannelGroupsPaginator.js +29 -0
  39. package/dist-cjs/pagination/ListChannelsPaginator.js +29 -0
  40. package/dist-cjs/pagination/ListOriginEndpointsPaginator.js +29 -0
  41. package/dist-cjs/pagination/index.js +7 -0
  42. package/dist-cjs/protocols/Aws_restJson1.js +1885 -0
  43. package/dist-cjs/runtimeConfig.browser.js +39 -0
  44. package/dist-cjs/runtimeConfig.js +48 -0
  45. package/dist-cjs/runtimeConfig.native.js +15 -0
  46. package/dist-cjs/runtimeConfig.shared.js +21 -0
  47. package/dist-es/MediaPackageV2.js +55 -0
  48. package/dist-es/MediaPackageV2Client.js +36 -0
  49. package/dist-es/commands/CreateChannelCommand.js +41 -0
  50. package/dist-es/commands/CreateChannelGroupCommand.js +41 -0
  51. package/dist-es/commands/CreateOriginEndpointCommand.js +41 -0
  52. package/dist-es/commands/DeleteChannelCommand.js +41 -0
  53. package/dist-es/commands/DeleteChannelGroupCommand.js +41 -0
  54. package/dist-es/commands/DeleteChannelPolicyCommand.js +41 -0
  55. package/dist-es/commands/DeleteOriginEndpointCommand.js +41 -0
  56. package/dist-es/commands/DeleteOriginEndpointPolicyCommand.js +41 -0
  57. package/dist-es/commands/GetChannelCommand.js +41 -0
  58. package/dist-es/commands/GetChannelGroupCommand.js +41 -0
  59. package/dist-es/commands/GetChannelPolicyCommand.js +41 -0
  60. package/dist-es/commands/GetOriginEndpointCommand.js +41 -0
  61. package/dist-es/commands/GetOriginEndpointPolicyCommand.js +41 -0
  62. package/dist-es/commands/ListChannelGroupsCommand.js +41 -0
  63. package/dist-es/commands/ListChannelsCommand.js +41 -0
  64. package/dist-es/commands/ListOriginEndpointsCommand.js +41 -0
  65. package/dist-es/commands/ListTagsForResourceCommand.js +41 -0
  66. package/dist-es/commands/PutChannelPolicyCommand.js +41 -0
  67. package/dist-es/commands/PutOriginEndpointPolicyCommand.js +41 -0
  68. package/dist-es/commands/TagResourceCommand.js +41 -0
  69. package/dist-es/commands/UntagResourceCommand.js +41 -0
  70. package/dist-es/commands/UpdateChannelCommand.js +41 -0
  71. package/dist-es/commands/UpdateChannelGroupCommand.js +41 -0
  72. package/dist-es/commands/UpdateOriginEndpointCommand.js +41 -0
  73. package/dist-es/commands/index.js +24 -0
  74. package/dist-es/endpoint/EndpointParameters.js +8 -0
  75. package/dist-es/endpoint/endpointResolver.js +8 -0
  76. package/dist-es/endpoint/ruleset.js +4 -0
  77. package/dist-es/index.js +6 -0
  78. package/dist-es/models/MediaPackageV2ServiceException.js +7 -0
  79. package/dist-es/models/index.js +1 -0
  80. package/dist-es/models/models_0.js +193 -0
  81. package/dist-es/pagination/Interfaces.js +1 -0
  82. package/dist-es/pagination/ListChannelGroupsPaginator.js +25 -0
  83. package/dist-es/pagination/ListChannelsPaginator.js +25 -0
  84. package/dist-es/pagination/ListOriginEndpointsPaginator.js +25 -0
  85. package/dist-es/pagination/index.js +4 -0
  86. package/dist-es/protocols/Aws_restJson1.js +1834 -0
  87. package/dist-es/runtimeConfig.browser.js +34 -0
  88. package/dist-es/runtimeConfig.js +43 -0
  89. package/dist-es/runtimeConfig.native.js +11 -0
  90. package/dist-es/runtimeConfig.shared.js +17 -0
  91. package/dist-types/MediaPackageV2.d.ts +189 -0
  92. package/dist-types/MediaPackageV2Client.d.ts +197 -0
  93. package/dist-types/commands/CreateChannelCommand.d.ts +110 -0
  94. package/dist-types/commands/CreateChannelGroupCommand.d.ts +103 -0
  95. package/dist-types/commands/CreateOriginEndpointCommand.d.ts +220 -0
  96. package/dist-types/commands/DeleteChannelCommand.d.ts +83 -0
  97. package/dist-types/commands/DeleteChannelGroupCommand.d.ts +82 -0
  98. package/dist-types/commands/DeleteChannelPolicyCommand.d.ts +83 -0
  99. package/dist-types/commands/DeleteOriginEndpointCommand.d.ts +81 -0
  100. package/dist-types/commands/DeleteOriginEndpointPolicyCommand.d.ts +84 -0
  101. package/dist-types/commands/GetChannelCommand.d.ts +99 -0
  102. package/dist-types/commands/GetChannelGroupCommand.d.ts +92 -0
  103. package/dist-types/commands/GetChannelPolicyCommand.d.ts +87 -0
  104. package/dist-types/commands/GetOriginEndpointCommand.d.ts +153 -0
  105. package/dist-types/commands/GetOriginEndpointPolicyCommand.d.ts +89 -0
  106. package/dist-types/commands/ListChannelGroupsCommand.d.ts +91 -0
  107. package/dist-types/commands/ListChannelsCommand.d.ts +93 -0
  108. package/dist-types/commands/ListOriginEndpointsCommand.d.ts +113 -0
  109. package/dist-types/commands/ListTagsForResourceCommand.d.ts +74 -0
  110. package/dist-types/commands/PutChannelPolicyCommand.d.ts +87 -0
  111. package/dist-types/commands/PutOriginEndpointPolicyCommand.d.ts +88 -0
  112. package/dist-types/commands/TagResourceCommand.d.ts +78 -0
  113. package/dist-types/commands/UntagResourceCommand.d.ts +73 -0
  114. package/dist-types/commands/UpdateChannelCommand.d.ts +104 -0
  115. package/dist-types/commands/UpdateChannelGroupCommand.d.ts +97 -0
  116. package/dist-types/commands/UpdateOriginEndpointCommand.d.ts +217 -0
  117. package/dist-types/commands/index.d.ts +24 -0
  118. package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
  119. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  120. package/dist-types/endpoint/ruleset.d.ts +2 -0
  121. package/dist-types/index.d.ts +6 -0
  122. package/dist-types/models/MediaPackageV2ServiceException.d.ts +12 -0
  123. package/dist-types/models/index.d.ts +1 -0
  124. package/dist-types/models/models_0.d.ts +1739 -0
  125. package/dist-types/pagination/Interfaces.d.ts +8 -0
  126. package/dist-types/pagination/ListChannelGroupsPaginator.d.ts +7 -0
  127. package/dist-types/pagination/ListChannelsPaginator.d.ts +7 -0
  128. package/dist-types/pagination/ListOriginEndpointsPaginator.d.ts +7 -0
  129. package/dist-types/pagination/index.d.ts +4 -0
  130. package/dist-types/protocols/Aws_restJson1.d.ts +218 -0
  131. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  132. package/dist-types/runtimeConfig.d.ts +42 -0
  133. package/dist-types/runtimeConfig.native.d.ts +41 -0
  134. package/dist-types/runtimeConfig.shared.d.ts +18 -0
  135. package/dist-types/ts3.4/MediaPackageV2.d.ts +415 -0
  136. package/dist-types/ts3.4/MediaPackageV2Client.d.ts +259 -0
  137. package/dist-types/ts3.4/commands/CreateChannelCommand.d.ts +37 -0
  138. package/dist-types/ts3.4/commands/CreateChannelGroupCommand.d.ts +38 -0
  139. package/dist-types/ts3.4/commands/CreateOriginEndpointCommand.d.ts +41 -0
  140. package/dist-types/ts3.4/commands/DeleteChannelCommand.d.ts +37 -0
  141. package/dist-types/ts3.4/commands/DeleteChannelGroupCommand.d.ts +38 -0
  142. package/dist-types/ts3.4/commands/DeleteChannelPolicyCommand.d.ts +38 -0
  143. package/dist-types/ts3.4/commands/DeleteOriginEndpointCommand.d.ts +41 -0
  144. package/dist-types/ts3.4/commands/DeleteOriginEndpointPolicyCommand.d.ts +41 -0
  145. package/dist-types/ts3.4/commands/GetChannelCommand.d.ts +34 -0
  146. package/dist-types/ts3.4/commands/GetChannelGroupCommand.d.ts +37 -0
  147. package/dist-types/ts3.4/commands/GetChannelPolicyCommand.d.ts +37 -0
  148. package/dist-types/ts3.4/commands/GetOriginEndpointCommand.d.ts +38 -0
  149. package/dist-types/ts3.4/commands/GetOriginEndpointPolicyCommand.d.ts +41 -0
  150. package/dist-types/ts3.4/commands/ListChannelGroupsCommand.d.ts +38 -0
  151. package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +34 -0
  152. package/dist-types/ts3.4/commands/ListOriginEndpointsCommand.d.ts +38 -0
  153. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
  154. package/dist-types/ts3.4/commands/PutChannelPolicyCommand.d.ts +37 -0
  155. package/dist-types/ts3.4/commands/PutOriginEndpointPolicyCommand.d.ts +41 -0
  156. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +32 -0
  157. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +32 -0
  158. package/dist-types/ts3.4/commands/UpdateChannelCommand.d.ts +37 -0
  159. package/dist-types/ts3.4/commands/UpdateChannelGroupCommand.d.ts +38 -0
  160. package/dist-types/ts3.4/commands/UpdateOriginEndpointCommand.d.ts +41 -0
  161. package/dist-types/ts3.4/commands/index.d.ts +24 -0
  162. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
  163. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  164. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  165. package/dist-types/ts3.4/index.d.ts +6 -0
  166. package/dist-types/ts3.4/models/MediaPackageV2ServiceException.d.ts +7 -0
  167. package/dist-types/ts3.4/models/index.d.ts +1 -0
  168. package/dist-types/ts3.4/models/models_0.d.ts +542 -0
  169. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  170. package/dist-types/ts3.4/pagination/ListChannelGroupsPaginator.d.ts +11 -0
  171. package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +11 -0
  172. package/dist-types/ts3.4/pagination/ListOriginEndpointsPaginator.d.ts +11 -0
  173. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  174. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +293 -0
  175. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +94 -0
  176. package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
  177. package/dist-types/ts3.4/runtimeConfig.native.d.ts +85 -0
  178. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -0
  179. package/package.json +101 -0
@@ -0,0 +1,91 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { MediaPackageV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageV2Client";
5
+ import { ListChannelGroupsRequest, ListChannelGroupsResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ *
9
+ * The input for {@link ListChannelGroupsCommand}.
10
+ */
11
+ export interface ListChannelGroupsCommandInput extends ListChannelGroupsRequest {
12
+ }
13
+ /**
14
+ * @public
15
+ *
16
+ * The output of {@link ListChannelGroupsCommand}.
17
+ */
18
+ export interface ListChannelGroupsCommandOutput extends ListChannelGroupsResponse, __MetadataBearer {
19
+ }
20
+ /**
21
+ * @public
22
+ * <p>Retrieves all channel groups that are configured in AWS Elemental MediaPackage, including the channels and origin endpoints that are associated with it.</p>
23
+ * @example
24
+ * Use a bare-bones client and the command you need to make an API call.
25
+ * ```javascript
26
+ * import { MediaPackageV2Client, ListChannelGroupsCommand } from "@aws-sdk/client-mediapackagev2"; // ES Modules import
27
+ * // const { MediaPackageV2Client, ListChannelGroupsCommand } = require("@aws-sdk/client-mediapackagev2"); // CommonJS import
28
+ * const client = new MediaPackageV2Client(config);
29
+ * const input = { // ListChannelGroupsRequest
30
+ * MaxResults: Number("int"),
31
+ * NextToken: "STRING_VALUE",
32
+ * };
33
+ * const command = new ListChannelGroupsCommand(input);
34
+ * const response = await client.send(command);
35
+ * // { // ListChannelGroupsResponse
36
+ * // Items: [ // ChannelGroupsList
37
+ * // { // ChannelGroupListConfiguration
38
+ * // ChannelGroupName: "STRING_VALUE", // required
39
+ * // Arn: "STRING_VALUE", // required
40
+ * // CreatedAt: new Date("TIMESTAMP"), // required
41
+ * // ModifiedAt: new Date("TIMESTAMP"), // required
42
+ * // Description: "STRING_VALUE",
43
+ * // },
44
+ * // ],
45
+ * // NextToken: "STRING_VALUE",
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param ListChannelGroupsCommandInput - {@link ListChannelGroupsCommandInput}
51
+ * @returns {@link ListChannelGroupsCommandOutput}
52
+ * @see {@link ListChannelGroupsCommandInput} for command's `input` shape.
53
+ * @see {@link ListChannelGroupsCommandOutput} for command's `response` shape.
54
+ * @see {@link MediaPackageV2ClientResolvedConfig | config} for MediaPackageV2Client's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide.</p>
58
+ *
59
+ * @throws {@link InternalServerException} (server fault)
60
+ * <p>Indicates that an error from the service occurred while trying to process a request.</p>
61
+ *
62
+ * @throws {@link ThrottlingException} (client fault)
63
+ * <p>The request throughput limit was exceeded.</p>
64
+ *
65
+ * @throws {@link ValidationException} (client fault)
66
+ * <p>The input failed to meet the constraints specified by the AWS service.</p>
67
+ *
68
+ * @throws {@link MediaPackageV2ServiceException}
69
+ * <p>Base exception class for all service exceptions from MediaPackageV2 service.</p>
70
+ *
71
+ */
72
+ export declare class ListChannelGroupsCommand extends $Command<ListChannelGroupsCommandInput, ListChannelGroupsCommandOutput, MediaPackageV2ClientResolvedConfig> {
73
+ readonly input: ListChannelGroupsCommandInput;
74
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
75
+ /**
76
+ * @public
77
+ */
78
+ constructor(input: ListChannelGroupsCommandInput);
79
+ /**
80
+ * @internal
81
+ */
82
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MediaPackageV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListChannelGroupsCommandInput, ListChannelGroupsCommandOutput>;
83
+ /**
84
+ * @internal
85
+ */
86
+ private serialize;
87
+ /**
88
+ * @internal
89
+ */
90
+ private deserialize;
91
+ }
@@ -0,0 +1,93 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { MediaPackageV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageV2Client";
5
+ import { ListChannelsRequest, ListChannelsResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ *
9
+ * The input for {@link ListChannelsCommand}.
10
+ */
11
+ export interface ListChannelsCommandInput extends ListChannelsRequest {
12
+ }
13
+ /**
14
+ * @public
15
+ *
16
+ * The output of {@link ListChannelsCommand}.
17
+ */
18
+ export interface ListChannelsCommandOutput extends ListChannelsResponse, __MetadataBearer {
19
+ }
20
+ /**
21
+ * @public
22
+ * <p>Retrieves all channels in a specific channel group that are configured in AWS Elemental MediaPackage, including the origin endpoints that are associated with it.</p>
23
+ * @example
24
+ * Use a bare-bones client and the command you need to make an API call.
25
+ * ```javascript
26
+ * import { MediaPackageV2Client, ListChannelsCommand } from "@aws-sdk/client-mediapackagev2"; // ES Modules import
27
+ * // const { MediaPackageV2Client, ListChannelsCommand } = require("@aws-sdk/client-mediapackagev2"); // CommonJS import
28
+ * const client = new MediaPackageV2Client(config);
29
+ * const input = { // ListChannelsRequest
30
+ * ChannelGroupName: "STRING_VALUE", // required
31
+ * MaxResults: Number("int"),
32
+ * NextToken: "STRING_VALUE",
33
+ * };
34
+ * const command = new ListChannelsCommand(input);
35
+ * const response = await client.send(command);
36
+ * // { // ListChannelsResponse
37
+ * // Items: [ // ChannelList
38
+ * // { // ChannelListConfiguration
39
+ * // Arn: "STRING_VALUE", // required
40
+ * // ChannelName: "STRING_VALUE", // required
41
+ * // ChannelGroupName: "STRING_VALUE", // required
42
+ * // CreatedAt: new Date("TIMESTAMP"), // required
43
+ * // ModifiedAt: new Date("TIMESTAMP"), // required
44
+ * // Description: "STRING_VALUE",
45
+ * // },
46
+ * // ],
47
+ * // NextToken: "STRING_VALUE",
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param ListChannelsCommandInput - {@link ListChannelsCommandInput}
53
+ * @returns {@link ListChannelsCommandOutput}
54
+ * @see {@link ListChannelsCommandInput} for command's `input` shape.
55
+ * @see {@link ListChannelsCommandOutput} for command's `response` shape.
56
+ * @see {@link MediaPackageV2ClientResolvedConfig | config} for MediaPackageV2Client's `config` shape.
57
+ *
58
+ * @throws {@link AccessDeniedException} (client fault)
59
+ * <p>You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide.</p>
60
+ *
61
+ * @throws {@link InternalServerException} (server fault)
62
+ * <p>Indicates that an error from the service occurred while trying to process a request.</p>
63
+ *
64
+ * @throws {@link ThrottlingException} (client fault)
65
+ * <p>The request throughput limit was exceeded.</p>
66
+ *
67
+ * @throws {@link ValidationException} (client fault)
68
+ * <p>The input failed to meet the constraints specified by the AWS service.</p>
69
+ *
70
+ * @throws {@link MediaPackageV2ServiceException}
71
+ * <p>Base exception class for all service exceptions from MediaPackageV2 service.</p>
72
+ *
73
+ */
74
+ export declare class ListChannelsCommand extends $Command<ListChannelsCommandInput, ListChannelsCommandOutput, MediaPackageV2ClientResolvedConfig> {
75
+ readonly input: ListChannelsCommandInput;
76
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
77
+ /**
78
+ * @public
79
+ */
80
+ constructor(input: ListChannelsCommandInput);
81
+ /**
82
+ * @internal
83
+ */
84
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MediaPackageV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListChannelsCommandInput, ListChannelsCommandOutput>;
85
+ /**
86
+ * @internal
87
+ */
88
+ private serialize;
89
+ /**
90
+ * @internal
91
+ */
92
+ private deserialize;
93
+ }
@@ -0,0 +1,113 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { MediaPackageV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageV2Client";
5
+ import { ListOriginEndpointsRequest, ListOriginEndpointsResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ *
9
+ * The input for {@link ListOriginEndpointsCommand}.
10
+ */
11
+ export interface ListOriginEndpointsCommandInput extends ListOriginEndpointsRequest {
12
+ }
13
+ /**
14
+ * @public
15
+ *
16
+ * The output of {@link ListOriginEndpointsCommand}.
17
+ */
18
+ export interface ListOriginEndpointsCommandOutput extends ListOriginEndpointsResponse, __MetadataBearer {
19
+ }
20
+ /**
21
+ * @public
22
+ * <p>Retrieves all origin endpoints in a specific channel that are configured in AWS Elemental MediaPackage.</p>
23
+ * @example
24
+ * Use a bare-bones client and the command you need to make an API call.
25
+ * ```javascript
26
+ * import { MediaPackageV2Client, ListOriginEndpointsCommand } from "@aws-sdk/client-mediapackagev2"; // ES Modules import
27
+ * // const { MediaPackageV2Client, ListOriginEndpointsCommand } = require("@aws-sdk/client-mediapackagev2"); // CommonJS import
28
+ * const client = new MediaPackageV2Client(config);
29
+ * const input = { // ListOriginEndpointsRequest
30
+ * ChannelGroupName: "STRING_VALUE", // required
31
+ * ChannelName: "STRING_VALUE", // required
32
+ * MaxResults: Number("int"),
33
+ * NextToken: "STRING_VALUE",
34
+ * };
35
+ * const command = new ListOriginEndpointsCommand(input);
36
+ * const response = await client.send(command);
37
+ * // { // ListOriginEndpointsResponse
38
+ * // Items: [ // OriginEndpointsList
39
+ * // { // OriginEndpointListConfiguration
40
+ * // Arn: "STRING_VALUE", // required
41
+ * // ChannelGroupName: "STRING_VALUE", // required
42
+ * // ChannelName: "STRING_VALUE", // required
43
+ * // OriginEndpointName: "STRING_VALUE", // required
44
+ * // ContainerType: "TS" || "CMAF", // required
45
+ * // Description: "STRING_VALUE",
46
+ * // CreatedAt: new Date("TIMESTAMP"),
47
+ * // ModifiedAt: new Date("TIMESTAMP"),
48
+ * // HlsManifests: [ // ListHlsManifests
49
+ * // { // ListHlsManifestConfiguration
50
+ * // ManifestName: "STRING_VALUE", // required
51
+ * // ChildManifestName: "STRING_VALUE",
52
+ * // Url: "STRING_VALUE",
53
+ * // },
54
+ * // ],
55
+ * // LowLatencyHlsManifests: [ // ListLowLatencyHlsManifests
56
+ * // { // ListLowLatencyHlsManifestConfiguration
57
+ * // ManifestName: "STRING_VALUE", // required
58
+ * // ChildManifestName: "STRING_VALUE",
59
+ * // Url: "STRING_VALUE",
60
+ * // },
61
+ * // ],
62
+ * // },
63
+ * // ],
64
+ * // NextToken: "STRING_VALUE",
65
+ * // };
66
+ *
67
+ * ```
68
+ *
69
+ * @param ListOriginEndpointsCommandInput - {@link ListOriginEndpointsCommandInput}
70
+ * @returns {@link ListOriginEndpointsCommandOutput}
71
+ * @see {@link ListOriginEndpointsCommandInput} for command's `input` shape.
72
+ * @see {@link ListOriginEndpointsCommandOutput} for command's `response` shape.
73
+ * @see {@link MediaPackageV2ClientResolvedConfig | config} for MediaPackageV2Client's `config` shape.
74
+ *
75
+ * @throws {@link AccessDeniedException} (client fault)
76
+ * <p>You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide.</p>
77
+ *
78
+ * @throws {@link InternalServerException} (server fault)
79
+ * <p>Indicates that an error from the service occurred while trying to process a request.</p>
80
+ *
81
+ * @throws {@link ResourceNotFoundException} (client fault)
82
+ * <p>The specified resource doesn't exist.</p>
83
+ *
84
+ * @throws {@link ThrottlingException} (client fault)
85
+ * <p>The request throughput limit was exceeded.</p>
86
+ *
87
+ * @throws {@link ValidationException} (client fault)
88
+ * <p>The input failed to meet the constraints specified by the AWS service.</p>
89
+ *
90
+ * @throws {@link MediaPackageV2ServiceException}
91
+ * <p>Base exception class for all service exceptions from MediaPackageV2 service.</p>
92
+ *
93
+ */
94
+ export declare class ListOriginEndpointsCommand extends $Command<ListOriginEndpointsCommandInput, ListOriginEndpointsCommandOutput, MediaPackageV2ClientResolvedConfig> {
95
+ readonly input: ListOriginEndpointsCommandInput;
96
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
97
+ /**
98
+ * @public
99
+ */
100
+ constructor(input: ListOriginEndpointsCommandInput);
101
+ /**
102
+ * @internal
103
+ */
104
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MediaPackageV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListOriginEndpointsCommandInput, ListOriginEndpointsCommandOutput>;
105
+ /**
106
+ * @internal
107
+ */
108
+ private serialize;
109
+ /**
110
+ * @internal
111
+ */
112
+ private deserialize;
113
+ }
@@ -0,0 +1,74 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { MediaPackageV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageV2Client";
5
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ *
9
+ * The input for {@link ListTagsForResourceCommand}.
10
+ */
11
+ export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
12
+ }
13
+ /**
14
+ * @public
15
+ *
16
+ * The output of {@link ListTagsForResourceCommand}.
17
+ */
18
+ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
19
+ }
20
+ /**
21
+ * @public
22
+ * <p>Lists the tags assigned to a resource.</p>
23
+ * @example
24
+ * Use a bare-bones client and the command you need to make an API call.
25
+ * ```javascript
26
+ * import { MediaPackageV2Client, ListTagsForResourceCommand } from "@aws-sdk/client-mediapackagev2"; // ES Modules import
27
+ * // const { MediaPackageV2Client, ListTagsForResourceCommand } = require("@aws-sdk/client-mediapackagev2"); // CommonJS import
28
+ * const client = new MediaPackageV2Client(config);
29
+ * const input = { // ListTagsForResourceRequest
30
+ * ResourceArn: "STRING_VALUE", // required
31
+ * };
32
+ * const command = new ListTagsForResourceCommand(input);
33
+ * const response = await client.send(command);
34
+ * // { // ListTagsForResourceResponse
35
+ * // Tags: { // TagMap
36
+ * // "<keys>": "STRING_VALUE",
37
+ * // },
38
+ * // };
39
+ *
40
+ * ```
41
+ *
42
+ * @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
43
+ * @returns {@link ListTagsForResourceCommandOutput}
44
+ * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
45
+ * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
46
+ * @see {@link MediaPackageV2ClientResolvedConfig | config} for MediaPackageV2Client's `config` shape.
47
+ *
48
+ * @throws {@link ValidationException} (client fault)
49
+ * <p>The input failed to meet the constraints specified by the AWS service.</p>
50
+ *
51
+ * @throws {@link MediaPackageV2ServiceException}
52
+ * <p>Base exception class for all service exceptions from MediaPackageV2 service.</p>
53
+ *
54
+ */
55
+ export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, MediaPackageV2ClientResolvedConfig> {
56
+ readonly input: ListTagsForResourceCommandInput;
57
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
58
+ /**
59
+ * @public
60
+ */
61
+ constructor(input: ListTagsForResourceCommandInput);
62
+ /**
63
+ * @internal
64
+ */
65
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MediaPackageV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
66
+ /**
67
+ * @internal
68
+ */
69
+ private serialize;
70
+ /**
71
+ * @internal
72
+ */
73
+ private deserialize;
74
+ }
@@ -0,0 +1,87 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { MediaPackageV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageV2Client";
5
+ import { PutChannelPolicyRequest, PutChannelPolicyResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ *
9
+ * The input for {@link PutChannelPolicyCommand}.
10
+ */
11
+ export interface PutChannelPolicyCommandInput extends PutChannelPolicyRequest {
12
+ }
13
+ /**
14
+ * @public
15
+ *
16
+ * The output of {@link PutChannelPolicyCommand}.
17
+ */
18
+ export interface PutChannelPolicyCommandOutput extends PutChannelPolicyResponse, __MetadataBearer {
19
+ }
20
+ /**
21
+ * @public
22
+ * <p>Attaches an IAM policy to the specified channel. With policies, you can specify who has access to AWS resources and what actions they can perform on those resources. You can attach only one policy with each request.</p>
23
+ * @example
24
+ * Use a bare-bones client and the command you need to make an API call.
25
+ * ```javascript
26
+ * import { MediaPackageV2Client, PutChannelPolicyCommand } from "@aws-sdk/client-mediapackagev2"; // ES Modules import
27
+ * // const { MediaPackageV2Client, PutChannelPolicyCommand } = require("@aws-sdk/client-mediapackagev2"); // CommonJS import
28
+ * const client = new MediaPackageV2Client(config);
29
+ * const input = { // PutChannelPolicyRequest
30
+ * ChannelGroupName: "STRING_VALUE", // required
31
+ * ChannelName: "STRING_VALUE", // required
32
+ * Policy: "STRING_VALUE", // required
33
+ * };
34
+ * const command = new PutChannelPolicyCommand(input);
35
+ * const response = await client.send(command);
36
+ * // {};
37
+ *
38
+ * ```
39
+ *
40
+ * @param PutChannelPolicyCommandInput - {@link PutChannelPolicyCommandInput}
41
+ * @returns {@link PutChannelPolicyCommandOutput}
42
+ * @see {@link PutChannelPolicyCommandInput} for command's `input` shape.
43
+ * @see {@link PutChannelPolicyCommandOutput} for command's `response` shape.
44
+ * @see {@link MediaPackageV2ClientResolvedConfig | config} for MediaPackageV2Client's `config` shape.
45
+ *
46
+ * @throws {@link AccessDeniedException} (client fault)
47
+ * <p>You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide.</p>
48
+ *
49
+ * @throws {@link ConflictException} (client fault)
50
+ * <p>Updating or deleting this resource can cause an inconsistent state.</p>
51
+ *
52
+ * @throws {@link InternalServerException} (server fault)
53
+ * <p>Indicates that an error from the service occurred while trying to process a request.</p>
54
+ *
55
+ * @throws {@link ResourceNotFoundException} (client fault)
56
+ * <p>The specified resource doesn't exist.</p>
57
+ *
58
+ * @throws {@link ThrottlingException} (client fault)
59
+ * <p>The request throughput limit was exceeded.</p>
60
+ *
61
+ * @throws {@link ValidationException} (client fault)
62
+ * <p>The input failed to meet the constraints specified by the AWS service.</p>
63
+ *
64
+ * @throws {@link MediaPackageV2ServiceException}
65
+ * <p>Base exception class for all service exceptions from MediaPackageV2 service.</p>
66
+ *
67
+ */
68
+ export declare class PutChannelPolicyCommand extends $Command<PutChannelPolicyCommandInput, PutChannelPolicyCommandOutput, MediaPackageV2ClientResolvedConfig> {
69
+ readonly input: PutChannelPolicyCommandInput;
70
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
71
+ /**
72
+ * @public
73
+ */
74
+ constructor(input: PutChannelPolicyCommandInput);
75
+ /**
76
+ * @internal
77
+ */
78
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MediaPackageV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutChannelPolicyCommandInput, PutChannelPolicyCommandOutput>;
79
+ /**
80
+ * @internal
81
+ */
82
+ private serialize;
83
+ /**
84
+ * @internal
85
+ */
86
+ private deserialize;
87
+ }
@@ -0,0 +1,88 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { MediaPackageV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageV2Client";
5
+ import { PutOriginEndpointPolicyRequest, PutOriginEndpointPolicyResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ *
9
+ * The input for {@link PutOriginEndpointPolicyCommand}.
10
+ */
11
+ export interface PutOriginEndpointPolicyCommandInput extends PutOriginEndpointPolicyRequest {
12
+ }
13
+ /**
14
+ * @public
15
+ *
16
+ * The output of {@link PutOriginEndpointPolicyCommand}.
17
+ */
18
+ export interface PutOriginEndpointPolicyCommandOutput extends PutOriginEndpointPolicyResponse, __MetadataBearer {
19
+ }
20
+ /**
21
+ * @public
22
+ * <p>Attaches an IAM policy to the specified origin endpoint. You can attach only one policy with each request.</p>
23
+ * @example
24
+ * Use a bare-bones client and the command you need to make an API call.
25
+ * ```javascript
26
+ * import { MediaPackageV2Client, PutOriginEndpointPolicyCommand } from "@aws-sdk/client-mediapackagev2"; // ES Modules import
27
+ * // const { MediaPackageV2Client, PutOriginEndpointPolicyCommand } = require("@aws-sdk/client-mediapackagev2"); // CommonJS import
28
+ * const client = new MediaPackageV2Client(config);
29
+ * const input = { // PutOriginEndpointPolicyRequest
30
+ * ChannelGroupName: "STRING_VALUE", // required
31
+ * ChannelName: "STRING_VALUE", // required
32
+ * OriginEndpointName: "STRING_VALUE", // required
33
+ * Policy: "STRING_VALUE", // required
34
+ * };
35
+ * const command = new PutOriginEndpointPolicyCommand(input);
36
+ * const response = await client.send(command);
37
+ * // {};
38
+ *
39
+ * ```
40
+ *
41
+ * @param PutOriginEndpointPolicyCommandInput - {@link PutOriginEndpointPolicyCommandInput}
42
+ * @returns {@link PutOriginEndpointPolicyCommandOutput}
43
+ * @see {@link PutOriginEndpointPolicyCommandInput} for command's `input` shape.
44
+ * @see {@link PutOriginEndpointPolicyCommandOutput} for command's `response` shape.
45
+ * @see {@link MediaPackageV2ClientResolvedConfig | config} for MediaPackageV2Client's `config` shape.
46
+ *
47
+ * @throws {@link AccessDeniedException} (client fault)
48
+ * <p>You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide.</p>
49
+ *
50
+ * @throws {@link ConflictException} (client fault)
51
+ * <p>Updating or deleting this resource can cause an inconsistent state.</p>
52
+ *
53
+ * @throws {@link InternalServerException} (server fault)
54
+ * <p>Indicates that an error from the service occurred while trying to process a request.</p>
55
+ *
56
+ * @throws {@link ResourceNotFoundException} (client fault)
57
+ * <p>The specified resource doesn't exist.</p>
58
+ *
59
+ * @throws {@link ThrottlingException} (client fault)
60
+ * <p>The request throughput limit was exceeded.</p>
61
+ *
62
+ * @throws {@link ValidationException} (client fault)
63
+ * <p>The input failed to meet the constraints specified by the AWS service.</p>
64
+ *
65
+ * @throws {@link MediaPackageV2ServiceException}
66
+ * <p>Base exception class for all service exceptions from MediaPackageV2 service.</p>
67
+ *
68
+ */
69
+ export declare class PutOriginEndpointPolicyCommand extends $Command<PutOriginEndpointPolicyCommandInput, PutOriginEndpointPolicyCommandOutput, MediaPackageV2ClientResolvedConfig> {
70
+ readonly input: PutOriginEndpointPolicyCommandInput;
71
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
72
+ /**
73
+ * @public
74
+ */
75
+ constructor(input: PutOriginEndpointPolicyCommandInput);
76
+ /**
77
+ * @internal
78
+ */
79
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MediaPackageV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutOriginEndpointPolicyCommandInput, PutOriginEndpointPolicyCommandOutput>;
80
+ /**
81
+ * @internal
82
+ */
83
+ private serialize;
84
+ /**
85
+ * @internal
86
+ */
87
+ private deserialize;
88
+ }
@@ -0,0 +1,78 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { MediaPackageV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageV2Client";
5
+ import { TagResourceRequest } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ *
9
+ * The input for {@link TagResourceCommand}.
10
+ */
11
+ export interface TagResourceCommandInput extends TagResourceRequest {
12
+ }
13
+ /**
14
+ * @public
15
+ *
16
+ * The output of {@link TagResourceCommand}.
17
+ */
18
+ export interface TagResourceCommandOutput extends __MetadataBearer {
19
+ }
20
+ /**
21
+ * @public
22
+ * <p>Assigns one of more tags (key-value pairs) to the specified MediaPackage resource.</p>
23
+ * <p>Tags can help you organize and categorize your resources. You can also use them to scope user
24
+ * permissions, by granting a user permission to access or change only resources with certain tag values.
25
+ * You can use the TagResource operation with a resource that already has tags. If you specify a new tag
26
+ * key for the resource, this tag is appended to the list of tags associated with the resource. If you
27
+ * specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { MediaPackageV2Client, TagResourceCommand } from "@aws-sdk/client-mediapackagev2"; // ES Modules import
32
+ * // const { MediaPackageV2Client, TagResourceCommand } = require("@aws-sdk/client-mediapackagev2"); // CommonJS import
33
+ * const client = new MediaPackageV2Client(config);
34
+ * const input = { // TagResourceRequest
35
+ * ResourceArn: "STRING_VALUE", // required
36
+ * Tags: { // TagMap // required
37
+ * "<keys>": "STRING_VALUE",
38
+ * },
39
+ * };
40
+ * const command = new TagResourceCommand(input);
41
+ * const response = await client.send(command);
42
+ * // {};
43
+ *
44
+ * ```
45
+ *
46
+ * @param TagResourceCommandInput - {@link TagResourceCommandInput}
47
+ * @returns {@link TagResourceCommandOutput}
48
+ * @see {@link TagResourceCommandInput} for command's `input` shape.
49
+ * @see {@link TagResourceCommandOutput} for command's `response` shape.
50
+ * @see {@link MediaPackageV2ClientResolvedConfig | config} for MediaPackageV2Client's `config` shape.
51
+ *
52
+ * @throws {@link ValidationException} (client fault)
53
+ * <p>The input failed to meet the constraints specified by the AWS service.</p>
54
+ *
55
+ * @throws {@link MediaPackageV2ServiceException}
56
+ * <p>Base exception class for all service exceptions from MediaPackageV2 service.</p>
57
+ *
58
+ */
59
+ export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, MediaPackageV2ClientResolvedConfig> {
60
+ readonly input: TagResourceCommandInput;
61
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
62
+ /**
63
+ * @public
64
+ */
65
+ constructor(input: TagResourceCommandInput);
66
+ /**
67
+ * @internal
68
+ */
69
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MediaPackageV2ClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
70
+ /**
71
+ * @internal
72
+ */
73
+ private serialize;
74
+ /**
75
+ * @internal
76
+ */
77
+ private deserialize;
78
+ }