@aws-sdk/client-sagemaker-metrics 3.229.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.
Files changed (67) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +213 -0
  3. package/dist-cjs/SageMakerMetrics.js +22 -0
  4. package/dist-cjs/SageMakerMetricsClient.js +40 -0
  5. package/dist-cjs/commands/BatchPutMetricsCommand.js +46 -0
  6. package/dist-cjs/commands/index.js +4 -0
  7. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  8. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  9. package/dist-cjs/endpoint/ruleset.js +303 -0
  10. package/dist-cjs/index.js +10 -0
  11. package/dist-cjs/models/SageMakerMetricsServiceException.js +11 -0
  12. package/dist-cjs/models/index.js +4 -0
  13. package/dist-cjs/models/models_0.js +26 -0
  14. package/dist-cjs/protocols/Aws_restJson1.js +147 -0
  15. package/dist-cjs/runtimeConfig.browser.js +42 -0
  16. package/dist-cjs/runtimeConfig.js +51 -0
  17. package/dist-cjs/runtimeConfig.native.js +15 -0
  18. package/dist-cjs/runtimeConfig.shared.js +18 -0
  19. package/dist-es/SageMakerMetrics.js +18 -0
  20. package/dist-es/SageMakerMetricsClient.js +36 -0
  21. package/dist-es/commands/BatchPutMetricsCommand.js +42 -0
  22. package/dist-es/commands/index.js +1 -0
  23. package/dist-es/endpoint/EndpointParameters.js +8 -0
  24. package/dist-es/endpoint/endpointResolver.js +8 -0
  25. package/dist-es/endpoint/ruleset.js +300 -0
  26. package/dist-es/index.js +5 -0
  27. package/dist-es/models/SageMakerMetricsServiceException.js +7 -0
  28. package/dist-es/models/index.js +1 -0
  29. package/dist-es/models/models_0.js +19 -0
  30. package/dist-es/protocols/Aws_restJson1.js +142 -0
  31. package/dist-es/runtimeConfig.browser.js +37 -0
  32. package/dist-es/runtimeConfig.js +46 -0
  33. package/dist-es/runtimeConfig.native.js +11 -0
  34. package/dist-es/runtimeConfig.shared.js +14 -0
  35. package/dist-types/SageMakerMetrics.d.ts +24 -0
  36. package/dist-types/SageMakerMetricsClient.d.ts +150 -0
  37. package/dist-types/commands/BatchPutMetricsCommand.d.ts +39 -0
  38. package/dist-types/commands/index.d.ts +1 -0
  39. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  40. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  41. package/dist-types/endpoint/ruleset.d.ts +2 -0
  42. package/dist-types/index.d.ts +5 -0
  43. package/dist-types/models/SageMakerMetricsServiceException.d.ts +10 -0
  44. package/dist-types/models/index.d.ts +1 -0
  45. package/dist-types/models/models_0.d.ts +91 -0
  46. package/dist-types/protocols/Aws_restJson1.d.ts +5 -0
  47. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  48. package/dist-types/runtimeConfig.d.ts +42 -0
  49. package/dist-types/runtimeConfig.native.d.ts +41 -0
  50. package/dist-types/runtimeConfig.shared.d.ts +16 -0
  51. package/dist-types/ts3.4/SageMakerMetrics.d.ts +21 -0
  52. package/dist-types/ts3.4/SageMakerMetricsClient.d.ts +116 -0
  53. package/dist-types/ts3.4/commands/BatchPutMetricsCommand.d.ts +37 -0
  54. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  55. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
  56. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  57. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  58. package/dist-types/ts3.4/index.d.ts +5 -0
  59. package/dist-types/ts3.4/models/SageMakerMetricsServiceException.d.ts +7 -0
  60. package/dist-types/ts3.4/models/index.d.ts +1 -0
  61. package/dist-types/ts3.4/models/models_0.d.ts +35 -0
  62. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +17 -0
  63. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  64. package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
  65. package/dist-types/ts3.4/runtimeConfig.native.d.ts +82 -0
  66. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -0
  67. package/package.json +102 -0
@@ -0,0 +1,11 @@
1
+ import { Sha256 } from "@aws-crypto/sha256-js";
2
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
11
+ };
@@ -0,0 +1,14 @@
1
+ import { NoOpLogger } from "@aws-sdk/smithy-client";
2
+ import { parseUrl } from "@aws-sdk/url-parser";
3
+ import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
4
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
5
+ export const getRuntimeConfig = (config) => ({
6
+ apiVersion: "2022-09-30",
7
+ base64Decoder: config?.base64Decoder ?? fromBase64,
8
+ base64Encoder: config?.base64Encoder ?? toBase64,
9
+ disableHostPrefix: config?.disableHostPrefix ?? false,
10
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
11
+ logger: config?.logger ?? new NoOpLogger(),
12
+ serviceId: config?.serviceId ?? "SageMaker Metrics",
13
+ urlParser: config?.urlParser ?? parseUrl,
14
+ });
@@ -0,0 +1,24 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { BatchPutMetricsCommandInput, BatchPutMetricsCommandOutput } from "./commands/BatchPutMetricsCommand";
3
+ import { SageMakerMetricsClient } from "./SageMakerMetricsClient";
4
+ /**
5
+ * <p>Contains all data plane API operations and data types for Amazon SageMaker Metrics.
6
+ * Use these APIs to put and retrieve (get) features related to your training run.</p>
7
+ * <ul>
8
+ * <li>
9
+ * <p>
10
+ * <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_metrics_BatchPutMetrics.html">BatchPutMetrics</a>
11
+ * </p>
12
+ * </li>
13
+ * </ul>
14
+ */
15
+ export declare class SageMakerMetrics extends SageMakerMetricsClient {
16
+ /**
17
+ * <p>Used to ingest training metrics into SageMaker which can be visualized in SageMaker Studio and
18
+ * retrieved with the <code>GetMetrics</code> API.
19
+ * </p>
20
+ */
21
+ batchPutMetrics(args: BatchPutMetricsCommandInput, options?: __HttpHandlerOptions): Promise<BatchPutMetricsCommandOutput>;
22
+ batchPutMetrics(args: BatchPutMetricsCommandInput, cb: (err: any, data?: BatchPutMetricsCommandOutput) => void): void;
23
+ batchPutMetrics(args: BatchPutMetricsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchPutMetricsCommandOutput) => void): void;
24
+ }
@@ -0,0 +1,150 @@
1
+ import { RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
2
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@aws-sdk/middleware-endpoint";
3
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
4
+ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
5
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
6
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
+ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
+ import { BatchPutMetricsCommandInput, BatchPutMetricsCommandOutput } from "./commands/BatchPutMetricsCommand";
11
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
12
+ export declare type ServiceInputTypes = BatchPutMetricsCommandInput;
13
+ export declare type ServiceOutputTypes = BatchPutMetricsCommandOutput;
14
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
15
+ /**
16
+ * The HTTP handler to use. Fetch in browser and Https in Nodejs.
17
+ */
18
+ requestHandler?: __HttpHandler;
19
+ /**
20
+ * A constructor for a class implementing the {@link __Hash} interface
21
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
22
+ * @internal
23
+ */
24
+ sha256?: __HashConstructor;
25
+ /**
26
+ * The function that will be used to convert strings into HTTP endpoints.
27
+ * @internal
28
+ */
29
+ urlParser?: __UrlParser;
30
+ /**
31
+ * A function that can calculate the length of a request body.
32
+ * @internal
33
+ */
34
+ bodyLengthChecker?: __BodyLengthCalculator;
35
+ /**
36
+ * A function that converts a stream into an array of bytes.
37
+ * @internal
38
+ */
39
+ streamCollector?: __StreamCollector;
40
+ /**
41
+ * The function that will be used to convert a base64-encoded string to a byte array.
42
+ * @internal
43
+ */
44
+ base64Decoder?: __Decoder;
45
+ /**
46
+ * The function that will be used to convert binary data to a base64-encoded string.
47
+ * @internal
48
+ */
49
+ base64Encoder?: __Encoder;
50
+ /**
51
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
52
+ * @internal
53
+ */
54
+ utf8Decoder?: __Decoder;
55
+ /**
56
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
57
+ * @internal
58
+ */
59
+ utf8Encoder?: __Encoder;
60
+ /**
61
+ * The runtime environment.
62
+ * @internal
63
+ */
64
+ runtime?: string;
65
+ /**
66
+ * Disable dyanamically changing the endpoint of the client based on the hostPrefix
67
+ * trait of an operation.
68
+ */
69
+ disableHostPrefix?: boolean;
70
+ /**
71
+ * Value for how many times a request will be made at most in case of retry.
72
+ */
73
+ maxAttempts?: number | __Provider<number>;
74
+ /**
75
+ * Specifies which retry algorithm to use.
76
+ */
77
+ retryMode?: string | __Provider<string>;
78
+ /**
79
+ * Optional logger for logging debug/info/warn/error.
80
+ */
81
+ logger?: __Logger;
82
+ /**
83
+ * Enables IPv6/IPv4 dualstack endpoint.
84
+ */
85
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
86
+ /**
87
+ * Enables FIPS compatible endpoints.
88
+ */
89
+ useFipsEndpoint?: boolean | __Provider<boolean>;
90
+ /**
91
+ * Unique service identifier.
92
+ * @internal
93
+ */
94
+ serviceId?: string;
95
+ /**
96
+ * The AWS region to which this client will send requests
97
+ */
98
+ region?: string | __Provider<string>;
99
+ /**
100
+ * Default credentials provider; Not available in browser runtime.
101
+ * @internal
102
+ */
103
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
104
+ /**
105
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
106
+ * @internal
107
+ */
108
+ defaultUserAgentProvider?: Provider<__UserAgent>;
109
+ /**
110
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
111
+ */
112
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
113
+ }
114
+ declare type SageMakerMetricsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
115
+ /**
116
+ * The configuration interface of SageMakerMetricsClient class constructor that set the region, credentials and other options.
117
+ */
118
+ export interface SageMakerMetricsClientConfig extends SageMakerMetricsClientConfigType {
119
+ }
120
+ declare type SageMakerMetricsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
121
+ /**
122
+ * The resolved configuration interface of SageMakerMetricsClient class. This is resolved and normalized from the {@link SageMakerMetricsClientConfig | constructor configuration interface}.
123
+ */
124
+ export interface SageMakerMetricsClientResolvedConfig extends SageMakerMetricsClientResolvedConfigType {
125
+ }
126
+ /**
127
+ * <p>Contains all data plane API operations and data types for Amazon SageMaker Metrics.
128
+ * Use these APIs to put and retrieve (get) features related to your training run.</p>
129
+ * <ul>
130
+ * <li>
131
+ * <p>
132
+ * <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_metrics_BatchPutMetrics.html">BatchPutMetrics</a>
133
+ * </p>
134
+ * </li>
135
+ * </ul>
136
+ */
137
+ export declare class SageMakerMetricsClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SageMakerMetricsClientResolvedConfig> {
138
+ /**
139
+ * The resolved configuration of SageMakerMetricsClient class. This is resolved and normalized from the {@link SageMakerMetricsClientConfig | constructor configuration interface}.
140
+ */
141
+ readonly config: SageMakerMetricsClientResolvedConfig;
142
+ constructor(configuration: SageMakerMetricsClientConfig);
143
+ /**
144
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
145
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
146
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
147
+ */
148
+ destroy(): void;
149
+ }
150
+ export {};
@@ -0,0 +1,39 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { BatchPutMetricsRequest, BatchPutMetricsResponse } from "../models/models_0";
5
+ import { SageMakerMetricsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerMetricsClient";
6
+ export interface BatchPutMetricsCommandInput extends BatchPutMetricsRequest {
7
+ }
8
+ export interface BatchPutMetricsCommandOutput extends BatchPutMetricsResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Used to ingest training metrics into SageMaker which can be visualized in SageMaker Studio and
12
+ * retrieved with the <code>GetMetrics</code> API.
13
+ * </p>
14
+ * @example
15
+ * Use a bare-bones client and the command you need to make an API call.
16
+ * ```javascript
17
+ * import { SageMakerMetricsClient, BatchPutMetricsCommand } from "@aws-sdk/client-sagemaker-metrics"; // ES Modules import
18
+ * // const { SageMakerMetricsClient, BatchPutMetricsCommand } = require("@aws-sdk/client-sagemaker-metrics"); // CommonJS import
19
+ * const client = new SageMakerMetricsClient(config);
20
+ * const command = new BatchPutMetricsCommand(input);
21
+ * const response = await client.send(command);
22
+ * ```
23
+ *
24
+ * @see {@link BatchPutMetricsCommandInput} for command's `input` shape.
25
+ * @see {@link BatchPutMetricsCommandOutput} for command's `response` shape.
26
+ * @see {@link SageMakerMetricsClientResolvedConfig | config} for SageMakerMetricsClient's `config` shape.
27
+ *
28
+ */
29
+ export declare class BatchPutMetricsCommand extends $Command<BatchPutMetricsCommandInput, BatchPutMetricsCommandOutput, SageMakerMetricsClientResolvedConfig> {
30
+ readonly input: BatchPutMetricsCommandInput;
31
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
32
+ constructor(input: BatchPutMetricsCommandInput);
33
+ /**
34
+ * @internal
35
+ */
36
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SageMakerMetricsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchPutMetricsCommandInput, BatchPutMetricsCommandOutput>;
37
+ private serialize;
38
+ private deserialize;
39
+ }
@@ -0,0 +1 @@
1
+ export * from "./BatchPutMetricsCommand";
@@ -0,0 +1,19 @@
1
+ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@aws-sdk/types";
2
+ export interface ClientInputEndpointParameters {
3
+ region?: string | Provider<string>;
4
+ useDualstackEndpoint?: boolean | Provider<boolean>;
5
+ useFipsEndpoint?: boolean | Provider<boolean>;
6
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
7
+ }
8
+ export declare type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
9
+ defaultSigningName: string;
10
+ };
11
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
12
+ defaultSigningName: string;
13
+ };
14
+ export interface EndpointParameters extends __EndpointParameters {
15
+ Region: string;
16
+ UseDualStack?: boolean;
17
+ UseFIPS?: boolean;
18
+ Endpoint?: string;
19
+ }
@@ -0,0 +1,5 @@
1
+ import { EndpointV2, Logger } from "@aws-sdk/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
4
+ logger?: Logger;
5
+ }) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@aws-sdk/util-endpoints";
2
+ export declare const ruleSet: RuleSetObject;
@@ -0,0 +1,5 @@
1
+ export * from "./SageMakerMetrics";
2
+ export * from "./SageMakerMetricsClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export { SageMakerMetricsServiceException } from "./models/SageMakerMetricsServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from SageMakerMetrics service.
4
+ */
5
+ export declare class SageMakerMetricsServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,91 @@
1
+ /**
2
+ * <p>The raw metric data to associate with the resource.</p>
3
+ */
4
+ export interface RawMetricData {
5
+ /**
6
+ * <p>The name of the metric.</p>
7
+ */
8
+ MetricName: string | undefined;
9
+ /**
10
+ * <p>The time when the metric was recorded.</p>
11
+ */
12
+ Timestamp: Date | undefined;
13
+ /**
14
+ * <p>Metric step (aka Epoch).
15
+ * </p>
16
+ */
17
+ Step?: number;
18
+ /**
19
+ * <p>The metric value.</p>
20
+ */
21
+ Value: number | undefined;
22
+ }
23
+ export interface BatchPutMetricsRequest {
24
+ /**
25
+ * <p>The name of Trial Component to associate the metrics with.</p>
26
+ */
27
+ TrialComponentName: string | undefined;
28
+ /**
29
+ * <p>A list of raw metric values to put.</p>
30
+ */
31
+ MetricData: RawMetricData[] | undefined;
32
+ }
33
+ export declare enum PutMetricsErrorCode {
34
+ CONFLICT_ERROR = "CONFLICT_ERROR",
35
+ INTERNAL_ERROR = "INTERNAL_ERROR",
36
+ METRIC_LIMIT_EXCEEDED = "METRIC_LIMIT_EXCEEDED",
37
+ VALIDATION_ERROR = "VALIDATION_ERROR"
38
+ }
39
+ /**
40
+ * <p>An error that occured when putting the metric data.</p>
41
+ */
42
+ export interface BatchPutMetricsError {
43
+ /**
44
+ * <p>The error code of an error that occured when attempting to put metrics.</p>
45
+ * <ul>
46
+ * <li>
47
+ * <p>
48
+ * <code>METRIC_LIMIT_EXCEEDED</code> - The max amount of metrics per resource has been exceeded.</p>
49
+ * </li>
50
+ * <li>
51
+ * <p>
52
+ * <code>INTERNAL_ERROR</code> - An internal error occured.</p>
53
+ * </li>
54
+ * <li>
55
+ * <p>
56
+ * <code>VALIDATION_ERROR</code> - The metric data failed validation.</p>
57
+ * </li>
58
+ * <li>
59
+ * <p>
60
+ * <code>CONFLICT_ERROR</code> - Multiple requests attempted to modify the same data simultaneously.</p>
61
+ * </li>
62
+ * </ul>
63
+ */
64
+ Code?: PutMetricsErrorCode | string;
65
+ /**
66
+ * <p>An index that corresponds to the metric in the request.</p>
67
+ */
68
+ MetricIndex?: number;
69
+ }
70
+ export interface BatchPutMetricsResponse {
71
+ /**
72
+ * <p>Any errors that occur when inserting metric data will appear in this.</p>
73
+ */
74
+ Errors?: BatchPutMetricsError[];
75
+ }
76
+ /**
77
+ * @internal
78
+ */
79
+ export declare const RawMetricDataFilterSensitiveLog: (obj: RawMetricData) => any;
80
+ /**
81
+ * @internal
82
+ */
83
+ export declare const BatchPutMetricsRequestFilterSensitiveLog: (obj: BatchPutMetricsRequest) => any;
84
+ /**
85
+ * @internal
86
+ */
87
+ export declare const BatchPutMetricsErrorFilterSensitiveLog: (obj: BatchPutMetricsError) => any;
88
+ /**
89
+ * @internal
90
+ */
91
+ export declare const BatchPutMetricsResponseFilterSensitiveLog: (obj: BatchPutMetricsResponse) => any;
@@ -0,0 +1,5 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
+ import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
+ import { BatchPutMetricsCommandInput, BatchPutMetricsCommandOutput } from "../commands/BatchPutMetricsCommand";
4
+ export declare const serializeAws_restJson1BatchPutMetricsCommand: (input: BatchPutMetricsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
5
+ export declare const deserializeAws_restJson1BatchPutMetricsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchPutMetricsCommandOutput>;
@@ -0,0 +1,42 @@
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
+ import { SageMakerMetricsClientConfig } from "./SageMakerMetricsClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getRuntimeConfig: (config: SageMakerMetricsClientConfig) => {
7
+ runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
+ defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
+ maxAttempts: number | import("@aws-sdk/types").Provider<number>;
13
+ region: string | import("@aws-sdk/types").Provider<any>;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
15
+ retryMode: string | import("@aws-sdk/types").Provider<string>;
16
+ sha256: import("@aws-sdk/types").HashConstructor;
17
+ streamCollector: import("@aws-sdk/types").StreamCollector;
18
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ utf8Decoder: import("@aws-sdk/types").Decoder;
21
+ utf8Encoder: import("@aws-sdk/types").Encoder;
22
+ apiVersion: string;
23
+ urlParser: import("@aws-sdk/types").UrlParser;
24
+ base64Decoder: import("@aws-sdk/types").Decoder;
25
+ base64Encoder: import("@aws-sdk/types").Encoder;
26
+ disableHostPrefix: boolean;
27
+ logger: import("@aws-sdk/types").Logger;
28
+ serviceId: string;
29
+ endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
30
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
+ logger?: import("@aws-sdk/types").Logger | undefined;
32
+ }) => import("@aws-sdk/types").EndpointV2;
33
+ tls?: boolean | undefined;
34
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
35
+ credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
36
+ signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
37
+ signingEscapePath?: boolean | undefined;
38
+ systemClockOffset?: number | undefined;
39
+ signingRegion?: string | undefined;
40
+ signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
41
+ customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
42
+ };
@@ -0,0 +1,42 @@
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
+ import { SageMakerMetricsClientConfig } from "./SageMakerMetricsClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getRuntimeConfig: (config: SageMakerMetricsClientConfig) => {
7
+ runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
+ defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
+ maxAttempts: number | import("@aws-sdk/types").Provider<number>;
13
+ region: string | import("@aws-sdk/types").Provider<string>;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
15
+ retryMode: string | import("@aws-sdk/types").Provider<string>;
16
+ sha256: import("@aws-sdk/types").HashConstructor;
17
+ streamCollector: import("@aws-sdk/types").StreamCollector;
18
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
+ utf8Decoder: import("@aws-sdk/types").Decoder;
21
+ utf8Encoder: import("@aws-sdk/types").Encoder;
22
+ apiVersion: string;
23
+ urlParser: import("@aws-sdk/types").UrlParser;
24
+ base64Decoder: import("@aws-sdk/types").Decoder;
25
+ base64Encoder: import("@aws-sdk/types").Encoder;
26
+ disableHostPrefix: boolean;
27
+ logger: import("@aws-sdk/types").Logger;
28
+ serviceId: string;
29
+ endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
30
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
+ logger?: import("@aws-sdk/types").Logger | undefined;
32
+ }) => import("@aws-sdk/types").EndpointV2;
33
+ tls?: boolean | undefined;
34
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
35
+ credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
36
+ signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
37
+ signingEscapePath?: boolean | undefined;
38
+ systemClockOffset?: number | undefined;
39
+ signingRegion?: string | undefined;
40
+ signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
41
+ customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
42
+ };
@@ -0,0 +1,41 @@
1
+ import { SageMakerMetricsClientConfig } from "./SageMakerMetricsClient";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const getRuntimeConfig: (config: SageMakerMetricsClientConfig) => {
6
+ runtime: string;
7
+ sha256: import("@aws-sdk/types").HashConstructor;
8
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
+ apiVersion: string;
10
+ urlParser: import("@aws-sdk/types").UrlParser;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
+ streamCollector: import("@aws-sdk/types").StreamCollector;
13
+ base64Decoder: import("@aws-sdk/types").Decoder;
14
+ base64Encoder: import("@aws-sdk/types").Encoder;
15
+ utf8Decoder: import("@aws-sdk/types").Decoder;
16
+ utf8Encoder: import("@aws-sdk/types").Encoder;
17
+ disableHostPrefix: boolean;
18
+ maxAttempts: number | import("@aws-sdk/types").Provider<number>;
19
+ retryMode: string | import("@aws-sdk/types").Provider<string>;
20
+ logger: import("@aws-sdk/types").Logger;
21
+ useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
+ useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
23
+ serviceId: string;
24
+ region: string | import("@aws-sdk/types").Provider<any>;
25
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
+ defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
27
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
28
+ endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> | undefined;
29
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
30
+ logger?: import("@aws-sdk/types").Logger | undefined;
31
+ }) => import("@aws-sdk/types").EndpointV2;
32
+ tls?: boolean | undefined;
33
+ retryStrategy?: import("@aws-sdk/types").RetryStrategy | import("@aws-sdk/types").RetryStrategyV2 | undefined;
34
+ credentials?: import("@aws-sdk/types").AwsCredentialIdentity | import("@aws-sdk/types").Provider<import("@aws-sdk/types").AwsCredentialIdentity> | undefined;
35
+ signer?: import("@aws-sdk/types").RequestSigner | ((authScheme?: import("@aws-sdk/types").AuthScheme | undefined) => Promise<import("@aws-sdk/types").RequestSigner>) | undefined;
36
+ signingEscapePath?: boolean | undefined;
37
+ systemClockOffset?: number | undefined;
38
+ signingRegion?: string | undefined;
39
+ signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
40
+ customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
41
+ };
@@ -0,0 +1,16 @@
1
+ import { SageMakerMetricsClientConfig } from "./SageMakerMetricsClient";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const getRuntimeConfig: (config: SageMakerMetricsClientConfig) => {
6
+ apiVersion: string;
7
+ base64Decoder: import("@aws-sdk/types").Decoder;
8
+ base64Encoder: import("@aws-sdk/types").Encoder;
9
+ disableHostPrefix: boolean;
10
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
11
+ logger?: import("@aws-sdk/types").Logger | undefined;
12
+ }) => import("@aws-sdk/types").EndpointV2;
13
+ logger: import("@aws-sdk/types").Logger;
14
+ serviceId: string;
15
+ urlParser: import("@aws-sdk/types").UrlParser;
16
+ };
@@ -0,0 +1,21 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import {
3
+ BatchPutMetricsCommandInput,
4
+ BatchPutMetricsCommandOutput,
5
+ } from "./commands/BatchPutMetricsCommand";
6
+ import { SageMakerMetricsClient } from "./SageMakerMetricsClient";
7
+ export declare class SageMakerMetrics extends SageMakerMetricsClient {
8
+ batchPutMetrics(
9
+ args: BatchPutMetricsCommandInput,
10
+ options?: __HttpHandlerOptions
11
+ ): Promise<BatchPutMetricsCommandOutput>;
12
+ batchPutMetrics(
13
+ args: BatchPutMetricsCommandInput,
14
+ cb: (err: any, data?: BatchPutMetricsCommandOutput) => void
15
+ ): void;
16
+ batchPutMetrics(
17
+ args: BatchPutMetricsCommandInput,
18
+ options: __HttpHandlerOptions,
19
+ cb: (err: any, data?: BatchPutMetricsCommandOutput) => void
20
+ ): void;
21
+ }