@cdk8s/awscdk-resolver 0.0.234 → 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.
Files changed (36) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +34 -34
  4. package/node_modules/@aws-sdk/client-sso/package.json +32 -32
  5. package/node_modules/@aws-sdk/core/package.json +10 -10
  6. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  7. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  8. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  9. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  10. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  11. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  12. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
  13. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  14. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  15. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  16. package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
  17. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +2 -101
  18. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +170 -95
  19. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +2 -140
  20. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +6 -4
  21. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +2 -101
  22. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js +6 -4
  23. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +2 -140
  24. package/node_modules/@aws-sdk/nested-clients/dist-types/index.d.ts +1 -0
  25. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +2 -2
  26. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/defaultStsRoleAssumers.d.ts +2 -2
  27. package/node_modules/@aws-sdk/nested-clients/package.json +34 -34
  28. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  29. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  30. package/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +20 -2
  31. package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +11 -2
  32. package/node_modules/@aws-sdk/types/package.json +2 -2
  33. package/node_modules/@aws-sdk/util-endpoints/package.json +4 -4
  34. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  35. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  36. package/package.json +4 -4
@@ -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
- url: "https://sts.amazonaws.com",
7
- properties: { authSchemes: [{ name: e, signingName: f, signingRegion: g }] },
8
- headers: {},
9
- }, v = {}, w = { conditions: [{ [H]: d, [I]: [q, "aws-global"] }], [h]: u, [G]: h }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }, A = { [J]: "PartitionResult" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }, C = [{ [H]: "isSet", [I]: [o] }], D = [x], E = [y];
10
- const _data = {
11
- version: "1.0",
12
- parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n },
13
- rules: [
14
- {
15
- conditions: [
16
- { [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] },
17
- { [H]: "not", [I]: C },
18
- p,
19
- r,
20
- { [H]: c, [I]: [s, a] },
21
- { [H]: c, [I]: [t, a] },
22
- ],
23
- rules: [
24
- { conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h },
25
- { conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h },
26
- { conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h },
27
- { conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h },
28
- w,
29
- { conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h },
30
- { conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h },
31
- { conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h },
32
- { conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h },
33
- { conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h },
34
- { conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h },
35
- { conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h },
36
- { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h },
37
- { conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h },
38
- { conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h },
39
- { conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h },
40
- {
41
- endpoint: {
42
- url: i,
43
- properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] },
44
- headers: v,
45
- },
46
- [G]: h,
47
- },
48
- ],
49
- [G]: j,
50
- },
51
- {
52
- conditions: C,
53
- rules: [
54
- { conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k },
55
- { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k },
56
- { endpoint: { url: o, properties: v, headers: v }, [G]: h },
57
- ],
58
- [G]: j,
59
- },
60
- {
61
- conditions: [p],
62
- rules: [
63
- {
64
- conditions: [r],
65
- rules: [
66
- {
67
- conditions: [x, y],
68
- rules: [
69
- {
70
- conditions: [{ [H]: c, [I]: [b, z] }, B],
71
- rules: [
72
- {
73
- endpoint: {
74
- url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
75
- properties: v,
76
- headers: v,
77
- },
78
- [G]: h,
79
- },
80
- ],
81
- [G]: j,
82
- },
83
- { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k },
84
- ],
85
- [G]: j,
86
- },
87
- {
88
- conditions: D,
89
- rules: [
90
- {
91
- conditions: [{ [H]: c, [I]: [z, b] }],
92
- rules: [
93
- {
94
- conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, "name"] }, "aws-us-gov"] }],
95
- endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v },
96
- [G]: h,
97
- },
98
- {
99
- endpoint: {
100
- url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",
101
- properties: v,
102
- headers: v,
103
- },
104
- [G]: h,
105
- },
106
- ],
107
- [G]: j,
108
- },
109
- { error: "FIPS is enabled but this partition does not support FIPS", [G]: k },
110
- ],
111
- [G]: j,
112
- },
113
- {
114
- conditions: E,
115
- rules: [
116
- {
117
- conditions: [B],
118
- rules: [
119
- {
120
- endpoint: {
121
- url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",
122
- properties: v,
123
- headers: v,
124
- },
125
- [G]: h,
126
- },
127
- ],
128
- [G]: j,
129
- },
130
- { error: "DualStack is enabled but this partition does not support DualStack", [G]: k },
131
- ],
132
- [G]: j,
133
- },
134
- w,
135
- { endpoint: { url: i, properties: v, headers: v }, [G]: h },
136
- ],
137
- [G]: j,
138
- },
139
- ],
140
- [G]: j,
141
- },
142
- { error: "Invalid Configuration: Missing Region", [G]: k },
143
- ],
144
- };
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, stsClientCtor) => {
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 stsClientCtor({
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, stsClientCtor) => {
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 stsClientCtor({
873
+ stsClient = new STSClient3({
874
+ profile: stsOptions?.parentClientConfig?.profile,
873
875
  region: resolvedRegion,
874
876
  requestHandler: isCompatibleRequestHandler ? requestHandler : void 0,
875
877
  logger
@@ -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;
@@ -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, stsClientCtor) => {
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 stsClientCtor({
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, stsClientCtor) => {
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 stsClientCtor({
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
- url: "https://sts.amazonaws.com",
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;
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This package exports nothing at the root.
3
3
  * Use submodules e.g. \@aws-sdk/nested-clients/client-sts.
4
+ *
4
5
  * @internal
5
6
  */
6
7
  export {};
@@ -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, stsClientCtor: new (options: STSClientConfig) => STSClient) => RoleAssumer;
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, stsClientCtor: new (options: STSClientConfig) => STSClient) => RoleAssumerWithWebIdentity;
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
- stsClientCtor: new (options: STSClientConfig) => STSClient
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
- stsClientCtor: new (options: STSClientConfig) => STSClient
26
+ STSClient: new (options: STSClientConfig) => STSClient
27
27
  ) => RoleAssumerWithWebIdentity;
28
28
  export type DefaultCredentialProvider = (
29
29
  input: any
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.730.0",
3
+ "version": "3.734.0",
4
4
  "description": "Nested clients for AWS SDK packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,40 +28,40 @@
28
28
  "dependencies": {
29
29
  "@aws-crypto/sha256-browser": "5.2.0",
30
30
  "@aws-crypto/sha256-js": "5.2.0",
31
- "@aws-sdk/core": "3.730.0",
32
- "@aws-sdk/middleware-host-header": "3.723.0",
33
- "@aws-sdk/middleware-logger": "3.723.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.723.0",
35
- "@aws-sdk/middleware-user-agent": "3.730.0",
36
- "@aws-sdk/region-config-resolver": "3.723.0",
37
- "@aws-sdk/types": "3.723.0",
38
- "@aws-sdk/util-endpoints": "3.730.0",
39
- "@aws-sdk/util-user-agent-browser": "3.723.0",
40
- "@aws-sdk/util-user-agent-node": "3.730.0",
41
- "@smithy/config-resolver": "^4.0.0",
42
- "@smithy/core": "^3.0.0",
43
- "@smithy/fetch-http-handler": "^5.0.0",
44
- "@smithy/hash-node": "^4.0.0",
45
- "@smithy/invalid-dependency": "^4.0.0",
46
- "@smithy/middleware-content-length": "^4.0.0",
47
- "@smithy/middleware-endpoint": "^4.0.0",
48
- "@smithy/middleware-retry": "^4.0.0",
49
- "@smithy/middleware-serde": "^4.0.0",
50
- "@smithy/middleware-stack": "^4.0.0",
51
- "@smithy/node-config-provider": "^4.0.0",
52
- "@smithy/node-http-handler": "^4.0.0",
53
- "@smithy/protocol-http": "^5.0.0",
54
- "@smithy/smithy-client": "^4.0.0",
55
- "@smithy/types": "^4.0.0",
56
- "@smithy/url-parser": "^4.0.0",
31
+ "@aws-sdk/core": "3.734.0",
32
+ "@aws-sdk/middleware-host-header": "3.734.0",
33
+ "@aws-sdk/middleware-logger": "3.734.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.734.0",
35
+ "@aws-sdk/middleware-user-agent": "3.734.0",
36
+ "@aws-sdk/region-config-resolver": "3.734.0",
37
+ "@aws-sdk/types": "3.734.0",
38
+ "@aws-sdk/util-endpoints": "3.734.0",
39
+ "@aws-sdk/util-user-agent-browser": "3.734.0",
40
+ "@aws-sdk/util-user-agent-node": "3.734.0",
41
+ "@smithy/config-resolver": "^4.0.1",
42
+ "@smithy/core": "^3.1.1",
43
+ "@smithy/fetch-http-handler": "^5.0.1",
44
+ "@smithy/hash-node": "^4.0.1",
45
+ "@smithy/invalid-dependency": "^4.0.1",
46
+ "@smithy/middleware-content-length": "^4.0.1",
47
+ "@smithy/middleware-endpoint": "^4.0.2",
48
+ "@smithy/middleware-retry": "^4.0.3",
49
+ "@smithy/middleware-serde": "^4.0.1",
50
+ "@smithy/middleware-stack": "^4.0.1",
51
+ "@smithy/node-config-provider": "^4.0.1",
52
+ "@smithy/node-http-handler": "^4.0.2",
53
+ "@smithy/protocol-http": "^5.0.1",
54
+ "@smithy/smithy-client": "^4.1.2",
55
+ "@smithy/types": "^4.1.0",
56
+ "@smithy/url-parser": "^4.0.1",
57
57
  "@smithy/util-base64": "^4.0.0",
58
58
  "@smithy/util-body-length-browser": "^4.0.0",
59
59
  "@smithy/util-body-length-node": "^4.0.0",
60
- "@smithy/util-defaults-mode-browser": "^4.0.0",
61
- "@smithy/util-defaults-mode-node": "^4.0.0",
62
- "@smithy/util-endpoints": "^3.0.0",
63
- "@smithy/util-middleware": "^4.0.0",
64
- "@smithy/util-retry": "^4.0.0",
60
+ "@smithy/util-defaults-mode-browser": "^4.0.3",
61
+ "@smithy/util-defaults-mode-node": "^4.0.3",
62
+ "@smithy/util-endpoints": "^3.0.1",
63
+ "@smithy/util-middleware": "^4.0.1",
64
+ "@smithy/util-retry": "^4.0.1",
65
65
  "@smithy/util-utf8": "^4.0.0",
66
66
  "tslib": "^2.6.2"
67
67
  },
@@ -86,8 +86,8 @@
86
86
  "dist-*/**"
87
87
  ],
88
88
  "browser": {
89
- "./dist-es/nested-sso-oidc/runtimeConfig": "./dist-es/nested-sso-oidc/runtimeConfig.browser",
90
- "./dist-es/nested-sts/runtimeConfig": "./dist-es/nested-sts/runtimeConfig.browser"
89
+ "./dist-es/submodules/sso-oidc/runtimeConfig": "./dist-es/submodules/sso-oidc/runtimeConfig.browser",
90
+ "./dist-es/submodules/sts/runtimeConfig": "./dist-es/submodules/sts/runtimeConfig.browser"
91
91
  },
92
92
  "react-native": {},
93
93
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",