@aws-sdk/client-mediatailor 3.1148.0 → 3.1150.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/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1147.0";
72
+ var version = "3.1149.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -135,6 +135,7 @@ const defaultEndpointResolver = (endpointParams, context = {}) => {
135
135
  customEndpointFunctions.aws = awsEndpointFunctions;
136
136
 
137
137
  class MediaTailorServiceException extends ServiceException {
138
+ static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.mediatailor#MediaTailorServiceException";
138
139
  constructor(options) {
139
140
  super(options);
140
141
  Object.setPrototypeOf(this, MediaTailorServiceException.prototype);
@@ -142,6 +143,7 @@ class MediaTailorServiceException extends ServiceException {
142
143
  }
143
144
 
144
145
  class BadRequestException extends MediaTailorServiceException {
146
+ static shapeId = "com.amazonaws.mediatailor#BadRequestException";
145
147
  name = "BadRequestException";
146
148
  $fault = "client";
147
149
  Message;
@@ -236,6 +238,7 @@ const _CT = "CreationTime";
236
238
  const _CVS = "CreateVodSource";
237
239
  const _CVSR = "CreateVodSourceRequest";
238
240
  const _CVSRr = "CreateVodSourceResponse";
241
+ const _Ca = "Cache";
239
242
  const _Ch = "Channel";
240
243
  const _Co = "Consumption";
241
244
  const _D = "Description";
@@ -333,6 +336,7 @@ const _HPCt = "HttpPackageConfiguration";
333
336
  const _HPS = "HlsPlaylistSettings";
334
337
  const _HR = "HttpRequest";
335
338
  const _HRC = "HttpRequestConfiguration";
339
+ const _HRCC = "HttpRequestCacheConfiguration";
336
340
  const _I = "Items";
337
341
  const _IM = "InsertionMode";
338
342
  const _K = "Key";
@@ -498,6 +502,8 @@ const _SUe = "SegmentationUpid";
498
502
  const _T = "Tier";
499
503
  const _TK = "TagKeys";
500
504
  const _TM = "TimeoutMilliseconds";
505
+ const _TMS = "TtlMinimumSeconds";
506
+ const _TMSt = "TtlMaximumSeconds";
501
507
  const _TPN = "TranscodeProfileName";
502
508
  const _TR = "TargetRegion";
503
509
  const _TRR = "TagResourceRequest";
@@ -657,8 +663,8 @@ var AvailSuppression$ = [3, n0, _AS,
657
663
  ];
658
664
  var AwsServiceRequestConfiguration$ = [3, n0, _ASRC,
659
665
  0,
660
- [_R, _MTe, _RTM, _U, _TS, _TR, _Ou, _B, _H],
661
- [0, 0, 1, 0, 0, 0, 128 | 0, 0, 128 | 0], 6
666
+ [_R, _MTe, _RTM, _U, _TS, _TR, _Ou, _B, _H, _Ca],
667
+ [0, 0, 1, 0, 0, 0, 128 | 0, 0, 128 | 0, () => HttpRequestCacheConfiguration$], 6
662
668
  ];
663
669
  var BeaconingConfiguration$ = [3, n0, _BC,
664
670
  0,
@@ -1025,10 +1031,15 @@ var HttpRequest$ = [3, n0, _HR,
1025
1031
  [_Me, _B, _H, _CRo],
1026
1032
  [0, 0, 128 | 0, 0]
1027
1033
  ];
1034
+ var HttpRequestCacheConfiguration$ = [3, n0, _HRCC,
1035
+ 0,
1036
+ [_TMS, _TMSt, _K],
1037
+ [1, 1, 0], 2
1038
+ ];
1028
1039
  var HttpRequestConfiguration$ = [3, n0, _HRC,
1029
1040
  0,
1030
- [_R, _MTe, _RTM, _U, _Ou, _B, _H],
1031
- [0, 0, 1, 0, 128 | 0, 0, 128 | 0], 4
1041
+ [_R, _MTe, _RTM, _U, _Ou, _B, _H, _Ca],
1042
+ [0, 0, 1, 0, 128 | 0, 0, 128 | 0, () => HttpRequestCacheConfiguration$], 4
1032
1043
  ];
1033
1044
  var KeyValuePair$ = [3, n0, _KVP,
1034
1045
  0,
@@ -1407,8 +1418,8 @@ var UpdateVodSourceResponse$ = [3, n0, _UVSRp,
1407
1418
  ];
1408
1419
  var VastRequestConfiguration$ = [3, n0, _VRC,
1409
1420
  0,
1410
- [_R, _MTe, _RTM, _U, _Ou, _B, _H],
1411
- [0, 0, 1, 0, 128 | 0, 0, 128 | 0], 4
1421
+ [_R, _MTe, _RTM, _U, _Ou, _B, _H, _Ca],
1422
+ [0, 0, 1, 0, 128 | 0, 0, 128 | 0, () => HttpRequestCacheConfiguration$], 4
1412
1423
  ];
1413
1424
  var VastResponse$ = [3, n0, _VR,
1414
1425
  0,
@@ -2423,6 +2434,7 @@ exports.HlsPlaylistSettings$ = HlsPlaylistSettings$;
2423
2434
  exports.HttpConfiguration$ = HttpConfiguration$;
2424
2435
  exports.HttpPackageConfiguration$ = HttpPackageConfiguration$;
2425
2436
  exports.HttpRequest$ = HttpRequest$;
2437
+ exports.HttpRequestCacheConfiguration$ = HttpRequestCacheConfiguration$;
2426
2438
  exports.HttpRequestConfiguration$ = HttpRequestConfiguration$;
2427
2439
  exports.InsertionMode = InsertionMode;
2428
2440
  exports.KeyValuePair$ = KeyValuePair$;
@@ -1,6 +1,7 @@
1
1
  import { ServiceException as __ServiceException, } from "@smithy/core/client";
2
2
  export { __ServiceException };
3
3
  export class MediaTailorServiceException extends __ServiceException {
4
+ static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.mediatailor#MediaTailorServiceException";
4
5
  constructor(options) {
5
6
  super(options);
6
7
  Object.setPrototypeOf(this, MediaTailorServiceException.prototype);
@@ -1,5 +1,6 @@
1
1
  import { MediaTailorServiceException as __BaseException } from "./MediaTailorServiceException";
2
2
  export class BadRequestException extends __BaseException {
3
+ static shapeId = "com.amazonaws.mediatailor#BadRequestException";
3
4
  name = "BadRequestException";
4
5
  $fault = "client";
5
6
  Message;
@@ -78,6 +78,7 @@ const _CT = "CreationTime";
78
78
  const _CVS = "CreateVodSource";
79
79
  const _CVSR = "CreateVodSourceRequest";
80
80
  const _CVSRr = "CreateVodSourceResponse";
81
+ const _Ca = "Cache";
81
82
  const _Ch = "Channel";
82
83
  const _Co = "Consumption";
83
84
  const _D = "Description";
@@ -175,6 +176,7 @@ const _HPCt = "HttpPackageConfiguration";
175
176
  const _HPS = "HlsPlaylistSettings";
176
177
  const _HR = "HttpRequest";
177
178
  const _HRC = "HttpRequestConfiguration";
179
+ const _HRCC = "HttpRequestCacheConfiguration";
178
180
  const _I = "Items";
179
181
  const _IM = "InsertionMode";
180
182
  const _K = "Key";
@@ -340,6 +342,8 @@ const _SUe = "SegmentationUpid";
340
342
  const _T = "Tier";
341
343
  const _TK = "TagKeys";
342
344
  const _TM = "TimeoutMilliseconds";
345
+ const _TMS = "TtlMinimumSeconds";
346
+ const _TMSt = "TtlMaximumSeconds";
343
347
  const _TPN = "TranscodeProfileName";
344
348
  const _TR = "TargetRegion";
345
349
  const _TRR = "TagResourceRequest";
@@ -502,8 +506,8 @@ export var AvailSuppression$ = [3, n0, _AS,
502
506
  ];
503
507
  export var AwsServiceRequestConfiguration$ = [3, n0, _ASRC,
504
508
  0,
505
- [_R, _MTe, _RTM, _U, _TS, _TR, _Ou, _B, _H],
506
- [0, 0, 1, 0, 0, 0, 128 | 0, 0, 128 | 0], 6
509
+ [_R, _MTe, _RTM, _U, _TS, _TR, _Ou, _B, _H, _Ca],
510
+ [0, 0, 1, 0, 0, 0, 128 | 0, 0, 128 | 0, () => HttpRequestCacheConfiguration$], 6
507
511
  ];
508
512
  export var BeaconingConfiguration$ = [3, n0, _BC,
509
513
  0,
@@ -870,10 +874,15 @@ export var HttpRequest$ = [3, n0, _HR,
870
874
  [_Me, _B, _H, _CRo],
871
875
  [0, 0, 128 | 0, 0]
872
876
  ];
877
+ export var HttpRequestCacheConfiguration$ = [3, n0, _HRCC,
878
+ 0,
879
+ [_TMS, _TMSt, _K],
880
+ [1, 1, 0], 2
881
+ ];
873
882
  export var HttpRequestConfiguration$ = [3, n0, _HRC,
874
883
  0,
875
- [_R, _MTe, _RTM, _U, _Ou, _B, _H],
876
- [0, 0, 1, 0, 128 | 0, 0, 128 | 0], 4
884
+ [_R, _MTe, _RTM, _U, _Ou, _B, _H, _Ca],
885
+ [0, 0, 1, 0, 128 | 0, 0, 128 | 0, () => HttpRequestCacheConfiguration$], 4
877
886
  ];
878
887
  export var KeyValuePair$ = [3, n0, _KVP,
879
888
  0,
@@ -1252,8 +1261,8 @@ export var UpdateVodSourceResponse$ = [3, n0, _UVSRp,
1252
1261
  ];
1253
1262
  export var VastRequestConfiguration$ = [3, n0, _VRC,
1254
1263
  0,
1255
- [_R, _MTe, _RTM, _U, _Ou, _B, _H],
1256
- [0, 0, 1, 0, 128 | 0, 0, 128 | 0], 4
1264
+ [_R, _MTe, _RTM, _U, _Ou, _B, _H, _Ca],
1265
+ [0, 0, 1, 0, 128 | 0, 0, 128 | 0, () => HttpRequestCacheConfiguration$], 4
1257
1266
  ];
1258
1267
  export var VastResponse$ = [3, n0, _VR,
1259
1268
  0,
@@ -54,6 +54,11 @@ declare const GetFunctionCommand_base: {
54
54
  * // Headers: {
55
55
  * // "<keys>": "STRING_VALUE",
56
56
  * // },
57
+ * // Cache: { // HttpRequestCacheConfiguration
58
+ * // TtlMinimumSeconds: Number("int"), // required
59
+ * // TtlMaximumSeconds: Number("int"), // required
60
+ * // Key: "STRING_VALUE",
61
+ * // },
57
62
  * // },
58
63
  * // AwsServiceRequestConfiguration: { // AwsServiceRequestConfiguration
59
64
  * // Runtime: "JSONATA", // required
@@ -67,6 +72,11 @@ declare const GetFunctionCommand_base: {
67
72
  * // Headers: {
68
73
  * // "<keys>": "STRING_VALUE",
69
74
  * // },
75
+ * // Cache: {
76
+ * // TtlMinimumSeconds: Number("int"), // required
77
+ * // TtlMaximumSeconds: Number("int"), // required
78
+ * // Key: "STRING_VALUE",
79
+ * // },
70
80
  * // TargetService: "STRING_VALUE", // required
71
81
  * // TargetRegion: "STRING_VALUE", // required
72
82
  * // },
@@ -109,6 +119,11 @@ declare const GetFunctionCommand_base: {
109
119
  * // Url: "STRING_VALUE", // required
110
120
  * // Body: "STRING_VALUE",
111
121
  * // Headers: "<__mapOf__string>",
122
+ * // Cache: {
123
+ * // TtlMinimumSeconds: Number("int"), // required
124
+ * // TtlMaximumSeconds: Number("int"), // required
125
+ * // Key: "STRING_VALUE",
126
+ * // },
112
127
  * // },
113
128
  * // Tags: "<__mapOf__string>",
114
129
  * // Arn: "STRING_VALUE",
@@ -57,6 +57,11 @@ declare const ListFunctionsCommand_base: {
57
57
  * // Headers: {
58
58
  * // "<keys>": "STRING_VALUE",
59
59
  * // },
60
+ * // Cache: { // HttpRequestCacheConfiguration
61
+ * // TtlMinimumSeconds: Number("int"), // required
62
+ * // TtlMaximumSeconds: Number("int"), // required
63
+ * // Key: "STRING_VALUE",
64
+ * // },
60
65
  * // },
61
66
  * // AwsServiceRequestConfiguration: { // AwsServiceRequestConfiguration
62
67
  * // Runtime: "JSONATA", // required
@@ -70,6 +75,11 @@ declare const ListFunctionsCommand_base: {
70
75
  * // Headers: {
71
76
  * // "<keys>": "STRING_VALUE",
72
77
  * // },
78
+ * // Cache: {
79
+ * // TtlMinimumSeconds: Number("int"), // required
80
+ * // TtlMaximumSeconds: Number("int"), // required
81
+ * // Key: "STRING_VALUE",
82
+ * // },
73
83
  * // TargetService: "STRING_VALUE", // required
74
84
  * // TargetRegion: "STRING_VALUE", // required
75
85
  * // },
@@ -112,6 +122,11 @@ declare const ListFunctionsCommand_base: {
112
122
  * // Url: "STRING_VALUE", // required
113
123
  * // Body: "STRING_VALUE",
114
124
  * // Headers: "<__mapOf__string>",
125
+ * // Cache: {
126
+ * // TtlMinimumSeconds: Number("int"), // required
127
+ * // TtlMaximumSeconds: Number("int"), // required
128
+ * // Key: "STRING_VALUE",
129
+ * // },
115
130
  * // },
116
131
  * // Tags: "<__mapOf__string>",
117
132
  * // Arn: "STRING_VALUE",
@@ -49,6 +49,11 @@ declare const PutFunctionCommand_base: {
49
49
  * Headers: {
50
50
  * "<keys>": "STRING_VALUE",
51
51
  * },
52
+ * Cache: { // HttpRequestCacheConfiguration
53
+ * TtlMinimumSeconds: Number("int"), // required
54
+ * TtlMaximumSeconds: Number("int"), // required
55
+ * Key: "STRING_VALUE",
56
+ * },
52
57
  * },
53
58
  * AwsServiceRequestConfiguration: { // AwsServiceRequestConfiguration
54
59
  * Runtime: "JSONATA", // required
@@ -62,6 +67,11 @@ declare const PutFunctionCommand_base: {
62
67
  * Headers: {
63
68
  * "<keys>": "STRING_VALUE",
64
69
  * },
70
+ * Cache: {
71
+ * TtlMinimumSeconds: Number("int"), // required
72
+ * TtlMaximumSeconds: Number("int"), // required
73
+ * Key: "STRING_VALUE",
74
+ * },
65
75
  * TargetService: "STRING_VALUE", // required
66
76
  * TargetRegion: "STRING_VALUE", // required
67
77
  * },
@@ -104,6 +114,11 @@ declare const PutFunctionCommand_base: {
104
114
  * Url: "STRING_VALUE", // required
105
115
  * Body: "STRING_VALUE",
106
116
  * Headers: "<__mapOf__string>",
117
+ * Cache: {
118
+ * TtlMinimumSeconds: Number("int"), // required
119
+ * TtlMaximumSeconds: Number("int"), // required
120
+ * Key: "STRING_VALUE",
121
+ * },
107
122
  * },
108
123
  * Tags: "<__mapOf__string>",
109
124
  * };
@@ -125,6 +140,11 @@ declare const PutFunctionCommand_base: {
125
140
  * // Headers: {
126
141
  * // "<keys>": "STRING_VALUE",
127
142
  * // },
143
+ * // Cache: { // HttpRequestCacheConfiguration
144
+ * // TtlMinimumSeconds: Number("int"), // required
145
+ * // TtlMaximumSeconds: Number("int"), // required
146
+ * // Key: "STRING_VALUE",
147
+ * // },
128
148
  * // },
129
149
  * // AwsServiceRequestConfiguration: { // AwsServiceRequestConfiguration
130
150
  * // Runtime: "JSONATA", // required
@@ -138,6 +158,11 @@ declare const PutFunctionCommand_base: {
138
158
  * // Headers: {
139
159
  * // "<keys>": "STRING_VALUE",
140
160
  * // },
161
+ * // Cache: {
162
+ * // TtlMinimumSeconds: Number("int"), // required
163
+ * // TtlMaximumSeconds: Number("int"), // required
164
+ * // Key: "STRING_VALUE",
165
+ * // },
141
166
  * // TargetService: "STRING_VALUE", // required
142
167
  * // TargetRegion: "STRING_VALUE", // required
143
168
  * // },
@@ -180,6 +205,11 @@ declare const PutFunctionCommand_base: {
180
205
  * // Url: "STRING_VALUE", // required
181
206
  * // Body: "STRING_VALUE",
182
207
  * // Headers: "<__mapOf__string>",
208
+ * // Cache: {
209
+ * // TtlMinimumSeconds: Number("int"), // required
210
+ * // TtlMaximumSeconds: Number("int"), // required
211
+ * // Key: "STRING_VALUE",
212
+ * // },
183
213
  * // },
184
214
  * // Tags: "<__mapOf__string>",
185
215
  * // Arn: "STRING_VALUE",
@@ -7,6 +7,7 @@ export { __ServiceException };
7
7
  * Base exception class for all service exceptions from MediaTailor service.
8
8
  */
9
9
  export declare class MediaTailorServiceException extends __ServiceException {
10
+ static readonly shapeId: string;
10
11
  /**
11
12
  * @internal
12
13
  */
@@ -5,6 +5,7 @@ import { MediaTailorServiceException as __BaseException } from "./MediaTailorSer
5
5
  * @public
6
6
  */
7
7
  export declare class BadRequestException extends __BaseException {
8
+ static readonly shapeId: string;
8
9
  readonly name: "BadRequestException";
9
10
  readonly $fault: "client";
10
11
  Message?: string | undefined;
@@ -451,6 +451,27 @@ export interface FunctionRef {
451
451
  */
452
452
  Alias?: string | undefined;
453
453
  }
454
+ /**
455
+ * <p>The optional response-caching configuration shared by the HTTP-based function types (<code>HTTP_REQUEST</code>, <code>AWS_SERVICE_REQUEST</code>, and <code>VAST_REQUEST</code>). When you provide this configuration, MediaTailor caches the function's responses that have one of the following HTTP status codes: <code>200</code>, <code>203</code>, <code>204</code>, <code>404</code>, <code>405</code>, <code>410</code>, <code>414</code>, and <code>501</code>. For a cacheable response, MediaTailor caches it for the number of seconds given by the response's <code>Cache-Control</code> <code>max-age</code> directive, limited to the range between <code>TtlMinimumSeconds</code> and <code>TtlMaximumSeconds</code>. If the response has no <code>Cache-Control</code> <code>max-age</code> directive, MediaTailor caches it for <code>TtlMinimumSeconds</code> seconds. Cached HTTP responses are scoped per playback configuration, not per function.</p>
456
+ * @public
457
+ */
458
+ export interface HttpRequestCacheConfiguration {
459
+ /**
460
+ * <p>The lower bound, in seconds, on how long MediaTailor caches a response. MediaTailor also uses this value as the cache duration when a response has no <code>Cache-Control</code> <code>max-age</code> directive.</p>
461
+ * @public
462
+ */
463
+ TtlMinimumSeconds: number | undefined;
464
+ /**
465
+ * <p>The upper bound, in seconds, on how long MediaTailor caches a response. This value must be greater than or equal to <code>TtlMinimumSeconds</code>.</p>
466
+ * @public
467
+ */
468
+ TtlMaximumSeconds: number | undefined;
469
+ /**
470
+ * <p>A JSONata expression that MediaTailor evaluates to a custom cache key. By default, the cache key is a hash of the HTTP URL, the request body, and the HTTP method; request headers are not included. You can specify a custom cache key expression to vary caching by request headers and more. The evaluated key must be smaller than 1 KB; otherwise the HTTP function will fail.</p>
471
+ * @public
472
+ */
473
+ Key?: string | undefined;
474
+ }
454
475
  /**
455
476
  * <p>The configuration for an <code>AWS_SERVICE_REQUEST</code> function. Contains the target service, target Region, and request parameters that the function uses to call an AWS service API. For more information, see <a href="https://docs.aws.amazon.com/mediatailor/latest/ug/monetization-functions-types-aws-service-request.html">AWS_SERVICE_REQUEST</a> in the <i>MediaTailor User Guide</i>.</p>
456
477
  * @public
@@ -491,6 +512,11 @@ export interface AwsServiceRequestConfiguration {
491
512
  * @public
492
513
  */
493
514
  Headers?: Record<string, string> | undefined;
515
+ /**
516
+ * <p>The optional response-caching configuration for the function. When present, MediaTailor caches the responses that the function receives from the AWS service, within the time-to-live (TTL) bounds that you specify. Omit this configuration to disable response caching.</p>
517
+ * @public
518
+ */
519
+ Cache?: HttpRequestCacheConfiguration | undefined;
494
520
  /**
495
521
  * <p>The AWS service to call. Valid value: <code>elemental-inference</code> (AWS Elemental Inference).</p>
496
522
  * @public
@@ -589,6 +615,11 @@ export interface HttpRequestConfiguration {
589
615
  * @public
590
616
  */
591
617
  Headers?: Record<string, string> | undefined;
618
+ /**
619
+ * <p>The optional response-caching configuration for the function. When present, MediaTailor caches the responses that the function receives from the HTTP endpoint, within the time-to-live (TTL) bounds that you specify. Omit this configuration to disable response caching.</p>
620
+ * @public
621
+ */
622
+ Cache?: HttpRequestCacheConfiguration | undefined;
592
623
  }
593
624
  /**
594
625
  * <p>The configuration for a <code>SEQUENTIAL_EXECUTOR</code> function. A <code>SEQUENTIAL_EXECUTOR</code> runs a sequence of child functions in order, passing data between steps through temporary data. For more information, see <a href="https://docs.aws.amazon.com/mediatailor/latest/ug/monetization-functions-types-sequential-executor.html">SEQUENTIAL_EXECUTOR</a> in the <i>MediaTailor User Guide</i>.</p>
@@ -656,6 +687,11 @@ export interface VastRequestConfiguration {
656
687
  * @public
657
688
  */
658
689
  Headers?: Record<string, string> | undefined;
690
+ /**
691
+ * <p>The optional response-caching configuration for the function. When present, MediaTailor caches the responses that the function receives from the HTTP endpoint, within the time-to-live (TTL) bounds that you specify. Omit this configuration to disable response caching.</p>
692
+ * @public
693
+ */
694
+ Cache?: HttpRequestCacheConfiguration | undefined;
659
695
  }
660
696
  /**
661
697
  * <p>Defines reusable logic that MediaTailor executes at lifecycle hooks during ad insertion. The <code>FunctionType</code> determines the function's runtime behavior. For more information about functions, see <a href="https://docs.aws.amazon.com/mediatailor/latest/ug/monetization-functions.html">Working with functions</a> in the <i>MediaTailor User Guide</i>.</p>
@@ -96,6 +96,7 @@ export declare var HlsPlaylistSettings$: StaticStructureSchema;
96
96
  export declare var HttpConfiguration$: StaticStructureSchema;
97
97
  export declare var HttpPackageConfiguration$: StaticStructureSchema;
98
98
  export declare var HttpRequest$: StaticStructureSchema;
99
+ export declare var HttpRequestCacheConfiguration$: StaticStructureSchema;
99
100
  export declare var HttpRequestConfiguration$: StaticStructureSchema;
100
101
  export declare var KeyValuePair$: StaticStructureSchema;
101
102
  export declare var ListAlertsRequest$: StaticStructureSchema;
@@ -5,5 +5,6 @@ import {
5
5
  export { __ServiceExceptionOptions };
6
6
  export { __ServiceException };
7
7
  export declare class MediaTailorServiceException extends __ServiceException {
8
+ static readonly shapeId: string;
8
9
  constructor(options: __ServiceExceptionOptions);
9
10
  }
@@ -1,6 +1,7 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
2
  import { MediaTailorServiceException as __BaseException } from "./MediaTailorServiceException";
3
3
  export declare class BadRequestException extends __BaseException {
4
+ static readonly shapeId: string;
4
5
  readonly name: "BadRequestException";
5
6
  readonly $fault: "client";
6
7
  Message?: string | undefined;
@@ -140,6 +140,11 @@ export interface FunctionRef {
140
140
  FunctionId?: string | undefined;
141
141
  Alias?: string | undefined;
142
142
  }
143
+ export interface HttpRequestCacheConfiguration {
144
+ TtlMinimumSeconds: number | undefined;
145
+ TtlMaximumSeconds: number | undefined;
146
+ Key?: string | undefined;
147
+ }
143
148
  export interface AwsServiceRequestConfiguration {
144
149
  Runtime: RuntimeType | undefined;
145
150
  Output?: Record<string, string> | undefined;
@@ -148,6 +153,7 @@ export interface AwsServiceRequestConfiguration {
148
153
  Url: string | undefined;
149
154
  Body?: string | undefined;
150
155
  Headers?: Record<string, string> | undefined;
156
+ Cache?: HttpRequestCacheConfiguration | undefined;
151
157
  TargetService: string | undefined;
152
158
  TargetRegion: string | undefined;
153
159
  }
@@ -170,6 +176,7 @@ export interface HttpRequestConfiguration {
170
176
  Url: string | undefined;
171
177
  Body?: string | undefined;
172
178
  Headers?: Record<string, string> | undefined;
179
+ Cache?: HttpRequestCacheConfiguration | undefined;
173
180
  }
174
181
  export interface SequentialExecutorConfiguration {
175
182
  Runtime: RuntimeType | undefined;
@@ -185,6 +192,7 @@ export interface VastRequestConfiguration {
185
192
  Url: string | undefined;
186
193
  Body?: string | undefined;
187
194
  Headers?: Record<string, string> | undefined;
195
+ Cache?: HttpRequestCacheConfiguration | undefined;
188
196
  }
189
197
  export interface Function {
190
198
  FunctionId: string | undefined;
@@ -91,6 +91,7 @@ export declare var HlsPlaylistSettings$: StaticStructureSchema;
91
91
  export declare var HttpConfiguration$: StaticStructureSchema;
92
92
  export declare var HttpPackageConfiguration$: StaticStructureSchema;
93
93
  export declare var HttpRequest$: StaticStructureSchema;
94
+ export declare var HttpRequestCacheConfiguration$: StaticStructureSchema;
94
95
  export declare var HttpRequestConfiguration$: StaticStructureSchema;
95
96
  export declare var KeyValuePair$: StaticStructureSchema;
96
97
  export declare var ListAlertsRequest$: StaticStructureSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mediatailor",
3
- "version": "3.1148.0",
3
+ "version": "3.1150.0",
4
4
  "description": "AWS SDK for JavaScript Mediatailor Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-mediatailor",
6
6
  "license": "Apache-2.0",
@@ -46,10 +46,10 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.1",
50
- "@aws-sdk/credential-provider-node": "^3.972.84",
49
+ "@aws-sdk/core": "^3.978.3",
50
+ "@aws-sdk/credential-provider-node": "^3.972.86",
51
51
  "@aws-sdk/types": "^3.974.6",
52
- "@smithy/core": "^3.35.0",
52
+ "@smithy/core": "^3.35.2",
53
53
  "@smithy/fetch-http-handler": "^5.8.0",
54
54
  "@smithy/node-http-handler": "^4.12.1",
55
55
  "@smithy/types": "^4.19.0",