@aws-sdk/client-mediatailor 3.46.0 → 3.48.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 CHANGED
@@ -3,6 +3,44 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients as of 2022/01/21 ([#3228](https://github.com/aws/aws-sdk-js-v3/issues/3228)) ([fa713ef](https://github.com/aws/aws-sdk-js-v3/commit/fa713efca6b2f424c27535d000359f08830960b1))
12
+
13
+
14
+
15
+
16
+
17
+ ## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-mediatailor
20
+
21
+
22
+
23
+
24
+
25
+ ## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-mediatailor
28
+
29
+
30
+
31
+
32
+
33
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
34
+
35
+
36
+ ### Features
37
+
38
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
39
+
40
+
41
+
42
+
43
+
6
44
  # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
45
 
8
46
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Transition = exports.RelativePosition = exports.CreatePrefetchScheduleResponse = exports.CreatePrefetchScheduleRequest = exports.CreateChannelResponse = exports.CreateChannelRequest = exports.PlaybackMode = exports.RequestOutputItem = exports.ConfigureLogsForPlaybackConfigurationResponse = exports.ConfigureLogsForPlaybackConfigurationRequest = exports.ChannelState = exports.BadRequestException = exports.VodSource = exports.HttpPackageConfiguration = exports.Type = exports.SourceLocation = exports.HttpConfiguration = exports.DefaultSegmentDeliveryConfiguration = exports.AccessConfiguration = exports.SecretsManagerAccessTokenConfiguration = exports.AccessType = exports.ScheduleEntry = exports.ScheduleEntryType = exports.ScheduleAdBreak = exports.PrefetchSchedule = exports.PrefetchRetrieval = exports.PrefetchConsumption = exports.PlaybackConfiguration = exports.ManifestProcessingRules = exports.AdMarkerPassthrough = exports.LogConfiguration = exports.LivePreRollConfiguration = exports.HlsConfiguration = exports.DashConfiguration = exports.OriginManifestType = exports.CdnConfiguration = exports.Bumper = exports.AvailSuppression = exports.Mode = exports.Channel = exports.ResponseOutputItem = exports.HlsPlaylistSettings = exports.DashPlaylistSettings = exports.AvailMatchingCriteria = exports.Operator = exports.Alert = exports.AdBreak = exports.SpliceInsertMessage = exports.SlateSource = exports.MessageType = void 0;
3
+ exports.Transition = exports.RelativePosition = exports.CreatePrefetchScheduleResponse = exports.CreatePrefetchScheduleRequest = exports.CreateChannelResponse = exports.CreateChannelRequest = exports.PlaybackMode = exports.RequestOutputItem = exports.ConfigureLogsForPlaybackConfigurationResponse = exports.ConfigureLogsForPlaybackConfigurationRequest = exports.ChannelState = exports.VodSource = exports.HttpPackageConfiguration = exports.Type = exports.SourceLocation = exports.HttpConfiguration = exports.DefaultSegmentDeliveryConfiguration = exports.AccessConfiguration = exports.SecretsManagerAccessTokenConfiguration = exports.AccessType = exports.SegmentDeliveryConfiguration = exports.ScheduleEntry = exports.ScheduleEntryType = exports.ScheduleAdBreak = exports.PrefetchSchedule = exports.PrefetchRetrieval = exports.PrefetchConsumption = exports.PlaybackConfiguration = exports.ManifestProcessingRules = exports.AdMarkerPassthrough = exports.LogConfiguration = exports.LivePreRollConfiguration = exports.HlsConfiguration = exports.DashConfiguration = exports.OriginManifestType = exports.CdnConfiguration = exports.Bumper = exports.AvailSuppression = exports.Mode = exports.Channel = exports.ResponseOutputItem = exports.HlsPlaylistSettings = exports.DashPlaylistSettings = exports.AvailMatchingCriteria = exports.Operator = exports.Alert = exports.AdBreak = exports.SpliceInsertMessage = exports.SlateSource = exports.MessageType = void 0;
4
4
  exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSourceLocationsResponse = exports.ListSourceLocationsRequest = exports.ListPrefetchSchedulesResponse = exports.ListPrefetchSchedulesRequest = exports.ListPlaybackConfigurationsResponse = exports.ListPlaybackConfigurationsRequest = exports.ListChannelsResponse = exports.ListChannelsRequest = exports.ListAlertsResponse = exports.ListAlertsRequest = exports.GetPrefetchScheduleResponse = exports.GetPrefetchScheduleRequest = exports.GetPlaybackConfigurationResponse = exports.GetPlaybackConfigurationRequest = exports.GetChannelScheduleResponse = exports.GetChannelScheduleRequest = exports.GetChannelPolicyResponse = exports.GetChannelPolicyRequest = exports.DescribeVodSourceResponse = exports.DescribeVodSourceRequest = exports.DescribeSourceLocationResponse = exports.DescribeSourceLocationRequest = exports.DescribeProgramResponse = exports.DescribeProgramRequest = exports.DescribeChannelResponse = exports.DescribeChannelRequest = exports.DeleteVodSourceResponse = exports.DeleteVodSourceRequest = exports.DeleteSourceLocationResponse = exports.DeleteSourceLocationRequest = exports.DeleteProgramResponse = exports.DeleteProgramRequest = exports.DeletePrefetchScheduleResponse = exports.DeletePrefetchScheduleRequest = exports.DeletePlaybackConfigurationResponse = exports.DeletePlaybackConfigurationRequest = exports.DeleteChannelPolicyResponse = exports.DeleteChannelPolicyRequest = exports.DeleteChannelResponse = exports.DeleteChannelRequest = exports.DashConfigurationForPut = exports.CreateVodSourceResponse = exports.CreateVodSourceRequest = exports.CreateSourceLocationResponse = exports.CreateSourceLocationRequest = exports.CreateProgramResponse = exports.CreateProgramRequest = exports.ScheduleConfiguration = void 0;
5
5
  exports.UpdateVodSourceResponse = exports.UpdateVodSourceRequest = exports.UpdateSourceLocationResponse = exports.UpdateSourceLocationRequest = exports.UpdateChannelResponse = exports.UpdateChannelRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.StopChannelResponse = exports.StopChannelRequest = exports.StartChannelResponse = exports.StartChannelRequest = exports.PutPlaybackConfigurationResponse = exports.PutPlaybackConfigurationRequest = exports.PutChannelPolicyResponse = exports.PutChannelPolicyRequest = exports.ListVodSourcesResponse = exports.ListVodSourcesRequest = void 0;
6
6
  var MessageType;
@@ -170,6 +170,12 @@ var ScheduleEntry;
170
170
  ...obj,
171
171
  });
172
172
  })(ScheduleEntry = exports.ScheduleEntry || (exports.ScheduleEntry = {}));
173
+ var SegmentDeliveryConfiguration;
174
+ (function (SegmentDeliveryConfiguration) {
175
+ SegmentDeliveryConfiguration.filterSensitiveLog = (obj) => ({
176
+ ...obj,
177
+ });
178
+ })(SegmentDeliveryConfiguration = exports.SegmentDeliveryConfiguration || (exports.SegmentDeliveryConfiguration = {}));
173
179
  var AccessType;
174
180
  (function (AccessType) {
175
181
  AccessType["S3_SIGV4"] = "S3_SIGV4";
@@ -222,12 +228,6 @@ var VodSource;
222
228
  ...obj,
223
229
  });
224
230
  })(VodSource = exports.VodSource || (exports.VodSource = {}));
225
- var BadRequestException;
226
- (function (BadRequestException) {
227
- BadRequestException.filterSensitiveLog = (obj) => ({
228
- ...obj,
229
- });
230
- })(BadRequestException = exports.BadRequestException || (exports.BadRequestException = {}));
231
231
  var ChannelState;
232
232
  (function (ChannelState) {
233
233
  ChannelState["RUNNING"] = "RUNNING";
@@ -193,6 +193,10 @@ const serializeAws_restJson1CreateSourceLocationCommand = async (input, context)
193
193
  input.HttpConfiguration !== null && {
194
194
  HttpConfiguration: serializeAws_restJson1HttpConfiguration(input.HttpConfiguration, context),
195
195
  }),
196
+ ...(input.SegmentDeliveryConfigurations !== undefined &&
197
+ input.SegmentDeliveryConfigurations !== null && {
198
+ SegmentDeliveryConfigurations: serializeAws_restJson1__listOfSegmentDeliveryConfiguration(input.SegmentDeliveryConfigurations, context),
199
+ }),
196
200
  ...(input.Tags !== undefined &&
197
201
  input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
198
202
  });
@@ -1162,6 +1166,10 @@ const serializeAws_restJson1UpdateSourceLocationCommand = async (input, context)
1162
1166
  input.HttpConfiguration !== null && {
1163
1167
  HttpConfiguration: serializeAws_restJson1HttpConfiguration(input.HttpConfiguration, context),
1164
1168
  }),
1169
+ ...(input.SegmentDeliveryConfigurations !== undefined &&
1170
+ input.SegmentDeliveryConfigurations !== null && {
1171
+ SegmentDeliveryConfigurations: serializeAws_restJson1__listOfSegmentDeliveryConfiguration(input.SegmentDeliveryConfigurations, context),
1172
+ }),
1165
1173
  });
1166
1174
  return new protocol_http_1.HttpRequest({
1167
1175
  protocol,
@@ -1475,6 +1483,7 @@ const deserializeAws_restJson1CreateSourceLocationCommand = async (output, conte
1475
1483
  DefaultSegmentDeliveryConfiguration: undefined,
1476
1484
  HttpConfiguration: undefined,
1477
1485
  LastModifiedTime: undefined,
1486
+ SegmentDeliveryConfigurations: undefined,
1478
1487
  SourceLocationName: undefined,
1479
1488
  Tags: undefined,
1480
1489
  };
@@ -1497,6 +1506,9 @@ const deserializeAws_restJson1CreateSourceLocationCommand = async (output, conte
1497
1506
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
1498
1507
  contents.LastModifiedTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModifiedTime)));
1499
1508
  }
1509
+ if (data.SegmentDeliveryConfigurations !== undefined && data.SegmentDeliveryConfigurations !== null) {
1510
+ contents.SegmentDeliveryConfigurations = deserializeAws_restJson1__listOfSegmentDeliveryConfiguration(data.SegmentDeliveryConfigurations, context);
1511
+ }
1500
1512
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
1501
1513
  contents.SourceLocationName = smithy_client_1.expectString(data.SourceLocationName);
1502
1514
  }
@@ -1999,6 +2011,7 @@ const deserializeAws_restJson1DescribeSourceLocationCommand = async (output, con
1999
2011
  DefaultSegmentDeliveryConfiguration: undefined,
2000
2012
  HttpConfiguration: undefined,
2001
2013
  LastModifiedTime: undefined,
2014
+ SegmentDeliveryConfigurations: undefined,
2002
2015
  SourceLocationName: undefined,
2003
2016
  Tags: undefined,
2004
2017
  };
@@ -2021,6 +2034,9 @@ const deserializeAws_restJson1DescribeSourceLocationCommand = async (output, con
2021
2034
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
2022
2035
  contents.LastModifiedTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModifiedTime)));
2023
2036
  }
2037
+ if (data.SegmentDeliveryConfigurations !== undefined && data.SegmentDeliveryConfigurations !== null) {
2038
+ contents.SegmentDeliveryConfigurations = deserializeAws_restJson1__listOfSegmentDeliveryConfiguration(data.SegmentDeliveryConfigurations, context);
2039
+ }
2024
2040
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
2025
2041
  contents.SourceLocationName = smithy_client_1.expectString(data.SourceLocationName);
2026
2042
  }
@@ -3079,6 +3095,7 @@ const deserializeAws_restJson1UpdateSourceLocationCommand = async (output, conte
3079
3095
  DefaultSegmentDeliveryConfiguration: undefined,
3080
3096
  HttpConfiguration: undefined,
3081
3097
  LastModifiedTime: undefined,
3098
+ SegmentDeliveryConfigurations: undefined,
3082
3099
  SourceLocationName: undefined,
3083
3100
  Tags: undefined,
3084
3101
  };
@@ -3101,6 +3118,9 @@ const deserializeAws_restJson1UpdateSourceLocationCommand = async (output, conte
3101
3118
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
3102
3119
  contents.LastModifiedTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.LastModifiedTime)));
3103
3120
  }
3121
+ if (data.SegmentDeliveryConfigurations !== undefined && data.SegmentDeliveryConfigurations !== null) {
3122
+ contents.SegmentDeliveryConfigurations = deserializeAws_restJson1__listOfSegmentDeliveryConfiguration(data.SegmentDeliveryConfigurations, context);
3123
+ }
3104
3124
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
3105
3125
  contents.SourceLocationName = smithy_client_1.expectString(data.SourceLocationName);
3106
3126
  }
@@ -3232,6 +3252,16 @@ const serializeAws_restJson1__listOfAvailMatchingCriteria = (input, context) =>
3232
3252
  return serializeAws_restJson1AvailMatchingCriteria(entry, context);
3233
3253
  });
3234
3254
  };
3255
+ const serializeAws_restJson1__listOfSegmentDeliveryConfiguration = (input, context) => {
3256
+ return input
3257
+ .filter((e) => e != null)
3258
+ .map((entry) => {
3259
+ if (entry === null) {
3260
+ return null;
3261
+ }
3262
+ return serializeAws_restJson1SegmentDeliveryConfiguration(entry, context);
3263
+ });
3264
+ };
3235
3265
  const serializeAws_restJson1__mapOf__string = (input, context) => {
3236
3266
  return Object.entries(input).reduce((acc, [key, value]) => {
3237
3267
  if (value === null) {
@@ -3439,6 +3469,12 @@ const serializeAws_restJson1SecretsManagerAccessTokenConfiguration = (input, con
3439
3469
  input.SecretStringKey !== null && { SecretStringKey: input.SecretStringKey }),
3440
3470
  };
3441
3471
  };
3472
+ const serializeAws_restJson1SegmentDeliveryConfiguration = (input, context) => {
3473
+ return {
3474
+ ...(input.BaseUrl !== undefined && input.BaseUrl !== null && { BaseUrl: input.BaseUrl }),
3475
+ ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3476
+ };
3477
+ };
3442
3478
  const serializeAws_restJson1SlateSource = (input, context) => {
3443
3479
  return {
3444
3480
  ...(input.SourceLocationName !== undefined &&
@@ -3557,6 +3593,16 @@ const deserializeAws_restJson1__listOfScheduleEntry = (output, context) => {
3557
3593
  return deserializeAws_restJson1ScheduleEntry(entry, context);
3558
3594
  });
3559
3595
  };
3596
+ const deserializeAws_restJson1__listOfSegmentDeliveryConfiguration = (output, context) => {
3597
+ return (output || [])
3598
+ .filter((e) => e != null)
3599
+ .map((entry) => {
3600
+ if (entry === null) {
3601
+ return null;
3602
+ }
3603
+ return deserializeAws_restJson1SegmentDeliveryConfiguration(entry, context);
3604
+ });
3605
+ };
3560
3606
  const deserializeAws_restJson1__listOfSourceLocation = (output, context) => {
3561
3607
  return (output || [])
3562
3608
  .filter((e) => e != null)
@@ -3895,6 +3941,12 @@ const deserializeAws_restJson1SecretsManagerAccessTokenConfiguration = (output,
3895
3941
  SecretStringKey: smithy_client_1.expectString(output.SecretStringKey),
3896
3942
  };
3897
3943
  };
3944
+ const deserializeAws_restJson1SegmentDeliveryConfiguration = (output, context) => {
3945
+ return {
3946
+ BaseUrl: smithy_client_1.expectString(output.BaseUrl),
3947
+ Name: smithy_client_1.expectString(output.Name),
3948
+ };
3949
+ };
3898
3950
  const deserializeAws_restJson1SlateSource = (output, context) => {
3899
3951
  return {
3900
3952
  SourceLocationName: smithy_client_1.expectString(output.SourceLocationName),
@@ -3919,6 +3971,9 @@ const deserializeAws_restJson1SourceLocation = (output, context) => {
3919
3971
  LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
3920
3972
  ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedTime)))
3921
3973
  : undefined,
3974
+ SegmentDeliveryConfigurations: output.SegmentDeliveryConfigurations !== undefined && output.SegmentDeliveryConfigurations !== null
3975
+ ? deserializeAws_restJson1__listOfSegmentDeliveryConfiguration(output.SegmentDeliveryConfigurations, context)
3976
+ : undefined,
3922
3977
  SourceLocationName: smithy_client_1.expectString(output.SourceLocationName),
3923
3978
  Tags: output.tags !== undefined && output.tags !== null
3924
3979
  ? deserializeAws_restJson1__mapOf__string(output.tags, context)
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
27
32
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
34
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
31
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
35
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
32
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
38
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
39
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
15
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
18
20
  const getRuntimeConfig = (config) => {
19
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
20
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
21
25
  return {
22
26
  ...clientSharedValues,
23
27
  ...config,
24
28
  runtime: "node",
29
+ defaultsMode,
25
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
26
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
27
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
29
34
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
30
35
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
31
36
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
32
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
33
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
37
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
34
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
35
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
36
44
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
@@ -118,6 +118,10 @@ export var ScheduleEntry;
118
118
  (function (ScheduleEntry) {
119
119
  ScheduleEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
120
120
  })(ScheduleEntry || (ScheduleEntry = {}));
121
+ export var SegmentDeliveryConfiguration;
122
+ (function (SegmentDeliveryConfiguration) {
123
+ SegmentDeliveryConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
124
+ })(SegmentDeliveryConfiguration || (SegmentDeliveryConfiguration = {}));
121
125
  export var AccessType;
122
126
  (function (AccessType) {
123
127
  AccessType["S3_SIGV4"] = "S3_SIGV4";
@@ -156,10 +160,6 @@ export var VodSource;
156
160
  (function (VodSource) {
157
161
  VodSource.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
158
162
  })(VodSource || (VodSource = {}));
159
- export var BadRequestException;
160
- (function (BadRequestException) {
161
- BadRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
162
- })(BadRequestException || (BadRequestException = {}));
163
163
  export var ChannelState;
164
164
  (function (ChannelState) {
165
165
  ChannelState["RUNNING"] = "RUNNING";
@@ -184,7 +184,7 @@ export var serializeAws_restJson1CreateSourceLocationCommand = function (input,
184
184
  else {
185
185
  throw new Error("No value provided for input HTTP label: SourceLocationName.");
186
186
  }
187
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccessConfiguration !== undefined &&
187
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AccessConfiguration !== undefined &&
188
188
  input.AccessConfiguration !== null && {
189
189
  AccessConfiguration: serializeAws_restJson1AccessConfiguration(input.AccessConfiguration, context),
190
190
  })), (input.DefaultSegmentDeliveryConfiguration !== undefined &&
@@ -193,6 +193,9 @@ export var serializeAws_restJson1CreateSourceLocationCommand = function (input,
193
193
  })), (input.HttpConfiguration !== undefined &&
194
194
  input.HttpConfiguration !== null && {
195
195
  HttpConfiguration: serializeAws_restJson1HttpConfiguration(input.HttpConfiguration, context),
196
+ })), (input.SegmentDeliveryConfigurations !== undefined &&
197
+ input.SegmentDeliveryConfigurations !== null && {
198
+ SegmentDeliveryConfigurations: serializeAws_restJson1__listOfSegmentDeliveryConfiguration(input.SegmentDeliveryConfigurations, context),
196
199
  })), (input.Tags !== undefined &&
197
200
  input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
198
201
  return [2, new __HttpRequest({
@@ -1252,7 +1255,7 @@ export var serializeAws_restJson1UpdateSourceLocationCommand = function (input,
1252
1255
  else {
1253
1256
  throw new Error("No value provided for input HTTP label: SourceLocationName.");
1254
1257
  }
1255
- body = JSON.stringify(__assign(__assign(__assign({}, (input.AccessConfiguration !== undefined &&
1258
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AccessConfiguration !== undefined &&
1256
1259
  input.AccessConfiguration !== null && {
1257
1260
  AccessConfiguration: serializeAws_restJson1AccessConfiguration(input.AccessConfiguration, context),
1258
1261
  })), (input.DefaultSegmentDeliveryConfiguration !== undefined &&
@@ -1261,6 +1264,9 @@ export var serializeAws_restJson1UpdateSourceLocationCommand = function (input,
1261
1264
  })), (input.HttpConfiguration !== undefined &&
1262
1265
  input.HttpConfiguration !== null && {
1263
1266
  HttpConfiguration: serializeAws_restJson1HttpConfiguration(input.HttpConfiguration, context),
1267
+ })), (input.SegmentDeliveryConfigurations !== undefined &&
1268
+ input.SegmentDeliveryConfigurations !== null && {
1269
+ SegmentDeliveryConfigurations: serializeAws_restJson1__listOfSegmentDeliveryConfiguration(input.SegmentDeliveryConfigurations, context),
1264
1270
  })));
1265
1271
  return [2, new __HttpRequest({
1266
1272
  protocol: protocol,
@@ -1622,6 +1628,7 @@ export var deserializeAws_restJson1CreateSourceLocationCommand = function (outpu
1622
1628
  DefaultSegmentDeliveryConfiguration: undefined,
1623
1629
  HttpConfiguration: undefined,
1624
1630
  LastModifiedTime: undefined,
1631
+ SegmentDeliveryConfigurations: undefined,
1625
1632
  SourceLocationName: undefined,
1626
1633
  Tags: undefined,
1627
1634
  };
@@ -1648,6 +1655,9 @@ export var deserializeAws_restJson1CreateSourceLocationCommand = function (outpu
1648
1655
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
1649
1656
  contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
1650
1657
  }
1658
+ if (data.SegmentDeliveryConfigurations !== undefined && data.SegmentDeliveryConfigurations !== null) {
1659
+ contents.SegmentDeliveryConfigurations = deserializeAws_restJson1__listOfSegmentDeliveryConfiguration(data.SegmentDeliveryConfigurations, context);
1660
+ }
1651
1661
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
1652
1662
  contents.SourceLocationName = __expectString(data.SourceLocationName);
1653
1663
  }
@@ -2242,6 +2252,7 @@ export var deserializeAws_restJson1DescribeSourceLocationCommand = function (out
2242
2252
  DefaultSegmentDeliveryConfiguration: undefined,
2243
2253
  HttpConfiguration: undefined,
2244
2254
  LastModifiedTime: undefined,
2255
+ SegmentDeliveryConfigurations: undefined,
2245
2256
  SourceLocationName: undefined,
2246
2257
  Tags: undefined,
2247
2258
  };
@@ -2268,6 +2279,9 @@ export var deserializeAws_restJson1DescribeSourceLocationCommand = function (out
2268
2279
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
2269
2280
  contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
2270
2281
  }
2282
+ if (data.SegmentDeliveryConfigurations !== undefined && data.SegmentDeliveryConfigurations !== null) {
2283
+ contents.SegmentDeliveryConfigurations = deserializeAws_restJson1__listOfSegmentDeliveryConfiguration(data.SegmentDeliveryConfigurations, context);
2284
+ }
2271
2285
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
2272
2286
  contents.SourceLocationName = __expectString(data.SourceLocationName);
2273
2287
  }
@@ -3524,6 +3538,7 @@ export var deserializeAws_restJson1UpdateSourceLocationCommand = function (outpu
3524
3538
  DefaultSegmentDeliveryConfiguration: undefined,
3525
3539
  HttpConfiguration: undefined,
3526
3540
  LastModifiedTime: undefined,
3541
+ SegmentDeliveryConfigurations: undefined,
3527
3542
  SourceLocationName: undefined,
3528
3543
  Tags: undefined,
3529
3544
  };
@@ -3550,6 +3565,9 @@ export var deserializeAws_restJson1UpdateSourceLocationCommand = function (outpu
3550
3565
  if (data.LastModifiedTime !== undefined && data.LastModifiedTime !== null) {
3551
3566
  contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
3552
3567
  }
3568
+ if (data.SegmentDeliveryConfigurations !== undefined && data.SegmentDeliveryConfigurations !== null) {
3569
+ contents.SegmentDeliveryConfigurations = deserializeAws_restJson1__listOfSegmentDeliveryConfiguration(data.SegmentDeliveryConfigurations, context);
3570
+ }
3553
3571
  if (data.SourceLocationName !== undefined && data.SourceLocationName !== null) {
3554
3572
  contents.SourceLocationName = __expectString(data.SourceLocationName);
3555
3573
  }
@@ -3696,6 +3714,16 @@ var serializeAws_restJson1__listOfAvailMatchingCriteria = function (input, conte
3696
3714
  return serializeAws_restJson1AvailMatchingCriteria(entry, context);
3697
3715
  });
3698
3716
  };
3717
+ var serializeAws_restJson1__listOfSegmentDeliveryConfiguration = function (input, context) {
3718
+ return input
3719
+ .filter(function (e) { return e != null; })
3720
+ .map(function (entry) {
3721
+ if (entry === null) {
3722
+ return null;
3723
+ }
3724
+ return serializeAws_restJson1SegmentDeliveryConfiguration(entry, context);
3725
+ });
3726
+ };
3699
3727
  var serializeAws_restJson1__mapOf__string = function (input, context) {
3700
3728
  return Object.entries(input).reduce(function (acc, _a) {
3701
3729
  var _b;
@@ -3837,6 +3865,9 @@ var serializeAws_restJson1SecretsManagerAccessTokenConfiguration = function (inp
3837
3865
  return __assign(__assign(__assign({}, (input.HeaderName !== undefined && input.HeaderName !== null && { HeaderName: input.HeaderName })), (input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn })), (input.SecretStringKey !== undefined &&
3838
3866
  input.SecretStringKey !== null && { SecretStringKey: input.SecretStringKey }));
3839
3867
  };
3868
+ var serializeAws_restJson1SegmentDeliveryConfiguration = function (input, context) {
3869
+ return __assign(__assign({}, (input.BaseUrl !== undefined && input.BaseUrl !== null && { BaseUrl: input.BaseUrl })), (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
3870
+ };
3840
3871
  var serializeAws_restJson1SlateSource = function (input, context) {
3841
3872
  return __assign(__assign({}, (input.SourceLocationName !== undefined &&
3842
3873
  input.SourceLocationName !== null && { SourceLocationName: input.SourceLocationName })), (input.VodSourceName !== undefined && input.VodSourceName !== null && { VodSourceName: input.VodSourceName }));
@@ -3942,6 +3973,16 @@ var deserializeAws_restJson1__listOfScheduleEntry = function (output, context) {
3942
3973
  return deserializeAws_restJson1ScheduleEntry(entry, context);
3943
3974
  });
3944
3975
  };
3976
+ var deserializeAws_restJson1__listOfSegmentDeliveryConfiguration = function (output, context) {
3977
+ return (output || [])
3978
+ .filter(function (e) { return e != null; })
3979
+ .map(function (entry) {
3980
+ if (entry === null) {
3981
+ return null;
3982
+ }
3983
+ return deserializeAws_restJson1SegmentDeliveryConfiguration(entry, context);
3984
+ });
3985
+ };
3945
3986
  var deserializeAws_restJson1__listOfSourceLocation = function (output, context) {
3946
3987
  return (output || [])
3947
3988
  .filter(function (e) { return e != null; })
@@ -4278,6 +4319,12 @@ var deserializeAws_restJson1SecretsManagerAccessTokenConfiguration = function (o
4278
4319
  SecretStringKey: __expectString(output.SecretStringKey),
4279
4320
  };
4280
4321
  };
4322
+ var deserializeAws_restJson1SegmentDeliveryConfiguration = function (output, context) {
4323
+ return {
4324
+ BaseUrl: __expectString(output.BaseUrl),
4325
+ Name: __expectString(output.Name),
4326
+ };
4327
+ };
4281
4328
  var deserializeAws_restJson1SlateSource = function (output, context) {
4282
4329
  return {
4283
4330
  SourceLocationName: __expectString(output.SourceLocationName),
@@ -4302,6 +4349,9 @@ var deserializeAws_restJson1SourceLocation = function (output, context) {
4302
4349
  LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
4303
4350
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
4304
4351
  : undefined,
4352
+ SegmentDeliveryConfigurations: output.SegmentDeliveryConfigurations !== undefined && output.SegmentDeliveryConfigurations !== null
4353
+ ? deserializeAws_restJson1__listOfSegmentDeliveryConfiguration(output.SegmentDeliveryConfigurations, context)
4354
+ : undefined,
4305
4355
  SourceLocationName: __expectString(output.SourceLocationName),
4306
4356
  Tags: output.tags !== undefined && output.tags !== null
4307
4357
  ? deserializeAws_restJson1__mapOf__string(output.tags, context)
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
17
26
  };
@@ -1,19 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
15
17
  export var getRuntimeConfig = function (config) {
16
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
17
21
  var clientSharedValues = getSharedRuntimeConfig(config);
18
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
19
28
  };
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { ConfigureLogsForPlaybackConfigurationCommandInput, ConfigureLogsForPlaybackConfigurationCommandOutput } from "./commands/ConfigureLogsForPlaybackConfigurationCommand";
10
10
  import { CreateChannelCommandInput, CreateChannelCommandOutput } from "./commands/CreateChannelCommand";
@@ -145,6 +145,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
145
145
  * @internal
146
146
  */
147
147
  defaultUserAgentProvider?: Provider<__UserAgent>;
148
+ /**
149
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
150
+ */
151
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
148
152
  }
149
153
  declare type MediaTailorClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
150
154
  /**
@@ -671,6 +671,16 @@ export declare namespace ScheduleEntry {
671
671
  */
672
672
  const filterSensitiveLog: (obj: ScheduleEntry) => any;
673
673
  }
674
+ export interface SegmentDeliveryConfiguration {
675
+ BaseUrl?: string;
676
+ Name?: string;
677
+ }
678
+ export declare namespace SegmentDeliveryConfiguration {
679
+ /**
680
+ * @internal
681
+ */
682
+ const filterSensitiveLog: (obj: SegmentDeliveryConfiguration) => any;
683
+ }
674
684
  export declare enum AccessType {
675
685
  S3_SIGV4 = "S3_SIGV4",
676
686
  SECRETS_MANAGER_ACCESS_TOKEN = "SECRETS_MANAGER_ACCESS_TOKEN"
@@ -775,6 +785,7 @@ export interface SourceLocation {
775
785
  * <p>The timestamp that indicates when the source location was last modified.</p>
776
786
  */
777
787
  LastModifiedTime?: Date;
788
+ SegmentDeliveryConfigurations?: SegmentDeliveryConfiguration[];
778
789
  /**
779
790
  * <p>The name of the source location.</p>
780
791
  */
@@ -868,12 +879,6 @@ export interface BadRequestException extends __SmithyException, $MetadataBearer
868
879
  $fault: "client";
869
880
  Message?: string;
870
881
  }
871
- export declare namespace BadRequestException {
872
- /**
873
- * @internal
874
- */
875
- const filterSensitiveLog: (obj: BadRequestException) => any;
876
- }
877
882
  export declare enum ChannelState {
878
883
  RUNNING = "RUNNING",
879
884
  STOPPED = "STOPPED"
@@ -1211,6 +1216,7 @@ export interface CreateSourceLocationRequest {
1211
1216
  * <p>The source's HTTP package configurations.</p>
1212
1217
  */
1213
1218
  HttpConfiguration: HttpConfiguration | undefined;
1219
+ SegmentDeliveryConfigurations?: SegmentDeliveryConfiguration[];
1214
1220
  /**
1215
1221
  * <p>The identifier for the source location you are working on.</p>
1216
1222
  */
@@ -1253,6 +1259,7 @@ export interface CreateSourceLocationResponse {
1253
1259
  * <p>The timestamp that indicates when the source location was last modified.</p>
1254
1260
  */
1255
1261
  LastModifiedTime?: Date;
1262
+ SegmentDeliveryConfigurations?: SegmentDeliveryConfiguration[];
1256
1263
  /**
1257
1264
  * <p>The name of the source location.</p>
1258
1265
  */
@@ -1656,6 +1663,7 @@ export interface DescribeSourceLocationResponse {
1656
1663
  * <p>The timestamp that indicates when the source location was last modified.</p>
1657
1664
  */
1658
1665
  LastModifiedTime?: Date;
1666
+ SegmentDeliveryConfigurations?: SegmentDeliveryConfiguration[];
1659
1667
  /**
1660
1668
  * <p>The name of the source location.</p>
1661
1669
  */
@@ -2512,6 +2520,7 @@ export interface UpdateSourceLocationRequest {
2512
2520
  * <p>The HTTP configuration for the source location.</p>
2513
2521
  */
2514
2522
  HttpConfiguration: HttpConfiguration | undefined;
2523
+ SegmentDeliveryConfigurations?: SegmentDeliveryConfiguration[];
2515
2524
  /**
2516
2525
  * <p>The identifier for the source location you are working on.</p>
2517
2526
  */
@@ -2548,6 +2557,7 @@ export interface UpdateSourceLocationResponse {
2548
2557
  * <p>The timestamp that indicates when the source location was last modified.</p>
2549
2558
  */
2550
2559
  LastModifiedTime?: Date;
2560
+ SegmentDeliveryConfigurations?: SegmentDeliveryConfiguration[];
2551
2561
  /**
2552
2562
  * <p>The name of the source location.</p>
2553
2563
  */
@@ -1,10 +1,11 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { MediaTailorClientConfig } from "./MediaTailorClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: MediaTailorClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: MediaTailorClientConfig) => {
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<any>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,18 +1,19 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { MediaTailorClientConfig } from "./MediaTailorClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: MediaTailorClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<string>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: MediaTailorClientConfig) => {
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
30
  tls?: boolean | undefined;
30
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { ConfigureLogsForPlaybackConfigurationCommandInput, ConfigureLogsForPlaybackConfigurationCommandOutput } from "./commands/ConfigureLogsForPlaybackConfigurationCommand";
10
10
  import { CreateChannelCommandInput, CreateChannelCommandOutput } from "./commands/CreateChannelCommand";
@@ -88,6 +88,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
88
88
  regionInfoProvider?: RegionInfoProvider;
89
89
 
90
90
  defaultUserAgentProvider?: Provider<__UserAgent>;
91
+
92
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
91
93
  }
92
94
  declare type MediaTailorClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
93
95
 
@@ -385,6 +385,14 @@ export declare namespace ScheduleEntry {
385
385
 
386
386
  const filterSensitiveLog: (obj: ScheduleEntry) => any;
387
387
  }
388
+ export interface SegmentDeliveryConfiguration {
389
+ BaseUrl?: string;
390
+ Name?: string;
391
+ }
392
+ export declare namespace SegmentDeliveryConfiguration {
393
+
394
+ const filterSensitiveLog: (obj: SegmentDeliveryConfiguration) => any;
395
+ }
388
396
  export declare enum AccessType {
389
397
  S3_SIGV4 = "S3_SIGV4",
390
398
  SECRETS_MANAGER_ACCESS_TOKEN = "SECRETS_MANAGER_ACCESS_TOKEN"
@@ -445,6 +453,7 @@ export interface SourceLocation {
445
453
  HttpConfiguration: HttpConfiguration | undefined;
446
454
 
447
455
  LastModifiedTime?: Date;
456
+ SegmentDeliveryConfigurations?: SegmentDeliveryConfiguration[];
448
457
 
449
458
  SourceLocationName: string | undefined;
450
459
 
@@ -502,10 +511,6 @@ export interface BadRequestException extends __SmithyException, $MetadataBearer
502
511
  $fault: "client";
503
512
  Message?: string;
504
513
  }
505
- export declare namespace BadRequestException {
506
-
507
- const filterSensitiveLog: (obj: BadRequestException) => any;
508
- }
509
514
  export declare enum ChannelState {
510
515
  RUNNING = "RUNNING",
511
516
  STOPPED = "STOPPED"
@@ -703,6 +708,7 @@ export interface CreateSourceLocationRequest {
703
708
  DefaultSegmentDeliveryConfiguration?: DefaultSegmentDeliveryConfiguration;
704
709
 
705
710
  HttpConfiguration: HttpConfiguration | undefined;
711
+ SegmentDeliveryConfigurations?: SegmentDeliveryConfiguration[];
706
712
 
707
713
  SourceLocationName: string | undefined;
708
714
 
@@ -727,6 +733,7 @@ export interface CreateSourceLocationResponse {
727
733
  HttpConfiguration?: HttpConfiguration;
728
734
 
729
735
  LastModifiedTime?: Date;
736
+ SegmentDeliveryConfigurations?: SegmentDeliveryConfiguration[];
730
737
 
731
738
  SourceLocationName?: string;
732
739
 
@@ -978,6 +985,7 @@ export interface DescribeSourceLocationResponse {
978
985
  HttpConfiguration?: HttpConfiguration;
979
986
 
980
987
  LastModifiedTime?: Date;
988
+ SegmentDeliveryConfigurations?: SegmentDeliveryConfiguration[];
981
989
 
982
990
  SourceLocationName?: string;
983
991
 
@@ -1494,6 +1502,7 @@ export interface UpdateSourceLocationRequest {
1494
1502
  DefaultSegmentDeliveryConfiguration?: DefaultSegmentDeliveryConfiguration;
1495
1503
 
1496
1504
  HttpConfiguration: HttpConfiguration | undefined;
1505
+ SegmentDeliveryConfigurations?: SegmentDeliveryConfiguration[];
1497
1506
 
1498
1507
  SourceLocationName: string | undefined;
1499
1508
  }
@@ -1514,6 +1523,7 @@ export interface UpdateSourceLocationResponse {
1514
1523
  HttpConfiguration?: HttpConfiguration;
1515
1524
 
1516
1525
  LastModifiedTime?: Date;
1526
+ SegmentDeliveryConfigurations?: SegmentDeliveryConfiguration[];
1517
1527
 
1518
1528
  SourceLocationName?: string;
1519
1529
 
@@ -1,8 +1,9 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { MediaTailorClientConfig } from "./MediaTailorClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: MediaTailorClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: MediaTailorClientConfig) => {
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<any>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,16 +1,17 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { MediaTailorClientConfig } from "./MediaTailorClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: MediaTailorClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
9
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<string>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: MediaTailorClientConfig) => {
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
27
28
  tls?: boolean | undefined;
28
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,17 +1,15 @@
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.46.0",
4
+ "version": "3.48.0",
5
5
  "scripts": {
6
- "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
- "build:cjs": "tsc -p tsconfig.json",
6
+ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
+ "build:cjs": "tsc -p tsconfig.cjs.json",
8
8
  "build:docs": "typedoc",
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "yarn clean:dist && yarn clean:docs",
13
- "clean:dist": "rimraf ./dist-*",
14
- "clean:docs": "rimraf ./docs"
12
+ "clean": "rimraf ./dist-*"
15
13
  },
16
14
  "main": "./dist-cjs/index.js",
17
15
  "types": "./dist-types/index.d.ts",
@@ -20,38 +18,40 @@
20
18
  "dependencies": {
21
19
  "@aws-crypto/sha256-browser": "2.0.0",
22
20
  "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.46.0",
24
- "@aws-sdk/config-resolver": "3.46.0",
25
- "@aws-sdk/credential-provider-node": "3.46.0",
26
- "@aws-sdk/fetch-http-handler": "3.46.0",
27
- "@aws-sdk/hash-node": "3.46.0",
28
- "@aws-sdk/invalid-dependency": "3.46.0",
29
- "@aws-sdk/middleware-content-length": "3.46.0",
30
- "@aws-sdk/middleware-host-header": "3.46.0",
31
- "@aws-sdk/middleware-logger": "3.46.0",
32
- "@aws-sdk/middleware-retry": "3.46.0",
33
- "@aws-sdk/middleware-serde": "3.46.0",
34
- "@aws-sdk/middleware-signing": "3.46.0",
35
- "@aws-sdk/middleware-stack": "3.46.0",
36
- "@aws-sdk/middleware-user-agent": "3.46.0",
37
- "@aws-sdk/node-config-provider": "3.46.0",
38
- "@aws-sdk/node-http-handler": "3.46.0",
39
- "@aws-sdk/protocol-http": "3.46.0",
40
- "@aws-sdk/smithy-client": "3.46.0",
41
- "@aws-sdk/types": "3.46.0",
42
- "@aws-sdk/url-parser": "3.46.0",
43
- "@aws-sdk/util-base64-browser": "3.46.0",
44
- "@aws-sdk/util-base64-node": "3.46.0",
45
- "@aws-sdk/util-body-length-browser": "3.46.0",
46
- "@aws-sdk/util-body-length-node": "3.46.0",
47
- "@aws-sdk/util-user-agent-browser": "3.46.0",
48
- "@aws-sdk/util-user-agent-node": "3.46.0",
49
- "@aws-sdk/util-utf8-browser": "3.46.0",
50
- "@aws-sdk/util-utf8-node": "3.46.0",
21
+ "@aws-sdk/client-sts": "3.48.0",
22
+ "@aws-sdk/config-resolver": "3.47.2",
23
+ "@aws-sdk/credential-provider-node": "3.48.0",
24
+ "@aws-sdk/fetch-http-handler": "3.47.2",
25
+ "@aws-sdk/hash-node": "3.47.2",
26
+ "@aws-sdk/invalid-dependency": "3.47.2",
27
+ "@aws-sdk/middleware-content-length": "3.47.2",
28
+ "@aws-sdk/middleware-host-header": "3.47.2",
29
+ "@aws-sdk/middleware-logger": "3.47.2",
30
+ "@aws-sdk/middleware-retry": "3.47.2",
31
+ "@aws-sdk/middleware-serde": "3.47.2",
32
+ "@aws-sdk/middleware-signing": "3.47.2",
33
+ "@aws-sdk/middleware-stack": "3.47.2",
34
+ "@aws-sdk/middleware-user-agent": "3.47.2",
35
+ "@aws-sdk/node-config-provider": "3.47.2",
36
+ "@aws-sdk/node-http-handler": "3.47.2",
37
+ "@aws-sdk/protocol-http": "3.47.2",
38
+ "@aws-sdk/smithy-client": "3.47.2",
39
+ "@aws-sdk/types": "3.47.1",
40
+ "@aws-sdk/url-parser": "3.47.2",
41
+ "@aws-sdk/util-base64-browser": "3.47.1",
42
+ "@aws-sdk/util-base64-node": "3.47.2",
43
+ "@aws-sdk/util-body-length-browser": "3.47.1",
44
+ "@aws-sdk/util-body-length-node": "3.47.1",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.47.2",
46
+ "@aws-sdk/util-defaults-mode-node": "3.47.2",
47
+ "@aws-sdk/util-user-agent-browser": "3.47.2",
48
+ "@aws-sdk/util-user-agent-node": "3.47.2",
49
+ "@aws-sdk/util-utf8-browser": "3.47.1",
50
+ "@aws-sdk/util-utf8-node": "3.47.2",
51
51
  "tslib": "^2.3.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@aws-sdk/service-client-documentation-generator": "3.46.0",
54
+ "@aws-sdk/service-client-documentation-generator": "3.47.1",
55
55
  "@types/node": "^12.7.5"
56
56
  },
57
57
  "engines": {