@aws-sdk/client-s3-control 3.433.0 → 3.436.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.
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
4
|
const aC = "required", aD = "type", aE = "conditions", aF = "fn", aG = "argv", aH = "ref", aI = "assign", aJ = "authSchemes", aK = "disableDoubleEncoding", aL = "name", aM = "signingName", aN = "signingRegion", aO = "x-amz-account-id", aP = "x-amz-outpost-id";
|
|
5
|
-
const a = false, b = true, c = "isSet", d = "
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region: C, UseFIPS: D, UseDualStack: D, Endpoint: C, AccountId: C, RequiresAccountId: E, OutpostId: C, Bucket: C, AccessPointName: C, UseArnRegion: E }, rules: [{ [aE]: [{ [aF]: c, [aG]: as }],
|
|
5
|
+
const a = false, b = true, c = "isSet", d = "stringEquals", e = "aws.partition", f = "error", g = "{Region}", h = "endpoint", i = "tree", j = "getAttr", k = "not", l = "isValidHostLabel", m = "{url#scheme}://{url#authority}{url#path}", n = "s3-outposts", o = "aws.parseArn", p = "accessPointArn", q = "resourceId[0]", r = "arnType", s = "service", t = "resourceId[1]", u = "outpostId", v = "arnPartition", w = "{accessPointArn#accountId}", x = "resourceId[2]", y = "outpostType", z = "resourceId[3]", A = "bucketArn", B = "{bucketArn#accountId}", C = { [aC]: false, [aD]: "String" }, D = { [aC]: true, "default": false, [aD]: "Boolean" }, E = { [aC]: false, [aD]: "Boolean" }, F = { [aH]: "Region" }, G = { [aF]: c, [aG]: [{ [aH]: "Endpoint" }] }, H = { [aF]: "parseURL", [aG]: [{ [aH]: "Endpoint" }], [aI]: "url" }, I = { [aF]: "booleanEquals", [aG]: [{ [aH]: "UseDualStack" }, true] }, J = { [aF]: "booleanEquals", [aG]: [{ [aH]: "UseFIPS" }, true] }, K = { [aJ]: [{ [aK]: true, [aL]: "sigv4", [aM]: "s3", [aN]: g }] }, L = {}, M = { [aH]: "OutpostId" }, N = { [aE]: [J, { [aF]: d, [aG]: [{ [aF]: j, [aG]: [{ [aH]: "partitionResult" }, "name"] }, "aws-cn"] }], [f]: "Partition does not support FIPS", [aD]: f }, O = { [aE]: [{ [aF]: c, [aG]: [{ [aH]: "RequiresAccountId" }] }, { [aF]: "booleanEquals", [aG]: [{ [aH]: "RequiresAccountId" }, true] }, { [aF]: k, [aG]: [{ [aF]: c, [aG]: [{ [aH]: "AccountId" }] }] }], [f]: "AccountId is required but not set", [aD]: f }, P = { [aF]: c, [aG]: [{ [aH]: "RequiresAccountId" }] }, Q = { [aF]: "booleanEquals", [aG]: [{ [aH]: "RequiresAccountId" }, true] }, R = { [aF]: c, [aG]: [{ [aH]: "AccountId" }] }, S = { [aH]: "AccountId" }, T = { [aE]: [R, { [aF]: k, [aG]: [{ [aF]: l, [aG]: [S, false] }] }], [f]: "AccountId must only contain a-z, A-Z, 0-9 and `-`.", [aD]: f }, U = { [aJ]: [{ [aK]: true, [aL]: "sigv4", [aM]: n, [aN]: g }] }, V = { [f]: "Invalid region: region was not a valid DNS name.", [aD]: f }, W = { [aH]: p }, X = { [aF]: k, [aG]: [{ [aF]: d, [aG]: [{ [aH]: r }, ""] }] }, Y = { [aF]: c, [aG]: [{ [aH]: "UseArnRegion" }] }, Z = { [aF]: "booleanEquals", [aG]: [{ [aH]: "UseArnRegion" }, false] }, aa = { [aF]: j, [aG]: [W, "region"] }, ab = { [aF]: j, [aG]: [W, "accountId"] }, ac = { [aH]: y }, ad = { [aJ]: [{ [aK]: true, [aL]: "sigv4", [aM]: n, [aN]: "{accessPointArn#region}" }] }, ae = { [aO]: [w], [aP]: ["{outpostId}"] }, af = { [f]: "Invalid ARN: Expected a 4-component resource", [aD]: f }, ag = { [f]: "Invalid ARN: missing account ID", [aD]: f }, ah = { [f]: "Client was configured for partition `{partitionResult#name}` but ARN has `{arnPartition#name}`", [aD]: f }, ai = { [f]: "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`., found: `{outpostId}`", [aD]: f }, aj = { [f]: "Invalid ARN: The Outpost Id was not set", [aD]: f }, ak = { [f]: "Invalid ARN: No ARN type specified", [aD]: f }, al = { [aH]: A }, am = { [aF]: j, [aG]: [al, "region"] }, an = { [aF]: j, [aG]: [al, "accountId"] }, ao = { [aJ]: [{ [aK]: true, [aL]: "sigv4", [aM]: n, [aN]: "{bucketArn#region}" }] }, ap = { [aO]: [B], [aP]: ["{outpostId}"] }, aq = { [aF]: "booleanEquals", [aG]: [{ [aH]: "UseDualStack" }, false] }, ar = { [aF]: "booleanEquals", [aG]: [{ [aH]: "UseFIPS" }, false] }, as = [F], at = [{ [aF]: e, [aG]: [F], [aI]: "partitionResult" }], au = [I], av = [J], aw = [{ [aF]: l, [aG]: [F, true] }], ax = [G, H], ay = [{ [aH]: "AccessPointName" }], az = [{ [aF]: l, [aG]: [{ [aH]: u }, false] }], aA = [{ [aF]: d, [aG]: [{ [aF]: j, [aG]: [{ [aH]: v }, "name"] }, { [aF]: j, [aG]: [{ [aH]: "partitionResult" }, "name"] }] }], aB = [{ [aH]: "Bucket" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: C, UseFIPS: D, UseDualStack: D, Endpoint: C, AccountId: C, RequiresAccountId: E, OutpostId: C, Bucket: C, AccessPointName: C, UseArnRegion: E }, rules: [{ [aE]: [{ [aF]: c, [aG]: as }], rules: [{ [aE]: [{ [aF]: d, [aG]: [F, "snow"] }, G, H], rules: [{ [aE]: at, rules: [{ [aE]: au, error: "S3 Snow does not support DualStack", [aD]: f }, { [aE]: av, error: "S3 Snow does not support FIPS", [aD]: f }, { endpoint: { url: "{url#scheme}://{url#authority}", properties: K, headers: L }, [aD]: h }], [aD]: i }], [aD]: i }, { [aE]: [{ [aF]: c, [aG]: [M] }], rules: [{ [aE]: at, rules: [N, O, T, { [aE]: [{ [aF]: k, [aG]: [{ [aF]: l, [aG]: [M, a] }] }], error: "OutpostId must only contain a-z, A-Z, 0-9 and `-`.", [aD]: f }, { [aE]: aw, rules: [{ [aE]: au, error: "Invalid configuration: Outposts do not support dual-stack", [aD]: f }, { [aE]: ax, endpoint: { url: m, properties: U, headers: L }, [aD]: h }, { [aE]: av, endpoint: { url: "https://s3-outposts-fips.{Region}.{partitionResult#dnsSuffix}", properties: U, headers: L }, [aD]: h }, { endpoint: { url: "https://s3-outposts.{Region}.{partitionResult#dnsSuffix}", properties: U, headers: L }, [aD]: h }], [aD]: i }, V], [aD]: i }], [aD]: i }, { [aE]: [{ [aF]: c, [aG]: ay }, { [aF]: o, [aG]: ay, [aI]: p }], rules: [{ [aE]: [{ [aF]: j, [aG]: [W, q], [aI]: r }, X], rules: [{ [aE]: [{ [aF]: d, [aG]: [{ [aF]: j, [aG]: [W, s] }, n] }], rules: [{ [aE]: au, error: "Invalid configuration: Outpost Access Points do not support dual-stack", [aD]: f }, { [aE]: [{ [aF]: j, [aG]: [W, t], [aI]: u }], rules: [{ [aE]: az, rules: [{ [aE]: [Y, Z, { [aF]: k, [aG]: [{ [aF]: d, [aG]: [aa, g] }] }], error: "Invalid configuration: region from ARN `{accessPointArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", [aD]: f }, { [aE]: at, rules: [{ [aE]: [{ [aF]: e, [aG]: [aa], [aI]: v }], rules: [{ [aE]: aA, rules: [{ [aE]: [{ [aF]: l, [aG]: [aa, b] }], rules: [{ [aE]: [{ [aF]: k, [aG]: [{ [aF]: d, [aG]: [ab, ""] }] }], rules: [{ [aE]: [{ [aF]: l, [aG]: [ab, a] }], rules: [{ [aE]: [R, { [aF]: k, [aG]: [{ [aF]: d, [aG]: [S, w] }] }], error: "Invalid ARN: the accountId specified in the ARN (`{accessPointArn#accountId}`) does not match the parameter (`{AccountId}`)", [aD]: f }, { [aE]: [{ [aF]: j, [aG]: [W, x], [aI]: y }], rules: [{ [aE]: [{ [aF]: j, [aG]: [W, z], [aI]: "accessPointName" }], rules: [{ [aE]: [{ [aF]: d, [aG]: [ac, "accesspoint"] }], rules: [{ [aE]: av, endpoint: { url: "https://s3-outposts-fips.{accessPointArn#region}.{arnPartition#dnsSuffix}", properties: ad, headers: ae }, [aD]: h }, { [aE]: ax, endpoint: { url: m, properties: ad, headers: ae }, [aD]: h }, { endpoint: { url: "https://s3-outposts.{accessPointArn#region}.{arnPartition#dnsSuffix}", properties: ad, headers: ae }, [aD]: h }], [aD]: i }, { error: "Expected an outpost type `accesspoint`, found `{outpostType}`", [aD]: f }], [aD]: i }, { error: "Invalid ARN: expected an access point name", [aD]: f }], [aD]: i }, af], [aD]: i }, { error: "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointArn#accountId}`", [aD]: f }], [aD]: i }, ag], [aD]: i }, { error: "Invalid region in ARN: `{accessPointArn#region}` (invalid DNS name)", [aD]: f }], [aD]: i }, ah], [aD]: i }], [aD]: i }], [aD]: i }, ai], [aD]: i }, aj], [aD]: i }], [aD]: i }, ak], [aD]: i }, { [aE]: [{ [aF]: c, [aG]: aB }, { [aF]: o, [aG]: aB, [aI]: A }], rules: [{ [aE]: [{ [aF]: j, [aG]: [al, q], [aI]: r }, X], rules: [{ [aE]: [{ [aF]: d, [aG]: [{ [aF]: j, [aG]: [al, s] }, n] }], rules: [{ [aE]: au, error: "Invalid configuration: Outpost buckets do not support dual-stack", [aD]: f }, { [aE]: [{ [aF]: j, [aG]: [al, t], [aI]: u }], rules: [{ [aE]: az, rules: [{ [aE]: [Y, Z, { [aF]: k, [aG]: [{ [aF]: d, [aG]: [am, g] }] }], error: "Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", [aD]: f }, { [aE]: [{ [aF]: e, [aG]: [am], [aI]: v }], rules: [{ [aE]: at, rules: [{ [aE]: aA, rules: [{ [aE]: [{ [aF]: l, [aG]: [am, b] }], rules: [{ [aE]: [{ [aF]: k, [aG]: [{ [aF]: d, [aG]: [an, ""] }] }], rules: [{ [aE]: [{ [aF]: l, [aG]: [an, a] }], rules: [{ [aE]: [R, { [aF]: k, [aG]: [{ [aF]: d, [aG]: [S, B] }] }], error: "Invalid ARN: the accountId specified in the ARN (`{bucketArn#accountId}`) does not match the parameter (`{AccountId}`)", [aD]: f }, { [aE]: [{ [aF]: j, [aG]: [al, x], [aI]: y }], rules: [{ [aE]: [{ [aF]: j, [aG]: [al, z], [aI]: "bucketName" }], rules: [{ [aE]: [{ [aF]: d, [aG]: [ac, "bucket"] }], rules: [{ [aE]: av, endpoint: { url: "https://s3-outposts-fips.{bucketArn#region}.{arnPartition#dnsSuffix}", properties: ao, headers: ap }, [aD]: h }, { [aE]: ax, endpoint: { url: m, properties: ao, headers: ap }, [aD]: h }, { endpoint: { url: "https://s3-outposts.{bucketArn#region}.{arnPartition#dnsSuffix}", properties: ao, headers: ap }, [aD]: h }], [aD]: i }, { error: "Invalid ARN: Expected an outpost type `bucket`, found `{outpostType}`", [aD]: f }], [aD]: i }, { error: "Invalid ARN: expected a bucket name", [aD]: f }], [aD]: i }, af], [aD]: i }, { error: "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`", [aD]: f }], [aD]: i }, ag], [aD]: i }, { error: "Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)", [aD]: f }], [aD]: i }, ah], [aD]: i }], [aD]: i }], [aD]: i }, ai], [aD]: i }, aj], [aD]: i }], [aD]: i }, ak], [aD]: i }, { [aE]: at, rules: [{ [aE]: aw, rules: [N, O, T, { [aE]: ax, rules: [{ [aE]: au, error: "Invalid Configuration: DualStack and custom endpoint are not supported", [aD]: f }, { [aE]: [P, Q, R], endpoint: { url: "{url#scheme}://{AccountId}.{url#authority}{url#path}", properties: K, headers: L }, [aD]: h }, { endpoint: { url: m, properties: K, headers: L }, [aD]: h }], [aD]: i }, { [aE]: [J, I, P, Q, R], endpoint: { url: "https://{AccountId}.s3-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", properties: K, headers: L }, [aD]: h }, { [aE]: [J, I], endpoint: { url: "https://s3-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", properties: K, headers: L }, [aD]: h }, { [aE]: [J, aq, P, Q, R], endpoint: { url: "https://{AccountId}.s3-control-fips.{Region}.{partitionResult#dnsSuffix}", properties: K, headers: L }, [aD]: h }, { [aE]: [J, aq], endpoint: { url: "https://s3-control-fips.{Region}.{partitionResult#dnsSuffix}", properties: K, headers: L }, [aD]: h }, { [aE]: [ar, I, P, Q, R], endpoint: { url: "https://{AccountId}.s3-control.dualstack.{Region}.{partitionResult#dnsSuffix}", properties: K, headers: L }, [aD]: h }, { [aE]: [ar, I], endpoint: { url: "https://s3-control.dualstack.{Region}.{partitionResult#dnsSuffix}", properties: K, headers: L }, [aD]: h }, { [aE]: [ar, aq, P, Q, R], endpoint: { url: "https://{AccountId}.s3-control.{Region}.{partitionResult#dnsSuffix}", properties: K, headers: L }, [aD]: h }, { [aE]: [ar, aq], endpoint: { url: "https://s3-control.{Region}.{partitionResult#dnsSuffix}", properties: K, headers: L }, [aD]: h }], [aD]: i }, V], [aD]: i }], [aD]: i }, { error: "Region must be set", [aD]: f }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
|
+
const core_1 = require("@aws-sdk/core");
|
|
7
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
8
9
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
9
10
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
@@ -23,6 +24,7 @@ const getRuntimeConfig = (config) => {
|
|
|
23
24
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
24
25
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
25
26
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
27
|
+
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
26
28
|
return {
|
|
27
29
|
...clientSharedValues,
|
|
28
30
|
...config,
|
|
@@ -6,18 +6,20 @@ const url_parser_1 = require("@smithy/url-parser");
|
|
|
6
6
|
const util_base64_1 = require("@smithy/util-base64");
|
|
7
7
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
8
8
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
9
|
-
const getRuntimeConfig = (config) =>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
const getRuntimeConfig = (config) => {
|
|
10
|
+
return {
|
|
11
|
+
apiVersion: "2018-08-20",
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
14
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
16
|
+
extensions: config?.extensions ?? [],
|
|
17
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
18
|
+
serviceId: config?.serviceId ?? "S3 Control",
|
|
19
|
+
signingEscapePath: config?.signingEscapePath ?? false,
|
|
20
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
21
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
22
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
23
|
+
};
|
|
24
|
+
};
|
|
23
25
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const aC = "required", aD = "type", aE = "conditions", aF = "fn", aG = "argv", aH = "ref", aI = "assign", aJ = "authSchemes", aK = "disableDoubleEncoding", aL = "name", aM = "signingName", aN = "signingRegion", aO = "x-amz-account-id", aP = "x-amz-outpost-id";
|
|
2
|
-
const a = false, b = true, c = "isSet", d = "
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region: C, UseFIPS: D, UseDualStack: D, Endpoint: C, AccountId: C, RequiresAccountId: E, OutpostId: C, Bucket: C, AccessPointName: C, UseArnRegion: E }, rules: [{ [aE]: [{ [aF]: c, [aG]: as }],
|
|
2
|
+
const a = false, b = true, c = "isSet", d = "stringEquals", e = "aws.partition", f = "error", g = "{Region}", h = "endpoint", i = "tree", j = "getAttr", k = "not", l = "isValidHostLabel", m = "{url#scheme}://{url#authority}{url#path}", n = "s3-outposts", o = "aws.parseArn", p = "accessPointArn", q = "resourceId[0]", r = "arnType", s = "service", t = "resourceId[1]", u = "outpostId", v = "arnPartition", w = "{accessPointArn#accountId}", x = "resourceId[2]", y = "outpostType", z = "resourceId[3]", A = "bucketArn", B = "{bucketArn#accountId}", C = { [aC]: false, [aD]: "String" }, D = { [aC]: true, "default": false, [aD]: "Boolean" }, E = { [aC]: false, [aD]: "Boolean" }, F = { [aH]: "Region" }, G = { [aF]: c, [aG]: [{ [aH]: "Endpoint" }] }, H = { [aF]: "parseURL", [aG]: [{ [aH]: "Endpoint" }], [aI]: "url" }, I = { [aF]: "booleanEquals", [aG]: [{ [aH]: "UseDualStack" }, true] }, J = { [aF]: "booleanEquals", [aG]: [{ [aH]: "UseFIPS" }, true] }, K = { [aJ]: [{ [aK]: true, [aL]: "sigv4", [aM]: "s3", [aN]: g }] }, L = {}, M = { [aH]: "OutpostId" }, N = { [aE]: [J, { [aF]: d, [aG]: [{ [aF]: j, [aG]: [{ [aH]: "partitionResult" }, "name"] }, "aws-cn"] }], [f]: "Partition does not support FIPS", [aD]: f }, O = { [aE]: [{ [aF]: c, [aG]: [{ [aH]: "RequiresAccountId" }] }, { [aF]: "booleanEquals", [aG]: [{ [aH]: "RequiresAccountId" }, true] }, { [aF]: k, [aG]: [{ [aF]: c, [aG]: [{ [aH]: "AccountId" }] }] }], [f]: "AccountId is required but not set", [aD]: f }, P = { [aF]: c, [aG]: [{ [aH]: "RequiresAccountId" }] }, Q = { [aF]: "booleanEquals", [aG]: [{ [aH]: "RequiresAccountId" }, true] }, R = { [aF]: c, [aG]: [{ [aH]: "AccountId" }] }, S = { [aH]: "AccountId" }, T = { [aE]: [R, { [aF]: k, [aG]: [{ [aF]: l, [aG]: [S, false] }] }], [f]: "AccountId must only contain a-z, A-Z, 0-9 and `-`.", [aD]: f }, U = { [aJ]: [{ [aK]: true, [aL]: "sigv4", [aM]: n, [aN]: g }] }, V = { [f]: "Invalid region: region was not a valid DNS name.", [aD]: f }, W = { [aH]: p }, X = { [aF]: k, [aG]: [{ [aF]: d, [aG]: [{ [aH]: r }, ""] }] }, Y = { [aF]: c, [aG]: [{ [aH]: "UseArnRegion" }] }, Z = { [aF]: "booleanEquals", [aG]: [{ [aH]: "UseArnRegion" }, false] }, aa = { [aF]: j, [aG]: [W, "region"] }, ab = { [aF]: j, [aG]: [W, "accountId"] }, ac = { [aH]: y }, ad = { [aJ]: [{ [aK]: true, [aL]: "sigv4", [aM]: n, [aN]: "{accessPointArn#region}" }] }, ae = { [aO]: [w], [aP]: ["{outpostId}"] }, af = { [f]: "Invalid ARN: Expected a 4-component resource", [aD]: f }, ag = { [f]: "Invalid ARN: missing account ID", [aD]: f }, ah = { [f]: "Client was configured for partition `{partitionResult#name}` but ARN has `{arnPartition#name}`", [aD]: f }, ai = { [f]: "Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`., found: `{outpostId}`", [aD]: f }, aj = { [f]: "Invalid ARN: The Outpost Id was not set", [aD]: f }, ak = { [f]: "Invalid ARN: No ARN type specified", [aD]: f }, al = { [aH]: A }, am = { [aF]: j, [aG]: [al, "region"] }, an = { [aF]: j, [aG]: [al, "accountId"] }, ao = { [aJ]: [{ [aK]: true, [aL]: "sigv4", [aM]: n, [aN]: "{bucketArn#region}" }] }, ap = { [aO]: [B], [aP]: ["{outpostId}"] }, aq = { [aF]: "booleanEquals", [aG]: [{ [aH]: "UseDualStack" }, false] }, ar = { [aF]: "booleanEquals", [aG]: [{ [aH]: "UseFIPS" }, false] }, as = [F], at = [{ [aF]: e, [aG]: [F], [aI]: "partitionResult" }], au = [I], av = [J], aw = [{ [aF]: l, [aG]: [F, true] }], ax = [G, H], ay = [{ [aH]: "AccessPointName" }], az = [{ [aF]: l, [aG]: [{ [aH]: u }, false] }], aA = [{ [aF]: d, [aG]: [{ [aF]: j, [aG]: [{ [aH]: v }, "name"] }, { [aF]: j, [aG]: [{ [aH]: "partitionResult" }, "name"] }] }], aB = [{ [aH]: "Bucket" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: C, UseFIPS: D, UseDualStack: D, Endpoint: C, AccountId: C, RequiresAccountId: E, OutpostId: C, Bucket: C, AccessPointName: C, UseArnRegion: E }, rules: [{ [aE]: [{ [aF]: c, [aG]: as }], rules: [{ [aE]: [{ [aF]: d, [aG]: [F, "snow"] }, G, H], rules: [{ [aE]: at, rules: [{ [aE]: au, error: "S3 Snow does not support DualStack", [aD]: f }, { [aE]: av, error: "S3 Snow does not support FIPS", [aD]: f }, { endpoint: { url: "{url#scheme}://{url#authority}", properties: K, headers: L }, [aD]: h }], [aD]: i }], [aD]: i }, { [aE]: [{ [aF]: c, [aG]: [M] }], rules: [{ [aE]: at, rules: [N, O, T, { [aE]: [{ [aF]: k, [aG]: [{ [aF]: l, [aG]: [M, a] }] }], error: "OutpostId must only contain a-z, A-Z, 0-9 and `-`.", [aD]: f }, { [aE]: aw, rules: [{ [aE]: au, error: "Invalid configuration: Outposts do not support dual-stack", [aD]: f }, { [aE]: ax, endpoint: { url: m, properties: U, headers: L }, [aD]: h }, { [aE]: av, endpoint: { url: "https://s3-outposts-fips.{Region}.{partitionResult#dnsSuffix}", properties: U, headers: L }, [aD]: h }, { endpoint: { url: "https://s3-outposts.{Region}.{partitionResult#dnsSuffix}", properties: U, headers: L }, [aD]: h }], [aD]: i }, V], [aD]: i }], [aD]: i }, { [aE]: [{ [aF]: c, [aG]: ay }, { [aF]: o, [aG]: ay, [aI]: p }], rules: [{ [aE]: [{ [aF]: j, [aG]: [W, q], [aI]: r }, X], rules: [{ [aE]: [{ [aF]: d, [aG]: [{ [aF]: j, [aG]: [W, s] }, n] }], rules: [{ [aE]: au, error: "Invalid configuration: Outpost Access Points do not support dual-stack", [aD]: f }, { [aE]: [{ [aF]: j, [aG]: [W, t], [aI]: u }], rules: [{ [aE]: az, rules: [{ [aE]: [Y, Z, { [aF]: k, [aG]: [{ [aF]: d, [aG]: [aa, g] }] }], error: "Invalid configuration: region from ARN `{accessPointArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", [aD]: f }, { [aE]: at, rules: [{ [aE]: [{ [aF]: e, [aG]: [aa], [aI]: v }], rules: [{ [aE]: aA, rules: [{ [aE]: [{ [aF]: l, [aG]: [aa, b] }], rules: [{ [aE]: [{ [aF]: k, [aG]: [{ [aF]: d, [aG]: [ab, ""] }] }], rules: [{ [aE]: [{ [aF]: l, [aG]: [ab, a] }], rules: [{ [aE]: [R, { [aF]: k, [aG]: [{ [aF]: d, [aG]: [S, w] }] }], error: "Invalid ARN: the accountId specified in the ARN (`{accessPointArn#accountId}`) does not match the parameter (`{AccountId}`)", [aD]: f }, { [aE]: [{ [aF]: j, [aG]: [W, x], [aI]: y }], rules: [{ [aE]: [{ [aF]: j, [aG]: [W, z], [aI]: "accessPointName" }], rules: [{ [aE]: [{ [aF]: d, [aG]: [ac, "accesspoint"] }], rules: [{ [aE]: av, endpoint: { url: "https://s3-outposts-fips.{accessPointArn#region}.{arnPartition#dnsSuffix}", properties: ad, headers: ae }, [aD]: h }, { [aE]: ax, endpoint: { url: m, properties: ad, headers: ae }, [aD]: h }, { endpoint: { url: "https://s3-outposts.{accessPointArn#region}.{arnPartition#dnsSuffix}", properties: ad, headers: ae }, [aD]: h }], [aD]: i }, { error: "Expected an outpost type `accesspoint`, found `{outpostType}`", [aD]: f }], [aD]: i }, { error: "Invalid ARN: expected an access point name", [aD]: f }], [aD]: i }, af], [aD]: i }, { error: "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointArn#accountId}`", [aD]: f }], [aD]: i }, ag], [aD]: i }, { error: "Invalid region in ARN: `{accessPointArn#region}` (invalid DNS name)", [aD]: f }], [aD]: i }, ah], [aD]: i }], [aD]: i }], [aD]: i }, ai], [aD]: i }, aj], [aD]: i }], [aD]: i }, ak], [aD]: i }, { [aE]: [{ [aF]: c, [aG]: aB }, { [aF]: o, [aG]: aB, [aI]: A }], rules: [{ [aE]: [{ [aF]: j, [aG]: [al, q], [aI]: r }, X], rules: [{ [aE]: [{ [aF]: d, [aG]: [{ [aF]: j, [aG]: [al, s] }, n] }], rules: [{ [aE]: au, error: "Invalid configuration: Outpost buckets do not support dual-stack", [aD]: f }, { [aE]: [{ [aF]: j, [aG]: [al, t], [aI]: u }], rules: [{ [aE]: az, rules: [{ [aE]: [Y, Z, { [aF]: k, [aG]: [{ [aF]: d, [aG]: [am, g] }] }], error: "Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`", [aD]: f }, { [aE]: [{ [aF]: e, [aG]: [am], [aI]: v }], rules: [{ [aE]: at, rules: [{ [aE]: aA, rules: [{ [aE]: [{ [aF]: l, [aG]: [am, b] }], rules: [{ [aE]: [{ [aF]: k, [aG]: [{ [aF]: d, [aG]: [an, ""] }] }], rules: [{ [aE]: [{ [aF]: l, [aG]: [an, a] }], rules: [{ [aE]: [R, { [aF]: k, [aG]: [{ [aF]: d, [aG]: [S, B] }] }], error: "Invalid ARN: the accountId specified in the ARN (`{bucketArn#accountId}`) does not match the parameter (`{AccountId}`)", [aD]: f }, { [aE]: [{ [aF]: j, [aG]: [al, x], [aI]: y }], rules: [{ [aE]: [{ [aF]: j, [aG]: [al, z], [aI]: "bucketName" }], rules: [{ [aE]: [{ [aF]: d, [aG]: [ac, "bucket"] }], rules: [{ [aE]: av, endpoint: { url: "https://s3-outposts-fips.{bucketArn#region}.{arnPartition#dnsSuffix}", properties: ao, headers: ap }, [aD]: h }, { [aE]: ax, endpoint: { url: m, properties: ao, headers: ap }, [aD]: h }, { endpoint: { url: "https://s3-outposts.{bucketArn#region}.{arnPartition#dnsSuffix}", properties: ao, headers: ap }, [aD]: h }], [aD]: i }, { error: "Invalid ARN: Expected an outpost type `bucket`, found `{outpostType}`", [aD]: f }], [aD]: i }, { error: "Invalid ARN: expected a bucket name", [aD]: f }], [aD]: i }, af], [aD]: i }, { error: "Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`", [aD]: f }], [aD]: i }, ag], [aD]: i }, { error: "Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)", [aD]: f }], [aD]: i }, ah], [aD]: i }], [aD]: i }], [aD]: i }, ai], [aD]: i }, aj], [aD]: i }], [aD]: i }, ak], [aD]: i }, { [aE]: at, rules: [{ [aE]: aw, rules: [N, O, T, { [aE]: ax, rules: [{ [aE]: au, error: "Invalid Configuration: DualStack and custom endpoint are not supported", [aD]: f }, { [aE]: [P, Q, R], endpoint: { url: "{url#scheme}://{AccountId}.{url#authority}{url#path}", properties: K, headers: L }, [aD]: h }, { endpoint: { url: m, properties: K, headers: L }, [aD]: h }], [aD]: i }, { [aE]: [J, I, P, Q, R], endpoint: { url: "https://{AccountId}.s3-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", properties: K, headers: L }, [aD]: h }, { [aE]: [J, I], endpoint: { url: "https://s3-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}", properties: K, headers: L }, [aD]: h }, { [aE]: [J, aq, P, Q, R], endpoint: { url: "https://{AccountId}.s3-control-fips.{Region}.{partitionResult#dnsSuffix}", properties: K, headers: L }, [aD]: h }, { [aE]: [J, aq], endpoint: { url: "https://s3-control-fips.{Region}.{partitionResult#dnsSuffix}", properties: K, headers: L }, [aD]: h }, { [aE]: [ar, I, P, Q, R], endpoint: { url: "https://{AccountId}.s3-control.dualstack.{Region}.{partitionResult#dnsSuffix}", properties: K, headers: L }, [aD]: h }, { [aE]: [ar, I], endpoint: { url: "https://s3-control.dualstack.{Region}.{partitionResult#dnsSuffix}", properties: K, headers: L }, [aD]: h }, { [aE]: [ar, aq, P, Q, R], endpoint: { url: "https://{AccountId}.s3-control.{Region}.{partitionResult#dnsSuffix}", properties: K, headers: L }, [aD]: h }, { [aE]: [ar, aq], endpoint: { url: "https://s3-control.{Region}.{partitionResult#dnsSuffix}", properties: K, headers: L }, [aD]: h }], [aD]: i }, V], [aD]: i }], [aD]: i }, { error: "Region must be set", [aD]: f }] };
|
|
4
4
|
export const ruleSet = _data;
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
4
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
5
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
5
6
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
@@ -19,6 +20,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
19
20
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
21
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
21
22
|
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
23
|
+
awsCheckVersion(process.version);
|
|
22
24
|
return {
|
|
23
25
|
...clientSharedValues,
|
|
24
26
|
...config,
|
|
@@ -3,17 +3,19 @@ import { parseUrl } from "@smithy/url-parser";
|
|
|
3
3
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
4
4
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
5
5
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
6
|
-
export const getRuntimeConfig = (config) =>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
export const getRuntimeConfig = (config) => {
|
|
7
|
+
return {
|
|
8
|
+
apiVersion: "2018-08-20",
|
|
9
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
10
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
11
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
13
|
+
extensions: config?.extensions ?? [],
|
|
14
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
15
|
+
serviceId: config?.serviceId ?? "S3 Control",
|
|
16
|
+
signingEscapePath: config?.signingEscapePath ?? false,
|
|
17
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
18
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
19
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
20
|
+
};
|
|
21
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-s3-control",
|
|
3
3
|
"description": "AWS SDK for JavaScript S3 Control Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.436.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",
|
|
@@ -23,8 +23,9 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
26
|
-
"@aws-sdk/client-sts": "3.
|
|
27
|
-
"@aws-sdk/
|
|
26
|
+
"@aws-sdk/client-sts": "3.436.0",
|
|
27
|
+
"@aws-sdk/core": "3.436.0",
|
|
28
|
+
"@aws-sdk/credential-provider-node": "3.436.0",
|
|
28
29
|
"@aws-sdk/middleware-host-header": "3.433.0",
|
|
29
30
|
"@aws-sdk/middleware-logger": "3.433.0",
|
|
30
31
|
"@aws-sdk/middleware-recursion-detection": "3.433.0",
|