@cdk8s/awscdk-resolver 0.0.235 → 0.0.236
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/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +34 -34
- package/node_modules/@aws-sdk/client-sso/package.json +32 -32
- package/node_modules/@aws-sdk/core/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +2 -101
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +2 -140
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +6 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +2 -101
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js +6 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +2 -140
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/defaultStsRoleAssumers.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +17 -4
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +7 -2
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- package/package.json +4 -4
package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js
CHANGED
@@ -2,105 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ruleSet = void 0;
|
4
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://oidc-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://oidc.{Region}.amazonaws.com", properties: n, headers: n },
|
55
|
-
type: e,
|
56
|
-
},
|
57
|
-
{
|
58
|
-
endpoint: {
|
59
|
-
url: "https://oidc-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://oidc.{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://oidc.{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
|
-
};
|
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 = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
106
7
|
exports.ruleSet = _data;
|
@@ -2,144 +2,6 @@
|
|
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, 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
|
-
|
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
|
-
};
|
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 = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": e, "signingName": f, "signingRegion": g }] }, "headers": {} }, 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];
|
6
|
+
const _data = { version: "1.0", parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r, { [H]: c, [I]: [s, a] }, { [H]: c, [I]: [t, a] }], rules: [{ conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h }, w, { conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h }, { endpoint: { url: i, properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] }, headers: v }, [G]: h }], [G]: j }, { conditions: C, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: h }], [G]: j }, { conditions: [p], rules: [{ conditions: [r], rules: [{ conditions: [x, y], rules: [{ conditions: [{ [H]: c, [I]: [b, z] }, B], rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }], [G]: j }, { conditions: D, rules: [{ conditions: [{ [H]: c, [I]: [z, b] }], rules: [{ conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: h }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }], [G]: j }, { conditions: E, rules: [{ conditions: [B], rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }], [G]: j }, w, { endpoint: { url: i, properties: v, headers: v }, [G]: h }], [G]: j }], [G]: j }, { error: "Invalid Configuration: Missing Region", [G]: k }] };
|
145
7
|
exports.ruleSet = _data;
|
@@ -809,7 +809,7 @@ var resolveRegion = /* @__PURE__ */ __name(async (_region, _parentRegion, creden
|
|
809
809
|
);
|
810
810
|
return region ?? parentRegion ?? ASSUME_ROLE_DEFAULT_REGION;
|
811
811
|
}, "resolveRegion");
|
812
|
-
var getDefaultRoleAssumer = /* @__PURE__ */ __name((stsOptions,
|
812
|
+
var getDefaultRoleAssumer = /* @__PURE__ */ __name((stsOptions, STSClient3) => {
|
813
813
|
let stsClient;
|
814
814
|
let closureSourceCreds;
|
815
815
|
return async (sourceCreds, params) => {
|
@@ -827,7 +827,8 @@ var getDefaultRoleAssumer = /* @__PURE__ */ __name((stsOptions, stsClientCtor) =
|
|
827
827
|
credentialProviderLogger
|
828
828
|
);
|
829
829
|
const isCompatibleRequestHandler = !isH2(requestHandler);
|
830
|
-
stsClient = new
|
830
|
+
stsClient = new STSClient3({
|
831
|
+
profile: stsOptions?.parentClientConfig?.profile,
|
831
832
|
// A hack to make sts client uses the credential in current closure.
|
832
833
|
credentialDefaultProvider: () => async () => closureSourceCreds,
|
833
834
|
region: resolvedRegion,
|
@@ -853,7 +854,7 @@ var getDefaultRoleAssumer = /* @__PURE__ */ __name((stsOptions, stsClientCtor) =
|
|
853
854
|
return credentials;
|
854
855
|
};
|
855
856
|
}, "getDefaultRoleAssumer");
|
856
|
-
var getDefaultRoleAssumerWithWebIdentity = /* @__PURE__ */ __name((stsOptions,
|
857
|
+
var getDefaultRoleAssumerWithWebIdentity = /* @__PURE__ */ __name((stsOptions, STSClient3) => {
|
857
858
|
let stsClient;
|
858
859
|
return async (params) => {
|
859
860
|
if (!stsClient) {
|
@@ -869,7 +870,8 @@ var getDefaultRoleAssumerWithWebIdentity = /* @__PURE__ */ __name((stsOptions, s
|
|
869
870
|
credentialProviderLogger
|
870
871
|
);
|
871
872
|
const isCompatibleRequestHandler = !isH2(requestHandler);
|
872
|
-
stsClient = new
|
873
|
+
stsClient = new STSClient3({
|
874
|
+
profile: stsOptions?.parentClientConfig?.profile,
|
873
875
|
region: resolvedRegion,
|
874
876
|
requestHandler: isCompatibleRequestHandler ? requestHandler : void 0,
|
875
877
|
logger
|
package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js
CHANGED
@@ -1,103 +1,4 @@
|
|
1
1
|
const u = "required", v = "fn", w = "argv", x = "ref";
|
2
|
-
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" }];
|
3
|
-
const _data = {
|
4
|
-
version: "1.0",
|
5
|
-
parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i },
|
6
|
-
rules: [
|
7
|
-
{
|
8
|
-
conditions: [{ [v]: b, [w]: [k] }],
|
9
|
-
rules: [
|
10
|
-
{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
|
11
|
-
{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d },
|
12
|
-
{ endpoint: { url: k, properties: n, headers: n }, type: e },
|
13
|
-
],
|
14
|
-
type: f,
|
15
|
-
},
|
16
|
-
{
|
17
|
-
conditions: [{ [v]: b, [w]: t }],
|
18
|
-
rules: [
|
19
|
-
{
|
20
|
-
conditions: [{ [v]: "aws.partition", [w]: t, assign: g }],
|
21
|
-
rules: [
|
22
|
-
{
|
23
|
-
conditions: [l, m],
|
24
|
-
rules: [
|
25
|
-
{
|
26
|
-
conditions: [{ [v]: c, [w]: [a, o] }, q],
|
27
|
-
rules: [
|
28
|
-
{
|
29
|
-
endpoint: {
|
30
|
-
url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
31
|
-
properties: n,
|
32
|
-
headers: n,
|
33
|
-
},
|
34
|
-
type: e,
|
35
|
-
},
|
36
|
-
],
|
37
|
-
type: f,
|
38
|
-
},
|
39
|
-
{ error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d },
|
40
|
-
],
|
41
|
-
type: f,
|
42
|
-
},
|
43
|
-
{
|
44
|
-
conditions: r,
|
45
|
-
rules: [
|
46
|
-
{
|
47
|
-
conditions: [{ [v]: c, [w]: [o, a] }],
|
48
|
-
rules: [
|
49
|
-
{
|
50
|
-
conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }],
|
51
|
-
endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: n, headers: n },
|
52
|
-
type: e,
|
53
|
-
},
|
54
|
-
{
|
55
|
-
endpoint: {
|
56
|
-
url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",
|
57
|
-
properties: n,
|
58
|
-
headers: n,
|
59
|
-
},
|
60
|
-
type: e,
|
61
|
-
},
|
62
|
-
],
|
63
|
-
type: f,
|
64
|
-
},
|
65
|
-
{ error: "FIPS is enabled but this partition does not support FIPS", type: d },
|
66
|
-
],
|
67
|
-
type: f,
|
68
|
-
},
|
69
|
-
{
|
70
|
-
conditions: s,
|
71
|
-
rules: [
|
72
|
-
{
|
73
|
-
conditions: [q],
|
74
|
-
rules: [
|
75
|
-
{
|
76
|
-
endpoint: {
|
77
|
-
url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
78
|
-
properties: n,
|
79
|
-
headers: n,
|
80
|
-
},
|
81
|
-
type: e,
|
82
|
-
},
|
83
|
-
],
|
84
|
-
type: f,
|
85
|
-
},
|
86
|
-
{ error: "DualStack is enabled but this partition does not support DualStack", type: d },
|
87
|
-
],
|
88
|
-
type: f,
|
89
|
-
},
|
90
|
-
{
|
91
|
-
endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n },
|
92
|
-
type: e,
|
93
|
-
},
|
94
|
-
],
|
95
|
-
type: f,
|
96
|
-
},
|
97
|
-
],
|
98
|
-
type: f,
|
99
|
-
},
|
100
|
-
{ error: "Invalid Configuration: Missing Region", type: d },
|
101
|
-
],
|
102
|
-
};
|
2
|
+
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" }];
|
3
|
+
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
103
4
|
export const ruleSet = _data;
|
package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js
CHANGED
@@ -17,7 +17,7 @@ const resolveRegion = async (_region, _parentRegion, credentialProviderLogger) =
|
|
17
17
|
credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (provider)`, `${parentRegion} (parent client)`, `${ASSUME_ROLE_DEFAULT_REGION} (STS default)`);
|
18
18
|
return region ?? parentRegion ?? ASSUME_ROLE_DEFAULT_REGION;
|
19
19
|
};
|
20
|
-
export const getDefaultRoleAssumer = (stsOptions,
|
20
|
+
export const getDefaultRoleAssumer = (stsOptions, STSClient) => {
|
21
21
|
let stsClient;
|
22
22
|
let closureSourceCreds;
|
23
23
|
return async (sourceCreds, params) => {
|
@@ -26,7 +26,8 @@ export const getDefaultRoleAssumer = (stsOptions, stsClientCtor) => {
|
|
26
26
|
const { logger = stsOptions?.parentClientConfig?.logger, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, } = stsOptions;
|
27
27
|
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger);
|
28
28
|
const isCompatibleRequestHandler = !isH2(requestHandler);
|
29
|
-
stsClient = new
|
29
|
+
stsClient = new STSClient({
|
30
|
+
profile: stsOptions?.parentClientConfig?.profile,
|
30
31
|
credentialDefaultProvider: () => async () => closureSourceCreds,
|
31
32
|
region: resolvedRegion,
|
32
33
|
requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,
|
@@ -50,14 +51,15 @@ export const getDefaultRoleAssumer = (stsOptions, stsClientCtor) => {
|
|
50
51
|
return credentials;
|
51
52
|
};
|
52
53
|
};
|
53
|
-
export const getDefaultRoleAssumerWithWebIdentity = (stsOptions,
|
54
|
+
export const getDefaultRoleAssumerWithWebIdentity = (stsOptions, STSClient) => {
|
54
55
|
let stsClient;
|
55
56
|
return async (params) => {
|
56
57
|
if (!stsClient) {
|
57
58
|
const { logger = stsOptions?.parentClientConfig?.logger, region, requestHandler = stsOptions?.parentClientConfig?.requestHandler, credentialProviderLogger, } = stsOptions;
|
58
59
|
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger);
|
59
60
|
const isCompatibleRequestHandler = !isH2(requestHandler);
|
60
|
-
stsClient = new
|
61
|
+
stsClient = new STSClient({
|
62
|
+
profile: stsOptions?.parentClientConfig?.profile,
|
61
63
|
region: resolvedRegion,
|
62
64
|
requestHandler: isCompatibleRequestHandler ? requestHandler : undefined,
|
63
65
|
logger: logger,
|
@@ -1,142 +1,4 @@
|
|
1
1
|
const F = "required", G = "type", H = "fn", I = "argv", J = "ref";
|
2
|
-
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 = {
|
3
|
-
|
4
|
-
properties: { authSchemes: [{ name: e, signingName: f, signingRegion: g }] },
|
5
|
-
headers: {},
|
6
|
-
}, 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];
|
7
|
-
const _data = {
|
8
|
-
version: "1.0",
|
9
|
-
parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n },
|
10
|
-
rules: [
|
11
|
-
{
|
12
|
-
conditions: [
|
13
|
-
{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] },
|
14
|
-
{ [H]: "not", [I]: C },
|
15
|
-
p,
|
16
|
-
r,
|
17
|
-
{ [H]: c, [I]: [s, a] },
|
18
|
-
{ [H]: c, [I]: [t, a] },
|
19
|
-
],
|
20
|
-
rules: [
|
21
|
-
{ conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h },
|
22
|
-
{ conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h },
|
23
|
-
{ conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h },
|
24
|
-
{ conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h },
|
25
|
-
w,
|
26
|
-
{ conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h },
|
27
|
-
{ conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h },
|
28
|
-
{ conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h },
|
29
|
-
{ conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h },
|
30
|
-
{ conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h },
|
31
|
-
{ conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h },
|
32
|
-
{ conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h },
|
33
|
-
{ conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h },
|
34
|
-
{ conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h },
|
35
|
-
{ conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h },
|
36
|
-
{ conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h },
|
37
|
-
{
|
38
|
-
endpoint: {
|
39
|
-
url: i,
|
40
|
-
properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] },
|
41
|
-
headers: v,
|
42
|
-
},
|
43
|
-
[G]: h,
|
44
|
-
},
|
45
|
-
],
|
46
|
-
[G]: j,
|
47
|
-
},
|
48
|
-
{
|
49
|
-
conditions: C,
|
50
|
-
rules: [
|
51
|
-
{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k },
|
52
|
-
{ conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k },
|
53
|
-
{ endpoint: { url: o, properties: v, headers: v }, [G]: h },
|
54
|
-
],
|
55
|
-
[G]: j,
|
56
|
-
},
|
57
|
-
{
|
58
|
-
conditions: [p],
|
59
|
-
rules: [
|
60
|
-
{
|
61
|
-
conditions: [r],
|
62
|
-
rules: [
|
63
|
-
{
|
64
|
-
conditions: [x, y],
|
65
|
-
rules: [
|
66
|
-
{
|
67
|
-
conditions: [{ [H]: c, [I]: [b, z] }, B],
|
68
|
-
rules: [
|
69
|
-
{
|
70
|
-
endpoint: {
|
71
|
-
url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
72
|
-
properties: v,
|
73
|
-
headers: v,
|
74
|
-
},
|
75
|
-
[G]: h,
|
76
|
-
},
|
77
|
-
],
|
78
|
-
[G]: j,
|
79
|
-
},
|
80
|
-
{ error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k },
|
81
|
-
],
|
82
|
-
[G]: j,
|
83
|
-
},
|
84
|
-
{
|
85
|
-
conditions: D,
|
86
|
-
rules: [
|
87
|
-
{
|
88
|
-
conditions: [{ [H]: c, [I]: [z, b] }],
|
89
|
-
rules: [
|
90
|
-
{
|
91
|
-
conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, "name"] }, "aws-us-gov"] }],
|
92
|
-
endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v },
|
93
|
-
[G]: h,
|
94
|
-
},
|
95
|
-
{
|
96
|
-
endpoint: {
|
97
|
-
url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",
|
98
|
-
properties: v,
|
99
|
-
headers: v,
|
100
|
-
},
|
101
|
-
[G]: h,
|
102
|
-
},
|
103
|
-
],
|
104
|
-
[G]: j,
|
105
|
-
},
|
106
|
-
{ error: "FIPS is enabled but this partition does not support FIPS", [G]: k },
|
107
|
-
],
|
108
|
-
[G]: j,
|
109
|
-
},
|
110
|
-
{
|
111
|
-
conditions: E,
|
112
|
-
rules: [
|
113
|
-
{
|
114
|
-
conditions: [B],
|
115
|
-
rules: [
|
116
|
-
{
|
117
|
-
endpoint: {
|
118
|
-
url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
119
|
-
properties: v,
|
120
|
-
headers: v,
|
121
|
-
},
|
122
|
-
[G]: h,
|
123
|
-
},
|
124
|
-
],
|
125
|
-
[G]: j,
|
126
|
-
},
|
127
|
-
{ error: "DualStack is enabled but this partition does not support DualStack", [G]: k },
|
128
|
-
],
|
129
|
-
[G]: j,
|
130
|
-
},
|
131
|
-
w,
|
132
|
-
{ endpoint: { url: i, properties: v, headers: v }, [G]: h },
|
133
|
-
],
|
134
|
-
[G]: j,
|
135
|
-
},
|
136
|
-
],
|
137
|
-
[G]: j,
|
138
|
-
},
|
139
|
-
{ error: "Invalid Configuration: Missing Region", [G]: k },
|
140
|
-
],
|
141
|
-
};
|
2
|
+
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 = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": e, "signingName": f, "signingRegion": g }] }, "headers": {} }, 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];
|
3
|
+
const _data = { version: "1.0", parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r, { [H]: c, [I]: [s, a] }, { [H]: c, [I]: [t, a] }], rules: [{ conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h }, w, { conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h }, { endpoint: { url: i, properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] }, headers: v }, [G]: h }], [G]: j }, { conditions: C, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: h }], [G]: j }, { conditions: [p], rules: [{ conditions: [r], rules: [{ conditions: [x, y], rules: [{ conditions: [{ [H]: c, [I]: [b, z] }, B], rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }], [G]: j }, { conditions: D, rules: [{ conditions: [{ [H]: c, [I]: [z, b] }], rules: [{ conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: h }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }], [G]: j }, { conditions: E, rules: [{ conditions: [B], rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }], [G]: j }, w, { endpoint: { url: i, properties: v, headers: v }, [G]: h }], [G]: j }], [G]: j }, { error: "Invalid Configuration: Missing Region", [G]: k }] };
|
142
4
|
export const ruleSet = _data;
|
package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts
CHANGED
@@ -18,7 +18,7 @@ export type RoleAssumer = (sourceCreds: AwsCredentialIdentity, params: AssumeRol
|
|
18
18
|
* The default role assumer that used by credential providers when sts:AssumeRole API is needed.
|
19
19
|
* @internal
|
20
20
|
*/
|
21
|
-
export declare const getDefaultRoleAssumer: (stsOptions: STSRoleAssumerOptions,
|
21
|
+
export declare const getDefaultRoleAssumer: (stsOptions: STSRoleAssumerOptions, STSClient: new (options: STSClientConfig) => STSClient) => RoleAssumer;
|
22
22
|
/**
|
23
23
|
* @internal
|
24
24
|
*/
|
@@ -27,7 +27,7 @@ export type RoleAssumerWithWebIdentity = (params: AssumeRoleWithWebIdentityComma
|
|
27
27
|
* The default role assumer that used by credential providers when sts:AssumeRoleWithWebIdentity API is needed.
|
28
28
|
* @internal
|
29
29
|
*/
|
30
|
-
export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions: STSRoleAssumerOptions,
|
30
|
+
export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions: STSRoleAssumerOptions, STSClient: new (options: STSClientConfig) => STSClient) => RoleAssumerWithWebIdentity;
|
31
31
|
/**
|
32
32
|
* @internal
|
33
33
|
*/
|
@@ -16,14 +16,14 @@ export type RoleAssumer = (
|
|
16
16
|
) => Promise<AwsCredentialIdentity>;
|
17
17
|
export declare const getDefaultRoleAssumer: (
|
18
18
|
stsOptions: STSRoleAssumerOptions,
|
19
|
-
|
19
|
+
STSClient: new (options: STSClientConfig) => STSClient
|
20
20
|
) => RoleAssumer;
|
21
21
|
export type RoleAssumerWithWebIdentity = (
|
22
22
|
params: AssumeRoleWithWebIdentityCommandInput
|
23
23
|
) => Promise<AwsCredentialIdentity>;
|
24
24
|
export declare const getDefaultRoleAssumerWithWebIdentity: (
|
25
25
|
stsOptions: STSRoleAssumerOptions,
|
26
|
-
|
26
|
+
STSClient: new (options: STSClientConfig) => STSClient
|
27
27
|
) => RoleAssumerWithWebIdentity;
|
28
28
|
export type DefaultCredentialProvider = (
|
29
29
|
input: any
|