@jjrawlins/cdk-iam-policy-builder-helper 0.0.37 → 0.0.39

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/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
  3. package/cdk-iam-policy-builder-helper/version +1 -1
  4. package/node_modules/@aws-sdk/client-iam/package.json +11 -11
  5. package/node_modules/@aws-sdk/client-sso/package.json +10 -10
  6. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +15 -38
  7. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +1 -8
  8. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +0 -4
  9. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +0 -6
  10. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +1 -1
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +10 -6
  12. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +0 -6
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +3 -0
  14. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +1 -9
  15. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +0 -2
  16. package/node_modules/@aws-sdk/core/package.json +3 -4
  17. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  18. package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
  19. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  20. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  21. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  22. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  23. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  24. package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
  25. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +29 -2
  26. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/models/models_0.js +13 -0
  27. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/protocols/Aws_restJson1.js +2 -0
  28. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDC.d.ts +1 -1
  29. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +1 -1
  30. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/index.d.ts +1 -1
  31. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/models_0.d.ts +36 -3
  32. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/models/models_0.d.ts +15 -0
  33. package/node_modules/@aws-sdk/nested-clients/package.json +10 -10
  34. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  35. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  36. package/package.json +2 -2
package/.jsii CHANGED
@@ -7,7 +7,7 @@
7
7
  ]
8
8
  },
9
9
  "bundled": {
10
- "@aws-sdk/client-iam": "^3.895.0",
10
+ "@aws-sdk/client-iam": "^3.896.0",
11
11
  "axios": "^1.8.2",
12
12
  "jsonc-parser": "^3.3.1"
13
13
  },
@@ -3526,6 +3526,6 @@
3526
3526
  }
3527
3527
  },
3528
3528
  "types": {},
3529
- "version": "0.0.37",
3530
- "fingerprint": "8FqZ4zn2fLFPCJ1I4mBStPJhk1HrGIwz5EhIjxkePfc="
3529
+ "version": "0.0.39",
3530
+ "fingerprint": "ds/4IcMMGJYLPwedNtmeGLTco1UZM5BmCq1BAEaTHiE="
3531
3531
  }
@@ -13,7 +13,7 @@ import (
13
13
  constructs "github.com/aws/constructs-go/constructs/v10/jsii"
14
14
  )
15
15
 
16
- //go:embed jjrawlins-cdk-iam-policy-builder-helper-0.0.36.tgz
16
+ //go:embed jjrawlins-cdk-iam-policy-builder-helper-0.0.38.tgz
17
17
  var tarball []byte
18
18
 
19
19
  // Initialize loads the necessary packages in the @jsii/kernel to support the enclosing module.
@@ -24,5 +24,5 @@ func Initialize() {
24
24
  constructs.Initialize()
25
25
 
26
26
  // Load this library into the kernel
27
- _jsii_.Load("@jjrawlins/cdk-iam-policy-builder-helper", "0.0.36", tarball)
27
+ _jsii_.Load("@jjrawlins/cdk-iam-policy-builder-helper", "0.0.38", tarball)
28
28
  }
@@ -1 +1 @@
1
- 0.0.36
1
+ 0.0.38
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iam",
3
3
  "description": "AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native",
4
- "version": "3.895.0",
4
+ "version": "3.896.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-iam",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.894.0",
24
- "@aws-sdk/credential-provider-node": "3.895.0",
23
+ "@aws-sdk/core": "3.896.0",
24
+ "@aws-sdk/credential-provider-node": "3.896.0",
25
25
  "@aws-sdk/middleware-host-header": "3.893.0",
26
26
  "@aws-sdk/middleware-logger": "3.893.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.893.0",
28
- "@aws-sdk/middleware-user-agent": "3.895.0",
28
+ "@aws-sdk/middleware-user-agent": "3.896.0",
29
29
  "@aws-sdk/region-config-resolver": "3.893.0",
30
30
  "@aws-sdk/types": "3.893.0",
31
31
  "@aws-sdk/util-endpoints": "3.895.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.893.0",
33
- "@aws-sdk/util-user-agent-node": "3.895.0",
33
+ "@aws-sdk/util-user-agent-node": "3.896.0",
34
34
  "@smithy/config-resolver": "^4.2.2",
35
- "@smithy/core": "^3.11.1",
35
+ "@smithy/core": "^3.12.0",
36
36
  "@smithy/fetch-http-handler": "^5.2.1",
37
37
  "@smithy/hash-node": "^4.1.1",
38
38
  "@smithy/invalid-dependency": "^4.1.1",
39
39
  "@smithy/middleware-content-length": "^4.1.1",
40
- "@smithy/middleware-endpoint": "^4.2.3",
41
- "@smithy/middleware-retry": "^4.2.4",
40
+ "@smithy/middleware-endpoint": "^4.2.4",
41
+ "@smithy/middleware-retry": "^4.3.0",
42
42
  "@smithy/middleware-serde": "^4.1.1",
43
43
  "@smithy/middleware-stack": "^4.1.1",
44
44
  "@smithy/node-config-provider": "^4.2.2",
45
45
  "@smithy/node-http-handler": "^4.2.1",
46
46
  "@smithy/protocol-http": "^5.2.1",
47
- "@smithy/smithy-client": "^4.6.3",
47
+ "@smithy/smithy-client": "^4.6.4",
48
48
  "@smithy/types": "^4.5.0",
49
49
  "@smithy/url-parser": "^4.1.1",
50
50
  "@smithy/util-base64": "^4.1.0",
51
51
  "@smithy/util-body-length-browser": "^4.1.0",
52
52
  "@smithy/util-body-length-node": "^4.1.0",
53
- "@smithy/util-defaults-mode-browser": "^4.1.3",
54
- "@smithy/util-defaults-mode-node": "^4.1.3",
53
+ "@smithy/util-defaults-mode-browser": "^4.1.4",
54
+ "@smithy/util-defaults-mode-node": "^4.1.4",
55
55
  "@smithy/util-endpoints": "^3.1.2",
56
56
  "@smithy/util-middleware": "^4.1.1",
57
57
  "@smithy/util-retry": "^4.1.2",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sso",
3
3
  "description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
4
- "version": "3.895.0",
4
+ "version": "3.896.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sso",
@@ -20,37 +20,37 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.894.0",
23
+ "@aws-sdk/core": "3.896.0",
24
24
  "@aws-sdk/middleware-host-header": "3.893.0",
25
25
  "@aws-sdk/middleware-logger": "3.893.0",
26
26
  "@aws-sdk/middleware-recursion-detection": "3.893.0",
27
- "@aws-sdk/middleware-user-agent": "3.895.0",
27
+ "@aws-sdk/middleware-user-agent": "3.896.0",
28
28
  "@aws-sdk/region-config-resolver": "3.893.0",
29
29
  "@aws-sdk/types": "3.893.0",
30
30
  "@aws-sdk/util-endpoints": "3.895.0",
31
31
  "@aws-sdk/util-user-agent-browser": "3.893.0",
32
- "@aws-sdk/util-user-agent-node": "3.895.0",
32
+ "@aws-sdk/util-user-agent-node": "3.896.0",
33
33
  "@smithy/config-resolver": "^4.2.2",
34
- "@smithy/core": "^3.11.1",
34
+ "@smithy/core": "^3.12.0",
35
35
  "@smithy/fetch-http-handler": "^5.2.1",
36
36
  "@smithy/hash-node": "^4.1.1",
37
37
  "@smithy/invalid-dependency": "^4.1.1",
38
38
  "@smithy/middleware-content-length": "^4.1.1",
39
- "@smithy/middleware-endpoint": "^4.2.3",
40
- "@smithy/middleware-retry": "^4.2.4",
39
+ "@smithy/middleware-endpoint": "^4.2.4",
40
+ "@smithy/middleware-retry": "^4.3.0",
41
41
  "@smithy/middleware-serde": "^4.1.1",
42
42
  "@smithy/middleware-stack": "^4.1.1",
43
43
  "@smithy/node-config-provider": "^4.2.2",
44
44
  "@smithy/node-http-handler": "^4.2.1",
45
45
  "@smithy/protocol-http": "^5.2.1",
46
- "@smithy/smithy-client": "^4.6.3",
46
+ "@smithy/smithy-client": "^4.6.4",
47
47
  "@smithy/types": "^4.5.0",
48
48
  "@smithy/url-parser": "^4.1.1",
49
49
  "@smithy/util-base64": "^4.1.0",
50
50
  "@smithy/util-body-length-browser": "^4.1.0",
51
51
  "@smithy/util-body-length-node": "^4.1.0",
52
- "@smithy/util-defaults-mode-browser": "^4.1.3",
53
- "@smithy/util-defaults-mode-node": "^4.1.3",
52
+ "@smithy/util-defaults-mode-browser": "^4.1.4",
53
+ "@smithy/util-defaults-mode-node": "^4.1.4",
54
54
  "@smithy/util-endpoints": "^3.1.2",
55
55
  "@smithy/util-middleware": "^4.1.1",
56
56
  "@smithy/util-retry": "^4.1.2",
@@ -54,22 +54,10 @@ var import_schema2 = require("@smithy/core/schema");
54
54
 
55
55
  // src/submodules/protocols/ProtocolLib.ts
56
56
  var import_schema = require("@smithy/core/schema");
57
- var import_util_body_length_browser = require("@smithy/util-body-length-browser");
58
57
  var ProtocolLib = class {
59
58
  static {
60
59
  __name(this, "ProtocolLib");
61
60
  }
62
- /**
63
- * @param body - to be inspected.
64
- * @param serdeContext - this is a subset type but in practice is the client.config having a property called bodyLengthChecker.
65
- *
66
- * @returns content-length value for the body if possible.
67
- * @throws Error and should be caught and handled if not possible to determine length.
68
- */
69
- calculateContentLength(body, serdeContext) {
70
- const bodyLengthCalculator = serdeContext?.bodyLengthChecker ?? import_util_body_length_browser.calculateBodyLength;
71
- return String(bodyLengthCalculator(body));
72
- }
73
61
  /**
74
62
  * This is only for REST protocols.
75
63
  *
@@ -127,9 +115,7 @@ var ProtocolLib = class {
127
115
  const errorSchema = getErrorSchema?.(registry, errorName) ?? registry.getSchema(errorIdentifier);
128
116
  return { errorSchema, errorMetadata };
129
117
  } catch (e) {
130
- if (dataObject.Message) {
131
- dataObject.message = dataObject.Message;
132
- }
118
+ dataObject.message = dataObject.message ?? dataObject.Message ?? "UnknownError";
133
119
  const baseExceptionSchema = import_schema.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
134
120
  if (baseExceptionSchema) {
135
121
  const ErrorCtor = baseExceptionSchema.ctor;
@@ -683,7 +669,7 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
683
669
  return (0, import_serde4.generateIdempotencyToken)();
684
670
  }
685
671
  const mediaType = ns.getMergedTraits().mediaType;
686
- if (typeof value === "string" && mediaType) {
672
+ if (value != null && mediaType) {
687
673
  const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
688
674
  if (isJson) {
689
675
  return import_serde4.LazyJsonString.from(value);
@@ -776,10 +762,6 @@ var AwsJsonRpcProtocol = class extends import_protocols3.RpcProtocol {
776
762
  if ((0, import_schema5.deref)(operationSchema.input) === "unit" || !request.body) {
777
763
  request.body = "{}";
778
764
  }
779
- try {
780
- request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
781
- } catch (e) {
782
- }
783
765
  return request;
784
766
  }
785
767
  getPayloadCodec() {
@@ -929,12 +911,6 @@ var AwsRestJsonProtocol = class extends import_protocols4.HttpBindingProtocol {
929
911
  if (request.headers["content-type"] && !request.body) {
930
912
  request.body = "{}";
931
913
  }
932
- if (request.body) {
933
- try {
934
- request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
935
- } catch (e) {
936
- }
937
- }
938
914
  return request;
939
915
  }
940
916
  async handleError(operationSchema, context, response, dataObject, metadata) {
@@ -1037,6 +1013,9 @@ var XmlShapeDeserializer = class extends SerdeContextConfig {
1037
1013
  }
1038
1014
  readSchema(_schema, value) {
1039
1015
  const ns = import_schema7.NormalizedSchema.of(_schema);
1016
+ if (ns.isUnitSchema()) {
1017
+ return;
1018
+ }
1040
1019
  const traits = ns.getMergedTraits();
1041
1020
  if (ns.isListSchema() && !Array.isArray(value)) {
1042
1021
  return this.readSchema(ns, [value]);
@@ -1329,10 +1308,6 @@ var AwsQueryProtocol = class extends import_protocols7.RpcProtocol {
1329
1308
  if (request.body.endsWith("&")) {
1330
1309
  request.body = request.body.slice(-1);
1331
1310
  }
1332
- try {
1333
- request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
1334
- } catch (e) {
1335
- }
1336
1311
  return request;
1337
1312
  }
1338
1313
  async deserializeResponse(operationSchema, context, response) {
@@ -1372,6 +1347,13 @@ var AwsQueryProtocol = class extends import_protocols7.RpcProtocol {
1372
1347
  async handleError(operationSchema, context, response, dataObject, metadata) {
1373
1348
  const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
1374
1349
  const errorData = this.loadQueryError(dataObject);
1350
+ const message = this.loadQueryErrorMessage(dataObject);
1351
+ errorData.message = message;
1352
+ errorData.Error = {
1353
+ Type: errorData.Type,
1354
+ Code: errorData.Code,
1355
+ Message: message
1356
+ };
1375
1357
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(
1376
1358
  errorIdentifier,
1377
1359
  this.options.defaultNamespace,
@@ -1383,9 +1365,10 @@ var AwsQueryProtocol = class extends import_protocols7.RpcProtocol {
1383
1365
  )
1384
1366
  );
1385
1367
  const ns = import_schema9.NormalizedSchema.of(errorSchema);
1386
- const message = this.loadQueryErrorMessage(dataObject);
1387
1368
  const exception = new errorSchema.ctor(message);
1388
- const output = {};
1369
+ const output = {
1370
+ Error: errorData.Error
1371
+ };
1389
1372
  for (const [name, member] of ns.structIterator()) {
1390
1373
  const target = member.getMergedTraits().xmlName ?? name;
1391
1374
  const value = errorData[target] ?? dataObject[target];
@@ -1847,12 +1830,6 @@ var AwsRestXmlProtocol = class extends import_protocols9.HttpBindingProtocol {
1847
1830
  request.body = '<?xml version="1.0" encoding="UTF-8"?>' + request.body;
1848
1831
  }
1849
1832
  }
1850
- if (request.body) {
1851
- try {
1852
- request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
1853
- } catch (e) {
1854
- }
1855
- }
1856
1833
  return request;
1857
1834
  }
1858
1835
  async deserializeResponse(operationSchema, context, response) {
@@ -1,10 +1,5 @@
1
1
  import { TypeRegistry } from "@smithy/core/schema";
2
- import { calculateBodyLength } from "@smithy/util-body-length-browser";
3
2
  export class ProtocolLib {
4
- calculateContentLength(body, serdeContext) {
5
- const bodyLengthCalculator = serdeContext?.bodyLengthChecker ?? calculateBodyLength;
6
- return String(bodyLengthCalculator(body));
7
- }
8
3
  resolveRestContentType(defaultContentType, inputSchema) {
9
4
  const members = inputSchema.getMemberSchemas();
10
5
  const httpPayloadMember = Object.values(members).find((m) => {
@@ -53,9 +48,7 @@ export class ProtocolLib {
53
48
  return { errorSchema, errorMetadata };
54
49
  }
55
50
  catch (e) {
56
- if (dataObject.Message) {
57
- dataObject.message = dataObject.Message;
58
- }
51
+ dataObject.message = dataObject.message ?? dataObject.Message ?? "UnknownError";
59
52
  const baseExceptionSchema = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
60
53
  if (baseExceptionSchema) {
61
54
  const ErrorCtor = baseExceptionSchema.ctor;
@@ -41,10 +41,6 @@ export class AwsJsonRpcProtocol extends RpcProtocol {
41
41
  if (deref(operationSchema.input) === "unit" || !request.body) {
42
42
  request.body = "{}";
43
43
  }
44
- try {
45
- request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
46
- }
47
- catch (e) { }
48
44
  return request;
49
45
  }
50
46
  getPayloadCodec() {
@@ -46,12 +46,6 @@ export class AwsRestJsonProtocol extends HttpBindingProtocol {
46
46
  if (request.headers["content-type"] && !request.body) {
47
47
  request.body = "{}";
48
48
  }
49
- if (request.body) {
50
- try {
51
- request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
52
- }
53
- catch (e) { }
54
- }
55
49
  return request;
56
50
  }
57
51
  async handleError(operationSchema, context, response, dataObject, metadata) {
@@ -104,7 +104,7 @@ export class JsonShapeSerializer extends SerdeContextConfig {
104
104
  return generateIdempotencyToken();
105
105
  }
106
106
  const mediaType = ns.getMergedTraits().mediaType;
107
- if (typeof value === "string" && mediaType) {
107
+ if (value != null && mediaType) {
108
108
  const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
109
109
  if (isJson) {
110
110
  return LazyJsonString.from(value);
@@ -52,10 +52,6 @@ export class AwsQueryProtocol extends RpcProtocol {
52
52
  if (request.body.endsWith("&")) {
53
53
  request.body = request.body.slice(-1);
54
54
  }
55
- try {
56
- request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
57
- }
58
- catch (e) { }
59
55
  return request;
60
56
  }
61
57
  async deserializeResponse(operationSchema, context, response) {
@@ -92,11 +88,19 @@ export class AwsQueryProtocol extends RpcProtocol {
92
88
  async handleError(operationSchema, context, response, dataObject, metadata) {
93
89
  const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
94
90
  const errorData = this.loadQueryError(dataObject);
91
+ const message = this.loadQueryErrorMessage(dataObject);
92
+ errorData.message = message;
93
+ errorData.Error = {
94
+ Type: errorData.Type,
95
+ Code: errorData.Code,
96
+ Message: message,
97
+ };
95
98
  const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, (registry, errorName) => registry.find((schema) => NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName));
96
99
  const ns = NormalizedSchema.of(errorSchema);
97
- const message = this.loadQueryErrorMessage(dataObject);
98
100
  const exception = new errorSchema.ctor(message);
99
- const output = {};
101
+ const output = {
102
+ Error: errorData.Error,
103
+ };
100
104
  for (const [name, member] of ns.structIterator()) {
101
105
  const target = member.getMergedTraits().xmlName ?? name;
102
106
  const value = errorData[target] ?? dataObject[target];
@@ -43,12 +43,6 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol {
43
43
  request.body = '<?xml version="1.0" encoding="UTF-8"?>' + request.body;
44
44
  }
45
45
  }
46
- if (request.body) {
47
- try {
48
- request.headers["content-length"] = this.mixin.calculateContentLength(request.body, this.serdeContext);
49
- }
50
- catch (e) { }
51
- }
52
46
  return request;
53
47
  }
54
48
  async deserializeResponse(operationSchema, context, response) {
@@ -42,6 +42,9 @@ export class XmlShapeDeserializer extends SerdeContextConfig {
42
42
  }
43
43
  readSchema(_schema, value) {
44
44
  const ns = NormalizedSchema.of(_schema);
45
+ if (ns.isUnitSchema()) {
46
+ return;
47
+ }
45
48
  const traits = ns.getMergedTraits();
46
49
  if (ns.isListSchema() && !Array.isArray(value)) {
47
50
  return this.readSchema(ns, [value]);
@@ -1,5 +1,5 @@
1
1
  import { ErrorSchema, NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
2
- import type { HttpResponse as IHttpResponse, MetadataBearer, ResponseMetadata, SerdeFunctions } from "@smithy/types";
2
+ import type { HttpResponse as IHttpResponse, MetadataBearer, ResponseMetadata } from "@smithy/types";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -13,14 +13,6 @@ type ErrorMetadataBearer = MetadataBearer & {
13
13
  * @internal
14
14
  */
15
15
  export declare class ProtocolLib {
16
- /**
17
- * @param body - to be inspected.
18
- * @param serdeContext - this is a subset type but in practice is the client.config having a property called bodyLengthChecker.
19
- *
20
- * @returns content-length value for the body if possible.
21
- * @throws Error and should be caught and handled if not possible to determine length.
22
- */
23
- calculateContentLength(body: any, serdeContext?: SerdeFunctions): string;
24
16
  /**
25
17
  * This is only for REST protocols.
26
18
  *
@@ -7,14 +7,12 @@ import {
7
7
  HttpResponse as IHttpResponse,
8
8
  MetadataBearer,
9
9
  ResponseMetadata,
10
- SerdeFunctions,
11
10
  } from "@smithy/types";
12
11
  type ErrorMetadataBearer = MetadataBearer & {
13
12
  $response: IHttpResponse;
14
13
  $fault: "client" | "server";
15
14
  };
16
15
  export declare class ProtocolLib {
17
- calculateContentLength(body: any, serdeContext?: SerdeFunctions): string;
18
16
  resolveRestContentType(
19
17
  defaultContentType: string,
20
18
  inputSchema: NormalizedSchema
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.894.0",
3
+ "version": "3.896.0",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients.",
5
5
  "scripts": {
6
6
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -83,15 +83,14 @@
83
83
  "dependencies": {
84
84
  "@aws-sdk/types": "3.893.0",
85
85
  "@aws-sdk/xml-builder": "3.894.0",
86
- "@smithy/core": "^3.11.1",
86
+ "@smithy/core": "^3.12.0",
87
87
  "@smithy/node-config-provider": "^4.2.2",
88
88
  "@smithy/property-provider": "^4.1.1",
89
89
  "@smithy/protocol-http": "^5.2.1",
90
90
  "@smithy/signature-v4": "^5.2.1",
91
- "@smithy/smithy-client": "^4.6.3",
91
+ "@smithy/smithy-client": "^4.6.4",
92
92
  "@smithy/types": "^4.5.0",
93
93
  "@smithy/util-base64": "^4.1.0",
94
- "@smithy/util-body-length-browser": "^4.1.0",
95
94
  "@smithy/util-middleware": "^4.1.1",
96
95
  "@smithy/util-utf8": "^4.1.0",
97
96
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-env",
3
- "version": "3.894.0",
3
+ "version": "3.896.0",
4
4
  "description": "AWS credential provider that sources credentials from known environment variables",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/core": "3.894.0",
29
+ "@aws-sdk/core": "3.896.0",
30
30
  "@aws-sdk/types": "3.893.0",
31
31
  "@smithy/property-provider": "^4.1.1",
32
32
  "@smithy/types": "^4.5.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-http",
3
- "version": "3.894.0",
3
+ "version": "3.896.0",
4
4
  "description": "AWS credential provider for containers and HTTP sources",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,13 +28,13 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@aws-sdk/core": "3.894.0",
31
+ "@aws-sdk/core": "3.896.0",
32
32
  "@aws-sdk/types": "3.893.0",
33
33
  "@smithy/fetch-http-handler": "^5.2.1",
34
34
  "@smithy/node-http-handler": "^4.2.1",
35
35
  "@smithy/property-provider": "^4.1.1",
36
36
  "@smithy/protocol-http": "^5.2.1",
37
- "@smithy/smithy-client": "^4.6.3",
37
+ "@smithy/smithy-client": "^4.6.4",
38
38
  "@smithy/types": "^4.5.0",
39
39
  "@smithy/util-stream": "^4.3.2",
40
40
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.895.0",
3
+ "version": "3.896.0",
4
4
  "description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,13 +28,13 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@aws-sdk/core": "3.894.0",
32
- "@aws-sdk/credential-provider-env": "3.894.0",
33
- "@aws-sdk/credential-provider-http": "3.894.0",
34
- "@aws-sdk/credential-provider-process": "3.894.0",
35
- "@aws-sdk/credential-provider-sso": "3.895.0",
36
- "@aws-sdk/credential-provider-web-identity": "3.895.0",
37
- "@aws-sdk/nested-clients": "3.895.0",
31
+ "@aws-sdk/core": "3.896.0",
32
+ "@aws-sdk/credential-provider-env": "3.896.0",
33
+ "@aws-sdk/credential-provider-http": "3.896.0",
34
+ "@aws-sdk/credential-provider-process": "3.896.0",
35
+ "@aws-sdk/credential-provider-sso": "3.896.0",
36
+ "@aws-sdk/credential-provider-web-identity": "3.896.0",
37
+ "@aws-sdk/nested-clients": "3.896.0",
38
38
  "@aws-sdk/types": "3.893.0",
39
39
  "@smithy/credential-provider-imds": "^4.1.2",
40
40
  "@smithy/property-provider": "^4.1.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.895.0",
3
+ "version": "3.896.0",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -31,12 +31,12 @@
31
31
  },
32
32
  "license": "Apache-2.0",
33
33
  "dependencies": {
34
- "@aws-sdk/credential-provider-env": "3.894.0",
35
- "@aws-sdk/credential-provider-http": "3.894.0",
36
- "@aws-sdk/credential-provider-ini": "3.895.0",
37
- "@aws-sdk/credential-provider-process": "3.894.0",
38
- "@aws-sdk/credential-provider-sso": "3.895.0",
39
- "@aws-sdk/credential-provider-web-identity": "3.895.0",
34
+ "@aws-sdk/credential-provider-env": "3.896.0",
35
+ "@aws-sdk/credential-provider-http": "3.896.0",
36
+ "@aws-sdk/credential-provider-ini": "3.896.0",
37
+ "@aws-sdk/credential-provider-process": "3.896.0",
38
+ "@aws-sdk/credential-provider-sso": "3.896.0",
39
+ "@aws-sdk/credential-provider-web-identity": "3.896.0",
40
40
  "@aws-sdk/types": "3.893.0",
41
41
  "@smithy/credential-provider-imds": "^4.1.2",
42
42
  "@smithy/property-provider": "^4.1.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.894.0",
3
+ "version": "3.896.0",
4
4
  "description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/core": "3.894.0",
29
+ "@aws-sdk/core": "3.896.0",
30
30
  "@aws-sdk/types": "3.893.0",
31
31
  "@smithy/property-provider": "^4.1.1",
32
32
  "@smithy/shared-ini-file-loader": "^4.2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.895.0",
3
+ "version": "3.896.0",
4
4
  "description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/client-sso": "3.895.0",
30
- "@aws-sdk/core": "3.894.0",
31
- "@aws-sdk/token-providers": "3.895.0",
29
+ "@aws-sdk/client-sso": "3.896.0",
30
+ "@aws-sdk/core": "3.896.0",
31
+ "@aws-sdk/token-providers": "3.896.0",
32
32
  "@aws-sdk/types": "3.893.0",
33
33
  "@smithy/property-provider": "^4.1.1",
34
34
  "@smithy/shared-ini-file-loader": "^4.2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.895.0",
3
+ "version": "3.896.0",
4
4
  "description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -34,8 +34,8 @@
34
34
  },
35
35
  "license": "Apache-2.0",
36
36
  "dependencies": {
37
- "@aws-sdk/core": "3.894.0",
38
- "@aws-sdk/nested-clients": "3.895.0",
37
+ "@aws-sdk/core": "3.896.0",
38
+ "@aws-sdk/nested-clients": "3.896.0",
39
39
  "@aws-sdk/types": "3.893.0",
40
40
  "@smithy/property-provider": "^4.1.1",
41
41
  "@smithy/shared-ini-file-loader": "^4.2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.895.0",
3
+ "version": "3.896.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/core": "3.894.0",
28
+ "@aws-sdk/core": "3.896.0",
29
29
  "@aws-sdk/types": "3.893.0",
30
30
  "@aws-sdk/util-endpoints": "3.895.0",
31
- "@smithy/core": "^3.11.1",
31
+ "@smithy/core": "^3.12.0",
32
32
  "@smithy/protocol-http": "^5.2.1",
33
33
  "@smithy/types": "^4.5.0",
34
34
  "tslib": "^2.6.2"
@@ -23,6 +23,7 @@ var index_exports = {};
23
23
  __export(index_exports, {
24
24
  $Command: () => import_smithy_client6.Command,
25
25
  AccessDeniedException: () => AccessDeniedException,
26
+ AccessDeniedExceptionReason: () => AccessDeniedExceptionReason,
26
27
  AuthorizationPendingException: () => AuthorizationPendingException,
27
28
  CreateTokenCommand: () => CreateTokenCommand,
28
29
  CreateTokenRequestFilterSensitiveLog: () => CreateTokenRequestFilterSensitiveLog,
@@ -32,6 +33,7 @@ __export(index_exports, {
32
33
  InvalidClientException: () => InvalidClientException,
33
34
  InvalidGrantException: () => InvalidGrantException,
34
35
  InvalidRequestException: () => InvalidRequestException,
36
+ InvalidRequestExceptionReason: () => InvalidRequestExceptionReason,
35
37
  InvalidScopeException: () => InvalidScopeException,
36
38
  SSOOIDC: () => SSOOIDC,
37
39
  SSOOIDCClient: () => SSOOIDCClient,
@@ -211,6 +213,9 @@ var SSOOIDCServiceException = class _SSOOIDCServiceException extends import_smit
211
213
  };
212
214
 
213
215
  // src/submodules/sso-oidc/models/models_0.ts
216
+ var AccessDeniedExceptionReason = {
217
+ KMS_ACCESS_DENIED: "KMS_AccessDeniedException"
218
+ };
214
219
  var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException {
215
220
  static {
216
221
  __name(this, "AccessDeniedException");
@@ -222,6 +227,11 @@ var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceE
222
227
  * @public
223
228
  */
224
229
  error;
230
+ /**
231
+ * <p>A string that uniquely identifies a reason for the error.</p>
232
+ * @public
233
+ */
234
+ reason;
225
235
  /**
226
236
  * <p>Human-readable text providing additional information, used to assist the client developer
227
237
  * in understanding the error that occurred.</p>
@@ -239,6 +249,7 @@ var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceE
239
249
  });
240
250
  Object.setPrototypeOf(this, _AccessDeniedException.prototype);
241
251
  this.error = opts.error;
252
+ this.reason = opts.reason;
242
253
  this.error_description = opts.error_description;
243
254
  }
244
255
  };
@@ -411,6 +422,12 @@ var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceE
411
422
  this.error_description = opts.error_description;
412
423
  }
413
424
  };
425
+ var InvalidRequestExceptionReason = {
426
+ KMS_DISABLED_KEY: "KMS_DisabledException",
427
+ KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
428
+ KMS_INVALID_STATE: "KMS_InvalidStateException",
429
+ KMS_KEY_NOT_FOUND: "KMS_NotFoundException"
430
+ };
414
431
  var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException {
415
432
  static {
416
433
  __name(this, "InvalidRequestException");
@@ -423,6 +440,11 @@ var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServ
423
440
  * @public
424
441
  */
425
442
  error;
443
+ /**
444
+ * <p>A string that uniquely identifies a reason for the error.</p>
445
+ * @public
446
+ */
447
+ reason;
426
448
  /**
427
449
  * <p>Human-readable text providing additional information, used to assist the client developer
428
450
  * in understanding the error that occurred.</p>
@@ -440,6 +462,7 @@ var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServ
440
462
  });
441
463
  Object.setPrototypeOf(this, _InvalidRequestException.prototype);
442
464
  this.error = opts.error;
465
+ this.reason = opts.reason;
443
466
  this.error_description = opts.error_description;
444
467
  }
445
468
  };
@@ -670,7 +693,8 @@ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, co
670
693
  const data = parsedOutput.body;
671
694
  const doc = (0, import_smithy_client5.take)(data, {
672
695
  error: import_smithy_client5.expectString,
673
- error_description: import_smithy_client5.expectString
696
+ error_description: import_smithy_client5.expectString,
697
+ reason: import_smithy_client5.expectString
674
698
  });
675
699
  Object.assign(contents, doc);
676
700
  const exception = new AccessDeniedException({
@@ -754,7 +778,8 @@ var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput,
754
778
  const data = parsedOutput.body;
755
779
  const doc = (0, import_smithy_client5.take)(data, {
756
780
  error: import_smithy_client5.expectString,
757
- error_description: import_smithy_client5.expectString
781
+ error_description: import_smithy_client5.expectString,
782
+ reason: import_smithy_client5.expectString
758
783
  });
759
784
  Object.assign(contents, doc);
760
785
  const exception = new InvalidRequestException({
@@ -852,6 +877,7 @@ var SSOOIDC = class extends SSOOIDCClient {
852
877
  0 && (module.exports = {
853
878
  $Command,
854
879
  AccessDeniedException,
880
+ AccessDeniedExceptionReason,
855
881
  AuthorizationPendingException,
856
882
  CreateTokenCommand,
857
883
  CreateTokenRequestFilterSensitiveLog,
@@ -861,6 +887,7 @@ var SSOOIDC = class extends SSOOIDCClient {
861
887
  InvalidClientException,
862
888
  InvalidGrantException,
863
889
  InvalidRequestException,
890
+ InvalidRequestExceptionReason,
864
891
  InvalidScopeException,
865
892
  SSOOIDC,
866
893
  SSOOIDCClient,
@@ -1,9 +1,13 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { SSOOIDCServiceException as __BaseException } from "./SSOOIDCServiceException";
3
+ export const AccessDeniedExceptionReason = {
4
+ KMS_ACCESS_DENIED: "KMS_AccessDeniedException",
5
+ };
3
6
  export class AccessDeniedException extends __BaseException {
4
7
  name = "AccessDeniedException";
5
8
  $fault = "client";
6
9
  error;
10
+ reason;
7
11
  error_description;
8
12
  constructor(opts) {
9
13
  super({
@@ -13,6 +17,7 @@ export class AccessDeniedException extends __BaseException {
13
17
  });
14
18
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
19
  this.error = opts.error;
20
+ this.reason = opts.reason;
16
21
  this.error_description = opts.error_description;
17
22
  }
18
23
  }
@@ -108,10 +113,17 @@ export class InvalidGrantException extends __BaseException {
108
113
  this.error_description = opts.error_description;
109
114
  }
110
115
  }
116
+ export const InvalidRequestExceptionReason = {
117
+ KMS_DISABLED_KEY: "KMS_DisabledException",
118
+ KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException",
119
+ KMS_INVALID_STATE: "KMS_InvalidStateException",
120
+ KMS_KEY_NOT_FOUND: "KMS_NotFoundException",
121
+ };
111
122
  export class InvalidRequestException extends __BaseException {
112
123
  name = "InvalidRequestException";
113
124
  $fault = "client";
114
125
  error;
126
+ reason;
115
127
  error_description;
116
128
  constructor(opts) {
117
129
  super({
@@ -121,6 +133,7 @@ export class InvalidRequestException extends __BaseException {
121
133
  });
122
134
  Object.setPrototypeOf(this, InvalidRequestException.prototype);
123
135
  this.error = opts.error;
136
+ this.reason = opts.reason;
124
137
  this.error_description = opts.error_description;
125
138
  }
126
139
  }
@@ -98,6 +98,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
98
98
  const doc = take(data, {
99
99
  error: __expectString,
100
100
  error_description: __expectString,
101
+ reason: __expectString,
101
102
  });
102
103
  Object.assign(contents, doc);
103
104
  const exception = new AccessDeniedException({
@@ -182,6 +183,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
182
183
  const doc = take(data, {
183
184
  error: __expectString,
184
185
  error_description: __expectString,
186
+ reason: __expectString,
185
187
  });
186
188
  Object.assign(contents, doc);
187
189
  const exception = new InvalidRequestException({
@@ -17,7 +17,7 @@ export interface SSOOIDC {
17
17
  * <b>API namespaces</b>
18
18
  * </p>
19
19
  * <p>IAM Identity Center uses the <code>sso</code> and <code>identitystore</code> API namespaces. IAM Identity Center
20
- * OpenID Connect uses the <code>sso-oidc</code> namespace.</p>
20
+ * OpenID Connect uses the <code>sso-oauth</code> namespace.</p>
21
21
  * <p>
22
22
  * <b>Considerations for using this guide</b>
23
23
  * </p>
@@ -171,7 +171,7 @@ export interface SSOOIDCClientResolvedConfig extends SSOOIDCClientResolvedConfig
171
171
  * <b>API namespaces</b>
172
172
  * </p>
173
173
  * <p>IAM Identity Center uses the <code>sso</code> and <code>identitystore</code> API namespaces. IAM Identity Center
174
- * OpenID Connect uses the <code>sso-oidc</code> namespace.</p>
174
+ * OpenID Connect uses the <code>sso-oauth</code> namespace.</p>
175
175
  * <p>
176
176
  * <b>Considerations for using this guide</b>
177
177
  * </p>
@@ -6,7 +6,7 @@
6
6
  * <b>API namespaces</b>
7
7
  * </p>
8
8
  * <p>IAM Identity Center uses the <code>sso</code> and <code>identitystore</code> API namespaces. IAM Identity Center
9
- * OpenID Connect uses the <code>sso-oidc</code> namespace.</p>
9
+ * OpenID Connect uses the <code>sso-oauth</code> namespace.</p>
10
10
  * <p>
11
11
  * <b>Considerations for using this guide</b>
12
12
  * </p>
@@ -1,5 +1,16 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { SSOOIDCServiceException as __BaseException } from "./SSOOIDCServiceException";
3
+ /**
4
+ * @public
5
+ * @enum
6
+ */
7
+ export declare const AccessDeniedExceptionReason: {
8
+ readonly KMS_ACCESS_DENIED: "KMS_AccessDeniedException";
9
+ };
10
+ /**
11
+ * @public
12
+ */
13
+ export type AccessDeniedExceptionReason = (typeof AccessDeniedExceptionReason)[keyof typeof AccessDeniedExceptionReason];
3
14
  /**
4
15
  * <p>You do not have sufficient access to perform this action.</p>
5
16
  * @public
@@ -12,6 +23,11 @@ export declare class AccessDeniedException extends __BaseException {
12
23
  * @public
13
24
  */
14
25
  error?: string | undefined;
26
+ /**
27
+ * <p>A string that uniquely identifies a reason for the error.</p>
28
+ * @public
29
+ */
30
+ reason?: AccessDeniedExceptionReason | undefined;
15
31
  /**
16
32
  * <p>Human-readable text providing additional information, used to assist the client developer
17
33
  * in understanding the error that occurred.</p>
@@ -98,9 +114,7 @@ export interface CreateTokenRequest {
98
114
  */
99
115
  refreshToken?: string | undefined;
100
116
  /**
101
- * <p>The list of scopes for which authorization is requested. The access token that is issued
102
- * is limited to the scopes that are granted. If this value is not specified, IAM Identity Center authorizes
103
- * all scopes that are configured for the client during the call to <a>RegisterClient</a>.</p>
117
+ * <p>The list of scopes for which authorization is requested. This parameter has no effect; the access token will always include all scopes configured during client registration.</p>
104
118
  * @public
105
119
  */
106
120
  scope?: string[] | undefined;
@@ -264,6 +278,20 @@ export declare class InvalidGrantException extends __BaseException {
264
278
  */
265
279
  constructor(opts: __ExceptionOptionType<InvalidGrantException, __BaseException>);
266
280
  }
281
+ /**
282
+ * @public
283
+ * @enum
284
+ */
285
+ export declare const InvalidRequestExceptionReason: {
286
+ readonly KMS_DISABLED_KEY: "KMS_DisabledException";
287
+ readonly KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException";
288
+ readonly KMS_INVALID_STATE: "KMS_InvalidStateException";
289
+ readonly KMS_KEY_NOT_FOUND: "KMS_NotFoundException";
290
+ };
291
+ /**
292
+ * @public
293
+ */
294
+ export type InvalidRequestExceptionReason = (typeof InvalidRequestExceptionReason)[keyof typeof InvalidRequestExceptionReason];
267
295
  /**
268
296
  * <p>Indicates that something is wrong with the input to the request. For example, a required
269
297
  * parameter might be missing or out of range.</p>
@@ -278,6 +306,11 @@ export declare class InvalidRequestException extends __BaseException {
278
306
  * @public
279
307
  */
280
308
  error?: string | undefined;
309
+ /**
310
+ * <p>A string that uniquely identifies a reason for the error.</p>
311
+ * @public
312
+ */
313
+ reason?: InvalidRequestExceptionReason | undefined;
281
314
  /**
282
315
  * <p>Human-readable text providing additional information, used to assist the client developer
283
316
  * in understanding the error that occurred.</p>
@@ -1,9 +1,15 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { SSOOIDCServiceException as __BaseException } from "./SSOOIDCServiceException";
3
+ export declare const AccessDeniedExceptionReason: {
4
+ readonly KMS_ACCESS_DENIED: "KMS_AccessDeniedException";
5
+ };
6
+ export type AccessDeniedExceptionReason =
7
+ (typeof AccessDeniedExceptionReason)[keyof typeof AccessDeniedExceptionReason];
3
8
  export declare class AccessDeniedException extends __BaseException {
4
9
  readonly name: "AccessDeniedException";
5
10
  readonly $fault: "client";
6
11
  error?: string | undefined;
12
+ reason?: AccessDeniedExceptionReason | undefined;
7
13
  error_description?: string | undefined;
8
14
  constructor(
9
15
  opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
@@ -78,10 +84,19 @@ export declare class InvalidGrantException extends __BaseException {
78
84
  opts: __ExceptionOptionType<InvalidGrantException, __BaseException>
79
85
  );
80
86
  }
87
+ export declare const InvalidRequestExceptionReason: {
88
+ readonly KMS_DISABLED_KEY: "KMS_DisabledException";
89
+ readonly KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException";
90
+ readonly KMS_INVALID_STATE: "KMS_InvalidStateException";
91
+ readonly KMS_KEY_NOT_FOUND: "KMS_NotFoundException";
92
+ };
93
+ export type InvalidRequestExceptionReason =
94
+ (typeof InvalidRequestExceptionReason)[keyof typeof InvalidRequestExceptionReason];
81
95
  export declare class InvalidRequestException extends __BaseException {
82
96
  readonly name: "InvalidRequestException";
83
97
  readonly $fault: "client";
84
98
  error?: string | undefined;
99
+ reason?: InvalidRequestExceptionReason | undefined;
85
100
  error_description?: string | undefined;
86
101
  constructor(
87
102
  opts: __ExceptionOptionType<InvalidRequestException, __BaseException>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.895.0",
3
+ "version": "3.896.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,37 +29,37 @@
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.894.0",
32
+ "@aws-sdk/core": "3.896.0",
33
33
  "@aws-sdk/middleware-host-header": "3.893.0",
34
34
  "@aws-sdk/middleware-logger": "3.893.0",
35
35
  "@aws-sdk/middleware-recursion-detection": "3.893.0",
36
- "@aws-sdk/middleware-user-agent": "3.895.0",
36
+ "@aws-sdk/middleware-user-agent": "3.896.0",
37
37
  "@aws-sdk/region-config-resolver": "3.893.0",
38
38
  "@aws-sdk/types": "3.893.0",
39
39
  "@aws-sdk/util-endpoints": "3.895.0",
40
40
  "@aws-sdk/util-user-agent-browser": "3.893.0",
41
- "@aws-sdk/util-user-agent-node": "3.895.0",
41
+ "@aws-sdk/util-user-agent-node": "3.896.0",
42
42
  "@smithy/config-resolver": "^4.2.2",
43
- "@smithy/core": "^3.11.1",
43
+ "@smithy/core": "^3.12.0",
44
44
  "@smithy/fetch-http-handler": "^5.2.1",
45
45
  "@smithy/hash-node": "^4.1.1",
46
46
  "@smithy/invalid-dependency": "^4.1.1",
47
47
  "@smithy/middleware-content-length": "^4.1.1",
48
- "@smithy/middleware-endpoint": "^4.2.3",
49
- "@smithy/middleware-retry": "^4.2.4",
48
+ "@smithy/middleware-endpoint": "^4.2.4",
49
+ "@smithy/middleware-retry": "^4.3.0",
50
50
  "@smithy/middleware-serde": "^4.1.1",
51
51
  "@smithy/middleware-stack": "^4.1.1",
52
52
  "@smithy/node-config-provider": "^4.2.2",
53
53
  "@smithy/node-http-handler": "^4.2.1",
54
54
  "@smithy/protocol-http": "^5.2.1",
55
- "@smithy/smithy-client": "^4.6.3",
55
+ "@smithy/smithy-client": "^4.6.4",
56
56
  "@smithy/types": "^4.5.0",
57
57
  "@smithy/url-parser": "^4.1.1",
58
58
  "@smithy/util-base64": "^4.1.0",
59
59
  "@smithy/util-body-length-browser": "^4.1.0",
60
60
  "@smithy/util-body-length-node": "^4.1.0",
61
- "@smithy/util-defaults-mode-browser": "^4.1.3",
62
- "@smithy/util-defaults-mode-node": "^4.1.3",
61
+ "@smithy/util-defaults-mode-browser": "^4.1.4",
62
+ "@smithy/util-defaults-mode-node": "^4.1.4",
63
63
  "@smithy/util-endpoints": "^3.1.2",
64
64
  "@smithy/util-middleware": "^4.1.1",
65
65
  "@smithy/util-retry": "^4.1.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.895.0",
3
+ "version": "3.896.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "license": "Apache-2.0",
31
31
  "dependencies": {
32
- "@aws-sdk/core": "3.894.0",
33
- "@aws-sdk/nested-clients": "3.895.0",
32
+ "@aws-sdk/core": "3.896.0",
33
+ "@aws-sdk/nested-clients": "3.896.0",
34
34
  "@aws-sdk/types": "3.893.0",
35
35
  "@smithy/property-provider": "^4.1.1",
36
36
  "@smithy/shared-ini-file-loader": "^4.2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-node",
3
- "version": "3.895.0",
3
+ "version": "3.896.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline util-user-agent-node",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/middleware-user-agent": "3.895.0",
25
+ "@aws-sdk/middleware-user-agent": "3.896.0",
26
26
  "@aws-sdk/types": "3.893.0",
27
27
  "@smithy/node-config-provider": "^4.2.2",
28
28
  "@smithy/types": "^4.5.0",
package/package.json CHANGED
@@ -69,7 +69,7 @@
69
69
  "constructs": "^10.0.5"
70
70
  },
71
71
  "dependencies": {
72
- "@aws-sdk/client-iam": "^3.895.0",
72
+ "@aws-sdk/client-iam": "^3.896.0",
73
73
  "axios": "^1.8.2",
74
74
  "constructs": "^10.4.2",
75
75
  "jsonc-parser": "^3.3.1"
@@ -101,7 +101,7 @@
101
101
  "publishConfig": {
102
102
  "access": "public"
103
103
  },
104
- "version": "0.0.37",
104
+ "version": "0.0.39",
105
105
  "jest": {
106
106
  "coverageProvider": "v8",
107
107
  "testMatch": [