@aws-sdk/client-mediatailor 3.33.0 → 3.34.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.
- package/CHANGELOG.md +12 -0
- package/MediaTailor.ts +39 -0
- package/MediaTailorClient.ts +6 -0
- package/README.md +7 -7
- package/commands/ConfigureLogsForPlaybackConfigurationCommand.ts +106 -0
- package/dist/cjs/MediaTailor.js +15 -0
- package/dist/cjs/MediaTailor.js.map +1 -1
- package/dist/cjs/MediaTailorClient.js.map +1 -1
- package/dist/cjs/commands/ConfigureLogsForPlaybackConfigurationCommand.js +61 -0
- package/dist/cjs/commands/ConfigureLogsForPlaybackConfigurationCommand.js.map +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/models_0.js +30 -3
- package/dist/cjs/models/models_0.js.map +1 -1
- package/dist/cjs/package.json +38 -38
- package/dist/cjs/protocols/Aws_restJson1.js +86 -2
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/MediaTailor.js +16 -4
- package/dist/es/MediaTailor.js.map +1 -1
- package/dist/es/MediaTailorClient.js +1 -9
- package/dist/es/MediaTailorClient.js.map +1 -1
- package/dist/es/commands/ConfigureLogsForPlaybackConfigurationCommand.js +40 -0
- package/dist/es/commands/ConfigureLogsForPlaybackConfigurationCommand.js.map +1 -0
- package/dist/es/commands/CreateChannelCommand.js +2 -27
- package/dist/es/commands/CreateChannelCommand.js.map +1 -1
- package/dist/es/commands/CreateProgramCommand.js +2 -27
- package/dist/es/commands/CreateProgramCommand.js.map +1 -1
- package/dist/es/commands/CreateSourceLocationCommand.js +2 -27
- package/dist/es/commands/CreateSourceLocationCommand.js.map +1 -1
- package/dist/es/commands/CreateVodSourceCommand.js +2 -27
- package/dist/es/commands/CreateVodSourceCommand.js.map +1 -1
- package/dist/es/commands/DeleteChannelCommand.js +2 -27
- package/dist/es/commands/DeleteChannelCommand.js.map +1 -1
- package/dist/es/commands/DeleteChannelPolicyCommand.js +2 -27
- package/dist/es/commands/DeleteChannelPolicyCommand.js.map +1 -1
- package/dist/es/commands/DeletePlaybackConfigurationCommand.js +2 -27
- package/dist/es/commands/DeletePlaybackConfigurationCommand.js.map +1 -1
- package/dist/es/commands/DeleteProgramCommand.js +2 -27
- package/dist/es/commands/DeleteProgramCommand.js.map +1 -1
- package/dist/es/commands/DeleteSourceLocationCommand.js +2 -27
- package/dist/es/commands/DeleteSourceLocationCommand.js.map +1 -1
- package/dist/es/commands/DeleteVodSourceCommand.js +2 -27
- package/dist/es/commands/DeleteVodSourceCommand.js.map +1 -1
- package/dist/es/commands/DescribeChannelCommand.js +2 -27
- package/dist/es/commands/DescribeChannelCommand.js.map +1 -1
- package/dist/es/commands/DescribeProgramCommand.js +2 -27
- package/dist/es/commands/DescribeProgramCommand.js.map +1 -1
- package/dist/es/commands/DescribeSourceLocationCommand.js +2 -27
- package/dist/es/commands/DescribeSourceLocationCommand.js.map +1 -1
- package/dist/es/commands/DescribeVodSourceCommand.js +2 -27
- package/dist/es/commands/DescribeVodSourceCommand.js.map +1 -1
- package/dist/es/commands/GetChannelPolicyCommand.js +2 -27
- package/dist/es/commands/GetChannelPolicyCommand.js.map +1 -1
- package/dist/es/commands/GetChannelScheduleCommand.js +2 -27
- package/dist/es/commands/GetChannelScheduleCommand.js.map +1 -1
- package/dist/es/commands/GetPlaybackConfigurationCommand.js +2 -27
- package/dist/es/commands/GetPlaybackConfigurationCommand.js.map +1 -1
- package/dist/es/commands/ListAlertsCommand.js +2 -27
- package/dist/es/commands/ListAlertsCommand.js.map +1 -1
- package/dist/es/commands/ListChannelsCommand.js +2 -27
- package/dist/es/commands/ListChannelsCommand.js.map +1 -1
- package/dist/es/commands/ListPlaybackConfigurationsCommand.js +2 -27
- package/dist/es/commands/ListPlaybackConfigurationsCommand.js.map +1 -1
- package/dist/es/commands/ListSourceLocationsCommand.js +2 -27
- package/dist/es/commands/ListSourceLocationsCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -27
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/ListVodSourcesCommand.js +2 -27
- package/dist/es/commands/ListVodSourcesCommand.js.map +1 -1
- package/dist/es/commands/PutChannelPolicyCommand.js +2 -27
- package/dist/es/commands/PutChannelPolicyCommand.js.map +1 -1
- package/dist/es/commands/PutPlaybackConfigurationCommand.js +2 -27
- package/dist/es/commands/PutPlaybackConfigurationCommand.js.map +1 -1
- package/dist/es/commands/StartChannelCommand.js +2 -27
- package/dist/es/commands/StartChannelCommand.js.map +1 -1
- package/dist/es/commands/StopChannelCommand.js +2 -27
- package/dist/es/commands/StopChannelCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -27
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -27
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/commands/UpdateChannelCommand.js +2 -27
- package/dist/es/commands/UpdateChannelCommand.js.map +1 -1
- package/dist/es/commands/UpdateSourceLocationCommand.js +2 -27
- package/dist/es/commands/UpdateSourceLocationCommand.js.map +1 -1
- package/dist/es/commands/UpdateVodSourceCommand.js +2 -27
- package/dist/es/commands/UpdateVodSourceCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/index.js +1 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/models_0.js +12 -279
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +38 -38
- package/dist/es/pagination/GetChannelSchedulePaginator.js +16 -28
- package/dist/es/pagination/GetChannelSchedulePaginator.js.map +1 -1
- package/dist/es/pagination/ListAlertsPaginator.js +16 -28
- package/dist/es/pagination/ListAlertsPaginator.js.map +1 -1
- package/dist/es/pagination/ListChannelsPaginator.js +16 -28
- package/dist/es/pagination/ListChannelsPaginator.js.map +1 -1
- package/dist/es/pagination/ListPlaybackConfigurationsPaginator.js +16 -28
- package/dist/es/pagination/ListPlaybackConfigurationsPaginator.js.map +1 -1
- package/dist/es/pagination/ListSourceLocationsPaginator.js +16 -28
- package/dist/es/pagination/ListSourceLocationsPaginator.js.map +1 -1
- package/dist/es/pagination/ListVodSourcesPaginator.js +16 -28
- package/dist/es/pagination/ListVodSourcesPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_restJson1.js +336 -245
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/MediaTailor.d.ts +7 -0
- package/dist/types/MediaTailorClient.d.ts +3 -2
- package/dist/types/commands/ConfigureLogsForPlaybackConfigurationCommand.d.ts +35 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/models_0.d.ts +63 -1
- package/dist/types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist/types/ts3.4/MediaTailor.d.ts +7 -0
- package/dist/types/ts3.4/MediaTailorClient.d.ts +3 -2
- package/dist/types/ts3.4/commands/ConfigureLogsForPlaybackConfigurationCommand.d.ts +35 -0
- package/dist/types/ts3.4/index.d.ts +1 -0
- package/dist/types/ts3.4/models/models_0.d.ts +63 -1
- package/dist/types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/index.ts +1 -0
- package/models/models_0.ts +80 -1
- package/package.json +38 -38
- package/protocols/Aws_restJson1.ts +102 -0
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +4 -5
- package/tsconfig.types.json +8 -0
package/models/models_0.ts
CHANGED
|
@@ -440,6 +440,25 @@ export namespace LivePreRollConfiguration {
|
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
+
/**
|
|
444
|
+
* <p>Returns Amazon CloudWatch log settings for a playback configuration.</p>
|
|
445
|
+
*/
|
|
446
|
+
export interface LogConfiguration {
|
|
447
|
+
/**
|
|
448
|
+
* <p>The percentage of session logs that MediaTailor sends to your Cloudwatch Logs account. For example, if your playback configuration has 1000 sessions and percentEnabled is set to 60, MediaTailor sends logs for 600 of the sessions to CloudWatch Logs. MediaTailor decides at random which of the playback configuration sessions to send logs for. If you want to view logs for a specific session, you can use the <a href="https://docs.aws.amazon.com/mediatailor/latest/ug/debug-log-mode.html">debug log mode</a>.</p> <p>Valid values: 0 - 100</p>
|
|
449
|
+
*/
|
|
450
|
+
PercentEnabled: number | undefined;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export namespace LogConfiguration {
|
|
454
|
+
/**
|
|
455
|
+
* @internal
|
|
456
|
+
*/
|
|
457
|
+
export const filterSensitiveLog = (obj: LogConfiguration): any => ({
|
|
458
|
+
...obj,
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
|
|
443
462
|
/**
|
|
444
463
|
* <p>For HLS, when set to true, MediaTailor passes through EXT-X-CUE-IN, EXT-X-CUE-OUT, and EXT-X-SPLICEPOINT-SCTE35 ad markers from the origin manifest to the MediaTailor personalized manifest.</p> <p>No logic is applied to these ad markers. For example, if EXT-X-CUE-OUT has a value of 60, but no ads are filled for that ad break, MediaTailor will not set the value to 0.</p>
|
|
445
464
|
*/
|
|
@@ -522,6 +541,11 @@ export interface PlaybackConfiguration {
|
|
|
522
541
|
*/
|
|
523
542
|
LivePreRollConfiguration?: LivePreRollConfiguration;
|
|
524
543
|
|
|
544
|
+
/**
|
|
545
|
+
* <p>The Amazon CloudWatch log settings for a playback configuration.</p>
|
|
546
|
+
*/
|
|
547
|
+
LogConfiguration?: LogConfiguration;
|
|
548
|
+
|
|
525
549
|
/**
|
|
526
550
|
* <p>The configuration for manifest processing rules. Manifest processing rules enable customization of the personalized manifests created by MediaTailor.</p>
|
|
527
551
|
*/
|
|
@@ -936,6 +960,51 @@ export enum ChannelState {
|
|
|
936
960
|
STOPPED = "STOPPED",
|
|
937
961
|
}
|
|
938
962
|
|
|
963
|
+
/**
|
|
964
|
+
* <p>Configures Amazon CloudWatch log settings for a playback configuration.</p>
|
|
965
|
+
*/
|
|
966
|
+
export interface ConfigureLogsForPlaybackConfigurationRequest {
|
|
967
|
+
/**
|
|
968
|
+
* <p>The percentage of session logs that MediaTailor sends to your Cloudwatch Logs account. For example, if your playback configuration has 1000 sessions and percentEnabled is set to 60, MediaTailor sends logs for 600 of the sessions to CloudWatch Logs. MediaTailor decides at random which of the playback configuration sessions to send logs for. If you want to view logs for a specific session, you can use the <a href="https://docs.aws.amazon.com/mediatailor/latest/ug/debug-log-mode.html">debug log mode</a>.</p> <p>Valid values: 0 - 100</p>
|
|
969
|
+
*/
|
|
970
|
+
PercentEnabled: number | undefined;
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* <p>The name of the playback configuration.</p>
|
|
974
|
+
*/
|
|
975
|
+
PlaybackConfigurationName: string | undefined;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
export namespace ConfigureLogsForPlaybackConfigurationRequest {
|
|
979
|
+
/**
|
|
980
|
+
* @internal
|
|
981
|
+
*/
|
|
982
|
+
export const filterSensitiveLog = (obj: ConfigureLogsForPlaybackConfigurationRequest): any => ({
|
|
983
|
+
...obj,
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
export interface ConfigureLogsForPlaybackConfigurationResponse {
|
|
988
|
+
/**
|
|
989
|
+
* <p>The percentage of session logs that MediaTailor sends to your Cloudwatch Logs account.</p>
|
|
990
|
+
*/
|
|
991
|
+
PercentEnabled?: number;
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* <p>The name of the playback configuration.</p>
|
|
995
|
+
*/
|
|
996
|
+
PlaybackConfigurationName?: string;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
export namespace ConfigureLogsForPlaybackConfigurationResponse {
|
|
1000
|
+
/**
|
|
1001
|
+
* @internal
|
|
1002
|
+
*/
|
|
1003
|
+
export const filterSensitiveLog = (obj: ConfigureLogsForPlaybackConfigurationResponse): any => ({
|
|
1004
|
+
...obj,
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
|
|
939
1008
|
/**
|
|
940
1009
|
* <p>The output configuration for this channel.</p>
|
|
941
1010
|
*/
|
|
@@ -982,7 +1051,7 @@ export interface CreateChannelRequest {
|
|
|
982
1051
|
ChannelName: string | undefined;
|
|
983
1052
|
|
|
984
1053
|
/**
|
|
985
|
-
* <p>The slate used to fill gaps between programs in the schedule. You must configure filler slate if your channel uses
|
|
1054
|
+
* <p>The slate used to fill gaps between programs in the schedule. You must configure filler slate if your channel uses a LINEAR PlaybackMode.</p>
|
|
986
1055
|
*/
|
|
987
1056
|
FillerSlate?: SlateSource;
|
|
988
1057
|
|
|
@@ -1996,6 +2065,11 @@ export interface GetPlaybackConfigurationResponse {
|
|
|
1996
2065
|
*/
|
|
1997
2066
|
LivePreRollConfiguration?: LivePreRollConfiguration;
|
|
1998
2067
|
|
|
2068
|
+
/**
|
|
2069
|
+
* <p>The Amazon CloudWatch log settings for a playback configuration.</p>
|
|
2070
|
+
*/
|
|
2071
|
+
LogConfiguration?: LogConfiguration;
|
|
2072
|
+
|
|
1999
2073
|
/**
|
|
2000
2074
|
* <p>The configuration for manifest processing rules. Manifest processing rules enable customization of the personalized manifests created by MediaTailor.</p>
|
|
2001
2075
|
*/
|
|
@@ -2462,6 +2536,11 @@ export interface PutPlaybackConfigurationResponse {
|
|
|
2462
2536
|
*/
|
|
2463
2537
|
LivePreRollConfiguration?: LivePreRollConfiguration;
|
|
2464
2538
|
|
|
2539
|
+
/**
|
|
2540
|
+
* <p>The Amazon CloudWatch log settings for a playback configuration.</p>
|
|
2541
|
+
*/
|
|
2542
|
+
LogConfiguration?: LogConfiguration;
|
|
2543
|
+
|
|
2465
2544
|
/**
|
|
2466
2545
|
* <p>The configuration for manifest processing rules. Manifest processing rules enable customization of the personalized manifests created by MediaTailor.</p>
|
|
2467
2546
|
*/
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mediatailor",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mediatailor Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.34.0",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"
|
|
7
|
-
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
8
|
-
"remove-definitions": "rimraf ./types",
|
|
9
|
-
"remove-dist": "rimraf ./dist",
|
|
10
|
-
"remove-documentation": "rimraf ./docs",
|
|
11
|
-
"test": "exit 0",
|
|
6
|
+
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
12
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
8
|
+
"build:docs": "yarn clean:docs && typedoc ./",
|
|
13
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
14
|
-
"build": "
|
|
15
|
-
"
|
|
10
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
+
"clean": "yarn clean:dist && yarn clean:docs",
|
|
12
|
+
"clean:dist": "rimraf ./dist",
|
|
13
|
+
"clean:docs": "rimraf ./docs",
|
|
14
|
+
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
|
|
15
|
+
"test": "exit 0"
|
|
16
16
|
},
|
|
17
17
|
"main": "./dist/cjs/index.js",
|
|
18
18
|
"types": "./dist/types/index.d.ts",
|
|
@@ -27,38 +27,38 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
30
|
+
"@aws-sdk/client-sts": "3.34.0",
|
|
31
|
+
"@aws-sdk/config-resolver": "3.34.0",
|
|
32
|
+
"@aws-sdk/credential-provider-node": "3.34.0",
|
|
33
|
+
"@aws-sdk/fetch-http-handler": "3.34.0",
|
|
34
|
+
"@aws-sdk/hash-node": "3.34.0",
|
|
35
|
+
"@aws-sdk/invalid-dependency": "3.34.0",
|
|
36
|
+
"@aws-sdk/middleware-content-length": "3.34.0",
|
|
37
|
+
"@aws-sdk/middleware-host-header": "3.34.0",
|
|
38
|
+
"@aws-sdk/middleware-logger": "3.34.0",
|
|
39
|
+
"@aws-sdk/middleware-retry": "3.34.0",
|
|
40
|
+
"@aws-sdk/middleware-serde": "3.34.0",
|
|
41
|
+
"@aws-sdk/middleware-signing": "3.34.0",
|
|
42
|
+
"@aws-sdk/middleware-stack": "3.34.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.34.0",
|
|
44
|
+
"@aws-sdk/node-config-provider": "3.34.0",
|
|
45
|
+
"@aws-sdk/node-http-handler": "3.34.0",
|
|
46
|
+
"@aws-sdk/protocol-http": "3.34.0",
|
|
47
|
+
"@aws-sdk/smithy-client": "3.34.0",
|
|
48
|
+
"@aws-sdk/types": "3.34.0",
|
|
49
|
+
"@aws-sdk/url-parser": "3.34.0",
|
|
50
|
+
"@aws-sdk/util-base64-browser": "3.34.0",
|
|
51
|
+
"@aws-sdk/util-base64-node": "3.34.0",
|
|
52
|
+
"@aws-sdk/util-body-length-browser": "3.34.0",
|
|
53
|
+
"@aws-sdk/util-body-length-node": "3.34.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.34.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.34.0",
|
|
56
|
+
"@aws-sdk/util-utf8-browser": "3.34.0",
|
|
57
|
+
"@aws-sdk/util-utf8-node": "3.34.0",
|
|
58
58
|
"tslib": "^2.3.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
61
|
+
"@aws-sdk/client-documentation-generator": "3.34.0",
|
|
62
62
|
"@types/node": "^12.7.5",
|
|
63
63
|
"downlevel-dts": "0.7.0",
|
|
64
64
|
"jest": "^26.1.0",
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ConfigureLogsForPlaybackConfigurationCommandInput,
|
|
3
|
+
ConfigureLogsForPlaybackConfigurationCommandOutput,
|
|
4
|
+
} from "../commands/ConfigureLogsForPlaybackConfigurationCommand";
|
|
1
5
|
import { CreateChannelCommandInput, CreateChannelCommandOutput } from "../commands/CreateChannelCommand";
|
|
2
6
|
import { CreateProgramCommandInput, CreateProgramCommandOutput } from "../commands/CreateProgramCommand";
|
|
3
7
|
import {
|
|
@@ -82,6 +86,7 @@ import {
|
|
|
82
86
|
HttpConfiguration,
|
|
83
87
|
HttpPackageConfiguration,
|
|
84
88
|
LivePreRollConfiguration,
|
|
89
|
+
LogConfiguration,
|
|
85
90
|
ManifestProcessingRules,
|
|
86
91
|
PlaybackConfiguration,
|
|
87
92
|
RequestOutputItem,
|
|
@@ -116,6 +121,34 @@ import {
|
|
|
116
121
|
SmithyException as __SmithyException,
|
|
117
122
|
} from "@aws-sdk/types";
|
|
118
123
|
|
|
124
|
+
export const serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = async (
|
|
125
|
+
input: ConfigureLogsForPlaybackConfigurationCommandInput,
|
|
126
|
+
context: __SerdeContext
|
|
127
|
+
): Promise<__HttpRequest> => {
|
|
128
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
129
|
+
const headers: any = {
|
|
130
|
+
"content-type": "application/json",
|
|
131
|
+
};
|
|
132
|
+
let resolvedPath =
|
|
133
|
+
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configureLogs/playbackConfiguration";
|
|
134
|
+
let body: any;
|
|
135
|
+
body = JSON.stringify({
|
|
136
|
+
...(input.PercentEnabled !== undefined &&
|
|
137
|
+
input.PercentEnabled !== null && { PercentEnabled: input.PercentEnabled }),
|
|
138
|
+
...(input.PlaybackConfigurationName !== undefined &&
|
|
139
|
+
input.PlaybackConfigurationName !== null && { PlaybackConfigurationName: input.PlaybackConfigurationName }),
|
|
140
|
+
});
|
|
141
|
+
return new __HttpRequest({
|
|
142
|
+
protocol,
|
|
143
|
+
hostname,
|
|
144
|
+
port,
|
|
145
|
+
method: "PUT",
|
|
146
|
+
headers,
|
|
147
|
+
path: resolvedPath,
|
|
148
|
+
body,
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
|
|
119
152
|
export const serializeAws_restJson1CreateChannelCommand = async (
|
|
120
153
|
input: CreateChannelCommandInput,
|
|
121
154
|
context: __SerdeContext
|
|
@@ -1246,6 +1279,57 @@ export const serializeAws_restJson1UpdateVodSourceCommand = async (
|
|
|
1246
1279
|
});
|
|
1247
1280
|
};
|
|
1248
1281
|
|
|
1282
|
+
export const deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = async (
|
|
1283
|
+
output: __HttpResponse,
|
|
1284
|
+
context: __SerdeContext
|
|
1285
|
+
): Promise<ConfigureLogsForPlaybackConfigurationCommandOutput> => {
|
|
1286
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1287
|
+
return deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommandError(output, context);
|
|
1288
|
+
}
|
|
1289
|
+
const contents: ConfigureLogsForPlaybackConfigurationCommandOutput = {
|
|
1290
|
+
$metadata: deserializeMetadata(output),
|
|
1291
|
+
PercentEnabled: undefined,
|
|
1292
|
+
PlaybackConfigurationName: undefined,
|
|
1293
|
+
};
|
|
1294
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1295
|
+
if (data.PercentEnabled !== undefined && data.PercentEnabled !== null) {
|
|
1296
|
+
contents.PercentEnabled = __expectInt32(data.PercentEnabled);
|
|
1297
|
+
}
|
|
1298
|
+
if (data.PlaybackConfigurationName !== undefined && data.PlaybackConfigurationName !== null) {
|
|
1299
|
+
contents.PlaybackConfigurationName = __expectString(data.PlaybackConfigurationName);
|
|
1300
|
+
}
|
|
1301
|
+
return Promise.resolve(contents);
|
|
1302
|
+
};
|
|
1303
|
+
|
|
1304
|
+
const deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommandError = async (
|
|
1305
|
+
output: __HttpResponse,
|
|
1306
|
+
context: __SerdeContext
|
|
1307
|
+
): Promise<ConfigureLogsForPlaybackConfigurationCommandOutput> => {
|
|
1308
|
+
const parsedOutput: any = {
|
|
1309
|
+
...output,
|
|
1310
|
+
body: await parseBody(output.body, context),
|
|
1311
|
+
};
|
|
1312
|
+
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1313
|
+
let errorCode: string = "UnknownError";
|
|
1314
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1315
|
+
switch (errorCode) {
|
|
1316
|
+
default:
|
|
1317
|
+
const parsedBody = parsedOutput.body;
|
|
1318
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1319
|
+
response = {
|
|
1320
|
+
...parsedBody,
|
|
1321
|
+
name: `${errorCode}`,
|
|
1322
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1323
|
+
$fault: "client",
|
|
1324
|
+
$metadata: deserializeMetadata(output),
|
|
1325
|
+
} as any;
|
|
1326
|
+
}
|
|
1327
|
+
const message = response.message || response.Message || errorCode;
|
|
1328
|
+
response.message = message;
|
|
1329
|
+
delete response.Message;
|
|
1330
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1331
|
+
};
|
|
1332
|
+
|
|
1249
1333
|
export const deserializeAws_restJson1CreateChannelCommand = async (
|
|
1250
1334
|
output: __HttpResponse,
|
|
1251
1335
|
context: __SerdeContext
|
|
@@ -2231,6 +2315,7 @@ export const deserializeAws_restJson1GetPlaybackConfigurationCommand = async (
|
|
|
2231
2315
|
DashConfiguration: undefined,
|
|
2232
2316
|
HlsConfiguration: undefined,
|
|
2233
2317
|
LivePreRollConfiguration: undefined,
|
|
2318
|
+
LogConfiguration: undefined,
|
|
2234
2319
|
ManifestProcessingRules: undefined,
|
|
2235
2320
|
Name: undefined,
|
|
2236
2321
|
PersonalizationThresholdSeconds: undefined,
|
|
@@ -2273,6 +2358,9 @@ export const deserializeAws_restJson1GetPlaybackConfigurationCommand = async (
|
|
|
2273
2358
|
context
|
|
2274
2359
|
);
|
|
2275
2360
|
}
|
|
2361
|
+
if (data.LogConfiguration !== undefined && data.LogConfiguration !== null) {
|
|
2362
|
+
contents.LogConfiguration = deserializeAws_restJson1LogConfiguration(data.LogConfiguration, context);
|
|
2363
|
+
}
|
|
2276
2364
|
if (data.ManifestProcessingRules !== undefined && data.ManifestProcessingRules !== null) {
|
|
2277
2365
|
contents.ManifestProcessingRules = deserializeAws_restJson1ManifestProcessingRules(
|
|
2278
2366
|
data.ManifestProcessingRules,
|
|
@@ -2708,6 +2796,7 @@ export const deserializeAws_restJson1PutPlaybackConfigurationCommand = async (
|
|
|
2708
2796
|
DashConfiguration: undefined,
|
|
2709
2797
|
HlsConfiguration: undefined,
|
|
2710
2798
|
LivePreRollConfiguration: undefined,
|
|
2799
|
+
LogConfiguration: undefined,
|
|
2711
2800
|
ManifestProcessingRules: undefined,
|
|
2712
2801
|
Name: undefined,
|
|
2713
2802
|
PersonalizationThresholdSeconds: undefined,
|
|
@@ -2750,6 +2839,9 @@ export const deserializeAws_restJson1PutPlaybackConfigurationCommand = async (
|
|
|
2750
2839
|
context
|
|
2751
2840
|
);
|
|
2752
2841
|
}
|
|
2842
|
+
if (data.LogConfiguration !== undefined && data.LogConfiguration !== null) {
|
|
2843
|
+
contents.LogConfiguration = deserializeAws_restJson1LogConfiguration(data.LogConfiguration, context);
|
|
2844
|
+
}
|
|
2753
2845
|
if (data.ManifestProcessingRules !== undefined && data.ManifestProcessingRules !== null) {
|
|
2754
2846
|
contents.ManifestProcessingRules = deserializeAws_restJson1ManifestProcessingRules(
|
|
2755
2847
|
data.ManifestProcessingRules,
|
|
@@ -3829,6 +3921,12 @@ const deserializeAws_restJson1LivePreRollConfiguration = (
|
|
|
3829
3921
|
} as any;
|
|
3830
3922
|
};
|
|
3831
3923
|
|
|
3924
|
+
const deserializeAws_restJson1LogConfiguration = (output: any, context: __SerdeContext): LogConfiguration => {
|
|
3925
|
+
return {
|
|
3926
|
+
PercentEnabled: __expectInt32(output.PercentEnabled),
|
|
3927
|
+
} as any;
|
|
3928
|
+
};
|
|
3929
|
+
|
|
3832
3930
|
const deserializeAws_restJson1ManifestProcessingRules = (
|
|
3833
3931
|
output: any,
|
|
3834
3932
|
context: __SerdeContext
|
|
@@ -3872,6 +3970,10 @@ const deserializeAws_restJson1PlaybackConfiguration = (output: any, context: __S
|
|
|
3872
3970
|
output.LivePreRollConfiguration !== undefined && output.LivePreRollConfiguration !== null
|
|
3873
3971
|
? deserializeAws_restJson1LivePreRollConfiguration(output.LivePreRollConfiguration, context)
|
|
3874
3972
|
: undefined,
|
|
3973
|
+
LogConfiguration:
|
|
3974
|
+
output.LogConfiguration !== undefined && output.LogConfiguration !== null
|
|
3975
|
+
? deserializeAws_restJson1LogConfiguration(output.LogConfiguration, context)
|
|
3976
|
+
: undefined,
|
|
3875
3977
|
ManifestProcessingRules:
|
|
3876
3978
|
output.ManifestProcessingRules !== undefined && output.ManifestProcessingRules !== null
|
|
3877
3979
|
? deserializeAws_restJson1ManifestProcessingRules(output.ManifestProcessingRules, context)
|
package/tsconfig.es.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
"alwaysStrict": true,
|
|
4
4
|
"target": "ES2018",
|
|
5
5
|
"module": "commonjs",
|
|
6
|
-
"declaration": true,
|
|
7
6
|
"strict": true,
|
|
8
7
|
"sourceMap": true,
|
|
9
8
|
"downlevelIteration": true,
|
|
@@ -12,8 +11,8 @@
|
|
|
12
11
|
"incremental": true,
|
|
13
12
|
"resolveJsonModule": true,
|
|
14
13
|
"esModuleInterop": true,
|
|
15
|
-
"
|
|
16
|
-
"
|
|
14
|
+
"outDir": "dist/cjs",
|
|
15
|
+
"removeComments": true
|
|
17
16
|
},
|
|
18
17
|
"typedocOptions": {
|
|
19
18
|
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
|
|
@@ -23,9 +22,9 @@
|
|
|
23
22
|
"ignoreCompilerErrors": true,
|
|
24
23
|
"includeDeclarations": true,
|
|
25
24
|
"stripInternal": true,
|
|
26
|
-
"readme": "
|
|
25
|
+
"readme": "README.md",
|
|
27
26
|
"mode": "file",
|
|
28
|
-
"out": "
|
|
27
|
+
"out": "docs",
|
|
29
28
|
"theme": "minimal",
|
|
30
29
|
"plugin": ["@aws-sdk/client-documentation-generator"]
|
|
31
30
|
}
|