@aws-sdk/nested-clients 3.996.21 → 3.997.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/dist-cjs/submodules/cognito-identity/endpoint/bdd.js +100 -0
- package/dist-cjs/submodules/cognito-identity/endpoint/endpointResolver.js +2 -2
- package/dist-cjs/submodules/signin/endpoint/bdd.js +90 -0
- package/dist-cjs/submodules/signin/endpoint/endpointResolver.js +2 -2
- package/dist-cjs/submodules/sso/endpoint/bdd.js +80 -0
- package/dist-cjs/submodules/sso/endpoint/endpointResolver.js +2 -2
- package/dist-cjs/submodules/sso-oidc/endpoint/bdd.js +80 -0
- package/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +2 -2
- package/dist-cjs/submodules/sts/STSClient.js +1 -0
- package/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +87 -5
- package/dist-cjs/submodules/sts/endpoint/bdd.js +150 -0
- package/dist-cjs/submodules/sts/endpoint/endpointResolver.js +2 -2
- package/dist-cjs/submodules/sts/runtimeConfig.js +6 -0
- package/dist-cjs/submodules/sts/runtimeConfig.shared.js +7 -0
- package/dist-es/submodules/cognito-identity/endpoint/bdd.js +97 -0
- package/dist-es/submodules/cognito-identity/endpoint/endpointResolver.js +3 -3
- package/dist-es/submodules/signin/endpoint/bdd.js +87 -0
- package/dist-es/submodules/signin/endpoint/endpointResolver.js +3 -3
- package/dist-es/submodules/sso/endpoint/bdd.js +77 -0
- package/dist-es/submodules/sso/endpoint/endpointResolver.js +3 -3
- package/dist-es/submodules/sso-oidc/endpoint/bdd.js +77 -0
- package/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js +3 -3
- package/dist-es/submodules/sts/STSClient.js +1 -0
- package/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +88 -4
- package/dist-es/submodules/sts/endpoint/bdd.js +147 -0
- package/dist-es/submodules/sts/endpoint/endpointResolver.js +3 -3
- package/dist-es/submodules/sts/runtimeConfig.js +7 -1
- package/dist-es/submodules/sts/runtimeConfig.shared.js +8 -1
- package/dist-types/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
- package/dist-types/submodules/signin/endpoint/bdd.d.ts +2 -0
- package/dist-types/submodules/sso/endpoint/bdd.d.ts +2 -0
- package/dist-types/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
- package/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +15 -7
- package/dist-types/submodules/sts/endpoint/bdd.d.ts +2 -0
- package/dist-types/submodules/sts/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/submodules/sts/runtimeConfig.d.ts +10 -4
- package/dist-types/submodules/sts/runtimeConfig.native.d.ts +3 -2
- package/dist-types/submodules/sts/runtimeConfig.shared.d.ts +3 -1
- package/dist-types/ts3.4/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/submodules/signin/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/submodules/sso/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +20 -9
- package/dist-types/ts3.4/submodules/sts/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +11 -5
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +35 -16
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +11 -5
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +8 -1
- package/package.json +18 -17
- package/dist-cjs/submodules/cognito-identity/endpoint/ruleset.js +0 -146
- package/dist-cjs/submodules/signin/endpoint/ruleset.js +0 -133
- package/dist-cjs/submodules/sso/endpoint/ruleset.js +0 -106
- package/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +0 -106
- package/dist-cjs/submodules/sts/endpoint/ruleset.js +0 -145
- package/dist-es/submodules/cognito-identity/endpoint/ruleset.js +0 -143
- package/dist-es/submodules/signin/endpoint/ruleset.js +0 -130
- package/dist-es/submodules/sso/endpoint/ruleset.js +0 -103
- package/dist-es/submodules/sso-oidc/endpoint/ruleset.js +0 -103
- package/dist-es/submodules/sts/endpoint/ruleset.js +0 -142
- package/dist-types/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
- package/dist-types/submodules/signin/endpoint/ruleset.d.ts +0 -2
- package/dist-types/submodules/sso/endpoint/ruleset.d.ts +0 -2
- package/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
- package/dist-types/submodules/sts/endpoint/ruleset.d.ts +0 -2
- package/dist-types/ts3.4/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
- package/dist-types/ts3.4/submodules/signin/endpoint/ruleset.d.ts +0 -2
- package/dist-types/ts3.4/submodules/sso/endpoint/ruleset.d.ts +0 -2
- package/dist-types/ts3.4/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
- package/dist-types/ts3.4/submodules/sts/endpoint/ruleset.d.ts +0 -2
|
@@ -72,7 +72,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
72
72
|
))
|
|
73
73
|
| undefined;
|
|
74
74
|
endpointProvider: (
|
|
75
|
-
|
|
75
|
+
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
76
76
|
context?: {
|
|
77
77
|
logger?: import("@smithy/types").Logger;
|
|
78
78
|
}
|
|
@@ -118,10 +118,16 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
118
118
|
signingEscapePath?: boolean;
|
|
119
119
|
systemClockOffset?: number;
|
|
120
120
|
signingRegion?: string;
|
|
121
|
-
signerConstructor
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
signerConstructor:
|
|
122
|
+
| (new (
|
|
123
|
+
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
124
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
125
|
+
) => import("@smithy/types").RequestSigner)
|
|
126
|
+
| typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
|
|
127
|
+
sigv4aSigningRegionSet?:
|
|
128
|
+
| string[]
|
|
129
|
+
| undefined
|
|
130
|
+
| import("@smithy/types").Provider<string[] | undefined>;
|
|
125
131
|
useGlobalEndpoint?:
|
|
126
132
|
| boolean
|
|
127
133
|
| undefined
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AwsSdkSigV4ASigner } from "@aws-sdk/core/httpAuthSchemes";
|
|
1
2
|
import { NoAuthSigner } from "@smithy/core";
|
|
2
3
|
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
3
4
|
import { IdentityProviderConfig } from "@smithy/types";
|
|
@@ -14,17 +15,30 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
14
15
|
) => Promise<import("@smithy/types").UserAgent>;
|
|
15
16
|
httpAuthSchemes:
|
|
16
17
|
| import("@smithy/types").HttpAuthScheme[]
|
|
17
|
-
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import("@smithy/types").
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
| (
|
|
19
|
+
| {
|
|
20
|
+
schemeId: string;
|
|
21
|
+
identityProvider: (
|
|
22
|
+
ipc: IdentityProviderConfig
|
|
23
|
+
) =>
|
|
24
|
+
| import("@smithy/types").IdentityProvider<
|
|
25
|
+
import("@smithy/types").Identity
|
|
26
|
+
>
|
|
27
|
+
| undefined;
|
|
28
|
+
signer: AwsSdkSigV4ASigner;
|
|
29
|
+
}
|
|
30
|
+
| {
|
|
31
|
+
schemeId: string;
|
|
32
|
+
identityProvider: (
|
|
33
|
+
ipc: IdentityProviderConfig
|
|
34
|
+
) =>
|
|
35
|
+
| import("@smithy/types").IdentityProvider<
|
|
36
|
+
import("@smithy/types").Identity
|
|
37
|
+
>
|
|
38
|
+
| (() => Promise<{}>);
|
|
39
|
+
signer: NoAuthSigner;
|
|
40
|
+
}
|
|
41
|
+
)[];
|
|
28
42
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
29
43
|
region: string | import("@smithy/types").Provider<string>;
|
|
30
44
|
requestHandler:
|
|
@@ -32,6 +46,9 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
32
46
|
| import("@smithy/protocol-http").HttpHandler<any>;
|
|
33
47
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
34
48
|
sha256: import("@smithy/types").HashConstructor;
|
|
49
|
+
sigv4aSigningRegionSet:
|
|
50
|
+
| string[]
|
|
51
|
+
| import("@smithy/types").Provider<string[] | undefined>;
|
|
35
52
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
36
53
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
37
54
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
@@ -81,7 +98,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
81
98
|
))
|
|
82
99
|
| undefined;
|
|
83
100
|
endpointProvider: (
|
|
84
|
-
|
|
101
|
+
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
85
102
|
context?: {
|
|
86
103
|
logger?: import("@smithy/types").Logger;
|
|
87
104
|
}
|
|
@@ -100,10 +117,12 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
100
117
|
signingEscapePath?: boolean;
|
|
101
118
|
systemClockOffset?: number;
|
|
102
119
|
signingRegion?: string;
|
|
103
|
-
signerConstructor
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
120
|
+
signerConstructor:
|
|
121
|
+
| (new (
|
|
122
|
+
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
123
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
124
|
+
) => import("@smithy/types").RequestSigner)
|
|
125
|
+
| typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
|
|
107
126
|
useGlobalEndpoint?:
|
|
108
127
|
| boolean
|
|
109
128
|
| undefined
|
|
@@ -76,7 +76,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
76
76
|
))
|
|
77
77
|
| undefined;
|
|
78
78
|
endpointProvider: (
|
|
79
|
-
|
|
79
|
+
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
80
80
|
context?: {
|
|
81
81
|
logger?: import("@smithy/types").Logger;
|
|
82
82
|
}
|
|
@@ -122,10 +122,16 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
122
122
|
signingEscapePath?: boolean;
|
|
123
123
|
systemClockOffset?: number;
|
|
124
124
|
signingRegion?: string;
|
|
125
|
-
signerConstructor
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
signerConstructor:
|
|
126
|
+
| (new (
|
|
127
|
+
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
128
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
129
|
+
) => import("@smithy/types").RequestSigner)
|
|
130
|
+
| typeof import("@aws-sdk/signature-v4-multi-region").SignatureV4MultiRegion;
|
|
131
|
+
sigv4aSigningRegionSet?:
|
|
132
|
+
| string[]
|
|
133
|
+
| undefined
|
|
134
|
+
| import("@smithy/types").Provider<string[] | undefined>;
|
|
129
135
|
useGlobalEndpoint?:
|
|
130
136
|
| boolean
|
|
131
137
|
| undefined
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
2
|
import { AwsQueryProtocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region";
|
|
3
4
|
import { NoAuthSigner } from "@smithy/core";
|
|
4
5
|
import { IdentityProviderConfig } from "@smithy/types";
|
|
5
6
|
import { STSClientConfig } from "./STSClient";
|
|
@@ -9,7 +10,7 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
9
10
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
10
11
|
disableHostPrefix: boolean;
|
|
11
12
|
endpointProvider: (
|
|
12
|
-
|
|
13
|
+
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
13
14
|
context?: {
|
|
14
15
|
logger?: import("@smithy/types").Logger;
|
|
15
16
|
}
|
|
@@ -52,6 +53,12 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
52
53
|
defaultNamespace?: string;
|
|
53
54
|
};
|
|
54
55
|
serviceId: string;
|
|
56
|
+
signerConstructor:
|
|
57
|
+
| (new (
|
|
58
|
+
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
59
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
60
|
+
) => import("@smithy/types").RequestSigner)
|
|
61
|
+
| typeof SignatureV4MultiRegion;
|
|
55
62
|
urlParser: import("@smithy/types").UrlParser;
|
|
56
63
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
57
64
|
utf8Encoder: (input: Uint8Array | string) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/nested-clients",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.997.1",
|
|
4
4
|
"description": "Nested clients for AWS SDK packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,40 +29,41 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
31
31
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
32
|
-
"@aws-sdk/core": "^3.974.
|
|
32
|
+
"@aws-sdk/core": "^3.974.3",
|
|
33
33
|
"@aws-sdk/middleware-host-header": "^3.972.10",
|
|
34
34
|
"@aws-sdk/middleware-logger": "^3.972.10",
|
|
35
35
|
"@aws-sdk/middleware-recursion-detection": "^3.972.11",
|
|
36
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
37
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
36
|
+
"@aws-sdk/middleware-user-agent": "^3.972.33",
|
|
37
|
+
"@aws-sdk/region-config-resolver": "^3.972.13",
|
|
38
|
+
"@aws-sdk/signature-v4-multi-region": "^3.996.20",
|
|
38
39
|
"@aws-sdk/types": "^3.973.8",
|
|
39
|
-
"@aws-sdk/util-endpoints": "^3.996.
|
|
40
|
+
"@aws-sdk/util-endpoints": "^3.996.8",
|
|
40
41
|
"@aws-sdk/util-user-agent-browser": "^3.972.10",
|
|
41
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
42
|
-
"@smithy/config-resolver": "^4.4.
|
|
43
|
-
"@smithy/core": "^3.23.
|
|
42
|
+
"@aws-sdk/util-user-agent-node": "^3.973.19",
|
|
43
|
+
"@smithy/config-resolver": "^4.4.17",
|
|
44
|
+
"@smithy/core": "^3.23.16",
|
|
44
45
|
"@smithy/fetch-http-handler": "^5.3.17",
|
|
45
46
|
"@smithy/hash-node": "^4.2.14",
|
|
46
47
|
"@smithy/invalid-dependency": "^4.2.14",
|
|
47
48
|
"@smithy/middleware-content-length": "^4.2.14",
|
|
48
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
49
|
-
"@smithy/middleware-retry": "^4.5.
|
|
50
|
-
"@smithy/middleware-serde": "^4.2.
|
|
49
|
+
"@smithy/middleware-endpoint": "^4.4.31",
|
|
50
|
+
"@smithy/middleware-retry": "^4.5.4",
|
|
51
|
+
"@smithy/middleware-serde": "^4.2.19",
|
|
51
52
|
"@smithy/middleware-stack": "^4.2.14",
|
|
52
53
|
"@smithy/node-config-provider": "^4.3.14",
|
|
53
|
-
"@smithy/node-http-handler": "^4.
|
|
54
|
+
"@smithy/node-http-handler": "^4.6.0",
|
|
54
55
|
"@smithy/protocol-http": "^5.3.14",
|
|
55
|
-
"@smithy/smithy-client": "^4.12.
|
|
56
|
+
"@smithy/smithy-client": "^4.12.12",
|
|
56
57
|
"@smithy/types": "^4.14.1",
|
|
57
58
|
"@smithy/url-parser": "^4.2.14",
|
|
58
59
|
"@smithy/util-base64": "^4.3.2",
|
|
59
60
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
60
61
|
"@smithy/util-body-length-node": "^4.2.3",
|
|
61
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
62
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
63
|
-
"@smithy/util-endpoints": "^3.4.
|
|
62
|
+
"@smithy/util-defaults-mode-browser": "^4.3.48",
|
|
63
|
+
"@smithy/util-defaults-mode-node": "^4.2.53",
|
|
64
|
+
"@smithy/util-endpoints": "^3.4.2",
|
|
64
65
|
"@smithy/util-middleware": "^4.2.14",
|
|
65
|
-
"@smithy/util-retry": "^4.3.
|
|
66
|
+
"@smithy/util-retry": "^4.3.3",
|
|
66
67
|
"@smithy/util-utf8": "^4.2.2",
|
|
67
68
|
"tslib": "^2.6.2"
|
|
68
69
|
},
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ruleSet = void 0;
|
|
4
|
-
const w = "required", x = "fn", y = "argv", z = "ref";
|
|
5
|
-
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];
|
|
6
|
-
const _data = {
|
|
7
|
-
version: "1.0",
|
|
8
|
-
parameters: { Region: j, UseDualStack: k, UseFIPS: k, Endpoint: j },
|
|
9
|
-
rules: [
|
|
10
|
-
{
|
|
11
|
-
conditions: [{ [x]: b, [y]: [l] }],
|
|
12
|
-
rules: [
|
|
13
|
-
{ conditions: t, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
|
|
14
|
-
{ conditions: u, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d },
|
|
15
|
-
{ endpoint: { url: l, properties: o, headers: o }, type: e },
|
|
16
|
-
],
|
|
17
|
-
type: f,
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
conditions: [{ [x]: b, [y]: v }],
|
|
21
|
-
rules: [
|
|
22
|
-
{
|
|
23
|
-
conditions: [{ [x]: "aws.partition", [y]: v, assign: g }],
|
|
24
|
-
rules: [
|
|
25
|
-
{
|
|
26
|
-
conditions: [m, n],
|
|
27
|
-
rules: [
|
|
28
|
-
{
|
|
29
|
-
conditions: [{ [x]: c, [y]: [a, q] }, s],
|
|
30
|
-
rules: [
|
|
31
|
-
{
|
|
32
|
-
conditions: [{ [x]: i, [y]: [p, "us-east-1"] }],
|
|
33
|
-
endpoint: {
|
|
34
|
-
url: "https://cognito-identity-fips.us-east-1.amazonaws.com",
|
|
35
|
-
properties: o,
|
|
36
|
-
headers: o,
|
|
37
|
-
},
|
|
38
|
-
type: e,
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
conditions: [{ [x]: i, [y]: [p, "us-east-2"] }],
|
|
42
|
-
endpoint: {
|
|
43
|
-
url: "https://cognito-identity-fips.us-east-2.amazonaws.com",
|
|
44
|
-
properties: o,
|
|
45
|
-
headers: o,
|
|
46
|
-
},
|
|
47
|
-
type: e,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
conditions: [{ [x]: i, [y]: [p, "us-west-1"] }],
|
|
51
|
-
endpoint: {
|
|
52
|
-
url: "https://cognito-identity-fips.us-west-1.amazonaws.com",
|
|
53
|
-
properties: o,
|
|
54
|
-
headers: o,
|
|
55
|
-
},
|
|
56
|
-
type: e,
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
conditions: [{ [x]: i, [y]: [p, "us-west-2"] }],
|
|
60
|
-
endpoint: {
|
|
61
|
-
url: "https://cognito-identity-fips.us-west-2.amazonaws.com",
|
|
62
|
-
properties: o,
|
|
63
|
-
headers: o,
|
|
64
|
-
},
|
|
65
|
-
type: e,
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
endpoint: {
|
|
69
|
-
url: "https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
70
|
-
properties: o,
|
|
71
|
-
headers: o,
|
|
72
|
-
},
|
|
73
|
-
type: e,
|
|
74
|
-
},
|
|
75
|
-
],
|
|
76
|
-
type: f,
|
|
77
|
-
},
|
|
78
|
-
{ error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d },
|
|
79
|
-
],
|
|
80
|
-
type: f,
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
conditions: t,
|
|
84
|
-
rules: [
|
|
85
|
-
{
|
|
86
|
-
conditions: [{ [x]: c, [y]: [q, a] }],
|
|
87
|
-
rules: [
|
|
88
|
-
{
|
|
89
|
-
endpoint: {
|
|
90
|
-
url: "https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
91
|
-
properties: o,
|
|
92
|
-
headers: o,
|
|
93
|
-
},
|
|
94
|
-
type: e,
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
type: f,
|
|
98
|
-
},
|
|
99
|
-
{ error: "FIPS is enabled but this partition does not support FIPS", type: d },
|
|
100
|
-
],
|
|
101
|
-
type: f,
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
conditions: u,
|
|
105
|
-
rules: [
|
|
106
|
-
{
|
|
107
|
-
conditions: [s],
|
|
108
|
-
rules: [
|
|
109
|
-
{
|
|
110
|
-
conditions: [{ [x]: i, [y]: ["aws", { [x]: h, [y]: [r, "name"] }] }],
|
|
111
|
-
endpoint: { url: "https://cognito-identity.{Region}.amazonaws.com", properties: o, headers: o },
|
|
112
|
-
type: e,
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
endpoint: {
|
|
116
|
-
url: "https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
117
|
-
properties: o,
|
|
118
|
-
headers: o,
|
|
119
|
-
},
|
|
120
|
-
type: e,
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
type: f,
|
|
124
|
-
},
|
|
125
|
-
{ error: "DualStack is enabled but this partition does not support DualStack", type: d },
|
|
126
|
-
],
|
|
127
|
-
type: f,
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
endpoint: {
|
|
131
|
-
url: "https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",
|
|
132
|
-
properties: o,
|
|
133
|
-
headers: o,
|
|
134
|
-
},
|
|
135
|
-
type: e,
|
|
136
|
-
},
|
|
137
|
-
],
|
|
138
|
-
type: f,
|
|
139
|
-
},
|
|
140
|
-
],
|
|
141
|
-
type: f,
|
|
142
|
-
},
|
|
143
|
-
{ error: "Invalid Configuration: Missing Region", type: d },
|
|
144
|
-
],
|
|
145
|
-
};
|
|
146
|
-
exports.ruleSet = _data;
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ruleSet = void 0;
|
|
4
|
-
const u = "required", v = "fn", w = "argv", x = "ref";
|
|
5
|
-
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = { [u]: true, default: false, type: "boolean" }, j = { [u]: false, type: "string" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: "getAttr", [w]: [{ [x]: g }, "name"] }, p = { [v]: c, [w]: [{ [x]: "UseFIPS" }, false] }, q = { [v]: c, [w]: [{ [x]: "UseDualStack" }, false] }, r = { [v]: "getAttr", [w]: [{ [x]: g }, "supportsFIPS"] }, s = { [v]: c, [w]: [true, { [v]: "getAttr", [w]: [{ [x]: g }, "supportsDualStack"] }] }, t = [{ [x]: "Region" }];
|
|
6
|
-
const _data = {
|
|
7
|
-
version: "1.0",
|
|
8
|
-
parameters: { UseDualStack: i, UseFIPS: i, Endpoint: j, Region: j },
|
|
9
|
-
rules: [
|
|
10
|
-
{
|
|
11
|
-
conditions: [{ [v]: b, [w]: [k] }],
|
|
12
|
-
rules: [
|
|
13
|
-
{ conditions: [l], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
|
|
14
|
-
{
|
|
15
|
-
rules: [
|
|
16
|
-
{
|
|
17
|
-
conditions: [m],
|
|
18
|
-
error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
|
|
19
|
-
type: d,
|
|
20
|
-
},
|
|
21
|
-
{ endpoint: { url: k, properties: n, headers: n }, type: e },
|
|
22
|
-
],
|
|
23
|
-
type: f,
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
type: f,
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
rules: [
|
|
30
|
-
{
|
|
31
|
-
conditions: [{ [v]: b, [w]: t }],
|
|
32
|
-
rules: [
|
|
33
|
-
{
|
|
34
|
-
conditions: [{ [v]: "aws.partition", [w]: t, assign: g }],
|
|
35
|
-
rules: [
|
|
36
|
-
{
|
|
37
|
-
conditions: [{ [v]: h, [w]: [o, "aws"] }, p, q],
|
|
38
|
-
endpoint: { url: "https://{Region}.signin.aws.amazon.com", properties: n, headers: n },
|
|
39
|
-
type: e,
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
conditions: [{ [v]: h, [w]: [o, "aws-cn"] }, p, q],
|
|
43
|
-
endpoint: { url: "https://{Region}.signin.amazonaws.cn", properties: n, headers: n },
|
|
44
|
-
type: e,
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
conditions: [{ [v]: h, [w]: [o, "aws-us-gov"] }, p, q],
|
|
48
|
-
endpoint: { url: "https://{Region}.signin.amazonaws-us-gov.com", properties: n, headers: n },
|
|
49
|
-
type: e,
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
conditions: [l, m],
|
|
53
|
-
rules: [
|
|
54
|
-
{
|
|
55
|
-
conditions: [{ [v]: c, [w]: [a, r] }, s],
|
|
56
|
-
rules: [
|
|
57
|
-
{
|
|
58
|
-
endpoint: {
|
|
59
|
-
url: "https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
60
|
-
properties: n,
|
|
61
|
-
headers: n,
|
|
62
|
-
},
|
|
63
|
-
type: e,
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
type: f,
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
error: "FIPS and DualStack are enabled, but this partition does not support one or both",
|
|
70
|
-
type: d,
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
type: f,
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
conditions: [l, q],
|
|
77
|
-
rules: [
|
|
78
|
-
{
|
|
79
|
-
conditions: [{ [v]: c, [w]: [r, a] }],
|
|
80
|
-
rules: [
|
|
81
|
-
{
|
|
82
|
-
endpoint: {
|
|
83
|
-
url: "https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
84
|
-
properties: n,
|
|
85
|
-
headers: n,
|
|
86
|
-
},
|
|
87
|
-
type: e,
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
type: f,
|
|
91
|
-
},
|
|
92
|
-
{ error: "FIPS is enabled but this partition does not support FIPS", type: d },
|
|
93
|
-
],
|
|
94
|
-
type: f,
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
conditions: [p, m],
|
|
98
|
-
rules: [
|
|
99
|
-
{
|
|
100
|
-
conditions: [s],
|
|
101
|
-
rules: [
|
|
102
|
-
{
|
|
103
|
-
endpoint: {
|
|
104
|
-
url: "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
105
|
-
properties: n,
|
|
106
|
-
headers: n,
|
|
107
|
-
},
|
|
108
|
-
type: e,
|
|
109
|
-
},
|
|
110
|
-
],
|
|
111
|
-
type: f,
|
|
112
|
-
},
|
|
113
|
-
{ error: "DualStack is enabled but this partition does not support DualStack", type: d },
|
|
114
|
-
],
|
|
115
|
-
type: f,
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
endpoint: { url: "https://signin.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n },
|
|
119
|
-
type: e,
|
|
120
|
-
},
|
|
121
|
-
],
|
|
122
|
-
type: f,
|
|
123
|
-
},
|
|
124
|
-
],
|
|
125
|
-
type: f,
|
|
126
|
-
},
|
|
127
|
-
{ error: "Invalid Configuration: Missing Region", type: d },
|
|
128
|
-
],
|
|
129
|
-
type: f,
|
|
130
|
-
},
|
|
131
|
-
],
|
|
132
|
-
};
|
|
133
|
-
exports.ruleSet = _data;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ruleSet = void 0;
|
|
4
|
-
const u = "required", v = "fn", w = "argv", x = "ref";
|
|
5
|
-
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, type: "string" }, j = { [u]: true, default: false, type: "boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
|
|
6
|
-
const _data = {
|
|
7
|
-
version: "1.0",
|
|
8
|
-
parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i },
|
|
9
|
-
rules: [
|
|
10
|
-
{
|
|
11
|
-
conditions: [{ [v]: b, [w]: [k] }],
|
|
12
|
-
rules: [
|
|
13
|
-
{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
|
|
14
|
-
{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d },
|
|
15
|
-
{ endpoint: { url: k, properties: n, headers: n }, type: e },
|
|
16
|
-
],
|
|
17
|
-
type: f,
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
conditions: [{ [v]: b, [w]: t }],
|
|
21
|
-
rules: [
|
|
22
|
-
{
|
|
23
|
-
conditions: [{ [v]: "aws.partition", [w]: t, assign: g }],
|
|
24
|
-
rules: [
|
|
25
|
-
{
|
|
26
|
-
conditions: [l, m],
|
|
27
|
-
rules: [
|
|
28
|
-
{
|
|
29
|
-
conditions: [{ [v]: c, [w]: [a, o] }, q],
|
|
30
|
-
rules: [
|
|
31
|
-
{
|
|
32
|
-
endpoint: {
|
|
33
|
-
url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
34
|
-
properties: n,
|
|
35
|
-
headers: n,
|
|
36
|
-
},
|
|
37
|
-
type: e,
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
type: f,
|
|
41
|
-
},
|
|
42
|
-
{ error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d },
|
|
43
|
-
],
|
|
44
|
-
type: f,
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
conditions: r,
|
|
48
|
-
rules: [
|
|
49
|
-
{
|
|
50
|
-
conditions: [{ [v]: c, [w]: [o, a] }],
|
|
51
|
-
rules: [
|
|
52
|
-
{
|
|
53
|
-
conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }],
|
|
54
|
-
endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n, headers: n },
|
|
55
|
-
type: e,
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
endpoint: {
|
|
59
|
-
url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
60
|
-
properties: n,
|
|
61
|
-
headers: n,
|
|
62
|
-
},
|
|
63
|
-
type: e,
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
type: f,
|
|
67
|
-
},
|
|
68
|
-
{ error: "FIPS is enabled but this partition does not support FIPS", type: d },
|
|
69
|
-
],
|
|
70
|
-
type: f,
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
conditions: s,
|
|
74
|
-
rules: [
|
|
75
|
-
{
|
|
76
|
-
conditions: [q],
|
|
77
|
-
rules: [
|
|
78
|
-
{
|
|
79
|
-
endpoint: {
|
|
80
|
-
url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
81
|
-
properties: n,
|
|
82
|
-
headers: n,
|
|
83
|
-
},
|
|
84
|
-
type: e,
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
type: f,
|
|
88
|
-
},
|
|
89
|
-
{ error: "DualStack is enabled but this partition does not support DualStack", type: d },
|
|
90
|
-
],
|
|
91
|
-
type: f,
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n },
|
|
95
|
-
type: e,
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
|
-
type: f,
|
|
99
|
-
},
|
|
100
|
-
],
|
|
101
|
-
type: f,
|
|
102
|
-
},
|
|
103
|
-
{ error: "Invalid Configuration: Missing Region", type: d },
|
|
104
|
-
],
|
|
105
|
-
};
|
|
106
|
-
exports.ruleSet = _data;
|