@@ -18,7 +18,6 @@ import {
1818 Provider ,
1919 HashConstructor ,
2020 UrlParser ,
21- Protocol ,
2221 StreamCollector ,
2322 Decoder ,
2423 Encoder
@@ -27,10 +26,7 @@ import {
2726 EndpointsConfigInput ,
2827 EndpointsConfigResolved ,
2928 resolveEndpointsConfig ,
30- ClientProtocolConfigInput ,
31- ClientProtocolConfigResolved ,
32- resolveClientProtocolConfig ,
33- destroyClientProtocolConfig ,
29+ destroyRequestHandlerConfig ,
3430 RegionConfigInput ,
3531 RegionConfigResolved ,
3632 resolveRegionConfig
@@ -54,7 +50,7 @@ import {
5450 resolveAwsAuthConfig ,
5551 getAwsAuthPlugin
5652} from "@aws-sdk/middleware-signing" ;
57- import { HttpHandler , HttpRequest , HttpResponse } from "@aws-sdk/protocol-http" ;
53+ import { HttpHandler } from "@aws-sdk/protocol-http" ;
5854import {
5955 Client as SmithyClient ,
6056 SmithyResolvedConfiguration
@@ -78,10 +74,15 @@ export type ServiceOutputTypes =
7874 | BatchExecuteStatementResponse ;
7975
8076export interface RDSDataRuntimeDependencies {
77+ /**
78+ * The function that will be used to populate serializing protocol
79+ */
80+ protocol : string ;
81+
8182 /**
8283 * The HTTP handler to use. Fetch in browser and Https in Nodejs
8384 */
84- httpHandler ?: HttpHandler ;
85+ requestHandler ?: HttpHandler ;
8586
8687 /**
8788 * A constructor for a class implementing the @aws-sdk/types.Hash interface that computes the SHA-256 HMAC or checksum of a string or binary buffer
@@ -138,13 +139,6 @@ export interface RDSDataRuntimeDependencies {
138139 */
139140 defaultUserAgent ?: string ;
140141
141- /**
142- * The function that will be used to populate serializing protocol
143- */
144- protocolDefaultProvider ?: (
145- handler : HttpHandler
146- ) => Protocol < HttpRequest , HttpResponse > ;
147-
148142 /**
149143 * The service name with which to sign requests.
150144 */
@@ -161,7 +155,6 @@ export type RdsDataServiceConfig = RDSDataRuntimeDependencies &
161155 RegionConfigInput &
162156 RetryConfigInput &
163157 EndpointsConfigInput &
164- ClientProtocolConfigInput &
165158 UserAgentConfigInput ;
166159
167160export type RdsDataServiceResolvedConfig = SmithyResolvedConfiguration <
@@ -172,21 +165,21 @@ export type RdsDataServiceResolvedConfig = SmithyResolvedConfiguration<
172165 RegionConfigResolved &
173166 RetryConfigResolved &
174167 EndpointsConfigResolved &
175- ClientProtocolConfigResolved &
176168 UserAgentConfigResolved ;
177169
178170export class RdsDataService extends SmithyClient <
179171 __HttpOptions ,
180172 ServiceInputTypes ,
181- ServiceOutputTypes
173+ ServiceOutputTypes ,
174+ RdsDataServiceResolvedConfig
182175> {
183176 readonly config : RdsDataServiceResolvedConfig ;
184177
185178 constructor ( configuration : RdsDataServiceConfig ) {
186- const _config_0 = resolveClientProtocolConfig ( {
179+ const _config_0 = {
187180 ...RDSRuntimeConfiguration ,
188181 ...configuration
189- } ) ;
182+ } ;
190183 let _config_1 = resolveRegionConfig ( _config_0 ) ;
191184 let _config_2 = resolveAwsAuthConfig ( _config_1 ) ;
192185 let _config_3 = resolveEndpointsConfig ( _config_2 ) ;
@@ -201,6 +194,6 @@ export class RdsDataService extends SmithyClient<
201194 }
202195
203196 destroy ( ) : void {
204- destroyClientProtocolConfig ( this . config ) ;
197+ destroyRequestHandlerConfig ( this . config ) ;
205198 }
206199}
0 commit comments