@cdklabs/cdk-ecs-codedeploy 0.0.246 → 0.0.248
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 +4 -4
- package/.jsii.tabl.json +1 -1
- package/API.md +2 -2
- 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.d.ts +2 -2
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +65 -7
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.shared.js +10 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/CodeDeployClient.js +17 -4
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.shared.js +10 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeExtensions.js +3 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeployClient.d.ts +13 -11
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/extensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.browser.d.ts +6 -6
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.d.ts +4 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.native.d.ts +6 -4
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/CodeDeployClient.d.ts +11 -9
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- 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 +4 -4
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -8
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/node_modules/@aws-sdk/client-codedeploy/package.json +16 -16
- package/node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js +68 -0
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +67 -6
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +16 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +19 -3
- package/node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js +62 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +16 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeExtensions.js +3 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +9 -6
- package/node_modules/@aws-sdk/client-sso/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/extensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +16 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +16 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +17 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +9 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +46 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +46 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +47 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
- package/node_modules/@aws-sdk/client-sso/package.json +14 -13
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js +64 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +66 -9
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js +16 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +17 -3
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthSchemeProvider.js +58 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenWithIAMCommand.js +0 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.shared.js +16 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeExtensions.js +3 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +13 -11
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/extensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +13 -3
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +12 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +14 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +11 -9
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +30 -5
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +29 -4
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +33 -8
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +16 -16
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +43 -17
- package/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js +17 -15
- package/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts +4 -4
- package/node_modules/@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers.d.ts +11 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultRoleAssumers.d.ts +4 -7
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +11 -3
- package/node_modules/@aws-sdk/client-sts/package.json +14 -14
- package/node_modules/@aws-sdk/core/CHANGELOG.md +22 -0
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +13 -7
- package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +6 -2
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.ts +10 -2
- package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
- 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 +10 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +5 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +5 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +5 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +16 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +3 -0
- package/node_modules/@aws-sdk/types/package.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-signing/LICENSE +0 -201
- package/node_modules/@aws-sdk/middleware-signing/README.md +0 -4
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthConfiguration.js +0 -1
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthMiddleware.js +0 -1
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +0 -227
- package/node_modules/@aws-sdk/middleware-signing/dist-es/awsAuthConfiguration.js +0 -103
- package/node_modules/@aws-sdk/middleware-signing/dist-es/awsAuthMiddleware.js +0 -55
- package/node_modules/@aws-sdk/middleware-signing/dist-es/index.js +0 -2
- package/node_modules/@aws-sdk/middleware-signing/dist-es/utils/getSkewCorrectedDate.js +0 -1
- package/node_modules/@aws-sdk/middleware-signing/dist-es/utils/getUpdatedSystemClockOffset.js +0 -8
- package/node_modules/@aws-sdk/middleware-signing/dist-es/utils/isClockSkewed.js +0 -2
- package/node_modules/@aws-sdk/middleware-signing/dist-types/awsAuthConfiguration.d.ts +0 -99
- package/node_modules/@aws-sdk/middleware-signing/dist-types/awsAuthMiddleware.d.ts +0 -6
- package/node_modules/@aws-sdk/middleware-signing/dist-types/index.d.ts +0 -2
- package/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/awsAuthConfiguration.d.ts +0 -68
- package/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/awsAuthMiddleware.d.ts +0 -19
- package/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/index.d.ts +0 -2
- package/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/utils/getSkewCorrectedDate.d.ts +0 -1
- package/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/utils/getUpdatedSystemClockOffset.d.ts +0 -4
- package/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/utils/isClockSkewed.d.ts +0 -4
- package/node_modules/@aws-sdk/middleware-signing/dist-types/utils/getSkewCorrectedDate.d.ts +0 -6
- package/node_modules/@aws-sdk/middleware-signing/dist-types/utils/getUpdatedSystemClockOffset.d.ts +0 -8
- package/node_modules/@aws-sdk/middleware-signing/dist-types/utils/isClockSkewed.d.ts +0 -7
- package/node_modules/@aws-sdk/middleware-signing/package.json +0 -59
- /package/node_modules/@aws-sdk/{middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js → client-codedeploy/dist-cjs/auth/httpAuthExtensionConfiguration.js} +0 -0
- /package/node_modules/@aws-sdk/{middleware-signing/dist-cjs/utils/isClockSkewed.js → client-sso/dist-cjs/auth/httpAuthExtensionConfiguration.js} +0 -0
- /package/node_modules/@aws-sdk/{middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js → client-sso-oidc/dist-cjs/auth/httpAuthExtensionConfiguration.js} +0 -0
|
@@ -21,9 +21,9 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
21
21
|
serviceId: string;
|
|
22
22
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
23
23
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
24
|
-
region: string | import("@smithy/types").Provider<any>;
|
|
25
|
-
credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
24
|
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
|
25
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
26
|
+
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
27
27
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
28
28
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
29
29
|
logger: import("@smithy/types").Logger;
|
|
@@ -35,11 +35,21 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
35
35
|
}) => import("@smithy/types").EndpointV2;
|
|
36
36
|
tls?: boolean | undefined;
|
|
37
37
|
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
38
|
-
|
|
38
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
39
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
|
40
|
+
schemeId: string;
|
|
41
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
42
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
|
43
|
+
} | {
|
|
44
|
+
schemeId: string;
|
|
45
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
|
|
46
|
+
signer: import("@smithy/core").NoAuthSigner;
|
|
47
|
+
})[];
|
|
48
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOOIDCHttpAuthSchemeProvider;
|
|
49
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
39
50
|
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
|
|
40
51
|
signingEscapePath?: boolean | undefined;
|
|
41
52
|
systemClockOffset?: number | undefined;
|
|
42
53
|
signingRegion?: string | undefined;
|
|
43
54
|
signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
|
|
44
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
45
55
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { NoAuthSigner } from "@smithy/core";
|
|
3
|
+
import { IdentityProviderConfig } from "@smithy/types";
|
|
1
4
|
import { SSOOIDCClientConfig } from "./SSOOIDCClient";
|
|
2
5
|
/**
|
|
3
6
|
* @internal
|
|
@@ -11,6 +14,16 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
11
14
|
logger?: import("@smithy/types").Logger | undefined;
|
|
12
15
|
}) => import("@smithy/types").EndpointV2;
|
|
13
16
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
17
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOOIDCHttpAuthSchemeProvider;
|
|
18
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
|
19
|
+
schemeId: string;
|
|
20
|
+
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
21
|
+
signer: AwsSdkSigV4Signer;
|
|
22
|
+
} | {
|
|
23
|
+
schemeId: string;
|
|
24
|
+
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
|
|
25
|
+
signer: NoAuthSigner;
|
|
26
|
+
})[];
|
|
14
27
|
logger: import("@smithy/types").Logger;
|
|
15
28
|
serviceId: string;
|
|
16
29
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -2,15 +2,10 @@ import {
|
|
|
2
2
|
HostHeaderInputConfig,
|
|
3
3
|
HostHeaderResolvedConfig,
|
|
4
4
|
} from "@aws-sdk/middleware-host-header";
|
|
5
|
-
import {
|
|
6
|
-
AwsAuthInputConfig,
|
|
7
|
-
AwsAuthResolvedConfig,
|
|
8
|
-
} from "@aws-sdk/middleware-signing";
|
|
9
5
|
import {
|
|
10
6
|
UserAgentInputConfig,
|
|
11
7
|
UserAgentResolvedConfig,
|
|
12
8
|
} from "@aws-sdk/middleware-user-agent";
|
|
13
|
-
import { Credentials as __Credentials } from "@aws-sdk/types";
|
|
14
9
|
import {
|
|
15
10
|
RegionInputConfig,
|
|
16
11
|
RegionResolvedConfig,
|
|
@@ -31,6 +26,7 @@ import {
|
|
|
31
26
|
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
32
27
|
} from "@smithy/smithy-client";
|
|
33
28
|
import {
|
|
29
|
+
AwsCredentialIdentityProvider,
|
|
34
30
|
BodyLengthCalculator as __BodyLengthCalculator,
|
|
35
31
|
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
36
32
|
ChecksumConstructor as __ChecksumConstructor,
|
|
@@ -45,6 +41,10 @@ import {
|
|
|
45
41
|
UrlParser as __UrlParser,
|
|
46
42
|
UserAgent as __UserAgent,
|
|
47
43
|
} from "@smithy/types";
|
|
44
|
+
import {
|
|
45
|
+
HttpAuthSchemeInputConfig,
|
|
46
|
+
HttpAuthSchemeResolvedConfig,
|
|
47
|
+
} from "./auth/httpAuthSchemeProvider";
|
|
48
48
|
import {
|
|
49
49
|
CreateTokenCommandInput,
|
|
50
50
|
CreateTokenCommandOutput,
|
|
@@ -94,9 +94,9 @@ export interface ClientDefaults
|
|
|
94
94
|
serviceId?: string;
|
|
95
95
|
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
96
96
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
97
|
-
region?: string | __Provider<string>;
|
|
98
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
99
97
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
98
|
+
region?: string | __Provider<string>;
|
|
99
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
100
100
|
maxAttempts?: number | __Provider<number>;
|
|
101
101
|
retryMode?: string | __Provider<string>;
|
|
102
102
|
logger?: __Logger;
|
|
@@ -111,8 +111,8 @@ export type SSOOIDCClientConfigType = Partial<
|
|
|
111
111
|
EndpointInputConfig<EndpointParameters> &
|
|
112
112
|
RetryInputConfig &
|
|
113
113
|
HostHeaderInputConfig &
|
|
114
|
-
AwsAuthInputConfig &
|
|
115
114
|
UserAgentInputConfig &
|
|
115
|
+
HttpAuthSchemeInputConfig &
|
|
116
116
|
ClientInputEndpointParameters;
|
|
117
117
|
export interface SSOOIDCClientConfig extends SSOOIDCClientConfigType {}
|
|
118
118
|
export type SSOOIDCClientResolvedConfigType =
|
|
@@ -123,8 +123,8 @@ export type SSOOIDCClientResolvedConfigType =
|
|
|
123
123
|
EndpointResolvedConfig<EndpointParameters> &
|
|
124
124
|
RetryResolvedConfig &
|
|
125
125
|
HostHeaderResolvedConfig &
|
|
126
|
-
AwsAuthResolvedConfig &
|
|
127
126
|
UserAgentResolvedConfig &
|
|
127
|
+
HttpAuthSchemeResolvedConfig &
|
|
128
128
|
ClientResolvedEndpointParameters;
|
|
129
129
|
export interface SSOOIDCClientResolvedConfig
|
|
130
130
|
extends SSOOIDCClientResolvedConfigType {}
|
|
@@ -139,4 +139,6 @@ export declare class SSOOIDCClient extends __Client<
|
|
|
139
139
|
...[configuration]: __CheckOptionalClientConfig<SSOOIDCClientConfig>
|
|
140
140
|
);
|
|
141
141
|
destroy(): void;
|
|
142
|
+
private getDefaultHttpAuthSchemeParametersProvider;
|
|
143
|
+
private getIdentityProviderConfigProvider;
|
|
142
144
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AwsCredentialIdentity,
|
|
3
|
+
AwsCredentialIdentityProvider,
|
|
4
|
+
HttpAuthScheme,
|
|
5
|
+
} from "@smithy/types";
|
|
6
|
+
import { SSOOIDCHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
7
|
+
export interface HttpAuthExtensionConfiguration {
|
|
8
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
9
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
10
|
+
setHttpAuthSchemeProvider(
|
|
11
|
+
httpAuthSchemeProvider: SSOOIDCHttpAuthSchemeProvider
|
|
12
|
+
): void;
|
|
13
|
+
httpAuthSchemeProvider(): SSOOIDCHttpAuthSchemeProvider;
|
|
14
|
+
setCredentials(
|
|
15
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider
|
|
16
|
+
): void;
|
|
17
|
+
credentials():
|
|
18
|
+
| AwsCredentialIdentity
|
|
19
|
+
| AwsCredentialIdentityProvider
|
|
20
|
+
| undefined;
|
|
21
|
+
}
|
|
22
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
23
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
24
|
+
httpAuthSchemeProvider: SSOOIDCHttpAuthSchemeProvider;
|
|
25
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const getHttpAuthExtensionConfiguration: (
|
|
28
|
+
runtimeConfig: HttpAuthRuntimeConfig
|
|
29
|
+
) => HttpAuthExtensionConfiguration;
|
|
30
|
+
export declare const resolveHttpAuthRuntimeConfig: (
|
|
31
|
+
config: HttpAuthExtensionConfiguration
|
|
32
|
+
) => HttpAuthRuntimeConfig;
|
package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AwsSdkSigV4AuthInputConfig,
|
|
3
|
+
AwsSdkSigV4AuthResolvedConfig,
|
|
4
|
+
AwsSdkSigV4PreviouslyResolved,
|
|
5
|
+
} from "@aws-sdk/core";
|
|
6
|
+
import {
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpAuthScheme,
|
|
9
|
+
HttpAuthSchemeParameters,
|
|
10
|
+
HttpAuthSchemeParametersProvider,
|
|
11
|
+
HttpAuthSchemeProvider,
|
|
12
|
+
} from "@smithy/types";
|
|
13
|
+
import { SSOOIDCClientResolvedConfig } from "../SSOOIDCClient";
|
|
14
|
+
export interface SSOOIDCHttpAuthSchemeParameters
|
|
15
|
+
extends HttpAuthSchemeParameters {
|
|
16
|
+
region?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface SSOOIDCHttpAuthSchemeParametersProvider
|
|
19
|
+
extends HttpAuthSchemeParametersProvider<
|
|
20
|
+
SSOOIDCClientResolvedConfig,
|
|
21
|
+
HandlerExecutionContext,
|
|
22
|
+
SSOOIDCHttpAuthSchemeParameters,
|
|
23
|
+
object
|
|
24
|
+
> {}
|
|
25
|
+
export declare const defaultSSOOIDCHttpAuthSchemeParametersProvider: (
|
|
26
|
+
config: SSOOIDCClientResolvedConfig,
|
|
27
|
+
context: HandlerExecutionContext,
|
|
28
|
+
input: object
|
|
29
|
+
) => Promise<SSOOIDCHttpAuthSchemeParameters>;
|
|
30
|
+
export interface SSOOIDCHttpAuthSchemeProvider
|
|
31
|
+
extends HttpAuthSchemeProvider<SSOOIDCHttpAuthSchemeParameters> {}
|
|
32
|
+
export declare const defaultSSOOIDCHttpAuthSchemeProvider: SSOOIDCHttpAuthSchemeProvider;
|
|
33
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
34
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
35
|
+
httpAuthSchemeProvider?: SSOOIDCHttpAuthSchemeProvider;
|
|
36
|
+
}
|
|
37
|
+
export interface HttpAuthSchemeResolvedConfig
|
|
38
|
+
extends AwsSdkSigV4AuthResolvedConfig {
|
|
39
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
40
|
+
readonly httpAuthSchemeProvider: SSOOIDCHttpAuthSchemeProvider;
|
|
41
|
+
}
|
|
42
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
43
|
+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
|
|
44
|
+
) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
2
|
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
3
|
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
4
5
|
export interface SSOOIDCExtensionConfiguration
|
|
5
6
|
extends HttpHandlerExtensionConfiguration,
|
|
6
7
|
DefaultExtensionConfiguration,
|
|
7
|
-
AwsRegionExtensionConfiguration
|
|
8
|
+
AwsRegionExtensionConfiguration,
|
|
9
|
+
HttpAuthExtensionConfiguration {}
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
8
8
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
9
9
|
credentialDefaultProvider: (
|
|
10
10
|
input: any
|
|
11
|
-
) => import("@smithy/types").
|
|
11
|
+
) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
12
12
|
defaultUserAgentProvider: import("@smithy/types").Provider<
|
|
13
13
|
import("@smithy/types").UserAgent
|
|
14
14
|
>;
|
|
@@ -72,11 +72,37 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
72
72
|
| import("@smithy/types").RetryStrategy
|
|
73
73
|
| import("@smithy/types").RetryStrategyV2
|
|
74
74
|
| undefined;
|
|
75
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
76
|
+
httpAuthSchemes:
|
|
77
|
+
| import("@smithy/types").HttpAuthScheme[]
|
|
78
|
+
| (
|
|
79
|
+
| {
|
|
80
|
+
schemeId: string;
|
|
81
|
+
identityProvider: (
|
|
82
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
83
|
+
) =>
|
|
84
|
+
| import("@smithy/types").IdentityProvider<
|
|
85
|
+
import("@smithy/types").Identity
|
|
86
|
+
>
|
|
87
|
+
| undefined;
|
|
88
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
|
89
|
+
}
|
|
90
|
+
| {
|
|
91
|
+
schemeId: string;
|
|
92
|
+
identityProvider: (
|
|
93
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
94
|
+
) =>
|
|
95
|
+
| import("@smithy/types").IdentityProvider<
|
|
96
|
+
import("@smithy/types").Identity
|
|
97
|
+
>
|
|
98
|
+
| (() => Promise<{}>);
|
|
99
|
+
signer: import("@smithy/core").NoAuthSigner;
|
|
100
|
+
}
|
|
101
|
+
)[];
|
|
102
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOOIDCHttpAuthSchemeProvider;
|
|
75
103
|
credentials?:
|
|
76
104
|
| import("@smithy/types").AwsCredentialIdentity
|
|
77
|
-
| import("@smithy/types").
|
|
78
|
-
import("@smithy/types").AwsCredentialIdentity
|
|
79
|
-
>
|
|
105
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
80
106
|
| undefined;
|
|
81
107
|
signer?:
|
|
82
108
|
| import("@smithy/types").RequestSigner
|
|
@@ -93,5 +119,4 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
93
119
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
94
120
|
) => import("@smithy/types").RequestSigner)
|
|
95
121
|
| undefined;
|
|
96
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
97
122
|
};
|
|
@@ -70,11 +70,37 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
70
70
|
| import("@smithy/types").RetryStrategy
|
|
71
71
|
| import("@smithy/types").RetryStrategyV2
|
|
72
72
|
| undefined;
|
|
73
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
74
|
+
httpAuthSchemes:
|
|
75
|
+
| import("@smithy/types").HttpAuthScheme[]
|
|
76
|
+
| (
|
|
77
|
+
| {
|
|
78
|
+
schemeId: string;
|
|
79
|
+
identityProvider: (
|
|
80
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
81
|
+
) =>
|
|
82
|
+
| import("@smithy/types").IdentityProvider<
|
|
83
|
+
import("@smithy/types").Identity
|
|
84
|
+
>
|
|
85
|
+
| undefined;
|
|
86
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
|
87
|
+
}
|
|
88
|
+
| {
|
|
89
|
+
schemeId: string;
|
|
90
|
+
identityProvider: (
|
|
91
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
92
|
+
) =>
|
|
93
|
+
| import("@smithy/types").IdentityProvider<
|
|
94
|
+
import("@smithy/types").Identity
|
|
95
|
+
>
|
|
96
|
+
| (() => Promise<{}>);
|
|
97
|
+
signer: import("@smithy/core").NoAuthSigner;
|
|
98
|
+
}
|
|
99
|
+
)[];
|
|
100
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOOIDCHttpAuthSchemeProvider;
|
|
73
101
|
credentials?:
|
|
74
102
|
| import("@smithy/types").AwsCredentialIdentity
|
|
75
|
-
| import("@smithy/types").
|
|
76
|
-
import("@smithy/types").AwsCredentialIdentity
|
|
77
|
-
>
|
|
103
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
78
104
|
| undefined;
|
|
79
105
|
signer?:
|
|
80
106
|
| import("@smithy/types").RequestSigner
|
|
@@ -91,5 +117,4 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
91
117
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
92
118
|
) => import("@smithy/types").RequestSigner)
|
|
93
119
|
| undefined;
|
|
94
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
95
120
|
};
|
|
@@ -29,13 +29,13 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
29
29
|
serviceId: string;
|
|
30
30
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
31
31
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
32
|
-
region: string | import("@smithy/types").Provider<any>;
|
|
33
|
-
credentialDefaultProvider: (
|
|
34
|
-
input: any
|
|
35
|
-
) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
36
32
|
defaultUserAgentProvider: import("@smithy/types").Provider<
|
|
37
33
|
import("@smithy/types").UserAgent
|
|
38
34
|
>;
|
|
35
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
36
|
+
credentialDefaultProvider: (
|
|
37
|
+
input: any
|
|
38
|
+
) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
39
39
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
40
40
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
41
41
|
logger: import("@smithy/types").Logger;
|
|
@@ -63,11 +63,37 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
63
63
|
| import("@smithy/types").RetryStrategy
|
|
64
64
|
| import("@smithy/types").RetryStrategyV2
|
|
65
65
|
| undefined;
|
|
66
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
67
|
+
httpAuthSchemes:
|
|
68
|
+
| import("@smithy/types").HttpAuthScheme[]
|
|
69
|
+
| (
|
|
70
|
+
| {
|
|
71
|
+
schemeId: string;
|
|
72
|
+
identityProvider: (
|
|
73
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
74
|
+
) =>
|
|
75
|
+
| import("@smithy/types").IdentityProvider<
|
|
76
|
+
import("@smithy/types").Identity
|
|
77
|
+
>
|
|
78
|
+
| undefined;
|
|
79
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
|
80
|
+
}
|
|
81
|
+
| {
|
|
82
|
+
schemeId: string;
|
|
83
|
+
identityProvider: (
|
|
84
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
85
|
+
) =>
|
|
86
|
+
| import("@smithy/types").IdentityProvider<
|
|
87
|
+
import("@smithy/types").Identity
|
|
88
|
+
>
|
|
89
|
+
| (() => Promise<{}>);
|
|
90
|
+
signer: import("@smithy/core").NoAuthSigner;
|
|
91
|
+
}
|
|
92
|
+
)[];
|
|
93
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOOIDCHttpAuthSchemeProvider;
|
|
66
94
|
credentials?:
|
|
67
95
|
| import("@smithy/types").AwsCredentialIdentity
|
|
68
|
-
| import("@smithy/types").
|
|
69
|
-
import("@smithy/types").AwsCredentialIdentity
|
|
70
|
-
>
|
|
96
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
71
97
|
| undefined;
|
|
72
98
|
signer?:
|
|
73
99
|
| import("@smithy/types").RequestSigner
|
|
@@ -84,5 +110,4 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
84
110
|
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
85
111
|
) => import("@smithy/types").RequestSigner)
|
|
86
112
|
| undefined;
|
|
87
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
88
113
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { NoAuthSigner } from "@smithy/core";
|
|
3
|
+
import { IdentityProviderConfig } from "@smithy/types";
|
|
1
4
|
import { SSOOIDCClientConfig } from "./SSOOIDCClient";
|
|
2
5
|
export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
3
6
|
apiVersion: string;
|
|
@@ -11,6 +14,33 @@ export declare const getRuntimeConfig: (config: SSOOIDCClientConfig) => {
|
|
|
11
14
|
}
|
|
12
15
|
) => import("@smithy/types").EndpointV2;
|
|
13
16
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
17
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SSOOIDCHttpAuthSchemeProvider;
|
|
18
|
+
httpAuthSchemes:
|
|
19
|
+
| import("@smithy/types").HttpAuthScheme[]
|
|
20
|
+
| (
|
|
21
|
+
| {
|
|
22
|
+
schemeId: string;
|
|
23
|
+
identityProvider: (
|
|
24
|
+
ipc: IdentityProviderConfig
|
|
25
|
+
) =>
|
|
26
|
+
| import("@smithy/types").IdentityProvider<
|
|
27
|
+
import("@smithy/types").Identity
|
|
28
|
+
>
|
|
29
|
+
| undefined;
|
|
30
|
+
signer: AwsSdkSigV4Signer;
|
|
31
|
+
}
|
|
32
|
+
| {
|
|
33
|
+
schemeId: string;
|
|
34
|
+
identityProvider: (
|
|
35
|
+
ipc: IdentityProviderConfig
|
|
36
|
+
) =>
|
|
37
|
+
| import("@smithy/types").IdentityProvider<
|
|
38
|
+
import("@smithy/types").Identity
|
|
39
|
+
>
|
|
40
|
+
| (() => Promise<{}>);
|
|
41
|
+
signer: NoAuthSigner;
|
|
42
|
+
}
|
|
43
|
+
)[];
|
|
14
44
|
logger: import("@smithy/types").Logger;
|
|
15
45
|
serviceId: string;
|
|
16
46
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -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.513.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,20 +20,19 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
26
|
-
"@aws-sdk/middleware-logger": "3.
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
28
|
-
"@aws-sdk/middleware-
|
|
29
|
-
"@aws-sdk/
|
|
30
|
-
"@aws-sdk/
|
|
31
|
-
"@aws-sdk/
|
|
32
|
-
"@aws-sdk/util-
|
|
33
|
-
"@aws-sdk/util-user-agent-
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.502.0",
|
|
23
|
+
"@aws-sdk/client-sts": "3.513.0",
|
|
24
|
+
"@aws-sdk/core": "3.513.0",
|
|
25
|
+
"@aws-sdk/middleware-host-header": "3.511.0",
|
|
26
|
+
"@aws-sdk/middleware-logger": "3.511.0",
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.511.0",
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.511.0",
|
|
29
|
+
"@aws-sdk/region-config-resolver": "3.511.0",
|
|
30
|
+
"@aws-sdk/types": "3.511.0",
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.511.0",
|
|
32
|
+
"@aws-sdk/util-user-agent-browser": "3.511.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.511.0",
|
|
35
34
|
"@smithy/config-resolver": "^2.1.1",
|
|
36
|
-
"@smithy/core": "^1.3.
|
|
35
|
+
"@smithy/core": "^1.3.2",
|
|
37
36
|
"@smithy/fetch-http-handler": "^2.4.1",
|
|
38
37
|
"@smithy/hash-node": "^2.1.1",
|
|
39
38
|
"@smithy/invalid-dependency": "^2.1.1",
|
|
@@ -52,8 +51,9 @@
|
|
|
52
51
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
53
52
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
54
53
|
"@smithy/util-defaults-mode-browser": "^2.1.1",
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^2.2.0",
|
|
56
55
|
"@smithy/util-endpoints": "^1.1.1",
|
|
56
|
+
"@smithy/util-middleware": "^2.1.1",
|
|
57
57
|
"@smithy/util-retry": "^2.1.1",
|
|
58
58
|
"@smithy/util-utf8": "^2.1.1",
|
|
59
59
|
"tslib": "^2.5.0"
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
},
|
|
87
87
|
"license": "Apache-2.0",
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"@aws-sdk/credential-provider-node": "^3.
|
|
89
|
+
"@aws-sdk/credential-provider-node": "^3.513.0"
|
|
90
90
|
},
|
|
91
91
|
"browser": {
|
|
92
92
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
@@ -1334,34 +1334,54 @@ var STS = _STS;
|
|
|
1334
1334
|
// src/index.ts
|
|
1335
1335
|
var import_EndpointParameters9 = require("./endpoint/EndpointParameters");
|
|
1336
1336
|
var import_runtimeExtensions = require("././runtimeExtensions");
|
|
1337
|
-
|
|
1337
|
+
|
|
1338
1338
|
|
|
1339
1339
|
// src/defaultStsRoleAssumers.ts
|
|
1340
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1340
1341
|
var ASSUME_ROLE_DEFAULT_REGION = "us-east-1";
|
|
1341
|
-
var
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1342
|
+
var resolveRegion = /* @__PURE__ */ __name(async (_region, _parentRegion, credentialProviderLogger) => {
|
|
1343
|
+
var _a2, _b;
|
|
1344
|
+
const region = typeof _region === "function" ? await _region() : _region;
|
|
1345
|
+
const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
|
|
1346
|
+
if (!parentRegion || (0, import_util_endpoints.partition)(parentRegion).name === "aws") {
|
|
1347
|
+
(_a2 = credentialProviderLogger == null ? void 0 : credentialProviderLogger.debug) == null ? void 0 : _a2.call(
|
|
1348
|
+
credentialProviderLogger,
|
|
1349
|
+
"@aws-sdk/client-sts::resolveRegion",
|
|
1350
|
+
"accepting first of:",
|
|
1351
|
+
`${region} (provider)`,
|
|
1352
|
+
`${ASSUME_ROLE_DEFAULT_REGION} (STS default)`
|
|
1353
|
+
);
|
|
1354
|
+
return region ?? ASSUME_ROLE_DEFAULT_REGION;
|
|
1355
|
+
} else {
|
|
1356
|
+
(_b = credentialProviderLogger == null ? void 0 : credentialProviderLogger.debug) == null ? void 0 : _b.call(
|
|
1357
|
+
credentialProviderLogger,
|
|
1358
|
+
"@aws-sdk/client-sts::resolveRegion",
|
|
1359
|
+
"accepting first of:",
|
|
1360
|
+
`${region} (provider)`,
|
|
1361
|
+
`${parentRegion} (parent client)`,
|
|
1362
|
+
`${ASSUME_ROLE_DEFAULT_REGION} (STS default)`
|
|
1363
|
+
);
|
|
1364
|
+
return region ?? parentRegion ?? ASSUME_ROLE_DEFAULT_REGION;
|
|
1365
|
+
}
|
|
1366
|
+
}, "resolveRegion");
|
|
1353
1367
|
var getDefaultRoleAssumer = /* @__PURE__ */ __name((stsOptions, stsClientCtor) => {
|
|
1354
1368
|
let stsClient;
|
|
1355
1369
|
let closureSourceCreds;
|
|
1356
1370
|
return async (sourceCreds, params) => {
|
|
1371
|
+
var _a2;
|
|
1357
1372
|
closureSourceCreds = sourceCreds;
|
|
1358
1373
|
if (!stsClient) {
|
|
1359
|
-
const { logger, region, requestHandler } = stsOptions;
|
|
1374
|
+
const { logger, region, requestHandler, credentialProviderLogger } = stsOptions;
|
|
1375
|
+
const resolvedRegion = await resolveRegion(
|
|
1376
|
+
region,
|
|
1377
|
+
(_a2 = stsOptions == null ? void 0 : stsOptions.parentClientConfig) == null ? void 0 : _a2.region,
|
|
1378
|
+
credentialProviderLogger
|
|
1379
|
+
);
|
|
1360
1380
|
stsClient = new stsClientCtor({
|
|
1361
1381
|
logger,
|
|
1362
1382
|
// A hack to make sts client uses the credential in current closure.
|
|
1363
1383
|
credentialDefaultProvider: () => async () => closureSourceCreds,
|
|
1364
|
-
region:
|
|
1384
|
+
region: resolvedRegion,
|
|
1365
1385
|
...requestHandler ? { requestHandler } : {}
|
|
1366
1386
|
});
|
|
1367
1387
|
}
|
|
@@ -1382,11 +1402,17 @@ var getDefaultRoleAssumer = /* @__PURE__ */ __name((stsOptions, stsClientCtor) =
|
|
|
1382
1402
|
var getDefaultRoleAssumerWithWebIdentity = /* @__PURE__ */ __name((stsOptions, stsClientCtor) => {
|
|
1383
1403
|
let stsClient;
|
|
1384
1404
|
return async (params) => {
|
|
1405
|
+
var _a2;
|
|
1385
1406
|
if (!stsClient) {
|
|
1386
|
-
const { logger, region, requestHandler } = stsOptions;
|
|
1407
|
+
const { logger, region, requestHandler, credentialProviderLogger } = stsOptions;
|
|
1408
|
+
const resolvedRegion = await resolveRegion(
|
|
1409
|
+
region,
|
|
1410
|
+
(_a2 = stsOptions == null ? void 0 : stsOptions.parentClientConfig) == null ? void 0 : _a2.region,
|
|
1411
|
+
credentialProviderLogger
|
|
1412
|
+
);
|
|
1387
1413
|
stsClient = new stsClientCtor({
|
|
1388
1414
|
logger,
|
|
1389
|
-
region:
|
|
1415
|
+
region: resolvedRegion,
|
|
1390
1416
|
...requestHandler ? { requestHandler } : {}
|
|
1391
1417
|
});
|
|
1392
1418
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
+
import { partition } from "@aws-sdk/util-endpoints";
|
|
1
2
|
import { AssumeRoleCommand } from "./commands/AssumeRoleCommand";
|
|
2
3
|
import { AssumeRoleWithWebIdentityCommand, } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
3
4
|
const ASSUME_ROLE_DEFAULT_REGION = "us-east-1";
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const resolveRegion = async (_region, _parentRegion, credentialProviderLogger) => {
|
|
6
|
+
const region = typeof _region === "function" ? await _region() : _region;
|
|
7
|
+
const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
|
|
8
|
+
if (!parentRegion || partition(parentRegion).name === "aws") {
|
|
9
|
+
credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (provider)`, `${ASSUME_ROLE_DEFAULT_REGION} (STS default)`);
|
|
10
|
+
return region ?? ASSUME_ROLE_DEFAULT_REGION;
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (provider)`, `${parentRegion} (parent client)`, `${ASSUME_ROLE_DEFAULT_REGION} (STS default)`);
|
|
14
|
+
return region ?? parentRegion ?? ASSUME_ROLE_DEFAULT_REGION;
|
|
7
15
|
}
|
|
8
|
-
return async () => {
|
|
9
|
-
try {
|
|
10
|
-
return await region();
|
|
11
|
-
}
|
|
12
|
-
catch (e) {
|
|
13
|
-
return ASSUME_ROLE_DEFAULT_REGION;
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
16
|
};
|
|
17
17
|
export const getDefaultRoleAssumer = (stsOptions, stsClientCtor) => {
|
|
18
18
|
let stsClient;
|
|
@@ -20,11 +20,12 @@ export const getDefaultRoleAssumer = (stsOptions, stsClientCtor) => {
|
|
|
20
20
|
return async (sourceCreds, params) => {
|
|
21
21
|
closureSourceCreds = sourceCreds;
|
|
22
22
|
if (!stsClient) {
|
|
23
|
-
const { logger, region, requestHandler } = stsOptions;
|
|
23
|
+
const { logger, region, requestHandler, credentialProviderLogger } = stsOptions;
|
|
24
|
+
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger);
|
|
24
25
|
stsClient = new stsClientCtor({
|
|
25
26
|
logger,
|
|
26
27
|
credentialDefaultProvider: () => async () => closureSourceCreds,
|
|
27
|
-
region:
|
|
28
|
+
region: resolvedRegion,
|
|
28
29
|
...(requestHandler ? { requestHandler } : {}),
|
|
29
30
|
});
|
|
30
31
|
}
|
|
@@ -45,10 +46,11 @@ export const getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor)
|
|
|
45
46
|
let stsClient;
|
|
46
47
|
return async (params) => {
|
|
47
48
|
if (!stsClient) {
|
|
48
|
-
const { logger, region, requestHandler } = stsOptions;
|
|
49
|
+
const { logger, region, requestHandler, credentialProviderLogger } = stsOptions;
|
|
50
|
+
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger);
|
|
49
51
|
stsClient = new stsClientCtor({
|
|
50
52
|
logger,
|
|
51
|
-
region:
|
|
53
|
+
region: resolvedRegion,
|
|
52
54
|
...(requestHandler ? { requestHandler } : {}),
|
|
53
55
|
});
|
|
54
56
|
}
|