File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ export interface StreamCollector {
10
10
}
11
11
12
12
/**
13
- * Response deserializer utils functions for AWS services
13
+ * Function execution context contains util functions for deserializers
14
14
*/
15
- export interface DeserializerUtils {
15
+ export interface DeserializerContext {
16
16
base64Decoder : Decoder ;
17
17
utf8Encoder : Encoder ;
18
18
streamCollector : StreamCollector ;
@@ -21,7 +21,7 @@ export interface DeserializerUtils {
21
21
export interface ResponseDeserializer <
22
22
OutputType ,
23
23
ResponseType = any ,
24
- RuntimeUtils = any
24
+ Context = any
25
25
> {
26
26
/**
27
27
* Converts the output of an operation into JavaScript types.
@@ -30,10 +30,9 @@ export interface ResponseDeserializer<
30
30
* response received
31
31
* @param input The HTTP response received from the service
32
32
*
33
- * @param utils The runtime-specific util functions. If provided will
34
- * overwrite the provided ones
33
+ * @param context context containing runtime-specific util functions.
35
34
*/
36
- ( output : ResponseType , protocolName : string , utils : RuntimeUtils ) : Promise <
35
+ ( output : ResponseType , protocolName : string , context : Context ) : Promise <
37
36
OutputType
38
37
> ;
39
38
}
Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ export interface EndpointBearer {
11
11
/**
12
12
* Response deserializer util functions for AWS services
13
13
*/
14
- export interface SerializerUtils extends EndpointBearer {
14
+ export interface SerializerContext extends EndpointBearer {
15
15
utf8Decoder : Decoder ;
16
16
base64Encoder : Encoder ;
17
17
}
18
18
19
19
export interface RequestSerializer <
20
20
Request ,
21
- RuntimeUtils extends EndpointBearer = any
21
+ Context extends EndpointBearer = any
22
22
> {
23
23
/**
24
24
* Converts the provided `input` into a request object
@@ -27,8 +27,7 @@ export interface RequestSerializer<
27
27
* to. Like `RestJson`, `RestXML`
28
28
* @param input The user input to serialize.
29
29
*
30
- * @param config The runtime-specific util functions. If provided will
31
- * overwrite the provided ones
30
+ * @param context Context containing runtime-specific util functions.
32
31
*/
33
- ( input : any , transferProtocol : string , utils : RuntimeUtils ) : Request ;
32
+ ( input : any , transferProtocol : string , context : Context ) : Request ;
34
33
}
You can’t perform that action at this time.
0 commit comments