@cdklabs/cdk-ecs-codedeploy 0.0.307 → 0.0.309
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/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +12 -18
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/CodeDeployClient.js +12 -18
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeployClient.d.ts +2 -4
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/CodeDeployClient.d.ts +6 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
- package/node_modules/@aws-sdk/client-codedeploy/package.json +10 -10
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +12 -18
- package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +12 -18
- package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +2 -4
- package/node_modules/@aws-sdk/client-sso/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +6 -8
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sso/package.json +7 -7
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +12 -18
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +12 -18
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +2 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +2 -2
- 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/SSOOIDCClient.d.ts +6 -8
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +9 -9
- package/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +12 -18
- package/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js +12 -18
- package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +2 -4
- package/node_modules/@aws-sdk/client-sts/dist-types/auth/httpAuthSchemeProvider.d.ts +4 -4
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +2 -2
- 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/STSClient.d.ts +6 -8
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +5 -5
- package/node_modules/@aws-sdk/client-sts/package.json +9 -9
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +27 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +18 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +3 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +2 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +10 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +25 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +2 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +12 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +17 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +2 -1
- package/node_modules/@aws-sdk/core/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +2 -2
- package/package.json +3 -3
|
@@ -36,6 +36,11 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
36
36
|
| import("@smithy/types").Provider<
|
|
37
37
|
import("@smithy/smithy-client").DefaultsMode
|
|
38
38
|
>;
|
|
39
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
40
|
+
retryStrategy?:
|
|
41
|
+
| import("@smithy/types").RetryStrategy
|
|
42
|
+
| import("@smithy/types").RetryStrategyV2
|
|
43
|
+
| undefined;
|
|
39
44
|
endpoint?:
|
|
40
45
|
| string
|
|
41
46
|
| import("@smithy/types").Endpoint
|
|
@@ -50,11 +55,6 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
50
55
|
}
|
|
51
56
|
) => import("@smithy/types").EndpointV2;
|
|
52
57
|
tls?: boolean | undefined;
|
|
53
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
54
|
-
retryStrategy?:
|
|
55
|
-
| import("@smithy/types").RetryStrategy
|
|
56
|
-
| import("@smithy/types").RetryStrategyV2
|
|
57
|
-
| undefined;
|
|
58
58
|
httpAuthSchemes:
|
|
59
59
|
| import("@smithy/types").HttpAuthScheme[]
|
|
60
60
|
| (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sso-oidc",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.623.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sso-oidc",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.623.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.623.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.620.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.609.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.620.0",
|
|
@@ -32,26 +32,26 @@
|
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.609.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-node": "3.614.0",
|
|
34
34
|
"@smithy/config-resolver": "^3.0.5",
|
|
35
|
-
"@smithy/core": "^2.3.
|
|
35
|
+
"@smithy/core": "^2.3.2",
|
|
36
36
|
"@smithy/fetch-http-handler": "^3.2.4",
|
|
37
37
|
"@smithy/hash-node": "^3.0.3",
|
|
38
38
|
"@smithy/invalid-dependency": "^3.0.3",
|
|
39
39
|
"@smithy/middleware-content-length": "^3.0.5",
|
|
40
40
|
"@smithy/middleware-endpoint": "^3.1.0",
|
|
41
|
-
"@smithy/middleware-retry": "^3.0.
|
|
41
|
+
"@smithy/middleware-retry": "^3.0.14",
|
|
42
42
|
"@smithy/middleware-serde": "^3.0.3",
|
|
43
43
|
"@smithy/middleware-stack": "^3.0.3",
|
|
44
44
|
"@smithy/node-config-provider": "^3.1.4",
|
|
45
45
|
"@smithy/node-http-handler": "^3.1.4",
|
|
46
46
|
"@smithy/protocol-http": "^4.1.0",
|
|
47
|
-
"@smithy/smithy-client": "^3.1.
|
|
47
|
+
"@smithy/smithy-client": "^3.1.12",
|
|
48
48
|
"@smithy/types": "^3.3.0",
|
|
49
49
|
"@smithy/url-parser": "^3.0.3",
|
|
50
50
|
"@smithy/util-base64": "^3.0.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^3.0.14",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^3.0.14",
|
|
55
55
|
"@smithy/util-endpoints": "^2.0.5",
|
|
56
56
|
"@smithy/util-middleware": "^3.0.3",
|
|
57
57
|
"@smithy/util-retry": "^3.0.3",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
},
|
|
86
86
|
"license": "Apache-2.0",
|
|
87
87
|
"peerDependencies": {
|
|
88
|
-
"@aws-sdk/client-sts": "^3.
|
|
88
|
+
"@aws-sdk/client-sts": "^3.623.0"
|
|
89
89
|
},
|
|
90
90
|
"browser": {
|
|
91
91
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
@@ -20,37 +20,31 @@ class STSClient extends smithy_client_1.Client {
|
|
|
20
20
|
constructor(...[configuration]) {
|
|
21
21
|
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
22
22
|
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
23
|
-
const _config_2 = (0,
|
|
24
|
-
const _config_3 = (0,
|
|
25
|
-
const _config_4 = (0,
|
|
26
|
-
const _config_5 = (0,
|
|
27
|
-
const _config_6 = (0,
|
|
23
|
+
const _config_2 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_1);
|
|
24
|
+
const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
|
25
|
+
const _config_4 = (0, config_resolver_1.resolveRegionConfig)(_config_3);
|
|
26
|
+
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
|
27
|
+
const _config_6 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_5);
|
|
28
28
|
const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);
|
|
29
29
|
const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
|
|
30
30
|
super(_config_8);
|
|
31
31
|
this.config = _config_8;
|
|
32
|
-
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
33
|
-
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
34
|
-
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
35
32
|
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
36
33
|
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
37
34
|
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
35
|
+
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
36
|
+
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
37
|
+
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
38
38
|
this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
39
|
-
httpAuthSchemeParametersProvider:
|
|
40
|
-
identityProviderConfigProvider:
|
|
39
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider,
|
|
40
|
+
identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
41
|
+
"aws.auth#sigv4": config.credentials,
|
|
42
|
+
}),
|
|
41
43
|
}));
|
|
42
44
|
this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
|
|
43
45
|
}
|
|
44
46
|
destroy() {
|
|
45
47
|
super.destroy();
|
|
46
48
|
}
|
|
47
|
-
getDefaultHttpAuthSchemeParametersProvider() {
|
|
48
|
-
return httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider;
|
|
49
|
-
}
|
|
50
|
-
getIdentityProviderConfigProvider() {
|
|
51
|
-
return async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
52
|
-
"aws.auth#sigv4": config.credentials,
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
49
|
}
|
|
56
50
|
exports.STSClient = STSClient;
|
|
@@ -17,36 +17,30 @@ export class STSClient extends __Client {
|
|
|
17
17
|
constructor(...[configuration]) {
|
|
18
18
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
19
19
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
20
|
-
const _config_2 =
|
|
21
|
-
const _config_3 =
|
|
22
|
-
const _config_4 =
|
|
23
|
-
const _config_5 =
|
|
24
|
-
const _config_6 =
|
|
20
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
21
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
22
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
23
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
24
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
25
25
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
26
26
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
27
27
|
super(_config_8);
|
|
28
28
|
this.config = _config_8;
|
|
29
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
30
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
31
|
-
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
32
29
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
30
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
34
31
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
35
35
|
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
36
|
-
httpAuthSchemeParametersProvider:
|
|
37
|
-
identityProviderConfigProvider:
|
|
36
|
+
httpAuthSchemeParametersProvider: defaultSTSHttpAuthSchemeParametersProvider,
|
|
37
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
38
|
+
"aws.auth#sigv4": config.credentials,
|
|
39
|
+
}),
|
|
38
40
|
}));
|
|
39
41
|
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
40
42
|
}
|
|
41
43
|
destroy() {
|
|
42
44
|
super.destroy();
|
|
43
45
|
}
|
|
44
|
-
getDefaultHttpAuthSchemeParametersProvider() {
|
|
45
|
-
return defaultSTSHttpAuthSchemeParametersProvider;
|
|
46
|
-
}
|
|
47
|
-
getIdentityProviderConfigProvider() {
|
|
48
|
-
return async (config) => new DefaultIdentityProviderConfig({
|
|
49
|
-
"aws.auth#sigv4": config.credentials,
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
46
|
}
|
|
@@ -139,7 +139,7 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
139
139
|
/**
|
|
140
140
|
* @public
|
|
141
141
|
*/
|
|
142
|
-
export type STSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults &
|
|
142
|
+
export type STSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
143
143
|
/**
|
|
144
144
|
* @public
|
|
145
145
|
*
|
|
@@ -150,7 +150,7 @@ export interface STSClientConfig extends STSClientConfigType {
|
|
|
150
150
|
/**
|
|
151
151
|
* @public
|
|
152
152
|
*/
|
|
153
|
-
export type STSClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig &
|
|
153
|
+
export type STSClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
154
154
|
/**
|
|
155
155
|
* @public
|
|
156
156
|
*
|
|
@@ -177,6 +177,4 @@ export declare class STSClient extends __Client<__HttpHandlerOptions, ServiceInp
|
|
|
177
177
|
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
178
178
|
*/
|
|
179
179
|
destroy(): void;
|
|
180
|
-
private getDefaultHttpAuthSchemeParametersProvider;
|
|
181
|
-
private getIdentityProviderConfigProvider;
|
|
182
180
|
}
|
|
@@ -40,12 +40,12 @@ export declare const resolveStsAuthConfig: <T>(input: T & StsAuthInputConfig) =>
|
|
|
40
40
|
*/
|
|
41
41
|
export interface HttpAuthSchemeInputConfig extends StsAuthInputConfig, AwsSdkSigV4AuthInputConfig {
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
44
44
|
* @internal
|
|
45
45
|
*/
|
|
46
46
|
httpAuthSchemes?: HttpAuthScheme[];
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
49
49
|
* @internal
|
|
50
50
|
*/
|
|
51
51
|
httpAuthSchemeProvider?: STSHttpAuthSchemeProvider;
|
|
@@ -55,12 +55,12 @@ export interface HttpAuthSchemeInputConfig extends StsAuthInputConfig, AwsSdkSig
|
|
|
55
55
|
*/
|
|
56
56
|
export interface HttpAuthSchemeResolvedConfig extends StsAuthResolvedConfig, AwsSdkSigV4AuthResolvedConfig {
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
59
59
|
* @internal
|
|
60
60
|
*/
|
|
61
61
|
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
64
64
|
* @internal
|
|
65
65
|
*/
|
|
66
66
|
readonly httpAuthSchemeProvider: STSHttpAuthSchemeProvider;
|
|
@@ -27,13 +27,13 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
27
27
|
serviceId: string;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
29
29
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
30
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
31
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
30
32
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
31
33
|
endpointProvider: (params: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
32
34
|
logger?: import("@smithy/types").Logger | undefined;
|
|
33
35
|
} | undefined) => import("@smithy/types").EndpointV2;
|
|
34
36
|
tls?: boolean | undefined;
|
|
35
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
36
|
-
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
37
37
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
|
38
38
|
schemeId: string;
|
|
39
39
|
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
@@ -34,13 +34,13 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
34
34
|
serviceId: string;
|
|
35
35
|
logger: import("@smithy/types").Logger;
|
|
36
36
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
37
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
38
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
37
39
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
38
40
|
endpointProvider: (params: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
39
41
|
logger?: import("@smithy/types").Logger | undefined;
|
|
40
42
|
} | undefined) => import("@smithy/types").EndpointV2;
|
|
41
43
|
tls?: boolean | undefined;
|
|
42
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
43
|
-
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
44
44
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").STSHttpAuthSchemeProvider;
|
|
45
45
|
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
46
46
|
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
@@ -26,13 +26,13 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
26
26
|
logger: import("@smithy/types").Logger;
|
|
27
27
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
28
28
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
29
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
30
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
29
31
|
endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
|
|
30
32
|
endpointProvider: (params: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
31
33
|
logger?: import("@smithy/types").Logger | undefined;
|
|
32
34
|
} | undefined) => import("@smithy/types").EndpointV2;
|
|
33
35
|
tls?: boolean | undefined;
|
|
34
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
35
|
-
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
36
36
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
|
37
37
|
schemeId: string;
|
|
38
38
|
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
@@ -131,11 +131,11 @@ export type STSClientConfigType = Partial<
|
|
|
131
131
|
__SmithyConfiguration<__HttpHandlerOptions>
|
|
132
132
|
> &
|
|
133
133
|
ClientDefaults &
|
|
134
|
-
RegionInputConfig &
|
|
135
|
-
EndpointInputConfig<EndpointParameters> &
|
|
136
|
-
HostHeaderInputConfig &
|
|
137
134
|
UserAgentInputConfig &
|
|
138
135
|
RetryInputConfig &
|
|
136
|
+
RegionInputConfig &
|
|
137
|
+
HostHeaderInputConfig &
|
|
138
|
+
EndpointInputConfig<EndpointParameters> &
|
|
139
139
|
HttpAuthSchemeInputConfig &
|
|
140
140
|
ClientInputEndpointParameters;
|
|
141
141
|
export interface STSClientConfig extends STSClientConfigType {}
|
|
@@ -143,11 +143,11 @@ export type STSClientResolvedConfigType =
|
|
|
143
143
|
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
144
144
|
Required<ClientDefaults> &
|
|
145
145
|
RuntimeExtensionsConfig &
|
|
146
|
-
RegionResolvedConfig &
|
|
147
|
-
EndpointResolvedConfig<EndpointParameters> &
|
|
148
|
-
HostHeaderResolvedConfig &
|
|
149
146
|
UserAgentResolvedConfig &
|
|
150
147
|
RetryResolvedConfig &
|
|
148
|
+
RegionResolvedConfig &
|
|
149
|
+
HostHeaderResolvedConfig &
|
|
150
|
+
EndpointResolvedConfig<EndpointParameters> &
|
|
151
151
|
HttpAuthSchemeResolvedConfig &
|
|
152
152
|
ClientResolvedEndpointParameters;
|
|
153
153
|
export interface STSClientResolvedConfig extends STSClientResolvedConfigType {}
|
|
@@ -160,6 +160,4 @@ export declare class STSClient extends __Client<
|
|
|
160
160
|
readonly config: STSClientResolvedConfig;
|
|
161
161
|
constructor(...[configuration]: __CheckOptionalClientConfig<STSClientConfig>);
|
|
162
162
|
destroy(): void;
|
|
163
|
-
private getDefaultHttpAuthSchemeParametersProvider;
|
|
164
|
-
private getIdentityProviderConfigProvider;
|
|
165
163
|
}
|
|
@@ -32,6 +32,11 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
32
32
|
serviceId: string;
|
|
33
33
|
logger: import("@smithy/types").Logger;
|
|
34
34
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
35
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
36
|
+
retryStrategy?:
|
|
37
|
+
| import("@smithy/types").RetryStrategy
|
|
38
|
+
| import("@smithy/types").RetryStrategyV2
|
|
39
|
+
| undefined;
|
|
35
40
|
endpoint?:
|
|
36
41
|
| ((
|
|
37
42
|
| string
|
|
@@ -58,11 +63,6 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
58
63
|
| undefined
|
|
59
64
|
) => import("@smithy/types").EndpointV2;
|
|
60
65
|
tls?: boolean | undefined;
|
|
61
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
62
|
-
retryStrategy?:
|
|
63
|
-
| import("@smithy/types").RetryStrategy
|
|
64
|
-
| import("@smithy/types").RetryStrategyV2
|
|
65
|
-
| undefined;
|
|
66
66
|
httpAuthSchemes:
|
|
67
67
|
| import("@smithy/types").HttpAuthScheme[]
|
|
68
68
|
| (
|
|
@@ -51,6 +51,11 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
51
51
|
serviceId: string;
|
|
52
52
|
logger: import("@smithy/types").Logger;
|
|
53
53
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
54
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
55
|
+
retryStrategy?:
|
|
56
|
+
| import("@smithy/types").RetryStrategy
|
|
57
|
+
| import("@smithy/types").RetryStrategyV2
|
|
58
|
+
| undefined;
|
|
54
59
|
endpoint?:
|
|
55
60
|
| ((
|
|
56
61
|
| string
|
|
@@ -77,11 +82,6 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
77
82
|
| undefined
|
|
78
83
|
) => import("@smithy/types").EndpointV2;
|
|
79
84
|
tls?: boolean | undefined;
|
|
80
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
81
|
-
retryStrategy?:
|
|
82
|
-
| import("@smithy/types").RetryStrategy
|
|
83
|
-
| import("@smithy/types").RetryStrategyV2
|
|
84
|
-
| undefined;
|
|
85
85
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").STSHttpAuthSchemeProvider;
|
|
86
86
|
credentials?:
|
|
87
87
|
| import("@smithy/types").AwsCredentialIdentity
|
|
@@ -36,6 +36,11 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
36
36
|
| import("@smithy/types").Provider<
|
|
37
37
|
import("@smithy/smithy-client").DefaultsMode
|
|
38
38
|
>;
|
|
39
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
40
|
+
retryStrategy?:
|
|
41
|
+
| import("@smithy/types").RetryStrategy
|
|
42
|
+
| import("@smithy/types").RetryStrategyV2
|
|
43
|
+
| undefined;
|
|
39
44
|
endpoint?:
|
|
40
45
|
| string
|
|
41
46
|
| import("@smithy/types").Endpoint
|
|
@@ -52,11 +57,6 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
|
|
|
52
57
|
| undefined
|
|
53
58
|
) => import("@smithy/types").EndpointV2;
|
|
54
59
|
tls?: boolean | undefined;
|
|
55
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
56
|
-
retryStrategy?:
|
|
57
|
-
| import("@smithy/types").RetryStrategy
|
|
58
|
-
| import("@smithy/types").RetryStrategyV2
|
|
59
|
-
| undefined;
|
|
60
60
|
httpAuthSchemes:
|
|
61
61
|
| import("@smithy/types").HttpAuthScheme[]
|
|
62
62
|
| (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.623.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sts",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
25
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
26
|
-
"@aws-sdk/core": "3.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/client-sso-oidc": "3.623.0",
|
|
26
|
+
"@aws-sdk/core": "3.623.0",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "3.623.0",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "3.620.0",
|
|
29
29
|
"@aws-sdk/middleware-logger": "3.609.0",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "3.620.0",
|
|
@@ -35,26 +35,26 @@
|
|
|
35
35
|
"@aws-sdk/util-user-agent-browser": "3.609.0",
|
|
36
36
|
"@aws-sdk/util-user-agent-node": "3.614.0",
|
|
37
37
|
"@smithy/config-resolver": "^3.0.5",
|
|
38
|
-
"@smithy/core": "^2.3.
|
|
38
|
+
"@smithy/core": "^2.3.2",
|
|
39
39
|
"@smithy/fetch-http-handler": "^3.2.4",
|
|
40
40
|
"@smithy/hash-node": "^3.0.3",
|
|
41
41
|
"@smithy/invalid-dependency": "^3.0.3",
|
|
42
42
|
"@smithy/middleware-content-length": "^3.0.5",
|
|
43
43
|
"@smithy/middleware-endpoint": "^3.1.0",
|
|
44
|
-
"@smithy/middleware-retry": "^3.0.
|
|
44
|
+
"@smithy/middleware-retry": "^3.0.14",
|
|
45
45
|
"@smithy/middleware-serde": "^3.0.3",
|
|
46
46
|
"@smithy/middleware-stack": "^3.0.3",
|
|
47
47
|
"@smithy/node-config-provider": "^3.1.4",
|
|
48
48
|
"@smithy/node-http-handler": "^3.1.4",
|
|
49
49
|
"@smithy/protocol-http": "^4.1.0",
|
|
50
|
-
"@smithy/smithy-client": "^3.1.
|
|
50
|
+
"@smithy/smithy-client": "^3.1.12",
|
|
51
51
|
"@smithy/types": "^3.3.0",
|
|
52
52
|
"@smithy/url-parser": "^3.0.3",
|
|
53
53
|
"@smithy/util-base64": "^3.0.0",
|
|
54
54
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
55
55
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^3.0.14",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^3.0.14",
|
|
58
58
|
"@smithy/util-endpoints": "^2.0.5",
|
|
59
59
|
"@smithy/util-middleware": "^3.0.3",
|
|
60
60
|
"@smithy/util-retry": "^3.0.3",
|
|
@@ -22,6 +22,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
22
22
|
var httpAuthSchemes_exports = {};
|
|
23
23
|
__export(httpAuthSchemes_exports, {
|
|
24
24
|
AWSSDKSigV4Signer: () => AWSSDKSigV4Signer,
|
|
25
|
+
AwsSdkSigV4ASigner: () => AwsSdkSigV4ASigner,
|
|
25
26
|
AwsSdkSigV4Signer: () => AwsSdkSigV4Signer,
|
|
26
27
|
resolveAWSSDKSigV4Config: () => resolveAWSSDKSigV4Config,
|
|
27
28
|
resolveAwsSdkSigV4Config: () => resolveAwsSdkSigV4Config
|
|
@@ -74,11 +75,13 @@ var validateSigningProperties = /* @__PURE__ */ __name(async (signingProperties)
|
|
|
74
75
|
);
|
|
75
76
|
const signer = await signerFunction(authScheme);
|
|
76
77
|
const signingRegion = signingProperties == null ? void 0 : signingProperties.signingRegion;
|
|
78
|
+
const signingRegionSet = signingProperties == null ? void 0 : signingProperties.signingRegionSet;
|
|
77
79
|
const signingName = signingProperties == null ? void 0 : signingProperties.signingName;
|
|
78
80
|
return {
|
|
79
81
|
config,
|
|
80
82
|
signer,
|
|
81
83
|
signingRegion,
|
|
84
|
+
signingRegionSet,
|
|
82
85
|
signingName
|
|
83
86
|
};
|
|
84
87
|
}, "validateSigningProperties");
|
|
@@ -122,6 +125,29 @@ __name(_AwsSdkSigV4Signer, "AwsSdkSigV4Signer");
|
|
|
122
125
|
var AwsSdkSigV4Signer = _AwsSdkSigV4Signer;
|
|
123
126
|
var AWSSDKSigV4Signer = AwsSdkSigV4Signer;
|
|
124
127
|
|
|
128
|
+
// src/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.ts
|
|
129
|
+
var import_protocol_http3 = require("@smithy/protocol-http");
|
|
130
|
+
var _AwsSdkSigV4ASigner = class _AwsSdkSigV4ASigner extends AwsSdkSigV4Signer {
|
|
131
|
+
async sign(httpRequest, identity, signingProperties) {
|
|
132
|
+
var _a;
|
|
133
|
+
if (!import_protocol_http3.HttpRequest.isInstance(httpRequest)) {
|
|
134
|
+
throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
|
|
135
|
+
}
|
|
136
|
+
const { config, signer, signingRegion, signingRegionSet, signingName } = await validateSigningProperties(
|
|
137
|
+
signingProperties
|
|
138
|
+
);
|
|
139
|
+
const multiRegionOverride = ((_a = signingRegionSet == null ? void 0 : signingRegionSet.join) == null ? void 0 : _a.call(signingRegionSet, ",")) ?? signingRegion;
|
|
140
|
+
const signedRequest = await signer.sign(httpRequest, {
|
|
141
|
+
signingDate: getSkewCorrectedDate(config.systemClockOffset),
|
|
142
|
+
signingRegion: multiRegionOverride,
|
|
143
|
+
signingService: signingName
|
|
144
|
+
});
|
|
145
|
+
return signedRequest;
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
__name(_AwsSdkSigV4ASigner, "AwsSdkSigV4ASigner");
|
|
149
|
+
var AwsSdkSigV4ASigner = _AwsSdkSigV4ASigner;
|
|
150
|
+
|
|
125
151
|
// src/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.ts
|
|
126
152
|
var import_core = require("@smithy/core");
|
|
127
153
|
var import_signature_v4 = require("@smithy/signature-v4");
|
|
@@ -220,6 +246,7 @@ var resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
|
|
|
220
246
|
// Annotate the CommonJS export names for ESM import in node:
|
|
221
247
|
0 && (module.exports = {
|
|
222
248
|
AWSSDKSigV4Signer,
|
|
249
|
+
AwsSdkSigV4ASigner,
|
|
223
250
|
AwsSdkSigV4Signer,
|
|
224
251
|
resolveAWSSDKSigV4Config,
|
|
225
252
|
resolveAwsSdkSigV4Config
|
package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HttpRequest } from "@smithy/protocol-http";
|
|
2
|
+
import { getSkewCorrectedDate } from "../utils";
|
|
3
|
+
import { AwsSdkSigV4Signer, validateSigningProperties } from "./AwsSdkSigV4Signer";
|
|
4
|
+
export class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer {
|
|
5
|
+
async sign(httpRequest, identity, signingProperties) {
|
|
6
|
+
if (!HttpRequest.isInstance(httpRequest)) {
|
|
7
|
+
throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
|
|
8
|
+
}
|
|
9
|
+
const { config, signer, signingRegion, signingRegionSet, signingName } = await validateSigningProperties(signingProperties);
|
|
10
|
+
const multiRegionOverride = signingRegionSet?.join?.(",") ?? signingRegion;
|
|
11
|
+
const signedRequest = await signer.sign(httpRequest, {
|
|
12
|
+
signingDate: getSkewCorrectedDate(config.systemClockOffset),
|
|
13
|
+
signingRegion: multiRegionOverride,
|
|
14
|
+
signingService: signingName,
|
|
15
|
+
});
|
|
16
|
+
return signedRequest;
|
|
17
|
+
}
|
|
18
|
+
}
|
package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
CHANGED
|
@@ -6,18 +6,20 @@ const throwSigningPropertyError = (name, property) => {
|
|
|
6
6
|
}
|
|
7
7
|
return property;
|
|
8
8
|
};
|
|
9
|
-
const validateSigningProperties = async (signingProperties) => {
|
|
9
|
+
export const validateSigningProperties = async (signingProperties) => {
|
|
10
10
|
const context = throwSigningPropertyError("context", signingProperties.context);
|
|
11
11
|
const config = throwSigningPropertyError("config", signingProperties.config);
|
|
12
12
|
const authScheme = context.endpointV2?.properties?.authSchemes?.[0];
|
|
13
13
|
const signerFunction = throwSigningPropertyError("signer", config.signer);
|
|
14
14
|
const signer = await signerFunction(authScheme);
|
|
15
15
|
const signingRegion = signingProperties?.signingRegion;
|
|
16
|
+
const signingRegionSet = signingProperties?.signingRegionSet;
|
|
16
17
|
const signingName = signingProperties?.signingName;
|
|
17
18
|
return {
|
|
18
19
|
config,
|
|
19
20
|
signer,
|
|
20
21
|
signingRegion,
|
|
22
|
+
signingRegionSet,
|
|
21
23
|
signingName,
|
|
22
24
|
};
|
|
23
25
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AwsCredentialIdentity, HttpRequest as IHttpRequest } from "@smithy/types";
|
|
2
|
+
import { AwsSdkSigV4Signer } from "./AwsSdkSigV4Signer";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
* Note: this is not a signing algorithm implementation. The sign method
|
|
6
|
+
* accepts the real signer as an input parameter.
|
|
7
|
+
*/
|
|
8
|
+
export declare class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer {
|
|
9
|
+
sign(httpRequest: IHttpRequest, identity: AwsCredentialIdentity, signingProperties: Record<string, unknown>): Promise<IHttpRequest>;
|
|
10
|
+
}
|
|
@@ -1,7 +1,30 @@
|
|
|
1
|
-
import { AwsCredentialIdentity, HttpRequest as IHttpRequest, HttpResponse, HttpSigner } from "@smithy/types";
|
|
1
|
+
import { AuthScheme, AwsCredentialIdentity, HttpRequest as IHttpRequest, HttpResponse, HttpSigner, RequestSigner } from "@smithy/types";
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
|
+
interface AwsSdkSigV4Config {
|
|
6
|
+
systemClockOffset: number;
|
|
7
|
+
signer: (authScheme?: AuthScheme) => Promise<RequestSigner>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
interface AwsSdkSigV4AuthSigningProperties {
|
|
13
|
+
config: AwsSdkSigV4Config;
|
|
14
|
+
signer: RequestSigner;
|
|
15
|
+
signingRegion?: string;
|
|
16
|
+
signingRegionSet?: string[];
|
|
17
|
+
signingName?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare const validateSigningProperties: (signingProperties: Record<string, unknown>) => Promise<AwsSdkSigV4AuthSigningProperties>;
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
* Note: this is not a signing algorithm implementation. The sign method
|
|
26
|
+
* accepts the real signer as an input parameter.
|
|
27
|
+
*/
|
|
5
28
|
export declare class AwsSdkSigV4Signer implements HttpSigner {
|
|
6
29
|
sign(httpRequest: IHttpRequest,
|
|
7
30
|
/**
|
|
@@ -15,3 +38,4 @@ export declare class AwsSdkSigV4Signer implements HttpSigner {
|
|
|
15
38
|
* @deprecated renamed to {@link AwsSdkSigV4Signer}
|
|
16
39
|
*/
|
|
17
40
|
export declare const AWSSDKSigV4Signer: typeof AwsSdkSigV4Signer;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AwsCredentialIdentity,
|
|
3
|
+
HttpRequest as IHttpRequest,
|
|
4
|
+
} from "@smithy/types";
|
|
5
|
+
import { AwsSdkSigV4Signer } from "./AwsSdkSigV4Signer";
|
|
6
|
+
export declare class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer {
|
|
7
|
+
sign(
|
|
8
|
+
httpRequest: IHttpRequest,
|
|
9
|
+
identity: AwsCredentialIdentity,
|
|
10
|
+
signingProperties: Record<string, unknown>
|
|
11
|
+
): Promise<IHttpRequest>;
|
|
12
|
+
}
|