@aws-sdk/client-sagemaker-metrics 3.952.0 → 3.954.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/index.js CHANGED
@@ -110,12 +110,12 @@ class SageMakerMetricsClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- let SageMakerMetricsServiceException$1 = class SageMakerMetricsServiceException extends smithyClient.ServiceException {
113
+ class SageMakerMetricsServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, SageMakerMetricsServiceException.prototype);
117
117
  }
118
- };
118
+ }
119
119
 
120
120
  const _BGM = "BatchGetMetrics";
121
121
  const _BGMR = "BatchGetMetricsRequest";
@@ -155,12 +155,19 @@ const _XAV = "XAxisValues";
155
155
  const _h = "http";
156
156
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakermetrics";
157
157
  const n0 = "com.amazonaws.sagemakermetrics";
158
- var BatchGetMetricsRequest = [3, n0, _BGMR, 0, [_MQ], [() => MetricQueryList]];
159
- var BatchGetMetricsResponse = [3, n0, _BGMRa, 0, [_MQR], [() => MetricQueryResultList]];
160
- var BatchPutMetricsError = [3, n0, _BPME, 0, [_C, _MI], [0, 1]];
161
- var BatchPutMetricsRequest = [3, n0, _BPMR, 0, [_TCN, _MD], [0, () => RawMetricDataList]];
162
- var BatchPutMetricsResponse = [3, n0, _BPMRa, 0, [_E], [() => BatchPutMetricsErrorList]];
163
- var MetricQuery = [
158
+ var BatchGetMetricsRequest$ = [3, n0, _BGMR, 0, [_MQ], [() => MetricQueryList]];
159
+ var BatchGetMetricsResponse$ = [3, n0, _BGMRa, 0, [_MQR], [() => MetricQueryResultList]];
160
+ var BatchPutMetricsError$ = [3, n0, _BPME, 0, [_C, _MI], [0, 1]];
161
+ var BatchPutMetricsRequest$ = [
162
+ 3,
163
+ n0,
164
+ _BPMR,
165
+ 0,
166
+ [_TCN, _MD],
167
+ [0, () => RawMetricDataList],
168
+ ];
169
+ var BatchPutMetricsResponse$ = [3, n0, _BPMRa, 0, [_E], [() => BatchPutMetricsErrorList]];
170
+ var MetricQuery$ = [
164
171
  3,
165
172
  n0,
166
173
  _MQe,
@@ -168,9 +175,9 @@ var MetricQuery = [
168
175
  [_MN, _RA, _MS, _P, _XAT, _S, _En],
169
176
  [0, 0, 0, 0, 0, 1, 1],
170
177
  ];
171
- var MetricQueryResult = [3, n0, _MQRe, 0, [_St, _M, _XAV, _MV], [0, 0, 64 | 1, 64 | 1]];
172
- var RawMetricData = [3, n0, _RMD, 0, [_MN, _T, _Ste, _V], [0, 4, 1, 1]];
173
- var SageMakerMetricsServiceException = [
178
+ var MetricQueryResult$ = [3, n0, _MQRe, 0, [_St, _M, _XAV, _MV], [0, 0, 64 | 1, 64 | 1]];
179
+ var RawMetricData$ = [3, n0, _RMD, 0, [_MN, _T, _Ste, _V], [0, 4, 1, 1]];
180
+ var SageMakerMetricsServiceException$ = [
174
181
  -3,
175
182
  _s,
176
183
  "SageMakerMetricsServiceException",
@@ -178,26 +185,26 @@ var SageMakerMetricsServiceException = [
178
185
  [],
179
186
  [],
180
187
  ];
181
- schema.TypeRegistry.for(_s).registerError(SageMakerMetricsServiceException, SageMakerMetricsServiceException$1);
182
- var BatchPutMetricsErrorList = [1, n0, _BPMEL, 0, () => BatchPutMetricsError];
183
- var MetricQueryList = [1, n0, _MQL, 0, () => MetricQuery];
184
- var MetricQueryResultList = [1, n0, _MQRL, 0, () => MetricQueryResult];
185
- var RawMetricDataList = [1, n0, _RMDL, 0, () => RawMetricData];
186
- var BatchGetMetrics = [
188
+ schema.TypeRegistry.for(_s).registerError(SageMakerMetricsServiceException$, SageMakerMetricsServiceException);
189
+ var BatchPutMetricsErrorList = [1, n0, _BPMEL, 0, () => BatchPutMetricsError$];
190
+ var MetricQueryList = [1, n0, _MQL, 0, () => MetricQuery$];
191
+ var MetricQueryResultList = [1, n0, _MQRL, 0, () => MetricQueryResult$];
192
+ var RawMetricDataList = [1, n0, _RMDL, 0, () => RawMetricData$];
193
+ var BatchGetMetrics$ = [
187
194
  9,
188
195
  n0,
189
196
  _BGM,
190
197
  { [_h]: ["POST", "/BatchGetMetrics", 200] },
191
- () => BatchGetMetricsRequest,
192
- () => BatchGetMetricsResponse,
198
+ () => BatchGetMetricsRequest$,
199
+ () => BatchGetMetricsResponse$,
193
200
  ];
194
- var BatchPutMetrics = [
201
+ var BatchPutMetrics$ = [
195
202
  9,
196
203
  n0,
197
204
  _BPM,
198
205
  { [_h]: ["PUT", "/BatchPutMetrics", 200] },
199
- () => BatchPutMetricsRequest,
200
- () => BatchPutMetricsResponse,
206
+ () => BatchPutMetricsRequest$,
207
+ () => BatchPutMetricsResponse$,
201
208
  ];
202
209
 
203
210
  class BatchGetMetricsCommand extends smithyClient.Command
@@ -208,7 +215,7 @@ class BatchGetMetricsCommand extends smithyClient.Command
208
215
  })
209
216
  .s("SageMakerMetricsService", "BatchGetMetrics", {})
210
217
  .n("SageMakerMetricsClient", "BatchGetMetricsCommand")
211
- .sc(BatchGetMetrics)
218
+ .sc(BatchGetMetrics$)
212
219
  .build() {
213
220
  }
214
221
 
@@ -220,7 +227,7 @@ class BatchPutMetricsCommand extends smithyClient.Command
220
227
  })
221
228
  .s("SageMakerMetricsService", "BatchPutMetrics", {})
222
229
  .n("SageMakerMetricsClient", "BatchPutMetricsCommand")
223
- .sc(BatchPutMetrics)
230
+ .sc(BatchPutMetrics$)
224
231
  .build() {
225
232
  }
226
233
 
@@ -271,13 +278,24 @@ Object.defineProperty(exports, "__Client", {
271
278
  enumerable: true,
272
279
  get: function () { return smithyClient.Client; }
273
280
  });
281
+ exports.BatchGetMetrics$ = BatchGetMetrics$;
274
282
  exports.BatchGetMetricsCommand = BatchGetMetricsCommand;
283
+ exports.BatchGetMetricsRequest$ = BatchGetMetricsRequest$;
284
+ exports.BatchGetMetricsResponse$ = BatchGetMetricsResponse$;
285
+ exports.BatchPutMetrics$ = BatchPutMetrics$;
275
286
  exports.BatchPutMetricsCommand = BatchPutMetricsCommand;
287
+ exports.BatchPutMetricsError$ = BatchPutMetricsError$;
288
+ exports.BatchPutMetricsRequest$ = BatchPutMetricsRequest$;
289
+ exports.BatchPutMetricsResponse$ = BatchPutMetricsResponse$;
290
+ exports.MetricQuery$ = MetricQuery$;
291
+ exports.MetricQueryResult$ = MetricQueryResult$;
276
292
  exports.MetricQueryResultStatus = MetricQueryResultStatus;
277
293
  exports.MetricStatistic = MetricStatistic;
278
294
  exports.Period = Period;
279
295
  exports.PutMetricsErrorCode = PutMetricsErrorCode;
296
+ exports.RawMetricData$ = RawMetricData$;
280
297
  exports.SageMakerMetrics = SageMakerMetrics;
281
298
  exports.SageMakerMetricsClient = SageMakerMetricsClient;
282
- exports.SageMakerMetricsServiceException = SageMakerMetricsServiceException$1;
299
+ exports.SageMakerMetricsServiceException = SageMakerMetricsServiceException;
300
+ exports.SageMakerMetricsServiceException$ = SageMakerMetricsServiceException$;
283
301
  exports.XAxisType = XAxisType;
@@ -26,7 +26,12 @@ const getRuntimeConfig = (config) => {
26
26
  },
27
27
  ],
28
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
- protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.sagemakermetrics" }),
29
+ protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
+ protocolSettings: config?.protocolSettings ?? {
31
+ defaultNamespace: "com.amazonaws.sagemakermetrics",
32
+ version: "2022-09-30",
33
+ serviceTarget: "SageMakerMetricsService",
34
+ },
30
35
  serviceId: config?.serviceId ?? "SageMaker Metrics",
31
36
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
32
37
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { BatchGetMetrics } from "../schemas/schemas_0";
4
+ import { BatchGetMetrics$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class BatchGetMetricsCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class BatchGetMetricsCommand extends $Command
11
11
  })
12
12
  .s("SageMakerMetricsService", "BatchGetMetrics", {})
13
13
  .n("SageMakerMetricsClient", "BatchGetMetricsCommand")
14
- .sc(BatchGetMetrics)
14
+ .sc(BatchGetMetrics$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { BatchPutMetrics } from "../schemas/schemas_0";
4
+ import { BatchPutMetrics$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class BatchPutMetricsCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class BatchPutMetricsCommand extends $Command
11
11
  })
12
12
  .s("SageMakerMetricsService", "BatchPutMetrics", {})
13
13
  .n("SageMakerMetricsClient", "BatchPutMetricsCommand")
14
- .sc(BatchPutMetrics)
14
+ .sc(BatchPutMetrics$)
15
15
  .build() {
16
16
  }
package/dist-es/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./SageMakerMetricsClient";
2
2
  export * from "./SageMakerMetrics";
3
3
  export * from "./commands";
4
+ export * from "./schemas/schemas_0";
4
5
  export * from "./models/enums";
5
6
  export { SageMakerMetricsServiceException } from "./models/SageMakerMetricsServiceException";
@@ -23,7 +23,12 @@ export const getRuntimeConfig = (config) => {
23
23
  },
24
24
  ],
25
25
  logger: config?.logger ?? new NoOpLogger(),
26
- protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.sagemakermetrics" }),
26
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
27
+ protocolSettings: config?.protocolSettings ?? {
28
+ defaultNamespace: "com.amazonaws.sagemakermetrics",
29
+ version: "2022-09-30",
30
+ serviceTarget: "SageMakerMetricsService",
31
+ },
27
32
  serviceId: config?.serviceId ?? "SageMaker Metrics",
28
33
  urlParser: config?.urlParser ?? parseUrl,
29
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
@@ -37,13 +37,20 @@ const _h = "http";
37
37
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakermetrics";
38
38
  const n0 = "com.amazonaws.sagemakermetrics";
39
39
  import { TypeRegistry } from "@smithy/core/schema";
40
- import { SageMakerMetricsServiceException as __SageMakerMetricsServiceException } from "../models/SageMakerMetricsServiceException";
41
- export var BatchGetMetricsRequest = [3, n0, _BGMR, 0, [_MQ], [() => MetricQueryList]];
42
- export var BatchGetMetricsResponse = [3, n0, _BGMRa, 0, [_MQR], [() => MetricQueryResultList]];
43
- export var BatchPutMetricsError = [3, n0, _BPME, 0, [_C, _MI], [0, 1]];
44
- export var BatchPutMetricsRequest = [3, n0, _BPMR, 0, [_TCN, _MD], [0, () => RawMetricDataList]];
45
- export var BatchPutMetricsResponse = [3, n0, _BPMRa, 0, [_E], [() => BatchPutMetricsErrorList]];
46
- export var MetricQuery = [
40
+ import { SageMakerMetricsServiceException } from "../models/SageMakerMetricsServiceException";
41
+ export var BatchGetMetricsRequest$ = [3, n0, _BGMR, 0, [_MQ], [() => MetricQueryList]];
42
+ export var BatchGetMetricsResponse$ = [3, n0, _BGMRa, 0, [_MQR], [() => MetricQueryResultList]];
43
+ export var BatchPutMetricsError$ = [3, n0, _BPME, 0, [_C, _MI], [0, 1]];
44
+ export var BatchPutMetricsRequest$ = [
45
+ 3,
46
+ n0,
47
+ _BPMR,
48
+ 0,
49
+ [_TCN, _MD],
50
+ [0, () => RawMetricDataList],
51
+ ];
52
+ export var BatchPutMetricsResponse$ = [3, n0, _BPMRa, 0, [_E], [() => BatchPutMetricsErrorList]];
53
+ export var MetricQuery$ = [
47
54
  3,
48
55
  n0,
49
56
  _MQe,
@@ -51,9 +58,9 @@ export var MetricQuery = [
51
58
  [_MN, _RA, _MS, _P, _XAT, _S, _En],
52
59
  [0, 0, 0, 0, 0, 1, 1],
53
60
  ];
54
- export var MetricQueryResult = [3, n0, _MQRe, 0, [_St, _M, _XAV, _MV], [0, 0, 64 | 1, 64 | 1]];
55
- export var RawMetricData = [3, n0, _RMD, 0, [_MN, _T, _Ste, _V], [0, 4, 1, 1]];
56
- export var SageMakerMetricsServiceException = [
61
+ export var MetricQueryResult$ = [3, n0, _MQRe, 0, [_St, _M, _XAV, _MV], [0, 0, 64 | 1, 64 | 1]];
62
+ export var RawMetricData$ = [3, n0, _RMD, 0, [_MN, _T, _Ste, _V], [0, 4, 1, 1]];
63
+ export var SageMakerMetricsServiceException$ = [
57
64
  -3,
58
65
  _s,
59
66
  "SageMakerMetricsServiceException",
@@ -61,26 +68,26 @@ export var SageMakerMetricsServiceException = [
61
68
  [],
62
69
  [],
63
70
  ];
64
- TypeRegistry.for(_s).registerError(SageMakerMetricsServiceException, __SageMakerMetricsServiceException);
65
- export var BatchPutMetricsErrorList = [1, n0, _BPMEL, 0, () => BatchPutMetricsError];
66
- export var MetricQueryList = [1, n0, _MQL, 0, () => MetricQuery];
67
- export var MetricQueryResultList = [1, n0, _MQRL, 0, () => MetricQueryResult];
68
- export var MetricValues = 64 | 1;
69
- export var RawMetricDataList = [1, n0, _RMDL, 0, () => RawMetricData];
70
- export var XAxisValues = 64 | 1;
71
- export var BatchGetMetrics = [
71
+ TypeRegistry.for(_s).registerError(SageMakerMetricsServiceException$, SageMakerMetricsServiceException);
72
+ var BatchPutMetricsErrorList = [1, n0, _BPMEL, 0, () => BatchPutMetricsError$];
73
+ var MetricQueryList = [1, n0, _MQL, 0, () => MetricQuery$];
74
+ var MetricQueryResultList = [1, n0, _MQRL, 0, () => MetricQueryResult$];
75
+ var MetricValues = 64 | 1;
76
+ var RawMetricDataList = [1, n0, _RMDL, 0, () => RawMetricData$];
77
+ var XAxisValues = 64 | 1;
78
+ export var BatchGetMetrics$ = [
72
79
  9,
73
80
  n0,
74
81
  _BGM,
75
82
  { [_h]: ["POST", "/BatchGetMetrics", 200] },
76
- () => BatchGetMetricsRequest,
77
- () => BatchGetMetricsResponse,
83
+ () => BatchGetMetricsRequest$,
84
+ () => BatchGetMetricsResponse$,
78
85
  ];
79
- export var BatchPutMetrics = [
86
+ export var BatchPutMetrics$ = [
80
87
  9,
81
88
  n0,
82
89
  _BPM,
83
90
  { [_h]: ["PUT", "/BatchPutMetrics", 200] },
84
- () => BatchPutMetricsRequest,
85
- () => BatchPutMetricsResponse,
91
+ () => BatchPutMetricsRequest$,
92
+ () => BatchPutMetricsResponse$,
86
93
  ];
@@ -5,7 +5,7 @@ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/m
5
5
  import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
6
6
  import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
7
  import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
8
- import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type ClientProtocol, type Decoder as __Decoder, type Encoder as __Encoder, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type HttpRequest, type HttpResponse, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
8
+ import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type Decoder as __Decoder, type Encoder as __Encoder, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { BatchGetMetricsCommandInput, BatchGetMetricsCommandOutput } from "./commands/BatchGetMetricsCommand";
11
11
  import { BatchPutMetricsCommandInput, BatchPutMetricsCommandOutput } from "./commands/BatchPutMetricsCommand";
@@ -143,15 +143,6 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
143
143
  * Optional extensions
144
144
  */
145
145
  extensions?: RuntimeExtension[];
146
- /**
147
- * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
148
- * may be overridden. A default will always be set by the client.
149
- * Available options depend on the service's supported protocols and will not be validated by
150
- * the client.
151
- * @alpha
152
- *
153
- */
154
- protocol?: ClientProtocol<HttpRequest, HttpResponse>;
155
146
  /**
156
147
  * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
157
148
  */
@@ -17,6 +17,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
17
17
  export type { RuntimeExtension } from "./runtimeExtensions";
18
18
  export type { SageMakerMetricsExtensionConfiguration } from "./extensionConfiguration";
19
19
  export * from "./commands";
20
+ export * from "./schemas/schemas_0";
20
21
  export * from "./models/enums";
21
22
  export type * from "./models/models_0";
22
23
  export { SageMakerMetricsServiceException } from "./models/SageMakerMetricsServiceException";
@@ -17,8 +17,13 @@ export declare const getRuntimeConfig: (config: SageMakerMetricsClientConfig) =>
17
17
  streamCollector: import("@smithy/types").StreamCollector;
18
18
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
19
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
20
- apiVersion: string;
21
20
  cacheMiddleware?: boolean | undefined;
21
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
22
+ protocolSettings: {
23
+ defaultNamespace?: string;
24
+ [setting: string]: unknown;
25
+ };
26
+ apiVersion: string;
22
27
  urlParser: import("@smithy/types").UrlParser;
23
28
  base64Decoder: import("@smithy/types").Decoder;
24
29
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -29,7 +34,6 @@ export declare const getRuntimeConfig: (config: SageMakerMetricsClientConfig) =>
29
34
  profile?: string;
30
35
  logger: import("@smithy/types").Logger;
31
36
  extensions: import("./runtimeExtensions").RuntimeExtension[];
32
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
33
37
  customUserAgent?: string | import("@smithy/types").UserAgent;
34
38
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
35
39
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
@@ -19,8 +19,13 @@ export declare const getRuntimeConfig: (config: SageMakerMetricsClientConfig) =>
19
19
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
22
- apiVersion: string;
23
22
  cacheMiddleware?: boolean | undefined;
23
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
24
+ protocolSettings: {
25
+ defaultNamespace?: string;
26
+ [setting: string]: unknown;
27
+ };
28
+ apiVersion: string;
24
29
  urlParser: import("@smithy/types").UrlParser;
25
30
  base64Decoder: import("@smithy/types").Decoder;
26
31
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -31,7 +36,6 @@ export declare const getRuntimeConfig: (config: SageMakerMetricsClientConfig) =>
31
36
  profile?: string;
32
37
  logger: import("@smithy/types").Logger;
33
38
  extensions: import("./runtimeExtensions").RuntimeExtension[];
34
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
35
39
  customUserAgent?: string | import("@smithy/types").UserAgent;
36
40
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
37
41
  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;
@@ -6,8 +6,13 @@ export declare const getRuntimeConfig: (config: SageMakerMetricsClientConfig) =>
6
6
  runtime: string;
7
7
  sha256: import("@smithy/types").HashConstructor;
8
8
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
- apiVersion: string;
10
9
  cacheMiddleware?: boolean;
10
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
11
+ protocolSettings: {
12
+ defaultNamespace?: string;
13
+ [setting: string]: unknown;
14
+ };
15
+ apiVersion: string;
11
16
  urlParser: import("@smithy/types").UrlParser;
12
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
13
18
  streamCollector: import("@smithy/types").StreamCollector;
@@ -27,7 +32,6 @@ export declare const getRuntimeConfig: (config: SageMakerMetricsClientConfig) =>
27
32
  retryMode: string | import("@smithy/types").Provider<string>;
28
33
  logger: import("@smithy/types").Logger;
29
34
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
31
35
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
32
36
  customUserAgent?: string | import("@smithy/types").UserAgent;
33
37
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
@@ -1,3 +1,4 @@
1
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
1
2
  import type { SageMakerMetricsClientConfig } from "./SageMakerMetricsClient";
2
3
  /**
3
4
  * @internal
@@ -14,7 +15,11 @@ export declare const getRuntimeConfig: (config: SageMakerMetricsClientConfig) =>
14
15
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerMetricsHttpAuthSchemeProvider;
15
16
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
17
  logger: import("@smithy/types").Logger;
17
- protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
18
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof AwsRestJsonProtocol;
19
+ protocolSettings: {
20
+ [setting: string]: unknown;
21
+ defaultNamespace?: string;
22
+ };
18
23
  serviceId: string;
19
24
  urlParser: import("@smithy/types").UrlParser;
20
25
  utf8Decoder: import("@smithy/types").Decoder;
@@ -1,18 +1,12 @@
1
- import type { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
2
- export declare var BatchGetMetricsRequest: StaticStructureSchema;
3
- export declare var BatchGetMetricsResponse: StaticStructureSchema;
4
- export declare var BatchPutMetricsError: StaticStructureSchema;
5
- export declare var BatchPutMetricsRequest: StaticStructureSchema;
6
- export declare var BatchPutMetricsResponse: StaticStructureSchema;
7
- export declare var MetricQuery: StaticStructureSchema;
8
- export declare var MetricQueryResult: StaticStructureSchema;
9
- export declare var RawMetricData: StaticStructureSchema;
10
- export declare var SageMakerMetricsServiceException: StaticErrorSchema;
11
- export declare var BatchPutMetricsErrorList: StaticListSchema;
12
- export declare var MetricQueryList: StaticListSchema;
13
- export declare var MetricQueryResultList: StaticListSchema;
14
- export declare var MetricValues: number;
15
- export declare var RawMetricDataList: StaticListSchema;
16
- export declare var XAxisValues: number;
17
- export declare var BatchGetMetrics: StaticOperationSchema;
18
- export declare var BatchPutMetrics: StaticOperationSchema;
1
+ import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
2
+ export declare var BatchGetMetricsRequest$: StaticStructureSchema;
3
+ export declare var BatchGetMetricsResponse$: StaticStructureSchema;
4
+ export declare var BatchPutMetricsError$: StaticStructureSchema;
5
+ export declare var BatchPutMetricsRequest$: StaticStructureSchema;
6
+ export declare var BatchPutMetricsResponse$: StaticStructureSchema;
7
+ export declare var MetricQuery$: StaticStructureSchema;
8
+ export declare var MetricQueryResult$: StaticStructureSchema;
9
+ export declare var RawMetricData$: StaticStructureSchema;
10
+ export declare var SageMakerMetricsServiceException$: StaticErrorSchema;
11
+ export declare var BatchGetMetrics$: StaticOperationSchema;
12
+ export declare var BatchPutMetrics$: StaticOperationSchema;
@@ -29,13 +29,10 @@ import {
29
29
  BodyLengthCalculator as __BodyLengthCalculator,
30
30
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
31
31
  ChecksumConstructor as __ChecksumConstructor,
32
- ClientProtocol,
33
32
  Decoder as __Decoder,
34
33
  Encoder as __Encoder,
35
34
  HashConstructor as __HashConstructor,
36
35
  HttpHandlerOptions as __HttpHandlerOptions,
37
- HttpRequest,
38
- HttpResponse,
39
36
  Logger as __Logger,
40
37
  Provider as __Provider,
41
38
  StreamCollector as __StreamCollector,
@@ -93,7 +90,6 @@ export interface ClientDefaults
93
90
  retryMode?: string | __Provider<string>;
94
91
  logger?: __Logger;
95
92
  extensions?: RuntimeExtension[];
96
- protocol?: ClientProtocol<HttpRequest, HttpResponse>;
97
93
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
98
94
  }
99
95
  export type SageMakerMetricsClientConfigType = Partial<
@@ -4,6 +4,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { SageMakerMetricsExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
+ export * from "./schemas/schemas_0";
7
8
  export * from "./models/enums";
8
9
  export * from "./models/models_0";
9
10
  export { SageMakerMetricsServiceException } from "./models/SageMakerMetricsServiceException";
@@ -28,8 +28,16 @@ export declare const getRuntimeConfig: (
28
28
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
29
29
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
30
30
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
31
- apiVersion: string;
32
31
  cacheMiddleware?: boolean | undefined;
32
+ protocol:
33
+ | import("@smithy/types").ClientProtocol<any, any>
34
+ | import("@smithy/types").ClientProtocolCtor<any, any>
35
+ | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
36
+ protocolSettings: {
37
+ defaultNamespace?: string;
38
+ [setting: string]: unknown;
39
+ };
40
+ apiVersion: string;
33
41
  urlParser: import("@smithy/types").UrlParser;
34
42
  base64Decoder: import("@smithy/types").Decoder;
35
43
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -40,10 +48,6 @@ export declare const getRuntimeConfig: (
40
48
  profile?: string;
41
49
  logger: import("@smithy/types").Logger;
42
50
  extensions: import("./runtimeExtensions").RuntimeExtension[];
43
- protocol: import("@smithy/types").ClientProtocol<
44
- import("@smithy/types").HttpRequest,
45
- import("@smithy/types").HttpResponse
46
- >;
47
51
  customUserAgent?: string | import("@smithy/types").UserAgent;
48
52
  userAgentAppId?:
49
53
  | string
@@ -28,8 +28,16 @@ export declare const getRuntimeConfig: (
28
28
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
29
29
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
30
30
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
31
- apiVersion: string;
32
31
  cacheMiddleware?: boolean | undefined;
32
+ protocol:
33
+ | import("@smithy/types").ClientProtocol<any, any>
34
+ | import("@smithy/types").ClientProtocolCtor<any, any>
35
+ | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
36
+ protocolSettings: {
37
+ defaultNamespace?: string;
38
+ [setting: string]: unknown;
39
+ };
40
+ apiVersion: string;
33
41
  urlParser: import("@smithy/types").UrlParser;
34
42
  base64Decoder: import("@smithy/types").Decoder;
35
43
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -40,10 +48,6 @@ export declare const getRuntimeConfig: (
40
48
  profile?: string;
41
49
  logger: import("@smithy/types").Logger;
42
50
  extensions: import("./runtimeExtensions").RuntimeExtension[];
43
- protocol: import("@smithy/types").ClientProtocol<
44
- import("@smithy/types").HttpRequest,
45
- import("@smithy/types").HttpResponse
46
- >;
47
51
  customUserAgent?: string | import("@smithy/types").UserAgent;
48
52
  retryStrategy?:
49
53
  | import("@smithy/types").RetryStrategy
@@ -10,8 +10,16 @@ export declare const getRuntimeConfig: (
10
10
  | Record<string, unknown>
11
11
  | import("@smithy/protocol-http").HttpHandler<any>
12
12
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
13
- apiVersion: string;
14
13
  cacheMiddleware?: boolean;
14
+ protocol:
15
+ | import("@smithy/types").ClientProtocol<any, any>
16
+ | import("@smithy/types").ClientProtocolCtor<any, any>
17
+ | typeof import("@aws-sdk/core").AwsRestJsonProtocol;
18
+ protocolSettings: {
19
+ defaultNamespace?: string;
20
+ [setting: string]: unknown;
21
+ };
22
+ apiVersion: string;
15
23
  urlParser: import("@smithy/types").UrlParser;
16
24
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
17
25
  streamCollector: import("@smithy/types").StreamCollector;
@@ -39,10 +47,6 @@ export declare const getRuntimeConfig: (
39
47
  retryMode: string | import("@smithy/types").Provider<string>;
40
48
  logger: import("@smithy/types").Logger;
41
49
  extensions: import("./runtimeExtensions").RuntimeExtension[];
42
- protocol: import("@smithy/types").ClientProtocol<
43
- import("@smithy/types").HttpRequest,
44
- import("@smithy/types").HttpResponse
45
- >;
46
50
  defaultsMode:
47
51
  | import("@smithy/smithy-client").DefaultsMode
48
52
  | import("@smithy/types").Provider<
@@ -1,3 +1,4 @@
1
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
1
2
  import { SageMakerMetricsClientConfig } from "./SageMakerMetricsClient";
2
3
  export declare const getRuntimeConfig: (
3
4
  config: SageMakerMetricsClientConfig
@@ -16,10 +17,14 @@ export declare const getRuntimeConfig: (
16
17
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").SageMakerMetricsHttpAuthSchemeProvider;
17
18
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
18
19
  logger: import("@smithy/types").Logger;
19
- protocol: import("@smithy/types").ClientProtocol<
20
- import("@smithy/types").HttpRequest,
21
- import("@smithy/types").HttpResponse
22
- >;
20
+ protocol:
21
+ | import("@smithy/types").ClientProtocol<any, any>
22
+ | import("@smithy/types").ClientProtocolCtor<any, any>
23
+ | typeof AwsRestJsonProtocol;
24
+ protocolSettings: {
25
+ [setting: string]: unknown;
26
+ defaultNamespace?: string;
27
+ };
23
28
  serviceId: string;
24
29
  urlParser: import("@smithy/types").UrlParser;
25
30
  utf8Decoder: import("@smithy/types").Decoder;
@@ -1,23 +1,16 @@
1
1
  import {
2
2
  StaticErrorSchema,
3
- StaticListSchema,
4
3
  StaticOperationSchema,
5
4
  StaticStructureSchema,
6
5
  } from "@smithy/types";
7
- export declare var BatchGetMetricsRequest: StaticStructureSchema;
8
- export declare var BatchGetMetricsResponse: StaticStructureSchema;
9
- export declare var BatchPutMetricsError: StaticStructureSchema;
10
- export declare var BatchPutMetricsRequest: StaticStructureSchema;
11
- export declare var BatchPutMetricsResponse: StaticStructureSchema;
12
- export declare var MetricQuery: StaticStructureSchema;
13
- export declare var MetricQueryResult: StaticStructureSchema;
14
- export declare var RawMetricData: StaticStructureSchema;
15
- export declare var SageMakerMetricsServiceException: StaticErrorSchema;
16
- export declare var BatchPutMetricsErrorList: StaticListSchema;
17
- export declare var MetricQueryList: StaticListSchema;
18
- export declare var MetricQueryResultList: StaticListSchema;
19
- export declare var MetricValues: number;
20
- export declare var RawMetricDataList: StaticListSchema;
21
- export declare var XAxisValues: number;
22
- export declare var BatchGetMetrics: StaticOperationSchema;
23
- export declare var BatchPutMetrics: StaticOperationSchema;
6
+ export declare var BatchGetMetricsRequest$: StaticStructureSchema;
7
+ export declare var BatchGetMetricsResponse$: StaticStructureSchema;
8
+ export declare var BatchPutMetricsError$: StaticStructureSchema;
9
+ export declare var BatchPutMetricsRequest$: StaticStructureSchema;
10
+ export declare var BatchPutMetricsResponse$: StaticStructureSchema;
11
+ export declare var MetricQuery$: StaticStructureSchema;
12
+ export declare var MetricQueryResult$: StaticStructureSchema;
13
+ export declare var RawMetricData$: StaticStructureSchema;
14
+ export declare var SageMakerMetricsServiceException$: StaticErrorSchema;
15
+ export declare var BatchGetMetrics$: StaticOperationSchema;
16
+ export declare var BatchPutMetrics$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sagemaker-metrics",
3
3
  "description": "AWS SDK for JavaScript Sagemaker Metrics Client for Node.js, Browser and React Native",
4
- "version": "3.952.0",
4
+ "version": "3.954.0",
5
5
  "scripts": {
6
- "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
+ "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sagemaker-metrics",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
9
  "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
@@ -21,41 +21,41 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "3.947.0",
25
- "@aws-sdk/credential-provider-node": "3.952.0",
26
- "@aws-sdk/middleware-host-header": "3.936.0",
27
- "@aws-sdk/middleware-logger": "3.936.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.948.0",
29
- "@aws-sdk/middleware-user-agent": "3.947.0",
30
- "@aws-sdk/region-config-resolver": "3.936.0",
31
- "@aws-sdk/types": "3.936.0",
32
- "@aws-sdk/util-endpoints": "3.936.0",
33
- "@aws-sdk/util-user-agent-browser": "3.936.0",
34
- "@aws-sdk/util-user-agent-node": "3.947.0",
35
- "@smithy/config-resolver": "^4.4.3",
36
- "@smithy/core": "^3.18.7",
37
- "@smithy/fetch-http-handler": "^5.3.6",
38
- "@smithy/hash-node": "^4.2.5",
39
- "@smithy/invalid-dependency": "^4.2.5",
40
- "@smithy/middleware-content-length": "^4.2.5",
41
- "@smithy/middleware-endpoint": "^4.3.14",
42
- "@smithy/middleware-retry": "^4.4.14",
43
- "@smithy/middleware-serde": "^4.2.6",
44
- "@smithy/middleware-stack": "^4.2.5",
45
- "@smithy/node-config-provider": "^4.3.5",
46
- "@smithy/node-http-handler": "^4.4.5",
47
- "@smithy/protocol-http": "^5.3.5",
48
- "@smithy/smithy-client": "^4.9.10",
49
- "@smithy/types": "^4.9.0",
50
- "@smithy/url-parser": "^4.2.5",
24
+ "@aws-sdk/core": "3.954.0",
25
+ "@aws-sdk/credential-provider-node": "3.954.0",
26
+ "@aws-sdk/middleware-host-header": "3.953.0",
27
+ "@aws-sdk/middleware-logger": "3.953.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.953.0",
29
+ "@aws-sdk/middleware-user-agent": "3.954.0",
30
+ "@aws-sdk/region-config-resolver": "3.953.0",
31
+ "@aws-sdk/types": "3.953.0",
32
+ "@aws-sdk/util-endpoints": "3.953.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.953.0",
34
+ "@aws-sdk/util-user-agent-node": "3.954.0",
35
+ "@smithy/config-resolver": "^4.4.4",
36
+ "@smithy/core": "^3.19.0",
37
+ "@smithy/fetch-http-handler": "^5.3.7",
38
+ "@smithy/hash-node": "^4.2.6",
39
+ "@smithy/invalid-dependency": "^4.2.6",
40
+ "@smithy/middleware-content-length": "^4.2.6",
41
+ "@smithy/middleware-endpoint": "^4.4.0",
42
+ "@smithy/middleware-retry": "^4.4.16",
43
+ "@smithy/middleware-serde": "^4.2.7",
44
+ "@smithy/middleware-stack": "^4.2.6",
45
+ "@smithy/node-config-provider": "^4.3.6",
46
+ "@smithy/node-http-handler": "^4.4.6",
47
+ "@smithy/protocol-http": "^5.3.6",
48
+ "@smithy/smithy-client": "^4.10.1",
49
+ "@smithy/types": "^4.10.0",
50
+ "@smithy/url-parser": "^4.2.6",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.13",
55
- "@smithy/util-defaults-mode-node": "^4.2.16",
56
- "@smithy/util-endpoints": "^3.2.5",
57
- "@smithy/util-middleware": "^4.2.5",
58
- "@smithy/util-retry": "^4.2.5",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.15",
55
+ "@smithy/util-defaults-mode-node": "^4.2.18",
56
+ "@smithy/util-endpoints": "^3.2.6",
57
+ "@smithy/util-middleware": "^4.2.6",
58
+ "@smithy/util-retry": "^4.2.6",
59
59
  "@smithy/util-utf8": "^4.2.0",
60
60
  "tslib": "^2.6.2"
61
61
  },