@aws-sdk/client-mediatailor 3.398.0 → 3.405.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.
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
4
  const q = "required", r = "fn", s = "argv", t = "ref";
5
5
  const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.mediatailor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.mediatailor-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.mediatailor.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://api.mediatailor.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://api.mediatailor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://api.mediatailor-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://api.mediatailor.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://api.mediatailor.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
7
7
  exports.ruleSet = _data;
@@ -43,6 +43,7 @@ exports.ScheduleEntryType = {
43
43
  PROGRAM: "PROGRAM",
44
44
  };
45
45
  exports.AccessType = {
46
+ AUTODETECT_SIGV4: "AUTODETECT_SIGV4",
46
47
  S3_SIGV4: "S3_SIGV4",
47
48
  SECRETS_MANAGER_ACCESS_TOKEN: "SECRETS_MANAGER_ACCESS_TOKEN",
48
49
  };
@@ -1,4 +1,4 @@
1
1
  const q = "required", r = "fn", s = "argv", t = "ref";
2
2
  const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.mediatailor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.mediatailor-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.mediatailor.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://api.mediatailor.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://api.mediatailor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://api.mediatailor-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://api.mediatailor.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://api.mediatailor.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
4
4
  export const ruleSet = _data;
@@ -40,6 +40,7 @@ export const ScheduleEntryType = {
40
40
  PROGRAM: "PROGRAM",
41
41
  };
42
42
  export const AccessType = {
43
+ AUTODETECT_SIGV4: "AUTODETECT_SIGV4",
43
44
  S3_SIGV4: "S3_SIGV4",
44
45
  SECRETS_MANAGER_ACCESS_TOKEN: "SECRETS_MANAGER_ACCESS_TOKEN",
45
46
  };
@@ -32,7 +32,7 @@ export interface CreateSourceLocationCommandOutput extends CreateSourceLocationR
32
32
  * const client = new MediaTailorClient(config);
33
33
  * const input = { // CreateSourceLocationRequest
34
34
  * AccessConfiguration: { // AccessConfiguration
35
- * AccessType: "S3_SIGV4" || "SECRETS_MANAGER_ACCESS_TOKEN",
35
+ * AccessType: "S3_SIGV4" || "SECRETS_MANAGER_ACCESS_TOKEN" || "AUTODETECT_SIGV4",
36
36
  * SecretsManagerAccessTokenConfiguration: { // SecretsManagerAccessTokenConfiguration
37
37
  * HeaderName: "STRING_VALUE",
38
38
  * SecretArn: "STRING_VALUE",
@@ -60,7 +60,7 @@ export interface CreateSourceLocationCommandOutput extends CreateSourceLocationR
60
60
  * const response = await client.send(command);
61
61
  * // { // CreateSourceLocationResponse
62
62
  * // AccessConfiguration: { // AccessConfiguration
63
- * // AccessType: "S3_SIGV4" || "SECRETS_MANAGER_ACCESS_TOKEN",
63
+ * // AccessType: "S3_SIGV4" || "SECRETS_MANAGER_ACCESS_TOKEN" || "AUTODETECT_SIGV4",
64
64
  * // SecretsManagerAccessTokenConfiguration: { // SecretsManagerAccessTokenConfiguration
65
65
  * // HeaderName: "STRING_VALUE",
66
66
  * // SecretArn: "STRING_VALUE",
@@ -37,7 +37,7 @@ export interface DescribeSourceLocationCommandOutput extends DescribeSourceLocat
37
37
  * const response = await client.send(command);
38
38
  * // { // DescribeSourceLocationResponse
39
39
  * // AccessConfiguration: { // AccessConfiguration
40
- * // AccessType: "S3_SIGV4" || "SECRETS_MANAGER_ACCESS_TOKEN",
40
+ * // AccessType: "S3_SIGV4" || "SECRETS_MANAGER_ACCESS_TOKEN" || "AUTODETECT_SIGV4",
41
41
  * // SecretsManagerAccessTokenConfiguration: { // SecretsManagerAccessTokenConfiguration
42
42
  * // HeaderName: "STRING_VALUE",
43
43
  * // SecretArn: "STRING_VALUE",
@@ -40,7 +40,7 @@ export interface ListSourceLocationsCommandOutput extends ListSourceLocationsRes
40
40
  * // Items: [ // __listOfSourceLocation
41
41
  * // { // SourceLocation
42
42
  * // AccessConfiguration: { // AccessConfiguration
43
- * // AccessType: "S3_SIGV4" || "SECRETS_MANAGER_ACCESS_TOKEN",
43
+ * // AccessType: "S3_SIGV4" || "SECRETS_MANAGER_ACCESS_TOKEN" || "AUTODETECT_SIGV4",
44
44
  * // SecretsManagerAccessTokenConfiguration: { // SecretsManagerAccessTokenConfiguration
45
45
  * // HeaderName: "STRING_VALUE",
46
46
  * // SecretArn: "STRING_VALUE",
@@ -32,7 +32,7 @@ export interface UpdateSourceLocationCommandOutput extends UpdateSourceLocationR
32
32
  * const client = new MediaTailorClient(config);
33
33
  * const input = { // UpdateSourceLocationRequest
34
34
  * AccessConfiguration: { // AccessConfiguration
35
- * AccessType: "S3_SIGV4" || "SECRETS_MANAGER_ACCESS_TOKEN",
35
+ * AccessType: "S3_SIGV4" || "SECRETS_MANAGER_ACCESS_TOKEN" || "AUTODETECT_SIGV4",
36
36
  * SecretsManagerAccessTokenConfiguration: { // SecretsManagerAccessTokenConfiguration
37
37
  * HeaderName: "STRING_VALUE",
38
38
  * SecretArn: "STRING_VALUE",
@@ -57,7 +57,7 @@ export interface UpdateSourceLocationCommandOutput extends UpdateSourceLocationR
57
57
  * const response = await client.send(command);
58
58
  * // { // UpdateSourceLocationResponse
59
59
  * // AccessConfiguration: { // AccessConfiguration
60
- * // AccessType: "S3_SIGV4" || "SECRETS_MANAGER_ACCESS_TOKEN",
60
+ * // AccessType: "S3_SIGV4" || "SECRETS_MANAGER_ACCESS_TOKEN" || "AUTODETECT_SIGV4",
61
61
  * // SecretsManagerAccessTokenConfiguration: { // SecretsManagerAccessTokenConfiguration
62
62
  * // HeaderName: "STRING_VALUE",
63
63
  * // SecretArn: "STRING_VALUE",
@@ -967,6 +967,7 @@ export interface SegmentDeliveryConfiguration {
967
967
  * @enum
968
968
  */
969
969
  export declare const AccessType: {
970
+ readonly AUTODETECT_SIGV4: "AUTODETECT_SIGV4";
970
971
  readonly S3_SIGV4: "S3_SIGV4";
971
972
  readonly SECRETS_MANAGER_ACCESS_TOKEN: "SECRETS_MANAGER_ACCESS_TOKEN";
972
973
  };
@@ -1002,13 +1003,23 @@ export interface SecretsManagerAccessTokenConfiguration {
1002
1003
  export interface AccessConfiguration {
1003
1004
  /**
1004
1005
  * @public
1005
- * <p>The type of authentication used to access content from <code>HttpConfiguration::BaseUrl</code> on your source location. Accepted value: <code>S3_SIGV4</code>.</p>
1006
+ * <p>The type of authentication used to access content from <code>HttpConfiguration::BaseUrl</code> on your source location.</p>
1006
1007
  * <p>
1007
1008
  * <code>S3_SIGV4</code> - AWS Signature Version 4 authentication for Amazon S3 hosted virtual-style access. If your source location base URL is an Amazon S3 bucket, MediaTailor can use AWS Signature Version 4 (SigV4) authentication to access the bucket where your source content is stored. Your MediaTailor source location baseURL must follow the S3 virtual hosted-style request URL format. For example, https://bucket-name.s3.Region.amazonaws.com/key-name.</p>
1008
1009
  * <p>Before you can use <code>S3_SIGV4</code>, you must meet these requirements:</p>
1009
1010
  * <p>• You must allow MediaTailor to access your S3 bucket by granting mediatailor.amazonaws.com principal access in IAM. For information about configuring access in IAM, see Access management in the IAM User Guide.</p>
1010
1011
  * <p>• The mediatailor.amazonaws.com service principal must have permissions to read all top level manifests referenced by the VodSource packaging configurations.</p>
1011
1012
  * <p>• The caller of the API must have s3:GetObject IAM permissions to read all top level manifests referenced by your MediaTailor VodSource packaging configurations.</p>
1013
+ * <p>
1014
+ * <code>AUTODETECT_SIGV4</code> - AWS Signature Version 4 authentication for a set of supported services: MediaPackage Version 2 and Amazon S3 hosted virtual-style access. If your source location base URL is a MediaPackage Version 2 endpoint or an Amazon S3 bucket, MediaTailor can use AWS Signature Version 4 (SigV4) authentication to access the resource where your source content is stored.</p>
1015
+ * <p>Before you can use <code>AUTODETECT_SIGV4</code> with a MediaPackage Version 2 endpoint, you must meet these requirements:</p>
1016
+ * <p>• You must grant MediaTailor access to your MediaPackage endpoint by granting <code>mediatailor.amazonaws.com</code> principal access in an Origin Access policy on the endpoint.</p>
1017
+ * <p>• Your MediaTailor source location base URL must be a MediaPackage V2 endpoint.</p>
1018
+ * <p>• The caller of the API must have <code>mediapackagev2:GetObject</code> IAM permissions to read all top level manifests referenced by the MediaTailor source packaging configurations.</p>
1019
+ * <p>Before you can use <code>AUTODETECT_SIGV4</code> with an Amazon S3 bucket, you must meet these requirements:</p>
1020
+ * <p>• You must grant MediaTailor access to your S3 bucket by granting <code>mediatailor.amazonaws.com</code> principal access in IAM. For more information about configuring access in IAM, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access management</a> in the <i>IAM User Guide.</i>.</p>
1021
+ * <p>• The <code>mediatailor.amazonaws.com</code> service principal must have permissions to read all top-level manifests referenced by the <code>VodSource</code> packaging configurations.</p>
1022
+ * <p>• The caller of the API must have <code>s3:GetObject</code> IAM permissions to read all top level manifests referenced by your MediaTailor <code>VodSource</code> packaging configurations.</p>
1012
1023
  */
1013
1024
  AccessType?: AccessType | string;
1014
1025
  /**
@@ -242,6 +242,7 @@ export interface SegmentDeliveryConfiguration {
242
242
  Name?: string;
243
243
  }
244
244
  export declare const AccessType: {
245
+ readonly AUTODETECT_SIGV4: "AUTODETECT_SIGV4";
245
246
  readonly S3_SIGV4: "S3_SIGV4";
246
247
  readonly SECRETS_MANAGER_ACCESS_TOKEN: "SECRETS_MANAGER_ACCESS_TOKEN";
247
248
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.398.0",
4
+ "version": "3.405.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,8 +21,8 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.398.0",
25
- "@aws-sdk/credential-provider-node": "3.398.0",
24
+ "@aws-sdk/client-sts": "3.405.0",
25
+ "@aws-sdk/credential-provider-node": "3.405.0",
26
26
  "@aws-sdk/middleware-host-header": "3.398.0",
27
27
  "@aws-sdk/middleware-logger": "3.398.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.398.0",
@@ -31,7 +31,7 @@
31
31
  "@aws-sdk/types": "3.398.0",
32
32
  "@aws-sdk/util-endpoints": "3.398.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.398.0",
34
- "@aws-sdk/util-user-agent-node": "3.398.0",
34
+ "@aws-sdk/util-user-agent-node": "3.405.0",
35
35
  "@smithy/config-resolver": "^2.0.5",
36
36
  "@smithy/fetch-http-handler": "^2.0.5",
37
37
  "@smithy/hash-node": "^2.0.5",
@@ -41,7 +41,7 @@
41
41
  "@smithy/middleware-retry": "^2.0.5",
42
42
  "@smithy/middleware-serde": "^2.0.5",
43
43
  "@smithy/middleware-stack": "^2.0.0",
44
- "@smithy/node-config-provider": "^2.0.5",
44
+ "@smithy/node-config-provider": "^2.0.6",
45
45
  "@smithy/node-http-handler": "^2.0.5",
46
46
  "@smithy/protocol-http": "^2.0.5",
47
47
  "@smithy/smithy-client": "^2.0.5",
@@ -50,8 +50,8 @@
50
50
  "@smithy/util-base64": "^2.0.0",
51
51
  "@smithy/util-body-length-browser": "^2.0.0",
52
52
  "@smithy/util-body-length-node": "^2.1.0",
53
- "@smithy/util-defaults-mode-browser": "^2.0.5",
54
- "@smithy/util-defaults-mode-node": "^2.0.5",
53
+ "@smithy/util-defaults-mode-browser": "^2.0.6",
54
+ "@smithy/util-defaults-mode-node": "^2.0.6",
55
55
  "@smithy/util-retry": "^2.0.0",
56
56
  "@smithy/util-utf8": "^2.0.0",
57
57
  "tslib": "^2.5.0"