@aws-sdk/nested-clients 3.996.20 → 3.997.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.
Files changed (69) hide show
  1. package/dist-cjs/submodules/cognito-identity/endpoint/bdd.js +100 -0
  2. package/dist-cjs/submodules/cognito-identity/endpoint/endpointResolver.js +2 -2
  3. package/dist-cjs/submodules/signin/endpoint/bdd.js +90 -0
  4. package/dist-cjs/submodules/signin/endpoint/endpointResolver.js +2 -2
  5. package/dist-cjs/submodules/sso/endpoint/bdd.js +80 -0
  6. package/dist-cjs/submodules/sso/endpoint/endpointResolver.js +2 -2
  7. package/dist-cjs/submodules/sso-oidc/endpoint/bdd.js +80 -0
  8. package/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +2 -2
  9. package/dist-cjs/submodules/sts/STSClient.js +1 -0
  10. package/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +87 -5
  11. package/dist-cjs/submodules/sts/endpoint/bdd.js +150 -0
  12. package/dist-cjs/submodules/sts/endpoint/endpointResolver.js +2 -2
  13. package/dist-cjs/submodules/sts/runtimeConfig.js +6 -0
  14. package/dist-cjs/submodules/sts/runtimeConfig.shared.js +7 -0
  15. package/dist-es/submodules/cognito-identity/endpoint/bdd.js +97 -0
  16. package/dist-es/submodules/cognito-identity/endpoint/endpointResolver.js +3 -3
  17. package/dist-es/submodules/signin/endpoint/bdd.js +87 -0
  18. package/dist-es/submodules/signin/endpoint/endpointResolver.js +3 -3
  19. package/dist-es/submodules/sso/endpoint/bdd.js +77 -0
  20. package/dist-es/submodules/sso/endpoint/endpointResolver.js +3 -3
  21. package/dist-es/submodules/sso-oidc/endpoint/bdd.js +77 -0
  22. package/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js +3 -3
  23. package/dist-es/submodules/sts/STSClient.js +1 -0
  24. package/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +88 -4
  25. package/dist-es/submodules/sts/endpoint/bdd.js +147 -0
  26. package/dist-es/submodules/sts/endpoint/endpointResolver.js +3 -3
  27. package/dist-es/submodules/sts/runtimeConfig.js +7 -1
  28. package/dist-es/submodules/sts/runtimeConfig.shared.js +8 -1
  29. package/dist-types/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
  30. package/dist-types/submodules/signin/endpoint/bdd.d.ts +2 -0
  31. package/dist-types/submodules/sso/endpoint/bdd.d.ts +2 -0
  32. package/dist-types/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
  33. package/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +15 -7
  34. package/dist-types/submodules/sts/endpoint/bdd.d.ts +2 -0
  35. package/dist-types/submodules/sts/runtimeConfig.browser.d.ts +3 -2
  36. package/dist-types/submodules/sts/runtimeConfig.d.ts +10 -4
  37. package/dist-types/submodules/sts/runtimeConfig.native.d.ts +3 -2
  38. package/dist-types/submodules/sts/runtimeConfig.shared.d.ts +3 -1
  39. package/dist-types/ts3.4/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
  40. package/dist-types/ts3.4/submodules/signin/endpoint/bdd.d.ts +2 -0
  41. package/dist-types/ts3.4/submodules/sso/endpoint/bdd.d.ts +2 -0
  42. package/dist-types/ts3.4/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
  43. package/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +20 -9
  44. package/dist-types/ts3.4/submodules/sts/endpoint/bdd.d.ts +2 -0
  45. package/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +11 -5
  46. package/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +35 -16
  47. package/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +11 -5
  48. package/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +8 -1
  49. package/package.json +5 -4
  50. package/dist-cjs/submodules/cognito-identity/endpoint/ruleset.js +0 -146
  51. package/dist-cjs/submodules/signin/endpoint/ruleset.js +0 -133
  52. package/dist-cjs/submodules/sso/endpoint/ruleset.js +0 -106
  53. package/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +0 -106
  54. package/dist-cjs/submodules/sts/endpoint/ruleset.js +0 -145
  55. package/dist-es/submodules/cognito-identity/endpoint/ruleset.js +0 -143
  56. package/dist-es/submodules/signin/endpoint/ruleset.js +0 -130
  57. package/dist-es/submodules/sso/endpoint/ruleset.js +0 -103
  58. package/dist-es/submodules/sso-oidc/endpoint/ruleset.js +0 -103
  59. package/dist-es/submodules/sts/endpoint/ruleset.js +0 -142
  60. package/dist-types/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
  61. package/dist-types/submodules/signin/endpoint/ruleset.d.ts +0 -2
  62. package/dist-types/submodules/sso/endpoint/ruleset.d.ts +0 -2
  63. package/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
  64. package/dist-types/submodules/sts/endpoint/ruleset.d.ts +0 -2
  65. package/dist-types/ts3.4/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
  66. package/dist-types/ts3.4/submodules/signin/endpoint/ruleset.d.ts +0 -2
  67. package/dist-types/ts3.4/submodules/sso/endpoint/ruleset.d.ts +0 -2
  68. package/dist-types/ts3.4/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
  69. 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
- params: import("./endpoint/EndpointParameters").EndpointParameters,
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?: new (
122
- options: import("@smithy/signature-v4").SignatureV4Init &
123
- import("@smithy/signature-v4").SignatureV4CryptoInit
124
- ) => import("@smithy/types").RequestSigner;
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
- schemeId: string;
19
- identityProvider: (
20
- ipc: IdentityProviderConfig
21
- ) =>
22
- | import("@smithy/types").IdentityProvider<
23
- import("@smithy/types").Identity
24
- >
25
- | (() => Promise<{}>);
26
- signer: NoAuthSigner;
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
- params: import("./endpoint/EndpointParameters").EndpointParameters,
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?: new (
104
- options: import("@smithy/signature-v4").SignatureV4Init &
105
- import("@smithy/signature-v4").SignatureV4CryptoInit
106
- ) => import("@smithy/types").RequestSigner;
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
- params: import("./endpoint/EndpointParameters").EndpointParameters,
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?: new (
126
- options: import("@smithy/signature-v4").SignatureV4Init &
127
- import("@smithy/signature-v4").SignatureV4CryptoInit
128
- ) => import("@smithy/types").RequestSigner;
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
- params: import("./endpoint/EndpointParameters").EndpointParameters,
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.996.20",
3
+ "version": "3.997.0",
4
4
  "description": "Nested clients for AWS SDK packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,16 +29,17 @@
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.0",
32
+ "@aws-sdk/core": "^3.974.2",
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.30",
36
+ "@aws-sdk/middleware-user-agent": "^3.972.32",
37
37
  "@aws-sdk/region-config-resolver": "^3.972.12",
38
+ "@aws-sdk/signature-v4-multi-region": "^3.996.19",
38
39
  "@aws-sdk/types": "^3.973.8",
39
40
  "@aws-sdk/util-endpoints": "^3.996.7",
40
41
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
41
- "@aws-sdk/util-user-agent-node": "^3.973.16",
42
+ "@aws-sdk/util-user-agent-node": "^3.973.18",
42
43
  "@smithy/config-resolver": "^4.4.16",
43
44
  "@smithy/core": "^3.23.15",
44
45
  "@smithy/fetch-http-handler": "^5.3.17",
@@ -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;