1
- import { Command } from ' @aws-sdk/smithy-client' ;
1
+ import { Command } from " @aws-sdk/smithy-client" ;
2
2
import { serializerPlugin } from "@aws-sdk/middleware-serializer" ;
3
3
import { deserializerPlugin } from "@aws-sdk/middleware-deserializer" ;
4
4
import * as __aws_sdk_types from "@aws-sdk/types" ;
5
5
import { RDSDataResolvedConfiguration } from "../RDSDataConfiguration" ;
6
- import { HttpRequest } from '@aws-sdk/protocol-http' ;
7
- import { executeStatementSerializer , executeStatementDeserializer } from '../protocol/ExecuteStatement'
8
- import { FinalizeHandlerArguments , MiddlewareStack } from '@aws-sdk/types' ;
6
+ import { HttpRequest } from "@aws-sdk/protocol-http" ;
7
+ import {
8
+ executeStatementSerializer ,
9
+ executeStatementDeserializer
10
+ } from "../protocol/ExecuteStatement" ;
11
+ import { FinalizeHandlerArguments , MiddlewareStack } from "@aws-sdk/types" ;
12
+ import {
13
+ ExecuteStatementRequest ,
14
+ ExecuteStatementResponse
15
+ } from "../models/rdsdataservice" ;
9
16
10
- /**
11
- * To remove this when move to Smithy model
12
- */
13
- type ExecuteStatementInput = any ;
14
- type ExecuteStatementOutput = any ;
15
17
type InputTypesUnion = any ;
16
18
type OutputTypesUnion = any ;
17
19
18
- export class ExecuteStatementCommand extends Command < ExecuteStatementInput , ExecuteStatementOutput > {
19
-
20
- constructor ( readonly input : ExecuteStatementInput ) {
20
+ export class ExecuteStatementCommand extends Command <
21
+ ExecuteStatementRequest ,
22
+ ExecuteStatementResponse
23
+ > {
24
+ constructor ( readonly input : ExecuteStatementRequest ) {
21
25
super ( ) ;
22
26
}
23
27
24
28
resolveMiddleware (
25
- clientStack : MiddlewareStack <
26
- InputTypesUnion ,
27
- OutputTypesUnion
28
- > ,
29
+ clientStack : MiddlewareStack < InputTypesUnion , OutputTypesUnion > ,
29
30
configuration : RDSDataResolvedConfiguration ,
30
31
options ?: __aws_sdk_types . HttpOptions
31
- ) : __aws_sdk_types . Handler < ExecuteStatementInput , ExecuteStatementOutput > {
32
+ ) : __aws_sdk_types . Handler <
33
+ ExecuteStatementRequest ,
34
+ ExecuteStatementResponse
35
+ > {
32
36
const { httpHandler } = configuration ;
33
37
34
38
this . use ( serializerPlugin ( configuration , executeStatementSerializer ) ) ;
35
- this . use ( deserializerPlugin < ExecuteStatementOutput > ( configuration , executeStatementDeserializer ) ) ;
39
+ this . use (
40
+ deserializerPlugin < ExecuteStatementResponse > (
41
+ configuration ,
42
+ executeStatementDeserializer
43
+ )
44
+ ) ;
36
45
37
46
const stack = clientStack . concat ( this . middlewareStack ) ;
38
47
@@ -41,7 +50,8 @@ export class ExecuteStatementCommand extends Command<ExecuteStatementInput, Exec
41
50
} ;
42
51
43
52
return stack . resolve (
44
- ( request : FinalizeHandlerArguments < any > ) => httpHandler . handle ( request . request as HttpRequest , options || { } ) ,
53
+ ( request : FinalizeHandlerArguments < any > ) =>
54
+ httpHandler . handle ( request . request as HttpRequest , options || { } ) ,
45
55
handlerExecutionContext
46
56
) ;
47
57
}
0 commit comments