Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ public AddProtocolConfig() {
// protocol tests
SchemaGenerationAllowlist.allow("aws.protocoltests.json10#JsonRpc10");
SchemaGenerationAllowlist.allow("aws.protocoltests.json#JsonProtocol");
SchemaGenerationAllowlist.allow("com.amazonaws.machinelearning#AmazonML_20141212");
SchemaGenerationAllowlist.allow("aws.protocoltests.restjson#RestJson");
SchemaGenerationAllowlist.allow("com.amazonaws.glacier#Glacier");
SchemaGenerationAllowlist.allow("com.amazonaws.apigateway#BackplaneControlService");
SchemaGenerationAllowlist.allow("aws.protocoltests.restxml#RestXml");
SchemaGenerationAllowlist.allow("aws.protocoltests.query#AwsQuery");
SchemaGenerationAllowlist.allow("aws.protocoltests.ec2#AwsEc2");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@
"@smithy/util-middleware": "^4.0.5",
"@smithy/util-retry": "^4.0.7",
"@smithy/util-utf8": "^4.0.0",
"@types/uuid": "^9.0.1",
"tslib": "^2.6.2",
"uuid": "^9.0.1"
"tslib": "^2.6.2"
},
"devDependencies": {
"@tsconfig/node18": "18.2.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
getHttpAuthSchemeEndpointRuleSetPlugin,
getHttpSigningPlugin,
} from "@smithy/core";
import { getSchemaSerdePlugin } from "@smithy/core/schema";
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@smithy/middleware-endpoint";
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
Expand All @@ -39,11 +40,14 @@ import {
BodyLengthCalculator as __BodyLengthCalculator,
CheckOptionalClientConfig as __CheckOptionalClientConfig,
ChecksumConstructor as __ChecksumConstructor,
ClientProtocol,
Decoder as __Decoder,
Encoder as __Encoder,
EndpointV2 as __EndpointV2,
HashConstructor as __HashConstructor,
HttpHandlerOptions as __HttpHandlerOptions,
HttpRequest,
HttpResponse,
Logger as __Logger,
Provider as __Provider,
Provider,
Expand Down Expand Up @@ -225,6 +229,16 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
*/
extensions?: RuntimeExtension[];

/**
* The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
* may be overridden. A default will always be set by the client.
* Available options depend on the service's supported protocols and will not be validated by
* the client.
* @alpha
*
*/
protocol?: ClientProtocol<HttpRequest, HttpResponse>;

/**
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
*/
Expand Down Expand Up @@ -300,6 +314,7 @@ export class MachineLearningClient extends __Client<
const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
this.config = _config_9;
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
this.middlewareStack.use(getUserAgentPlugin(this.config));
this.middlewareStack.use(getRetryPlugin(this.config));
this.middlewareStack.use(getContentLengthPlugin(this.config));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
// smithy-typescript generated code
import { getPredictEndpointPlugin } from "@aws-sdk/middleware-sdk-machinelearning";
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
import { getSerdePlugin } from "@smithy/middleware-serde";
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import { MachineLearningClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MachineLearningClient";
import { PredictInput, PredictOutput } from "../models/models_0";
import { de_PredictCommand, se_PredictCommand } from "../protocols/Aws_json1_1";
import { Predict } from "../schemas/schemas_1_Predict";

/**
* @public
Expand Down Expand Up @@ -92,17 +91,11 @@ export class PredictCommand extends $Command
>()
.ep(commonParams)
.m(function (this: any, Command: any, cs: any, config: MachineLearningClientResolvedConfig, o: any) {
return [
getSerdePlugin(config, this.serialize, this.deserialize),
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
getPredictEndpointPlugin(config),
];
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions()), getPredictEndpointPlugin(config)];
})
.s("AmazonML_20141212", "Predict", {})
.n("MachineLearningClient", "PredictCommand")
.f(void 0, void 0)
.ser(se_PredictCommand)
.de(de_PredictCommand)
.sc(Predict)
.build() {
/** @internal type navigation helper, not in runtime. */
protected declare static __types: {
Expand Down

This file was deleted.

Loading
Loading