@jjrawlins/cdk-iam-policy-builder-helper 0.0.52 → 0.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
- package/cdk-iam-policy-builder-helper/version +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +13439 -13574
- package/node_modules/@aws-sdk/client-iam/package.json +6 -6
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +478 -596
- package/node_modules/@aws-sdk/client-sso/package.json +5 -5
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +1969 -6
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/account-id-endpoint/index.js +48 -88
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +35 -74
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +273 -365
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1581 -1863
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +2 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +2 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +4 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +4 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +3 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +4 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +2 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -4
- package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlCodec.d.ts +1 -1
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +38 -73
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +194 -259
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +72 -132
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +71 -107
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +176 -249
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-CVy8iqsZ.js +14 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +16 -25
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +170 -203
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +583 -858
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +795 -928
- package/node_modules/@aws-sdk/nested-clients/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +147 -222
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-browser/README.md +22 -3
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/createUserAgentStringParsingProvider.js +57 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js +39 -8
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/createUserAgentStringParsingProvider.js +20 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.js +37 -6
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/createUserAgentStringParsingProvider.d.ts +14 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +14 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts +4 -3
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/createUserAgentStringParsingProvider.d.ts +9 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.d.ts +5 -0
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +50 -94
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/crt-availability.d.ts +1 -2
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/defaultUserAgent.d.ts +10 -5
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +5 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +32 -30
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +133 -202
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +126 -34
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -3
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +4 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +3 -3
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +19 -17
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +4 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js +5 -6
- package/node_modules/@smithy/core/dist-es/submodules/schema/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +82 -176
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +22 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js +110 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +4 -26
- package/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +5 -24
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/sentinels.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +5 -24
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/sentinels.d.ts +2 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +7 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/schema-serde-lib/schema-date-utils.d.ts +47 -0
- package/node_modules/@smithy/core/package.json +3 -3
- package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/smithy-client/package.json +4 -4
- package/node_modules/@smithy/util-base64/dist-cjs/constants.browser.js +9 -32
- package/node_modules/@smithy/util-base64/dist-es/constants.browser.js +9 -28
- package/node_modules/@smithy/util-base64/dist-types/constants.browser.d.ts +5 -6
- package/node_modules/@smithy/util-base64/dist-types/ts3.4/constants.browser.d.ts +5 -6
- package/node_modules/@smithy/util-base64/package.json +1 -1
- package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +8 -6
- package/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js +8 -6
- package/node_modules/@smithy/util-body-length-node/package.json +1 -1
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +11 -9
- package/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js +11 -8
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -3
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +3 -5
- package/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js +3 -5
- package/node_modules/@smithy/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/Uint8ArrayBlobAdapter.d.ts +1 -0
- package/node_modules/@smithy/util-stream/package.json +3 -3
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RpcProtocol } from "@smithy/core/protocols";
|
|
2
|
-
import { deref, NormalizedSchema,
|
|
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:
|
|
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,
|
|
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:
|
|
18
|
+
default: 7,
|
|
19
19
|
},
|
|
20
20
|
httpBindings: true,
|
|
21
21
|
jsonName: true,
|
package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { determineTimestampFormat } from "@smithy/core/protocols";
|
|
2
|
-
import { NormalizedSchema
|
|
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
|
|
69
|
+
case 5:
|
|
70
70
|
return parseRfc3339DateTimeWithOffset(value);
|
|
71
|
-
case
|
|
71
|
+
case 6:
|
|
72
72
|
return parseRfc7231DateTime(value);
|
|
73
|
-
case
|
|
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
|
|
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
|
|
86
|
+
case 5:
|
|
87
87
|
return value.toISOString().replace(".000Z", "Z");
|
|
88
|
-
case
|
|
88
|
+
case 6:
|
|
89
89
|
return dateToUtcString(value);
|
|
90
|
-
case
|
|
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,
|
|
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:
|
|
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(
|
|
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
|
}
|
package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { determineTimestampFormat, extendedEncodeURIComponent } from "@smithy/core/protocols";
|
|
2
|
-
import { NormalizedSchema
|
|
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
|
|
55
|
+
case 5:
|
|
56
56
|
this.writeValue(value.toISOString().replace(".000Z", "Z"));
|
|
57
57
|
break;
|
|
58
|
-
case
|
|
58
|
+
case 6:
|
|
59
59
|
this.writeValue(dateToUtcString(value));
|
|
60
60
|
break;
|
|
61
|
-
case
|
|
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,
|
|
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:
|
|
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
|
|
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
|
|
217
|
+
case 5:
|
|
218
218
|
nodeContents = value.toISOString().replace(".000Z", "Z");
|
|
219
219
|
break;
|
|
220
|
-
case
|
|
220
|
+
case 6:
|
|
221
221
|
nodeContents = dateToUtcString(value);
|
|
222
222
|
break;
|
|
223
|
-
case
|
|
223
|
+
case 7:
|
|
224
224
|
nodeContents = String(value.getTime() / 1000);
|
|
225
225
|
break;
|
|
226
226
|
default:
|
|
@@ -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,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 { 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";
|
package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts
CHANGED
|
@@ -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
|
/**
|
package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts
CHANGED
|
@@ -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 { 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,76 +1,41 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
22
|
-
var
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
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.
|
|
3
|
+
"version": "3.907.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.
|
|
29
|
+
"@aws-sdk/core": "3.907.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.
|
|
3
|
+
"version": "3.907.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.
|
|
31
|
+
"@aws-sdk/core": "3.907.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",
|