@jjrawlins/cdk-iam-policy-builder-helper 0.0.52 → 0.0.53

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 (110) 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/dist-cjs/index.js +13439 -13574
  5. package/node_modules/@aws-sdk/client-iam/package.json +5 -5
  6. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +478 -596
  7. package/node_modules/@aws-sdk/client-sso/package.json +4 -4
  8. package/node_modules/@aws-sdk/core/dist-cjs/index.js +1969 -6
  9. package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +48 -88
  10. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +35 -74
  11. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +273 -365
  12. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1581 -1863
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +2 -2
  14. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +2 -2
  15. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +4 -4
  16. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +4 -4
  17. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +3 -3
  18. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +4 -4
  19. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +2 -2
  20. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -4
  21. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +1 -1
  22. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +1 -1
  23. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +1 -1
  24. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +1 -1
  25. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +1 -1
  26. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +1 -1
  27. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +1 -1
  28. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
  29. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +2 -2
  30. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +1 -1
  31. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlCodec.d.ts +1 -1
  32. package/node_modules/@aws-sdk/core/package.json +1 -1
  33. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +38 -73
  34. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  35. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  36. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +194 -259
  37. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  38. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +72 -132
  39. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  40. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +71 -107
  41. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  42. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +176 -249
  43. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-CVy8iqsZ.js +14 -0
  44. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  45. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +16 -25
  46. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  47. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +170 -203
  48. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  49. package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +2 -2
  50. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +583 -858
  51. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +795 -928
  52. package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  53. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +147 -222
  54. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  55. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +50 -94
  56. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  57. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1 -1
  58. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +5 -3
  59. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +32 -30
  60. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +133 -202
  61. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +126 -34
  62. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +2 -2
  63. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -3
  64. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +4 -4
  65. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +3 -3
  66. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -2
  67. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +19 -17
  68. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +4 -4
  69. package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js +5 -6
  70. package/node_modules/@smithy/core/dist-es/submodules/schema/index.js +1 -0
  71. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +82 -176
  72. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +22 -0
  73. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  74. package/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js +110 -0
  75. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +4 -26
  76. package/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts +1 -0
  77. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +5 -24
  78. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts +2 -0
  79. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +7 -0
  80. package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
  81. package/node_modules/@smithy/core/dist-types/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
  82. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts +1 -0
  83. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +5 -24
  84. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +2 -0
  85. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +7 -0
  86. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
  87. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
  88. package/node_modules/@smithy/core/package.json +3 -3
  89. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  90. package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
  91. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  92. package/node_modules/@smithy/smithy-client/package.json +4 -4
  93. package/node_modules/@smithy/util-base64/dist-cjs/constants.browser.js +9 -32
  94. package/node_modules/@smithy/util-base64/dist-es/constants.browser.js +9 -28
  95. package/node_modules/@smithy/util-base64/dist-types/constants.browser.d.ts +5 -6
  96. package/node_modules/@smithy/util-base64/dist-types/ts3.4/constants.browser.d.ts +5 -6
  97. package/node_modules/@smithy/util-base64/package.json +1 -1
  98. package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +8 -6
  99. package/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js +8 -6
  100. package/node_modules/@smithy/util-body-length-node/package.json +1 -1
  101. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +11 -9
  102. package/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js +11 -8
  103. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -3
  104. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  105. package/node_modules/@smithy/util-stream/dist-cjs/index.js +3 -5
  106. package/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js +3 -5
  107. package/node_modules/@smithy/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
  108. package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
  109. package/node_modules/@smithy/util-stream/package.json +3 -3
  110. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  import { RpcProtocol } from "@smithy/core/protocols";
2
- import { deref, NormalizedSchema, SCHEMA, TypeRegistry } from "@smithy/core/schema";
2
+ import { deref, NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
3
3
  import { ProtocolLib } from "../ProtocolLib";
4
4
  import { JsonCodec } from "./JsonCodec";
5
5
  import { loadRestJsonErrorCode } from "./parseJsonBody";
@@ -18,7 +18,7 @@ export class AwsJsonRpcProtocol extends RpcProtocol {
18
18
  this.codec = new JsonCodec({
19
19
  timestampFormat: {
20
20
  useTrait: true,
21
- default: SCHEMA.TIMESTAMP_EPOCH_SECONDS,
21
+ default: 7,
22
22
  },
23
23
  jsonName: false,
24
24
  });
@@ -1,5 +1,5 @@
1
1
  import { HttpBindingProtocol, HttpInterceptingShapeDeserializer, HttpInterceptingShapeSerializer, } from "@smithy/core/protocols";
2
- import { NormalizedSchema, SCHEMA, TypeRegistry } from "@smithy/core/schema";
2
+ import { NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
3
3
  import { ProtocolLib } from "../ProtocolLib";
4
4
  import { JsonCodec } from "./JsonCodec";
5
5
  import { loadRestJsonErrorCode } from "./parseJsonBody";
@@ -15,7 +15,7 @@ export class AwsRestJsonProtocol extends HttpBindingProtocol {
15
15
  const settings = {
16
16
  timestampFormat: {
17
17
  useTrait: true,
18
- default: SCHEMA.TIMESTAMP_EPOCH_SECONDS,
18
+ default: 7,
19
19
  },
20
20
  httpBindings: true,
21
21
  jsonName: true,
@@ -1,5 +1,5 @@
1
1
  import { determineTimestampFormat } from "@smithy/core/protocols";
2
- import { NormalizedSchema, SCHEMA } from "@smithy/core/schema";
2
+ import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { LazyJsonString, NumericValue, parseEpochTimestamp, parseRfc3339DateTimeWithOffset, parseRfc7231DateTime, } from "@smithy/core/serde";
4
4
  import { fromBase64 } from "@smithy/util-base64";
5
5
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
@@ -66,11 +66,11 @@ export class JsonShapeDeserializer extends SerdeContextConfig {
66
66
  if (ns.isTimestampSchema() && value != null) {
67
67
  const format = determineTimestampFormat(ns, this.settings);
68
68
  switch (format) {
69
- case SCHEMA.TIMESTAMP_DATE_TIME:
69
+ case 5:
70
70
  return parseRfc3339DateTimeWithOffset(value);
71
- case SCHEMA.TIMESTAMP_HTTP_DATE:
71
+ case 6:
72
72
  return parseRfc7231DateTime(value);
73
- case SCHEMA.TIMESTAMP_EPOCH_SECONDS:
73
+ case 7:
74
74
  return parseEpochTimestamp(value);
75
75
  default:
76
76
  console.warn("Missing timestamp format, parsing value with Date constructor:", value);
@@ -1,5 +1,5 @@
1
1
  import { determineTimestampFormat } from "@smithy/core/protocols";
2
- import { NormalizedSchema, SCHEMA } from "@smithy/core/schema";
2
+ import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { dateToUtcString, generateIdempotencyToken, LazyJsonString, NumericValue } from "@smithy/core/serde";
4
4
  import { toBase64 } from "@smithy/util-base64";
5
5
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
@@ -83,11 +83,11 @@ export class JsonShapeSerializer extends SerdeContextConfig {
83
83
  if ((ns.isTimestampSchema() || ns.isDocumentSchema()) && value instanceof Date) {
84
84
  const format = determineTimestampFormat(ns, this.settings);
85
85
  switch (format) {
86
- case SCHEMA.TIMESTAMP_DATE_TIME:
86
+ case 5:
87
87
  return value.toISOString().replace(".000Z", "Z");
88
- case SCHEMA.TIMESTAMP_HTTP_DATE:
88
+ case 6:
89
89
  return dateToUtcString(value);
90
- case SCHEMA.TIMESTAMP_EPOCH_SECONDS:
90
+ case 7:
91
91
  return value.getTime() / 1000;
92
92
  default:
93
93
  console.warn("Missing timestamp format, using epoch seconds", value);
@@ -1,5 +1,5 @@
1
1
  import { collectBody, RpcProtocol } from "@smithy/core/protocols";
2
- import { deref, NormalizedSchema, SCHEMA, TypeRegistry } from "@smithy/core/schema";
2
+ import { deref, NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
3
3
  import { ProtocolLib } from "../ProtocolLib";
4
4
  import { XmlShapeDeserializer } from "../xml/XmlShapeDeserializer";
5
5
  import { QueryShapeSerializer } from "./QueryShapeSerializer";
@@ -16,7 +16,7 @@ export class AwsQueryProtocol extends RpcProtocol {
16
16
  const settings = {
17
17
  timestampFormat: {
18
18
  useTrait: true,
19
- default: SCHEMA.TIMESTAMP_DATE_TIME,
19
+ default: 5,
20
20
  },
21
21
  httpBindings: false,
22
22
  xmlNamespace: options.xmlNamespace,
@@ -61,7 +61,7 @@ export class AwsQueryProtocol extends RpcProtocol {
61
61
  if (response.statusCode >= 300) {
62
62
  const bytes = await collectBody(response.body, context);
63
63
  if (bytes.byteLength > 0) {
64
- Object.assign(dataObject, await deserializer.read(SCHEMA.DOCUMENT, bytes));
64
+ Object.assign(dataObject, await deserializer.read(15, bytes));
65
65
  }
66
66
  await this.handleError(operationSchema, context, response, dataObject, this.deserializeMetadata(response));
67
67
  }
@@ -1,5 +1,5 @@
1
1
  import { determineTimestampFormat, extendedEncodeURIComponent } from "@smithy/core/protocols";
2
- import { NormalizedSchema, SCHEMA } from "@smithy/core/schema";
2
+ import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { generateIdempotencyToken, NumericValue } from "@smithy/core/serde";
4
4
  import { dateToUtcString } from "@smithy/smithy-client";
5
5
  import { toBase64 } from "@smithy/util-base64";
@@ -52,13 +52,13 @@ export class QueryShapeSerializer extends SerdeContextConfig {
52
52
  this.writeKey(prefix);
53
53
  const format = determineTimestampFormat(ns, this.settings);
54
54
  switch (format) {
55
- case SCHEMA.TIMESTAMP_DATE_TIME:
55
+ case 5:
56
56
  this.writeValue(value.toISOString().replace(".000Z", "Z"));
57
57
  break;
58
- case SCHEMA.TIMESTAMP_HTTP_DATE:
58
+ case 6:
59
59
  this.writeValue(dateToUtcString(value));
60
60
  break;
61
- case SCHEMA.TIMESTAMP_EPOCH_SECONDS:
61
+ case 7:
62
62
  this.writeValue(String(value.getTime() / 1000));
63
63
  break;
64
64
  }
@@ -1,5 +1,5 @@
1
1
  import { HttpBindingProtocol, HttpInterceptingShapeDeserializer, HttpInterceptingShapeSerializer, } from "@smithy/core/protocols";
2
- import { NormalizedSchema, SCHEMA, TypeRegistry } from "@smithy/core/schema";
2
+ import { NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
3
3
  import { ProtocolLib } from "../ProtocolLib";
4
4
  import { loadRestXmlErrorCode } from "./parseXmlBody";
5
5
  import { XmlCodec } from "./XmlCodec";
@@ -13,7 +13,7 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol {
13
13
  const settings = {
14
14
  timestampFormat: {
15
15
  useTrait: true,
16
- default: SCHEMA.TIMESTAMP_DATE_TIME,
16
+ default: 5,
17
17
  },
18
18
  httpBindings: true,
19
19
  xmlNamespace: options.xmlNamespace,
@@ -1,6 +1,6 @@
1
1
  import { XmlNode, XmlText } from "@aws-sdk/xml-builder";
2
2
  import { determineTimestampFormat } from "@smithy/core/protocols";
3
- import { NormalizedSchema, SCHEMA } from "@smithy/core/schema";
3
+ import { NormalizedSchema } from "@smithy/core/schema";
4
4
  import { generateIdempotencyToken, NumericValue } from "@smithy/core/serde";
5
5
  import { dateToUtcString } from "@smithy/smithy-client";
6
6
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -214,13 +214,13 @@ export class XmlShapeSerializer extends SerdeContextConfig {
214
214
  else if (ns.isTimestampSchema() && value instanceof Date) {
215
215
  const format = determineTimestampFormat(ns, this.settings);
216
216
  switch (format) {
217
- case SCHEMA.TIMESTAMP_DATE_TIME:
217
+ case 5:
218
218
  nodeContents = value.toISOString().replace(".000Z", "Z");
219
219
  break;
220
- case SCHEMA.TIMESTAMP_HTTP_DATE:
220
+ case 6:
221
221
  nodeContents = dateToUtcString(value);
222
222
  break;
223
- case SCHEMA.TIMESTAMP_EPOCH_SECONDS:
223
+ case 7:
224
224
  nodeContents = String(value.getTime() / 1000);
225
225
  break;
226
226
  default:
@@ -1,4 +1,4 @@
1
- import { Provider } from "@smithy/types";
1
+ import type { Provider } from "@smithy/types";
2
2
  import { AccountIdEndpointMode } from "./AccountIdEndpointModeConstants";
3
3
  /**
4
4
  * @public
@@ -1,4 +1,4 @@
1
- import { AwsCredentialIdentity, HttpRequest as IHttpRequest } from "@smithy/types";
1
+ import type { AwsCredentialIdentity, HttpRequest as IHttpRequest } from "@smithy/types";
2
2
  import { AwsSdkSigV4Signer } from "./AwsSdkSigV4Signer";
3
3
  /**
4
4
  * @internal
@@ -1,4 +1,4 @@
1
- import { AuthScheme, AwsCredentialIdentity, HttpRequest as IHttpRequest, HttpResponse, HttpSigner, RequestSigner } from "@smithy/types";
1
+ import type { AuthScheme, AwsCredentialIdentity, HttpRequest as IHttpRequest, HttpResponse, HttpSigner, RequestSigner } from "@smithy/types";
2
2
  import { AwsSdkSigV4AAuthResolvedConfig } from "./resolveAwsSdkSigV4AConfig";
3
3
  /**
4
4
  * @internal
@@ -1,5 +1,5 @@
1
1
  import { LoadedConfigSelectors } from "@smithy/node-config-provider";
2
- import { Provider } from "@smithy/types";
2
+ import type { Provider } from "@smithy/types";
3
3
  /**
4
4
  * @public
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import type { MergeFunctions } from "@aws-sdk/types";
2
2
  import { SignatureV4CryptoInit, SignatureV4Init } from "@smithy/signature-v4";
3
- import { AuthScheme, AwsCredentialIdentity, AwsCredentialIdentityProvider, ChecksumConstructor, HashConstructor, MemoizedProvider, Provider, RegionInfoProvider, RequestSigner } from "@smithy/types";
3
+ import type { AuthScheme, AwsCredentialIdentity, AwsCredentialIdentityProvider, ChecksumConstructor, HashConstructor, MemoizedProvider, Provider, RegionInfoProvider, RequestSigner } from "@smithy/types";
4
4
  /**
5
5
  * @public
6
6
  */
@@ -1,4 +1,4 @@
1
- import { ConfigurableSerdeContext, SerdeFunctions } from "@smithy/types";
1
+ import type { ConfigurableSerdeContext, SerdeFunctions } from "@smithy/types";
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -1,4 +1,4 @@
1
- import { Codec, CodecSettings } from "@smithy/types";
1
+ import type { Codec, CodecSettings } from "@smithy/types";
2
2
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
3
3
  import { JsonShapeDeserializer } from "./JsonShapeDeserializer";
4
4
  import { JsonShapeSerializer } from "./JsonShapeSerializer";
@@ -1,4 +1,4 @@
1
- import { DocumentType, Schema, ShapeDeserializer } from "@smithy/types";
1
+ import type { DocumentType, Schema, ShapeDeserializer } from "@smithy/types";
2
2
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
3
3
  import { JsonSettings } from "./JsonCodec";
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { Schema, ShapeSerializer } from "@smithy/types";
1
+ import type { Schema, ShapeSerializer } from "@smithy/types";
2
2
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
3
- import { JsonSettings } from "./JsonCodec";
3
+ import type { JsonSettings } from "./JsonCodec";
4
4
  /**
5
5
  * @alpha
6
6
  */
@@ -1,4 +1,4 @@
1
- import { CodecSettings } from "@smithy/types";
1
+ import type { CodecSettings } from "@smithy/types";
2
2
  export type QuerySerializerSettings = CodecSettings & {
3
3
  capitalizeKeys?: boolean;
4
4
  flattenLists?: boolean;
@@ -1,4 +1,4 @@
1
- import { Codec, CodecSettings } from "@smithy/types";
1
+ import type { Codec, CodecSettings } from "@smithy/types";
2
2
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
3
3
  import { XmlShapeDeserializer } from "./XmlShapeDeserializer";
4
4
  import { XmlShapeSerializer } from "./XmlShapeSerializer";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.901.0",
3
+ "version": "3.906.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'",
@@ -1,76 +1,41 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ 'use strict';
20
2
 
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- ENV_ACCOUNT_ID: () => ENV_ACCOUNT_ID,
25
- ENV_CREDENTIAL_SCOPE: () => ENV_CREDENTIAL_SCOPE,
26
- ENV_EXPIRATION: () => ENV_EXPIRATION,
27
- ENV_KEY: () => ENV_KEY,
28
- ENV_SECRET: () => ENV_SECRET,
29
- ENV_SESSION: () => ENV_SESSION,
30
- fromEnv: () => fromEnv
31
- });
32
- module.exports = __toCommonJS(index_exports);
3
+ var client = require('@aws-sdk/core/client');
4
+ var propertyProvider = require('@smithy/property-provider');
33
5
 
34
- // src/fromEnv.ts
35
- var import_client = require("@aws-sdk/core/client");
36
- var import_property_provider = require("@smithy/property-provider");
37
- var ENV_KEY = "AWS_ACCESS_KEY_ID";
38
- var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
39
- var ENV_SESSION = "AWS_SESSION_TOKEN";
40
- var ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
41
- var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
42
- var ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID";
43
- var fromEnv = /* @__PURE__ */ __name((init) => async () => {
44
- init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
45
- const accessKeyId = process.env[ENV_KEY];
46
- const secretAccessKey = process.env[ENV_SECRET];
47
- const sessionToken = process.env[ENV_SESSION];
48
- const expiry = process.env[ENV_EXPIRATION];
49
- const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];
50
- const accountId = process.env[ENV_ACCOUNT_ID];
51
- if (accessKeyId && secretAccessKey) {
52
- const credentials = {
53
- accessKeyId,
54
- secretAccessKey,
55
- ...sessionToken && { sessionToken },
56
- ...expiry && { expiration: new Date(expiry) },
57
- ...credentialScope && { credentialScope },
58
- ...accountId && { accountId }
59
- };
60
- (0, import_client.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS", "g");
61
- return credentials;
62
- }
63
- throw new import_property_provider.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
64
- }, "fromEnv");
65
- // Annotate the CommonJS export names for ESM import in node:
66
-
67
- 0 && (module.exports = {
68
- ENV_KEY,
69
- ENV_SECRET,
70
- ENV_SESSION,
71
- ENV_EXPIRATION,
72
- ENV_CREDENTIAL_SCOPE,
73
- ENV_ACCOUNT_ID,
74
- fromEnv
75
- });
6
+ const ENV_KEY = "AWS_ACCESS_KEY_ID";
7
+ const ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
8
+ const ENV_SESSION = "AWS_SESSION_TOKEN";
9
+ const ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
10
+ const ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
11
+ const ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID";
12
+ const fromEnv = (init) => async () => {
13
+ init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
14
+ const accessKeyId = process.env[ENV_KEY];
15
+ const secretAccessKey = process.env[ENV_SECRET];
16
+ const sessionToken = process.env[ENV_SESSION];
17
+ const expiry = process.env[ENV_EXPIRATION];
18
+ const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];
19
+ const accountId = process.env[ENV_ACCOUNT_ID];
20
+ if (accessKeyId && secretAccessKey) {
21
+ const credentials = {
22
+ accessKeyId,
23
+ secretAccessKey,
24
+ ...(sessionToken && { sessionToken }),
25
+ ...(expiry && { expiration: new Date(expiry) }),
26
+ ...(credentialScope && { credentialScope }),
27
+ ...(accountId && { accountId }),
28
+ };
29
+ client.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
30
+ return credentials;
31
+ }
32
+ throw new propertyProvider.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
33
+ };
76
34
 
35
+ exports.ENV_ACCOUNT_ID = ENV_ACCOUNT_ID;
36
+ exports.ENV_CREDENTIAL_SCOPE = ENV_CREDENTIAL_SCOPE;
37
+ exports.ENV_EXPIRATION = ENV_EXPIRATION;
38
+ exports.ENV_KEY = ENV_KEY;
39
+ exports.ENV_SECRET = ENV_SECRET;
40
+ exports.ENV_SESSION = ENV_SESSION;
41
+ exports.fromEnv = fromEnv;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-env",
3
- "version": "3.901.0",
3
+ "version": "3.906.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.901.0",
29
+ "@aws-sdk/core": "3.906.0",
30
30
  "@aws-sdk/types": "3.901.0",
31
31
  "@smithy/property-provider": "^4.2.0",
32
32
  "@smithy/types": "^4.6.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-http",
3
- "version": "3.901.0",
3
+ "version": "3.906.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,7 +28,7 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@aws-sdk/core": "3.901.0",
31
+ "@aws-sdk/core": "3.906.0",
32
32
  "@aws-sdk/types": "3.901.0",
33
33
  "@smithy/fetch-http-handler": "^5.3.0",
34
34
  "@smithy/node-http-handler": "^4.3.0",