UNPKG

@aws-sdk/client-dynamodb

Version:

AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native

137 lines (136 loc) 5.34 kB
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints"); const I = "ref", J = "argv"; const a = -1, b = true, c = false, d = "isSet", e = "booleanEquals", f = "PartitionResult", g = "stringEquals", h = "getAttr", i = "https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}", j = "aws.parseArn", k = (n) => "ParsedArn_ssa_" + n + "", l = "service", m = "dynamodb", n = "isValidHostLabel", o = "accountId", p = "FirstArn", q = (n) => "https://{ParsedArn_ssa_" + n + "#accountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}", s = (n) => "https://{ParsedArn_ssa_" + n + "#accountId}.ddb.{Region}.{PartitionResult#dnsSuffix}", t = { [I]: "Endpoint" }, u = { [I]: "Region" }, v = { [I]: f }, w = { [I]: "AccountIdEndpointMode" }, x = { "fn": h, [J]: [v, "name"] }, y = { "fn": h, [J]: [{ [I]: "ParsedArn_ssa_2" }, "region"] }, z = { [I]: "ParsedArn_ssa_2" }, A = { [I]: "ResourceArnList" }, B = { "fn": h, [J]: [{ [I]: "ParsedArn_ssa_1" }, "region"] }, C = { [I]: "ParsedArn_ssa_1" }, D = { [I]: "AccountId" }, E = {}, F = { "metricValues": ["O"] }, G = [u], H = [{ [I]: "ResourceArn" }]; const _data = { conditions: [ [d, G], [d, [t]], [e, [{ [I]: "UseFIPS" }, b]], ["aws.partition", G, f], [g, [u, "local"]], [e, [{ fn: h, [J]: [v, "supportsFIPS"] }, b]], [e, [{ [I]: "UseDualStack" }, b]], [e, [{ fn: h, [J]: [v, "supportsDualStack"] }, b]], [g, [i, t]], [d, [w]], [g, [x, "aws"]], [g, [w, "disabled"]], [d, H], [j, H, k(2)], [g, [y, u]], [g, [{ fn: h, [J]: [z, l] }, m]], [n, [{ fn: h, [J]: [z, o] }, c]], [n, [y, c]], [d, [A]], [h, [A, "[0]"], p], [j, [{ [I]: p }], k(1)], [g, [B, u]], [g, [{ fn: h, [J]: [C, l] }, m]], [n, [{ fn: h, [J]: [C, o] }, c]], [n, [B, c]], [d, [D]], [g, [w, "required"]], [n, [D, c]], [g, [x, "aws-us-gov"]] ], results: [ [a], [a, "Invalid Configuration: FIPS and custom endpoint are not supported"], [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"], [a, "Endpoint override is not supported for dual-stack endpoints. Please enable dual-stack functionality by enabling the configuration. For more details, see: https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html"], ["{Endpoint}", E], [a, "Invalid Configuration: FIPS and local endpoint are not supported"], [a, "Invalid Configuration: Dualstack and local endpoint are not supported"], ["http://localhost:8000", { authSchemes: [{ name: "sigv4", signingName: m, signingRegion: "us-east-1" }] }], [a, "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"], ["https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", E], [a, "FIPS and DualStack are enabled, but this partition does not support one or both"], ["https://dynamodb.{Region}.{PartitionResult#dnsSuffix}", E], ["https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}", E], [a, "FIPS is enabled but this partition does not support FIPS"], [q(2), F], [q(1), F], ["https://{AccountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}", F], [a, "Credentials-sourced account ID parameter is invalid"], [a, "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"], [a, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition"], [i, E], [a, "DualStack is enabled but this partition does not support DualStack"], [s(2), F], [s(1), F], ["https://{AccountId}.ddb.{Region}.{PartitionResult#dnsSuffix}", F], [a, "Invalid Configuration: Missing Region"] ] }; const root = 2; const r = 100_000_000; const nodes = new Int32Array([ -1, 1, -1, 0, 5, 3, 1, 4, r + 25, 2, r + 1, 65, 1, 63, 6, 2, 52, 7, 3, 8, r + 25, 4, 51, 9, 6, 30, 10, 9, 11, r + 11, 10, 13, 12, 26, r + 19, r + 11, 11, 29, 14, 12, 15, 20, 13, 16, 20, 14, 17, 20, 15, 18, 20, 16, 19, 20, 17, r + 22, 20, 18, 21, 27, 19, 22, 27, 20, 23, 27, 21, 24, 27, 22, 25, 27, 23, 26, 27, 24, r + 23, 27, 25, 28, 29, 27, r + 24, r + 17, 26, r + 18, r + 11, 7, 31, r + 21, 9, 32, r + 20, 10, 34, 33, 26, r + 19, r + 20, 11, 50, 35, 12, 36, 41, 13, 37, 41, 14, 38, 41, 15, 39, 41, 16, 40, 41, 17, r + 14, 41, 18, 42, 48, 19, 43, 48, 20, 44, 48, 21, 45, 48, 22, 46, 48, 23, 47, 48, 24, r + 15, 48, 25, 49, 50, 27, r + 16, r + 17, 26, r + 18, r + 20, 6, r + 6, r + 7, 3, 53, r + 25, 4, r + 5, 54, 5, 56, 55, 6, r + 10, r + 13, 6, 60, 57, 9, 58, 59, 26, r + 8, 59, 28, r + 11, r + 12, 7, 61, r + 10, 9, 62, r + 9, 26, r + 8, r + 9, 2, r + 1, 64, 3, 66, 65, 6, r + 2, r + 4, 6, r + 2, 67, 8, r + 3, r + 4, ]); exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);