@aws-sdk/client-machine-learning 3.408.0 → 3.410.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 (29) hide show
  1. package/dist-cjs/endpoint/ruleset.js +3 -3
  2. package/dist-cjs/runtimeExtensions.js +3 -0
  3. package/dist-es/endpoint/ruleset.js +3 -3
  4. package/dist-es/runtimeExtensions.js +3 -0
  5. package/dist-types/commands/AddTagsCommand.d.ts +2 -2
  6. package/dist-types/commands/CreateMLModelCommand.d.ts +1 -1
  7. package/dist-types/commands/CreateRealtimeEndpointCommand.d.ts +1 -1
  8. package/dist-types/commands/DeleteRealtimeEndpointCommand.d.ts +1 -1
  9. package/dist-types/commands/DeleteTagsCommand.d.ts +2 -2
  10. package/dist-types/commands/DescribeBatchPredictionsCommand.d.ts +3 -3
  11. package/dist-types/commands/DescribeDataSourcesCommand.d.ts +3 -3
  12. package/dist-types/commands/DescribeEvaluationsCommand.d.ts +3 -3
  13. package/dist-types/commands/DescribeMLModelsCommand.d.ts +6 -6
  14. package/dist-types/commands/DescribeTagsCommand.d.ts +2 -2
  15. package/dist-types/commands/GetBatchPredictionCommand.d.ts +1 -1
  16. package/dist-types/commands/GetDataSourceCommand.d.ts +1 -1
  17. package/dist-types/commands/GetEvaluationCommand.d.ts +1 -1
  18. package/dist-types/commands/GetMLModelCommand.d.ts +3 -3
  19. package/dist-types/extensionConfiguration.d.ts +2 -1
  20. package/dist-types/runtimeConfig.browser.d.ts +4 -1
  21. package/dist-types/runtimeConfig.d.ts +4 -1
  22. package/dist-types/runtimeConfig.native.d.ts +4 -1
  23. package/dist-types/runtimeExtensions.d.ts +1 -1
  24. package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
  25. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -1
  26. package/dist-types/ts3.4/runtimeConfig.d.ts +8 -1
  27. package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -1
  28. package/dist-types/ts3.4/runtimeExtensions.d.ts +3 -1
  29. package/package.json +30 -30
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const p = "required", q = "fn", r = "argv", s = "ref";
5
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
6
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://machinelearning-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://machinelearning-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://machinelearning.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://machinelearning.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://machinelearning-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://machinelearning-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://machinelearning.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://machinelearning.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
7
7
  exports.ruleSet = _data;
@@ -1,16 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveRuntimeExtensions = void 0;
4
+ const protocol_http_1 = require("@smithy/protocol-http");
4
5
  const smithy_client_1 = require("@smithy/smithy-client");
5
6
  const asPartial = (t) => t;
6
7
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
8
  const extensionConfiguration = {
8
9
  ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
10
+ ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
9
11
  };
10
12
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
11
13
  return {
12
14
  ...runtimeConfig,
13
15
  ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
16
+ ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
14
17
  };
15
18
  };
16
19
  exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
@@ -1,4 +1,4 @@
1
- const p = "required", q = "fn", r = "argv", s = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
3
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://machinelearning-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://machinelearning-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://machinelearning.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://machinelearning.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://machinelearning-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://machinelearning-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://machinelearning.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://machinelearning.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
4
4
  export const ruleSet = _data;
@@ -1,12 +1,15 @@
1
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
1
2
  import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
2
3
  const asPartial = (t) => t;
3
4
  export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
4
5
  const extensionConfiguration = {
5
6
  ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
7
+ ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
6
8
  };
7
9
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
8
10
  return {
9
11
  ...runtimeConfig,
10
12
  ...resolveDefaultRuntimeConfig(extensionConfiguration),
13
+ ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
11
14
  };
12
15
  };
@@ -40,13 +40,13 @@ export interface AddTagsCommandOutput extends AddTagsOutput, __MetadataBearer {
40
40
  * },
41
41
  * ],
42
42
  * ResourceId: "STRING_VALUE", // required
43
- * ResourceType: "STRING_VALUE", // required
43
+ * ResourceType: "BatchPrediction" || "DataSource" || "Evaluation" || "MLModel", // required
44
44
  * };
45
45
  * const command = new AddTagsCommand(input);
46
46
  * const response = await client.send(command);
47
47
  * // { // AddTagsOutput
48
48
  * // ResourceId: "STRING_VALUE",
49
- * // ResourceType: "STRING_VALUE",
49
+ * // ResourceType: "BatchPrediction" || "DataSource" || "Evaluation" || "MLModel",
50
50
  * // };
51
51
  *
52
52
  * ```
@@ -52,7 +52,7 @@ export interface CreateMLModelCommandOutput extends CreateMLModelOutput, __Metad
52
52
  * const input = { // CreateMLModelInput
53
53
  * MLModelId: "STRING_VALUE", // required
54
54
  * MLModelName: "STRING_VALUE",
55
- * MLModelType: "STRING_VALUE", // required
55
+ * MLModelType: "REGRESSION" || "BINARY" || "MULTICLASS", // required
56
56
  * Parameters: { // TrainingParameters
57
57
  * "<keys>": "STRING_VALUE",
58
58
  * },
@@ -41,7 +41,7 @@ export interface CreateRealtimeEndpointCommandOutput extends CreateRealtimeEndpo
41
41
  * // PeakRequestsPerSecond: Number("int"),
42
42
  * // CreatedAt: new Date("TIMESTAMP"),
43
43
  * // EndpointUrl: "STRING_VALUE",
44
- * // EndpointStatus: "STRING_VALUE",
44
+ * // EndpointStatus: "NONE" || "READY" || "UPDATING" || "FAILED",
45
45
  * // },
46
46
  * // };
47
47
  *
@@ -41,7 +41,7 @@ export interface DeleteRealtimeEndpointCommandOutput extends DeleteRealtimeEndpo
41
41
  * // PeakRequestsPerSecond: Number("int"),
42
42
  * // CreatedAt: new Date("TIMESTAMP"),
43
43
  * // EndpointUrl: "STRING_VALUE",
44
- * // EndpointStatus: "STRING_VALUE",
44
+ * // EndpointStatus: "NONE" || "READY" || "UPDATING" || "FAILED",
45
45
  * // },
46
46
  * // };
47
47
  *
@@ -36,13 +36,13 @@ export interface DeleteTagsCommandOutput extends DeleteTagsOutput, __MetadataBea
36
36
  * "STRING_VALUE",
37
37
  * ],
38
38
  * ResourceId: "STRING_VALUE", // required
39
- * ResourceType: "STRING_VALUE", // required
39
+ * ResourceType: "BatchPrediction" || "DataSource" || "Evaluation" || "MLModel", // required
40
40
  * };
41
41
  * const command = new DeleteTagsCommand(input);
42
42
  * const response = await client.send(command);
43
43
  * // { // DeleteTagsOutput
44
44
  * // ResourceId: "STRING_VALUE",
45
- * // ResourceType: "STRING_VALUE",
45
+ * // ResourceType: "BatchPrediction" || "DataSource" || "Evaluation" || "MLModel",
46
46
  * // };
47
47
  *
48
48
  * ```
@@ -31,7 +31,7 @@ export interface DescribeBatchPredictionsCommandOutput extends DescribeBatchPred
31
31
  * // const { MachineLearningClient, DescribeBatchPredictionsCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
32
32
  * const client = new MachineLearningClient(config);
33
33
  * const input = { // DescribeBatchPredictionsInput
34
- * FilterVariable: "STRING_VALUE",
34
+ * FilterVariable: "CreatedAt" || "LastUpdatedAt" || "Status" || "Name" || "IAMUser" || "MLModelId" || "DataSourceId" || "DataURI",
35
35
  * EQ: "STRING_VALUE",
36
36
  * GT: "STRING_VALUE",
37
37
  * LT: "STRING_VALUE",
@@ -39,7 +39,7 @@ export interface DescribeBatchPredictionsCommandOutput extends DescribeBatchPred
39
39
  * LE: "STRING_VALUE",
40
40
  * NE: "STRING_VALUE",
41
41
  * Prefix: "STRING_VALUE",
42
- * SortOrder: "STRING_VALUE",
42
+ * SortOrder: "asc" || "dsc",
43
43
  * NextToken: "STRING_VALUE",
44
44
  * Limit: Number("int"),
45
45
  * };
@@ -56,7 +56,7 @@ export interface DescribeBatchPredictionsCommandOutput extends DescribeBatchPred
56
56
  * // CreatedAt: new Date("TIMESTAMP"),
57
57
  * // LastUpdatedAt: new Date("TIMESTAMP"),
58
58
  * // Name: "STRING_VALUE",
59
- * // Status: "STRING_VALUE",
59
+ * // Status: "PENDING" || "INPROGRESS" || "FAILED" || "COMPLETED" || "DELETED",
60
60
  * // OutputUri: "STRING_VALUE",
61
61
  * // Message: "STRING_VALUE",
62
62
  * // ComputeTime: Number("long"),
@@ -31,7 +31,7 @@ export interface DescribeDataSourcesCommandOutput extends DescribeDataSourcesOut
31
31
  * // const { MachineLearningClient, DescribeDataSourcesCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
32
32
  * const client = new MachineLearningClient(config);
33
33
  * const input = { // DescribeDataSourcesInput
34
- * FilterVariable: "STRING_VALUE",
34
+ * FilterVariable: "CreatedAt" || "LastUpdatedAt" || "Status" || "Name" || "DataLocationS3" || "IAMUser",
35
35
  * EQ: "STRING_VALUE",
36
36
  * GT: "STRING_VALUE",
37
37
  * LT: "STRING_VALUE",
@@ -39,7 +39,7 @@ export interface DescribeDataSourcesCommandOutput extends DescribeDataSourcesOut
39
39
  * LE: "STRING_VALUE",
40
40
  * NE: "STRING_VALUE",
41
41
  * Prefix: "STRING_VALUE",
42
- * SortOrder: "STRING_VALUE",
42
+ * SortOrder: "asc" || "dsc",
43
43
  * NextToken: "STRING_VALUE",
44
44
  * Limit: Number("int"),
45
45
  * };
@@ -57,7 +57,7 @@ export interface DescribeDataSourcesCommandOutput extends DescribeDataSourcesOut
57
57
  * // DataSizeInBytes: Number("long"),
58
58
  * // NumberOfFiles: Number("long"),
59
59
  * // Name: "STRING_VALUE",
60
- * // Status: "STRING_VALUE",
60
+ * // Status: "PENDING" || "INPROGRESS" || "FAILED" || "COMPLETED" || "DELETED",
61
61
  * // Message: "STRING_VALUE",
62
62
  * // RedshiftMetadata: { // RedshiftMetadata
63
63
  * // RedshiftDatabase: { // RedshiftDatabase
@@ -31,7 +31,7 @@ export interface DescribeEvaluationsCommandOutput extends DescribeEvaluationsOut
31
31
  * // const { MachineLearningClient, DescribeEvaluationsCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
32
32
  * const client = new MachineLearningClient(config);
33
33
  * const input = { // DescribeEvaluationsInput
34
- * FilterVariable: "STRING_VALUE",
34
+ * FilterVariable: "CreatedAt" || "LastUpdatedAt" || "Status" || "Name" || "IAMUser" || "MLModelId" || "DataSourceId" || "DataURI",
35
35
  * EQ: "STRING_VALUE",
36
36
  * GT: "STRING_VALUE",
37
37
  * LT: "STRING_VALUE",
@@ -39,7 +39,7 @@ export interface DescribeEvaluationsCommandOutput extends DescribeEvaluationsOut
39
39
  * LE: "STRING_VALUE",
40
40
  * NE: "STRING_VALUE",
41
41
  * Prefix: "STRING_VALUE",
42
- * SortOrder: "STRING_VALUE",
42
+ * SortOrder: "asc" || "dsc",
43
43
  * NextToken: "STRING_VALUE",
44
44
  * Limit: Number("int"),
45
45
  * };
@@ -56,7 +56,7 @@ export interface DescribeEvaluationsCommandOutput extends DescribeEvaluationsOut
56
56
  * // CreatedAt: new Date("TIMESTAMP"),
57
57
  * // LastUpdatedAt: new Date("TIMESTAMP"),
58
58
  * // Name: "STRING_VALUE",
59
- * // Status: "STRING_VALUE",
59
+ * // Status: "PENDING" || "INPROGRESS" || "FAILED" || "COMPLETED" || "DELETED",
60
60
  * // PerformanceMetrics: { // PerformanceMetrics
61
61
  * // Properties: { // PerformanceMetricsProperties
62
62
  * // "<keys>": "STRING_VALUE",
@@ -31,7 +31,7 @@ export interface DescribeMLModelsCommandOutput extends DescribeMLModelsOutput, _
31
31
  * // const { MachineLearningClient, DescribeMLModelsCommand } = require("@aws-sdk/client-machine-learning"); // CommonJS import
32
32
  * const client = new MachineLearningClient(config);
33
33
  * const input = { // DescribeMLModelsInput
34
- * FilterVariable: "STRING_VALUE",
34
+ * FilterVariable: "CreatedAt" || "LastUpdatedAt" || "Status" || "Name" || "IAMUser" || "TrainingDataSourceId" || "RealtimeEndpointStatus" || "MLModelType" || "Algorithm" || "TrainingDataURI",
35
35
  * EQ: "STRING_VALUE",
36
36
  * GT: "STRING_VALUE",
37
37
  * LT: "STRING_VALUE",
@@ -39,7 +39,7 @@ export interface DescribeMLModelsCommandOutput extends DescribeMLModelsOutput, _
39
39
  * LE: "STRING_VALUE",
40
40
  * NE: "STRING_VALUE",
41
41
  * Prefix: "STRING_VALUE",
42
- * SortOrder: "STRING_VALUE",
42
+ * SortOrder: "asc" || "dsc",
43
43
  * NextToken: "STRING_VALUE",
44
44
  * Limit: Number("int"),
45
45
  * };
@@ -54,20 +54,20 @@ export interface DescribeMLModelsCommandOutput extends DescribeMLModelsOutput, _
54
54
  * // CreatedAt: new Date("TIMESTAMP"),
55
55
  * // LastUpdatedAt: new Date("TIMESTAMP"),
56
56
  * // Name: "STRING_VALUE",
57
- * // Status: "STRING_VALUE",
57
+ * // Status: "PENDING" || "INPROGRESS" || "FAILED" || "COMPLETED" || "DELETED",
58
58
  * // SizeInBytes: Number("long"),
59
59
  * // EndpointInfo: { // RealtimeEndpointInfo
60
60
  * // PeakRequestsPerSecond: Number("int"),
61
61
  * // CreatedAt: new Date("TIMESTAMP"),
62
62
  * // EndpointUrl: "STRING_VALUE",
63
- * // EndpointStatus: "STRING_VALUE",
63
+ * // EndpointStatus: "NONE" || "READY" || "UPDATING" || "FAILED",
64
64
  * // },
65
65
  * // TrainingParameters: { // TrainingParameters
66
66
  * // "<keys>": "STRING_VALUE",
67
67
  * // },
68
68
  * // InputDataLocationS3: "STRING_VALUE",
69
- * // Algorithm: "STRING_VALUE",
70
- * // MLModelType: "STRING_VALUE",
69
+ * // Algorithm: "sgd",
70
+ * // MLModelType: "REGRESSION" || "BINARY" || "MULTICLASS",
71
71
  * // ScoreThreshold: Number("float"),
72
72
  * // ScoreThresholdLastUpdatedAt: new Date("TIMESTAMP"),
73
73
  * // Message: "STRING_VALUE",
@@ -32,13 +32,13 @@ export interface DescribeTagsCommandOutput extends DescribeTagsOutput, __Metadat
32
32
  * const client = new MachineLearningClient(config);
33
33
  * const input = { // DescribeTagsInput
34
34
  * ResourceId: "STRING_VALUE", // required
35
- * ResourceType: "STRING_VALUE", // required
35
+ * ResourceType: "BatchPrediction" || "DataSource" || "Evaluation" || "MLModel", // required
36
36
  * };
37
37
  * const command = new DescribeTagsCommand(input);
38
38
  * const response = await client.send(command);
39
39
  * // { // DescribeTagsOutput
40
40
  * // ResourceId: "STRING_VALUE",
41
- * // ResourceType: "STRING_VALUE",
41
+ * // ResourceType: "BatchPrediction" || "DataSource" || "Evaluation" || "MLModel",
42
42
  * // Tags: [ // TagList
43
43
  * // { // Tag
44
44
  * // Key: "STRING_VALUE",
@@ -45,7 +45,7 @@ export interface GetBatchPredictionCommandOutput extends GetBatchPredictionOutpu
45
45
  * // CreatedAt: new Date("TIMESTAMP"),
46
46
  * // LastUpdatedAt: new Date("TIMESTAMP"),
47
47
  * // Name: "STRING_VALUE",
48
- * // Status: "STRING_VALUE",
48
+ * // Status: "PENDING" || "INPROGRESS" || "FAILED" || "COMPLETED" || "DELETED",
49
49
  * // OutputUri: "STRING_VALUE",
50
50
  * // LogUri: "STRING_VALUE",
51
51
  * // Message: "STRING_VALUE",
@@ -49,7 +49,7 @@ export interface GetDataSourceCommandOutput extends GetDataSourceOutput, __Metad
49
49
  * // DataSizeInBytes: Number("long"),
50
50
  * // NumberOfFiles: Number("long"),
51
51
  * // Name: "STRING_VALUE",
52
- * // Status: "STRING_VALUE",
52
+ * // Status: "PENDING" || "INPROGRESS" || "FAILED" || "COMPLETED" || "DELETED",
53
53
  * // LogUri: "STRING_VALUE",
54
54
  * // Message: "STRING_VALUE",
55
55
  * // RedshiftMetadata: { // RedshiftMetadata
@@ -44,7 +44,7 @@ export interface GetEvaluationCommandOutput extends GetEvaluationOutput, __Metad
44
44
  * // CreatedAt: new Date("TIMESTAMP"),
45
45
  * // LastUpdatedAt: new Date("TIMESTAMP"),
46
46
  * // Name: "STRING_VALUE",
47
- * // Status: "STRING_VALUE",
47
+ * // Status: "PENDING" || "INPROGRESS" || "FAILED" || "COMPLETED" || "DELETED",
48
48
  * // PerformanceMetrics: { // PerformanceMetrics
49
49
  * // Properties: { // PerformanceMetricsProperties
50
50
  * // "<keys>": "STRING_VALUE",
@@ -45,19 +45,19 @@ export interface GetMLModelCommandOutput extends GetMLModelOutput, __MetadataBea
45
45
  * // CreatedAt: new Date("TIMESTAMP"),
46
46
  * // LastUpdatedAt: new Date("TIMESTAMP"),
47
47
  * // Name: "STRING_VALUE",
48
- * // Status: "STRING_VALUE",
48
+ * // Status: "PENDING" || "INPROGRESS" || "FAILED" || "COMPLETED" || "DELETED",
49
49
  * // SizeInBytes: Number("long"),
50
50
  * // EndpointInfo: { // RealtimeEndpointInfo
51
51
  * // PeakRequestsPerSecond: Number("int"),
52
52
  * // CreatedAt: new Date("TIMESTAMP"),
53
53
  * // EndpointUrl: "STRING_VALUE",
54
- * // EndpointStatus: "STRING_VALUE",
54
+ * // EndpointStatus: "NONE" || "READY" || "UPDATING" || "FAILED",
55
55
  * // },
56
56
  * // TrainingParameters: { // TrainingParameters
57
57
  * // "<keys>": "STRING_VALUE",
58
58
  * // },
59
59
  * // InputDataLocationS3: "STRING_VALUE",
60
- * // MLModelType: "STRING_VALUE",
60
+ * // MLModelType: "REGRESSION" || "BINARY" || "MULTICLASS",
61
61
  * // ScoreThreshold: Number("float"),
62
62
  * // ScoreThresholdLastUpdatedAt: new Date("TIMESTAMP"),
63
63
  * // LogUri: "STRING_VALUE",
@@ -1,6 +1,7 @@
1
+ import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
1
2
  import { DefaultExtensionConfiguration } from "@smithy/types";
2
3
  /**
3
4
  * @internal
4
5
  */
5
- export interface MachineLearningExtensionConfiguration extends DefaultExtensionConfiguration {
6
+ export interface MachineLearningExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration {
6
7
  }
@@ -11,7 +11,10 @@ export declare const getRuntimeConfig: (config: MachineLearningClientConfig) =>
11
11
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
14
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | RequestHandler;
14
+ requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
15
+ updateHttpClientConfig(key: never, value: never): void;
16
+ httpHandlerConfigs(): {};
17
+ }) | RequestHandler;
15
18
  retryMode: string | import("@smithy/types").Provider<string>;
16
19
  sha256: import("@smithy/types").HashConstructor;
17
20
  streamCollector: import("@smithy/types").StreamCollector;
@@ -11,7 +11,10 @@ export declare const getRuntimeConfig: (config: MachineLearningClientConfig) =>
11
11
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
14
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | RequestHandler;
14
+ requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
15
+ updateHttpClientConfig(key: never, value: never): void;
16
+ httpHandlerConfigs(): {};
17
+ }) | RequestHandler;
15
18
  retryMode: string | import("@smithy/types").Provider<string>;
16
19
  sha256: import("@smithy/types").HashConstructor;
17
20
  streamCollector: import("@smithy/types").StreamCollector;
@@ -5,7 +5,10 @@ import { MachineLearningClientConfig } from "./MachineLearningClient";
5
5
  export declare const getRuntimeConfig: (config: MachineLearningClientConfig) => {
6
6
  runtime: string;
7
7
  sha256: import("@smithy/types").HashConstructor;
8
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | import("@smithy/fetch-http-handler").FetchHttpHandler;
8
+ requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
9
+ updateHttpClientConfig(key: never, value: never): void;
10
+ httpHandlerConfigs(): {};
11
+ }) | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
12
  apiVersion: string;
10
13
  urlParser: import("@smithy/types").UrlParser;
11
14
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
@@ -3,7 +3,7 @@ import { MachineLearningExtensionConfiguration } from "./extensionConfiguration"
3
3
  * @public
4
4
  */
5
5
  export interface RuntimeExtension {
6
- configure(clientConfiguration: MachineLearningExtensionConfiguration): void;
6
+ configure(extensionConfiguration: MachineLearningExtensionConfiguration): void;
7
7
  }
8
8
  /**
9
9
  * @public
@@ -1,3 +1,5 @@
1
+ import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
1
2
  import { DefaultExtensionConfiguration } from "@smithy/types";
2
3
  export interface MachineLearningExtensionConfiguration
3
- extends DefaultExtensionConfiguration {}
4
+ extends HttpHandlerExtensionConfiguration,
5
+ DefaultExtensionConfiguration {}
@@ -22,7 +22,14 @@ export declare const getRuntimeConfig: (
22
22
  any,
23
23
  import("@smithy/types").HttpHandlerOptions
24
24
  > &
25
- import("@smithy/protocol-http").HttpHandler)
25
+ import("@smithy/types").RequestHandler<
26
+ import("@smithy/protocol-http").HttpRequest,
27
+ import("@smithy/protocol-http").HttpResponse,
28
+ import("@smithy/types").HttpHandlerOptions
29
+ > & {
30
+ updateHttpClientConfig(key: never, value: never): void;
31
+ httpHandlerConfigs(): {};
32
+ })
26
33
  | RequestHandler;
27
34
  retryMode: string | import("@smithy/types").Provider<string>;
28
35
  sha256: import("@smithy/types").HashConstructor;
@@ -22,7 +22,14 @@ export declare const getRuntimeConfig: (
22
22
  any,
23
23
  import("@smithy/types").HttpHandlerOptions
24
24
  > &
25
- import("@smithy/protocol-http").HttpHandler)
25
+ import("@smithy/types").RequestHandler<
26
+ import("@smithy/protocol-http").HttpRequest,
27
+ import("@smithy/protocol-http").HttpResponse,
28
+ import("@smithy/types").HttpHandlerOptions
29
+ > & {
30
+ updateHttpClientConfig(key: never, value: never): void;
31
+ httpHandlerConfigs(): {};
32
+ })
26
33
  | RequestHandler;
27
34
  retryMode: string | import("@smithy/types").Provider<string>;
28
35
  sha256: import("@smithy/types").HashConstructor;
@@ -10,7 +10,14 @@ export declare const getRuntimeConfig: (
10
10
  any,
11
11
  import("@smithy/types").HttpHandlerOptions
12
12
  > &
13
- import("@smithy/protocol-http").HttpHandler)
13
+ import("@smithy/types").RequestHandler<
14
+ import("@smithy/protocol-http").HttpRequest,
15
+ import("@smithy/protocol-http").HttpResponse,
16
+ import("@smithy/types").HttpHandlerOptions
17
+ > & {
18
+ updateHttpClientConfig(key: never, value: never): void;
19
+ httpHandlerConfigs(): {};
20
+ })
14
21
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
15
22
  apiVersion: string;
16
23
  urlParser: import("@smithy/types").UrlParser;
@@ -1,6 +1,8 @@
1
1
  import { MachineLearningExtensionConfiguration } from "./extensionConfiguration";
2
2
  export interface RuntimeExtension {
3
- configure(clientConfiguration: MachineLearningExtensionConfiguration): void;
3
+ configure(
4
+ extensionConfiguration: MachineLearningExtensionConfiguration
5
+ ): void;
4
6
  }
5
7
  export interface RuntimeExtensionsConfig {
6
8
  extensions: RuntimeExtension[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-machine-learning",
3
3
  "description": "AWS SDK for JavaScript Machine Learning Client for Node.js, Browser and React Native",
4
- "version": "3.408.0",
4
+ "version": "3.410.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,41 +21,41 @@
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.408.0",
25
- "@aws-sdk/credential-provider-node": "3.408.0",
26
- "@aws-sdk/middleware-host-header": "3.408.0",
27
- "@aws-sdk/middleware-logger": "3.408.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.408.0",
29
- "@aws-sdk/middleware-sdk-machinelearning": "3.408.0",
30
- "@aws-sdk/middleware-signing": "3.408.0",
31
- "@aws-sdk/middleware-user-agent": "3.408.0",
32
- "@aws-sdk/types": "3.408.0",
33
- "@aws-sdk/util-endpoints": "3.408.0",
34
- "@aws-sdk/util-user-agent-browser": "3.408.0",
35
- "@aws-sdk/util-user-agent-node": "3.408.0",
36
- "@smithy/config-resolver": "^2.0.5",
37
- "@smithy/fetch-http-handler": "^2.0.5",
38
- "@smithy/hash-node": "^2.0.5",
39
- "@smithy/invalid-dependency": "^2.0.5",
40
- "@smithy/middleware-content-length": "^2.0.5",
41
- "@smithy/middleware-endpoint": "^2.0.5",
42
- "@smithy/middleware-retry": "^2.0.5",
43
- "@smithy/middleware-serde": "^2.0.5",
24
+ "@aws-sdk/client-sts": "3.410.0",
25
+ "@aws-sdk/credential-provider-node": "3.410.0",
26
+ "@aws-sdk/middleware-host-header": "3.410.0",
27
+ "@aws-sdk/middleware-logger": "3.410.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.410.0",
29
+ "@aws-sdk/middleware-sdk-machinelearning": "3.410.0",
30
+ "@aws-sdk/middleware-signing": "3.410.0",
31
+ "@aws-sdk/middleware-user-agent": "3.410.0",
32
+ "@aws-sdk/types": "3.410.0",
33
+ "@aws-sdk/util-endpoints": "3.410.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.410.0",
35
+ "@aws-sdk/util-user-agent-node": "3.410.0",
36
+ "@smithy/config-resolver": "^2.0.7",
37
+ "@smithy/fetch-http-handler": "^2.1.2",
38
+ "@smithy/hash-node": "^2.0.6",
39
+ "@smithy/invalid-dependency": "^2.0.6",
40
+ "@smithy/middleware-content-length": "^2.0.8",
41
+ "@smithy/middleware-endpoint": "^2.0.6",
42
+ "@smithy/middleware-retry": "^2.0.9",
43
+ "@smithy/middleware-serde": "^2.0.6",
44
44
  "@smithy/middleware-stack": "^2.0.0",
45
- "@smithy/node-config-provider": "^2.0.6",
46
- "@smithy/node-http-handler": "^2.0.5",
47
- "@smithy/protocol-http": "^2.0.5",
48
- "@smithy/smithy-client": "^2.0.5",
49
- "@smithy/types": "^2.2.2",
50
- "@smithy/url-parser": "^2.0.5",
45
+ "@smithy/node-config-provider": "^2.0.9",
46
+ "@smithy/node-http-handler": "^2.1.2",
47
+ "@smithy/protocol-http": "^3.0.2",
48
+ "@smithy/smithy-client": "^2.1.3",
49
+ "@smithy/types": "^2.3.0",
50
+ "@smithy/url-parser": "^2.0.6",
51
51
  "@smithy/util-base64": "^2.0.0",
52
52
  "@smithy/util-body-length-browser": "^2.0.0",
53
53
  "@smithy/util-body-length-node": "^2.1.0",
54
- "@smithy/util-defaults-mode-browser": "^2.0.6",
55
- "@smithy/util-defaults-mode-node": "^2.0.6",
54
+ "@smithy/util-defaults-mode-browser": "^2.0.7",
55
+ "@smithy/util-defaults-mode-node": "^2.0.9",
56
56
  "@smithy/util-retry": "^2.0.0",
57
57
  "@smithy/util-utf8": "^2.0.0",
58
- "@smithy/util-waiter": "^2.0.5",
58
+ "@smithy/util-waiter": "^2.0.6",
59
59
  "tslib": "^2.5.0"
60
60
  },
61
61
  "devDependencies": {