@aws-sdk/client-sagemaker-runtime 3.787.0 → 3.797.0
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/dist-cjs/auth/httpAuthSchemeProvider.js +3 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +3 -1
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +15 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/package.json +5 -5
|
@@ -40,6 +40,8 @@ const defaultSageMakerRuntimeHttpAuthSchemeProvider = (authParameters) => {
|
|
|
40
40
|
exports.defaultSageMakerRuntimeHttpAuthSchemeProvider = defaultSageMakerRuntimeHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
42
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
-
return Object.assign(config_0, {
|
|
43
|
+
return Object.assign(config_0, {
|
|
44
|
+
authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
45
|
+
});
|
|
44
46
|
};
|
|
45
47
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
@@ -35,5 +35,7 @@ export const defaultSageMakerRuntimeHttpAuthSchemeProvider = (authParameters) =>
|
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
37
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
-
return Object.assign(config_0, {
|
|
38
|
+
return Object.assign(config_0, {
|
|
39
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
40
|
+
});
|
|
39
41
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
|
-
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
|
|
2
|
+
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
3
|
import { SageMakerRuntimeClientResolvedConfig } from "../SageMakerRuntimeClient";
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
@@ -29,6 +29,13 @@ export declare const defaultSageMakerRuntimeHttpAuthSchemeProvider: SageMakerRun
|
|
|
29
29
|
* @internal
|
|
30
30
|
*/
|
|
31
31
|
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
34
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
35
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
32
39
|
/**
|
|
33
40
|
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
34
41
|
* @internal
|
|
@@ -44,6 +51,13 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
|
44
51
|
* @internal
|
|
45
52
|
*/
|
|
46
53
|
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
54
|
+
/**
|
|
55
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
56
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
57
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
47
61
|
/**
|
|
48
62
|
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
49
63
|
* @internal
|
|
@@ -39,6 +39,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
|
|
|
39
39
|
}) => import("@smithy/types").EndpointV2;
|
|
40
40
|
tls?: boolean | undefined;
|
|
41
41
|
serviceConfiguredEndpoint?: undefined;
|
|
42
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
|
|
42
43
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
43
44
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerRuntimeHttpAuthSchemeProvider;
|
|
44
45
|
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
@@ -39,6 +39,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
|
|
|
39
39
|
}) => import("@smithy/types").EndpointV2;
|
|
40
40
|
tls?: boolean | undefined;
|
|
41
41
|
serviceConfiguredEndpoint?: undefined;
|
|
42
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
|
|
42
43
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
43
44
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerRuntimeHttpAuthSchemeProvider;
|
|
44
45
|
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
@@ -38,6 +38,7 @@ export declare const getRuntimeConfig: (config: SageMakerRuntimeClientConfig) =>
|
|
|
38
38
|
}) => import("@smithy/types").EndpointV2;
|
|
39
39
|
tls?: boolean | undefined;
|
|
40
40
|
serviceConfiguredEndpoint?: undefined;
|
|
41
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
|
|
41
42
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
42
43
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerRuntimeHttpAuthSchemeProvider;
|
|
43
44
|
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
HttpAuthSchemeParameters,
|
|
10
10
|
HttpAuthSchemeParametersProvider,
|
|
11
11
|
HttpAuthSchemeProvider,
|
|
12
|
+
Provider,
|
|
12
13
|
} from "@smithy/types";
|
|
13
14
|
import { SageMakerRuntimeClientResolvedConfig } from "../SageMakerRuntimeClient";
|
|
14
15
|
export interface SageMakerRuntimeHttpAuthSchemeParameters
|
|
@@ -31,11 +32,13 @@ export interface SageMakerRuntimeHttpAuthSchemeProvider
|
|
|
31
32
|
extends HttpAuthSchemeProvider<SageMakerRuntimeHttpAuthSchemeParameters> {}
|
|
32
33
|
export declare const defaultSageMakerRuntimeHttpAuthSchemeProvider: SageMakerRuntimeHttpAuthSchemeProvider;
|
|
33
34
|
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
35
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
34
36
|
httpAuthSchemes?: HttpAuthScheme[];
|
|
35
37
|
httpAuthSchemeProvider?: SageMakerRuntimeHttpAuthSchemeProvider;
|
|
36
38
|
}
|
|
37
39
|
export interface HttpAuthSchemeResolvedConfig
|
|
38
40
|
extends AwsSdkSigV4AuthResolvedConfig {
|
|
41
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
39
42
|
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
40
43
|
readonly httpAuthSchemeProvider: SageMakerRuntimeHttpAuthSchemeProvider;
|
|
41
44
|
}
|
|
@@ -75,6 +75,10 @@ export declare const getRuntimeConfig: (
|
|
|
75
75
|
) => import("@smithy/types").EndpointV2;
|
|
76
76
|
tls?: boolean | undefined;
|
|
77
77
|
serviceConfiguredEndpoint?: undefined;
|
|
78
|
+
authSchemePreference?:
|
|
79
|
+
| string[]
|
|
80
|
+
| import("@smithy/types").Provider<string[]>
|
|
81
|
+
| undefined;
|
|
78
82
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
79
83
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerRuntimeHttpAuthSchemeProvider;
|
|
80
84
|
credentials?:
|
|
@@ -76,6 +76,10 @@ export declare const getRuntimeConfig: (
|
|
|
76
76
|
) => import("@smithy/types").EndpointV2;
|
|
77
77
|
tls?: boolean | undefined;
|
|
78
78
|
serviceConfiguredEndpoint?: undefined;
|
|
79
|
+
authSchemePreference?:
|
|
80
|
+
| string[]
|
|
81
|
+
| import("@smithy/types").Provider<string[]>
|
|
82
|
+
| undefined;
|
|
79
83
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
80
84
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerRuntimeHttpAuthSchemeProvider;
|
|
81
85
|
credentials?:
|
|
@@ -79,6 +79,10 @@ export declare const getRuntimeConfig: (
|
|
|
79
79
|
) => import("@smithy/types").EndpointV2;
|
|
80
80
|
tls?: boolean | undefined;
|
|
81
81
|
serviceConfiguredEndpoint?: undefined;
|
|
82
|
+
authSchemePreference?:
|
|
83
|
+
| string[]
|
|
84
|
+
| import("@smithy/types").Provider<string[]>
|
|
85
|
+
| undefined;
|
|
82
86
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
83
87
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerRuntimeHttpAuthSchemeProvider;
|
|
84
88
|
credentials?:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sagemaker-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sagemaker Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.797.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-sagemaker-runtime",
|
|
@@ -20,17 +20,17 @@
|
|
|
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.796.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.797.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.775.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.775.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.775.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.796.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.775.0",
|
|
30
30
|
"@aws-sdk/types": "3.775.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.787.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.775.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.796.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.1.0",
|
|
35
35
|
"@smithy/core": "^3.2.0",
|
|
36
36
|
"@smithy/eventstream-serde-browser": "^4.0.2",
|