@@ -12,7 +12,7 @@ import {
12
12
RollbackTransactionRequest ,
13
13
RollbackTransactionResponse
14
14
} from "./models/index" ;
15
- import { RDSDefaultValues } from "./runtimeConfig" ;
15
+ import { RDSRuntimeConfiguration } from "./runtimeConfig" ;
16
16
import {
17
17
Credentials ,
18
18
Provider ,
@@ -55,7 +55,7 @@ import {
55
55
Client as SmithyClient ,
56
56
SmithyResolvedConfiguration
57
57
} from "@aws-sdk/smithy-client" ;
58
- import { HttpOptions as __HttpOptions } from "@aws-sdk/types" ;
58
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ;
59
59
60
60
export type ServiceInputTypes =
61
61
| RollbackTransactionRequest
@@ -73,12 +73,11 @@ export type ServiceOutputTypes =
73
73
| ExecuteStatementResponse
74
74
| BatchExecuteStatementResponse ;
75
75
76
- export interface RDSDataDefaults
77
- extends Partial < SmithyResolvedConfiguration < __HttpOptions > > {
78
- // protocol?: string;
79
- signingName ?: string ;
80
- // apiVersion?: string;
81
- service ?: string ;
76
+ export interface RDSDataRuntimeDependencies {
77
+ /**
78
+ * The function that will be used to populate serializing protocol
79
+ */
80
+ protocol : string ;
82
81
83
82
/**
84
83
* The HTTP handler to use. Fetch in browser and Https in Nodejs
@@ -139,27 +138,37 @@ export interface RDSDataDefaults
139
138
* The function that will be used to populate default value in 'User-Agent' header
140
139
*/
141
140
defaultUserAgent ?: string ;
141
+
142
+ /**
143
+ * The service name with which to sign requests.
144
+ */
145
+ signingName ?: string ;
146
+
147
+ /**
148
+ * The service name with which to construct endpoints.
149
+ */
150
+ service ?: string ;
142
151
}
143
152
144
- export type RdsDataServiceConfig = RDSDataDefaults &
153
+ export type RdsDataServiceConfig = RDSDataRuntimeDependencies &
145
154
AwsAuthInputConfig &
146
155
RegionInputConfig &
147
156
RetryInputConfig &
148
157
EndpointsInputConfig &
149
158
UserAgentInputConfig ;
150
159
151
160
export type RdsDataServiceResolvedConfig = SmithyResolvedConfiguration <
152
- __HttpOptions
161
+ __HttpHandlerOptions
153
162
> &
154
- Required < RDSDataDefaults > &
163
+ Required < RDSDataRuntimeDependencies > &
155
164
AwsAuthResolvedConfig &
156
165
RegionResolvedConfig &
157
166
RetryResolvedConfig &
158
167
EndpointsResolvedConfig &
159
168
UserAgentResolvedConfig ;
160
169
161
170
export class RdsDataService extends SmithyClient <
162
- __HttpOptions ,
171
+ __HttpHandlerOptions ,
163
172
ServiceInputTypes ,
164
173
ServiceOutputTypes ,
165
174
RdsDataServiceResolvedConfig
@@ -168,7 +177,7 @@ export class RdsDataService extends SmithyClient<
168
177
169
178
constructor ( configuration : RdsDataServiceConfig ) {
170
179
const _config_0 = {
171
- ...RDSDefaultValues ,
180
+ ...RDSRuntimeConfiguration ,
172
181
...configuration
173
182
} ;
174
183
let _config_1 = resolveRegionConfig ( _config_0 ) ;
0 commit comments