@aws-sdk/client-sagemaker 3.391.0 → 3.395.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.
@@ -14,6 +14,7 @@ const smithy_client_1 = require("@smithy/smithy-client");
14
14
  Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
15
15
  const EndpointParameters_1 = require("./endpoint/EndpointParameters");
16
16
  const runtimeConfig_1 = require("./runtimeConfig");
17
+ const runtimeExtensions_1 = require("./runtimeExtensions");
17
18
  class SageMakerClient extends smithy_client_1.Client {
18
19
  constructor(...[configuration]) {
19
20
  const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
@@ -24,8 +25,9 @@ class SageMakerClient extends smithy_client_1.Client {
24
25
  const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
25
26
  const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5);
26
27
  const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6);
27
- super(_config_7);
28
- this.config = _config_7;
28
+ const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
29
+ super(_config_8);
30
+ this.config = _config_8;
29
31
  this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
30
32
  this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
31
33
  this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,6 +12,7 @@ const getRuntimeConfig = (config) => ({
12
12
  base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
13
13
  disableHostPrefix: config?.disableHostPrefix ?? false,
14
14
  endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
15
+ extensions: config?.extensions ?? [],
15
16
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
16
17
  serviceId: config?.serviceId ?? "SageMaker",
17
18
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveRuntimeExtensions = void 0;
4
+ const types_1 = require("@smithy/types");
5
+ const asPartial = (t) => t;
6
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
+ const clientConfiguration = {
8
+ ...asPartial((0, types_1.getDefaultClientConfiguration)(runtimeConfig)),
9
+ };
10
+ extensions.forEach((extension) => extension.configureClient(clientConfiguration));
11
+ return {
12
+ ...runtimeConfig,
13
+ ...(0, types_1.resolveDefaultRuntimeConfig)(clientConfiguration),
14
+ };
15
+ };
16
+ exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
@@ -10,6 +10,7 @@ import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
10
10
  import { Client as __Client, } from "@smithy/smithy-client";
11
11
  import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
12
12
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
13
+ import { resolveRuntimeExtensions } from "./runtimeExtensions";
13
14
  export { __Client };
14
15
  export class SageMakerClient extends __Client {
15
16
  constructor(...[configuration]) {
@@ -21,8 +22,9 @@ export class SageMakerClient extends __Client {
21
22
  const _config_5 = resolveHostHeaderConfig(_config_4);
22
23
  const _config_6 = resolveAwsAuthConfig(_config_5);
23
24
  const _config_7 = resolveUserAgentConfig(_config_6);
24
- super(_config_7);
25
- this.config = _config_7;
25
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
26
+ super(_config_8);
27
+ this.config = _config_8;
26
28
  this.middlewareStack.use(getRetryPlugin(this.config));
27
29
  this.middlewareStack.use(getContentLengthPlugin(this.config));
28
30
  this.middlewareStack.use(getHostHeaderPlugin(this.config));
@@ -0,0 +1 @@
1
+ export {};
@@ -9,6 +9,7 @@ export const getRuntimeConfig = (config) => ({
9
9
  base64Encoder: config?.base64Encoder ?? toBase64,
10
10
  disableHostPrefix: config?.disableHostPrefix ?? false,
11
11
  endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
12
+ extensions: config?.extensions ?? [],
12
13
  logger: config?.logger ?? new NoOpLogger(),
13
14
  serviceId: config?.serviceId ?? "SageMaker",
14
15
  urlParser: config?.urlParser ?? parseUrl,
@@ -0,0 +1,12 @@
1
+ import { getDefaultClientConfiguration, resolveDefaultRuntimeConfig } from "@smithy/types";
2
+ const asPartial = (t) => t;
3
+ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
4
+ const clientConfiguration = {
5
+ ...asPartial(getDefaultClientConfiguration(runtimeConfig)),
6
+ };
7
+ extensions.forEach((extension) => extension.configureClient(clientConfiguration));
8
+ return {
9
+ ...runtimeConfig,
10
+ ...resolveDefaultRuntimeConfig(clientConfiguration),
11
+ };
12
+ };
@@ -313,6 +313,7 @@ import { UpdateUserProfileCommandInput, UpdateUserProfileCommandOutput } from ".
313
313
  import { UpdateWorkforceCommandInput, UpdateWorkforceCommandOutput } from "./commands/UpdateWorkforceCommand";
314
314
  import { UpdateWorkteamCommandInput, UpdateWorkteamCommandOutput } from "./commands/UpdateWorkteamCommand";
315
315
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
316
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
316
317
  export { __Client };
317
318
  /**
318
319
  * @public
@@ -420,6 +421,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
420
421
  * Optional logger for logging debug/info/warn/error.
421
422
  */
422
423
  logger?: __Logger;
424
+ /**
425
+ * Optional extensions
426
+ */
427
+ extensions?: RuntimeExtension[];
423
428
  /**
424
429
  * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
425
430
  */
@@ -439,7 +444,7 @@ export interface SageMakerClientConfig extends SageMakerClientConfigType {
439
444
  /**
440
445
  * @public
441
446
  */
442
- export type SageMakerClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
447
+ export type SageMakerClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
443
448
  /**
444
449
  * @public
445
450
  *
@@ -0,0 +1,6 @@
1
+ import { DefaultClientConfiguration } from "@smithy/types";
2
+ /**
3
+ * @internal
4
+ */
5
+ export interface SageMakerClientConfiguration extends DefaultClientConfiguration {
6
+ }
@@ -27,9 +27,6 @@ export interface CreateEndpointCommandOutput extends CreateEndpointOutput, __Met
27
27
  * uses the endpoint to provision resources and deploy models. You create the endpoint
28
28
  * configuration with the <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateEndpointConfig.html">CreateEndpointConfig</a> API. </p>
29
29
  * <p> Use this API to deploy models using SageMaker hosting services. </p>
30
- * <p>For an example that calls this method when deploying a model to SageMaker hosting services,
31
- * see the <a href="https://github.com/aws/amazon-sagemaker-examples/blob/master/sagemaker-fundamentals/create-endpoint/create_endpoint.ipynb">Create Endpoint example notebook.</a>
32
- * </p>
33
30
  * <note>
34
31
  * <p> You must not delete an <code>EndpointConfig</code> that is in use by an endpoint
35
32
  * that is live or while the <code>UpdateEndpoint</code> or <code>CreateEndpoint</code>
@@ -96,6 +96,9 @@ export interface CreateInferenceRecommendationsJobCommandOutput extends CreateIn
96
96
  * ],
97
97
  * DataInputConfig: "STRING_VALUE",
98
98
  * SupportedEndpointType: "RealTime" || "Serverless",
99
+ * SupportedResponseMIMETypes: [ // RecommendationJobSupportedResponseMIMETypes
100
+ * "STRING_VALUE",
101
+ * ],
99
102
  * },
100
103
  * Endpoints: [ // Endpoints
101
104
  * { // EndpointInfo
@@ -108,6 +108,9 @@ export interface DescribeInferenceRecommendationsJobCommandOutput extends Descri
108
108
  * // ],
109
109
  * // DataInputConfig: "STRING_VALUE",
110
110
  * // SupportedEndpointType: "RealTime" || "Serverless",
111
+ * // SupportedResponseMIMETypes: [ // RecommendationJobSupportedResponseMIMETypes
112
+ * // "STRING_VALUE",
113
+ * // ],
111
114
  * // },
112
115
  * // Endpoints: [ // Endpoints
113
116
  * // { // EndpointInfo
@@ -3965,6 +3965,11 @@ export interface RecommendationJobContainerConfig {
3965
3965
  * By specifying a value for this field, you can receive a longer list of benchmarks for the desired endpoint type.</p>
3966
3966
  */
3967
3967
  SupportedEndpointType?: RecommendationJobSupportedEndpointType | string;
3968
+ /**
3969
+ * @public
3970
+ * <p>The supported MIME types for the output data.</p>
3971
+ */
3972
+ SupportedResponseMIMETypes?: string[];
3968
3973
  }
3969
3974
  /**
3970
3975
  * @public
@@ -7366,6 +7371,10 @@ export interface CreateModelPackageInput {
7366
7371
  * @public
7367
7372
  * <p>A list of key value pairs associated with the model. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services
7368
7373
  * resources</a> in the <i>Amazon Web Services General Reference Guide</i>.</p>
7374
+ * <p>If you supply <code>ModelPackageGroupName</code>, your model package belongs to the model group
7375
+ * you specify and uses the tags associated with the model group. In this case, you cannot
7376
+ * supply a <code>tag</code> argument.
7377
+ * </p>
7369
7378
  */
7370
7379
  Tags?: Tag[];
7371
7380
  /**
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: SageMakerClientConfig) => {
26
26
  disableHostPrefix: boolean;
27
27
  serviceId: string;
28
28
  logger: import("@smithy/types").Logger;
29
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
29
30
  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;
30
31
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
32
  logger?: import("@smithy/types").Logger | undefined;
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: SageMakerClientConfig) => {
26
26
  disableHostPrefix: boolean;
27
27
  serviceId: string;
28
28
  logger: import("@smithy/types").Logger;
29
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
29
30
  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;
30
31
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
32
  logger?: import("@smithy/types").Logger | undefined;
@@ -24,6 +24,7 @@ export declare const getRuntimeConfig: (config: SageMakerClientConfig) => {
24
24
  maxAttempts: number | import("@smithy/types").Provider<number>;
25
25
  retryMode: string | import("@smithy/types").Provider<string>;
26
26
  logger: import("@smithy/types").Logger;
27
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
27
28
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
28
29
  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;
29
30
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
@@ -10,6 +10,7 @@ export declare const getRuntimeConfig: (config: SageMakerClientConfig) => {
10
10
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
11
11
  logger?: import("@smithy/types").Logger | undefined;
12
12
  }) => import("@smithy/types").EndpointV2;
13
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
13
14
  logger: import("@smithy/types").Logger;
14
15
  serviceId: string;
15
16
  urlParser: import("@smithy/types").UrlParser;
@@ -0,0 +1,17 @@
1
+ import { SageMakerClientConfiguration } from "./clientConfiguration";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface RuntimeExtension {
6
+ configureClient(clientConfiguration: SageMakerClientConfiguration): void;
7
+ }
8
+ /**
9
+ * @public
10
+ */
11
+ export interface RuntimeExtensionsConfig {
12
+ extensions: RuntimeExtension[];
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
@@ -1266,6 +1266,7 @@ import {
1266
1266
  ClientResolvedEndpointParameters,
1267
1267
  EndpointParameters,
1268
1268
  } from "./endpoint/EndpointParameters";
1269
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
1269
1270
  export { __Client };
1270
1271
  export type ServiceInputTypes =
1271
1272
  | AddAssociationCommandInput
@@ -1899,6 +1900,7 @@ export interface ClientDefaults
1899
1900
  maxAttempts?: number | __Provider<number>;
1900
1901
  retryMode?: string | __Provider<string>;
1901
1902
  logger?: __Logger;
1903
+ extensions?: RuntimeExtension[];
1902
1904
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
1903
1905
  }
1904
1906
  export type SageMakerClientConfigType = Partial<
@@ -1916,6 +1918,7 @@ export interface SageMakerClientConfig extends SageMakerClientConfigType {}
1916
1918
  export type SageMakerClientResolvedConfigType =
1917
1919
  __SmithyResolvedConfiguration<__HttpHandlerOptions> &
1918
1920
  Required<ClientDefaults> &
1921
+ RuntimeExtensionsConfig &
1919
1922
  RegionResolvedConfig &
1920
1923
  EndpointResolvedConfig<EndpointParameters> &
1921
1924
  RetryResolvedConfig &
@@ -0,0 +1,3 @@
1
+ import { DefaultClientConfiguration } from "@smithy/types";
2
+ export interface SageMakerClientConfiguration
3
+ extends DefaultClientConfiguration {}
@@ -751,6 +751,7 @@ export interface RecommendationJobContainerConfig {
751
751
  SupportedInstanceTypes?: string[];
752
752
  DataInputConfig?: string;
753
753
  SupportedEndpointType?: RecommendationJobSupportedEndpointType | string;
754
+ SupportedResponseMIMETypes?: string[];
754
755
  }
755
756
  export interface EnvironmentParameterRanges {
756
757
  CategoricalParameterRanges?: CategoricalParameter[];
@@ -36,6 +36,7 @@ export declare const getRuntimeConfig: (config: SageMakerClientConfig) => {
36
36
  disableHostPrefix: boolean;
37
37
  serviceId: string;
38
38
  logger: import("@smithy/types").Logger;
39
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
39
40
  endpoint?:
40
41
  | ((
41
42
  | string
@@ -36,6 +36,7 @@ export declare const getRuntimeConfig: (config: SageMakerClientConfig) => {
36
36
  disableHostPrefix: boolean;
37
37
  serviceId: string;
38
38
  logger: import("@smithy/types").Logger;
39
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
39
40
  endpoint?:
40
41
  | ((
41
42
  | string
@@ -32,6 +32,7 @@ export declare const getRuntimeConfig: (config: SageMakerClientConfig) => {
32
32
  maxAttempts: number | import("@smithy/types").Provider<number>;
33
33
  retryMode: string | import("@smithy/types").Provider<string>;
34
34
  logger: import("@smithy/types").Logger;
35
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
35
36
  defaultsMode:
36
37
  | import("@smithy/smithy-client").DefaultsMode
37
38
  | import("@smithy/types").Provider<
@@ -10,6 +10,7 @@ export declare const getRuntimeConfig: (config: SageMakerClientConfig) => {
10
10
  logger?: import("@smithy/types").Logger | undefined;
11
11
  }
12
12
  ) => import("@smithy/types").EndpointV2;
13
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
13
14
  logger: import("@smithy/types").Logger;
14
15
  serviceId: string;
15
16
  urlParser: import("@smithy/types").UrlParser;
@@ -0,0 +1,11 @@
1
+ import { SageMakerClientConfiguration } from "./clientConfiguration";
2
+ export interface RuntimeExtension {
3
+ configureClient(clientConfiguration: SageMakerClientConfiguration): void;
4
+ }
5
+ export interface RuntimeExtensionsConfig {
6
+ extensions: RuntimeExtension[];
7
+ }
8
+ export declare const resolveRuntimeExtensions: (
9
+ runtimeConfig: any,
10
+ extensions: RuntimeExtension[]
11
+ ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker",
3
3
  "description": "AWS SDK for JavaScript Sagemaker Client for Node.js, Browser and React Native",
4
- "version": "3.391.0",
4
+ "version": "3.395.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,8 +21,8 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.391.0",
25
- "@aws-sdk/credential-provider-node": "3.391.0",
24
+ "@aws-sdk/client-sts": "3.395.0",
25
+ "@aws-sdk/credential-provider-node": "3.395.0",
26
26
  "@aws-sdk/middleware-host-header": "3.391.0",
27
27
  "@aws-sdk/middleware-logger": "3.391.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.391.0",