@aws-sdk/nested-clients 3.995.0 → 3.996.1
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/cognito-identity.d.ts +7 -0
- package/cognito-identity.js +5 -0
- package/dist-cjs/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +60 -0
- package/dist-cjs/submodules/cognito-identity/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/submodules/cognito-identity/endpoint/ruleset.js +146 -0
- package/dist-cjs/submodules/cognito-identity/index.js +174 -0
- package/dist-cjs/submodules/cognito-identity/models/CognitoIdentityServiceException.js +12 -0
- package/dist-cjs/submodules/cognito-identity/models/errors.js +121 -0
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.browser.js +38 -0
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.js +53 -0
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.native.js +15 -0
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.shared.js +50 -0
- package/dist-cjs/submodules/cognito-identity/schemas/schemas_0.js +110 -0
- package/dist-cjs/submodules/signin/endpoint/ruleset.js +128 -2
- package/dist-cjs/submodules/signin/index.js +17 -18
- package/dist-cjs/submodules/sso/auth/httpAuthSchemeProvider.js +56 -0
- package/dist-cjs/submodules/sso/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/submodules/sso/endpoint/ruleset.js +106 -0
- package/dist-cjs/submodules/sso/index.js +160 -0
- package/dist-cjs/submodules/sso/models/SSOServiceException.js +12 -0
- package/dist-cjs/submodules/sso/models/errors.js +56 -0
- package/dist-cjs/submodules/sso/runtimeConfig.browser.js +38 -0
- package/dist-cjs/submodules/sso/runtimeConfig.js +53 -0
- package/dist-cjs/submodules/sso/runtimeConfig.native.js +15 -0
- package/dist-cjs/submodules/sso/runtimeConfig.shared.js +49 -0
- package/dist-cjs/submodules/sso/schemas/schemas_0.js +90 -0
- package/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +101 -2
- package/dist-cjs/submodules/sso-oidc/index.js +17 -18
- package/dist-cjs/submodules/sts/endpoint/ruleset.js +140 -2
- package/dist-cjs/submodules/sts/index.js +23 -17
- package/dist-es/submodules/cognito-identity/CognitoIdentity.js +11 -0
- package/dist-es/submodules/cognito-identity/CognitoIdentityClient.js +50 -0
- package/dist-es/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +54 -0
- package/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js +16 -0
- package/dist-es/submodules/cognito-identity/commands/GetIdCommand.js +16 -0
- package/dist-es/submodules/cognito-identity/commands/index.js +2 -0
- package/dist-es/submodules/cognito-identity/endpoint/EndpointParameters.js +13 -0
- package/dist-es/submodules/cognito-identity/endpoint/endpointResolver.js +14 -0
- package/dist-es/submodules/cognito-identity/endpoint/ruleset.js +143 -0
- package/dist-es/submodules/cognito-identity/extensionConfiguration.js +1 -0
- package/dist-es/submodules/cognito-identity/index.js +7 -0
- package/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +8 -0
- package/dist-es/submodules/cognito-identity/models/errors.js +109 -0
- package/dist-es/submodules/cognito-identity/models/models_0.js +1 -0
- package/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +33 -0
- package/dist-es/submodules/cognito-identity/runtimeConfig.js +48 -0
- package/dist-es/submodules/cognito-identity/runtimeConfig.native.js +11 -0
- package/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +46 -0
- package/dist-es/submodules/cognito-identity/runtimeExtensions.js +9 -0
- package/dist-es/submodules/cognito-identity/schemas/schemas_0.js +107 -0
- package/dist-es/submodules/signin/Signin.js +1 -1
- package/dist-es/submodules/signin/endpoint/ruleset.js +128 -2
- package/dist-es/submodules/sso/SSO.js +9 -0
- package/dist-es/submodules/sso/SSOClient.js +50 -0
- package/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +50 -0
- package/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js +16 -0
- package/dist-es/submodules/sso/commands/index.js +1 -0
- package/dist-es/submodules/sso/endpoint/EndpointParameters.js +13 -0
- package/dist-es/submodules/sso/endpoint/endpointResolver.js +14 -0
- package/dist-es/submodules/sso/endpoint/ruleset.js +103 -0
- package/dist-es/submodules/sso/extensionConfiguration.js +1 -0
- package/dist-es/submodules/sso/index.js +7 -0
- package/dist-es/submodules/sso/models/SSOServiceException.js +8 -0
- package/dist-es/submodules/sso/models/errors.js +49 -0
- package/dist-es/submodules/sso/models/models_0.js +1 -0
- package/dist-es/submodules/sso/runtimeConfig.browser.js +33 -0
- package/dist-es/submodules/sso/runtimeConfig.js +48 -0
- package/dist-es/submodules/sso/runtimeConfig.native.js +11 -0
- package/dist-es/submodules/sso/runtimeConfig.shared.js +45 -0
- package/dist-es/submodules/sso/runtimeExtensions.js +9 -0
- package/dist-es/submodules/sso/schemas/schemas_0.js +87 -0
- package/dist-es/submodules/sso-oidc/endpoint/ruleset.js +101 -2
- package/dist-es/submodules/sts/defaultStsRoleAssumers.js +1 -1
- package/dist-es/submodules/sts/endpoint/ruleset.js +140 -2
- package/dist-types/submodules/cognito-identity/CognitoIdentity.d.ts +38 -0
- package/dist-types/submodules/cognito-identity/CognitoIdentityClient.d.ts +198 -0
- package/dist-types/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts +30 -0
- package/dist-types/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +120 -0
- package/dist-types/submodules/cognito-identity/commands/GetIdCommand.d.ts +107 -0
- package/dist-types/submodules/cognito-identity/commands/index.d.ts +2 -0
- package/dist-types/submodules/cognito-identity/endpoint/EndpointParameters.d.ts +50 -0
- package/dist-types/submodules/cognito-identity/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/submodules/cognito-identity/endpoint/ruleset.d.ts +2 -0
- package/dist-types/submodules/cognito-identity/extensionConfiguration.d.ts +9 -0
- package/dist-types/submodules/cognito-identity/index.d.ts +29 -0
- package/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +14 -0
- package/dist-types/submodules/cognito-identity/models/errors.d.ts +119 -0
- package/dist-types/submodules/cognito-identity/models/models_0.d.ts +136 -0
- package/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +62 -0
- package/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +62 -0
- package/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +61 -0
- package/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +38 -0
- package/dist-types/submodules/cognito-identity/runtimeExtensions.d.ts +17 -0
- package/dist-types/submodules/cognito-identity/schemas/schemas_0.d.ts +25 -0
- package/dist-types/submodules/signin/Signin.d.ts +1 -1
- package/dist-types/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +2 -1
- package/dist-types/submodules/signin/endpoint/ruleset.d.ts +1 -1
- package/dist-types/submodules/signin/models/errors.d.ts +1 -1
- package/dist-types/submodules/sso/SSO.d.ts +32 -0
- package/dist-types/submodules/sso/SSOClient.d.ts +198 -0
- package/dist-types/submodules/sso/auth/httpAuthExtensionConfiguration.d.ts +30 -0
- package/dist-types/submodules/sso/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +97 -0
- package/dist-types/submodules/sso/commands/index.d.ts +1 -0
- package/dist-types/submodules/sso/endpoint/EndpointParameters.d.ts +50 -0
- package/dist-types/submodules/sso/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/submodules/sso/endpoint/ruleset.d.ts +2 -0
- package/dist-types/submodules/sso/extensionConfiguration.d.ts +9 -0
- package/dist-types/submodules/sso/index.d.ts +30 -0
- package/dist-types/submodules/sso/models/SSOServiceException.d.ts +14 -0
- package/dist-types/submodules/sso/models/errors.d.ts +53 -0
- package/dist-types/submodules/sso/models/models_0.d.ts +61 -0
- package/dist-types/submodules/sso/runtimeConfig.browser.d.ts +62 -0
- package/dist-types/submodules/sso/runtimeConfig.d.ts +62 -0
- package/dist-types/submodules/sso/runtimeConfig.native.d.ts +61 -0
- package/dist-types/submodules/sso/runtimeConfig.shared.d.ts +38 -0
- package/dist-types/submodules/sso/runtimeExtensions.d.ts +17 -0
- package/dist-types/submodules/sso/schemas/schemas_0.d.ts +17 -0
- package/dist-types/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +2 -1
- package/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/models/errors.d.ts +1 -1
- package/dist-types/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +2 -1
- package/dist-types/submodules/sts/defaultRoleAssumers.d.ts +3 -3
- package/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +3 -3
- package/dist-types/submodules/sts/endpoint/ruleset.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentity.d.ts +38 -0
- package/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentityClient.d.ts +126 -0
- package/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +51 -0
- package/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +41 -0
- package/dist-types/ts3.4/submodules/cognito-identity/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/submodules/cognito-identity/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/submodules/cognito-identity/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/submodules/cognito-identity/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/submodules/cognito-identity/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/submodules/cognito-identity/index.d.ts +10 -0
- package/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +9 -0
- package/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +68 -0
- package/dist-types/ts3.4/submodules/cognito-identity/models/models_0.d.ts +23 -0
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +122 -0
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +117 -0
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +126 -0
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +60 -0
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeExtensions.d.ts +13 -0
- package/dist-types/ts3.4/submodules/cognito-identity/schemas/schemas_0.d.ts +24 -0
- package/dist-types/ts3.4/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/SSO.d.ts +22 -0
- package/dist-types/ts3.4/submodules/sso/SSOClient.d.ts +117 -0
- package/dist-types/ts3.4/submodules/sso/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/submodules/sso/auth/httpAuthSchemeProvider.d.ts +46 -0
- package/dist-types/ts3.4/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +47 -0
- package/dist-types/ts3.4/submodules/sso/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/submodules/sso/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/submodules/sso/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/submodules/sso/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/submodules/sso/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/submodules/sso/index.d.ts +10 -0
- package/dist-types/ts3.4/submodules/sso/models/SSOServiceException.d.ts +9 -0
- package/dist-types/ts3.4/submodules/sso/models/errors.d.ts +30 -0
- package/dist-types/ts3.4/submodules/sso/models/models_0.d.ts +14 -0
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +120 -0
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +115 -0
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +124 -0
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +58 -0
- package/dist-types/ts3.4/submodules/sso/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/submodules/sso/schemas/schemas_0.d.ts +16 -0
- package/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/package.json +54 -36
- package/sso.d.ts +7 -0
- package/sso.js +5 -0
|
@@ -2,6 +2,144 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
4
|
const F = "required", G = "type", H = "fn", I = "argv", J = "ref";
|
|
5
|
-
const a = false, b = true, c = "booleanEquals", d = "stringEquals", e = "sigv4", f = "sts", g = "us-east-1", h = "endpoint", i = "https://sts.{Region}.{PartitionResult#dnsSuffix}", j = "tree", k = "error", l = "getAttr", m = { [F]: false, [G]: "string" }, n = { [F]: true,
|
|
6
|
-
|
|
5
|
+
const a = false, b = true, c = "booleanEquals", d = "stringEquals", e = "sigv4", f = "sts", g = "us-east-1", h = "endpoint", i = "https://sts.{Region}.{PartitionResult#dnsSuffix}", j = "tree", k = "error", l = "getAttr", m = { [F]: false, [G]: "string" }, n = { [F]: true, default: false, [G]: "boolean" }, o = { [J]: "Endpoint" }, p = { [H]: "isSet", [I]: [{ [J]: "Region" }] }, q = { [J]: "Region" }, r = { [H]: "aws.partition", [I]: [q], assign: "PartitionResult" }, s = { [J]: "UseFIPS" }, t = { [J]: "UseDualStack" }, u = {
|
|
6
|
+
url: "https://sts.amazonaws.com",
|
|
7
|
+
properties: { authSchemes: [{ name: e, signingName: f, signingRegion: g }] },
|
|
8
|
+
headers: {},
|
|
9
|
+
}, v = {}, w = { conditions: [{ [H]: d, [I]: [q, "aws-global"] }], [h]: u, [G]: h }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }, A = { [J]: "PartitionResult" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }, C = [{ [H]: "isSet", [I]: [o] }], D = [x], E = [y];
|
|
10
|
+
const _data = {
|
|
11
|
+
version: "1.0",
|
|
12
|
+
parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n },
|
|
13
|
+
rules: [
|
|
14
|
+
{
|
|
15
|
+
conditions: [
|
|
16
|
+
{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] },
|
|
17
|
+
{ [H]: "not", [I]: C },
|
|
18
|
+
p,
|
|
19
|
+
r,
|
|
20
|
+
{ [H]: c, [I]: [s, a] },
|
|
21
|
+
{ [H]: c, [I]: [t, a] },
|
|
22
|
+
],
|
|
23
|
+
rules: [
|
|
24
|
+
{ conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h },
|
|
25
|
+
{ conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h },
|
|
26
|
+
{ conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h },
|
|
27
|
+
{ conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h },
|
|
28
|
+
w,
|
|
29
|
+
{ conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h },
|
|
30
|
+
{ conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h },
|
|
31
|
+
{ conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h },
|
|
32
|
+
{ conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h },
|
|
33
|
+
{ conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h },
|
|
34
|
+
{ conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h },
|
|
35
|
+
{ conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h },
|
|
36
|
+
{ conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h },
|
|
37
|
+
{ conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h },
|
|
38
|
+
{ conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h },
|
|
39
|
+
{ conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h },
|
|
40
|
+
{
|
|
41
|
+
endpoint: {
|
|
42
|
+
url: i,
|
|
43
|
+
properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] },
|
|
44
|
+
headers: v,
|
|
45
|
+
},
|
|
46
|
+
[G]: h,
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
[G]: j,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
conditions: C,
|
|
53
|
+
rules: [
|
|
54
|
+
{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k },
|
|
55
|
+
{ conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k },
|
|
56
|
+
{ endpoint: { url: o, properties: v, headers: v }, [G]: h },
|
|
57
|
+
],
|
|
58
|
+
[G]: j,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
conditions: [p],
|
|
62
|
+
rules: [
|
|
63
|
+
{
|
|
64
|
+
conditions: [r],
|
|
65
|
+
rules: [
|
|
66
|
+
{
|
|
67
|
+
conditions: [x, y],
|
|
68
|
+
rules: [
|
|
69
|
+
{
|
|
70
|
+
conditions: [{ [H]: c, [I]: [b, z] }, B],
|
|
71
|
+
rules: [
|
|
72
|
+
{
|
|
73
|
+
endpoint: {
|
|
74
|
+
url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
75
|
+
properties: v,
|
|
76
|
+
headers: v,
|
|
77
|
+
},
|
|
78
|
+
[G]: h,
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
[G]: j,
|
|
82
|
+
},
|
|
83
|
+
{ error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k },
|
|
84
|
+
],
|
|
85
|
+
[G]: j,
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
conditions: D,
|
|
89
|
+
rules: [
|
|
90
|
+
{
|
|
91
|
+
conditions: [{ [H]: c, [I]: [z, b] }],
|
|
92
|
+
rules: [
|
|
93
|
+
{
|
|
94
|
+
conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, "name"] }, "aws-us-gov"] }],
|
|
95
|
+
endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v },
|
|
96
|
+
[G]: h,
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
endpoint: {
|
|
100
|
+
url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
101
|
+
properties: v,
|
|
102
|
+
headers: v,
|
|
103
|
+
},
|
|
104
|
+
[G]: h,
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
[G]: j,
|
|
108
|
+
},
|
|
109
|
+
{ error: "FIPS is enabled but this partition does not support FIPS", [G]: k },
|
|
110
|
+
],
|
|
111
|
+
[G]: j,
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
conditions: E,
|
|
115
|
+
rules: [
|
|
116
|
+
{
|
|
117
|
+
conditions: [B],
|
|
118
|
+
rules: [
|
|
119
|
+
{
|
|
120
|
+
endpoint: {
|
|
121
|
+
url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
122
|
+
properties: v,
|
|
123
|
+
headers: v,
|
|
124
|
+
},
|
|
125
|
+
[G]: h,
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
[G]: j,
|
|
129
|
+
},
|
|
130
|
+
{ error: "DualStack is enabled but this partition does not support DualStack", [G]: k },
|
|
131
|
+
],
|
|
132
|
+
[G]: j,
|
|
133
|
+
},
|
|
134
|
+
w,
|
|
135
|
+
{ endpoint: { url: i, properties: v, headers: v }, [G]: h },
|
|
136
|
+
],
|
|
137
|
+
[G]: j,
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
[G]: j,
|
|
141
|
+
},
|
|
142
|
+
{ error: "Invalid Configuration: Missing Region", [G]: k },
|
|
143
|
+
],
|
|
144
|
+
};
|
|
7
145
|
exports.ruleSet = _data;
|
|
@@ -162,35 +162,41 @@ const decorateDefaultCredentialProvider = (provider) => (input) => provider({
|
|
|
162
162
|
...input,
|
|
163
163
|
});
|
|
164
164
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
get: function () { return smithyClient.Command; }
|
|
168
|
-
});
|
|
169
|
-
Object.defineProperty(exports, "STSServiceException", {
|
|
170
|
-
enumerable: true,
|
|
171
|
-
get: function () { return STSServiceException.STSServiceException; }
|
|
172
|
-
});
|
|
165
|
+
exports.$Command = smithyClient.Command;
|
|
166
|
+
exports.STSServiceException = STSServiceException.STSServiceException;
|
|
173
167
|
exports.AssumeRoleCommand = AssumeRoleCommand;
|
|
174
168
|
exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand;
|
|
175
169
|
exports.STS = STS;
|
|
176
170
|
exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;
|
|
177
171
|
exports.getDefaultRoleAssumer = getDefaultRoleAssumer;
|
|
178
172
|
exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity;
|
|
179
|
-
Object.
|
|
180
|
-
|
|
173
|
+
Object.prototype.hasOwnProperty.call(STSClient, '__proto__') &&
|
|
174
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
175
|
+
Object.defineProperty(exports, '__proto__', {
|
|
181
176
|
enumerable: true,
|
|
182
|
-
|
|
177
|
+
value: STSClient['__proto__']
|
|
183
178
|
});
|
|
179
|
+
|
|
180
|
+
Object.keys(STSClient).forEach(function (k) {
|
|
181
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = STSClient[k];
|
|
184
182
|
});
|
|
185
|
-
Object.
|
|
186
|
-
|
|
183
|
+
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
184
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
185
|
+
Object.defineProperty(exports, '__proto__', {
|
|
187
186
|
enumerable: true,
|
|
188
|
-
|
|
187
|
+
value: schemas_0['__proto__']
|
|
189
188
|
});
|
|
189
|
+
|
|
190
|
+
Object.keys(schemas_0).forEach(function (k) {
|
|
191
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
190
192
|
});
|
|
191
|
-
Object.
|
|
192
|
-
|
|
193
|
+
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
194
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
195
|
+
Object.defineProperty(exports, '__proto__', {
|
|
193
196
|
enumerable: true,
|
|
194
|
-
|
|
197
|
+
value: errors['__proto__']
|
|
195
198
|
});
|
|
199
|
+
|
|
200
|
+
Object.keys(errors).forEach(function (k) {
|
|
201
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
196
202
|
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
|
+
import { CognitoIdentityClient } from "./CognitoIdentityClient";
|
|
3
|
+
import { GetCredentialsForIdentityCommand } from "./commands/GetCredentialsForIdentityCommand";
|
|
4
|
+
import { GetIdCommand } from "./commands/GetIdCommand";
|
|
5
|
+
const commands = {
|
|
6
|
+
GetCredentialsForIdentityCommand,
|
|
7
|
+
GetIdCommand,
|
|
8
|
+
};
|
|
9
|
+
export class CognitoIdentity extends CognitoIdentityClient {
|
|
10
|
+
}
|
|
11
|
+
createAggregatedClient(commands, CognitoIdentity);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
3
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
4
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
|
+
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
8
|
+
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
9
|
+
import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
|
|
10
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
11
|
+
import { Client as __Client, } from "@smithy/smithy-client";
|
|
12
|
+
import { defaultCognitoIdentityHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
13
|
+
import { resolveClientEndpointParameters } from "./endpoint/EndpointParameters";
|
|
14
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
15
|
+
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
16
|
+
export { __Client };
|
|
17
|
+
export class CognitoIdentityClient extends __Client {
|
|
18
|
+
config;
|
|
19
|
+
constructor(...[configuration]) {
|
|
20
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
21
|
+
super(_config_0);
|
|
22
|
+
this.initConfig = _config_0;
|
|
23
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
24
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
25
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
26
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
27
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
28
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
29
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
30
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
31
|
+
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
35
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
36
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
37
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
38
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
39
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
40
|
+
httpAuthSchemeParametersProvider: defaultCognitoIdentityHttpAuthSchemeParametersProvider,
|
|
41
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
42
|
+
"aws.auth#sigv4": config.credentials,
|
|
43
|
+
}),
|
|
44
|
+
}));
|
|
45
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
46
|
+
}
|
|
47
|
+
destroy() {
|
|
48
|
+
super.destroy();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
2
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
3
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
4
|
+
let _credentials = runtimeConfig.credentials;
|
|
5
|
+
return {
|
|
6
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
7
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
8
|
+
if (index === -1) {
|
|
9
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
httpAuthSchemes() {
|
|
16
|
+
return _httpAuthSchemes;
|
|
17
|
+
},
|
|
18
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
19
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
20
|
+
},
|
|
21
|
+
httpAuthSchemeProvider() {
|
|
22
|
+
return _httpAuthSchemeProvider;
|
|
23
|
+
},
|
|
24
|
+
setCredentials(credentials) {
|
|
25
|
+
_credentials = credentials;
|
|
26
|
+
},
|
|
27
|
+
credentials() {
|
|
28
|
+
return _credentials;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export const resolveHttpAuthRuntimeConfig = (config) => {
|
|
33
|
+
return {
|
|
34
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
35
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
36
|
+
credentials: config.credentials(),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { resolveAwsSdkSigV4Config } from "@aws-sdk/core";
|
|
2
|
+
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
3
|
+
export const defaultCognitoIdentityHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
+
return {
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: (await normalizeProvider(config.region)()) ||
|
|
7
|
+
(() => {
|
|
8
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
9
|
+
})(),
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
13
|
+
return {
|
|
14
|
+
schemeId: "aws.auth#sigv4",
|
|
15
|
+
signingProperties: {
|
|
16
|
+
name: "cognito-identity",
|
|
17
|
+
region: authParameters.region,
|
|
18
|
+
},
|
|
19
|
+
propertiesExtractor: (config, context) => ({
|
|
20
|
+
signingProperties: {
|
|
21
|
+
config,
|
|
22
|
+
context,
|
|
23
|
+
},
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
28
|
+
return {
|
|
29
|
+
schemeId: "smithy.api#noAuth",
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export const defaultCognitoIdentityHttpAuthSchemeProvider = (authParameters) => {
|
|
33
|
+
const options = [];
|
|
34
|
+
switch (authParameters.operation) {
|
|
35
|
+
case "GetCredentialsForIdentity": {
|
|
36
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
case "GetId": {
|
|
40
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
default: {
|
|
44
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return options;
|
|
48
|
+
};
|
|
49
|
+
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
50
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
51
|
+
return Object.assign(config_0, {
|
|
52
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
53
|
+
});
|
|
54
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetCredentialsForIdentity$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetCredentialsForIdentityCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {})
|
|
13
|
+
.n("CognitoIdentityClient", "GetCredentialsForIdentityCommand")
|
|
14
|
+
.sc(GetCredentialsForIdentity$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetId$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetIdCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AWSCognitoIdentityService", "GetId", {})
|
|
13
|
+
.n("CognitoIdentityClient", "GetIdCommand")
|
|
14
|
+
.sc(GetId$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
+
return Object.assign(options, {
|
|
3
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
4
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
5
|
+
defaultSigningName: "cognito-identity",
|
|
6
|
+
});
|
|
7
|
+
};
|
|
8
|
+
export const commonParams = {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
|
|
3
|
+
import { ruleSet } from "./ruleset";
|
|
4
|
+
const cache = new EndpointCache({
|
|
5
|
+
size: 50,
|
|
6
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
7
|
+
});
|
|
8
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
|
|
10
|
+
endpointParams: endpointParams,
|
|
11
|
+
logger: context.logger,
|
|
12
|
+
}));
|
|
13
|
+
};
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
const w = "required", x = "fn", y = "argv", z = "ref";
|
|
2
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = "stringEquals", j = { [w]: false, type: "string" }, k = { [w]: true, default: false, type: "boolean" }, l = { [z]: "Endpoint" }, m = { [x]: c, [y]: [{ [z]: "UseFIPS" }, true] }, n = { [x]: c, [y]: [{ [z]: "UseDualStack" }, true] }, o = {}, p = { [z]: "Region" }, q = { [x]: h, [y]: [{ [z]: g }, "supportsFIPS"] }, r = { [z]: g }, s = { [x]: c, [y]: [true, { [x]: h, [y]: [r, "supportsDualStack"] }] }, t = [m], u = [n], v = [p];
|
|
3
|
+
const _data = {
|
|
4
|
+
version: "1.0",
|
|
5
|
+
parameters: { Region: j, UseDualStack: k, UseFIPS: k, Endpoint: j },
|
|
6
|
+
rules: [
|
|
7
|
+
{
|
|
8
|
+
conditions: [{ [x]: b, [y]: [l] }],
|
|
9
|
+
rules: [
|
|
10
|
+
{ conditions: t, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
|
|
11
|
+
{ conditions: u, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d },
|
|
12
|
+
{ endpoint: { url: l, properties: o, headers: o }, type: e },
|
|
13
|
+
],
|
|
14
|
+
type: f,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
conditions: [{ [x]: b, [y]: v }],
|
|
18
|
+
rules: [
|
|
19
|
+
{
|
|
20
|
+
conditions: [{ [x]: "aws.partition", [y]: v, assign: g }],
|
|
21
|
+
rules: [
|
|
22
|
+
{
|
|
23
|
+
conditions: [m, n],
|
|
24
|
+
rules: [
|
|
25
|
+
{
|
|
26
|
+
conditions: [{ [x]: c, [y]: [a, q] }, s],
|
|
27
|
+
rules: [
|
|
28
|
+
{
|
|
29
|
+
conditions: [{ [x]: i, [y]: [p, "us-east-1"] }],
|
|
30
|
+
endpoint: {
|
|
31
|
+
url: "https://cognito-identity-fips.us-east-1.amazonaws.com",
|
|
32
|
+
properties: o,
|
|
33
|
+
headers: o,
|
|
34
|
+
},
|
|
35
|
+
type: e,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
conditions: [{ [x]: i, [y]: [p, "us-east-2"] }],
|
|
39
|
+
endpoint: {
|
|
40
|
+
url: "https://cognito-identity-fips.us-east-2.amazonaws.com",
|
|
41
|
+
properties: o,
|
|
42
|
+
headers: o,
|
|
43
|
+
},
|
|
44
|
+
type: e,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
conditions: [{ [x]: i, [y]: [p, "us-west-1"] }],
|
|
48
|
+
endpoint: {
|
|
49
|
+
url: "https://cognito-identity-fips.us-west-1.amazonaws.com",
|
|
50
|
+
properties: o,
|
|
51
|
+
headers: o,
|
|
52
|
+
},
|
|
53
|
+
type: e,
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
conditions: [{ [x]: i, [y]: [p, "us-west-2"] }],
|
|
57
|
+
endpoint: {
|
|
58
|
+
url: "https://cognito-identity-fips.us-west-2.amazonaws.com",
|
|
59
|
+
properties: o,
|
|
60
|
+
headers: o,
|
|
61
|
+
},
|
|
62
|
+
type: e,
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
endpoint: {
|
|
66
|
+
url: "https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
67
|
+
properties: o,
|
|
68
|
+
headers: o,
|
|
69
|
+
},
|
|
70
|
+
type: e,
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
type: f,
|
|
74
|
+
},
|
|
75
|
+
{ error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d },
|
|
76
|
+
],
|
|
77
|
+
type: f,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
conditions: t,
|
|
81
|
+
rules: [
|
|
82
|
+
{
|
|
83
|
+
conditions: [{ [x]: c, [y]: [q, a] }],
|
|
84
|
+
rules: [
|
|
85
|
+
{
|
|
86
|
+
endpoint: {
|
|
87
|
+
url: "https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
88
|
+
properties: o,
|
|
89
|
+
headers: o,
|
|
90
|
+
},
|
|
91
|
+
type: e,
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
type: f,
|
|
95
|
+
},
|
|
96
|
+
{ error: "FIPS is enabled but this partition does not support FIPS", type: d },
|
|
97
|
+
],
|
|
98
|
+
type: f,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
conditions: u,
|
|
102
|
+
rules: [
|
|
103
|
+
{
|
|
104
|
+
conditions: [s],
|
|
105
|
+
rules: [
|
|
106
|
+
{
|
|
107
|
+
conditions: [{ [x]: i, [y]: ["aws", { [x]: h, [y]: [r, "name"] }] }],
|
|
108
|
+
endpoint: { url: "https://cognito-identity.{Region}.amazonaws.com", properties: o, headers: o },
|
|
109
|
+
type: e,
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
endpoint: {
|
|
113
|
+
url: "https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
114
|
+
properties: o,
|
|
115
|
+
headers: o,
|
|
116
|
+
},
|
|
117
|
+
type: e,
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
type: f,
|
|
121
|
+
},
|
|
122
|
+
{ error: "DualStack is enabled but this partition does not support DualStack", type: d },
|
|
123
|
+
],
|
|
124
|
+
type: f,
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
endpoint: {
|
|
128
|
+
url: "https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",
|
|
129
|
+
properties: o,
|
|
130
|
+
headers: o,
|
|
131
|
+
},
|
|
132
|
+
type: e,
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
type: f,
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
type: f,
|
|
139
|
+
},
|
|
140
|
+
{ error: "Invalid Configuration: Missing Region", type: d },
|
|
141
|
+
],
|
|
142
|
+
};
|
|
143
|
+
export const ruleSet = _data;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./CognitoIdentityClient";
|
|
2
|
+
export * from "./CognitoIdentity";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./schemas/schemas_0";
|
|
5
|
+
export * from "./models/errors";
|
|
6
|
+
export * from "./models/models_0";
|
|
7
|
+
export { CognitoIdentityServiceException } from "./models/CognitoIdentityServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class CognitoIdentityServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, CognitoIdentityServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|