@aws-sdk/client-ivs 3.1034.0 → 3.1035.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 (67) hide show
  1. package/README.md +36 -131
  2. package/dist-cjs/index.js +74 -0
  3. package/dist-cjs/models/errors.js +224 -33
  4. package/dist-cjs/schemas/schemas_0.js +200 -67
  5. package/dist-es/Ivs.js +12 -0
  6. package/dist-es/commands/CreateAdConfigurationCommand.js +16 -0
  7. package/dist-es/commands/DeleteAdConfigurationCommand.js +16 -0
  8. package/dist-es/commands/GetAdConfigurationCommand.js +16 -0
  9. package/dist-es/commands/InsertAdBreakCommand.js +16 -0
  10. package/dist-es/commands/ListAdConfigurationsCommand.js +16 -0
  11. package/dist-es/commands/index.js +5 -0
  12. package/dist-es/models/errors.js +218 -28
  13. package/dist-es/pagination/ListAdConfigurationsPaginator.js +4 -0
  14. package/dist-es/pagination/index.js +1 -0
  15. package/dist-es/schemas/schemas_0.js +197 -65
  16. package/dist-types/Ivs.d.ts +44 -131
  17. package/dist-types/IvsClient.d.ts +8 -133
  18. package/dist-types/commands/BatchGetChannelCommand.d.ts +17 -0
  19. package/dist-types/commands/BatchGetStreamKeyCommand.d.ts +16 -0
  20. package/dist-types/commands/BatchStartViewerSessionRevocationCommand.d.ts +8 -2
  21. package/dist-types/commands/CreateAdConfigurationCommand.d.ts +114 -0
  22. package/dist-types/commands/CreateChannelCommand.d.ts +2 -0
  23. package/dist-types/commands/CreatePlaybackRestrictionPolicyCommand.d.ts +1 -2
  24. package/dist-types/commands/CreateRecordingConfigurationCommand.d.ts +1 -12
  25. package/dist-types/commands/CreateStreamKeyCommand.d.ts +1 -4
  26. package/dist-types/commands/DeleteAdConfigurationCommand.d.ts +87 -0
  27. package/dist-types/commands/DeleteChannelCommand.d.ts +1 -6
  28. package/dist-types/commands/DeletePlaybackKeyPairCommand.d.ts +1 -3
  29. package/dist-types/commands/DeleteRecordingConfigurationCommand.d.ts +1 -6
  30. package/dist-types/commands/DeleteStreamKeyCommand.d.ts +1 -2
  31. package/dist-types/commands/GetAdConfigurationCommand.d.ts +97 -0
  32. package/dist-types/commands/GetChannelCommand.d.ts +1 -0
  33. package/dist-types/commands/GetPlaybackKeyPairCommand.d.ts +1 -5
  34. package/dist-types/commands/GetStreamSessionCommand.d.ts +1 -0
  35. package/dist-types/commands/ImportPlaybackKeyPairCommand.d.ts +1 -5
  36. package/dist-types/commands/InsertAdBreakCommand.d.ts +96 -0
  37. package/dist-types/commands/ListAdConfigurationsCommand.d.ts +98 -0
  38. package/dist-types/commands/ListChannelsCommand.d.ts +3 -4
  39. package/dist-types/commands/ListPlaybackKeyPairsCommand.d.ts +1 -2
  40. package/dist-types/commands/ListRecordingConfigurationsCommand.d.ts +1 -2
  41. package/dist-types/commands/ListStreamSessionsCommand.d.ts +1 -2
  42. package/dist-types/commands/ListStreamsCommand.d.ts +1 -2
  43. package/dist-types/commands/PutMetadataCommand.d.ts +1 -5
  44. package/dist-types/commands/StartViewerSessionRevocationCommand.d.ts +1 -5
  45. package/dist-types/commands/StopStreamCommand.d.ts +1 -8
  46. package/dist-types/commands/UpdateChannelCommand.d.ts +3 -3
  47. package/dist-types/commands/index.d.ts +5 -0
  48. package/dist-types/index.d.ts +1 -131
  49. package/dist-types/models/errors.d.ts +482 -25
  50. package/dist-types/models/models_0.d.ts +421 -350
  51. package/dist-types/pagination/ListAdConfigurationsPaginator.d.ts +7 -0
  52. package/dist-types/pagination/index.d.ts +1 -0
  53. package/dist-types/schemas/schemas_0.d.ts +18 -0
  54. package/dist-types/ts3.4/Ivs.d.ts +93 -0
  55. package/dist-types/ts3.4/IvsClient.d.ts +30 -0
  56. package/dist-types/ts3.4/commands/CreateAdConfigurationCommand.d.ts +51 -0
  57. package/dist-types/ts3.4/commands/DeleteAdConfigurationCommand.d.ts +46 -0
  58. package/dist-types/ts3.4/commands/GetAdConfigurationCommand.d.ts +51 -0
  59. package/dist-types/ts3.4/commands/InsertAdBreakCommand.d.ts +50 -0
  60. package/dist-types/ts3.4/commands/ListAdConfigurationsCommand.d.ts +51 -0
  61. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  62. package/dist-types/ts3.4/models/errors.d.ts +111 -17
  63. package/dist-types/ts3.4/models/models_0.d.ts +78 -0
  64. package/dist-types/ts3.4/pagination/ListAdConfigurationsPaginator.d.ts +11 -0
  65. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  66. package/dist-types/ts3.4/schemas/schemas_0.d.ts +18 -0
  67. package/package.json +5 -5
@@ -0,0 +1,114 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IvsClient";
4
+ import type { CreateAdConfigurationRequest, CreateAdConfigurationResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateAdConfigurationCommand}.
14
+ */
15
+ export interface CreateAdConfigurationCommandInput extends CreateAdConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateAdConfigurationCommand}.
21
+ */
22
+ export interface CreateAdConfigurationCommandOutput extends CreateAdConfigurationResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateAdConfigurationCommand_base: {
25
+ new (input: CreateAdConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateAdConfigurationCommandInput, CreateAdConfigurationCommandOutput, IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateAdConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateAdConfigurationCommandInput, CreateAdConfigurationCommandOutput, IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a new ad configuration to be used for server-side ad insertion.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { IvsClient, CreateAdConfigurationCommand } from "@aws-sdk/client-ivs"; // ES Modules import
35
+ * // const { IvsClient, CreateAdConfigurationCommand } = require("@aws-sdk/client-ivs"); // CommonJS import
36
+ * // import type { IvsClientConfig } from "@aws-sdk/client-ivs";
37
+ * const config = {}; // type is IvsClientConfig
38
+ * const client = new IvsClient(config);
39
+ * const input = { // CreateAdConfigurationRequest
40
+ * name: "STRING_VALUE",
41
+ * mediaTailorPlaybackConfigurations: [ // MediaTailorPlaybackConfigurationsList // required
42
+ * { // MediaTailorPlaybackConfiguration
43
+ * playbackConfigurationArn: "STRING_VALUE",
44
+ * },
45
+ * ],
46
+ * };
47
+ * const command = new CreateAdConfigurationCommand(input);
48
+ * const response = await client.send(command);
49
+ * // { // CreateAdConfigurationResponse
50
+ * // adConfiguration: { // AdConfiguration
51
+ * // arn: "STRING_VALUE", // required
52
+ * // name: "STRING_VALUE",
53
+ * // mediaTailorPlaybackConfigurations: [ // MediaTailorPlaybackConfigurationsList // required
54
+ * // { // MediaTailorPlaybackConfiguration
55
+ * // playbackConfigurationArn: "STRING_VALUE",
56
+ * // },
57
+ * // ],
58
+ * // tags: { // Tags
59
+ * // "<keys>": "STRING_VALUE",
60
+ * // },
61
+ * // },
62
+ * // };
63
+ *
64
+ * ```
65
+ *
66
+ * @param CreateAdConfigurationCommandInput - {@link CreateAdConfigurationCommandInput}
67
+ * @returns {@link CreateAdConfigurationCommandOutput}
68
+ * @see {@link CreateAdConfigurationCommandInput} for command's `input` shape.
69
+ * @see {@link CreateAdConfigurationCommandOutput} for command's `response` shape.
70
+ * @see {@link IvsClientResolvedConfig | config} for IvsClient's `config` shape.
71
+ *
72
+ * @throws {@link AccessDeniedException} (client fault)
73
+ * <p/>
74
+ *
75
+ * @throws {@link ConflictException} (client fault)
76
+ * <p/>
77
+ *
78
+ * @throws {@link InternalServerException} (server fault)
79
+ * <p/>
80
+ *
81
+ * @throws {@link PendingVerification} (client fault)
82
+ * <p/>
83
+ *
84
+ * @throws {@link ResourceNotFoundException} (client fault)
85
+ * <p/>
86
+ *
87
+ * @throws {@link ServiceQuotaExceededException} (client fault)
88
+ * <p/>
89
+ *
90
+ * @throws {@link ThrottlingException} (client fault)
91
+ * <p/>
92
+ *
93
+ * @throws {@link ValidationException} (client fault)
94
+ * <p/>
95
+ *
96
+ * @throws {@link IvsServiceException}
97
+ * <p>Base exception class for all service exceptions from Ivs service.</p>
98
+ *
99
+ *
100
+ * @public
101
+ */
102
+ export declare class CreateAdConfigurationCommand extends CreateAdConfigurationCommand_base {
103
+ /** @internal type navigation helper, not in runtime. */
104
+ protected static __types: {
105
+ api: {
106
+ input: CreateAdConfigurationRequest;
107
+ output: CreateAdConfigurationResponse;
108
+ };
109
+ sdk: {
110
+ input: CreateAdConfigurationCommandInput;
111
+ output: CreateAdConfigurationCommandOutput;
112
+ };
113
+ };
114
+ }
@@ -54,6 +54,7 @@ declare const CreateChannelCommand_base: {
54
54
  * maximumResolution: "SD" || "HD" || "FULL_HD",
55
55
  * },
56
56
  * containerFormat: "STRING_VALUE",
57
+ * adConfigurationArn: "STRING_VALUE",
57
58
  * };
58
59
  * const command = new CreateChannelCommand(input);
59
60
  * const response = await client.send(command);
@@ -83,6 +84,7 @@ declare const CreateChannelCommand_base: {
83
84
  * // maximumResolution: "SD" || "HD" || "FULL_HD",
84
85
  * // },
85
86
  * // containerFormat: "STRING_VALUE",
87
+ * // adConfigurationArn: "STRING_VALUE",
86
88
  * // },
87
89
  * // streamKey: { // StreamKey
88
90
  * // arn: "STRING_VALUE",
@@ -27,8 +27,7 @@ declare const CreatePlaybackRestrictionPolicyCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Creates a new playback restriction policy, for constraining playback by countries and/or
31
- * origins.</p>
30
+ * <p>Creates a new playback restriction policy, for constraining playback by countries and/or origins.</p>
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -27,18 +27,7 @@ declare const CreateRecordingConfigurationCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Creates a new recording configuration, used to enable recording to Amazon S3.</p>
31
- * <p>
32
- * <b>Known issue:</b> In the us-east-1 region, if you use the
33
- * Amazon Web Services CLI to create a recording configuration, it returns success even if the
34
- * S3 bucket is in a different region. In this case, the <code>state</code> of the recording
35
- * configuration is <code>CREATE_FAILED</code> (instead of <code>ACTIVE</code>). (In other
36
- * regions, the CLI correctly returns failure if the bucket is in a different region.)</p>
37
- * <p>
38
- * <b>Workaround:</b> Ensure that your S3 bucket is in the same
39
- * region as the recording configuration. If you create a recording configuration in a different
40
- * region as your S3 bucket, delete that recording configuration and create a new one with an S3
41
- * bucket from the correct region.</p>
30
+ * <p>Creates a new recording configuration, used to enable recording to Amazon S3.</p> <p> <b>Known issue:</b> In the us-east-1 region, if you use the Amazon Web Services CLI to create a recording configuration, it returns success even if the S3 bucket is in a different region. In this case, the <code>state</code> of the recording configuration is <code>CREATE_FAILED</code> (instead of <code>ACTIVE</code>). (In other regions, the CLI correctly returns failure if the bucket is in a different region.)</p> <p> <b>Workaround:</b> Ensure that your S3 bucket is in the same region as the recording configuration. If you create a recording configuration in a different region as your S3 bucket, delete that recording configuration and create a new one with an S3 bucket from the correct region.</p>
42
31
  * @example
43
32
  * Use a bare-bones client and the command you need to make an API call.
44
33
  * ```javascript
@@ -27,10 +27,7 @@ declare const CreateStreamKeyCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Creates a stream key, used to initiate a stream, for the specified channel ARN.</p>
31
- * <p>Note that <a>CreateChannel</a> creates a stream key. If you subsequently use
32
- * CreateStreamKey on the same channel, it will fail because a stream key already exists and
33
- * there is a limit of 1 stream key per channel. To reset the stream key on a channel, use <a>DeleteStreamKey</a> and then CreateStreamKey.</p>
30
+ * <p>Creates a stream key, used to initiate a stream, for the specified channel ARN.</p> <p>Note that <a>CreateChannel</a> creates a stream key. If you subsequently use CreateStreamKey on the same channel, it will fail because a stream key already exists and there is a limit of 1 stream key per channel. To reset the stream key on a channel, use <a>DeleteStreamKey</a> and then CreateStreamKey.</p>
34
31
  * @example
35
32
  * Use a bare-bones client and the command you need to make an API call.
36
33
  * ```javascript
@@ -0,0 +1,87 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IvsClient";
4
+ import type { DeleteAdConfigurationRequest } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteAdConfigurationCommand}.
14
+ */
15
+ export interface DeleteAdConfigurationCommandInput extends DeleteAdConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteAdConfigurationCommand}.
21
+ */
22
+ export interface DeleteAdConfigurationCommandOutput extends __MetadataBearer {
23
+ }
24
+ declare const DeleteAdConfigurationCommand_base: {
25
+ new (input: DeleteAdConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteAdConfigurationCommandInput, DeleteAdConfigurationCommandOutput, IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteAdConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteAdConfigurationCommandInput, DeleteAdConfigurationCommandOutput, IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes the specified ad configuration.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { IvsClient, DeleteAdConfigurationCommand } from "@aws-sdk/client-ivs"; // ES Modules import
35
+ * // const { IvsClient, DeleteAdConfigurationCommand } = require("@aws-sdk/client-ivs"); // CommonJS import
36
+ * // import type { IvsClientConfig } from "@aws-sdk/client-ivs";
37
+ * const config = {}; // type is IvsClientConfig
38
+ * const client = new IvsClient(config);
39
+ * const input = { // DeleteAdConfigurationRequest
40
+ * arn: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DeleteAdConfigurationCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteAdConfigurationCommandInput - {@link DeleteAdConfigurationCommandInput}
49
+ * @returns {@link DeleteAdConfigurationCommandOutput}
50
+ * @see {@link DeleteAdConfigurationCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteAdConfigurationCommandOutput} for command's `response` shape.
52
+ * @see {@link IvsClientResolvedConfig | config} for IvsClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p/>
56
+ *
57
+ * @throws {@link ConflictException} (client fault)
58
+ * <p/>
59
+ *
60
+ * @throws {@link InternalServerException} (server fault)
61
+ * <p/>
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * <p/>
65
+ *
66
+ * @throws {@link ValidationException} (client fault)
67
+ * <p/>
68
+ *
69
+ * @throws {@link IvsServiceException}
70
+ * <p>Base exception class for all service exceptions from Ivs service.</p>
71
+ *
72
+ *
73
+ * @public
74
+ */
75
+ export declare class DeleteAdConfigurationCommand extends DeleteAdConfigurationCommand_base {
76
+ /** @internal type navigation helper, not in runtime. */
77
+ protected static __types: {
78
+ api: {
79
+ input: DeleteAdConfigurationRequest;
80
+ output: {};
81
+ };
82
+ sdk: {
83
+ input: DeleteAdConfigurationCommandInput;
84
+ output: DeleteAdConfigurationCommandOutput;
85
+ };
86
+ };
87
+ }
@@ -27,12 +27,7 @@ declare const DeleteChannelCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Deletes the specified channel and its associated stream keys.</p>
31
- * <p>If you try to delete a live channel, you will get an error (409 ConflictException). To
32
- * delete a channel that is live, call <a>StopStream</a>, wait for the Amazon
33
- * EventBridge "Stream End" event (to verify that the stream's state is no longer Live), then
34
- * call DeleteChannel. (See <a href="https://docs.aws.amazon.com/ivs/latest/userguide/eventbridge.html"> Using EventBridge with Amazon IVS</a>.)
35
- * </p>
30
+ * <p>Deletes the specified channel and its associated stream keys.</p> <p>If you try to delete a live channel, you will get an error (409 ConflictException). To delete a channel that is live, call <a>StopStream</a>, wait for the Amazon EventBridge "Stream End" event (to verify that the stream's state is no longer Live), then call DeleteChannel. (See <a href="https://docs.aws.amazon.com/ivs/latest/userguide/eventbridge.html"> Using EventBridge with Amazon IVS</a>.) </p>
36
31
  * @example
37
32
  * Use a bare-bones client and the command you need to make an API call.
38
33
  * ```javascript
@@ -27,9 +27,7 @@ declare const DeletePlaybackKeyPairCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Deletes a specified authorization key pair. This invalidates future viewer tokens
31
- * generated using the key pair’s <code>privateKey</code>. For more information, see <a href="https://docs.aws.amazon.com/ivs/latest/userguide/private-channels.html">Setting Up Private
32
- * Channels</a> in the <i>Amazon IVS User Guide</i>.</p>
30
+ * <p>Deletes a specified authorization key pair. This invalidates future viewer tokens generated using the key pair’s <code>privateKey</code>. For more information, see <a href="https://docs.aws.amazon.com/ivs/latest/userguide/private-channels.html">Setting Up Private Channels</a> in the <i>Amazon IVS User Guide</i>.</p>
33
31
  * @example
34
32
  * Use a bare-bones client and the command you need to make an API call.
35
33
  * ```javascript
@@ -27,12 +27,7 @@ declare const DeleteRecordingConfigurationCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Deletes the recording configuration for the specified ARN.</p>
31
- * <p>If you try to delete a recording configuration that is associated with a channel, you will
32
- * get an error (409 ConflictException). To avoid this, for all channels that reference the
33
- * recording configuration, first use <a>UpdateChannel</a> to set the
34
- * <code>recordingConfigurationArn</code> field to an empty string, then use
35
- * DeleteRecordingConfiguration.</p>
30
+ * <p>Deletes the recording configuration for the specified ARN.</p> <p>If you try to delete a recording configuration that is associated with a channel, you will get an error (409 ConflictException). To avoid this, for all channels that reference the recording configuration, first use <a>UpdateChannel</a> to set the <code>recordingConfigurationArn</code> field to an empty string, then use DeleteRecordingConfiguration.</p>
36
31
  * @example
37
32
  * Use a bare-bones client and the command you need to make an API call.
38
33
  * ```javascript
@@ -27,8 +27,7 @@ declare const DeleteStreamKeyCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Deletes the stream key for the specified ARN, so it can no longer be used to
31
- * stream.</p>
30
+ * <p>Deletes the stream key for the specified ARN, so it can no longer be used to stream.</p>
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -0,0 +1,97 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IvsClient";
4
+ import type { GetAdConfigurationRequest, GetAdConfigurationResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetAdConfigurationCommand}.
14
+ */
15
+ export interface GetAdConfigurationCommandInput extends GetAdConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetAdConfigurationCommand}.
21
+ */
22
+ export interface GetAdConfigurationCommandOutput extends GetAdConfigurationResponse, __MetadataBearer {
23
+ }
24
+ declare const GetAdConfigurationCommand_base: {
25
+ new (input: GetAdConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<GetAdConfigurationCommandInput, GetAdConfigurationCommandOutput, IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetAdConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<GetAdConfigurationCommandInput, GetAdConfigurationCommandOutput, IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Gets the ad configuration represented by the specified ARN.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { IvsClient, GetAdConfigurationCommand } from "@aws-sdk/client-ivs"; // ES Modules import
35
+ * // const { IvsClient, GetAdConfigurationCommand } = require("@aws-sdk/client-ivs"); // CommonJS import
36
+ * // import type { IvsClientConfig } from "@aws-sdk/client-ivs";
37
+ * const config = {}; // type is IvsClientConfig
38
+ * const client = new IvsClient(config);
39
+ * const input = { // GetAdConfigurationRequest
40
+ * arn: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new GetAdConfigurationCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // GetAdConfigurationResponse
45
+ * // adConfiguration: { // AdConfiguration
46
+ * // arn: "STRING_VALUE", // required
47
+ * // name: "STRING_VALUE",
48
+ * // mediaTailorPlaybackConfigurations: [ // MediaTailorPlaybackConfigurationsList // required
49
+ * // { // MediaTailorPlaybackConfiguration
50
+ * // playbackConfigurationArn: "STRING_VALUE",
51
+ * // },
52
+ * // ],
53
+ * // tags: { // Tags
54
+ * // "<keys>": "STRING_VALUE",
55
+ * // },
56
+ * // },
57
+ * // };
58
+ *
59
+ * ```
60
+ *
61
+ * @param GetAdConfigurationCommandInput - {@link GetAdConfigurationCommandInput}
62
+ * @returns {@link GetAdConfigurationCommandOutput}
63
+ * @see {@link GetAdConfigurationCommandInput} for command's `input` shape.
64
+ * @see {@link GetAdConfigurationCommandOutput} for command's `response` shape.
65
+ * @see {@link IvsClientResolvedConfig | config} for IvsClient's `config` shape.
66
+ *
67
+ * @throws {@link AccessDeniedException} (client fault)
68
+ * <p/>
69
+ *
70
+ * @throws {@link InternalServerException} (server fault)
71
+ * <p/>
72
+ *
73
+ * @throws {@link ResourceNotFoundException} (client fault)
74
+ * <p/>
75
+ *
76
+ * @throws {@link ValidationException} (client fault)
77
+ * <p/>
78
+ *
79
+ * @throws {@link IvsServiceException}
80
+ * <p>Base exception class for all service exceptions from Ivs service.</p>
81
+ *
82
+ *
83
+ * @public
84
+ */
85
+ export declare class GetAdConfigurationCommand extends GetAdConfigurationCommand_base {
86
+ /** @internal type navigation helper, not in runtime. */
87
+ protected static __types: {
88
+ api: {
89
+ input: GetAdConfigurationRequest;
90
+ output: GetAdConfigurationResponse;
91
+ };
92
+ sdk: {
93
+ input: GetAdConfigurationCommandInput;
94
+ output: GetAdConfigurationCommandOutput;
95
+ };
96
+ };
97
+ }
@@ -67,6 +67,7 @@ declare const GetChannelCommand_base: {
67
67
  * // maximumResolution: "SD" || "HD" || "FULL_HD",
68
68
  * // },
69
69
  * // containerFormat: "STRING_VALUE",
70
+ * // adConfigurationArn: "STRING_VALUE",
70
71
  * // },
71
72
  * // };
72
73
  *
@@ -27,11 +27,7 @@ declare const GetPlaybackKeyPairCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Gets a specified playback authorization key pair and returns the <code>arn</code> and
31
- * <code>fingerprint</code>. The <code>privateKey</code> held by the caller can be used to
32
- * generate viewer authorization tokens, to grant viewers access to private channels. For more
33
- * information, see <a href="https://docs.aws.amazon.com/ivs/latest/userguide/private-channels.html">Setting Up Private Channels</a> in the <i>Amazon IVS User
34
- * Guide</i>.</p>
30
+ * <p>Gets a specified playback authorization key pair and returns the <code>arn</code> and <code>fingerprint</code>. The <code>privateKey</code> held by the caller can be used to generate viewer authorization tokens, to grant viewers access to private channels. For more information, see <a href="https://docs.aws.amazon.com/ivs/latest/userguide/private-channels.html">Setting Up Private Channels</a> in the <i>Amazon IVS User Guide</i>.</p>
35
31
  * @example
36
32
  * Use a bare-bones client and the command you need to make an API call.
37
33
  * ```javascript
@@ -72,6 +72,7 @@ declare const GetStreamSessionCommand_base: {
72
72
  * // maximumResolution: "SD" || "HD" || "FULL_HD",
73
73
  * // },
74
74
  * // containerFormat: "STRING_VALUE",
75
+ * // adConfigurationArn: "STRING_VALUE",
75
76
  * // },
76
77
  * // ingestConfiguration: { // IngestConfiguration
77
78
  * // video: { // VideoConfiguration
@@ -27,11 +27,7 @@ declare const ImportPlaybackKeyPairCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Imports the public portion of a new key pair and returns its <code>arn</code> and
31
- * <code>fingerprint</code>. The <code>privateKey</code> can then be used to generate viewer
32
- * authorization tokens, to grant viewers access to private channels. For more information, see
33
- * <a href="https://docs.aws.amazon.com/ivs/latest/userguide/private-channels.html">Setting Up
34
- * Private Channels</a> in the <i>Amazon IVS User Guide</i>.</p>
30
+ * <p>Imports the public portion of a new key pair and returns its <code>arn</code> and <code>fingerprint</code>. The <code>privateKey</code> can then be used to generate viewer authorization tokens, to grant viewers access to private channels. For more information, see <a href="https://docs.aws.amazon.com/ivs/latest/userguide/private-channels.html">Setting Up Private Channels</a> in the <i>Amazon IVS User Guide</i>.</p>
35
31
  * @example
36
32
  * Use a bare-bones client and the command you need to make an API call.
37
33
  * ```javascript
@@ -0,0 +1,96 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IvsClient";
4
+ import type { InsertAdBreakRequest, InsertAdBreakResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link InsertAdBreakCommand}.
14
+ */
15
+ export interface InsertAdBreakCommandInput extends InsertAdBreakRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link InsertAdBreakCommand}.
21
+ */
22
+ export interface InsertAdBreakCommandOutput extends InsertAdBreakResponse, __MetadataBearer {
23
+ }
24
+ declare const InsertAdBreakCommand_base: {
25
+ new (input: InsertAdBreakCommandInput): import("@smithy/smithy-client").CommandImpl<InsertAdBreakCommandInput, InsertAdBreakCommandOutput, IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: InsertAdBreakCommandInput): import("@smithy/smithy-client").CommandImpl<InsertAdBreakCommandInput, InsertAdBreakCommandOutput, IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Inserts an ad marker in the playlist for the specified channel and duration using the ad configuration associated with the channel.</p> <p> <b>Note:</b> AWS Elemental MediaTailor (EMT), the service that handles ad requests, provides CloudWatch metrics to help you monitor the success or failure of each InsertAdBreak operation. See <a href="https://docs.aws.amazon.com/mediatailor/latest/ug/monitoring-cloudwatch-metrics.html">Monitoring AWS Elemental MediaTailor with Amazon CloudWatch</a> metrics in the <i>AWS Elemental MediaTailor User Guide</i> for details on available metrics.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { IvsClient, InsertAdBreakCommand } from "@aws-sdk/client-ivs"; // ES Modules import
35
+ * // const { IvsClient, InsertAdBreakCommand } = require("@aws-sdk/client-ivs"); // CommonJS import
36
+ * // import type { IvsClientConfig } from "@aws-sdk/client-ivs";
37
+ * const config = {}; // type is IvsClientConfig
38
+ * const client = new IvsClient(config);
39
+ * const input = { // InsertAdBreakRequest
40
+ * channelArn: "STRING_VALUE", // required
41
+ * durationSeconds: Number("int"), // required
42
+ * };
43
+ * const command = new InsertAdBreakCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // InsertAdBreakResponse
46
+ * // adBreakId: "STRING_VALUE",
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param InsertAdBreakCommandInput - {@link InsertAdBreakCommandInput}
52
+ * @returns {@link InsertAdBreakCommandOutput}
53
+ * @see {@link InsertAdBreakCommandInput} for command's `input` shape.
54
+ * @see {@link InsertAdBreakCommandOutput} for command's `response` shape.
55
+ * @see {@link IvsClientResolvedConfig | config} for IvsClient's `config` shape.
56
+ *
57
+ * @throws {@link AccessDeniedException} (client fault)
58
+ * <p/>
59
+ *
60
+ * @throws {@link ChannelNotBroadcasting} (client fault)
61
+ * <p/>
62
+ *
63
+ * @throws {@link ConflictException} (client fault)
64
+ * <p/>
65
+ *
66
+ * @throws {@link InternalServerException} (server fault)
67
+ * <p/>
68
+ *
69
+ * @throws {@link ResourceNotFoundException} (client fault)
70
+ * <p/>
71
+ *
72
+ * @throws {@link ThrottlingException} (client fault)
73
+ * <p/>
74
+ *
75
+ * @throws {@link ValidationException} (client fault)
76
+ * <p/>
77
+ *
78
+ * @throws {@link IvsServiceException}
79
+ * <p>Base exception class for all service exceptions from Ivs service.</p>
80
+ *
81
+ *
82
+ * @public
83
+ */
84
+ export declare class InsertAdBreakCommand extends InsertAdBreakCommand_base {
85
+ /** @internal type navigation helper, not in runtime. */
86
+ protected static __types: {
87
+ api: {
88
+ input: InsertAdBreakRequest;
89
+ output: InsertAdBreakResponse;
90
+ };
91
+ sdk: {
92
+ input: InsertAdBreakCommandInput;
93
+ output: InsertAdBreakCommandOutput;
94
+ };
95
+ };
96
+ }
@@ -0,0 +1,98 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IvsClient";
4
+ import type { ListAdConfigurationsRequest, ListAdConfigurationsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListAdConfigurationsCommand}.
14
+ */
15
+ export interface ListAdConfigurationsCommandInput extends ListAdConfigurationsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListAdConfigurationsCommand}.
21
+ */
22
+ export interface ListAdConfigurationsCommandOutput extends ListAdConfigurationsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListAdConfigurationsCommand_base: {
25
+ new (input: ListAdConfigurationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListAdConfigurationsCommandInput, ListAdConfigurationsCommandOutput, IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListAdConfigurationsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListAdConfigurationsCommandInput, ListAdConfigurationsCommandOutput, IvsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Gets summary information about all ad configurations in your account, in the AWS region where the API request is processed.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { IvsClient, ListAdConfigurationsCommand } from "@aws-sdk/client-ivs"; // ES Modules import
35
+ * // const { IvsClient, ListAdConfigurationsCommand } = require("@aws-sdk/client-ivs"); // CommonJS import
36
+ * // import type { IvsClientConfig } from "@aws-sdk/client-ivs";
37
+ * const config = {}; // type is IvsClientConfig
38
+ * const client = new IvsClient(config);
39
+ * const input = { // ListAdConfigurationsRequest
40
+ * nextToken: "STRING_VALUE",
41
+ * maxResults: Number("int"),
42
+ * };
43
+ * const command = new ListAdConfigurationsCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ListAdConfigurationsResponse
46
+ * // adConfigurations: [ // AdConfigurationList // required
47
+ * // { // AdConfigurationSummary
48
+ * // arn: "STRING_VALUE", // required
49
+ * // name: "STRING_VALUE",
50
+ * // mediaTailorPlaybackConfigurations: [ // MediaTailorPlaybackConfigurationsList // required
51
+ * // { // MediaTailorPlaybackConfiguration
52
+ * // playbackConfigurationArn: "STRING_VALUE",
53
+ * // },
54
+ * // ],
55
+ * // tags: { // Tags
56
+ * // "<keys>": "STRING_VALUE",
57
+ * // },
58
+ * // },
59
+ * // ],
60
+ * // nextToken: "STRING_VALUE",
61
+ * // };
62
+ *
63
+ * ```
64
+ *
65
+ * @param ListAdConfigurationsCommandInput - {@link ListAdConfigurationsCommandInput}
66
+ * @returns {@link ListAdConfigurationsCommandOutput}
67
+ * @see {@link ListAdConfigurationsCommandInput} for command's `input` shape.
68
+ * @see {@link ListAdConfigurationsCommandOutput} for command's `response` shape.
69
+ * @see {@link IvsClientResolvedConfig | config} for IvsClient's `config` shape.
70
+ *
71
+ * @throws {@link AccessDeniedException} (client fault)
72
+ * <p/>
73
+ *
74
+ * @throws {@link InternalServerException} (server fault)
75
+ * <p/>
76
+ *
77
+ * @throws {@link ValidationException} (client fault)
78
+ * <p/>
79
+ *
80
+ * @throws {@link IvsServiceException}
81
+ * <p>Base exception class for all service exceptions from Ivs service.</p>
82
+ *
83
+ *
84
+ * @public
85
+ */
86
+ export declare class ListAdConfigurationsCommand extends ListAdConfigurationsCommand_base {
87
+ /** @internal type navigation helper, not in runtime. */
88
+ protected static __types: {
89
+ api: {
90
+ input: ListAdConfigurationsRequest;
91
+ output: ListAdConfigurationsResponse;
92
+ };
93
+ sdk: {
94
+ input: ListAdConfigurationsCommandInput;
95
+ output: ListAdConfigurationsCommandOutput;
96
+ };
97
+ };
98
+ }