@cdk8s/awscdk-resolver 0.0.225 → 0.0.227
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +610 -478
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/CloudFormationClient.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_0.js +81 -54
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_1.js +3 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
- package/node_modules/@aws-sdk/client-cloudformation/package.json +44 -44
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +57 -42
- package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js +8 -8
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +15 -5
- package/node_modules/@aws-sdk/client-sso/package.json +40 -40
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +295 -92
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js +58 -28
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +42 -42
- package/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +115 -104
- package/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js +16 -16
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +9 -7
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -8
- package/node_modules/@aws-sdk/client-sts/package.json +42 -42
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +18 -22
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +3 -4
- package/node_modules/@aws-sdk/core/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +2 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-http/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +12 -17
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +16 -16
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +11 -18
- package/node_modules/@aws-sdk/credential-provider-node/package.json +15 -15
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +3 -5
- package/node_modules/@aws-sdk/credential-provider-process/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +5 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +9 -9
- package/node_modules/@aws-sdk/middleware-host-header/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +2 -3
- package/node_modules/@aws-sdk/middleware-logger/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +13 -17
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +9 -9
- package/node_modules/@aws-sdk/region-config-resolver/package.json +8 -8
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +5 -7
- package/node_modules/@aws-sdk/token-providers/package.json +9 -9
- package/node_modules/@aws-sdk/types/package.json +4 -4
- package/node_modules/@aws-sdk/util-endpoints/package.json +6 -6
- package/node_modules/@aws-sdk/util-locate-window/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +1 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +8 -8
- package/node_modules/@smithy/abort-controller/dist-cjs/index.js +8 -6
- package/node_modules/@smithy/abort-controller/package.json +3 -3
- package/node_modules/@smithy/config-resolver/dist-cjs/index.js +8 -12
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts +3 -0
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts +4 -1
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveCustomEndpointsConfig.d.ts +3 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveEndpointsConfig.d.ts +4 -1
- package/node_modules/@smithy/config-resolver/package.json +6 -6
- package/node_modules/@smithy/core/dist-cjs/index.js +19 -16
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +2 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-types.d.ts +1 -0
- package/node_modules/@smithy/core/package.json +10 -10
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +10 -11
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -0
- package/node_modules/@smithy/credential-provider-imds/package.json +7 -7
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +8 -9
- package/node_modules/@smithy/fetch-http-handler/package.json +9 -6
- package/node_modules/@smithy/hash-node/dist-cjs/index.js +4 -3
- package/node_modules/@smithy/hash-node/package.json +6 -6
- package/node_modules/@smithy/invalid-dependency/package.json +5 -2
- package/node_modules/@smithy/is-array-buffer/package.json +5 -4
- package/node_modules/@smithy/middleware-content-length/package.json +4 -4
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +7 -9
- package/node_modules/@smithy/middleware-endpoint/package.json +9 -9
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +18 -17
- package/node_modules/@smithy/middleware-retry/package.json +9 -9
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +1 -2
- package/node_modules/@smithy/middleware-serde/package.json +3 -3
- package/node_modules/@smithy/middleware-stack/dist-cjs/index.js +4 -12
- package/node_modules/@smithy/middleware-stack/dist-types/MiddlewareStack.d.ts +3 -0
- package/node_modules/@smithy/middleware-stack/dist-types/ts3.4/MiddlewareStack.d.ts +3 -0
- package/node_modules/@smithy/middleware-stack/package.json +3 -3
- package/node_modules/@smithy/node-config-provider/dist-types/configLoader.d.ts +9 -0
- package/node_modules/@smithy/node-config-provider/dist-types/fromSharedConfigFiles.d.ts +7 -0
- package/node_modules/@smithy/node-config-provider/dist-types/fromStatic.d.ts +6 -0
- package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/configLoader.d.ts +9 -0
- package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromSharedConfigFiles.d.ts +7 -0
- package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromStatic.d.ts +6 -0
- package/node_modules/@smithy/node-config-provider/package.json +6 -6
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +36 -36
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +8 -0
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +3 -0
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +6 -1
- package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +1 -0
- package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +2 -0
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +2 -0
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +2 -0
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +1 -0
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +4 -0
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +1 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +8 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +3 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +6 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +4 -0
- package/node_modules/@smithy/node-http-handler/package.json +7 -7
- package/node_modules/@smithy/property-provider/dist-cjs/index.js +16 -14
- package/node_modules/@smithy/property-provider/package.json +3 -3
- package/node_modules/@smithy/protocol-http/dist-cjs/index.js +16 -12
- package/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts +0 -2
- package/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +3 -1
- package/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +13 -0
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpHandler.d.ts +0 -2
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +3 -1
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpResponse.d.ts +13 -0
- package/node_modules/@smithy/protocol-http/package.json +3 -3
- package/node_modules/@smithy/querystring-builder/package.json +4 -4
- package/node_modules/@smithy/querystring-parser/package.json +3 -3
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +4 -14
- package/node_modules/@smithy/service-error-classification/package.json +3 -3
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +10 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +1 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +2 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +10 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +7 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +3 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts +10 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts +1 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +2 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +10 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts +7 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts +3 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts +6 -3
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +6 -3
- package/node_modules/@smithy/shared-ini-file-loader/package.json +4 -4
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +16 -14
- package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +9 -0
- package/node_modules/@smithy/signature-v4/dist-types/credentialDerivation.d.ts +13 -9
- package/node_modules/@smithy/signature-v4/dist-types/getCanonicalHeaders.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/getCanonicalQuery.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/getPayloadHash.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/moveHeadersToQuery.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/prepareRequest.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +9 -0
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/credentialDerivation.d.ts +13 -9
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/getCanonicalHeaders.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/getCanonicalQuery.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/getPayloadHash.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/moveHeadersToQuery.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/dist-types/ts3.4/prepareRequest.d.ts +1 -1
- package/node_modules/@smithy/signature-v4/package.json +9 -9
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +27 -21
- package/node_modules/@smithy/smithy-client/package.json +9 -9
- package/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/client.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/connection/config.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/connection/manager.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/connection/pool.d.ts +8 -0
- package/node_modules/@smithy/types/dist-types/encode.d.ts +12 -0
- package/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts +12 -0
- package/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +9 -0
- package/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts +30 -0
- package/node_modules/@smithy/types/dist-types/eventStream.d.ts +31 -2
- package/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +3 -2
- package/node_modules/@smithy/types/dist-types/http.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/serde.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +2 -1
- package/node_modules/@smithy/types/dist-types/transfer.d.ts +8 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/connection/config.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/connection/manager.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/connection/pool.d.ts +8 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/encode.d.ts +12 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +12 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +9 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/shared.d.ts +30 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/eventStream.d.ts +31 -2
- package/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +3 -2
- package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/transfer.d.ts +8 -0
- package/node_modules/@smithy/types/package.json +2 -2
- package/node_modules/@smithy/url-parser/package.json +6 -3
- package/node_modules/@smithy/util-base64/package.json +8 -7
- package/node_modules/@smithy/util-body-length-browser/package.json +7 -3
- package/node_modules/@smithy/util-body-length-node/package.json +6 -5
- package/node_modules/@smithy/util-buffer-from/package.json +7 -6
- package/node_modules/@smithy/util-config-provider/package.json +6 -5
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +6 -6
- package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +9 -9
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +13 -15
- package/node_modules/@smithy/util-endpoints/package.json +5 -5
- package/node_modules/@smithy/util-hex-encoding/package.json +5 -4
- package/node_modules/@smithy/util-middleware/package.json +4 -4
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +27 -21
- package/node_modules/@smithy/util-retry/package.json +5 -5
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +4 -3
- package/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +1 -1
- package/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.js +1 -1
- package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +1 -0
- package/node_modules/@smithy/util-stream/package.json +10 -10
- package/node_modules/@smithy/util-uri-escape/package.json +5 -4
- package/node_modules/@smithy/util-utf8/package.json +6 -5
- package/node_modules/@smithy/util-waiter/dist-cjs/index.js +4 -6
- package/node_modules/@smithy/util-waiter/package.json +4 -4
- package/package.json +3 -3
@@ -7,8 +7,6 @@ import type { HttpResponse } from "./httpResponse";
|
|
7
7
|
export type HttpHandler<HttpHandlerConfig extends object = {}> = RequestHandler<HttpRequest, HttpResponse, HttpHandlerOptions> & {
|
8
8
|
/**
|
9
9
|
* @internal
|
10
|
-
* @param key
|
11
|
-
* @param value
|
12
10
|
*/
|
13
11
|
updateHttpClientConfig(key: keyof HttpHandlerConfig, value: HttpHandlerConfig[typeof key]): void;
|
14
12
|
/**
|
@@ -3,12 +3,14 @@ type HttpRequestOptions = Partial<HttpMessage> & Partial<URI> & {
|
|
3
3
|
method?: string;
|
4
4
|
};
|
5
5
|
/**
|
6
|
-
* Use the distinct IHttpRequest interface from
|
6
|
+
* Use the distinct IHttpRequest interface from \@smithy/types instead.
|
7
7
|
* This should not be used due to
|
8
8
|
* overlapping with the concrete class' name.
|
9
9
|
*
|
10
10
|
* This is not marked deprecated since that would mark the concrete class
|
11
11
|
* deprecated as well.
|
12
|
+
*
|
13
|
+
* @internal
|
12
14
|
*/
|
13
15
|
export interface HttpRequest extends IHttpRequest {
|
14
16
|
}
|
@@ -3,8 +3,21 @@ type HttpResponseOptions = Partial<HttpMessage> & {
|
|
3
3
|
statusCode: number;
|
4
4
|
reason?: string;
|
5
5
|
};
|
6
|
+
/**
|
7
|
+
* Use the distinct IHttpResponse interface from \@smithy/types instead.
|
8
|
+
* This should not be used due to
|
9
|
+
* overlapping with the concrete class' name.
|
10
|
+
*
|
11
|
+
* This is not marked deprecated since that would mark the concrete class
|
12
|
+
* deprecated as well.
|
13
|
+
*
|
14
|
+
* @internal
|
15
|
+
*/
|
6
16
|
export interface HttpResponse extends IHttpResponse {
|
7
17
|
}
|
18
|
+
/**
|
19
|
+
* @public
|
20
|
+
*/
|
8
21
|
export declare class HttpResponse {
|
9
22
|
statusCode: number;
|
10
23
|
reason?: string;
|
@@ -7,8 +7,6 @@ import { HttpResponse } from "./httpResponse";
|
|
7
7
|
export type HttpHandler<HttpHandlerConfig extends object = {}> = RequestHandler<HttpRequest, HttpResponse, HttpHandlerOptions> & {
|
8
8
|
/**
|
9
9
|
* @internal
|
10
|
-
* @param key
|
11
|
-
* @param value
|
12
10
|
*/
|
13
11
|
updateHttpClientConfig(key: keyof HttpHandlerConfig, value: HttpHandlerConfig[typeof key]): void;
|
14
12
|
/**
|
@@ -3,12 +3,14 @@ type HttpRequestOptions = Partial<HttpMessage> & Partial<URI> & {
|
|
3
3
|
method?: string;
|
4
4
|
};
|
5
5
|
/**
|
6
|
-
* Use the distinct IHttpRequest interface from
|
6
|
+
* Use the distinct IHttpRequest interface from \@smithy/types instead.
|
7
7
|
* This should not be used due to
|
8
8
|
* overlapping with the concrete class' name.
|
9
9
|
*
|
10
10
|
* This is not marked deprecated since that would mark the concrete class
|
11
11
|
* deprecated as well.
|
12
|
+
*
|
13
|
+
* @internal
|
12
14
|
*/
|
13
15
|
export interface HttpRequest extends IHttpRequest {
|
14
16
|
}
|
@@ -3,8 +3,21 @@ type HttpResponseOptions = Partial<HttpMessage> & {
|
|
3
3
|
statusCode: number;
|
4
4
|
reason?: string;
|
5
5
|
};
|
6
|
+
/**
|
7
|
+
* Use the distinct IHttpResponse interface from \@smithy/types instead.
|
8
|
+
* This should not be used due to
|
9
|
+
* overlapping with the concrete class' name.
|
10
|
+
*
|
11
|
+
* This is not marked deprecated since that would mark the concrete class
|
12
|
+
* deprecated as well.
|
13
|
+
*
|
14
|
+
* @internal
|
15
|
+
*/
|
6
16
|
export interface HttpResponse extends IHttpResponse {
|
7
17
|
}
|
18
|
+
/**
|
19
|
+
* @public
|
20
|
+
*/
|
8
21
|
export declare class HttpResponse {
|
9
22
|
statusCode: number;
|
10
23
|
reason?: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/protocol-http",
|
3
|
-
"version": "
|
3
|
+
"version": "5.0.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
6
|
"build:cjs": "node ../../scripts/inline protocol-http",
|
@@ -24,11 +24,11 @@
|
|
24
24
|
},
|
25
25
|
"license": "Apache-2.0",
|
26
26
|
"dependencies": {
|
27
|
-
"@smithy/types": "^
|
27
|
+
"@smithy/types": "^4.0.0",
|
28
28
|
"tslib": "^2.6.2"
|
29
29
|
},
|
30
30
|
"engines": {
|
31
|
-
"node": ">=
|
31
|
+
"node": ">=18.0.0"
|
32
32
|
},
|
33
33
|
"typesVersions": {
|
34
34
|
"<4.0": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/querystring-builder",
|
3
|
-
"version": "
|
3
|
+
"version": "4.0.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
6
|
"build:cjs": "node ../../scripts/inline querystring-builder",
|
@@ -22,12 +22,12 @@
|
|
22
22
|
},
|
23
23
|
"license": "Apache-2.0",
|
24
24
|
"dependencies": {
|
25
|
-
"@smithy/types": "^
|
26
|
-
"@smithy/util-uri-escape": "^
|
25
|
+
"@smithy/types": "^4.0.0",
|
26
|
+
"@smithy/util-uri-escape": "^4.0.0",
|
27
27
|
"tslib": "^2.6.2"
|
28
28
|
},
|
29
29
|
"engines": {
|
30
|
-
"node": ">=
|
30
|
+
"node": ">=18.0.0"
|
31
31
|
},
|
32
32
|
"typesVersions": {
|
33
33
|
"<4.0": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/querystring-parser",
|
3
|
-
"version": "
|
3
|
+
"version": "4.0.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
6
|
"build:cjs": "node ../../scripts/inline querystring-parser",
|
@@ -23,11 +23,11 @@
|
|
23
23
|
},
|
24
24
|
"license": "Apache-2.0",
|
25
25
|
"dependencies": {
|
26
|
-
"@smithy/types": "^
|
26
|
+
"@smithy/types": "^4.0.0",
|
27
27
|
"tslib": "^2.6.2"
|
28
28
|
},
|
29
29
|
"engines": {
|
30
|
-
"node": ">=
|
30
|
+
"node": ">=18.0.0"
|
31
31
|
},
|
32
32
|
"typesVersions": {
|
33
33
|
"<4.0": {
|
@@ -62,21 +62,11 @@ var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMED
|
|
62
62
|
// src/index.ts
|
63
63
|
var isRetryableByTrait = /* @__PURE__ */ __name((error) => error.$retryable !== void 0, "isRetryableByTrait");
|
64
64
|
var isClockSkewError = /* @__PURE__ */ __name((error) => CLOCK_SKEW_ERROR_CODES.includes(error.name), "isClockSkewError");
|
65
|
-
var isClockSkewCorrectedError = /* @__PURE__ */ __name((error) =>
|
66
|
-
|
67
|
-
|
68
|
-
}, "isClockSkewCorrectedError");
|
69
|
-
var isThrottlingError = /* @__PURE__ */ __name((error) => {
|
70
|
-
var _a, _b;
|
71
|
-
return ((_a = error.$metadata) == null ? void 0 : _a.httpStatusCode) === 429 || THROTTLING_ERROR_CODES.includes(error.name) || ((_b = error.$retryable) == null ? void 0 : _b.throttling) == true;
|
72
|
-
}, "isThrottlingError");
|
73
|
-
var isTransientError = /* @__PURE__ */ __name((error, depth = 0) => {
|
74
|
-
var _a;
|
75
|
-
return isClockSkewCorrectedError(error) || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes((error == null ? void 0 : error.code) || "") || TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) == null ? void 0 : _a.httpStatusCode) || 0) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1);
|
76
|
-
}, "isTransientError");
|
65
|
+
var isClockSkewCorrectedError = /* @__PURE__ */ __name((error) => error.$metadata?.clockSkewCorrected, "isClockSkewCorrectedError");
|
66
|
+
var isThrottlingError = /* @__PURE__ */ __name((error) => error.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error.name) || error.$retryable?.throttling == true, "isThrottlingError");
|
67
|
+
var isTransientError = /* @__PURE__ */ __name((error, depth = 0) => isClockSkewCorrectedError(error) || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1), "isTransientError");
|
77
68
|
var isServerError = /* @__PURE__ */ __name((error) => {
|
78
|
-
|
79
|
-
if (((_a = error.$metadata) == null ? void 0 : _a.httpStatusCode) !== void 0) {
|
69
|
+
if (error.$metadata?.httpStatusCode !== void 0) {
|
80
70
|
const statusCode = error.$metadata.httpStatusCode;
|
81
71
|
if (500 <= statusCode && statusCode <= 599 && !isTransientError(error)) {
|
82
72
|
return true;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/service-error-classification",
|
3
|
-
"version": "
|
3
|
+
"version": "4.0.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
6
6
|
"build:cjs": "node ../../scripts/inline service-error-classification",
|
@@ -29,7 +29,7 @@
|
|
29
29
|
"typedoc": "0.23.23"
|
30
30
|
},
|
31
31
|
"engines": {
|
32
|
-
"node": ">=
|
32
|
+
"node": ">=18.0.0"
|
33
33
|
},
|
34
34
|
"typesVersions": {
|
35
35
|
"<4.0": {
|
@@ -54,6 +54,6 @@
|
|
54
54
|
"directory": ".release/package"
|
55
55
|
},
|
56
56
|
"dependencies": {
|
57
|
-
"@smithy/types": "^
|
57
|
+
"@smithy/types": "^4.0.0"
|
58
58
|
}
|
59
59
|
}
|
@@ -1,5 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* @internal
|
3
|
+
*/
|
1
4
|
export declare const ENV_PROFILE = "AWS_PROFILE";
|
5
|
+
/**
|
6
|
+
* @internal
|
7
|
+
*/
|
2
8
|
export declare const DEFAULT_PROFILE = "default";
|
9
|
+
/**
|
10
|
+
* Returns profile with priority order code - ENV - default.
|
11
|
+
* @internal
|
12
|
+
*/
|
3
13
|
export declare const getProfileName: (init: {
|
4
14
|
profile?: string;
|
5
15
|
}) => string;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* Cached SSO token retrieved from SSO login flow.
|
3
|
+
* @public
|
3
4
|
*/
|
4
5
|
export interface SSOToken {
|
5
6
|
/**
|
@@ -38,6 +39,7 @@ export interface SSOToken {
|
|
38
39
|
startUrl?: string;
|
39
40
|
}
|
40
41
|
/**
|
42
|
+
* @internal
|
41
43
|
* @param id - can be either a start URL or the SSO session name.
|
42
44
|
* Returns the SSO token from the file system.
|
43
45
|
*/
|
@@ -1,4 +1,7 @@
|
|
1
1
|
import { Logger, SharedConfigFiles } from "@smithy/types";
|
2
|
+
/**
|
3
|
+
* @public
|
4
|
+
*/
|
2
5
|
export interface SharedConfigInit {
|
3
6
|
/**
|
4
7
|
* The path at which to locate the ini credentials file. Defaults to the
|
@@ -22,5 +25,12 @@ export interface SharedConfigInit {
|
|
22
25
|
*/
|
23
26
|
logger?: Logger;
|
24
27
|
}
|
28
|
+
/**
|
29
|
+
* @internal
|
30
|
+
*/
|
25
31
|
export declare const CONFIG_PREFIX_SEPARATOR = ".";
|
32
|
+
/**
|
33
|
+
* Loads the config and credentials files.
|
34
|
+
* @internal
|
35
|
+
*/
|
26
36
|
export declare const loadSharedConfigFiles: (init?: SharedConfigInit) => Promise<SharedConfigFiles>;
|
@@ -1,4 +1,8 @@
|
|
1
1
|
import { ParsedIniData } from "@smithy/types";
|
2
|
+
/**
|
3
|
+
* Subset of {@link SharedConfigInit}.
|
4
|
+
* @internal
|
5
|
+
*/
|
2
6
|
export interface SsoSessionInit {
|
3
7
|
/**
|
4
8
|
* The path at which to locate the ini config file. Defaults to the value of
|
@@ -7,4 +11,7 @@ export interface SsoSessionInit {
|
|
7
11
|
*/
|
8
12
|
configFilepath?: string;
|
9
13
|
}
|
14
|
+
/**
|
15
|
+
* @internal
|
16
|
+
*/
|
10
17
|
export declare const loadSsoSessionData: (init?: SsoSessionInit) => Promise<ParsedIniData>;
|
@@ -1,5 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* @internal
|
3
|
+
*/
|
1
4
|
export declare const ENV_PROFILE = "AWS_PROFILE";
|
5
|
+
/**
|
6
|
+
* @internal
|
7
|
+
*/
|
2
8
|
export declare const DEFAULT_PROFILE = "default";
|
9
|
+
/**
|
10
|
+
* Returns profile with priority order code - ENV - default.
|
11
|
+
* @internal
|
12
|
+
*/
|
3
13
|
export declare const getProfileName: (init: {
|
4
14
|
profile?: string;
|
5
15
|
}) => string;
|
package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* Cached SSO token retrieved from SSO login flow.
|
3
|
+
* @public
|
3
4
|
*/
|
4
5
|
export interface SSOToken {
|
5
6
|
/**
|
@@ -38,6 +39,7 @@ export interface SSOToken {
|
|
38
39
|
startUrl?: string;
|
39
40
|
}
|
40
41
|
/**
|
42
|
+
* @internal
|
41
43
|
* @param id - can be either a start URL or the SSO session name.
|
42
44
|
* Returns the SSO token from the file system.
|
43
45
|
*/
|
package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
import { Logger, SharedConfigFiles } from "@smithy/types";
|
2
|
+
/**
|
3
|
+
* @public
|
4
|
+
*/
|
2
5
|
export interface SharedConfigInit {
|
3
6
|
/**
|
4
7
|
* The path at which to locate the ini credentials file. Defaults to the
|
@@ -22,5 +25,12 @@ export interface SharedConfigInit {
|
|
22
25
|
*/
|
23
26
|
logger?: Logger;
|
24
27
|
}
|
28
|
+
/**
|
29
|
+
* @internal
|
30
|
+
*/
|
25
31
|
export declare const CONFIG_PREFIX_SEPARATOR = ".";
|
32
|
+
/**
|
33
|
+
* Loads the config and credentials files.
|
34
|
+
* @internal
|
35
|
+
*/
|
26
36
|
export declare const loadSharedConfigFiles: (init?: SharedConfigInit) => Promise<SharedConfigFiles>;
|
package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
import { ParsedIniData } from "@smithy/types";
|
2
|
+
/**
|
3
|
+
* Subset of {@link SharedConfigInit}.
|
4
|
+
* @internal
|
5
|
+
*/
|
2
6
|
export interface SsoSessionInit {
|
3
7
|
/**
|
4
8
|
* The path at which to locate the ini config file. Defaults to the value of
|
@@ -7,4 +11,7 @@ export interface SsoSessionInit {
|
|
7
11
|
*/
|
8
12
|
configFilepath?: string;
|
9
13
|
}
|
14
|
+
/**
|
15
|
+
* @internal
|
16
|
+
*/
|
10
17
|
export declare const loadSsoSessionData: (init?: SsoSessionInit) => Promise<ParsedIniData>;
|
@@ -1,13 +1,16 @@
|
|
1
1
|
import { ParsedIniData as __ParsedIniData, Profile as __Profile, SharedConfigFiles as __SharedConfigFiles } from "@smithy/types";
|
2
2
|
/**
|
3
|
-
* @
|
3
|
+
* @internal
|
4
|
+
* @deprecated Use Profile from "\@smithy/types" instead
|
4
5
|
*/
|
5
6
|
export type Profile = __Profile;
|
6
7
|
/**
|
7
|
-
* @
|
8
|
+
* @internal
|
9
|
+
* @deprecated Use ParsedIniData from "\@smithy/types" instead
|
8
10
|
*/
|
9
11
|
export type ParsedIniData = __ParsedIniData;
|
10
12
|
/**
|
11
|
-
* @
|
13
|
+
* @internal
|
14
|
+
* @deprecated Use SharedConfigFiles from "\@smithy/types" instead
|
12
15
|
*/
|
13
16
|
export type SharedConfigFiles = __SharedConfigFiles;
|
@@ -1,13 +1,16 @@
|
|
1
1
|
import { ParsedIniData as __ParsedIniData, Profile as __Profile, SharedConfigFiles as __SharedConfigFiles } from "@smithy/types";
|
2
2
|
/**
|
3
|
-
* @
|
3
|
+
* @internal
|
4
|
+
* @deprecated Use Profile from "\@smithy/types" instead
|
4
5
|
*/
|
5
6
|
export type Profile = __Profile;
|
6
7
|
/**
|
7
|
-
* @
|
8
|
+
* @internal
|
9
|
+
* @deprecated Use ParsedIniData from "\@smithy/types" instead
|
8
10
|
*/
|
9
11
|
export type ParsedIniData = __ParsedIniData;
|
10
12
|
/**
|
11
|
-
* @
|
13
|
+
* @internal
|
14
|
+
* @deprecated Use SharedConfigFiles from "\@smithy/types" instead
|
12
15
|
*/
|
13
16
|
export type SharedConfigFiles = __SharedConfigFiles;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/shared-ini-file-loader",
|
3
|
-
"version": "
|
3
|
+
"version": "4.0.0",
|
4
4
|
"dependencies": {
|
5
|
-
"@smithy/types": "^
|
5
|
+
"@smithy/types": "^4.0.0",
|
6
6
|
"tslib": "^2.6.2"
|
7
7
|
},
|
8
8
|
"devDependencies": {
|
9
|
-
"@types/node": "^
|
9
|
+
"@types/node": "^18.11.9",
|
10
10
|
"concurrently": "7.0.0",
|
11
11
|
"downlevel-dts": "0.10.1",
|
12
12
|
"rimraf": "3.0.2",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"./dist-es/slurpFile": false
|
46
46
|
},
|
47
47
|
"engines": {
|
48
|
-
"node": ">=
|
48
|
+
"node": ">=18.0.0"
|
49
49
|
},
|
50
50
|
"typesVersions": {
|
51
51
|
"<4.0": {
|
@@ -121,7 +121,7 @@ var getCanonicalHeaders = /* @__PURE__ */ __name(({ headers }, unsignableHeaders
|
|
121
121
|
continue;
|
122
122
|
}
|
123
123
|
const canonicalHeaderName = headerName.toLowerCase();
|
124
|
-
if (canonicalHeaderName in ALWAYS_UNSIGNABLE_HEADERS ||
|
124
|
+
if (canonicalHeaderName in ALWAYS_UNSIGNABLE_HEADERS || unsignableHeaders?.has(canonicalHeaderName) || PROXY_HEADER_PATTERN.test(canonicalHeaderName) || SEC_HEADER_PATTERN.test(canonicalHeaderName)) {
|
125
125
|
if (!signableHeaders || signableHeaders && !signableHeaders.has(canonicalHeaderName)) {
|
126
126
|
continue;
|
127
127
|
}
|
@@ -175,7 +175,10 @@ var getPayloadHash = /* @__PURE__ */ __name(async ({ headers, body }, hashConstr
|
|
175
175
|
// src/HeaderFormatter.ts
|
176
176
|
|
177
177
|
var import_util_utf83 = require("@smithy/util-utf8");
|
178
|
-
var
|
178
|
+
var HeaderFormatter = class {
|
179
|
+
static {
|
180
|
+
__name(this, "HeaderFormatter");
|
181
|
+
}
|
179
182
|
format(headers) {
|
180
183
|
const chunks = [];
|
181
184
|
for (const headerName of Object.keys(headers)) {
|
@@ -242,16 +245,17 @@ var _HeaderFormatter = class _HeaderFormatter {
|
|
242
245
|
}
|
243
246
|
}
|
244
247
|
};
|
245
|
-
__name(_HeaderFormatter, "HeaderFormatter");
|
246
|
-
var HeaderFormatter = _HeaderFormatter;
|
247
248
|
var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
|
248
|
-
var
|
249
|
+
var Int64 = class _Int64 {
|
249
250
|
constructor(bytes) {
|
250
251
|
this.bytes = bytes;
|
251
252
|
if (bytes.byteLength !== 8) {
|
252
253
|
throw new Error("Int64 buffers must be exactly 8 bytes");
|
253
254
|
}
|
254
255
|
}
|
256
|
+
static {
|
257
|
+
__name(this, "Int64");
|
258
|
+
}
|
255
259
|
static fromNumber(number) {
|
256
260
|
if (number > 9223372036854776e3 || number < -9223372036854776e3) {
|
257
261
|
throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`);
|
@@ -280,8 +284,6 @@ var _Int64 = class _Int64 {
|
|
280
284
|
return String(this.valueOf());
|
281
285
|
}
|
282
286
|
};
|
283
|
-
__name(_Int64, "Int64");
|
284
|
-
var Int64 = _Int64;
|
285
287
|
function negate(bytes) {
|
286
288
|
for (let i = 0; i < 8; i++) {
|
287
289
|
bytes[i] ^= 255;
|
@@ -308,11 +310,10 @@ var hasHeader = /* @__PURE__ */ __name((soughtHeader, headers) => {
|
|
308
310
|
// src/moveHeadersToQuery.ts
|
309
311
|
var import_protocol_http = require("@smithy/protocol-http");
|
310
312
|
var moveHeadersToQuery = /* @__PURE__ */ __name((request, options = {}) => {
|
311
|
-
var _a, _b;
|
312
313
|
const { headers, query = {} } = import_protocol_http.HttpRequest.clone(request);
|
313
314
|
for (const name of Object.keys(headers)) {
|
314
315
|
const lname = name.toLowerCase();
|
315
|
-
if (lname.slice(0, 6) === "x-amz-" && !
|
316
|
+
if (lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname) || options.hoistableHeaders?.has(lname)) {
|
316
317
|
query[name] = headers[name];
|
317
318
|
delete headers[name];
|
318
319
|
}
|
@@ -352,7 +353,7 @@ var toDate = /* @__PURE__ */ __name((time) => {
|
|
352
353
|
}, "toDate");
|
353
354
|
|
354
355
|
// src/SignatureV4.ts
|
355
|
-
var
|
356
|
+
var SignatureV4 = class {
|
356
357
|
constructor({
|
357
358
|
applyChecksum,
|
358
359
|
credentials,
|
@@ -369,6 +370,9 @@ var _SignatureV4 = class _SignatureV4 {
|
|
369
370
|
this.regionProvider = (0, import_util_middleware.normalizeProvider)(region);
|
370
371
|
this.credentialProvider = (0, import_util_middleware.normalizeProvider)(credentials);
|
371
372
|
}
|
373
|
+
static {
|
374
|
+
__name(this, "SignatureV4");
|
375
|
+
}
|
372
376
|
async presign(originalRequest, options = {}) {
|
373
377
|
const {
|
374
378
|
signingDate = /* @__PURE__ */ new Date(),
|
@@ -517,7 +521,7 @@ ${(0, import_util_hex_encoding.toHex)(hashedRequest)}`;
|
|
517
521
|
if (this.uriEscapePath) {
|
518
522
|
const normalizedPathSegments = [];
|
519
523
|
for (const pathSegment of path.split("/")) {
|
520
|
-
if (
|
524
|
+
if (pathSegment?.length === 0)
|
521
525
|
continue;
|
522
526
|
if (pathSegment === ".")
|
523
527
|
continue;
|
@@ -527,7 +531,7 @@ ${(0, import_util_hex_encoding.toHex)(hashedRequest)}`;
|
|
527
531
|
normalizedPathSegments.push(pathSegment);
|
528
532
|
}
|
529
533
|
}
|
530
|
-
const normalizedPath = `${
|
534
|
+
const normalizedPath = `${path?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path?.endsWith("/") ? "/" : ""}`;
|
531
535
|
const doubleEncoded = (0, import_util_uri_escape.escapeUri)(normalizedPath);
|
532
536
|
return doubleEncoded.replace(/%2F/g, "/");
|
533
537
|
}
|
@@ -550,8 +554,6 @@ ${(0, import_util_hex_encoding.toHex)(hashedRequest)}`;
|
|
550
554
|
}
|
551
555
|
}
|
552
556
|
};
|
553
|
-
__name(_SignatureV4, "SignatureV4");
|
554
|
-
var SignatureV4 = _SignatureV4;
|
555
557
|
var formatDate = /* @__PURE__ */ __name((now) => {
|
556
558
|
const longDate = iso8601(now).replace(/[\-:]/g, "");
|
557
559
|
return {
|
@@ -1,4 +1,7 @@
|
|
1
1
|
import { AwsCredentialIdentity, ChecksumConstructor, EventSigner, EventSigningArguments, FormattedEvent, HashConstructor, HttpRequest, MessageSigner, Provider, RequestPresigner, RequestPresigningArguments, RequestSigner, RequestSigningArguments, SignableMessage, SignedMessage, SigningArguments, StringSigner } from "@smithy/types";
|
2
|
+
/**
|
3
|
+
* @public
|
4
|
+
*/
|
2
5
|
export interface SignatureV4Init {
|
3
6
|
/**
|
4
7
|
* The service signing name.
|
@@ -37,9 +40,15 @@ export interface SignatureV4Init {
|
|
37
40
|
*/
|
38
41
|
applyChecksum?: boolean;
|
39
42
|
}
|
43
|
+
/**
|
44
|
+
* @public
|
45
|
+
*/
|
40
46
|
export interface SignatureV4CryptoInit {
|
41
47
|
sha256: ChecksumConstructor | HashConstructor;
|
42
48
|
}
|
49
|
+
/**
|
50
|
+
* @public
|
51
|
+
*/
|
43
52
|
export declare class SignatureV4 implements RequestPresigner, RequestSigner, StringSigner, EventSigner, MessageSigner {
|
44
53
|
private readonly service;
|
45
54
|
private readonly regionProvider;
|
@@ -2,21 +2,25 @@ import { AwsCredentialIdentity, ChecksumConstructor, HashConstructor } from "@sm
|
|
2
2
|
/**
|
3
3
|
* Create a string describing the scope of credentials used to sign a request.
|
4
4
|
*
|
5
|
-
* @
|
6
|
-
*
|
7
|
-
* @param
|
5
|
+
* @internal
|
6
|
+
*
|
7
|
+
* @param shortDate - the current calendar date in the form YYYYMMDD.
|
8
|
+
* @param region - the AWS region in which the service resides.
|
9
|
+
* @param service - the service to which the signed request is being sent.
|
8
10
|
*/
|
9
11
|
export declare const createScope: (shortDate: string, region: string, service: string) => string;
|
10
12
|
/**
|
11
|
-
* Derive a signing key from its composite parts
|
13
|
+
* Derive a signing key from its composite parts.
|
14
|
+
*
|
15
|
+
* @internal
|
12
16
|
*
|
13
|
-
* @param sha256Constructor
|
17
|
+
* @param sha256Constructor - a constructor function that can instantiate SHA-256
|
14
18
|
* hash objects.
|
15
|
-
* @param credentials
|
19
|
+
* @param credentials - the credentials with which the request will be
|
16
20
|
* signed.
|
17
|
-
* @param shortDate
|
18
|
-
* @param region
|
19
|
-
* @param service
|
21
|
+
* @param shortDate - the current calendar date in the form YYYYMMDD.
|
22
|
+
* @param region - the AWS region in which the service resides.
|
23
|
+
* @param service - the service to which the signed request is being
|
20
24
|
* sent.
|
21
25
|
*/
|
22
26
|
export declare const getSigningKey: (sha256Constructor: ChecksumConstructor | HashConstructor, credentials: AwsCredentialIdentity, shortDate: string, region: string, service: string) => Promise<Uint8Array>;
|