@aws-sdk/client-mediatailor 3.398.0 → 3.399.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/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +1 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +1 -0
- package/dist-types/commands/CreateSourceLocationCommand.d.ts +2 -2
- package/dist-types/commands/DescribeSourceLocationCommand.d.ts +1 -1
- package/dist-types/commands/ListSourceLocationsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSourceLocationCommand.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +12 -1
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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 }, {
|
|
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;
|
|
@@ -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 }, {
|
|
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;
|
|
@@ -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
|
|
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.
|
|
4
|
+
"version": "3.399.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",
|